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 : 775087 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 (4238519) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4238519) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29491177 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4238519'] with mtr_portfolio_ids : ['29491177'] and first list_photo_ids : [] new path : /proc/775087/ Name: python3 Umask: 0002 State: R (running) Tgid: 775087 Ngid: 0 Pid: 775087 PPid: 775086 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 775087 NSpid: 775087 NSpgid: 774464 NSsid: 774464 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104916 kB VmRSS: 104916 kB RssAnon: 66292 kB RssFile: 38624 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 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: 46 nonvoluntary_ctxt_switches: 92 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '775087', 'Ngid': '0', 'Pid': '775087', 'PPid': '775086', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '775087', 'NSpid': '775087', 'NSpgid': '774464', 'NSsid': '774464', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104916 kB', 'VmRSS': '104916 kB', 'RssAnon': '66292 kB', 'RssFile': '38624 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', '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': '46', 'nonvoluntary_ctxt_switches': '92'} ('datou_batch_current', '775087', '1113364', '0', '1113364', '872092', '104916', b'', 'marlene', '4238519') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29491177) 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 (4238519 ) ) 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 (29491177) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1399755878, 'portfolio_id': 29491177}, {'photo_id': 1399755877, 'portfolio_id': 29491177}, {'photo_id': 1399755875, 'portfolio_id': 29491177}, {'photo_id': 1399755873, 'portfolio_id': 29491177}, {'photo_id': 1399755871, 'portfolio_id': 29491177}, {'photo_id': 1399755869, 'portfolio_id': 29491177}, {'photo_id': 1399755861, 'portfolio_id': 29491177}, {'photo_id': 1399755859, 'portfolio_id': 29491177}, {'photo_id': 1399755857, 'portfolio_id': 29491177}, {'photo_id': 1399755854, 'portfolio_id': 29491177}, {'photo_id': 1399755851, 'portfolio_id': 29491177}, {'photo_id': 1399755850, 'portfolio_id': 29491177}, {'photo_id': 1399755836, 'portfolio_id': 29491177}, {'photo_id': 1399755831, 'portfolio_id': 29491177}, {'photo_id': 1399755827, 'portfolio_id': 29491177}, {'photo_id': 1399755823, 'portfolio_id': 29491177}, {'photo_id': 1399755821, 'portfolio_id': 29491177}, {'photo_id': 1399755819, 'portfolio_id': 29491177}, {'photo_id': 1399755803, 'portfolio_id': 29491177}, {'photo_id': 1399755802, 'portfolio_id': 29491177}, {'photo_id': 1399755789, 'portfolio_id': 29491177}, {'photo_id': 1399755788, 'portfolio_id': 29491177}, {'photo_id': 1399755787, 'portfolio_id': 29491177}, {'photo_id': 1399755772, 'portfolio_id': 29491177}, {'photo_id': 1399755771, 'portfolio_id': 29491177}, {'photo_id': 1399755768, 'portfolio_id': 29491177}, {'photo_id': 1399755765, 'portfolio_id': 29491177}, {'photo_id': 1399755763, 'portfolio_id': 29491177}, {'photo_id': 1399755761, 'portfolio_id': 29491177}, {'photo_id': 1399755735, 'portfolio_id': 29491177}, {'photo_id': 1399755732, 'portfolio_id': 29491177}, {'photo_id': 1399755731, 'portfolio_id': 29491177}, {'photo_id': 1399755730, 'portfolio_id': 29491177}, {'photo_id': 1399755729, 'portfolio_id': 29491177}, {'photo_id': 1399755715, 'portfolio_id': 29491177}, {'photo_id': 1399755713, 'portfolio_id': 29491177}, {'photo_id': 1399755711, 'portfolio_id': 29491177}, {'photo_id': 1399755710, 'portfolio_id': 29491177}, {'photo_id': 1399755709, 'portfolio_id': 29491177}, {'photo_id': 1399755708, 'portfolio_id': 29491177}, {'photo_id': 1399755690, 'portfolio_id': 29491177}, {'photo_id': 1399755689, 'portfolio_id': 29491177}, {'photo_id': 1399755688, 'portfolio_id': 29491177}, {'photo_id': 1399755687, 'portfolio_id': 29491177}, {'photo_id': 1399755666, 'portfolio_id': 29491177}, {'photo_id': 1399755665, 'portfolio_id': 29491177}, {'photo_id': 1399755664, 'portfolio_id': 29491177}, {'photo_id': 1399755663, 'portfolio_id': 29491177}, {'photo_id': 1399755650, 'portfolio_id': 29491177}, {'photo_id': 1399755649, 'portfolio_id': 29491177}, {'photo_id': 1399755646, 'portfolio_id': 29491177}, {'photo_id': 1399755645, 'portfolio_id': 29491177}, {'photo_id': 1399755644, 'portfolio_id': 29491177}, {'photo_id': 1399755643, 'portfolio_id': 29491177}, {'photo_id': 1399755630, 'portfolio_id': 29491177}, {'photo_id': 1399755629, 'portfolio_id': 29491177}, {'photo_id': 1399755628, 'portfolio_id': 29491177}, {'photo_id': 1399755606, 'portfolio_id': 29491177}, {'photo_id': 1399755587, 'portfolio_id': 29491177}, {'photo_id': 1399755586, 'portfolio_id': 29491177}, {'photo_id': 1399755563, 'portfolio_id': 29491177}] map_portfolio_id_photo_id: {29491177: [1399755878, 1399755877, 1399755875, 1399755873, 1399755871, 1399755869, 1399755861, 1399755859, 1399755857, 1399755854, 1399755851, 1399755850, 1399755836, 1399755831, 1399755827, 1399755823, 1399755821, 1399755819, 1399755803, 1399755802, 1399755789, 1399755788, 1399755787, 1399755772, 1399755771, 1399755768, 1399755765, 1399755763, 1399755761, 1399755735, 1399755732, 1399755731, 1399755730, 1399755729, 1399755715, 1399755713, 1399755711, 1399755710, 1399755709, 1399755708, 1399755690, 1399755689, 1399755688, 1399755687, 1399755666, 1399755665, 1399755664, 1399755663, 1399755650, 1399755649, 1399755646, 1399755645, 1399755644, 1399755643, 1399755630, 1399755629, 1399755628, 1399755606, 1399755587, 1399755586, 1399755563]} ##### 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.019255399703979492 #### 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 Wed Dec 17 07:59:57 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 (29491177) 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 : 29491177 get user id for portfolio 29491177 get sub ptf for main ptf 29491177, type 3726 and hashtags ['kraft', 'flou', 'autre_refus', 'Teint_Dans_La_Masse', 'papier', 'environnement', 'mal_croppe', 'plastique', 'cartonnette', 'metal', 'Carton_gris', 'Carton_brun'] 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`=29491177 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','flou','autre_refus','Teint_Dans_La_Masse','papier','environnement','mal_croppe','plastique','cartonnette','metal','Carton_gris','Carton_brun')) 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`=29491177 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','flou','autre_refus','Teint_Dans_La_Masse','papier','environnement','mal_croppe','plastique','cartonnette','metal','Carton_gris','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 29491177, 'sub_port_id': 29491180, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20108562, 'last_updated_at': datetime.datetime(2025, 12, 17, 7, 59, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 7, 59, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 7, 48, 59)}, 'plastique': {'main_port_id': 29491177, 'sub_port_id': 29491181, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20108563, 'last_updated_at': datetime.datetime(2025, 12, 17, 7, 59, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 7, 59, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 7, 48, 59)}, 'Carton_gris': {'main_port_id': 29491177, 'sub_port_id': 29491182, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20108564, 'last_updated_at': datetime.datetime(2025, 12, 17, 7, 59, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 7, 59, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 7, 48, 59)}, 'autre_refus': {'main_port_id': 29491177, 'sub_port_id': 29491183, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20108565, 'last_updated_at': datetime.datetime(2025, 12, 17, 7, 59, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 7, 59, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 7, 48, 59)}, 'flou': {'main_port_id': 29491177, 'sub_port_id': 29491184, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20108566, 'last_updated_at': datetime.datetime(2025, 12, 17, 7, 59, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 7, 59, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 7, 48, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 29491177, 'sub_port_id': 29491185, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20108567, 'last_updated_at': datetime.datetime(2025, 12, 17, 7, 59, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 7, 59, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 7, 48, 59)}, 'Carton_brun': {'main_port_id': 29491177, 'sub_port_id': 29491186, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20108568, 'last_updated_at': datetime.datetime(2025, 12, 17, 7, 59, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 7, 59, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 7, 48, 59)}, 'environnement': {'main_port_id': 29491177, 'sub_port_id': 29491187, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20108569, 'last_updated_at': datetime.datetime(2025, 12, 17, 7, 59, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 7, 59, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 7, 48, 59)}, 'mal_croppe': {'main_port_id': 29491177, 'sub_port_id': 29491188, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20108570, 'last_updated_at': datetime.datetime(2025, 12, 17, 7, 59, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 7, 59, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 7, 48, 59)}, 'kraft': {'main_port_id': 29491177, 'sub_port_id': 29491189, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20108571, 'last_updated_at': datetime.datetime(2025, 12, 17, 7, 59, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 7, 59, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 7, 48, 59)}, 'papier': {'main_port_id': 29491177, 'sub_port_id': 29491190, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20108572, 'last_updated_at': datetime.datetime(2025, 12, 17, 7, 59, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 7, 59, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 7, 48, 59)}, 'metal': {'main_port_id': 29491177, 'sub_port_id': 29491191, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20108573, 'last_updated_at': datetime.datetime(2025, 12, 17, 7, 59, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 7, 59, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 7, 48, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29491180 , 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=29491177 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 (29491180) result : ((1399755672,), (1399755795,), (1399755796,), (1399756117,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29491177) result : ((1399755563,), (1399755586,), (1399755587,), (1399755606,), (1399755628,), (1399755629,), (1399755630,), (1399755643,), (1399755644,), (1399755645,), (1399755646,), (1399755649,), (1399755650,), (1399755663,), (1399755664,), (1399755665,), (1399755666,), (1399755687,), (1399755688,), (1399755689,), (1399755690,), (1399755708,), (1399755709,), (1399755710,), (1399755711,), (1399755713,), (1399755715,), (1399755729,), (1399755730,), (1399755731,), (1399755732,), (1399755735,), (1399755761,), (1399755763,), (1399755765,), (1399755768,), (1399755771,), (1399755772,), (1399755787,), (1399755788,), (1399755789,), (1399755802,), (1399755803,), (1399755819,), (1399755821,), (1399755823,), (1399755827,), (1399755831,), (1399755836,), (1399755850,), (1399755851,), (1399755854,), (1399755857,), (1399755859,), (1399755861,), (1399755869,), (1399755871,), (1399755873,), (1399755875,), (1399755877,), (1399755878,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29491181 , 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=29491177 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 (29491181) result : ((1399755662,), (1399755781,), (1399755782,), (1399755799,), (1399755800,), (1399755833,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29491177) result : ((1399755563,), (1399755586,), (1399755587,), (1399755606,), (1399755628,), (1399755629,), (1399755630,), (1399755643,), (1399755644,), (1399755645,), (1399755646,), (1399755649,), (1399755650,), (1399755663,), (1399755664,), (1399755665,), (1399755666,), (1399755687,), (1399755688,), (1399755689,), (1399755690,), (1399755708,), (1399755709,), (1399755710,), (1399755711,), (1399755713,), (1399755715,), (1399755729,), (1399755730,), (1399755731,), (1399755732,), (1399755735,), (1399755761,), (1399755763,), (1399755765,), (1399755768,), (1399755771,), (1399755772,), (1399755787,), (1399755788,), (1399755789,), (1399755802,), (1399755803,), (1399755819,), (1399755821,), (1399755823,), (1399755827,), (1399755831,), (1399755836,), (1399755850,), (1399755851,), (1399755854,), (1399755857,), (1399755859,), (1399755861,), (1399755869,), (1399755871,), (1399755873,), (1399755875,), (1399755877,), (1399755878,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29491182 , 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=29491177 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 (29491182) result : ((1399755779,), (1399755780,), (1399755872,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29491177) result : ((1399755563,), (1399755586,), (1399755587,), (1399755606,), (1399755628,), (1399755629,), (1399755630,), (1399755643,), (1399755644,), (1399755645,), (1399755646,), (1399755649,), (1399755650,), (1399755663,), (1399755664,), (1399755665,), (1399755666,), (1399755687,), (1399755688,), (1399755689,), (1399755690,), (1399755708,), (1399755709,), (1399755710,), (1399755711,), (1399755713,), (1399755715,), (1399755729,), (1399755730,), (1399755731,), (1399755732,), (1399755735,), (1399755761,), (1399755763,), (1399755765,), (1399755768,), (1399755771,), (1399755772,), (1399755787,), (1399755788,), (1399755789,), (1399755802,), (1399755803,), (1399755819,), (1399755821,), (1399755823,), (1399755827,), (1399755831,), (1399755836,), (1399755850,), (1399755851,), (1399755854,), (1399755857,), (1399755859,), (1399755861,), (1399755869,), (1399755871,), (1399755873,), (1399755875,), (1399755877,), (1399755878,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29491183 , 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=29491177 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 (29491183) result : ((1399755671,), (1399755778,), (1399755793,), (1399756111,), (1399756112,), (1399756113,), (1399756114,), (1399756115,), (1399756116,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29491177) result : ((1399755563,), (1399755586,), (1399755587,), (1399755606,), (1399755628,), (1399755629,), (1399755630,), (1399755643,), (1399755644,), (1399755645,), (1399755646,), (1399755649,), (1399755650,), (1399755663,), (1399755664,), (1399755665,), (1399755666,), (1399755687,), (1399755688,), (1399755689,), (1399755690,), (1399755708,), (1399755709,), (1399755710,), (1399755711,), (1399755713,), (1399755715,), (1399755729,), (1399755730,), (1399755731,), (1399755732,), (1399755735,), (1399755761,), (1399755763,), (1399755765,), (1399755768,), (1399755771,), (1399755772,), (1399755787,), (1399755788,), (1399755789,), (1399755802,), (1399755803,), (1399755819,), (1399755821,), (1399755823,), (1399755827,), (1399755831,), (1399755836,), (1399755850,), (1399755851,), (1399755854,), (1399755857,), (1399755859,), (1399755861,), (1399755869,), (1399755871,), (1399755873,), (1399755875,), (1399755877,), (1399755878,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29491184 , 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=29491177 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 (29491184) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29491177) result : ((1399755563,), (1399755586,), (1399755587,), (1399755606,), (1399755628,), (1399755629,), (1399755630,), (1399755643,), (1399755644,), (1399755645,), (1399755646,), (1399755649,), (1399755650,), (1399755663,), (1399755664,), (1399755665,), (1399755666,), (1399755687,), (1399755688,), (1399755689,), (1399755690,), (1399755708,), (1399755709,), (1399755710,), (1399755711,), (1399755713,), (1399755715,), (1399755729,), (1399755730,), (1399755731,), (1399755732,), (1399755735,), (1399755761,), (1399755763,), (1399755765,), (1399755768,), (1399755771,), (1399755772,), (1399755787,), (1399755788,), (1399755789,), (1399755802,), (1399755803,), (1399755819,), (1399755821,), (1399755823,), (1399755827,), (1399755831,), (1399755836,), (1399755850,), (1399755851,), (1399755854,), (1399755857,), (1399755859,), (1399755861,), (1399755869,), (1399755871,), (1399755873,), (1399755875,), (1399755877,), (1399755878,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29491185 , 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=29491177 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 (29491185) result : ((1399755660,), (1399755755,), (1399755756,), (1399755776,), (1399755791,), (1399755792,), (1399756080,), (1399756082,), (1399756084,), (1399756086,), (1399756088,), (1399756090,), (1399756092,), (1399756094,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29491177) result : ((1399755563,), (1399755586,), (1399755587,), (1399755606,), (1399755628,), (1399755629,), (1399755630,), (1399755643,), (1399755644,), (1399755645,), (1399755646,), (1399755649,), (1399755650,), (1399755663,), (1399755664,), (1399755665,), (1399755666,), (1399755687,), (1399755688,), (1399755689,), (1399755690,), (1399755708,), (1399755709,), (1399755710,), (1399755711,), (1399755713,), (1399755715,), (1399755729,), (1399755730,), (1399755731,), (1399755732,), (1399755735,), (1399755761,), (1399755763,), (1399755765,), (1399755768,), (1399755771,), (1399755772,), (1399755787,), (1399755788,), (1399755789,), (1399755802,), (1399755803,), (1399755819,), (1399755821,), (1399755823,), (1399755827,), (1399755831,), (1399755836,), (1399755850,), (1399755851,), (1399755854,), (1399755857,), (1399755859,), (1399755861,), (1399755869,), (1399755871,), (1399755873,), (1399755875,), (1399755877,), (1399755878,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29491186 , 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=29491177 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 (29491186) result : ((1399755661,), (1399755757,), (1399755797,), (1399755798,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29491177) result : ((1399755563,), (1399755586,), (1399755587,), (1399755606,), (1399755628,), (1399755629,), (1399755630,), (1399755643,), (1399755644,), (1399755645,), (1399755646,), (1399755649,), (1399755650,), (1399755663,), (1399755664,), (1399755665,), (1399755666,), (1399755687,), (1399755688,), (1399755689,), (1399755690,), (1399755708,), (1399755709,), (1399755710,), (1399755711,), (1399755713,), (1399755715,), (1399755729,), (1399755730,), (1399755731,), (1399755732,), (1399755735,), (1399755761,), (1399755763,), (1399755765,), (1399755768,), (1399755771,), (1399755772,), (1399755787,), (1399755788,), (1399755789,), (1399755802,), (1399755803,), (1399755819,), (1399755821,), (1399755823,), (1399755827,), (1399755831,), (1399755836,), (1399755850,), (1399755851,), (1399755854,), (1399755857,), (1399755859,), (1399755861,), (1399755869,), (1399755871,), (1399755873,), (1399755875,), (1399755877,), (1399755878,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29491187 , 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=29491177 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 (29491187) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29491177) result : ((1399755563,), (1399755586,), (1399755587,), (1399755606,), (1399755628,), (1399755629,), (1399755630,), (1399755643,), (1399755644,), (1399755645,), (1399755646,), (1399755649,), (1399755650,), (1399755663,), (1399755664,), (1399755665,), (1399755666,), (1399755687,), (1399755688,), (1399755689,), (1399755690,), (1399755708,), (1399755709,), (1399755710,), (1399755711,), (1399755713,), (1399755715,), (1399755729,), (1399755730,), (1399755731,), (1399755732,), (1399755735,), (1399755761,), (1399755763,), (1399755765,), (1399755768,), (1399755771,), (1399755772,), (1399755787,), (1399755788,), (1399755789,), (1399755802,), (1399755803,), (1399755819,), (1399755821,), (1399755823,), (1399755827,), (1399755831,), (1399755836,), (1399755850,), (1399755851,), (1399755854,), (1399755857,), (1399755859,), (1399755861,), (1399755869,), (1399755871,), (1399755873,), (1399755875,), (1399755877,), (1399755878,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29491188 , 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=29491177 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 (29491188) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29491177) result : ((1399755563,), (1399755586,), (1399755587,), (1399755606,), (1399755628,), (1399755629,), (1399755630,), (1399755643,), (1399755644,), (1399755645,), (1399755646,), (1399755649,), (1399755650,), (1399755663,), (1399755664,), (1399755665,), (1399755666,), (1399755687,), (1399755688,), (1399755689,), (1399755690,), (1399755708,), (1399755709,), (1399755710,), (1399755711,), (1399755713,), (1399755715,), (1399755729,), (1399755730,), (1399755731,), (1399755732,), (1399755735,), (1399755761,), (1399755763,), (1399755765,), (1399755768,), (1399755771,), (1399755772,), (1399755787,), (1399755788,), (1399755789,), (1399755802,), (1399755803,), (1399755819,), (1399755821,), (1399755823,), (1399755827,), (1399755831,), (1399755836,), (1399755850,), (1399755851,), (1399755854,), (1399755857,), (1399755859,), (1399755861,), (1399755869,), (1399755871,), (1399755873,), (1399755875,), (1399755877,), (1399755878,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29491189 , 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=29491177 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 (29491189) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29491177) result : ((1399755563,), (1399755586,), (1399755587,), (1399755606,), (1399755628,), (1399755629,), (1399755630,), (1399755643,), (1399755644,), (1399755645,), (1399755646,), (1399755649,), (1399755650,), (1399755663,), (1399755664,), (1399755665,), (1399755666,), (1399755687,), (1399755688,), (1399755689,), (1399755690,), (1399755708,), (1399755709,), (1399755710,), (1399755711,), (1399755713,), (1399755715,), (1399755729,), (1399755730,), (1399755731,), (1399755732,), (1399755735,), (1399755761,), (1399755763,), (1399755765,), (1399755768,), (1399755771,), (1399755772,), (1399755787,), (1399755788,), (1399755789,), (1399755802,), (1399755803,), (1399755819,), (1399755821,), (1399755823,), (1399755827,), (1399755831,), (1399755836,), (1399755850,), (1399755851,), (1399755854,), (1399755857,), (1399755859,), (1399755861,), (1399755869,), (1399755871,), (1399755873,), (1399755875,), (1399755877,), (1399755878,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29491190 , 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=29491177 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 (29491190) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29491177) result : ((1399755563,), (1399755586,), (1399755587,), (1399755606,), (1399755628,), (1399755629,), (1399755630,), (1399755643,), (1399755644,), (1399755645,), (1399755646,), (1399755649,), (1399755650,), (1399755663,), (1399755664,), (1399755665,), (1399755666,), (1399755687,), (1399755688,), (1399755689,), (1399755690,), (1399755708,), (1399755709,), (1399755710,), (1399755711,), (1399755713,), (1399755715,), (1399755729,), (1399755730,), (1399755731,), (1399755732,), (1399755735,), (1399755761,), (1399755763,), (1399755765,), (1399755768,), (1399755771,), (1399755772,), (1399755787,), (1399755788,), (1399755789,), (1399755802,), (1399755803,), (1399755819,), (1399755821,), (1399755823,), (1399755827,), (1399755831,), (1399755836,), (1399755850,), (1399755851,), (1399755854,), (1399755857,), (1399755859,), (1399755861,), (1399755869,), (1399755871,), (1399755873,), (1399755875,), (1399755877,), (1399755878,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29491191 , 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=29491177 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 (29491191) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29491177) result : ((1399755563,), (1399755586,), (1399755587,), (1399755606,), (1399755628,), (1399755629,), (1399755630,), (1399755643,), (1399755644,), (1399755645,), (1399755646,), (1399755649,), (1399755650,), (1399755663,), (1399755664,), (1399755665,), (1399755666,), (1399755687,), (1399755688,), (1399755689,), (1399755690,), (1399755708,), (1399755709,), (1399755710,), (1399755711,), (1399755713,), (1399755715,), (1399755729,), (1399755730,), (1399755731,), (1399755732,), (1399755735,), (1399755761,), (1399755763,), (1399755765,), (1399755768,), (1399755771,), (1399755772,), (1399755787,), (1399755788,), (1399755789,), (1399755802,), (1399755803,), (1399755819,), (1399755821,), (1399755823,), (1399755827,), (1399755831,), (1399755836,), (1399755850,), (1399755851,), (1399755854,), (1399755857,), (1399755859,), (1399755861,), (1399755869,), (1399755871,), (1399755873,), (1399755875,), (1399755877,), (1399755878,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") 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`=29491177 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','flou','autre_refus','Teint_Dans_La_Masse','papier','environnement','mal_croppe','plastique','cartonnette','metal','Carton_gris','Carton_brun')) 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`=29491177 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','flou','autre_refus','Teint_Dans_La_Masse','papier','environnement','mal_croppe','plastique','cartonnette','metal','Carton_gris','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 29491177, 'sub_port_id': 29491193, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20108574, 'last_updated_at': datetime.datetime(2025, 12, 17, 7, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 7, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 7, 49, 1)}, 'plastique': {'main_port_id': 29491177, 'sub_port_id': 29491194, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20108575, 'last_updated_at': datetime.datetime(2025, 12, 17, 7, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 7, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 7, 49, 1)}, 'Carton_gris': {'main_port_id': 29491177, 'sub_port_id': 29491195, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20108576, 'last_updated_at': datetime.datetime(2025, 12, 17, 7, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 7, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 7, 49, 1)}, 'autre_refus': {'main_port_id': 29491177, 'sub_port_id': 29491196, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20108577, 'last_updated_at': datetime.datetime(2025, 12, 17, 7, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 7, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 7, 49, 1)}, 'flou': {'main_port_id': 29491177, 'sub_port_id': 29491197, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20108578, 'last_updated_at': datetime.datetime(2025, 12, 17, 7, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 7, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 7, 49, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 29491177, 'sub_port_id': 29491198, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20108579, 'last_updated_at': datetime.datetime(2025, 12, 17, 7, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 7, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 7, 49, 1)}, 'Carton_brun': {'main_port_id': 29491177, 'sub_port_id': 29491199, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20108580, 'last_updated_at': datetime.datetime(2025, 12, 17, 7, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 7, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 7, 49, 1)}, 'environnement': {'main_port_id': 29491177, 'sub_port_id': 29491200, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20108581, 'last_updated_at': datetime.datetime(2025, 12, 17, 7, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 7, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 7, 49, 1)}, 'mal_croppe': {'main_port_id': 29491177, 'sub_port_id': 29491201, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20108582, 'last_updated_at': datetime.datetime(2025, 12, 17, 7, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 7, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 7, 49, 1)}, 'kraft': {'main_port_id': 29491177, 'sub_port_id': 29491202, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20108583, 'last_updated_at': datetime.datetime(2025, 12, 17, 7, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 7, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 7, 49, 1)}, 'papier': {'main_port_id': 29491177, 'sub_port_id': 29491203, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20108584, 'last_updated_at': datetime.datetime(2025, 12, 17, 7, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 7, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 7, 49, 1)}, 'metal': {'main_port_id': 29491177, 'sub_port_id': 29491204, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20108585, 'last_updated_at': datetime.datetime(2025, 12, 17, 7, 59, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 17, 7, 59, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 17, 7, 49, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29491193,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29491180 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29491194,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29491181 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29491195,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29491182 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29491196,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29491183 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29491197,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29491184 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29491198,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29491185 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29491199,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29491186 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29491200,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29491187 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29491201,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29491188 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29491202,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29491189 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29491203,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29491190 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29491204,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29491191 lien utilise dans velours : https://marlene.fotonower.com/velours/29491193,29491194,29491195,29491196,29491197,29491198,29491199,29491200,29491201,29491202,29491203,29491204?tags=cartonnette,plastique,Carton_gris,autre_refus,flou,Teint_Dans_La_Masse,Carton_brun,environnement,mal_croppe,kraft,papier,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29491177]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1399755878, 1399755877, 1399755875, 1399755873, 1399755871, 1399755869, 1399755861, 1399755859, 1399755857, 1399755854, 1399755851, 1399755850] map_info['map_portfolio_photo'] : {29491177: [1399755878, 1399755877, 1399755875, 1399755873, 1399755871, 1399755869, 1399755861, 1399755859, 1399755857, 1399755854, 1399755851, 1399755850, 1399755836, 1399755831, 1399755827, 1399755823, 1399755821, 1399755819, 1399755803, 1399755802, 1399755789, 1399755788, 1399755787, 1399755772, 1399755771, 1399755768, 1399755765, 1399755763, 1399755761, 1399755735, 1399755732, 1399755731, 1399755730, 1399755729, 1399755715, 1399755713, 1399755711, 1399755710, 1399755709, 1399755708, 1399755690, 1399755689, 1399755688, 1399755687, 1399755666, 1399755665, 1399755664, 1399755663, 1399755650, 1399755649, 1399755646, 1399755645, 1399755644, 1399755643, 1399755630, 1399755629, 1399755628, 1399755606, 1399755587, 1399755586, 1399755563]} final : False mtd_id 4302 list_pids : [1399755878, 1399755877, 1399755875, 1399755873, 1399755871, 1399755869, 1399755861, 1399755859, 1399755857, 1399755854, 1399755851, 1399755850] Looping around the photos to save general results len do output : 1 /29491177. 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, '4238519') ('4302', '29491177', '1399755878', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755877', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755875', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755873', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755871', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755869', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755861', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755859', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755857', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755854', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755851', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755850', None, None, None, None, None, '4238519') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '29491177', "{'cartonnette': 29491180, 'plastique': 29491181, 'Carton_gris': 29491182, 'autre_refus': 29491183, 'flou': 29491184, 'Teint_Dans_La_Masse': 29491185, 'Carton_brun': 29491186, 'environnement': 29491187, 'mal_croppe': 29491188, 'kraft': 29491189, 'papier': 29491190, 'metal': 29491191}", None, None, None, None, '4238519'), ('4302', '29491177', '1399755878', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755877', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755875', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755873', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755871', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755869', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755861', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755859', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755857', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755854', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755851', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755850', None, None, None, None, None, '4238519')] time used for this insertion : 0.02003026008605957 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8411376476287842 time spend to save output : 0.02043437957763672 total time spend for step 1 : 1.861572027206421 step2:final Wed Dec 17 07:59: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 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 (29491177) 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 29491177 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1399755563,1399755587,1399755586,1399755606,1399755630,1399755629,1399755628,1399755650,1399755649,1399755646,1399755645,1399755644,1399755643,1399755666,1399755665,1399755664,1399755663,1399755690,1399755689,1399755688,1399755687,1399755715,1399755713,1399755711,1399755710,1399755709,1399755708,1399755789,1399755735,1399755788,1399755732,1399755787,1399755731,1399755772,1399755730,1399755771,1399755729,1399755768,1399755765,1399755763,1399755761,1399755803,1399755802,1399755878,1399755836,1399755831,1399755877,1399755827,1399755875,1399755823,1399755873,1399755821,1399755871,1399755869,1399755819,1399755861,1399755859,1399755857,1399755854,1399755851,1399755850); 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([29491177]) Inside saveOutput : final : False verbose : True original output for save of step final : {1399755878: ('0.03747128817754194',), 1399755877: ('0.03747128817754194',), 1399755875: ('0.03747128817754194',), 1399755873: ('0.03747128817754194',), 1399755871: ('0.03747128817754194',), 1399755869: ('0.03747128817754194',), 1399755861: ('0.03747128817754194',), 1399755859: ('0.03747128817754194',), 1399755857: ('0.03747128817754194',), 1399755854: ('0.03747128817754194',), 1399755851: ('0.03747128817754194',), 1399755850: ('0.03747128817754194',)} new output for save of step final : {1399755878: ('0.03747128817754194',), 1399755877: ('0.03747128817754194',), 1399755875: ('0.03747128817754194',), 1399755873: ('0.03747128817754194',), 1399755871: ('0.03747128817754194',), 1399755869: ('0.03747128817754194',), 1399755861: ('0.03747128817754194',), 1399755859: ('0.03747128817754194',), 1399755857: ('0.03747128817754194',), 1399755854: ('0.03747128817754194',), 1399755851: ('0.03747128817754194',), 1399755850: ('0.03747128817754194',)} [1399755878, 1399755877, 1399755875, 1399755873, 1399755871, 1399755869, 1399755861, 1399755859, 1399755857, 1399755854, 1399755851, 1399755850] map_info['map_portfolio_photo'] : {29491177: [1399755878, 1399755877, 1399755875, 1399755873, 1399755871, 1399755869, 1399755861, 1399755859, 1399755857, 1399755854, 1399755851, 1399755850, 1399755836, 1399755831, 1399755827, 1399755823, 1399755821, 1399755819, 1399755803, 1399755802, 1399755789, 1399755788, 1399755787, 1399755772, 1399755771, 1399755768, 1399755765, 1399755763, 1399755761, 1399755735, 1399755732, 1399755731, 1399755730, 1399755729, 1399755715, 1399755713, 1399755711, 1399755710, 1399755709, 1399755708, 1399755690, 1399755689, 1399755688, 1399755687, 1399755666, 1399755665, 1399755664, 1399755663, 1399755650, 1399755649, 1399755646, 1399755645, 1399755644, 1399755643, 1399755630, 1399755629, 1399755628, 1399755606, 1399755587, 1399755586, 1399755563]} final : False mtd_id 4302 list_pids : [1399755878, 1399755877, 1399755875, 1399755873, 1399755871, 1399755869, 1399755861, 1399755859, 1399755857, 1399755854, 1399755851, 1399755850] Looping around the photos to save general results len do output : 12 /1399755878.Didn't retrieve data . /1399755877.Didn't retrieve data . /1399755875.Didn't retrieve data . /1399755873.Didn't retrieve data . /1399755871.Didn't retrieve data . /1399755869.Didn't retrieve data . /1399755861.Didn't retrieve data . /1399755859.Didn't retrieve data . /1399755857.Didn't retrieve data . /1399755854.Didn't retrieve data . /1399755851.Didn't retrieve data . /1399755850.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, '4238519') ('4302', '29491177', '1399755878', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755877', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755875', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755873', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755871', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755869', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755861', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755859', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755857', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755854', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755851', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755850', None, None, None, None, None, '4238519') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '29491177', '1399755878', '0.03747128817754194', None, None, None, None, '4238519'), ('4302', '29491177', '1399755877', '0.03747128817754194', None, None, None, None, '4238519'), ('4302', '29491177', '1399755875', '0.03747128817754194', None, None, None, None, '4238519'), ('4302', '29491177', '1399755873', '0.03747128817754194', None, None, None, None, '4238519'), ('4302', '29491177', '1399755871', '0.03747128817754194', None, None, None, None, '4238519'), ('4302', '29491177', '1399755869', '0.03747128817754194', None, None, None, None, '4238519'), ('4302', '29491177', '1399755861', '0.03747128817754194', None, None, None, None, '4238519'), ('4302', '29491177', '1399755859', '0.03747128817754194', None, None, None, None, '4238519'), ('4302', '29491177', '1399755857', '0.03747128817754194', None, None, None, None, '4238519'), ('4302', '29491177', '1399755854', '0.03747128817754194', None, None, None, None, '4238519'), ('4302', '29491177', '1399755851', '0.03747128817754194', None, None, None, None, '4238519'), ('4302', '29491177', '1399755850', '0.03747128817754194', None, None, None, None, '4238519')] time used for this insertion : 0.016374588012695312 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08380508422851562 time spend to save output : 0.017015933990478516 total time spend for step 2 : 0.10082101821899414 step3:velours_tree Wed Dec 17 07:59: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 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 : {29491177: [{'cartonnette': 29491180, 'plastique': 29491181, 'Carton_gris': 29491182, 'autre_refus': 29491183, 'flou': 29491184, 'Teint_Dans_La_Masse': 29491185, 'Carton_brun': 29491186, 'environnement': 29491187, 'mal_croppe': 29491188, 'kraft': 29491189, 'papier': 29491190, 'metal': 29491191}]} input_args_next_step : {29491177: ()} output_args : {29491177: [{'cartonnette': 29491180, 'plastique': 29491181, 'Carton_gris': 29491182, 'autre_refus': 29491183, 'flou': 29491184, 'Teint_Dans_La_Masse': 29491185, 'Carton_brun': 29491186, 'environnement': 29491187, 'mal_croppe': 29491188, 'kraft': 29491189, 'papier': 29491190, 'metal': 29491191}]} args : 29491177 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 : ({'cartonnette': 29491180, 'plastique': 29491181, 'Carton_gris': 29491182, 'autre_refus': 29491183, 'flou': 29491184, 'Teint_Dans_La_Masse': 29491185, 'Carton_brun': 29491186, 'environnement': 29491187, 'mal_croppe': 29491188, 'kraft': 29491189, 'papier': 29491190, 'metal': 29491191},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29491177) 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([29491177]) 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.25341033935546875 time spend to save output : 5.0067901611328125e-05 total time spend for step 3 : 0.2534604072570801 step4:send_mail_cod Wed Dec 17 08:00: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 ! complete output_args for input 2 : {1399755878: ('0.03747128817754194',), 1399755877: ('0.03747128817754194',), 1399755875: ('0.03747128817754194',), 1399755873: ('0.03747128817754194',), 1399755871: ('0.03747128817754194',), 1399755869: ('0.03747128817754194',), 1399755861: ('0.03747128817754194',), 1399755859: ('0.03747128817754194',), 1399755857: ('0.03747128817754194',), 1399755854: ('0.03747128817754194',), 1399755851: ('0.03747128817754194',), 1399755850: ('0.03747128817754194',)} input_args_next_step : {1399755878: ()} output_args : {1399755878: ('0.03747128817754194',), 1399755877: ('0.03747128817754194',), 1399755875: ('0.03747128817754194',), 1399755873: ('0.03747128817754194',), 1399755871: ('0.03747128817754194',), 1399755869: ('0.03747128817754194',), 1399755861: ('0.03747128817754194',), 1399755859: ('0.03747128817754194',), 1399755857: ('0.03747128817754194',), 1399755854: ('0.03747128817754194',), 1399755851: ('0.03747128817754194',), 1399755850: ('0.03747128817754194',)} args : 1399755878 depend.output_id : 0 input_args_next_step : {1399755878: ('0.03747128817754194',), 1399755877: ()} output_args : {1399755878: ('0.03747128817754194',), 1399755877: ('0.03747128817754194',), 1399755875: ('0.03747128817754194',), 1399755873: ('0.03747128817754194',), 1399755871: ('0.03747128817754194',), 1399755869: ('0.03747128817754194',), 1399755861: ('0.03747128817754194',), 1399755859: ('0.03747128817754194',), 1399755857: ('0.03747128817754194',), 1399755854: ('0.03747128817754194',), 1399755851: ('0.03747128817754194',), 1399755850: ('0.03747128817754194',)} args : 1399755877 depend.output_id : 0 input_args_next_step : {1399755878: ('0.03747128817754194',), 1399755877: ('0.03747128817754194',), 1399755875: ()} output_args : {1399755878: ('0.03747128817754194',), 1399755877: ('0.03747128817754194',), 1399755875: ('0.03747128817754194',), 1399755873: ('0.03747128817754194',), 1399755871: ('0.03747128817754194',), 1399755869: ('0.03747128817754194',), 1399755861: ('0.03747128817754194',), 1399755859: ('0.03747128817754194',), 1399755857: ('0.03747128817754194',), 1399755854: ('0.03747128817754194',), 1399755851: ('0.03747128817754194',), 1399755850: ('0.03747128817754194',)} args : 1399755875 depend.output_id : 0 input_args_next_step : {1399755878: ('0.03747128817754194',), 1399755877: ('0.03747128817754194',), 1399755875: ('0.03747128817754194',), 1399755873: ()} output_args : {1399755878: ('0.03747128817754194',), 1399755877: ('0.03747128817754194',), 1399755875: ('0.03747128817754194',), 1399755873: ('0.03747128817754194',), 1399755871: ('0.03747128817754194',), 1399755869: ('0.03747128817754194',), 1399755861: ('0.03747128817754194',), 1399755859: ('0.03747128817754194',), 1399755857: ('0.03747128817754194',), 1399755854: ('0.03747128817754194',), 1399755851: ('0.03747128817754194',), 1399755850: ('0.03747128817754194',)} args : 1399755873 depend.output_id : 0 input_args_next_step : {1399755878: ('0.03747128817754194',), 1399755877: ('0.03747128817754194',), 1399755875: ('0.03747128817754194',), 1399755873: ('0.03747128817754194',), 1399755871: ()} output_args : {1399755878: ('0.03747128817754194',), 1399755877: ('0.03747128817754194',), 1399755875: ('0.03747128817754194',), 1399755873: ('0.03747128817754194',), 1399755871: ('0.03747128817754194',), 1399755869: ('0.03747128817754194',), 1399755861: ('0.03747128817754194',), 1399755859: ('0.03747128817754194',), 1399755857: ('0.03747128817754194',), 1399755854: ('0.03747128817754194',), 1399755851: ('0.03747128817754194',), 1399755850: ('0.03747128817754194',)} args : 1399755871 depend.output_id : 0 input_args_next_step : {1399755878: ('0.03747128817754194',), 1399755877: ('0.03747128817754194',), 1399755875: ('0.03747128817754194',), 1399755873: ('0.03747128817754194',), 1399755871: ('0.03747128817754194',), 1399755869: ()} output_args : {1399755878: ('0.03747128817754194',), 1399755877: ('0.03747128817754194',), 1399755875: ('0.03747128817754194',), 1399755873: ('0.03747128817754194',), 1399755871: ('0.03747128817754194',), 1399755869: ('0.03747128817754194',), 1399755861: ('0.03747128817754194',), 1399755859: ('0.03747128817754194',), 1399755857: ('0.03747128817754194',), 1399755854: ('0.03747128817754194',), 1399755851: ('0.03747128817754194',), 1399755850: ('0.03747128817754194',)} args : 1399755869 depend.output_id : 0 input_args_next_step : {1399755878: ('0.03747128817754194',), 1399755877: ('0.03747128817754194',), 1399755875: ('0.03747128817754194',), 1399755873: ('0.03747128817754194',), 1399755871: ('0.03747128817754194',), 1399755869: ('0.03747128817754194',), 1399755861: ()} output_args : {1399755878: ('0.03747128817754194',), 1399755877: ('0.03747128817754194',), 1399755875: ('0.03747128817754194',), 1399755873: ('0.03747128817754194',), 1399755871: ('0.03747128817754194',), 1399755869: ('0.03747128817754194',), 1399755861: ('0.03747128817754194',), 1399755859: ('0.03747128817754194',), 1399755857: ('0.03747128817754194',), 1399755854: ('0.03747128817754194',), 1399755851: ('0.03747128817754194',), 1399755850: ('0.03747128817754194',)} args : 1399755861 depend.output_id : 0 input_args_next_step : {1399755878: ('0.03747128817754194',), 1399755877: ('0.03747128817754194',), 1399755875: ('0.03747128817754194',), 1399755873: ('0.03747128817754194',), 1399755871: ('0.03747128817754194',), 1399755869: ('0.03747128817754194',), 1399755861: ('0.03747128817754194',), 1399755859: ()} output_args : {1399755878: ('0.03747128817754194',), 1399755877: ('0.03747128817754194',), 1399755875: ('0.03747128817754194',), 1399755873: ('0.03747128817754194',), 1399755871: ('0.03747128817754194',), 1399755869: ('0.03747128817754194',), 1399755861: ('0.03747128817754194',), 1399755859: ('0.03747128817754194',), 1399755857: ('0.03747128817754194',), 1399755854: ('0.03747128817754194',), 1399755851: ('0.03747128817754194',), 1399755850: ('0.03747128817754194',)} args : 1399755859 depend.output_id : 0 input_args_next_step : {1399755878: ('0.03747128817754194',), 1399755877: ('0.03747128817754194',), 1399755875: ('0.03747128817754194',), 1399755873: ('0.03747128817754194',), 1399755871: ('0.03747128817754194',), 1399755869: ('0.03747128817754194',), 1399755861: ('0.03747128817754194',), 1399755859: ('0.03747128817754194',), 1399755857: ()} output_args : {1399755878: ('0.03747128817754194',), 1399755877: ('0.03747128817754194',), 1399755875: ('0.03747128817754194',), 1399755873: ('0.03747128817754194',), 1399755871: ('0.03747128817754194',), 1399755869: ('0.03747128817754194',), 1399755861: ('0.03747128817754194',), 1399755859: ('0.03747128817754194',), 1399755857: ('0.03747128817754194',), 1399755854: ('0.03747128817754194',), 1399755851: ('0.03747128817754194',), 1399755850: ('0.03747128817754194',)} args : 1399755857 depend.output_id : 0 input_args_next_step : {1399755878: ('0.03747128817754194',), 1399755877: ('0.03747128817754194',), 1399755875: ('0.03747128817754194',), 1399755873: ('0.03747128817754194',), 1399755871: ('0.03747128817754194',), 1399755869: ('0.03747128817754194',), 1399755861: ('0.03747128817754194',), 1399755859: ('0.03747128817754194',), 1399755857: ('0.03747128817754194',), 1399755854: ()} output_args : {1399755878: ('0.03747128817754194',), 1399755877: ('0.03747128817754194',), 1399755875: ('0.03747128817754194',), 1399755873: ('0.03747128817754194',), 1399755871: ('0.03747128817754194',), 1399755869: ('0.03747128817754194',), 1399755861: ('0.03747128817754194',), 1399755859: ('0.03747128817754194',), 1399755857: ('0.03747128817754194',), 1399755854: ('0.03747128817754194',), 1399755851: ('0.03747128817754194',), 1399755850: ('0.03747128817754194',)} args : 1399755854 depend.output_id : 0 input_args_next_step : {1399755878: ('0.03747128817754194',), 1399755877: ('0.03747128817754194',), 1399755875: ('0.03747128817754194',), 1399755873: ('0.03747128817754194',), 1399755871: ('0.03747128817754194',), 1399755869: ('0.03747128817754194',), 1399755861: ('0.03747128817754194',), 1399755859: ('0.03747128817754194',), 1399755857: ('0.03747128817754194',), 1399755854: ('0.03747128817754194',), 1399755851: ()} output_args : {1399755878: ('0.03747128817754194',), 1399755877: ('0.03747128817754194',), 1399755875: ('0.03747128817754194',), 1399755873: ('0.03747128817754194',), 1399755871: ('0.03747128817754194',), 1399755869: ('0.03747128817754194',), 1399755861: ('0.03747128817754194',), 1399755859: ('0.03747128817754194',), 1399755857: ('0.03747128817754194',), 1399755854: ('0.03747128817754194',), 1399755851: ('0.03747128817754194',), 1399755850: ('0.03747128817754194',)} args : 1399755851 depend.output_id : 0 input_args_next_step : {1399755878: ('0.03747128817754194',), 1399755877: ('0.03747128817754194',), 1399755875: ('0.03747128817754194',), 1399755873: ('0.03747128817754194',), 1399755871: ('0.03747128817754194',), 1399755869: ('0.03747128817754194',), 1399755861: ('0.03747128817754194',), 1399755859: ('0.03747128817754194',), 1399755857: ('0.03747128817754194',), 1399755854: ('0.03747128817754194',), 1399755851: ('0.03747128817754194',), 1399755850: ()} output_args : {1399755878: ('0.03747128817754194',), 1399755877: ('0.03747128817754194',), 1399755875: ('0.03747128817754194',), 1399755873: ('0.03747128817754194',), 1399755871: ('0.03747128817754194',), 1399755869: ('0.03747128817754194',), 1399755861: ('0.03747128817754194',), 1399755859: ('0.03747128817754194',), 1399755857: ('0.03747128817754194',), 1399755854: ('0.03747128817754194',), 1399755851: ('0.03747128817754194',), 1399755850: ('0.03747128817754194',)} args : 1399755850 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 : {29491177: [{'cartonnette': 29491180, 'plastique': 29491181, 'Carton_gris': 29491182, 'autre_refus': 29491183, 'flou': 29491184, 'Teint_Dans_La_Masse': 29491185, 'Carton_brun': 29491186, 'environnement': 29491187, 'mal_croppe': 29491188, 'kraft': 29491189, 'papier': 29491190, 'metal': 29491191}]} input_args_next_step : {1399755878: ('0.03747128817754194',), 1399755877: ('0.03747128817754194',), 1399755875: ('0.03747128817754194',), 1399755873: ('0.03747128817754194',), 1399755871: ('0.03747128817754194',), 1399755869: ('0.03747128817754194',), 1399755861: ('0.03747128817754194',), 1399755859: ('0.03747128817754194',), 1399755857: ('0.03747128817754194',), 1399755854: ('0.03747128817754194',), 1399755851: ('0.03747128817754194',), 1399755850: ('0.03747128817754194',), 29491177: ()} output_args : {29491177: [{'cartonnette': 29491180, 'plastique': 29491181, 'Carton_gris': 29491182, 'autre_refus': 29491183, 'flou': 29491184, 'Teint_Dans_La_Masse': 29491185, 'Carton_brun': 29491186, 'environnement': 29491187, 'mal_croppe': 29491188, 'kraft': 29491189, 'papier': 29491190, 'metal': 29491191}]} args : 29491177 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 :13, first value : ('0.03747128817754194',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29491177) 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_view ph WHERE photo_id IN (1399755878,1399755877,1399755875,1399755873,1399755871,1399755869,1399755861,1399755859,1399755857,1399755854,1399755851,1399755850) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1399755850 begin to download photo : 1399755857 begin to download photo : 1399755869 begin to download photo : 1399755875 download finish for photo 1399755850 begin to download photo : 1399755851 download finish for photo 1399755869 begin to download photo : 1399755871 download finish for photo 1399755857 begin to download photo : 1399755859 download finish for photo 1399755875 begin to download photo : 1399755877 download finish for photo 1399755851 begin to download photo : 1399755854 download finish for photo 1399755871 begin to download photo : 1399755873 download finish for photo 1399755859 begin to download photo : 1399755861 download finish for photo 1399755877 begin to download photo : 1399755878 download finish for photo 1399755854 download finish for photo 1399755873 download finish for photo 1399755861 download finish for photo 1399755878 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P29491177_17-12-2025_08_00_00.pdf 29491180 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29491180 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399755672: '1765954265_3131934_1399755587_4f660bd799b1589416d2df00efa40caa_rle_crop_4072616034_0.png', 1399755795: '1765954527_3148597_1399755649_da88feec4c12b1e6bf852b42d7078812_rle_crop_4072616881_0.png', 1399755796: '1765954527_3148597_1399755644_218c8d1c4c40351a966cc457a975f828_rle_crop_4072616918_0.png', 1399756117: '1765954745_3158555_1399755768_d71b37fc8f83801d6bb4894f8fa7b733_rle_crop_4072625069_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/721e2bf9b050aef8ac7b070bf5531d61_18204200.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/e38ad33ad370cfb819981c43e63b31c7_87530439.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/5d0ef3f6f0eca76559f962a78d5363ed_96176260.png change filename to text .imagette294911801765954800/ imagette294911801765954800/1765954527_3148597_1399755644_218c8d1c4c40351a966cc457a975f828_rle_crop_4072616918_0.png.png imagette294911801765954800/1765954527_3148597_1399755649_da88feec4c12b1e6bf852b42d7078812_rle_crop_4072616881_0.png.png imagette294911801765954800/1765954745_3158555_1399755768_d71b37fc8f83801d6bb4894f8fa7b733_rle_crop_4072625069_0.png.png imagette294911801765954800/1765954265_3131934_1399755587_4f660bd799b1589416d2df00efa40caa_rle_crop_4072616034_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/a2befac14c7fa54bfa13f014ad81e1d2_59053025.png imagette294911801765954800 29491181 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29491181 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399755662: '1765954226_3131211_1399755586_a459ed3b1d59c10f0ef19a0402a2b8a9_rle_crop_4072615968_0.png', 1399755781: '1765954505_3146270_1399755665_50e869b5eed295198f15a5f3f8857570_rle_crop_4072616635_0.png', 1399755782: '1765954505_3146270_1399755663_36e5d859d9c220b551aec9b0bc785bc5_rle_crop_4072616670_0.png', 1399755799: '1765954527_3148597_1399755666_72d1f04cfa201b8ab6775d3eff698c68_rle_crop_4072616864_0.png', 1399755800: '1765954527_3148597_1399755666_72d1f04cfa201b8ab6775d3eff698c68_rle_crop_4072616857_0.png', 1399755833: '1765954626_3154443_1399755628_eb47da4f01d2f8624b2b5966eacf7e2b_rle_crop_4072617013_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/055521879679c77749990fe2d2f46cfb_89264836.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/5df5d5a43575f928317ff03593ec7996_4444942.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/031345248c481736e0bcc67fd04b5a58_75943559.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/da8b6cd222d90af49f11b81338145d5f_385797.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/2f3635e41370e63ecd434d98c327607c_64646209.png change filename to text .imagette294911811765954800/ imagette294911811765954800/1765954505_3146270_1399755663_36e5d859d9c220b551aec9b0bc785bc5_rle_crop_4072616670_0.png.png imagette294911811765954800/1765954626_3154443_1399755628_eb47da4f01d2f8624b2b5966eacf7e2b_rle_crop_4072617013_0.png.png imagette294911811765954800/1765954505_3146270_1399755665_50e869b5eed295198f15a5f3f8857570_rle_crop_4072616635_0.png.png imagette294911811765954800/1765954226_3131211_1399755586_a459ed3b1d59c10f0ef19a0402a2b8a9_rle_crop_4072615968_0.png.png imagette294911811765954800/1765954527_3148597_1399755666_72d1f04cfa201b8ab6775d3eff698c68_rle_crop_4072616857_0.png.png imagette294911811765954800/1765954527_3148597_1399755666_72d1f04cfa201b8ab6775d3eff698c68_rle_crop_4072616864_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/721fd37869c64a9ad1e0a2122ab75f95_81814369.png imagette294911811765954800 29491183 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29491183 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399755671: '1765954265_3131934_1399755563_07482e888696cf51598589b5ac52120e_rle_crop_4072616051_0.png', 1399755778: '1765954505_3146270_1399755665_50e869b5eed295198f15a5f3f8857570_rle_crop_4072616637_0.png', 1399755793: '1765954527_3148597_1399755666_72d1f04cfa201b8ab6775d3eff698c68_rle_crop_4072616863_0.png', 1399756111: '1765954745_3158555_1399755787_8430d055f8a060d8c5e4df8a3c7580c2_rle_crop_4072625020_0.png', 1399756112: '1765954745_3158555_1399755772_ce390bc3f95f7706643505d519f511b5_rle_crop_4072625037_0.png', 1399756113: '1765954745_3158555_1399755771_05ec04d3d83795082afc0365074e4fd9_rle_crop_4072625051_0.png', 1399756114: '1765954745_3158555_1399755731_ac7c8bdb9bba970279bccafa3fa5b5c4_rle_crop_4072625091_0.png', 1399756115: '1765954745_3158555_1399755730_7acabc8692ef0dda9c8de9a934a911ce_rle_crop_4072625108_0.png', 1399756116: '1765954745_3158555_1399755729_5c9e82a5e4765ec1f2f95946c1ac58df_rle_crop_4072625122_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/78c474929c291ed30ff7f906a01b6005_12115354.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/955d192a2eaa4f2bb51726eb9902395f_63086010.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/393b5956b9f3157674686ffdb9442db9_84667126.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/73cf7eaa81f2ef98a50ca5d2a8ab358d_37955190.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/03625c7ea704e6c5cae2c37c3ad7ebab_22974452.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/5560eb7cc8f552a8d2f33df09a1a83cd_15090451.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/73cf7eaa81f2ef98a50ca5d2a8ab358d_870203.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/03625c7ea704e6c5cae2c37c3ad7ebab_8335647.png change filename to text .imagette294911831765954801/ imagette294911831765954801/1765954745_3158555_1399755771_05ec04d3d83795082afc0365074e4fd9_rle_crop_4072625051_0.png.png imagette294911831765954801/1765954527_3148597_1399755666_72d1f04cfa201b8ab6775d3eff698c68_rle_crop_4072616863_0.png.png imagette294911831765954801/1765954265_3131934_1399755563_07482e888696cf51598589b5ac52120e_rle_crop_4072616051_0.png.png imagette294911831765954801/1765954745_3158555_1399755772_ce390bc3f95f7706643505d519f511b5_rle_crop_4072625037_0.png.png imagette294911831765954801/1765954745_3158555_1399755729_5c9e82a5e4765ec1f2f95946c1ac58df_rle_crop_4072625122_0.png.png imagette294911831765954801/1765954745_3158555_1399755730_7acabc8692ef0dda9c8de9a934a911ce_rle_crop_4072625108_0.png.png imagette294911831765954801/1765954745_3158555_1399755787_8430d055f8a060d8c5e4df8a3c7580c2_rle_crop_4072625020_0.png.png imagette294911831765954801/1765954745_3158555_1399755731_ac7c8bdb9bba970279bccafa3fa5b5c4_rle_crop_4072625091_0.png.png imagette294911831765954801/1765954505_3146270_1399755665_50e869b5eed295198f15a5f3f8857570_rle_crop_4072616637_0.png.png imagette294911841765954802/ imagette294911881765954802/ imagette294911891765954802/ imagette294911911765954802/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/5560eb7cc8f552a8d2f33df09a1a83cd_69402289.png imagette294911831765954801 29491184 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29491184 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294911841765954802 29491188 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29491188 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294911881765954802 29491189 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29491189 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294911891765954802 29491191 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29491191 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette294911911765954802 29491182 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29491182 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399755779: '1765954505_3146270_1399755690_c14c181f2f03d7403527cc18a3b2fc5b_rle_crop_4072616617_0.png', 1399755780: '1765954505_3146270_1399755663_36e5d859d9c220b551aec9b0bc785bc5_rle_crop_4072616668_0.png', 1399755872: '1765954707_3157964_1399755803_cf2cb684e43a7a300f11e0fddedf9c9c_rle_crop_4072624740_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/256d11fc4e7bf5d97b6d253173ccfae0_51929132.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/02c8445a144d00736d2c9c5293301a29_52520495.png change filename to text .imagette294911821765954802/ imagette294911821765954802/1765954505_3146270_1399755690_c14c181f2f03d7403527cc18a3b2fc5b_rle_crop_4072616617_0.png.png imagette294911821765954802/1765954707_3157964_1399755803_cf2cb684e43a7a300f11e0fddedf9c9c_rle_crop_4072624740_0.png.png imagette294911821765954802/1765954505_3146270_1399755663_36e5d859d9c220b551aec9b0bc785bc5_rle_crop_4072616668_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/0faaefb7f71567d7b76e60a1e8bacbc6_2035061.png imagette294911821765954802 29491185 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29491185 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399755660: '1765954226_3131211_1399755606_3c5ad3461afe99e5ba5ecc8a973337dd_rle_crop_4072615957_0.png', 1399755755: '1765954464_3145323_1399755689_b26e3544f6183e9f13f3d171b3ed2931_rle_crop_4072616454_0.png', 1399755756: '1765954464_3145323_1399755689_b26e3544f6183e9f13f3d171b3ed2931_rle_crop_4072616462_0.png', 1399755776: '1765954505_3146270_1399755664_abfb80acb620cee4235a8bd2fd389cd3_rle_crop_4072616662_0.png', 1399755791: '1765954527_3148597_1399755646_e8d930fe9412bf890b9cb72bcb3dc4a6_rle_crop_4072616893_0.png', 1399755792: '1765954527_3148597_1399755644_218c8d1c4c40351a966cc457a975f828_rle_crop_4072616921_0.png', 1399756080: '1765954745_3158555_1399755788_ec50a4d81e8576c0133f83c942ff8ace_rle_crop_4072625017_0.png', 1399756082: '1765954745_3158555_1399755787_8430d055f8a060d8c5e4df8a3c7580c2_rle_crop_4072625028_0.png', 1399756084: '1765954745_3158555_1399755771_05ec04d3d83795082afc0365074e4fd9_rle_crop_4072625055_0.png', 1399756086: '1765954745_3158555_1399755768_d71b37fc8f83801d6bb4894f8fa7b733_rle_crop_4072625067_0.png', 1399756088: '1765954745_3158555_1399755768_d71b37fc8f83801d6bb4894f8fa7b733_rle_crop_4072625071_0.png', 1399756090: '1765954745_3158555_1399755732_bf983cd5cc4260280009beb1a9c9dec7_rle_crop_4072625088_0.png', 1399756092: '1765954745_3158555_1399755731_ac7c8bdb9bba970279bccafa3fa5b5c4_rle_crop_4072625099_0.png', 1399756094: '1765954745_3158555_1399755729_5c9e82a5e4765ec1f2f95946c1ac58df_rle_crop_4072625126_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/0fce22e7a3ddc879580f13fc23deba2c_68127616.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/4f5c47bf255301d98f0b93a7ae7d33e6_549914.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/cffa5b497c4fd54f1098f034be717f32_97201354.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/6af509f7ad7e0abe8fff94820edb7fc3_30405678.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/6580a07288972392cf293091b1982c29_95549840.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/f627e3c74a6fc99f060dc4b195675c95_24037459.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/0d0c66ffbef043afd7573d6c3359cb49_12750677.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/0a00c2cebfd38345ed45763032f36d01_33838299.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/7fe9efdbb66595676791589a1cc74ffa_50584065.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/3a0a64a7d84dc708b9da76c0a04c48bb_21607260.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/605efc5367b802dd39749aa3bb24f7a8_49279141.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/0d0c66ffbef043afd7573d6c3359cb49_40731264.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/0a00c2cebfd38345ed45763032f36d01_80925577.png change filename to text .imagette294911851765954802/ imagette294911851765954802/1765954464_3145323_1399755689_b26e3544f6183e9f13f3d171b3ed2931_rle_crop_4072616454_0.png.png imagette294911851765954802/1765954226_3131211_1399755606_3c5ad3461afe99e5ba5ecc8a973337dd_rle_crop_4072615957_0.png.png imagette294911851765954802/1765954745_3158555_1399755768_d71b37fc8f83801d6bb4894f8fa7b733_rle_crop_4072625071_0.png.png imagette294911851765954802/1765954745_3158555_1399755787_8430d055f8a060d8c5e4df8a3c7580c2_rle_crop_4072625028_0.png.png imagette294911851765954802/1765954505_3146270_1399755664_abfb80acb620cee4235a8bd2fd389cd3_rle_crop_4072616662_0.png.png imagette294911851765954802/1765954527_3148597_1399755646_e8d930fe9412bf890b9cb72bcb3dc4a6_rle_crop_4072616893_0.png.png imagette294911851765954802/1765954464_3145323_1399755689_b26e3544f6183e9f13f3d171b3ed2931_rle_crop_4072616462_0.png.png imagette294911851765954802/1765954745_3158555_1399755788_ec50a4d81e8576c0133f83c942ff8ace_rle_crop_4072625017_0.png.png imagette294911851765954802/1765954527_3148597_1399755644_218c8d1c4c40351a966cc457a975f828_rle_crop_4072616921_0.png.png imagette294911851765954802/1765954745_3158555_1399755768_d71b37fc8f83801d6bb4894f8fa7b733_rle_crop_4072625067_0.png.png imagette294911851765954802/1765954745_3158555_1399755732_bf983cd5cc4260280009beb1a9c9dec7_rle_crop_4072625088_0.png.png imagette294911851765954802/1765954745_3158555_1399755771_05ec04d3d83795082afc0365074e4fd9_rle_crop_4072625055_0.png.png imagette294911851765954802/1765954745_3158555_1399755729_5c9e82a5e4765ec1f2f95946c1ac58df_rle_crop_4072625126_0.png.png imagette294911851765954802/1765954745_3158555_1399755731_ac7c8bdb9bba970279bccafa3fa5b5c4_rle_crop_4072625099_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/7fe9efdbb66595676791589a1cc74ffa_54308586.png imagette294911851765954802 29491186 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29491186 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1399755661: '1765954226_3131211_1399755606_3c5ad3461afe99e5ba5ecc8a973337dd_rle_crop_4072615961_0.png', 1399755757: '1765954464_3145323_1399755689_b26e3544f6183e9f13f3d171b3ed2931_rle_crop_4072616455_0.png', 1399755797: '1765954527_3148597_1399755666_72d1f04cfa201b8ab6775d3eff698c68_rle_crop_4072616861_0.png', 1399755798: '1765954527_3148597_1399755646_e8d930fe9412bf890b9cb72bcb3dc4a6_rle_crop_4072616890_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/116d343ee2983cdcaf78bb4a7918ec96_42416130.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/7cb19d5cac3b851266cf6d623ca0bad3_14460940.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/fbb67a995680545aed369168562066a7_54390217.png change filename to text .imagette294911861765954803/ imagette294911861765954803/1765954464_3145323_1399755689_b26e3544f6183e9f13f3d171b3ed2931_rle_crop_4072616455_0.png.png imagette294911861765954803/1765954226_3131211_1399755606_3c5ad3461afe99e5ba5ecc8a973337dd_rle_crop_4072615961_0.png.png imagette294911861765954803/1765954527_3148597_1399755666_72d1f04cfa201b8ab6775d3eff698c68_rle_crop_4072616861_0.png.png imagette294911861765954803/1765954527_3148597_1399755646_e8d930fe9412bf890b9cb72bcb3dc4a6_rle_crop_4072616890_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/5fcce7b594e28323e87810f5da89d89f_58993179.png imagette294911861765954803 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29491177 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29491193,29491194,29491195,29491196,29491197,29491198,29491199,29491200,29491201,29491202,29491203,29491204?tags=cartonnette,plastique,Carton_gris,autre_refus,flou,Teint_Dans_La_Masse,Carton_brun,environnement,mal_croppe,kraft,papier,metal your option no_mail is active, we will not send the real mail to your client args[1399755878] : ('0.03747128817754194',) no score found for photo 1399755878 We are sending mail with results at report@fotonower.com args[1399755877] : ('0.03747128817754194',) no score found for photo 1399755877 We are sending mail with results at report@fotonower.com args[1399755875] : ('0.03747128817754194',) no score found for photo 1399755875 We are sending mail with results at report@fotonower.com args[1399755873] : ('0.03747128817754194',) no score found for photo 1399755873 We are sending mail with results at report@fotonower.com args[1399755871] : ('0.03747128817754194',) no score found for photo 1399755871 We are sending mail with results at report@fotonower.com args[1399755869] : ('0.03747128817754194',) no score found for photo 1399755869 We are sending mail with results at report@fotonower.com args[1399755861] : ('0.03747128817754194',) no score found for photo 1399755861 We are sending mail with results at report@fotonower.com args[1399755859] : ('0.03747128817754194',) no score found for photo 1399755859 We are sending mail with results at report@fotonower.com args[1399755857] : ('0.03747128817754194',) no score found for photo 1399755857 We are sending mail with results at report@fotonower.com args[1399755854] : ('0.03747128817754194',) no score found for photo 1399755854 We are sending mail with results at report@fotonower.com args[1399755851] : ('0.03747128817754194',) no score found for photo 1399755851 We are sending mail with results at report@fotonower.com args[1399755850] : ('0.03747128817754194',) no score found for photo 1399755850 We are sending mail with results at report@fotonower.com refus_total : 0.03747128817754194 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29491177 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_P29491177_17-12-2025_08_00_00.pdf results_Auto_P29491177_17-12-2025_08_00_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29491177_17-12-2025_08_00_00.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','29491177','results_Auto_P29491177_17-12-2025_08_00_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29491177_17-12-2025_08_00_00.pdf','pdf','','0.21','0.03747128817754194') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29491177]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1399755878, 1399755877, 1399755875, 1399755873, 1399755871, 1399755869, 1399755861, 1399755859, 1399755857, 1399755854, 1399755851, 1399755850] map_info['map_portfolio_photo'] : {29491177: [1399755878, 1399755877, 1399755875, 1399755873, 1399755871, 1399755869, 1399755861, 1399755859, 1399755857, 1399755854, 1399755851, 1399755850, 1399755836, 1399755831, 1399755827, 1399755823, 1399755821, 1399755819, 1399755803, 1399755802, 1399755789, 1399755788, 1399755787, 1399755772, 1399755771, 1399755768, 1399755765, 1399755763, 1399755761, 1399755735, 1399755732, 1399755731, 1399755730, 1399755729, 1399755715, 1399755713, 1399755711, 1399755710, 1399755709, 1399755708, 1399755690, 1399755689, 1399755688, 1399755687, 1399755666, 1399755665, 1399755664, 1399755663, 1399755650, 1399755649, 1399755646, 1399755645, 1399755644, 1399755643, 1399755630, 1399755629, 1399755628, 1399755606, 1399755587, 1399755586, 1399755563]} final : False mtd_id 4302 list_pids : [1399755878, 1399755877, 1399755875, 1399755873, 1399755871, 1399755869, 1399755861, 1399755859, 1399755857, 1399755854, 1399755851, 1399755850] 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, '4238519') ('4302', '29491177', '1399755878', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755877', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755875', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755873', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755871', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755869', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755861', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755859', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755857', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755854', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755851', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755850', None, None, None, None, None, '4238519') 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', '29491177', '1399755878', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755877', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755875', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755873', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755871', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755869', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755861', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755859', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755857', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755854', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755851', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755850', None, None, None, None, None, '4238519')] time used for this insertion : 0.016794204711914062 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.698641538619995 time spend to save output : 0.017048120498657227 total time spend for step 4 : 4.715689659118652 step5:split_time_score Wed Dec 17 08:00: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 : ['29491177'] 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 : [('29491177',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29491177) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1399755850: {'path': 'temp/1765954800_775087_1399755850_695f6f82e55d3e153197d862d94687de.jpg', 'extension': 'jpg'}, 1399755851: {'path': 'temp/1765954800_775087_1399755851_6565ac81a94a3452b90363ac585c99ab.jpg', 'extension': 'jpg'}, 1399755854: {'path': 'temp/1765954800_775087_1399755854_77d043f282e457c7353f65aab2633d87.jpg', 'extension': 'jpg'}, 1399755869: {'path': 'temp/1765954800_775087_1399755869_d966d05c1d97eed76f67d66eebf6751d.jpg', 'extension': 'jpg'}, 1399755871: {'path': 'temp/1765954800_775087_1399755871_f3b728c1a2442d0659d3cdceca646133.jpg', 'extension': 'jpg'}, 1399755873: {'path': 'temp/1765954800_775087_1399755873_17f14480f29909208ee99b4135a19464.jpg', 'extension': 'jpg'}, 1399755857: {'path': 'temp/1765954800_775087_1399755857_ae5dc28330527137d78dc42270c3ff10.jpg', 'extension': 'jpg'}, 1399755859: {'path': 'temp/1765954800_775087_1399755859_f3d0fbf0aacbe1114e06817a080d46aa.jpg', 'extension': 'jpg'}, 1399755861: {'path': 'temp/1765954800_775087_1399755861_d923298411306e43a7513b6b6d336cb3.jpg', 'extension': 'jpg'}, 1399755875: {'path': 'temp/1765954800_775087_1399755875_a97b8e77bee12605751eb31c49c7052a.jpg', 'extension': 'jpg'}, 1399755877: {'path': 'temp/1765954800_775087_1399755877_6227aa2a35aeacf6257f72fdfdd16d6b.jpg', 'extension': 'jpg'}, 1399755878: {'path': 'temp/1765954800_775087_1399755878_8b010b5554d8214d58e5ce1f4c4711f5.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 = 29491177; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm_bis',), ('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_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29491177 group by h (('07', 61),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29491177 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 (29491177) 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 (29491177) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 17122025 29491177 Nombre de photos uploadées : 61 / 23040 (0%) 17122025 29491177 Nombre de photos taguées (types de déchets): 0 / 61 (0%) 17122025 29491177 Nombre de photos taguées (volume) : 0 / 61 (0%) [{'photo_id': 1399755563, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/07482e888696cf51598589b5ac52120e.jpg', 'username': None, 'uploaded_at': 1765953972, 'text': 'image_17122025_07_45_04_010143m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399755587, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/4f660bd799b1589416d2df00efa40caa.jpg', 'username': None, 'uploaded_at': 1765954028, 'text': 'image_17122025_07_45_33_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399755586, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/a459ed3b1d59c10f0ef19a0402a2b8a9.jpg', 'username': None, 'uploaded_at': 1765954028, 'text': 'image_17122025_07_46_43_010150m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1399755606, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/17/3c5ad3461afe99e5ba5ecc8a973337dd.jpg', 'username': None, 'uploaded_at': 1765954087, 'text': 'image_17122025_07_46_53_010140m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 7.62939453125e-06 ????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002660989761352539 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29491177, '2025-12-17' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2748388,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2717139720916748 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= 2748388 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2748388, 'dashboard_run_id': 2757020, 'mtr_portfolio_id': 29485245, 'dashboard_result_id': 18454977, '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_P29485245_17-12-2025_06_07_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29485246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29485247, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29485248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29485249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29485250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29485251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29485252, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29485253, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29485254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29485255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29485256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29485257, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2757020, 'mtr_portfolio_id': 29485330, 'dashboard_result_id': 18454978, '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_P29485330_17-12-2025_06_08_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29485331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29485332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29485333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29485334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29485335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29485336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29485337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29485338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29485339, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29485340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29485341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29485342, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2757020, 'mtr_portfolio_id': 29486151, 'dashboard_result_id': 18454979, '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_P29486151_17-12-2025_06_08_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29486156, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29486157, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29486158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29486159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29486160, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29486161, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29486162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29486163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29486164, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29486165, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29486166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29486167, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2757020, 'mtr_portfolio_id': 29486387, 'dashboard_result_id': 18454980, '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_P29486387_17-12-2025_06_09_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29486392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29486393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29486394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29486395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29486396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29486397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29486398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29486399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29486400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29486401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29486402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29486403, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2757020, 'mtr_portfolio_id': 29486785, 'dashboard_result_id': 18454981, '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_P29486785_17-12-2025_05_46_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29486789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29486790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29486791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29486792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29486793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29486794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29486795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29486796, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29486797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29486798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29486799, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29486800, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2757020, 'mtr_portfolio_id': 29487088, 'dashboard_result_id': 18454982, '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_P29487088_17-12-2025_06_03_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29487097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29487098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29487099, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29487100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29487101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29487102, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29487103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29487104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29487105, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29487106, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29487107, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29487108, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2757020, 'mtr_portfolio_id': 29487491, 'dashboard_result_id': 18454983, '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_P29487491_17-12-2025_06_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29487495, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29487496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29487497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29487498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29487499, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29487500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29487501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29487502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29487503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29487504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29487505, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29487506, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2757020, 'mtr_portfolio_id': 29488001, 'dashboard_result_id': 18454984, '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_P29488001_17-12-2025_07_46_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29488002, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29488003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29488004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29488005, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29488006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29488007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29488008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29488009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29488010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29488011, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29488012, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29488013, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2757020, 'mtr_portfolio_id': 29488439, 'dashboard_result_id': 18454985, '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_P29488439_17-12-2025_06_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29488443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29488444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29488445, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29488446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29488447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29488448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29488449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29488450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29488451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29488452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29488453, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29488454, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2757020, 'mtr_portfolio_id': 29488957, 'dashboard_result_id': 18454986, '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_P29488957_17-12-2025_07_02_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29488965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29488966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29488967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29488968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29488969, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29488970, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29488971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29488972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29488973, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29488974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29488975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29488976, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2757020, 'mtr_portfolio_id': 29489376, 'dashboard_result_id': 18454987, '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_P29489376_17-12-2025_07_19_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29489402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29489403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29489404, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29489405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29489406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29489407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29489408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29489409, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29489410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29489411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29489412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29489413, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2757020, 'mtr_portfolio_id': 29489974, 'dashboard_result_id': 18454988, '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_P29489974_17-12-2025_07_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29490007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29490008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29490009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29490010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29490011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29490012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29490013, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29490014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29490015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29490016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29490017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29490018, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2757020, 'mtr_portfolio_id': 29490515, 'dashboard_result_id': 18454989, '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_P29490515_17-12-2025_07_46_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29490541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29490542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29490543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29490544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29490545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29490546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29490547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29490548, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29490549, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29490550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29490551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29490552, 'pht': 3726}}"}, {'dashboat_entry_day': 2748388, 'dashboard_run_id': 2757020, 'mtr_portfolio_id': 29491177, 'dashboard_result_id': 18454990, '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_P29491177_17-12-2025_07_59_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29491180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29491181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29491182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29491183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29491184, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29491185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29491186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29491187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29491188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29491189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29491190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29491191, '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 = 29485245 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': 4237902, 'mtr_portfolio_id': 29485245, 'created_at': datetime.datetime(2025, 12, 17, 6, 7, 31), 'result': '0.02842152714867772', 'result_long': None, 'result_double': None}] Qualite : 0.02842152714867772 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29485245 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29485245_17-12-2025_06_07_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29485245 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_P29485245_17-12-2025_06_07_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29485246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29485247, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29485248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29485249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29485250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29485251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29485252, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29485253, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29485254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29485255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29485256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29485257, 'pht': 3726}}" where mtr_portfolio_id = 29485245 and dashboard_run_id = 2757026 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`=29485245 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18454977, 0.02842152714867772, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29485245_17-12-2025_06_07_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29485246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29485247, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29485248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29485249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29485250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29485251, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29485252, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29485253, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29485254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29485255, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29485256, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29485257, '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 = 29485330 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': 4237903, 'mtr_portfolio_id': 29485330, 'created_at': datetime.datetime(2025, 12, 17, 6, 8), 'result': '0.07549590350533569', 'result_long': None, 'result_double': None}] Qualite : 0.07549590350533569 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29485330 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29485330_17-12-2025_06_08_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29485330 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_P29485330_17-12-2025_06_08_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29485331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29485332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29485333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29485334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29485335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29485336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29485337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29485338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29485339, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29485340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29485341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29485342, 'pht': 3726}}" where mtr_portfolio_id = 29485330 and dashboard_run_id = 2757026 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`=29485330 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18454978, 0.07549590350533569, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29485330_17-12-2025_06_08_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29485331, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29485332, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29485333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29485334, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29485335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29485336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29485337, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29485338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29485339, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29485340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29485341, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29485342, '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 = 29486151 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': 4237905, 'mtr_portfolio_id': 29486151, 'created_at': datetime.datetime(2025, 12, 17, 6, 8, 29), 'result': '0.03183617600169805', 'result_long': None, 'result_double': None}] Qualite : 0.03183617600169805 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29486151 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29486151_17-12-2025_06_08_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29486151 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_P29486151_17-12-2025_06_08_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29486156, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29486157, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29486158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29486159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29486160, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29486161, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29486162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29486163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29486164, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29486165, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29486166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29486167, 'pht': 3726}}" where mtr_portfolio_id = 29486151 and dashboard_run_id = 2757026 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`=29486151 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18454979, 0.03183617600169805, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29486151_17-12-2025_06_08_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29486156, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29486157, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29486158, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29486159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29486160, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29486161, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29486162, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29486163, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29486164, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29486165, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29486166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29486167, '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 = 29486387 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': 4237906, 'mtr_portfolio_id': 29486387, 'created_at': datetime.datetime(2025, 12, 17, 6, 9, 26), 'result': '0.0324798333062245', 'result_long': None, 'result_double': None}] Qualite : 0.0324798333062245 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29486387 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29486387_17-12-2025_06_09_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29486387 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_P29486387_17-12-2025_06_09_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29486392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29486393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29486394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29486395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29486396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29486397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29486398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29486399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29486400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29486401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29486402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29486403, 'pht': 3726}}" where mtr_portfolio_id = 29486387 and dashboard_run_id = 2757026 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`=29486387 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18454980, 0.0324798333062245, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29486387_17-12-2025_06_09_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29486392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29486393, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29486394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29486395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29486396, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29486397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29486398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29486399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29486400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29486401, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29486402, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29486403, '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 = 29486785 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': 4237838, 'mtr_portfolio_id': 29486785, 'created_at': datetime.datetime(2025, 12, 17, 5, 46, 58), 'result': '0.04598327004340759', 'result_long': None, 'result_double': None}] Qualite : 0.04598327004340759 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29486785 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29486785_17-12-2025_05_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29486785 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_P29486785_17-12-2025_05_46_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29486789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29486790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29486791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29486792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29486793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29486794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29486795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29486796, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29486797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29486798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29486799, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29486800, 'pht': 3726}}" where mtr_portfolio_id = 29486785 and dashboard_run_id = 2757026 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`=29486785 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18454981, 0.04598327004340759, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29486785_17-12-2025_05_46_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29486789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29486790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29486791, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29486792, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29486793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29486794, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29486795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29486796, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29486797, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29486798, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29486799, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29486800, '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 = 29487088 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': 4237952, 'mtr_portfolio_id': 29487088, 'created_at': datetime.datetime(2025, 12, 17, 6, 3, 32), 'result': '0.06849932624904866', 'result_long': None, 'result_double': None}] Qualite : 0.06849932624904866 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29487088 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29487088_17-12-2025_06_03_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29487088 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_P29487088_17-12-2025_06_03_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29487097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29487098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29487099, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29487100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29487101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29487102, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29487103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29487104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29487105, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29487106, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29487107, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29487108, 'pht': 3726}}" where mtr_portfolio_id = 29487088 and dashboard_run_id = 2757026 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`=29487088 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18454982, 0.06849932624904866, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29487088_17-12-2025_06_03_33.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29487097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29487098, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29487099, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29487100, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29487101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29487102, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29487103, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29487104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29487105, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29487106, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29487107, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29487108, '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 = 29487491 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': 4238038, 'mtr_portfolio_id': 29487491, 'created_at': datetime.datetime(2025, 12, 17, 6, 17, 1), 'result': '0.04276553075229865', 'result_long': None, 'result_double': None}] Qualite : 0.04276553075229865 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29487491 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29487491_17-12-2025_06_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29487491 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_P29487491_17-12-2025_06_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29487495, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29487496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29487497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29487498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29487499, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29487500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29487501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29487502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29487503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29487504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29487505, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29487506, 'pht': 3726}}" where mtr_portfolio_id = 29487491 and dashboard_run_id = 2757026 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`=29487491 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18454983, 0.04276553075229865, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29487491_17-12-2025_06_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29487495, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29487496, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29487497, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29487498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29487499, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29487500, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29487501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29487502, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29487503, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29487504, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29487505, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29487506, '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 = 29488001 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': 4238101, 'mtr_portfolio_id': 29488001, 'created_at': datetime.datetime(2025, 12, 17, 7, 46), 'result': '0.06161135460556961', 'result_long': None, 'result_double': None}] Qualite : 0.06161135460556961 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29488001 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29488001_17-12-2025_07_46_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29488001 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_P29488001_17-12-2025_07_46_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29488002, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29488003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29488004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29488005, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29488006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29488007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29488008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29488009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29488010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29488011, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29488012, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29488013, 'pht': 3726}}" where mtr_portfolio_id = 29488001 and dashboard_run_id = 2757026 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`=29488001 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18454984, 0.06161135460556961, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29488001_17-12-2025_07_46_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29488002, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29488003, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29488004, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29488005, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29488006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29488007, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29488008, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29488009, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29488010, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29488011, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29488012, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29488013, '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 = 29488439 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': 4238167, 'mtr_portfolio_id': 29488439, 'created_at': datetime.datetime(2025, 12, 17, 6, 48, 57), 'result': '0.03138842258814577', 'result_long': None, 'result_double': None}] Qualite : 0.03138842258814577 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29488439 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29488439_17-12-2025_06_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29488439 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_P29488439_17-12-2025_06_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29488443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29488444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29488445, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29488446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29488447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29488448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29488449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29488450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29488451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29488452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29488453, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29488454, 'pht': 3726}}" where mtr_portfolio_id = 29488439 and dashboard_run_id = 2757026 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`=29488439 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18454985, 0.03138842258814577, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29488439_17-12-2025_06_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29488443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29488444, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29488445, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29488446, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29488447, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29488448, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29488449, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29488450, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29488451, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29488452, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29488453, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29488454, '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 = 29488957 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': 4238245, 'mtr_portfolio_id': 29488957, 'created_at': datetime.datetime(2025, 12, 17, 7, 2, 57), 'result': '0.06134156506036359', 'result_long': None, 'result_double': None}] Qualite : 0.06134156506036359 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29488957 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29488957_17-12-2025_07_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29488957 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_P29488957_17-12-2025_07_02_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29488965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29488966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29488967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29488968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29488969, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29488970, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29488971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29488972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29488973, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29488974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29488975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29488976, 'pht': 3726}}" where mtr_portfolio_id = 29488957 and dashboard_run_id = 2757026 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`=29488957 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18454986, 0.06134156506036359, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29488957_17-12-2025_07_02_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29488965, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29488966, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29488967, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29488968, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29488969, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29488970, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29488971, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29488972, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29488973, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29488974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29488975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29488976, '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 = 29489376 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': 4238312, 'mtr_portfolio_id': 29489376, 'created_at': datetime.datetime(2025, 12, 17, 7, 19, 1), 'result': '0.05220400425543265', 'result_long': None, 'result_double': None}] Qualite : 0.05220400425543265 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29489376 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29489376_17-12-2025_07_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29489376 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_P29489376_17-12-2025_07_19_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29489402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29489403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29489404, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29489405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29489406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29489407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29489408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29489409, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29489410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29489411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29489412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29489413, 'pht': 3726}}" where mtr_portfolio_id = 29489376 and dashboard_run_id = 2757026 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`=29489376 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18454987, 0.05220400425543265, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29489376_17-12-2025_07_19_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29489402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29489403, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29489404, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29489405, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29489406, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29489407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29489408, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29489409, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29489410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29489411, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29489412, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29489413, '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 = 29489974 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': 4238396, 'mtr_portfolio_id': 29489974, 'created_at': datetime.datetime(2025, 12, 17, 7, 32, 59), 'result': '0.05084775663673203', 'result_long': None, 'result_double': None}] Qualite : 0.05084775663673203 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29489974 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29489974_17-12-2025_07_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29489974 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_P29489974_17-12-2025_07_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29490007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29490008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29490009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29490010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29490011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29490012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29490013, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29490014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29490015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29490016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29490017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29490018, 'pht': 3726}}" where mtr_portfolio_id = 29489974 and dashboard_run_id = 2757026 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`=29489974 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18454988, 0.05084775663673203, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29489974_17-12-2025_07_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29490007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29490008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29490009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29490010, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29490011, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29490012, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29490013, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29490014, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29490015, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29490016, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29490017, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29490018, '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 = 29490515 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': 4238455, 'mtr_portfolio_id': 29490515, 'created_at': datetime.datetime(2025, 12, 17, 7, 46, 57), 'result': '0.03758465496803979', 'result_long': None, 'result_double': None}] Qualite : 0.03758465496803979 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29490515 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29490515_17-12-2025_07_46_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29490515 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_P29490515_17-12-2025_07_46_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29490541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29490542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29490543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29490544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29490545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29490546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29490547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29490548, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29490549, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29490550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29490551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29490552, 'pht': 3726}}" where mtr_portfolio_id = 29490515 and dashboard_run_id = 2757026 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`=29490515 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18454989, 0.03758465496803979, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29490515_17-12-2025_07_46_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29490541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29490542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29490543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29490544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29490545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29490546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29490547, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29490548, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29490549, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29490550, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29490551, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29490552, '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 = 29491177 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': 4238519, 'mtr_portfolio_id': 29491177, 'created_at': datetime.datetime(2025, 12, 17, 7, 59, 59), 'result': '0.03747128817754194', 'result_long': None, 'result_double': None}] Qualite : 0.03747128817754194 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29491177 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29491177_17-12-2025_08_00_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29491177 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_P29491177_17-12-2025_08_00_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29491180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29491181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29491182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29491183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29491184, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29491185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29491186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29491187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29491188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29491189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29491190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29491191, 'pht': 3726}}" where mtr_portfolio_id = 29491177 and dashboard_run_id = 2757026 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`=29491177 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18454990, 0.03747128817754194, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29491177_17-12-2025_08_00_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29491180, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29491181, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29491182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29491183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29491184, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29491185, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29491186, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29491187, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29491188, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29491189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29491190, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29491191, '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 (29485245,29485330,29486151,29486387,29486785,29487088,29487491,29488001,29488439,29488957,29489376,29489974,29490515,29491177) result : ((1399736565,), (1399736593,), (1399736649,), (1399736650,), (1399736692,), (1399736693,), (1399736694,), (1399736790,), (1399736818,), (1399736820,), (1399736821,), (1399736824,), (1399736845,), (1399736900,), (1399736932,), (1399736959,), (1399736961,), (1399736979,), (1399743998,), (1399744452,), (1399744765,), (1399744778,), (1399744780,), (1399744782,), (1399744786,), (1399744790,), (1399744802,), (1399744803,), (1399744804,), (1399744805,), (1399744808,), (1399744826,), (1399744827,), (1399744828,), (1399744829,), (1399744848,), (1399744849,), (1399744850,), (1399744851,), (1399744872,), (1399744873,), (1399744874,), (1399744875,), (1399744889,), (1399744890,), (1399744891,), (1399744892,), (1399744913,), (1399744914,), (1399744915,), (1399744916,), (1399744919,), (1399744934,), (1399744936,), (1399744937,), (1399744940,), (1399744944,), (1399744947,), (1399744958,), (1399744959,), (1399744963,), (1399744961,), (1399744962,), (1399744977,), (1399744978,), (1399744997,), (1399744998,), (1399744999,), (1399745000,), (1399745002,), (1399745005,), (1399745017,), (1399745019,), (1399745021,), (1399745024,), (1399745028,), (1399745036,), (1399745047,), (1399745060,), (1399745061,), (1399745062,), (1399745063,), (1399745066,), (1399745093,), (1399745094,), (1399745095,), (1399745096,), (1399745099,), (1399745111,), (1399745112,), (1399745113,), (1399745114,), (1399745117,), (1399745121,), (1399745135,), (1399745136,), (1399745137,), (1399745138,), (1399745151,), (1399745152,), (1399745153,), (1399745154,), (1399745156,), (1399745159,), (1399745186,), (1399745187,), (1399745188,), (1399745189,), (1399745192,), (1399745202,), (1399745203,), (1399745204,), (1399745280,), (1399745301,), (1399745299,), (1399745300,), (1399745326,), (1399745328,), (1399745330,), (1399745345,), (1399745346,), (1399745362,), (1399745364,), (1399745366,), (1399745367,), (1399745369,), (1399745382,), (1399745383,), (1399745384,), (1399745386,), (1399745391,), (1399745394,), (1399745404,), (1399745418,), (1399745420,), (1399745421,), (1399745422,), (1399745441,), (1399745442,), (1399745443,), (1399745444,), (1399745446,), (1399745463,), (1399745464,), (1399745465,), (1399745468,), (1399745470,), (1399745473,), (1399745481,), (1399745483,), (1399745485,), (1399745487,), (1399745491,), (1399745518,), (1399745520,), (1399745522,), (1399745526,), (1399745530,), (1399745534,), (1399745541,), (1399745542,), (1399745543,), (1399745544,), (1399745559,), (1399745560,), (1399745561,), (1399745578,), (1399745579,), (1399745580,), (1399745581,), (1399745584,), (1399745588,), (1399745601,), (1399745602,), (1399745603,), (1399745616,), (1399745617,), (1399745618,), (1399745621,), (1399745625,), (1399745629,), (1399745643,), (1399745641,), (1399745642,), (1399745655,), (1399745669,), (1399745671,), (1399745673,), (1399745677,), (1399745690,), (1399745691,), (1399745692,), (1399745693,), (1399745715,), (1399745716,), (1399745717,), (1399745718,), (1399745737,), (1399745738,), (1399745739,), (1399745757,), (1399745758,), (1399745759,), (1399745760,), (1399745763,), (1399745776,), (1399745778,), (1399745780,), (1399745784,), (1399745788,), (1399745820,), (1399745821,), (1399745822,), (1399745823,), (1399745845,), (1399745847,), (1399745851,), (1399745855,), (1399745859,), (1399745863,), (1399745873,), (1399745874,), (1399745875,), (1399745876,), (1399745877,), (1399745894,), (1399745895,), (1399745896,), (1399745897,), (1399745899,), (1399745902,), (1399745929,), (1399745930,), (1399745932,), (1399745935,), (1399745937,), (1399745939,), (1399745945,), (1399745947,), (1399745948,), (1399745950,), (1399745952,), (1399745954,), (1399746224,), (1399746269,), (1399746304,), (1399746634,), (1399746591,), (1399746594,), (1399746597,), (1399746601,), (1399746822,), (1399746823,), (1399746824,), (1399746825,), (1399747199,), (1399747231,), (1399747265,), (1399747651,), (1399747686,), (1399747717,), (1399747748,), (1399747781,), (1399747894,), (1399747932,), (1399747964,), (1399747981,), (1399747992,), (1399747996,), (1399748043,), (1399748062,), (1399748089,), (1399748093,), (1399748098,), (1399748103,), (1399748104,), (1399748107,), (1399748110,), (1399748124,), (1399748126,), (1399748128,), (1399748130,), (1399748133,), (1399748135,), (1399748159,), (1399748161,), (1399748162,), (1399748164,), (1399748166,), (1399748168,), (1399748197,), (1399748199,), (1399748202,), (1399748204,), (1399748206,), (1399748208,), (1399748230,), (1399748234,), (1399748236,), (1399748239,), (1399748245,), (1399748253,), (1399748259,), (1399748260,), (1399748262,), (1399748264,), (1399748266,), (1399748267,), (1399748271,), (1399748272,), (1399748275,), (1399748276,), (1399748277,), (1399748278,), (1399748282,), (1399748284,), (1399748285,), (1399748287,), (1399748292,), (1399748294,), (1399748303,), (1399748305,), (1399748306,), (1399748307,), (1399748310,), (1399748312,), (1399748335,), (1399748344,), (1399748430,), (1399748420,), (1399748425,), (1399748429,), (1399748449,), (1399748477,), (1399748479,), (1399748499,), (1399748501,), (1399748503,), (1399748507,), (1399748511,), (1399748514,), (1399748529,), (1399748531,), (1399748533,), (1399748535,), (1399748537,), (1399748556,), (1399748557,), (1399748558,), (1399748559,), (1399748594,), (1399748596,), (1399748598,), (1399748607,), (1399748608,), (1399748609,), (1399748610,), (1399748613,), (1399748632,), (1399748634,), (1399748637,), (1399748640,), (1399748660,), (1399748662,), (1399748664,), (1399748668,), (1399748675,), (1399748681,), (1399748697,), (1399748699,), (1399748701,), (1399748703,), (1399748720,), (1399748721,), (1399748722,), (1399748751,), (1399748753,), (1399748755,), (1399748756,), (1399748776,), (1399748777,), (1399748778,), (1399748801,), (1399748803,), (1399748806,), (1399748808,), (1399748810,), (1399748835,), (1399748826,), (1399748827,), (1399748828,), (1399748831,), (1399748856,), (1399748858,), (1399748859,), (1399748860,), (1399748884,), (1399748885,), (1399748886,), (1399748887,), (1399748890,), (1399748911,), (1399748912,), (1399748913,), (1399748916,), (1399748919,), (1399748920,), (1399748929,), (1399748930,), (1399748940,), (1399748941,), (1399748942,), (1399748969,), (1399749052,), (1399749053,), (1399749054,), (1399749055,), (1399749086,), (1399749087,), (1399749088,), (1399749107,), (1399749108,), (1399749127,), (1399749129,), (1399749131,), (1399749133,), (1399749135,), (1399749137,), (1399749151,), (1399749152,), (1399749153,), (1399749154,), (1399749156,), (1399749181,), (1399749183,), (1399749198,), (1399749199,), (1399749201,), (1399749202,), (1399749204,), (1399749206,), (1399749241,), (1399749231,), (1399749232,), (1399749234,), (1399749236,), (1399749239,), (1399749253,), (1399749255,), (1399749257,), (1399749261,), (1399749292,), (1399749293,), (1399749295,), (1399749297,), (1399749299,), (1399749301,), (1399749312,), (1399749315,), (1399749316,), (1399749317,), (1399749320,), (1399749323,), (1399749350,), (1399749352,), (1399749354,), (1399749375,), (1399749377,), (1399749379,), (1399749381,), (1399749383,), (1399749412,), (1399749414,), (1399749416,), (1399749431,), (1399749432,), (1399749434,), (1399749435,), (1399749437,), (1399749439,), (1399749481,), (1399749482,), (1399749483,), (1399749510,), (1399749513,), (1399749516,), (1399749520,), (1399749523,), (1399749526,), (1399749553,), (1399749554,), (1399749555,), (1399749556,), (1399749575,), (1399749578,), (1399749579,), (1399749581,), (1399749610,), (1399749611,), (1399749612,), (1399749615,), (1399749618,), (1399749621,), (1399749628,), (1399749629,), (1399749630,), (1399750064,), (1399750098,), (1399750132,), (1399750165,), (1399750299,), (1399750300,), (1399750331,), (1399750335,), (1399750364,), (1399750367,), (1399750576,), (1399750567,), (1399750570,), (1399750573,), (1399750937,), (1399750971,), (1399751005,), (1399751038,), (1399751071,), (1399751444,), (1399751481,), (1399751513,), (1399751545,), (1399751673,), (1399751675,), (1399751677,), (1399751679,), (1399751709,), (1399751986,), (1399751987,), (1399751988,), (1399752020,), (1399752030,), (1399752047,), (1399752066,), (1399752067,), (1399752071,), (1399752073,), (1399752075,), (1399752077,), (1399752080,), (1399752082,), (1399752108,), (1399752109,), (1399752110,), (1399752111,), (1399752138,), (1399752140,), (1399752142,), (1399752145,), (1399752148,), (1399752150,), (1399752160,), (1399752164,), (1399752167,), (1399752168,), (1399752169,), (1399752213,), (1399752215,), (1399752217,), (1399752235,), (1399752237,), (1399752239,), (1399752241,), (1399752269,), (1399752270,), (1399752271,), (1399752294,), (1399752313,), (1399752314,), (1399752315,), (1399752333,), (1399752335,), (1399752338,), (1399752395,), (1399752393,), (1399752394,), (1399752468,), (1399752475,), (1399752477,), (1399752478,), (1399752487,), (1399752489,), (1399752526,), (1399752528,), (1399752531,), (1399752535,), (1399752539,), (1399752541,), (1399752886,), (1399752943,), (1399752965,), (1399752966,), (1399752969,), (1399753141,), (1399753142,), (1399753191,), (1399753193,), (1399753194,), (1399753196,), (1399753286,), (1399753287,), (1399753288,), (1399753289,), (1399753292,), (1399753294,), (1399753485,), (1399753490,), (1399753501,), (1399753513,), (1399753520,), (1399753521,), (1399753543,), (1399753545,), (1399753553,), (1399753560,), (1399753594,), (1399753655,), (1399754118,), (1399754134,), (1399754138,), (1399754139,), (1399754213,), (1399754214,), (1399754215,), (1399754219,), (1399754221,), (1399754254,), (1399754256,), (1399754258,), (1399754261,), (1399754265,), (1399754267,), (1399754298,), (1399754300,), (1399754302,), (1399754304,), (1399754325,), (1399754327,), (1399754349,), (1399754344,), (1399754345,), (1399754346,), (1399754347,), (1399754369,), (1399754370,), (1399754371,), (1399754372,), (1399754375,), (1399754393,), (1399754394,), (1399754396,), (1399754398,), (1399754402,), (1399754447,), (1399754449,), (1399754659,), (1399754692,), (1399754743,), (1399754781,), (1399754785,), (1399754906,), (1399754907,), (1399754908,), (1399754909,), (1399754931,), (1399754933,), (1399754934,), (1399754936,), (1399755029,), (1399755059,), (1399755061,), (1399755158,), (1399755159,), (1399755160,), (1399755161,), (1399755187,), (1399755188,), (1399755189,), (1399755204,), (1399755205,), (1399755206,), (1399755207,), (1399755210,), (1399755247,), (1399755248,), (1399755249,), (1399755400,), (1399755411,), (1399755436,), (1399755438,), (1399755450,), (1399755506,), (1399755507,), (1399755508,), (1399755509,), (1399755512,), (1399755528,), (1399755529,), (1399755530,), (1399755533,), (1399755536,), (1399755541,), (1399755555,), (1399755560,), (1399755564,), (1399755563,), (1399755586,), (1399755587,), (1399755606,), (1399755628,), (1399755629,), (1399755630,), (1399755643,), (1399755644,), (1399755645,), (1399755646,), (1399755649,), (1399755650,), (1399755663,), (1399755664,), (1399755665,), (1399755666,), (1399755687,), (1399755688,), (1399755689,), (1399755690,), (1399755708,), (1399755709,), (1399755710,), (1399755711,), (1399755713,), (1399755715,), (1399755729,), (1399755730,), (1399755731,), (1399755732,), (1399755735,), (1399755761,), (1399755763,), (1399755765,), (1399755768,), (1399755771,), (1399755772,), (1399755787,), (1399755788,), (1399755789,), (1399755802,), (1399755803,), (1399755819,), (1399755821,), (1399755823,), (1399755827,), (1399755831,), (1399755836,), (1399755850,), (1399755851,), (1399755854,), (1399755857,), (1399755859,), (1399755861,), (1399755869,), (1399755871,), (1399755873,), (1399755875,), (1399755877,), (1399755878,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'17122025': {'nb_upload': 61, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29491177]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1399755878, 1399755877, 1399755875, 1399755873, 1399755871, 1399755869, 1399755861, 1399755859, 1399755857, 1399755854, 1399755851, 1399755850] map_info['map_portfolio_photo'] : {29491177: [1399755878, 1399755877, 1399755875, 1399755873, 1399755871, 1399755869, 1399755861, 1399755859, 1399755857, 1399755854, 1399755851, 1399755850, 1399755836, 1399755831, 1399755827, 1399755823, 1399755821, 1399755819, 1399755803, 1399755802, 1399755789, 1399755788, 1399755787, 1399755772, 1399755771, 1399755768, 1399755765, 1399755763, 1399755761, 1399755735, 1399755732, 1399755731, 1399755730, 1399755729, 1399755715, 1399755713, 1399755711, 1399755710, 1399755709, 1399755708, 1399755690, 1399755689, 1399755688, 1399755687, 1399755666, 1399755665, 1399755664, 1399755663, 1399755650, 1399755649, 1399755646, 1399755645, 1399755644, 1399755643, 1399755630, 1399755629, 1399755628, 1399755606, 1399755587, 1399755586, 1399755563]} final : True mtd_id 4302 list_pids : [1399755878, 1399755877, 1399755875, 1399755873, 1399755871, 1399755869, 1399755861, 1399755859, 1399755857, 1399755854, 1399755851, 1399755850] Looping around the photos to save general results len do output : 1 /29491177Didn'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, '4238519') ('4302', '29491177', '1399755878', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755877', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755875', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755873', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755871', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755869', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755861', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755859', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755857', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755854', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755851', None, None, None, None, None, '4238519') ('4302', None, None, None, None, None, None, None, '4238519') ('4302', '29491177', '1399755850', None, None, None, None, None, '4238519') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '29491177', 'None', None, None, None, None, '4238519'), ('4302', '29491177', '1399755878', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755877', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755875', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755873', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755871', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755869', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755861', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755859', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755857', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755854', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755851', None, None, None, None, None, '4238519'), ('4302', '29491177', '1399755850', None, None, None, None, None, '4238519')] time used for this insertion : 0.021770954132080078 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3686892986297607 time spend to save output : 0.022037982940673828 total time spend for step 5 : 1.3907272815704346 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 (4238519) 2.12user 2.63system 0:10.73elapsed 44%CPU (0avgtext+0avgdata 166716maxresident)k 48inputs+13504outputs (7major+79167minor)pagefaults 0swaps