python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4302 -v ' -s datou_current_4302 -M 0 -S 0 -U 95,95,120 import MySQLdb succeeded Import error (python version) ['/Users/moilerat/Documents/Fotonower/install/caffe/distribute/python', '/home/admin/workarea/git/Velours/python/prod', '/home/admin/workarea/install/caffe_cuda8_python3/python', '/home/admin/workarea/install/darknet', '/home/admin/workarea/git/Velours/python', '/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python', '/home/admin/mtr/.credentials', '/home/admin/workarea/install/caffe/python', '/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools', '/home/admin/workarea/git/fotonowerpip', '/home/admin/workarea/install/segment-anything', '/home/admin/workarea/git/pyfvs', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/admin/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] Namespace(auto=False, cert_args='/home/fotonower/https/cert.pem', contextDataFile='', custom_size=0, database='', datou_id='4302', datou_id_excluded='', fifo=False, host='', is_cpu_mode=False, job='batch_current', json_args='', key_args='/home/fotonower/https/vision.fotonower.com.key', limit=1000, list_photo_ids='', local='', mtr_current_id=0, mtr_portfolio_ids='', nb_thread=1, no_current=False, offset=0, only_client=False, output_file='', password='', port=5100, rand=0, save=2, use_client=False, user_id=440, username='', verbose=True) process id : 338929 load datou : 4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! Unexpected type seems boolean for variable list_input_json ERROR or WARNING : can't parse json string Expecting value: line 1 column 1 (char 0) Tried to parse : None was removed should we ? donnée sous forme de texte was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? id de la photo (peut être local ou global) was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de nombre was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de texte was removed should we ? [ptf_id0,ptf_id1...] was removed should we ? load thcls load pdts Running datou job : batch_current 4302 [] TODO datou_current to load to do maybe to take outside batchDatouExec SELECT * from MTRPhoto.mtr_datou_current where state = 0 AND mtr_portfolio_id is not NULL AND mtd_id = 4302 order by created_at desc LIMIT 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2623241) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2623241) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20922382 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2623241'] with mtr_portfolio_ids : ['20922382'] and first list_photo_ids : [] new path : /proc/338929/ Name: python3 Umask: 0002 State: R (running) Tgid: 338929 Ngid: 0 Pid: 338929 PPid: 338928 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 338929 NSpid: 338929 NSpgid: 336133 NSsid: 336133 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98740 kB VmRSS: 98740 kB RssAnon: 59756 kB RssFile: 38984 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 54 nonvoluntary_ctxt_switches: 103 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '338929', 'Ngid': '0', 'Pid': '338929', 'PPid': '338928', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '338929', 'NSpid': '338929', 'NSpgid': '336133', 'NSsid': '336133', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98740 kB', 'VmRSS': '98740 kB', 'RssAnon': '59756 kB', 'RssFile': '38984 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '54', 'nonvoluntary_ctxt_switches': '103'} ('datou_batch_current', '338929', '1106844', '0', '1106844', '865592', '98740', b'', 'marlene', '2623241') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (20922382) and hide_status = 0 ) AND ph.photo_id not in (SELECT mtr_photo_id from MTRPhoto.mtr_datou_result_search where mtr_current_id in (2623241 ) ) ORDER BY ph.photo_id DESC LIMIT 0, 200 We have 1 , {} SELECT mtr_photo_id, mtr_portfolio_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (20922382) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1340119061, 'portfolio_id': 20922382}, {'photo_id': 1340119024, 'portfolio_id': 20922382}, {'photo_id': 1340119016, 'portfolio_id': 20922382}, {'photo_id': 1340119009, 'portfolio_id': 20922382}, {'photo_id': 1340119004, 'portfolio_id': 20922382}, {'photo_id': 1340119000, 'portfolio_id': 20922382}, {'photo_id': 1340118980, 'portfolio_id': 20922382}, {'photo_id': 1340118976, 'portfolio_id': 20922382}, {'photo_id': 1340118970, 'portfolio_id': 20922382}, {'photo_id': 1340118967, 'portfolio_id': 20922382}, {'photo_id': 1340118952, 'portfolio_id': 20922382}, {'photo_id': 1340118903, 'portfolio_id': 20922382}, {'photo_id': 1340118887, 'portfolio_id': 20922382}, {'photo_id': 1340118883, 'portfolio_id': 20922382}, {'photo_id': 1340118877, 'portfolio_id': 20922382}, {'photo_id': 1340118850, 'portfolio_id': 20922382}, {'photo_id': 1340118840, 'portfolio_id': 20922382}, {'photo_id': 1340118834, 'portfolio_id': 20922382}, {'photo_id': 1340118827, 'portfolio_id': 20922382}, {'photo_id': 1340118809, 'portfolio_id': 20922382}, {'photo_id': 1340118801, 'portfolio_id': 20922382}, {'photo_id': 1340118796, 'portfolio_id': 20922382}, {'photo_id': 1340118790, 'portfolio_id': 20922382}, {'photo_id': 1340118783, 'portfolio_id': 20922382}, {'photo_id': 1340118777, 'portfolio_id': 20922382}, {'photo_id': 1340118753, 'portfolio_id': 20922382}, {'photo_id': 1340118747, 'portfolio_id': 20922382}, {'photo_id': 1340118744, 'portfolio_id': 20922382}, {'photo_id': 1340118742, 'portfolio_id': 20922382}, {'photo_id': 1340118722, 'portfolio_id': 20922382}, {'photo_id': 1340118715, 'portfolio_id': 20922382}, {'photo_id': 1340118711, 'portfolio_id': 20922382}, {'photo_id': 1340118709, 'portfolio_id': 20922382}, {'photo_id': 1340118704, 'portfolio_id': 20922382}, {'photo_id': 1340118602, 'portfolio_id': 20922382}, {'photo_id': 1340118598, 'portfolio_id': 20922382}, {'photo_id': 1340118587, 'portfolio_id': 20922382}, {'photo_id': 1340118576, 'portfolio_id': 20922382}, {'photo_id': 1340118572, 'portfolio_id': 20922382}, {'photo_id': 1340118527, 'portfolio_id': 20922382}, {'photo_id': 1340118517, 'portfolio_id': 20922382}, {'photo_id': 1340118508, 'portfolio_id': 20922382}, {'photo_id': 1340118500, 'portfolio_id': 20922382}, {'photo_id': 1340118497, 'portfolio_id': 20922382}, {'photo_id': 1340118487, 'portfolio_id': 20922382}, {'photo_id': 1340118443, 'portfolio_id': 20922382}, {'photo_id': 1340118440, 'portfolio_id': 20922382}, {'photo_id': 1340118435, 'portfolio_id': 20922382}, {'photo_id': 1340118429, 'portfolio_id': 20922382}, {'photo_id': 1340118422, 'portfolio_id': 20922382}, {'photo_id': 1340118362, 'portfolio_id': 20922382}, {'photo_id': 1340118356, 'portfolio_id': 20922382}, {'photo_id': 1340118351, 'portfolio_id': 20922382}, {'photo_id': 1340118346, 'portfolio_id': 20922382}, {'photo_id': 1340118345, 'portfolio_id': 20922382}, {'photo_id': 1340118335, 'portfolio_id': 20922382}, {'photo_id': 1340118078, 'portfolio_id': 20922382}, {'photo_id': 1340118075, 'portfolio_id': 20922382}, {'photo_id': 1340118071, 'portfolio_id': 20922382}] map_portfolio_id_photo_id: {20922382: [1340119061, 1340119024, 1340119016, 1340119009, 1340119004, 1340119000, 1340118980, 1340118976, 1340118970, 1340118967, 1340118952, 1340118903, 1340118887, 1340118883, 1340118877, 1340118850, 1340118840, 1340118834, 1340118827, 1340118809, 1340118801, 1340118796, 1340118790, 1340118783, 1340118777, 1340118753, 1340118747, 1340118744, 1340118742, 1340118722, 1340118715, 1340118711, 1340118709, 1340118704, 1340118602, 1340118598, 1340118587, 1340118576, 1340118572, 1340118527, 1340118517, 1340118508, 1340118500, 1340118497, 1340118487, 1340118443, 1340118440, 1340118435, 1340118429, 1340118422, 1340118362, 1340118356, 1340118351, 1340118346, 1340118345, 1340118335, 1340118078, 1340118075, 1340118071]} ##### Call download_photos : nb_thread : 1 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos ##### After load_data_input time to download the photos : 0.014824390411376953 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Feb 28 10:58:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20922382) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} beginning of datou step ventilate_hashtags_in_portfolio : To implement ! To do loadFromThcl(), then load ParamDescType : thcl2725 get_desc_type_from_thcl : type of cat SELECT id, mtr_user_id, name, pb_hashtag_id, hashtag_id_list, button_legend_list, portfolio_id_lists, photo_hashtag_type, photo_desc_type, svm_limit, limit_tagging, is_public, live, created_at, updated_at, type_classification FROM MTRDatou.classification_theme WHERE `id` IN (2725) thcls : [{'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'}] thcl {'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'} Update svm_hashtag_type_desc : 5186 remove imagettes from duplicated photo Iterating over portfolio : 20922382 get user id for portfolio 20922382 get sub ptf for main ptf 20922382, type 3726 and hashtags ['metal', 'environnement', 'Carton_brun', 'plastique', 'Teint_Dans_La_Masse', 'kraft', 'flou', 'papier', 'autre_refus', 'Carton_gris', 'cartonnette', 'mal_croppe'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20922382 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','environnement','Carton_brun','plastique','Teint_Dans_La_Masse','kraft','flou','papier','autre_refus','Carton_gris','cartonnette','mal_croppe')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20922382 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','environnement','Carton_brun','plastique','Teint_Dans_La_Masse','kraft','flou','papier','autre_refus','Carton_gris','cartonnette','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 20922382, 'sub_port_id': 20922414, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13549036, 'last_updated_at': datetime.datetime(2025, 2, 28, 10, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 10, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 10, 49, 29)}, 'cartonnette': {'main_port_id': 20922382, 'sub_port_id': 20922415, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13549037, 'last_updated_at': datetime.datetime(2025, 2, 28, 10, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 10, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 10, 49, 29)}, 'environnement': {'main_port_id': 20922382, 'sub_port_id': 20922416, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13549038, 'last_updated_at': datetime.datetime(2025, 2, 28, 10, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 10, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 10, 49, 29)}, 'plastique': {'main_port_id': 20922382, 'sub_port_id': 20922417, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13549039, 'last_updated_at': datetime.datetime(2025, 2, 28, 10, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 10, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 10, 49, 29)}, 'autre_refus': {'main_port_id': 20922382, 'sub_port_id': 20922418, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13549040, 'last_updated_at': datetime.datetime(2025, 2, 28, 10, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 10, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 10, 49, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 20922382, 'sub_port_id': 20922419, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13549041, 'last_updated_at': datetime.datetime(2025, 2, 28, 10, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 10, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 10, 49, 29)}, 'kraft': {'main_port_id': 20922382, 'sub_port_id': 20922420, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13549042, 'last_updated_at': datetime.datetime(2025, 2, 28, 10, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 10, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 10, 49, 29)}, 'flou': {'main_port_id': 20922382, 'sub_port_id': 20922421, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13549043, 'last_updated_at': datetime.datetime(2025, 2, 28, 10, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 10, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 10, 49, 29)}, 'metal': {'main_port_id': 20922382, 'sub_port_id': 20922422, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13549044, 'last_updated_at': datetime.datetime(2025, 2, 28, 10, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 10, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 10, 49, 29)}, 'Carton_brun': {'main_port_id': 20922382, 'sub_port_id': 20922423, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13549045, 'last_updated_at': datetime.datetime(2025, 2, 28, 10, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 10, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 10, 49, 29)}, 'papier': {'main_port_id': 20922382, 'sub_port_id': 20922424, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13549046, 'last_updated_at': datetime.datetime(2025, 2, 28, 10, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 10, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 10, 49, 29)}, 'Carton_gris': {'main_port_id': 20922382, 'sub_port_id': 20922425, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13549047, 'last_updated_at': datetime.datetime(2025, 2, 28, 10, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 10, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 10, 49, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20922414 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20922382 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='mal_croppe' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20922414) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20922382) result : ((1340118071,), (1340118075,), (1340118078,), (1340118335,), (1340118345,), (1340118346,), (1340118351,), (1340118356,), (1340118362,), (1340118422,), (1340118429,), (1340118435,), (1340118440,), (1340118443,), (1340118487,), (1340118497,), (1340118500,), (1340118508,), (1340118517,), (1340118527,), (1340118572,), (1340118576,), (1340118587,), (1340118598,), (1340118602,), (1340118704,), (1340118709,), (1340118711,), (1340118715,), (1340118722,), (1340118742,), (1340118744,), (1340118747,), (1340118753,), (1340118777,), (1340118783,), (1340118790,), (1340118796,), (1340118801,), (1340118809,), (1340118827,), (1340118834,), (1340118840,), (1340118850,), (1340118877,), (1340118883,), (1340118887,), (1340118903,), (1340118952,), (1340118967,), (1340118970,), (1340118976,), (1340118980,), (1340119000,), (1340119004,), (1340119009,), (1340119016,), (1340119024,), (1340119061,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1340119000,1340118500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20922415 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20922382 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='cartonnette' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20922415) result : ((1340118854,), (1340118911,), (1340118956,), (1340118957,), (1340119013,), (1340119085,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20922382) result : ((1340118071,), (1340118075,), (1340118078,), (1340118335,), (1340118345,), (1340118346,), (1340118351,), (1340118356,), (1340118362,), (1340118422,), (1340118429,), (1340118435,), (1340118440,), (1340118443,), (1340118487,), (1340118497,), (1340118500,), (1340118508,), (1340118517,), (1340118527,), (1340118572,), (1340118576,), (1340118587,), (1340118598,), (1340118602,), (1340118704,), (1340118709,), (1340118711,), (1340118715,), (1340118722,), (1340118742,), (1340118744,), (1340118747,), (1340118753,), (1340118777,), (1340118783,), (1340118790,), (1340118796,), (1340118801,), (1340118809,), (1340118827,), (1340118834,), (1340118840,), (1340118850,), (1340118877,), (1340118883,), (1340118887,), (1340118903,), (1340118952,), (1340118967,), (1340118970,), (1340118976,), (1340118980,), (1340119000,), (1340119004,), (1340119009,), (1340119016,), (1340119024,), (1340119061,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1340119000,1340118500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20922416 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20922382 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='environnement' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20922416) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20922382) result : ((1340118071,), (1340118075,), (1340118078,), (1340118335,), (1340118345,), (1340118346,), (1340118351,), (1340118356,), (1340118362,), (1340118422,), (1340118429,), (1340118435,), (1340118440,), (1340118443,), (1340118487,), (1340118497,), (1340118500,), (1340118508,), (1340118517,), (1340118527,), (1340118572,), (1340118576,), (1340118587,), (1340118598,), (1340118602,), (1340118704,), (1340118709,), (1340118711,), (1340118715,), (1340118722,), (1340118742,), (1340118744,), (1340118747,), (1340118753,), (1340118777,), (1340118783,), (1340118790,), (1340118796,), (1340118801,), (1340118809,), (1340118827,), (1340118834,), (1340118840,), (1340118850,), (1340118877,), (1340118883,), (1340118887,), (1340118903,), (1340118952,), (1340118967,), (1340118970,), (1340118976,), (1340118980,), (1340119000,), (1340119004,), (1340119009,), (1340119016,), (1340119024,), (1340119061,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1340119000,1340118500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20922417 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20922382 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='plastique' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20922417) result : ((1340118922,), (1340118923,), (1340118924,), (1340118942,), (1340119023,), (1340119025,), (1340119029,), (1340119098,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20922382) result : ((1340118071,), (1340118075,), (1340118078,), (1340118335,), (1340118345,), (1340118346,), (1340118351,), (1340118356,), (1340118362,), (1340118422,), (1340118429,), (1340118435,), (1340118440,), (1340118443,), (1340118487,), (1340118497,), (1340118500,), (1340118508,), (1340118517,), (1340118527,), (1340118572,), (1340118576,), (1340118587,), (1340118598,), (1340118602,), (1340118704,), (1340118709,), (1340118711,), (1340118715,), (1340118722,), (1340118742,), (1340118744,), (1340118747,), (1340118753,), (1340118777,), (1340118783,), (1340118790,), (1340118796,), (1340118801,), (1340118809,), (1340118827,), (1340118834,), (1340118840,), (1340118850,), (1340118877,), (1340118883,), (1340118887,), (1340118903,), (1340118952,), (1340118967,), (1340118970,), (1340118976,), (1340118980,), (1340119000,), (1340119004,), (1340119009,), (1340119016,), (1340119024,), (1340119061,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1340119000,1340118500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20922418 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20922382 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='autre_refus' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20922418) result : ((1340118843,), (1340118844,), (1340118900,), (1340118902,), (1340118934,), (1340118935,), (1340118946,), (1340119008,), (1340119010,), (1340119072,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20922382) result : ((1340118071,), (1340118075,), (1340118078,), (1340118335,), (1340118345,), (1340118346,), (1340118351,), (1340118356,), (1340118362,), (1340118422,), (1340118429,), (1340118435,), (1340118440,), (1340118443,), (1340118487,), (1340118497,), (1340118500,), (1340118508,), (1340118517,), (1340118527,), (1340118572,), (1340118576,), (1340118587,), (1340118598,), (1340118602,), (1340118704,), (1340118709,), (1340118711,), (1340118715,), (1340118722,), (1340118742,), (1340118744,), (1340118747,), (1340118753,), (1340118777,), (1340118783,), (1340118790,), (1340118796,), (1340118801,), (1340118809,), (1340118827,), (1340118834,), (1340118840,), (1340118850,), (1340118877,), (1340118883,), (1340118887,), (1340118903,), (1340118952,), (1340118967,), (1340118970,), (1340118976,), (1340118980,), (1340119000,), (1340119004,), (1340119009,), (1340119016,), (1340119024,), (1340119061,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1340119000,1340118500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20922419 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20922382 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Teint_Dans_La_Masse' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20922419) result : ((1340118838,), (1340118897,), (1340119005,), (1340119069,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20922382) result : ((1340118071,), (1340118075,), (1340118078,), (1340118335,), (1340118345,), (1340118346,), (1340118351,), (1340118356,), (1340118362,), (1340118422,), (1340118429,), (1340118435,), (1340118440,), (1340118443,), (1340118487,), (1340118497,), (1340118500,), (1340118508,), (1340118517,), (1340118527,), (1340118572,), (1340118576,), (1340118587,), (1340118598,), (1340118602,), (1340118704,), (1340118709,), (1340118711,), (1340118715,), (1340118722,), (1340118742,), (1340118744,), (1340118747,), (1340118753,), (1340118777,), (1340118783,), (1340118790,), (1340118796,), (1340118801,), (1340118809,), (1340118827,), (1340118834,), (1340118840,), (1340118850,), (1340118877,), (1340118883,), (1340118887,), (1340118903,), (1340118952,), (1340118967,), (1340118970,), (1340118976,), (1340118980,), (1340119000,), (1340119004,), (1340119009,), (1340119016,), (1340119024,), (1340119061,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1340119000,1340118500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20922420 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20922382 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='kraft' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20922420) result : ((1340118861,), (1340118862,), (1340118927,), (1340118928,), (1340119039,), (1340119040,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20922382) result : ((1340118071,), (1340118075,), (1340118078,), (1340118335,), (1340118345,), (1340118346,), (1340118351,), (1340118356,), (1340118362,), (1340118422,), (1340118429,), (1340118435,), (1340118440,), (1340118443,), (1340118487,), (1340118497,), (1340118500,), (1340118508,), (1340118517,), (1340118527,), (1340118572,), (1340118576,), (1340118587,), (1340118598,), (1340118602,), (1340118704,), (1340118709,), (1340118711,), (1340118715,), (1340118722,), (1340118742,), (1340118744,), (1340118747,), (1340118753,), (1340118777,), (1340118783,), (1340118790,), (1340118796,), (1340118801,), (1340118809,), (1340118827,), (1340118834,), (1340118840,), (1340118850,), (1340118877,), (1340118883,), (1340118887,), (1340118903,), (1340118952,), (1340118967,), (1340118970,), (1340118976,), (1340118980,), (1340119000,), (1340119004,), (1340119009,), (1340119016,), (1340119024,), (1340119061,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1340119000,1340118500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20922421 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20922382 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='flou' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20922421) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20922382) result : ((1340118071,), (1340118075,), (1340118078,), (1340118335,), (1340118345,), (1340118346,), (1340118351,), (1340118356,), (1340118362,), (1340118422,), (1340118429,), (1340118435,), (1340118440,), (1340118443,), (1340118487,), (1340118497,), (1340118500,), (1340118508,), (1340118517,), (1340118527,), (1340118572,), (1340118576,), (1340118587,), (1340118598,), (1340118602,), (1340118704,), (1340118709,), (1340118711,), (1340118715,), (1340118722,), (1340118742,), (1340118744,), (1340118747,), (1340118753,), (1340118777,), (1340118783,), (1340118790,), (1340118796,), (1340118801,), (1340118809,), (1340118827,), (1340118834,), (1340118840,), (1340118850,), (1340118877,), (1340118883,), (1340118887,), (1340118903,), (1340118952,), (1340118967,), (1340118970,), (1340118976,), (1340118980,), (1340119000,), (1340119004,), (1340119009,), (1340119016,), (1340119024,), (1340119061,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1340119000,1340118500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20922422 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20922382 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='metal' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20922422) result : ((1340118965,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20922382) result : ((1340118071,), (1340118075,), (1340118078,), (1340118335,), (1340118345,), (1340118346,), (1340118351,), (1340118356,), (1340118362,), (1340118422,), (1340118429,), (1340118435,), (1340118440,), (1340118443,), (1340118487,), (1340118497,), (1340118500,), (1340118508,), (1340118517,), (1340118527,), (1340118572,), (1340118576,), (1340118587,), (1340118598,), (1340118602,), (1340118704,), (1340118709,), (1340118711,), (1340118715,), (1340118722,), (1340118742,), (1340118744,), (1340118747,), (1340118753,), (1340118777,), (1340118783,), (1340118790,), (1340118796,), (1340118801,), (1340118809,), (1340118827,), (1340118834,), (1340118840,), (1340118850,), (1340118877,), (1340118883,), (1340118887,), (1340118903,), (1340118952,), (1340118967,), (1340118970,), (1340118976,), (1340118980,), (1340119000,), (1340119004,), (1340119009,), (1340119016,), (1340119024,), (1340119061,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1340119000,1340118500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20922423 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20922382 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_brun' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20922423) result : ((1340118830,), (1340118837,), (1340118855,), (1340118856,), (1340118858,), (1340118859,), (1340118860,), (1340118919,), (1340118920,), (1340118921,), (1340118939,), (1340118959,), (1340118960,), (1340118961,), (1340118962,), (1340118963,), (1340119020,), (1340119021,), (1340119022,), (1340119088,), (1340119093,), (1340119094,), (1340119095,), (1340119096,), (1340119097,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20922382) result : ((1340118071,), (1340118075,), (1340118078,), (1340118335,), (1340118345,), (1340118346,), (1340118351,), (1340118356,), (1340118362,), (1340118422,), (1340118429,), (1340118435,), (1340118440,), (1340118443,), (1340118487,), (1340118497,), (1340118500,), (1340118508,), (1340118517,), (1340118527,), (1340118572,), (1340118576,), (1340118587,), (1340118598,), (1340118602,), (1340118704,), (1340118709,), (1340118711,), (1340118715,), (1340118722,), (1340118742,), (1340118744,), (1340118747,), (1340118753,), (1340118777,), (1340118783,), (1340118790,), (1340118796,), (1340118801,), (1340118809,), (1340118827,), (1340118834,), (1340118840,), (1340118850,), (1340118877,), (1340118883,), (1340118887,), (1340118903,), (1340118952,), (1340118967,), (1340118970,), (1340118976,), (1340118980,), (1340119000,), (1340119004,), (1340119009,), (1340119016,), (1340119024,), (1340119061,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1340119000,1340118500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20922424 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20922382 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='papier' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20922424) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20922382) result : ((1340118071,), (1340118075,), (1340118078,), (1340118335,), (1340118345,), (1340118346,), (1340118351,), (1340118356,), (1340118362,), (1340118422,), (1340118429,), (1340118435,), (1340118440,), (1340118443,), (1340118487,), (1340118497,), (1340118500,), (1340118508,), (1340118517,), (1340118527,), (1340118572,), (1340118576,), (1340118587,), (1340118598,), (1340118602,), (1340118704,), (1340118709,), (1340118711,), (1340118715,), (1340118722,), (1340118742,), (1340118744,), (1340118747,), (1340118753,), (1340118777,), (1340118783,), (1340118790,), (1340118796,), (1340118801,), (1340118809,), (1340118827,), (1340118834,), (1340118840,), (1340118850,), (1340118877,), (1340118883,), (1340118887,), (1340118903,), (1340118952,), (1340118967,), (1340118970,), (1340118976,), (1340118980,), (1340119000,), (1340119004,), (1340119009,), (1340119016,), (1340119024,), (1340119061,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1340119000,1340118500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20922425 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=20922382 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_gris' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20922425) result : ((1340118821,), (1340118822,), (1340118823,), (1340118846,), (1340118847,), (1340118908,), (1340118949,), (1340118950,), (1340118951,), (1340119012,), (1340119081,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20922382) result : ((1340118071,), (1340118075,), (1340118078,), (1340118335,), (1340118345,), (1340118346,), (1340118351,), (1340118356,), (1340118362,), (1340118422,), (1340118429,), (1340118435,), (1340118440,), (1340118443,), (1340118487,), (1340118497,), (1340118500,), (1340118508,), (1340118517,), (1340118527,), (1340118572,), (1340118576,), (1340118587,), (1340118598,), (1340118602,), (1340118704,), (1340118709,), (1340118711,), (1340118715,), (1340118722,), (1340118742,), (1340118744,), (1340118747,), (1340118753,), (1340118777,), (1340118783,), (1340118790,), (1340118796,), (1340118801,), (1340118809,), (1340118827,), (1340118834,), (1340118840,), (1340118850,), (1340118877,), (1340118883,), (1340118887,), (1340118903,), (1340118952,), (1340118967,), (1340118970,), (1340118976,), (1340118980,), (1340119000,), (1340119004,), (1340119009,), (1340119016,), (1340119024,), (1340119061,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in (1340119000,1340118500) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20922382 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','environnement','Carton_brun','plastique','Teint_Dans_La_Masse','kraft','flou','papier','autre_refus','Carton_gris','cartonnette','mal_croppe')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20922382 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','environnement','Carton_brun','plastique','Teint_Dans_La_Masse','kraft','flou','papier','autre_refus','Carton_gris','cartonnette','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 20922382, 'sub_port_id': 20922426, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13549048, 'last_updated_at': datetime.datetime(2025, 2, 28, 10, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 10, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 10, 49, 30)}, 'cartonnette': {'main_port_id': 20922382, 'sub_port_id': 20922427, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13549049, 'last_updated_at': datetime.datetime(2025, 2, 28, 10, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 10, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 10, 49, 30)}, 'environnement': {'main_port_id': 20922382, 'sub_port_id': 20922428, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13549050, 'last_updated_at': datetime.datetime(2025, 2, 28, 10, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 10, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 10, 49, 30)}, 'plastique': {'main_port_id': 20922382, 'sub_port_id': 20922429, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13549051, 'last_updated_at': datetime.datetime(2025, 2, 28, 10, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 10, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 10, 49, 30)}, 'autre_refus': {'main_port_id': 20922382, 'sub_port_id': 20922430, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13549052, 'last_updated_at': datetime.datetime(2025, 2, 28, 10, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 10, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 10, 49, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 20922382, 'sub_port_id': 20922431, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13549053, 'last_updated_at': datetime.datetime(2025, 2, 28, 10, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 10, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 10, 49, 30)}, 'kraft': {'main_port_id': 20922382, 'sub_port_id': 20922432, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13549054, 'last_updated_at': datetime.datetime(2025, 2, 28, 10, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 10, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 10, 49, 30)}, 'flou': {'main_port_id': 20922382, 'sub_port_id': 20922433, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13549055, 'last_updated_at': datetime.datetime(2025, 2, 28, 10, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 10, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 10, 49, 30)}, 'metal': {'main_port_id': 20922382, 'sub_port_id': 20922434, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13549056, 'last_updated_at': datetime.datetime(2025, 2, 28, 10, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 10, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 10, 49, 30)}, 'Carton_brun': {'main_port_id': 20922382, 'sub_port_id': 20922435, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13549057, 'last_updated_at': datetime.datetime(2025, 2, 28, 10, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 10, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 10, 49, 30)}, 'papier': {'main_port_id': 20922382, 'sub_port_id': 20922436, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13549058, 'last_updated_at': datetime.datetime(2025, 2, 28, 10, 49, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 10, 49, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 10, 49, 30)}, 'Carton_gris': {'main_port_id': 20922382, 'sub_port_id': 20922437, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13549059, 'last_updated_at': datetime.datetime(2025, 2, 28, 10, 57, 1), 'last_updated_at_desc': datetime.datetime(2025, 2, 28, 10, 57, 1), 'last_updated_at_asc': datetime.datetime(2025, 2, 28, 10, 49, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20922426,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20922414 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20922427,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20922415 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20922428,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20922416 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20922429,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20922417 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20922430,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20922418 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20922431,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20922419 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20922432,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20922420 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20922433,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20922421 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20922434,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20922422 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20922435,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20922423 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20922436,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20922424 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20922437,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20922425 lien utilise dans velours : https://www.fotonower.com/velours/20922426,20922427,20922428,20922429,20922430,20922431,20922432,20922433,20922434,20922435,20922436,20922437?tags=mal_croppe,cartonnette,environnement,plastique,autre_refus,Teint_Dans_La_Masse,kraft,flou,metal,Carton_brun,papier,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20922382]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1340119061, 1340119024, 1340119016, 1340119009, 1340119004, 1340119000, 1340118980, 1340118976, 1340118970, 1340118967, 1340118952] map_info['map_portfolio_photo'] : {20922382: [1340119061, 1340119024, 1340119016, 1340119009, 1340119004, 1340119000, 1340118980, 1340118976, 1340118970, 1340118967, 1340118952, 1340118903, 1340118887, 1340118883, 1340118877, 1340118850, 1340118840, 1340118834, 1340118827, 1340118809, 1340118801, 1340118796, 1340118790, 1340118783, 1340118777, 1340118753, 1340118747, 1340118744, 1340118742, 1340118722, 1340118715, 1340118711, 1340118709, 1340118704, 1340118602, 1340118598, 1340118587, 1340118576, 1340118572, 1340118527, 1340118517, 1340118508, 1340118500, 1340118497, 1340118487, 1340118443, 1340118440, 1340118435, 1340118429, 1340118422, 1340118362, 1340118356, 1340118351, 1340118346, 1340118345, 1340118335, 1340118078, 1340118075, 1340118071]} final : False mtd_id 4302 list_pids : [1340119061, 1340119024, 1340119016, 1340119009, 1340119004, 1340119000, 1340118980, 1340118976, 1340118970, 1340118967, 1340118952] Looping around the photos to save general results len do output : 1 /20922382. before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340119061', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340119024', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340119016', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340119009', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340119004', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340119000', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340118980', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340118976', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340118970', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340118967', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340118952', None, None, None, None, None, '2623241') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20922382', "{'mal_croppe': 20922414, 'cartonnette': 20922415, 'environnement': 20922416, 'plastique': 20922417, 'autre_refus': 20922418, 'Teint_Dans_La_Masse': 20922419, 'kraft': 20922420, 'flou': 20922421, 'metal': 20922422, 'Carton_brun': 20922423, 'papier': 20922424, 'Carton_gris': 20922425}", None, None, None, None, '2623241'), ('4302', '20922382', '1340119061', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340119024', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340119016', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340119009', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340119004', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340119000', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340118980', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340118976', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340118970', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340118967', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340118952', None, None, None, None, None, '2623241')] time used for this insertion : 0.6728804111480713 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6690061092376709 time spend to save output : 0.6731760501861572 total time spend for step 1 : 1.3421821594238281 step2:final Fri Feb 28 10:59:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20922382) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} Beginning of datou step final ! query to retrieve results for portfolio 20922382 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1340118078,1340118075,1340118071,1340118362,1340118356,1340118351,1340118346,1340118345,1340118335,1340118443,1340118440,1340118435,1340118429,1340118422,1340118527,1340118517,1340118508,1340118500,1340118497,1340118487,1340118602,1340118598,1340118587,1340118576,1340118572,1340118722,1340118715,1340118711,1340118709,1340118704,1340118753,1340118747,1340118744,1340118742,1340118809,1340118801,1340118796,1340118790,1340118783,1340118777,1340118850,1340118840,1340118834,1340118827,1340118903,1340118887,1340118883,1340118877,1340118980,1340118976,1340118970,1340118967,1340118952,1340119024,1340119016,1340119009,1340119004,1340119000,1340119061); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20922382]) Inside saveOutput : final : False verbose : True original output for save of step final : {1340119061: ('0.09530233788432226',), 1340119024: ('0.09530233788432226',), 1340119016: ('0.09530233788432226',), 1340119009: ('0.09530233788432226',), 1340119004: ('0.09530233788432226',), 1340119000: ('0.09530233788432226',), 1340118980: ('0.09530233788432226',), 1340118976: ('0.09530233788432226',), 1340118970: ('0.09530233788432226',), 1340118967: ('0.09530233788432226',), 1340118952: ('0.09530233788432226',)} new output for save of step final : {1340119061: ('0.09530233788432226',), 1340119024: ('0.09530233788432226',), 1340119016: ('0.09530233788432226',), 1340119009: ('0.09530233788432226',), 1340119004: ('0.09530233788432226',), 1340119000: ('0.09530233788432226',), 1340118980: ('0.09530233788432226',), 1340118976: ('0.09530233788432226',), 1340118970: ('0.09530233788432226',), 1340118967: ('0.09530233788432226',), 1340118952: ('0.09530233788432226',)} [1340119061, 1340119024, 1340119016, 1340119009, 1340119004, 1340119000, 1340118980, 1340118976, 1340118970, 1340118967, 1340118952] map_info['map_portfolio_photo'] : {20922382: [1340119061, 1340119024, 1340119016, 1340119009, 1340119004, 1340119000, 1340118980, 1340118976, 1340118970, 1340118967, 1340118952, 1340118903, 1340118887, 1340118883, 1340118877, 1340118850, 1340118840, 1340118834, 1340118827, 1340118809, 1340118801, 1340118796, 1340118790, 1340118783, 1340118777, 1340118753, 1340118747, 1340118744, 1340118742, 1340118722, 1340118715, 1340118711, 1340118709, 1340118704, 1340118602, 1340118598, 1340118587, 1340118576, 1340118572, 1340118527, 1340118517, 1340118508, 1340118500, 1340118497, 1340118487, 1340118443, 1340118440, 1340118435, 1340118429, 1340118422, 1340118362, 1340118356, 1340118351, 1340118346, 1340118345, 1340118335, 1340118078, 1340118075, 1340118071]} final : False mtd_id 4302 list_pids : [1340119061, 1340119024, 1340119016, 1340119009, 1340119004, 1340119000, 1340118980, 1340118976, 1340118970, 1340118967, 1340118952] Looping around the photos to save general results len do output : 11 /1340119061.Didn't retrieve data . /1340119024.Didn't retrieve data . /1340119016.Didn't retrieve data . /1340119009.Didn't retrieve data . /1340119004.Didn't retrieve data . /1340119000.Didn't retrieve data . /1340118980.Didn't retrieve data . /1340118976.Didn't retrieve data . /1340118970.Didn't retrieve data . /1340118967.Didn't retrieve data . /1340118952.Didn't retrieve data . before output type Used above Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340119061', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340119024', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340119016', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340119009', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340119004', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340119000', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340118980', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340118976', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340118970', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340118967', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340118952', None, None, None, None, None, '2623241') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20922382', '1340119061', '0.09530233788432226', None, None, None, None, '2623241'), ('4302', '20922382', '1340119024', '0.09530233788432226', None, None, None, None, '2623241'), ('4302', '20922382', '1340119016', '0.09530233788432226', None, None, None, None, '2623241'), ('4302', '20922382', '1340119009', '0.09530233788432226', None, None, None, None, '2623241'), ('4302', '20922382', '1340119004', '0.09530233788432226', None, None, None, None, '2623241'), ('4302', '20922382', '1340119000', '0.09530233788432226', None, None, None, None, '2623241'), ('4302', '20922382', '1340118980', '0.09530233788432226', None, None, None, None, '2623241'), ('4302', '20922382', '1340118976', '0.09530233788432226', None, None, None, None, '2623241'), ('4302', '20922382', '1340118970', '0.09530233788432226', None, None, None, None, '2623241'), ('4302', '20922382', '1340118967', '0.09530233788432226', None, None, None, None, '2623241'), ('4302', '20922382', '1340118952', '0.09530233788432226', None, None, None, None, '2623241')] time used for this insertion : 3.422248125076294 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06570768356323242 time spend to save output : 3.4228572845458984 total time spend for step 2 : 3.488564968109131 step3:velours_tree Fri Feb 28 10:59:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20922382: [{'mal_croppe': 20922414, 'cartonnette': 20922415, 'environnement': 20922416, 'plastique': 20922417, 'autre_refus': 20922418, 'Teint_Dans_La_Masse': 20922419, 'kraft': 20922420, 'flou': 20922421, 'metal': 20922422, 'Carton_brun': 20922423, 'papier': 20922424, 'Carton_gris': 20922425}]} input_args_next_step : {20922382: ()} output_args : {20922382: [{'mal_croppe': 20922414, 'cartonnette': 20922415, 'environnement': 20922416, 'plastique': 20922417, 'autre_refus': 20922418, 'Teint_Dans_La_Masse': 20922419, 'kraft': 20922420, 'flou': 20922421, 'metal': 20922422, 'Carton_brun': 20922423, 'papier': 20922424, 'Carton_gris': 20922425}]} args : 20922382 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'mal_croppe': 20922414, 'cartonnette': 20922415, 'environnement': 20922416, 'plastique': 20922417, 'autre_refus': 20922418, 'Teint_Dans_La_Masse': 20922419, 'kraft': 20922420, 'flou': 20922421, 'metal': 20922422, 'Carton_brun': 20922423, 'papier': 20922424, 'Carton_gris': 20922425},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20922382) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} can't find the photo_desc_type After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20922382]) Inside saveOutput : final : False verbose : True ouput is None No outpout to save, returning out of save general time spend for datou_step_exec : 0.2870304584503174 time spend to save output : 5.602836608886719e-05 total time spend for step 3 : 0.28708648681640625 step4:send_mail_cod Fri Feb 28 10:59:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1340119061: ('0.09530233788432226',), 1340119024: ('0.09530233788432226',), 1340119016: ('0.09530233788432226',), 1340119009: ('0.09530233788432226',), 1340119004: ('0.09530233788432226',), 1340119000: ('0.09530233788432226',), 1340118980: ('0.09530233788432226',), 1340118976: ('0.09530233788432226',), 1340118970: ('0.09530233788432226',), 1340118967: ('0.09530233788432226',), 1340118952: ('0.09530233788432226',)} input_args_next_step : {1340119061: ()} output_args : {1340119061: ('0.09530233788432226',), 1340119024: ('0.09530233788432226',), 1340119016: ('0.09530233788432226',), 1340119009: ('0.09530233788432226',), 1340119004: ('0.09530233788432226',), 1340119000: ('0.09530233788432226',), 1340118980: ('0.09530233788432226',), 1340118976: ('0.09530233788432226',), 1340118970: ('0.09530233788432226',), 1340118967: ('0.09530233788432226',), 1340118952: ('0.09530233788432226',)} args : 1340119061 depend.output_id : 0 input_args_next_step : {1340119061: ('0.09530233788432226',), 1340119024: ()} output_args : {1340119061: ('0.09530233788432226',), 1340119024: ('0.09530233788432226',), 1340119016: ('0.09530233788432226',), 1340119009: ('0.09530233788432226',), 1340119004: ('0.09530233788432226',), 1340119000: ('0.09530233788432226',), 1340118980: ('0.09530233788432226',), 1340118976: ('0.09530233788432226',), 1340118970: ('0.09530233788432226',), 1340118967: ('0.09530233788432226',), 1340118952: ('0.09530233788432226',)} args : 1340119024 depend.output_id : 0 input_args_next_step : {1340119061: ('0.09530233788432226',), 1340119024: ('0.09530233788432226',), 1340119016: ()} output_args : {1340119061: ('0.09530233788432226',), 1340119024: ('0.09530233788432226',), 1340119016: ('0.09530233788432226',), 1340119009: ('0.09530233788432226',), 1340119004: ('0.09530233788432226',), 1340119000: ('0.09530233788432226',), 1340118980: ('0.09530233788432226',), 1340118976: ('0.09530233788432226',), 1340118970: ('0.09530233788432226',), 1340118967: ('0.09530233788432226',), 1340118952: ('0.09530233788432226',)} args : 1340119016 depend.output_id : 0 input_args_next_step : {1340119061: ('0.09530233788432226',), 1340119024: ('0.09530233788432226',), 1340119016: ('0.09530233788432226',), 1340119009: ()} output_args : {1340119061: ('0.09530233788432226',), 1340119024: ('0.09530233788432226',), 1340119016: ('0.09530233788432226',), 1340119009: ('0.09530233788432226',), 1340119004: ('0.09530233788432226',), 1340119000: ('0.09530233788432226',), 1340118980: ('0.09530233788432226',), 1340118976: ('0.09530233788432226',), 1340118970: ('0.09530233788432226',), 1340118967: ('0.09530233788432226',), 1340118952: ('0.09530233788432226',)} args : 1340119009 depend.output_id : 0 input_args_next_step : {1340119061: ('0.09530233788432226',), 1340119024: ('0.09530233788432226',), 1340119016: ('0.09530233788432226',), 1340119009: ('0.09530233788432226',), 1340119004: ()} output_args : {1340119061: ('0.09530233788432226',), 1340119024: ('0.09530233788432226',), 1340119016: ('0.09530233788432226',), 1340119009: ('0.09530233788432226',), 1340119004: ('0.09530233788432226',), 1340119000: ('0.09530233788432226',), 1340118980: ('0.09530233788432226',), 1340118976: ('0.09530233788432226',), 1340118970: ('0.09530233788432226',), 1340118967: ('0.09530233788432226',), 1340118952: ('0.09530233788432226',)} args : 1340119004 depend.output_id : 0 input_args_next_step : {1340119061: ('0.09530233788432226',), 1340119024: ('0.09530233788432226',), 1340119016: ('0.09530233788432226',), 1340119009: ('0.09530233788432226',), 1340119004: ('0.09530233788432226',), 1340119000: ()} output_args : {1340119061: ('0.09530233788432226',), 1340119024: ('0.09530233788432226',), 1340119016: ('0.09530233788432226',), 1340119009: ('0.09530233788432226',), 1340119004: ('0.09530233788432226',), 1340119000: ('0.09530233788432226',), 1340118980: ('0.09530233788432226',), 1340118976: ('0.09530233788432226',), 1340118970: ('0.09530233788432226',), 1340118967: ('0.09530233788432226',), 1340118952: ('0.09530233788432226',)} args : 1340119000 depend.output_id : 0 input_args_next_step : {1340119061: ('0.09530233788432226',), 1340119024: ('0.09530233788432226',), 1340119016: ('0.09530233788432226',), 1340119009: ('0.09530233788432226',), 1340119004: ('0.09530233788432226',), 1340119000: ('0.09530233788432226',), 1340118980: ()} output_args : {1340119061: ('0.09530233788432226',), 1340119024: ('0.09530233788432226',), 1340119016: ('0.09530233788432226',), 1340119009: ('0.09530233788432226',), 1340119004: ('0.09530233788432226',), 1340119000: ('0.09530233788432226',), 1340118980: ('0.09530233788432226',), 1340118976: ('0.09530233788432226',), 1340118970: ('0.09530233788432226',), 1340118967: ('0.09530233788432226',), 1340118952: ('0.09530233788432226',)} args : 1340118980 depend.output_id : 0 input_args_next_step : {1340119061: ('0.09530233788432226',), 1340119024: ('0.09530233788432226',), 1340119016: ('0.09530233788432226',), 1340119009: ('0.09530233788432226',), 1340119004: ('0.09530233788432226',), 1340119000: ('0.09530233788432226',), 1340118980: ('0.09530233788432226',), 1340118976: ()} output_args : {1340119061: ('0.09530233788432226',), 1340119024: ('0.09530233788432226',), 1340119016: ('0.09530233788432226',), 1340119009: ('0.09530233788432226',), 1340119004: ('0.09530233788432226',), 1340119000: ('0.09530233788432226',), 1340118980: ('0.09530233788432226',), 1340118976: ('0.09530233788432226',), 1340118970: ('0.09530233788432226',), 1340118967: ('0.09530233788432226',), 1340118952: ('0.09530233788432226',)} args : 1340118976 depend.output_id : 0 input_args_next_step : {1340119061: ('0.09530233788432226',), 1340119024: ('0.09530233788432226',), 1340119016: ('0.09530233788432226',), 1340119009: ('0.09530233788432226',), 1340119004: ('0.09530233788432226',), 1340119000: ('0.09530233788432226',), 1340118980: ('0.09530233788432226',), 1340118976: ('0.09530233788432226',), 1340118970: ()} output_args : {1340119061: ('0.09530233788432226',), 1340119024: ('0.09530233788432226',), 1340119016: ('0.09530233788432226',), 1340119009: ('0.09530233788432226',), 1340119004: ('0.09530233788432226',), 1340119000: ('0.09530233788432226',), 1340118980: ('0.09530233788432226',), 1340118976: ('0.09530233788432226',), 1340118970: ('0.09530233788432226',), 1340118967: ('0.09530233788432226',), 1340118952: ('0.09530233788432226',)} args : 1340118970 depend.output_id : 0 input_args_next_step : {1340119061: ('0.09530233788432226',), 1340119024: ('0.09530233788432226',), 1340119016: ('0.09530233788432226',), 1340119009: ('0.09530233788432226',), 1340119004: ('0.09530233788432226',), 1340119000: ('0.09530233788432226',), 1340118980: ('0.09530233788432226',), 1340118976: ('0.09530233788432226',), 1340118970: ('0.09530233788432226',), 1340118967: ()} output_args : {1340119061: ('0.09530233788432226',), 1340119024: ('0.09530233788432226',), 1340119016: ('0.09530233788432226',), 1340119009: ('0.09530233788432226',), 1340119004: ('0.09530233788432226',), 1340119000: ('0.09530233788432226',), 1340118980: ('0.09530233788432226',), 1340118976: ('0.09530233788432226',), 1340118970: ('0.09530233788432226',), 1340118967: ('0.09530233788432226',), 1340118952: ('0.09530233788432226',)} args : 1340118967 depend.output_id : 0 input_args_next_step : {1340119061: ('0.09530233788432226',), 1340119024: ('0.09530233788432226',), 1340119016: ('0.09530233788432226',), 1340119009: ('0.09530233788432226',), 1340119004: ('0.09530233788432226',), 1340119000: ('0.09530233788432226',), 1340118980: ('0.09530233788432226',), 1340118976: ('0.09530233788432226',), 1340118970: ('0.09530233788432226',), 1340118967: ('0.09530233788432226',), 1340118952: ()} output_args : {1340119061: ('0.09530233788432226',), 1340119024: ('0.09530233788432226',), 1340119016: ('0.09530233788432226',), 1340119009: ('0.09530233788432226',), 1340119004: ('0.09530233788432226',), 1340119000: ('0.09530233788432226',), 1340118980: ('0.09530233788432226',), 1340118976: ('0.09530233788432226',), 1340118970: ('0.09530233788432226',), 1340118967: ('0.09530233788432226',), 1340118952: ('0.09530233788432226',)} args : 1340118952 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {20922382: [{'mal_croppe': 20922414, 'cartonnette': 20922415, 'environnement': 20922416, 'plastique': 20922417, 'autre_refus': 20922418, 'Teint_Dans_La_Masse': 20922419, 'kraft': 20922420, 'flou': 20922421, 'metal': 20922422, 'Carton_brun': 20922423, 'papier': 20922424, 'Carton_gris': 20922425}]} input_args_next_step : {1340119061: ('0.09530233788432226',), 1340119024: ('0.09530233788432226',), 1340119016: ('0.09530233788432226',), 1340119009: ('0.09530233788432226',), 1340119004: ('0.09530233788432226',), 1340119000: ('0.09530233788432226',), 1340118980: ('0.09530233788432226',), 1340118976: ('0.09530233788432226',), 1340118970: ('0.09530233788432226',), 1340118967: ('0.09530233788432226',), 1340118952: ('0.09530233788432226',), 20922382: ()} output_args : {20922382: [{'mal_croppe': 20922414, 'cartonnette': 20922415, 'environnement': 20922416, 'plastique': 20922417, 'autre_refus': 20922418, 'Teint_Dans_La_Masse': 20922419, 'kraft': 20922420, 'flou': 20922421, 'metal': 20922422, 'Carton_brun': 20922423, 'papier': 20922424, 'Carton_gris': 20922425}]} args : 20922382 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :12, first value : ('0.09530233788432226',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20922382) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1340119061,1340119024,1340119016,1340119009,1340119004,1340119000,1340118980,1340118976,1340118970,1340118967,1340118952) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1340118952 begin to download photo : 1340118976 begin to download photo : 1340119004 begin to download photo : 1340119024 download finish for photo 1340118976 begin to download photo : 1340118980 download finish for photo 1340119024 begin to download photo : 1340119061 download finish for photo 1340118952 begin to download photo : 1340118967 download finish for photo 1340119004 begin to download photo : 1340119009 download finish for photo 1340119061 download finish for photo 1340118967 begin to download photo : 1340118970 download finish for photo 1340119009 begin to download photo : 1340119016 download finish for photo 1340118980 begin to download photo : 1340119000 download finish for photo 1340118970 download finish for photo 1340119000 download finish for photo 1340119016 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette209224141740736744/ length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P20922382_28-02-2025_10_59_04.pdf 20922414 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20922414 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209224141740736744 20922415 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20922415 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340118854: '1740736372_3005199_1340118517_928643cb0d99665efa554439ed0945c7_rle_crop_3689901842_0.png', 1340118911: '1740736393_3005434_1340118351_569e37170e5d68aebcbb282378e2090c_rle_crop_3689902792_0.png', 1340118956: '1740736432_3005930_1340118576_19a23855b3912378524e785214502f8e_rle_crop_3689903530_0.png', 1340118957: '1740736432_3005930_1340118576_19a23855b3912378524e785214502f8e_rle_crop_3689903529_0.png', 1340119013: '1740736474_3007593_1340118351_569e37170e5d68aebcbb282378e2090c_rle_crop_3689902792_0.png', 1340119085: '1740736574_3011042_1340118801_dd9c9f45e15c16f5adc1d306ab888bbc_rle_crop_3689905638_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/e953c9555766ea460ccb7a420a619379_85110293.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/5d4cbf990b7788f33a66182ef5633f37_31854218.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/e9162ce6298de515edb52643b86215ff_89908760.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/5d176782bc529e77e8e377b3db915c20_23864555.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/5d4cbf990b7788f33a66182ef5633f37_37265559.png change filename to text .imagette209224151740736744/ imagette209224151740736744/1740736474_3007593_1340118351_569e37170e5d68aebcbb282378e2090c_rle_crop_3689902792_0.png.png imagette209224151740736744/1740736393_3005434_1340118351_569e37170e5d68aebcbb282378e2090c_rle_crop_3689902792_0.png.png imagette209224151740736744/1740736372_3005199_1340118517_928643cb0d99665efa554439ed0945c7_rle_crop_3689901842_0.png.png imagette209224151740736744/1740736432_3005930_1340118576_19a23855b3912378524e785214502f8e_rle_crop_3689903529_0.png.png imagette209224151740736744/1740736574_3011042_1340118801_dd9c9f45e15c16f5adc1d306ab888bbc_rle_crop_3689905638_0.png.png imagette209224151740736744/1740736432_3005930_1340118576_19a23855b3912378524e785214502f8e_rle_crop_3689903530_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/5d7f10fb3f3743856d569e26385643aa_19068975.png imagette209224151740736744 20922417 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20922417 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340118922: '1740736393_3005434_1340118345_a9626157e9cfff16d7fa0a29f09fd803_rle_crop_3689902842_0.png', 1340118923: '1740736393_3005434_1340118335_72be47dc2b9fbedcf80ebfac66e3782e_rle_crop_3689903156_0.png', 1340118924: '1740736393_3005434_1340118335_72be47dc2b9fbedcf80ebfac66e3782e_rle_crop_3689903148_0.png', 1340118942: '1740736453_3006216_1340118715_548434e3909b4125b092a15eae6a2c62_rle_crop_3689903400_0.png', 1340119023: '1740736474_3007593_1340118345_a9626157e9cfff16d7fa0a29f09fd803_rle_crop_3689902842_0.png', 1340119025: '1740736474_3007593_1340118335_72be47dc2b9fbedcf80ebfac66e3782e_rle_crop_3689903156_0.png', 1340119029: '1740736474_3007593_1340118335_72be47dc2b9fbedcf80ebfac66e3782e_rle_crop_3689903148_0.png', 1340119098: '1740736574_3011042_1340118790_e6c6422b2462d69599e7227e311e6b1e_rle_crop_3689905956_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/8763516a607ee6e8064e0120ebed850a_79399496.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/117068933d88080bc7e2c8abeddc2783_22408720.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/301b65f5e3eaa6cc19d083e0c86ff426_60507167.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/27cb48585e523f84f8da4c671e44ba42_4679757.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/8763516a607ee6e8064e0120ebed850a_92535640.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/117068933d88080bc7e2c8abeddc2783_15279396.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/301b65f5e3eaa6cc19d083e0c86ff426_47996080.png change filename to text .imagette209224171740736745/ imagette209224171740736745/1740736474_3007593_1340118335_72be47dc2b9fbedcf80ebfac66e3782e_rle_crop_3689903148_0.png.png imagette209224171740736745/1740736474_3007593_1340118335_72be47dc2b9fbedcf80ebfac66e3782e_rle_crop_3689903156_0.png.png imagette209224171740736745/1740736393_3005434_1340118345_a9626157e9cfff16d7fa0a29f09fd803_rle_crop_3689902842_0.png.png imagette209224171740736745/1740736474_3007593_1340118345_a9626157e9cfff16d7fa0a29f09fd803_rle_crop_3689902842_0.png.png imagette209224171740736745/1740736574_3011042_1340118790_e6c6422b2462d69599e7227e311e6b1e_rle_crop_3689905956_0.png.png imagette209224171740736745/1740736393_3005434_1340118335_72be47dc2b9fbedcf80ebfac66e3782e_rle_crop_3689903156_0.png.png imagette209224171740736745/1740736393_3005434_1340118335_72be47dc2b9fbedcf80ebfac66e3782e_rle_crop_3689903148_0.png.png imagette209224171740736745/1740736453_3006216_1340118715_548434e3909b4125b092a15eae6a2c62_rle_crop_3689903400_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/9c4f89219219c4bf95fa2e1ae5e7fcee_36135168.png imagette209224171740736745 20922418 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20922418 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340118843: '1740736372_3005199_1340118500_93607b114ae405a84f73edf0bee4dae5_rle_crop_3689902231_0.png', 1340118844: '1740736372_3005199_1340118487_d0b97826f41ed69721dc510a0fc0ed4c_rle_crop_3689902373_0.png', 1340118900: '1740736393_3005434_1340118443_1df0cf0cc7e44ee95120d6d0b1166302_rle_crop_3689902532_0.png', 1340118902: '1740736393_3005434_1340118443_1df0cf0cc7e44ee95120d6d0b1166302_rle_crop_3689902535_0.png', 1340118934: '1740736453_3006216_1340118711_aeac56d90d407e8935c58f91d6c13016_rle_crop_3689903432_0.png', 1340118935: '1740736453_3006216_1340118711_aeac56d90d407e8935c58f91d6c13016_rle_crop_3689903434_0.png', 1340118946: '1740736432_3005930_1340118572_9eb4df2c9c1e81127ba890d429a9eccd_rle_crop_3689903560_0.png', 1340119008: '1740736474_3007593_1340118443_1df0cf0cc7e44ee95120d6d0b1166302_rle_crop_3689902532_0.png', 1340119010: '1740736474_3007593_1340118443_1df0cf0cc7e44ee95120d6d0b1166302_rle_crop_3689902535_0.png', 1340119072: '1740736574_3011042_1340118783_cb3cc0d9cf8d6d592bea44d287b2ba9b_rle_crop_3689905979_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/b2fce2609760d9fbd6e67e21c2ebd80e_72002102.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/52c6c0ad9f74bb7c40327c1ca191f1d9_51926552.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/5728ca9b32a4b9719e3b617d44c38950_54420531.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/833988e9f683a72b073c009c19a067d1_79828584.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/96a796b4df7dfb940290d3ae6e64a2f6_75927730.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/b128db97bd701c3339124084346ade7a_47837330.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/4ea4de65eb506f435061ee4c7af5c7f5_23528469.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/5728ca9b32a4b9719e3b617d44c38950_77400059.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/833988e9f683a72b073c009c19a067d1_40345405.png change filename to text .imagette209224181740736745/ imagette209224181740736745/1740736474_3007593_1340118443_1df0cf0cc7e44ee95120d6d0b1166302_rle_crop_3689902535_0.png.png imagette209224181740736745/1740736453_3006216_1340118711_aeac56d90d407e8935c58f91d6c13016_rle_crop_3689903434_0.png.png imagette209224181740736745/1740736453_3006216_1340118711_aeac56d90d407e8935c58f91d6c13016_rle_crop_3689903432_0.png.png imagette209224181740736745/1740736574_3011042_1340118783_cb3cc0d9cf8d6d592bea44d287b2ba9b_rle_crop_3689905979_0.png.png imagette209224181740736745/1740736372_3005199_1340118487_d0b97826f41ed69721dc510a0fc0ed4c_rle_crop_3689902373_0.png.png imagette209224181740736745/1740736393_3005434_1340118443_1df0cf0cc7e44ee95120d6d0b1166302_rle_crop_3689902535_0.png.png imagette209224181740736745/1740736474_3007593_1340118443_1df0cf0cc7e44ee95120d6d0b1166302_rle_crop_3689902532_0.png.png imagette209224181740736745/1740736372_3005199_1340118500_93607b114ae405a84f73edf0bee4dae5_rle_crop_3689902231_0.png.png imagette209224181740736745/1740736393_3005434_1340118443_1df0cf0cc7e44ee95120d6d0b1166302_rle_crop_3689902532_0.png.png imagette209224181740736745/1740736432_3005930_1340118572_9eb4df2c9c1e81127ba890d429a9eccd_rle_crop_3689903560_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/30aa904fd0d59004804023e17e6f716e_57858921.png imagette209224181740736745 20922420 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20922420 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340118861: '1740736372_3005199_1340118500_93607b114ae405a84f73edf0bee4dae5_rle_crop_3689902229_0.png', 1340118862: '1740736372_3005199_1340118497_373f739ba006fc977cc35236921b0248_rle_crop_3689902289_0.png', 1340118927: '1740736393_3005434_1340118351_569e37170e5d68aebcbb282378e2090c_rle_crop_3689902796_0.png', 1340118928: '1740736393_3005434_1340118345_a9626157e9cfff16d7fa0a29f09fd803_rle_crop_3689902840_0.png', 1340119039: '1740736474_3007593_1340118351_569e37170e5d68aebcbb282378e2090c_rle_crop_3689902796_0.png', 1340119040: '1740736474_3007593_1340118345_a9626157e9cfff16d7fa0a29f09fd803_rle_crop_3689902840_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/c91fb64642c9448b36155dd7beebaf51_74456193.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/170e039fa922615ea3cd4c5bf908b76f_61611794.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/6cd72bd4c1a90c26000188d87c03d45c_26531530.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/ed4dc7c94c45fc1f35a4c58a78d7920d_62351567.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/6cd72bd4c1a90c26000188d87c03d45c_12358325.png change filename to text .imagette209224201740736746/ imagette209224201740736746/1740736474_3007593_1340118351_569e37170e5d68aebcbb282378e2090c_rle_crop_3689902796_0.png.png imagette209224201740736746/1740736372_3005199_1340118500_93607b114ae405a84f73edf0bee4dae5_rle_crop_3689902229_0.png.png imagette209224201740736746/1740736393_3005434_1340118351_569e37170e5d68aebcbb282378e2090c_rle_crop_3689902796_0.png.png imagette209224201740736746/1740736372_3005199_1340118497_373f739ba006fc977cc35236921b0248_rle_crop_3689902289_0.png.png imagette209224201740736746/1740736474_3007593_1340118345_a9626157e9cfff16d7fa0a29f09fd803_rle_crop_3689902840_0.png.png imagette209224201740736746/1740736393_3005434_1340118345_a9626157e9cfff16d7fa0a29f09fd803_rle_crop_3689902840_0.png.png imagette209224211740736746/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/ed4dc7c94c45fc1f35a4c58a78d7920d_4205799.png imagette209224201740736746 20922421 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20922421 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette209224211740736746 20922422 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20922422 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340118965: '1740736432_3005930_1340118576_19a23855b3912378524e785214502f8e_rle_crop_3689903532_0.png'} change filename to text .imagette209224221740736746/ imagette209224221740736746/1740736432_3005930_1340118576_19a23855b3912378524e785214502f8e_rle_crop_3689903532_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/556a01fc4d38d6905246176b2a3689b0_80600039.png imagette209224221740736746 20922419 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20922419 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340118838: '1740736372_3005199_1340118508_f2aa001bcc5540aa111bdda16ad121fe_rle_crop_3689902115_0.png', 1340118897: '1740736393_3005434_1340118345_a9626157e9cfff16d7fa0a29f09fd803_rle_crop_3689902838_0.png', 1340119005: '1740736474_3007593_1340118345_a9626157e9cfff16d7fa0a29f09fd803_rle_crop_3689902838_0.png', 1340119069: '1740736574_3011042_1340118783_cb3cc0d9cf8d6d592bea44d287b2ba9b_rle_crop_3689905989_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/6212cb124f437522c87a3f35a183ae62_16457084.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/c9dbfae6157b3d322da177886fa0d0b6_96385252.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/c9dbfae6157b3d322da177886fa0d0b6_88157744.png change filename to text .imagette209224191740736746/ imagette209224191740736746/1740736372_3005199_1340118508_f2aa001bcc5540aa111bdda16ad121fe_rle_crop_3689902115_0.png.png imagette209224191740736746/1740736574_3011042_1340118783_cb3cc0d9cf8d6d592bea44d287b2ba9b_rle_crop_3689905989_0.png.png imagette209224191740736746/1740736393_3005434_1340118345_a9626157e9cfff16d7fa0a29f09fd803_rle_crop_3689902838_0.png.png imagette209224191740736746/1740736474_3007593_1340118345_a9626157e9cfff16d7fa0a29f09fd803_rle_crop_3689902838_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/abbb6caae1a646b04f0bd91d9256ebfe_50909672.png imagette209224191740736746 20922423 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20922423 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340118960: '1740736432_3005930_1340118722_d9d8b0137c9181f4193cd3862ba1e086_rle_crop_3689903163_0.png', 1340119097: '1740736574_3011042_1340118777_317b54e38ef0f0ad55120db28207c534_rle_crop_3689905998_0.png', 1340119096: '1740736574_3011042_1340118783_cb3cc0d9cf8d6d592bea44d287b2ba9b_rle_crop_3689905988_0.png', 1340119095: '1740736574_3011042_1340118783_cb3cc0d9cf8d6d592bea44d287b2ba9b_rle_crop_3689905986_0.png', 1340119094: '1740736574_3011042_1340118790_e6c6422b2462d69599e7227e311e6b1e_rle_crop_3689905955_0.png', 1340119093: '1740736574_3011042_1340118790_e6c6422b2462d69599e7227e311e6b1e_rle_crop_3689905953_0.png', 1340119088: '1740736574_3011042_1340118796_d376961f1b326b778c897d2a97a7ec41_rle_crop_3689905933_0.png', 1340119022: '1740736474_3007593_1340118351_569e37170e5d68aebcbb282378e2090c_rle_crop_3689902795_0.png', 1340119021: '1740736474_3007593_1340118356_75fc4cc4b90418a06fc154599d4397f5_rle_crop_3689902561_0.png', 1340119020: '1740736474_3007593_1340118356_75fc4cc4b90418a06fc154599d4397f5_rle_crop_3689902557_0.png', 1340118963: '1740736432_3005930_1340118572_9eb4df2c9c1e81127ba890d429a9eccd_rle_crop_3689903565_0.png', 1340118962: '1740736432_3005930_1340118576_19a23855b3912378524e785214502f8e_rle_crop_3689903537_0.png', 1340118961: '1740736432_3005930_1340118587_68dfaf51fa91ed911149deba9835a66c_rle_crop_3689903456_0.png', 1340118830: '1740736351_3004955_1340118440_dfe9c0ffaad55958d37cbffe02687dd8_rle_crop_3689901595_0.png', 1340118959: '1740736432_3005930_1340118722_d9d8b0137c9181f4193cd3862ba1e086_rle_crop_3689903162_0.png', 1340118939: '1740736453_3006216_1340118704_34cabfe9a92f8acab2c851ee8fff44be_rle_crop_3689903463_0.png', 1340118921: '1740736393_3005434_1340118351_569e37170e5d68aebcbb282378e2090c_rle_crop_3689902795_0.png', 1340118920: '1740736393_3005434_1340118356_75fc4cc4b90418a06fc154599d4397f5_rle_crop_3689902561_0.png', 1340118919: '1740736393_3005434_1340118356_75fc4cc4b90418a06fc154599d4397f5_rle_crop_3689902557_0.png', 1340118860: '1740736372_3005199_1340118487_d0b97826f41ed69721dc510a0fc0ed4c_rle_crop_3689902374_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/2dedeceb47318ffaa63f46293e2ed488_35451399.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/134c4d2b4401ca25e613bad2a66659a8_69681975.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/ffb5b48ec62e2d8eca1ad7e978500e21_15438474.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/7cf497ffc4bc3c509069611bf6e24772_69103032.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/eded91f178fad614bf5097b8a50678bc_42814512.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/18c15f8a4b6d81cfc71140c511c4c890_39810740.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/e8dfc41318b50b0d61d040c3aa0927da_71687002.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/36c0585e1d91015c74fcb8650dab5a7c_13266331.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/3d1223f60605bd0302bacb9b52116068_64706641.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/caf69336ac3b303993273ee8cfa8e8d6_71311468.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/bffc25c726fb859ccbf219612525fe30_87976275.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/a4ecef2f9e81b4244648eb9fcda0981d_38725326.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/3610e4d79c923edcaad17da048fe0403_5971346.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/de9563cb8eaea37002a9c391d7e62902_42971719.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/827e61072630ae4893f55a6ca8748e6e_82243696.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/a7e3b7809090f77231c9761be2bec95d_97155826.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/36c0585e1d91015c74fcb8650dab5a7c_66834220.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/3d1223f60605bd0302bacb9b52116068_46984877.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/caf69336ac3b303993273ee8cfa8e8d6_90217936.png change filename to text .imagette209224231740736746/ imagette209224231740736746/1740736574_3011042_1340118783_cb3cc0d9cf8d6d592bea44d287b2ba9b_rle_crop_3689905988_0.png.png imagette209224231740736746/1740736474_3007593_1340118356_75fc4cc4b90418a06fc154599d4397f5_rle_crop_3689902561_0.png.png imagette209224231740736746/1740736432_3005930_1340118722_d9d8b0137c9181f4193cd3862ba1e086_rle_crop_3689903162_0.png.png imagette209224231740736746/1740736351_3004955_1340118440_dfe9c0ffaad55958d37cbffe02687dd8_rle_crop_3689901595_0.png.png imagette209224231740736746/1740736393_3005434_1340118351_569e37170e5d68aebcbb282378e2090c_rle_crop_3689902795_0.png.png imagette209224231740736746/1740736574_3011042_1340118790_e6c6422b2462d69599e7227e311e6b1e_rle_crop_3689905955_0.png.png imagette209224231740736746/1740736432_3005930_1340118587_68dfaf51fa91ed911149deba9835a66c_rle_crop_3689903456_0.png.png imagette209224231740736746/1740736393_3005434_1340118356_75fc4cc4b90418a06fc154599d4397f5_rle_crop_3689902557_0.png.png imagette209224231740736746/1740736474_3007593_1340118356_75fc4cc4b90418a06fc154599d4397f5_rle_crop_3689902557_0.png.png imagette209224231740736746/1740736372_3005199_1340118487_d0b97826f41ed69721dc510a0fc0ed4c_rle_crop_3689902374_0.png.png imagette209224231740736746/1740736432_3005930_1340118572_9eb4df2c9c1e81127ba890d429a9eccd_rle_crop_3689903565_0.png.png imagette209224231740736746/1740736393_3005434_1340118356_75fc4cc4b90418a06fc154599d4397f5_rle_crop_3689902561_0.png.png imagette209224231740736746/1740736474_3007593_1340118351_569e37170e5d68aebcbb282378e2090c_rle_crop_3689902795_0.png.png imagette209224231740736746/1740736574_3011042_1340118777_317b54e38ef0f0ad55120db28207c534_rle_crop_3689905998_0.png.png imagette209224231740736746/1740736574_3011042_1340118790_e6c6422b2462d69599e7227e311e6b1e_rle_crop_3689905953_0.png.png imagette209224231740736746/1740736574_3011042_1340118796_d376961f1b326b778c897d2a97a7ec41_rle_crop_3689905933_0.png.png imagette209224231740736746/1740736453_3006216_1340118704_34cabfe9a92f8acab2c851ee8fff44be_rle_crop_3689903463_0.png.png imagette209224231740736746/1740736574_3011042_1340118783_cb3cc0d9cf8d6d592bea44d287b2ba9b_rle_crop_3689905986_0.png.png imagette209224231740736746/1740736432_3005930_1340118722_d9d8b0137c9181f4193cd3862ba1e086_rle_crop_3689903163_0.png.png imagette209224231740736746/1740736432_3005930_1340118576_19a23855b3912378524e785214502f8e_rle_crop_3689903537_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/7d0ad2f485904a00a7463b4ce25f5324_80245275.png imagette209224231740736746 20922425 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20922425 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1340118821: '1740736351_3004955_1340118527_9cef1327fc29211413ead919db0fd8db_rle_crop_3689901573_0.png', 1340118822: '1740736351_3004955_1340118429_3dd6fbf618e53f2adb6413935ff1c14f_rle_crop_3689901631_0.png', 1340118823: '1740736351_3004955_1340118422_26964e1eaa30254ef0eb4744beca6152_rle_crop_3689901853_0.png', 1340118846: '1740736372_3005199_1340118497_373f739ba006fc977cc35236921b0248_rle_crop_3689902297_0.png', 1340118847: '1740736372_3005199_1340118487_d0b97826f41ed69721dc510a0fc0ed4c_rle_crop_3689902376_0.png', 1340118908: '1740736393_3005434_1340118345_a9626157e9cfff16d7fa0a29f09fd803_rle_crop_3689902830_0.png', 1340118949: '1740736432_3005930_1340118598_f0cbce226868d00e966731c90992bcbb_rle_crop_3689903418_0.png', 1340118950: '1740736432_3005930_1340118587_68dfaf51fa91ed911149deba9835a66c_rle_crop_3689903453_0.png', 1340118951: '1740736432_3005930_1340118572_9eb4df2c9c1e81127ba890d429a9eccd_rle_crop_3689903559_0.png', 1340119012: '1740736474_3007593_1340118345_a9626157e9cfff16d7fa0a29f09fd803_rle_crop_3689902830_0.png', 1340119081: '1740736574_3011042_1340118777_317b54e38ef0f0ad55120db28207c534_rle_crop_3689906000_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/ad251769e0e8a0163adff4564f48e343_59788809.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/8c818448524e569ba13297c4ed72e2af_77719340.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/8355e36a9c325cd0062814ac266f124c_85825734.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/db8dc53cfb45d625ca3ef4bcc238759c_80475795.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/74c17fd193d850aa768e9a23f324f78a_15368413.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/9f7bb7b3e54b0cd39f383b26accda98b_24544204.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/b63298c90ad9d13a5c29952689524c3d_84204737.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/809264034deff059478dec435b767720_21620376.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/36f195951b7f71cb368d479552cc6069_74789791.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/9f7bb7b3e54b0cd39f383b26accda98b_78946088.png change filename to text .imagette209224251740736747/ imagette209224251740736747/1740736432_3005930_1340118587_68dfaf51fa91ed911149deba9835a66c_rle_crop_3689903453_0.png.png imagette209224251740736747/1740736372_3005199_1340118497_373f739ba006fc977cc35236921b0248_rle_crop_3689902297_0.png.png imagette209224251740736747/1740736432_3005930_1340118572_9eb4df2c9c1e81127ba890d429a9eccd_rle_crop_3689903559_0.png.png imagette209224251740736747/1740736351_3004955_1340118422_26964e1eaa30254ef0eb4744beca6152_rle_crop_3689901853_0.png.png imagette209224251740736747/1740736351_3004955_1340118429_3dd6fbf618e53f2adb6413935ff1c14f_rle_crop_3689901631_0.png.png imagette209224251740736747/1740736474_3007593_1340118345_a9626157e9cfff16d7fa0a29f09fd803_rle_crop_3689902830_0.png.png imagette209224251740736747/1740736393_3005434_1340118345_a9626157e9cfff16d7fa0a29f09fd803_rle_crop_3689902830_0.png.png imagette209224251740736747/1740736351_3004955_1340118527_9cef1327fc29211413ead919db0fd8db_rle_crop_3689901573_0.png.png imagette209224251740736747/1740736372_3005199_1340118487_d0b97826f41ed69721dc510a0fc0ed4c_rle_crop_3689902376_0.png.png imagette209224251740736747/1740736432_3005930_1340118598_f0cbce226868d00e966731c90992bcbb_rle_crop_3689903418_0.png.png imagette209224251740736747/1740736574_3011042_1340118777_317b54e38ef0f0ad55120db28207c534_rle_crop_3689906000_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/7ab457eda17498752352f5d31a4de30d_90602251.png imagette209224251740736747 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20922382 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20922426,20922427,20922428,20922429,20922430,20922431,20922432,20922433,20922434,20922435,20922436,20922437?tags=mal_croppe,cartonnette,environnement,plastique,autre_refus,Teint_Dans_La_Masse,kraft,flou,metal,Carton_brun,papier,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1340119061] : ('0.09530233788432226',) no score found for photo 1340119061 We are sending mail with results at report@fotonower.com args[1340119024] : ('0.09530233788432226',) no score found for photo 1340119024 We are sending mail with results at report@fotonower.com args[1340119016] : ('0.09530233788432226',) no score found for photo 1340119016 We are sending mail with results at report@fotonower.com args[1340119009] : ('0.09530233788432226',) no score found for photo 1340119009 We are sending mail with results at report@fotonower.com args[1340119004] : ('0.09530233788432226',) no score found for photo 1340119004 We are sending mail with results at report@fotonower.com args[1340119000] : ('0.09530233788432226',) no score found for photo 1340119000 We are sending mail with results at report@fotonower.com args[1340118980] : ('0.09530233788432226',) no score found for photo 1340118980 We are sending mail with results at report@fotonower.com args[1340118976] : ('0.09530233788432226',) no score found for photo 1340118976 We are sending mail with results at report@fotonower.com args[1340118970] : ('0.09530233788432226',) no score found for photo 1340118970 We are sending mail with results at report@fotonower.com args[1340118967] : ('0.09530233788432226',) no score found for photo 1340118967 We are sending mail with results at report@fotonower.com args[1340118952] : ('0.09530233788432226',) no score found for photo 1340118952 We are sending mail with results at report@fotonower.com refus_total : 0.09530233788432226 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20922382 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 1000 start upload file to ovh https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20922382_28-02-2025_10_59_04.pdf results_Auto_P20922382_28-02-2025_10_59_04.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20922382_28-02-2025_10_59_04.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20922382','results_Auto_P20922382_28-02-2025_10_59_04.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20922382_28-02-2025_10_59_04.pdf','pdf','','0.28','0.09530233788432226') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20922382]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1340119061, 1340119024, 1340119016, 1340119009, 1340119004, 1340119000, 1340118980, 1340118976, 1340118970, 1340118967, 1340118952] map_info['map_portfolio_photo'] : {20922382: [1340119061, 1340119024, 1340119016, 1340119009, 1340119004, 1340119000, 1340118980, 1340118976, 1340118970, 1340118967, 1340118952, 1340118903, 1340118887, 1340118883, 1340118877, 1340118850, 1340118840, 1340118834, 1340118827, 1340118809, 1340118801, 1340118796, 1340118790, 1340118783, 1340118777, 1340118753, 1340118747, 1340118744, 1340118742, 1340118722, 1340118715, 1340118711, 1340118709, 1340118704, 1340118602, 1340118598, 1340118587, 1340118576, 1340118572, 1340118527, 1340118517, 1340118508, 1340118500, 1340118497, 1340118487, 1340118443, 1340118440, 1340118435, 1340118429, 1340118422, 1340118362, 1340118356, 1340118351, 1340118346, 1340118345, 1340118335, 1340118078, 1340118075, 1340118071]} final : False mtd_id 4302 list_pids : [1340119061, 1340119024, 1340119016, 1340119009, 1340119004, 1340119000, 1340118980, 1340118976, 1340118970, 1340118967, 1340118952] Looping around the photos to save general results len do output : 0 before output type Used above Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340119061', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340119024', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340119016', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340119009', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340119004', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340119000', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340118980', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340118976', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340118970', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340118967', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340118952', None, None, None, None, None, '2623241') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20922382', '1340119061', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340119024', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340119016', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340119009', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340119004', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340119000', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340118980', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340118976', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340118970', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340118967', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340118952', None, None, None, None, None, '2623241')] time used for this insertion : 0.013342142105102539 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.9591052532196045 time spend to save output : 0.013530492782592773 total time spend for step 4 : 4.972635746002197 step5:split_time_score Fri Feb 28 10:59:09 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['20922382'] We expect there is only one output and this part is used while all output are not tuple or array Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 1 : VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : [('20922382',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20922382) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1340119024: {'path': 'temp/1740736744_338929_1340119024_e3e72496b61c6be6edf74ae18c5d24d9.jpg', 'extension': 'jpg'}, 1340119061: {'path': 'temp/1740736744_338929_1340119061_1219f1d9e42b5f3ce433386687a5ca29.jpg', 'extension': 'jpg'}, 1340118952: {'path': 'temp/1740736744_338929_1340118952_6545f570af2499412f3e17b010f6d6fa.jpg', 'extension': 'jpg'}, 1340118967: {'path': 'temp/1740736744_338929_1340118967_85167b6e379f4b0ddfb6092b033fafaa.jpg', 'extension': 'jpg'}, 1340118970: {'path': 'temp/1740736744_338929_1340118970_c1cbdd9d96d69fbc5fa0b0c47600ebb8.jpg', 'extension': 'jpg'}, 1340118976: {'path': 'temp/1740736744_338929_1340118976_575b05a1dda60c558961c86fe14b6455.jpg', 'extension': 'jpg'}, 1340118980: {'path': 'temp/1740736744_338929_1340118980_e41682569795ed11e605b282c4f13063.jpg', 'extension': 'jpg'}, 1340119000: {'path': 'temp/1740736744_338929_1340119000_0bcbb06a1a3ba55b493c5607dc6b2bbf.jpg', 'extension': 'jpg'}, 1340119004: {'path': 'temp/1740736744_338929_1340119004_c41d086acba2adb8539a92544eddf02c.jpg', 'extension': 'jpg'}, 1340119009: {'path': 'temp/1740736744_338929_1340119009_fa14189aa5c421092d4e5ee454d48260.jpg', 'extension': 'jpg'}, 1340119016: {'path': 'temp/1740736744_338929_1340119016_ab53d91cc14de1da7eec95d97362d2fd.jpg', 'extension': 'jpg'}} map_subphoto_mainphoto : {} begin split time score SELECT app_name, token FROM MTRUser.mtr_app_api_token WHERE mtr_user_id=979 AND app_name="token_split_time_score" AND expire_at > NOW() select distinct dp.name from MTRPhoto.dashboard_entry_day ded, MTRPhoto.dashboard_places dp, MTRPhoto.dashboard_results dr where ded.dashboard_place_id = dp.id and ded.last_run_id = dr.dashboard_run_id and dp.id = ded.dashboard_place_id and dr.mtr_portfolio_id = 20922382; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 20922382 group by h (('10', 59),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=20922382 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (20922382) AND cps.thcl in (861) order by cps.score desc LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (20922382) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28022025 20922382 Nombre de photos uploadées : 59 / 23040 (0%) 28022025 20922382 Nombre de photos taguées (types de déchets): 0 / 59 (0%) 28022025 20922382 Nombre de photos taguées (volume) : 0 / 59 (0%) [{'photo_id': 1340118078, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/eaf531cc6d2bf2114fbf02607a420be4.jpg', 'username': None, 'uploaded_at': 1740735972, 'text': 'image_28022025_10_45_05_10165.jpg'}, {'photo_id': 1340118075, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/93b80786963d50c3d0a42738abf5ca6e.jpg', 'username': None, 'uploaded_at': 1740735972, 'text': 'image_28022025_10_45_14_9123.jpg'}, {'photo_id': 1340118071, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/8eeb8c18c842af90c06823e55edb1a6b.jpg', 'username': None, 'uploaded_at': 1740735972, 'text': 'image_28022025_10_45_44_10135.jpg'}, {'photo_id': 1340118362, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/28/7703b3213c1e15ecb3c3e5ff83583ef0.jpg', 'username': None, 'uploaded_at': 1740736032, 'text': 'image_28022025_10_45_55_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 7.867813110351562e-06 ??????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002824544906616211 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20922382, '2025-02-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1629471,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02313089370727539 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1629471 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1629471, 'dashboard_run_id': 1638310, 'mtr_portfolio_id': 20920542, 'dashboard_result_id': 9131279, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20920542_28-02-2025_10_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20920547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20920548, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20920549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20920550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20920551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20920552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20920553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20920554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20920555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20920556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20920557, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20920558, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1638310, 'mtr_portfolio_id': 20921078, 'dashboard_result_id': 9131280, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20921078_28-02-2025_10_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20921086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20921087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20921088, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20921089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20921090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20921091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20921092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20921093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20921094, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20921095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20921096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20921097, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1638310, 'mtr_portfolio_id': 20921670, 'dashboard_result_id': 9131281, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20921670_28-02-2025_10_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20921678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20921679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20921680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20921681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20921682, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20921683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20921684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20921685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20921686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20921687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20921688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20921689, 'pht': 3726}}"}, {'dashboat_entry_day': 1629471, 'dashboard_run_id': 1638310, 'mtr_portfolio_id': 20922382, 'dashboard_result_id': 9131282, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20922382_28-02-2025_10_57_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20922414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20922415, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20922416, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20922417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20922418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20922419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20922420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20922421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20922422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20922423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20922424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20922425, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20920542 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2623031, 'mtr_portfolio_id': 20920542, 'created_at': datetime.datetime(2025, 2, 28, 10, 18, 57), 'result': '0.08789036432563398', 'result_long': None, 'result_double': None}] Qualite : 0.08789036432563398 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20920542 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20920542_28-02-2025_10_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20920542 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20920542_28-02-2025_10_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20920547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20920548, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20920549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20920550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20920551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20920552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20920553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20920554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20920555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20920556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20920557, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20920558, 'pht': 3726}}" where mtr_portfolio_id = 20920542 and dashboard_run_id = 1638310 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20920542 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9131279, 0.08789036432563398, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20920542_28-02-2025_10_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 20920547, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20920548, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20920549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20920550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20920551, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20920552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20920553, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20920554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20920555, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20920556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20920557, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20920558, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20921078 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2623083, 'mtr_portfolio_id': 20921078, 'created_at': datetime.datetime(2025, 2, 28, 10, 32, 59), 'result': '0.06747455878631768', 'result_long': None, 'result_double': None}] Qualite : 0.06747455878631768 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20921078 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20921078_28-02-2025_10_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20921078 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20921078_28-02-2025_10_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20921086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20921087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20921088, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20921089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20921090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20921091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20921092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20921093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20921094, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20921095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20921096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20921097, 'pht': 3726}}" where mtr_portfolio_id = 20921078 and dashboard_run_id = 1638310 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20921078 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9131280, 0.06747455878631768, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20921078_28-02-2025_10_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20921086, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20921087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20921088, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20921089, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20921090, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20921091, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20921092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20921093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20921094, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20921095, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20921096, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20921097, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20921670 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2623140, 'mtr_portfolio_id': 20921670, 'created_at': datetime.datetime(2025, 2, 28, 10, 48, 57), 'result': '0.07281981865086648', 'result_long': None, 'result_double': None}] Qualite : 0.07281981865086648 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20921670 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20921670_28-02-2025_10_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20921670 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20921670_28-02-2025_10_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20921678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20921679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20921680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20921681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20921682, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20921683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20921684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20921685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20921686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20921687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20921688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20921689, 'pht': 3726}}" where mtr_portfolio_id = 20921670 and dashboard_run_id = 1638310 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20921670 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9131281, 0.07281981865086648, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20921670_28-02-2025_10_48_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20921678, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20921679, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20921680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20921681, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20921682, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20921683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20921684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20921685, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20921686, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20921687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20921688, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20921689, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 20922382 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2623241, 'mtr_portfolio_id': 20922382, 'created_at': datetime.datetime(2025, 2, 28, 10, 59), 'result': '0.09530233788432226', 'result_long': None, 'result_double': None}] Qualite : 0.09530233788432226 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20922382 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20922382_28-02-2025_10_59_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20922382 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20922382_28-02-2025_10_59_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20922414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20922415, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20922416, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20922417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20922418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20922419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20922420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20922421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20922422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20922423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20922424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20922425, 'pht': 3726}}" where mtr_portfolio_id = 20922382 and dashboard_run_id = 1638310 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20922382 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9131282, 0.09530233788432226, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20922382_28-02-2025_10_59_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20922414, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20922415, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20922416, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20922417, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20922418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20922419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20922420, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20922421, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20922422, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20922423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20922424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20922425, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20920542,20921078,20921670,20922382) result : ((1340109595,), (1340109604,), (1340109616,), (1340109619,), (1340109654,), (1340109659,), (1340109663,), (1340109665,), (1340109670,), (1340109695,), (1340109700,), (1340109704,), (1340109709,), (1340109735,), (1340109739,), (1340109743,), (1340109756,), (1340109760,), (1340109867,), (1340109884,), (1340109891,), (1340109903,), (1340109912,), (1340109948,), (1340109969,), (1340110050,), (1340110157,), (1340110161,), (1340110880,), (1340110885,), (1340110891,), (1340110895,), (1340111134,), (1340111147,), (1340111150,), (1340111157,), (1340111163,), (1340111239,), (1340111317,), (1340111320,), (1340111323,), (1340111326,), (1340111373,), (1340111376,), (1340111379,), (1340111382,), (1340111391,), (1340111396,), (1340111435,), (1340111439,), (1340111443,), (1340111493,), (1340111497,), (1340111500,), (1340111527,), (1340111624,), (1340111695,), (1340112455,), (1340112522,), (1340112550,), (1340112719,), (1340112727,), (1340112732,), (1340112770,), (1340112872,), (1340112878,), (1340112902,), (1340112906,), (1340112914,), (1340112921,), (1340112926,), (1340113054,), (1340112962,), (1340112965,), (1340113040,), (1340113045,), (1340113049,), (1340113086,), (1340113088,), (1340113091,), (1340113095,), (1340113156,), (1340113159,), (1340113162,), (1340113165,), (1340113169,), (1340113177,), (1340113503,), (1340113591,), (1340113598,), (1340113608,), (1340113800,), (1340113805,), (1340113814,), (1340113820,), (1340113825,), (1340113833,), (1340113895,), (1340113949,), (1340113961,), (1340113968,), (1340113975,), (1340114046,), (1340114060,), (1340114064,), (1340114067,), (1340114075,), (1340114080,), (1340114092,), (1340114098,), (1340114104,), (1340114110,), (1340114113,), (1340114146,), (1340114149,), (1340114152,), (1340114156,), (1340114159,), (1340114201,), (1340114209,), (1340114223,), (1340114229,), (1340114235,), (1340114280,), (1340114284,), (1340114288,), (1340114293,), (1340114297,), (1340114327,), (1340114331,), (1340114334,), (1340114339,), (1340114366,), (1340114372,), (1340114390,), (1340114396,), (1340114400,), (1340114420,), (1340114505,), (1340114508,), (1340114512,), (1340114571,), (1340114658,), (1340114665,), (1340114669,), (1340114674,), (1340114680,), (1340114687,), (1340114740,), (1340114707,), (1340114713,), (1340114723,), (1340114728,), (1340114733,), (1340114770,), (1340114774,), (1340114778,), (1340114782,), (1340114785,), (1340114789,), (1340115446,), (1340115528,), (1340115616,), (1340115706,), (1340116021,), (1340116025,), (1340116029,), (1340116071,), (1340116155,), (1340116243,), (1340116361,), (1340116400,), (1340116441,), (1340116640,), (1340116643,), (1340116646,), (1340116651,), (1340116659,), (1340116665,), (1340116682,), (1340116683,), (1340116686,), (1340116692,), (1340116697,), (1340116752,), (1340116760,), (1340116767,), (1340116778,), (1340116786,), (1340116933,), (1340117480,), (1340117485,), (1340117488,), (1340117710,), (1340117713,), (1340117717,), (1340117721,), (1340117723,), (1340117727,), (1340117758,), (1340117767,), (1340117771,), (1340117773,), (1340117781,), (1340117856,), (1340117859,), (1340117861,), (1340117866,), (1340117870,), (1340117895,), (1340117898,), (1340117901,), (1340117905,), (1340117913,), (1340117926,), (1340117961,), (1340117967,), (1340117978,), (1340117982,), (1340118024,), (1340118028,), (1340118031,), (1340118035,), (1340118037,), (1340118041,), (1340118101,), (1340118071,), (1340118075,), (1340118078,), (1340118335,), (1340118345,), (1340118346,), (1340118351,), (1340118356,), (1340118362,), (1340118422,), (1340118429,), (1340118435,), (1340118440,), (1340118443,), (1340118487,), (1340118497,), (1340118500,), (1340118508,), (1340118517,), (1340118527,), (1340118572,), (1340118576,), (1340118587,), (1340118598,), (1340118602,), (1340118704,), (1340118709,), (1340118711,), (1340118715,), (1340118722,), (1340118742,), (1340118744,), (1340118747,), (1340118753,), (1340118777,), (1340118783,), (1340118790,), (1340118796,), (1340118801,), (1340118809,), (1340118827,), (1340118834,), (1340118840,), (1340118850,), (1340118877,), (1340118883,), (1340118887,), (1340118903,), (1340118952,), (1340118967,), (1340118970,), (1340118976,), (1340118980,), (1340119000,), (1340119004,), (1340119009,), (1340119016,), (1340119024,), (1340119061,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28022025': {'nb_upload': 59, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20922382]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1340119061, 1340119024, 1340119016, 1340119009, 1340119004, 1340119000, 1340118980, 1340118976, 1340118970, 1340118967, 1340118952] map_info['map_portfolio_photo'] : {20922382: [1340119061, 1340119024, 1340119016, 1340119009, 1340119004, 1340119000, 1340118980, 1340118976, 1340118970, 1340118967, 1340118952, 1340118903, 1340118887, 1340118883, 1340118877, 1340118850, 1340118840, 1340118834, 1340118827, 1340118809, 1340118801, 1340118796, 1340118790, 1340118783, 1340118777, 1340118753, 1340118747, 1340118744, 1340118742, 1340118722, 1340118715, 1340118711, 1340118709, 1340118704, 1340118602, 1340118598, 1340118587, 1340118576, 1340118572, 1340118527, 1340118517, 1340118508, 1340118500, 1340118497, 1340118487, 1340118443, 1340118440, 1340118435, 1340118429, 1340118422, 1340118362, 1340118356, 1340118351, 1340118346, 1340118345, 1340118335, 1340118078, 1340118075, 1340118071]} final : True mtd_id 4302 list_pids : [1340119061, 1340119024, 1340119016, 1340119009, 1340119004, 1340119000, 1340118980, 1340118976, 1340118970, 1340118967, 1340118952] Looping around the photos to save general results len do output : 1 /20922382Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340119061', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340119024', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340119016', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340119009', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340119004', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340119000', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340118980', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340118976', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340118970', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340118967', None, None, None, None, None, '2623241') ('4302', None, None, None, None, None, None, None, '2623241') ('4302', '20922382', '1340118952', None, None, None, None, None, '2623241') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20922382', 'None', None, None, None, None, '2623241'), ('4302', '20922382', '1340119061', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340119024', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340119016', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340119009', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340119004', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340119000', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340118980', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340118976', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340118970', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340118967', None, None, None, None, None, '2623241'), ('4302', '20922382', '1340118952', None, None, None, None, None, '2623241')] time used for this insertion : 0.013967275619506836 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3438417911529541 time spend to save output : 0.014234542846679688 total time spend for step 5 : 0.3580763339996338 caffe_path_current : About to save ! 2 After save, about to update current ! ret : 2 len(input) + len(total_photo_id_missing) : 1 set_done_treatment DELETE from MTRPhoto.mtr_datou_current where id in (2623241) 2.07user 2.24system 0:14.88elapsed 29%CPU (0avgtext+0avgdata 159440maxresident)k 216inputs+16392outputs (0major+71692minor)pagefaults 0swaps