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 : 1000781 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 (4183763) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4183763) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29173539 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4183763'] with mtr_portfolio_ids : ['29173539'] and first list_photo_ids : [] new path : /proc/1000781/ Name: python3 Umask: 0002 State: R (running) Tgid: 1000781 Ngid: 0 Pid: 1000781 PPid: 1000780 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1000781 NSpid: 1000781 NSpgid: 999758 NSsid: 999758 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104512 kB VmRSS: 104512 kB RssAnon: 66288 kB RssFile: 38224 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 604 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: 89 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1000781', 'Ngid': '0', 'Pid': '1000781', 'PPid': '1000780', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1000781', 'NSpid': '1000781', 'NSpgid': '999758', 'NSsid': '999758', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104512 kB', 'VmRSS': '104512 kB', 'RssAnon': '66288 kB', 'RssFile': '38224 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '604 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': '89'} ('datou_batch_current', '1000781', '1113364', '0', '1113364', '872092', '104512', b'', 'marlene', '4183763') 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 (29173539) 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 (4183763 ) ) 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 (29173539) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1397790145, 'portfolio_id': 29173539}, {'photo_id': 1397790144, 'portfolio_id': 29173539}, {'photo_id': 1397790143, 'portfolio_id': 29173539}, {'photo_id': 1397790142, 'portfolio_id': 29173539}, {'photo_id': 1397790137, 'portfolio_id': 29173539}, {'photo_id': 1397790135, 'portfolio_id': 29173539}, {'photo_id': 1397790133, 'portfolio_id': 29173539}, {'photo_id': 1397790132, 'portfolio_id': 29173539}, {'photo_id': 1397790131, 'portfolio_id': 29173539}, {'photo_id': 1397790130, 'portfolio_id': 29173539}, {'photo_id': 1397790116, 'portfolio_id': 29173539}, {'photo_id': 1397790114, 'portfolio_id': 29173539}, {'photo_id': 1397790112, 'portfolio_id': 29173539}, {'photo_id': 1397790110, 'portfolio_id': 29173539}, {'photo_id': 1397790109, 'portfolio_id': 29173539}, {'photo_id': 1397790108, 'portfolio_id': 29173539}, {'photo_id': 1397790102, 'portfolio_id': 29173539}, {'photo_id': 1397790101, 'portfolio_id': 29173539}, {'photo_id': 1397790096, 'portfolio_id': 29173539}, {'photo_id': 1397790087, 'portfolio_id': 29173539}, {'photo_id': 1397790074, 'portfolio_id': 29173539}, {'photo_id': 1397790072, 'portfolio_id': 29173539}, {'photo_id': 1397790070, 'portfolio_id': 29173539}, {'photo_id': 1397790069, 'portfolio_id': 29173539}, {'photo_id': 1397790068, 'portfolio_id': 29173539}, {'photo_id': 1397790067, 'portfolio_id': 29173539}, {'photo_id': 1397790060, 'portfolio_id': 29173539}, {'photo_id': 1397790059, 'portfolio_id': 29173539}, {'photo_id': 1397790058, 'portfolio_id': 29173539}, {'photo_id': 1397790057, 'portfolio_id': 29173539}, {'photo_id': 1397790042, 'portfolio_id': 29173539}, {'photo_id': 1397790040, 'portfolio_id': 29173539}, {'photo_id': 1397790038, 'portfolio_id': 29173539}, {'photo_id': 1397790037, 'portfolio_id': 29173539}, {'photo_id': 1397790036, 'portfolio_id': 29173539}, {'photo_id': 1397790035, 'portfolio_id': 29173539}, {'photo_id': 1397790029, 'portfolio_id': 29173539}, {'photo_id': 1397790027, 'portfolio_id': 29173539}, {'photo_id': 1397790025, 'portfolio_id': 29173539}, {'photo_id': 1397790024, 'portfolio_id': 29173539}, {'photo_id': 1397790023, 'portfolio_id': 29173539}, {'photo_id': 1397790022, 'portfolio_id': 29173539}, {'photo_id': 1397790004, 'portfolio_id': 29173539}, {'photo_id': 1397790003, 'portfolio_id': 29173539}, {'photo_id': 1397790002, 'portfolio_id': 29173539}, {'photo_id': 1397789954, 'portfolio_id': 29173539}, {'photo_id': 1397789930, 'portfolio_id': 29173539}, {'photo_id': 1397789928, 'portfolio_id': 29173539}, {'photo_id': 1397789924, 'portfolio_id': 29173539}, {'photo_id': 1397789902, 'portfolio_id': 29173539}, {'photo_id': 1397789870, 'portfolio_id': 29173539}, {'photo_id': 1397789737, 'portfolio_id': 29173539}, {'photo_id': 1397789703, 'portfolio_id': 29173539}, {'photo_id': 1397789669, 'portfolio_id': 29173539}, {'photo_id': 1397789329, 'portfolio_id': 29173539}, {'photo_id': 1397789278, 'portfolio_id': 29173539}, {'photo_id': 1397789226, 'portfolio_id': 29173539}, {'photo_id': 1397789193, 'portfolio_id': 29173539}, {'photo_id': 1397789158, 'portfolio_id': 29173539}, {'photo_id': 1397789081, 'portfolio_id': 29173539}, {'photo_id': 1397788740, 'portfolio_id': 29173539}, {'photo_id': 1397788738, 'portfolio_id': 29173539}, {'photo_id': 1397788736, 'portfolio_id': 29173539}, {'photo_id': 1397788734, 'portfolio_id': 29173539}] map_portfolio_id_photo_id: {29173539: [1397790145, 1397790144, 1397790143, 1397790142, 1397790137, 1397790135, 1397790133, 1397790132, 1397790131, 1397790130, 1397790116, 1397790114, 1397790112, 1397790110, 1397790109, 1397790108, 1397790102, 1397790101, 1397790096, 1397790087, 1397790074, 1397790072, 1397790070, 1397790069, 1397790068, 1397790067, 1397790060, 1397790059, 1397790058, 1397790057, 1397790042, 1397790040, 1397790038, 1397790037, 1397790036, 1397790035, 1397790029, 1397790027, 1397790025, 1397790024, 1397790023, 1397790022, 1397790004, 1397790003, 1397790002, 1397789954, 1397789930, 1397789928, 1397789924, 1397789902, 1397789870, 1397789737, 1397789703, 1397789669, 1397789329, 1397789278, 1397789226, 1397789193, 1397789158, 1397789081, 1397788740, 1397788738, 1397788736, 1397788734]} ##### 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.01730632781982422 #### 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 Thu Dec 4 06:14: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 (29173539) 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 : 29173539 get user id for portfolio 29173539 get sub ptf for main ptf 29173539, type 3726 and hashtags ['Teint_Dans_La_Masse', 'autre_refus', 'environnement', 'papier', 'Carton_brun', 'kraft', 'plastique', 'mal_croppe', 'flou', 'metal', 'Carton_gris', 'cartonnette'] 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`=29173539 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','environnement','papier','Carton_brun','kraft','plastique','mal_croppe','flou','metal','Carton_gris','cartonnette')) 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`=29173539 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','environnement','papier','Carton_brun','kraft','plastique','mal_croppe','flou','metal','Carton_gris','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 29173539, 'sub_port_id': 29173543, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19832145, 'last_updated_at': datetime.datetime(2025, 12, 4, 6, 13), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 6, 13), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 6, 2, 58)}, 'environnement': {'main_port_id': 29173539, 'sub_port_id': 29173544, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19832146, 'last_updated_at': datetime.datetime(2025, 12, 4, 6, 13), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 6, 13), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 6, 2, 58)}, 'Carton_brun': {'main_port_id': 29173539, 'sub_port_id': 29173545, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19832147, 'last_updated_at': datetime.datetime(2025, 12, 4, 6, 13), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 6, 13), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 6, 2, 58)}, 'kraft': {'main_port_id': 29173539, 'sub_port_id': 29173546, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19832148, 'last_updated_at': datetime.datetime(2025, 12, 4, 6, 13), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 6, 13), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 6, 2, 58)}, 'mal_croppe': {'main_port_id': 29173539, 'sub_port_id': 29173547, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19832149, 'last_updated_at': datetime.datetime(2025, 12, 4, 6, 13), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 6, 13), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 6, 2, 58)}, 'metal': {'main_port_id': 29173539, 'sub_port_id': 29173548, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19832150, 'last_updated_at': datetime.datetime(2025, 12, 4, 6, 13), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 6, 13), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 6, 2, 58)}, 'plastique': {'main_port_id': 29173539, 'sub_port_id': 29173549, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19832151, 'last_updated_at': datetime.datetime(2025, 12, 4, 6, 13), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 6, 13), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 6, 2, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 29173539, 'sub_port_id': 29173550, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19832152, 'last_updated_at': datetime.datetime(2025, 12, 4, 6, 13), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 6, 13), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 6, 2, 58)}, 'Carton_gris': {'main_port_id': 29173539, 'sub_port_id': 29173551, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19832153, 'last_updated_at': datetime.datetime(2025, 12, 4, 6, 13), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 6, 13), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 6, 2, 58)}, 'papier': {'main_port_id': 29173539, 'sub_port_id': 29173552, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19832154, 'last_updated_at': datetime.datetime(2025, 12, 4, 6, 13), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 6, 13), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 6, 2, 58)}, 'autre_refus': {'main_port_id': 29173539, 'sub_port_id': 29173553, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19832155, 'last_updated_at': datetime.datetime(2025, 12, 4, 6, 13), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 6, 13), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 6, 2, 58)}, 'cartonnette': {'main_port_id': 29173539, 'sub_port_id': 29173554, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19832156, 'last_updated_at': datetime.datetime(2025, 12, 4, 6, 13), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 6, 13), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 6, 2, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29173543 , 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=29173539 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 (29173543) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29173539) result : ((1397788734,), (1397788736,), (1397788738,), (1397788740,), (1397789081,), (1397789158,), (1397789193,), (1397789226,), (1397789278,), (1397789329,), (1397789669,), (1397789703,), (1397789737,), (1397789870,), (1397789902,), (1397789924,), (1397789928,), (1397789930,), (1397789954,), (1397790002,), (1397790003,), (1397790004,), (1397790022,), (1397790023,), (1397790024,), (1397790025,), (1397790027,), (1397790029,), (1397790035,), (1397790036,), (1397790037,), (1397790038,), (1397790040,), (1397790042,), (1397790057,), (1397790058,), (1397790059,), (1397790060,), (1397790067,), (1397790068,), (1397790069,), (1397790070,), (1397790072,), (1397790074,), (1397790087,), (1397790096,), (1397790101,), (1397790102,), (1397790108,), (1397790109,), (1397790110,), (1397790112,), (1397790114,), (1397790116,), (1397790130,), (1397790131,), (1397790132,), (1397790133,), (1397790135,), (1397790137,), (1397790142,), (1397790143,), (1397790144,), (1397790145,)) 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 29173544 , 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=29173539 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 (29173544) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29173539) result : ((1397788734,), (1397788736,), (1397788738,), (1397788740,), (1397789081,), (1397789158,), (1397789193,), (1397789226,), (1397789278,), (1397789329,), (1397789669,), (1397789703,), (1397789737,), (1397789870,), (1397789902,), (1397789924,), (1397789928,), (1397789930,), (1397789954,), (1397790002,), (1397790003,), (1397790004,), (1397790022,), (1397790023,), (1397790024,), (1397790025,), (1397790027,), (1397790029,), (1397790035,), (1397790036,), (1397790037,), (1397790038,), (1397790040,), (1397790042,), (1397790057,), (1397790058,), (1397790059,), (1397790060,), (1397790067,), (1397790068,), (1397790069,), (1397790070,), (1397790072,), (1397790074,), (1397790087,), (1397790096,), (1397790101,), (1397790102,), (1397790108,), (1397790109,), (1397790110,), (1397790112,), (1397790114,), (1397790116,), (1397790130,), (1397790131,), (1397790132,), (1397790133,), (1397790135,), (1397790137,), (1397790142,), (1397790143,), (1397790144,), (1397790145,)) 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 29173545 , 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=29173539 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 (29173545) result : ((1397790047,), (1397790120,), (1397790121,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29173539) result : ((1397788734,), (1397788736,), (1397788738,), (1397788740,), (1397789081,), (1397789158,), (1397789193,), (1397789226,), (1397789278,), (1397789329,), (1397789669,), (1397789703,), (1397789737,), (1397789870,), (1397789902,), (1397789924,), (1397789928,), (1397789930,), (1397789954,), (1397790002,), (1397790003,), (1397790004,), (1397790022,), (1397790023,), (1397790024,), (1397790025,), (1397790027,), (1397790029,), (1397790035,), (1397790036,), (1397790037,), (1397790038,), (1397790040,), (1397790042,), (1397790057,), (1397790058,), (1397790059,), (1397790060,), (1397790067,), (1397790068,), (1397790069,), (1397790070,), (1397790072,), (1397790074,), (1397790087,), (1397790096,), (1397790101,), (1397790102,), (1397790108,), (1397790109,), (1397790110,), (1397790112,), (1397790114,), (1397790116,), (1397790130,), (1397790131,), (1397790132,), (1397790133,), (1397790135,), (1397790137,), (1397790142,), (1397790143,), (1397790144,), (1397790145,)) 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 29173546 , 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=29173539 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 (29173546) result : ((1397790013,), (1397790086,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29173539) result : ((1397788734,), (1397788736,), (1397788738,), (1397788740,), (1397789081,), (1397789158,), (1397789193,), (1397789226,), (1397789278,), (1397789329,), (1397789669,), (1397789703,), (1397789737,), (1397789870,), (1397789902,), (1397789924,), (1397789928,), (1397789930,), (1397789954,), (1397790002,), (1397790003,), (1397790004,), (1397790022,), (1397790023,), (1397790024,), (1397790025,), (1397790027,), (1397790029,), (1397790035,), (1397790036,), (1397790037,), (1397790038,), (1397790040,), (1397790042,), (1397790057,), (1397790058,), (1397790059,), (1397790060,), (1397790067,), (1397790068,), (1397790069,), (1397790070,), (1397790072,), (1397790074,), (1397790087,), (1397790096,), (1397790101,), (1397790102,), (1397790108,), (1397790109,), (1397790110,), (1397790112,), (1397790114,), (1397790116,), (1397790130,), (1397790131,), (1397790132,), (1397790133,), (1397790135,), (1397790137,), (1397790142,), (1397790143,), (1397790144,), (1397790145,)) 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 29173547 , 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=29173539 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 (29173547) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29173539) result : ((1397788734,), (1397788736,), (1397788738,), (1397788740,), (1397789081,), (1397789158,), (1397789193,), (1397789226,), (1397789278,), (1397789329,), (1397789669,), (1397789703,), (1397789737,), (1397789870,), (1397789902,), (1397789924,), (1397789928,), (1397789930,), (1397789954,), (1397790002,), (1397790003,), (1397790004,), (1397790022,), (1397790023,), (1397790024,), (1397790025,), (1397790027,), (1397790029,), (1397790035,), (1397790036,), (1397790037,), (1397790038,), (1397790040,), (1397790042,), (1397790057,), (1397790058,), (1397790059,), (1397790060,), (1397790067,), (1397790068,), (1397790069,), (1397790070,), (1397790072,), (1397790074,), (1397790087,), (1397790096,), (1397790101,), (1397790102,), (1397790108,), (1397790109,), (1397790110,), (1397790112,), (1397790114,), (1397790116,), (1397790130,), (1397790131,), (1397790132,), (1397790133,), (1397790135,), (1397790137,), (1397790142,), (1397790143,), (1397790144,), (1397790145,)) 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 29173548 , 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=29173539 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 (29173548) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29173539) result : ((1397788734,), (1397788736,), (1397788738,), (1397788740,), (1397789081,), (1397789158,), (1397789193,), (1397789226,), (1397789278,), (1397789329,), (1397789669,), (1397789703,), (1397789737,), (1397789870,), (1397789902,), (1397789924,), (1397789928,), (1397789930,), (1397789954,), (1397790002,), (1397790003,), (1397790004,), (1397790022,), (1397790023,), (1397790024,), (1397790025,), (1397790027,), (1397790029,), (1397790035,), (1397790036,), (1397790037,), (1397790038,), (1397790040,), (1397790042,), (1397790057,), (1397790058,), (1397790059,), (1397790060,), (1397790067,), (1397790068,), (1397790069,), (1397790070,), (1397790072,), (1397790074,), (1397790087,), (1397790096,), (1397790101,), (1397790102,), (1397790108,), (1397790109,), (1397790110,), (1397790112,), (1397790114,), (1397790116,), (1397790130,), (1397790131,), (1397790132,), (1397790133,), (1397790135,), (1397790137,), (1397790142,), (1397790143,), (1397790144,), (1397790145,)) 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 29173549 , 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=29173539 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 (29173549) result : ((1397790049,), (1397790050,), (1397790085,), (1397790107,), (1397790122,), (1397790123,), (1397790129,), (1397790152,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29173539) result : ((1397788734,), (1397788736,), (1397788738,), (1397788740,), (1397789081,), (1397789158,), (1397789193,), (1397789226,), (1397789278,), (1397789329,), (1397789669,), (1397789703,), (1397789737,), (1397789870,), (1397789902,), (1397789924,), (1397789928,), (1397789930,), (1397789954,), (1397790002,), (1397790003,), (1397790004,), (1397790022,), (1397790023,), (1397790024,), (1397790025,), (1397790027,), (1397790029,), (1397790035,), (1397790036,), (1397790037,), (1397790038,), (1397790040,), (1397790042,), (1397790057,), (1397790058,), (1397790059,), (1397790060,), (1397790067,), (1397790068,), (1397790069,), (1397790070,), (1397790072,), (1397790074,), (1397790087,), (1397790096,), (1397790101,), (1397790102,), (1397790108,), (1397790109,), (1397790110,), (1397790112,), (1397790114,), (1397790116,), (1397790130,), (1397790131,), (1397790132,), (1397790133,), (1397790135,), (1397790137,), (1397790142,), (1397790143,), (1397790144,), (1397790145,)) 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 29173550 , 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=29173539 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 (29173550) result : ((1397790008,), (1397790009,), (1397790010,), (1397790033,), (1397790045,), (1397790077,), (1397790078,), (1397790079,), (1397790080,), (1397790119,), (1397790124,), (1397790125,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29173539) result : ((1397788734,), (1397788736,), (1397788738,), (1397788740,), (1397789081,), (1397789158,), (1397789193,), (1397789226,), (1397789278,), (1397789329,), (1397789669,), (1397789703,), (1397789737,), (1397789870,), (1397789902,), (1397789924,), (1397789928,), (1397789930,), (1397789954,), (1397790002,), (1397790003,), (1397790004,), (1397790022,), (1397790023,), (1397790024,), (1397790025,), (1397790027,), (1397790029,), (1397790035,), (1397790036,), (1397790037,), (1397790038,), (1397790040,), (1397790042,), (1397790057,), (1397790058,), (1397790059,), (1397790060,), (1397790067,), (1397790068,), (1397790069,), (1397790070,), (1397790072,), (1397790074,), (1397790087,), (1397790096,), (1397790101,), (1397790102,), (1397790108,), (1397790109,), (1397790110,), (1397790112,), (1397790114,), (1397790116,), (1397790130,), (1397790131,), (1397790132,), (1397790133,), (1397790135,), (1397790137,), (1397790142,), (1397790143,), (1397790144,), (1397790145,)) 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 29173551 , 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=29173539 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 (29173551) result : ((1397790083,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29173539) result : ((1397788734,), (1397788736,), (1397788738,), (1397788740,), (1397789081,), (1397789158,), (1397789193,), (1397789226,), (1397789278,), (1397789329,), (1397789669,), (1397789703,), (1397789737,), (1397789870,), (1397789902,), (1397789924,), (1397789928,), (1397789930,), (1397789954,), (1397790002,), (1397790003,), (1397790004,), (1397790022,), (1397790023,), (1397790024,), (1397790025,), (1397790027,), (1397790029,), (1397790035,), (1397790036,), (1397790037,), (1397790038,), (1397790040,), (1397790042,), (1397790057,), (1397790058,), (1397790059,), (1397790060,), (1397790067,), (1397790068,), (1397790069,), (1397790070,), (1397790072,), (1397790074,), (1397790087,), (1397790096,), (1397790101,), (1397790102,), (1397790108,), (1397790109,), (1397790110,), (1397790112,), (1397790114,), (1397790116,), (1397790130,), (1397790131,), (1397790132,), (1397790133,), (1397790135,), (1397790137,), (1397790142,), (1397790143,), (1397790144,), (1397790145,)) 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 29173552 , 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=29173539 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 (29173552) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29173539) result : ((1397788734,), (1397788736,), (1397788738,), (1397788740,), (1397789081,), (1397789158,), (1397789193,), (1397789226,), (1397789278,), (1397789329,), (1397789669,), (1397789703,), (1397789737,), (1397789870,), (1397789902,), (1397789924,), (1397789928,), (1397789930,), (1397789954,), (1397790002,), (1397790003,), (1397790004,), (1397790022,), (1397790023,), (1397790024,), (1397790025,), (1397790027,), (1397790029,), (1397790035,), (1397790036,), (1397790037,), (1397790038,), (1397790040,), (1397790042,), (1397790057,), (1397790058,), (1397790059,), (1397790060,), (1397790067,), (1397790068,), (1397790069,), (1397790070,), (1397790072,), (1397790074,), (1397790087,), (1397790096,), (1397790101,), (1397790102,), (1397790108,), (1397790109,), (1397790110,), (1397790112,), (1397790114,), (1397790116,), (1397790130,), (1397790131,), (1397790132,), (1397790133,), (1397790135,), (1397790137,), (1397790142,), (1397790143,), (1397790144,), (1397790145,)) 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 29173553 , 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=29173539 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 (29173553) result : ((1397790011,), (1397790034,), (1397790081,), (1397790082,), (1397790126,), (1397790127,), (1397790128,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29173539) result : ((1397788734,), (1397788736,), (1397788738,), (1397788740,), (1397789081,), (1397789158,), (1397789193,), (1397789226,), (1397789278,), (1397789329,), (1397789669,), (1397789703,), (1397789737,), (1397789870,), (1397789902,), (1397789924,), (1397789928,), (1397789930,), (1397789954,), (1397790002,), (1397790003,), (1397790004,), (1397790022,), (1397790023,), (1397790024,), (1397790025,), (1397790027,), (1397790029,), (1397790035,), (1397790036,), (1397790037,), (1397790038,), (1397790040,), (1397790042,), (1397790057,), (1397790058,), (1397790059,), (1397790060,), (1397790067,), (1397790068,), (1397790069,), (1397790070,), (1397790072,), (1397790074,), (1397790087,), (1397790096,), (1397790101,), (1397790102,), (1397790108,), (1397790109,), (1397790110,), (1397790112,), (1397790114,), (1397790116,), (1397790130,), (1397790131,), (1397790132,), (1397790133,), (1397790135,), (1397790137,), (1397790142,), (1397790143,), (1397790144,), (1397790145,)) 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 29173554 , 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=29173539 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 (29173554) result : ((1397790012,), (1397790046,), (1397790084,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29173539) result : ((1397788734,), (1397788736,), (1397788738,), (1397788740,), (1397789081,), (1397789158,), (1397789193,), (1397789226,), (1397789278,), (1397789329,), (1397789669,), (1397789703,), (1397789737,), (1397789870,), (1397789902,), (1397789924,), (1397789928,), (1397789930,), (1397789954,), (1397790002,), (1397790003,), (1397790004,), (1397790022,), (1397790023,), (1397790024,), (1397790025,), (1397790027,), (1397790029,), (1397790035,), (1397790036,), (1397790037,), (1397790038,), (1397790040,), (1397790042,), (1397790057,), (1397790058,), (1397790059,), (1397790060,), (1397790067,), (1397790068,), (1397790069,), (1397790070,), (1397790072,), (1397790074,), (1397790087,), (1397790096,), (1397790101,), (1397790102,), (1397790108,), (1397790109,), (1397790110,), (1397790112,), (1397790114,), (1397790116,), (1397790130,), (1397790131,), (1397790132,), (1397790133,), (1397790135,), (1397790137,), (1397790142,), (1397790143,), (1397790144,), (1397790145,)) 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`=29173539 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','environnement','papier','Carton_brun','kraft','plastique','mal_croppe','flou','metal','Carton_gris','cartonnette')) 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`=29173539 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','environnement','papier','Carton_brun','kraft','plastique','mal_croppe','flou','metal','Carton_gris','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 29173539, 'sub_port_id': 29173556, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19832157, 'last_updated_at': datetime.datetime(2025, 12, 4, 6, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 6, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 6, 3)}, 'environnement': {'main_port_id': 29173539, 'sub_port_id': 29173557, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19832158, 'last_updated_at': datetime.datetime(2025, 12, 4, 6, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 6, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 6, 3)}, 'Carton_brun': {'main_port_id': 29173539, 'sub_port_id': 29173558, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19832159, 'last_updated_at': datetime.datetime(2025, 12, 4, 6, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 6, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 6, 3)}, 'kraft': {'main_port_id': 29173539, 'sub_port_id': 29173559, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19832160, 'last_updated_at': datetime.datetime(2025, 12, 4, 6, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 6, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 6, 3)}, 'mal_croppe': {'main_port_id': 29173539, 'sub_port_id': 29173560, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19832161, 'last_updated_at': datetime.datetime(2025, 12, 4, 6, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 6, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 6, 3)}, 'metal': {'main_port_id': 29173539, 'sub_port_id': 29173561, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19832162, 'last_updated_at': datetime.datetime(2025, 12, 4, 6, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 6, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 6, 3)}, 'plastique': {'main_port_id': 29173539, 'sub_port_id': 29173562, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19832163, 'last_updated_at': datetime.datetime(2025, 12, 4, 6, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 6, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 6, 3)}, 'Teint_Dans_La_Masse': {'main_port_id': 29173539, 'sub_port_id': 29173563, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19832164, 'last_updated_at': datetime.datetime(2025, 12, 4, 6, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 6, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 6, 3)}, 'Carton_gris': {'main_port_id': 29173539, 'sub_port_id': 29173564, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19832165, 'last_updated_at': datetime.datetime(2025, 12, 4, 6, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 6, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 6, 3)}, 'papier': {'main_port_id': 29173539, 'sub_port_id': 29173565, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19832166, 'last_updated_at': datetime.datetime(2025, 12, 4, 6, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 6, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 6, 3)}, 'autre_refus': {'main_port_id': 29173539, 'sub_port_id': 29173566, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19832167, 'last_updated_at': datetime.datetime(2025, 12, 4, 6, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 6, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 6, 3)}, 'cartonnette': {'main_port_id': 29173539, 'sub_port_id': 29173567, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19832168, 'last_updated_at': datetime.datetime(2025, 12, 4, 6, 13), 'last_updated_at_desc': datetime.datetime(2025, 12, 4, 6, 13), 'last_updated_at_asc': datetime.datetime(2025, 12, 4, 6, 3)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29173556,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29173543 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29173557,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29173544 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29173558,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29173545 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29173559,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29173546 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29173560,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29173547 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29173561,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29173548 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29173562,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29173549 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29173563,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29173550 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29173564,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29173551 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29173565,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29173552 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29173566,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29173553 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29173567,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29173554 lien utilise dans velours : https://marlene.fotonower.com/velours/29173556,29173557,29173558,29173559,29173560,29173561,29173562,29173563,29173564,29173565,29173566,29173567?tags=flou,environnement,Carton_brun,kraft,mal_croppe,metal,plastique,Teint_Dans_La_Masse,Carton_gris,papier,autre_refus,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29173539]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1397790145, 1397790144, 1397790143, 1397790142, 1397790137, 1397790135, 1397790133, 1397790132, 1397790131, 1397790130] map_info['map_portfolio_photo'] : {29173539: [1397790145, 1397790144, 1397790143, 1397790142, 1397790137, 1397790135, 1397790133, 1397790132, 1397790131, 1397790130, 1397790116, 1397790114, 1397790112, 1397790110, 1397790109, 1397790108, 1397790102, 1397790101, 1397790096, 1397790087, 1397790074, 1397790072, 1397790070, 1397790069, 1397790068, 1397790067, 1397790060, 1397790059, 1397790058, 1397790057, 1397790042, 1397790040, 1397790038, 1397790037, 1397790036, 1397790035, 1397790029, 1397790027, 1397790025, 1397790024, 1397790023, 1397790022, 1397790004, 1397790003, 1397790002, 1397789954, 1397789930, 1397789928, 1397789924, 1397789902, 1397789870, 1397789737, 1397789703, 1397789669, 1397789329, 1397789278, 1397789226, 1397789193, 1397789158, 1397789081, 1397788740, 1397788738, 1397788736, 1397788734]} final : False mtd_id 4302 list_pids : [1397790145, 1397790144, 1397790143, 1397790142, 1397790137, 1397790135, 1397790133, 1397790132, 1397790131, 1397790130] Looping around the photos to save general results len do output : 1 /29173539. 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, '4183763') ('4302', '29173539', '1397790145', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790144', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790143', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790142', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790137', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790135', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790133', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790132', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790131', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790130', None, None, None, None, None, '4183763') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29173539', "{'flou': 29173543, 'environnement': 29173544, 'Carton_brun': 29173545, 'kraft': 29173546, 'mal_croppe': 29173547, 'metal': 29173548, 'plastique': 29173549, 'Teint_Dans_La_Masse': 29173550, 'Carton_gris': 29173551, 'papier': 29173552, 'autre_refus': 29173553, 'cartonnette': 29173554}", None, None, None, None, '4183763'), ('4302', '29173539', '1397790145', None, None, None, None, None, '4183763'), ('4302', '29173539', '1397790144', None, None, None, None, None, '4183763'), ('4302', '29173539', '1397790143', None, None, None, None, None, '4183763'), ('4302', '29173539', '1397790142', None, None, None, None, None, '4183763'), ('4302', '29173539', '1397790137', None, None, None, None, None, '4183763'), ('4302', '29173539', '1397790135', None, None, None, None, None, '4183763'), ('4302', '29173539', '1397790133', None, None, None, None, None, '4183763'), ('4302', '29173539', '1397790132', None, None, None, None, None, '4183763'), ('4302', '29173539', '1397790131', None, None, None, None, None, '4183763'), ('4302', '29173539', '1397790130', None, None, None, None, None, '4183763')] time used for this insertion : 0.017197608947753906 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8389992713928223 time spend to save output : 0.017510652542114258 total time spend for step 1 : 1.8565099239349365 step2:final Thu Dec 4 06:14: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 (29173539) 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 29173539 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1397788740,1397788738,1397788736,1397788734,1397789329,1397789278,1397789226,1397789193,1397789158,1397789081,1397789737,1397789703,1397789669,1397789954,1397789930,1397789928,1397789924,1397789902,1397789870,1397790004,1397790003,1397790002,1397790029,1397790027,1397790025,1397790024,1397790023,1397790022,1397790042,1397790040,1397790038,1397790037,1397790036,1397790060,1397790035,1397790059,1397790058,1397790057,1397790074,1397790072,1397790070,1397790069,1397790068,1397790067,1397790102,1397790101,1397790096,1397790087,1397790116,1397790114,1397790112,1397790110,1397790109,1397790108,1397790137,1397790135,1397790133,1397790132,1397790131,1397790130,1397790145,1397790144,1397790143,1397790142); 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([29173539]) Inside saveOutput : final : False verbose : True original output for save of step final : {1397790145: ('0.03977951541145753',), 1397790144: ('0.03977951541145753',), 1397790143: ('0.03977951541145753',), 1397790142: ('0.03977951541145753',), 1397790137: ('0.03977951541145753',), 1397790135: ('0.03977951541145753',), 1397790133: ('0.03977951541145753',), 1397790132: ('0.03977951541145753',), 1397790131: ('0.03977951541145753',), 1397790130: ('0.03977951541145753',)} new output for save of step final : {1397790145: ('0.03977951541145753',), 1397790144: ('0.03977951541145753',), 1397790143: ('0.03977951541145753',), 1397790142: ('0.03977951541145753',), 1397790137: ('0.03977951541145753',), 1397790135: ('0.03977951541145753',), 1397790133: ('0.03977951541145753',), 1397790132: ('0.03977951541145753',), 1397790131: ('0.03977951541145753',), 1397790130: ('0.03977951541145753',)} [1397790145, 1397790144, 1397790143, 1397790142, 1397790137, 1397790135, 1397790133, 1397790132, 1397790131, 1397790130] map_info['map_portfolio_photo'] : {29173539: [1397790145, 1397790144, 1397790143, 1397790142, 1397790137, 1397790135, 1397790133, 1397790132, 1397790131, 1397790130, 1397790116, 1397790114, 1397790112, 1397790110, 1397790109, 1397790108, 1397790102, 1397790101, 1397790096, 1397790087, 1397790074, 1397790072, 1397790070, 1397790069, 1397790068, 1397790067, 1397790060, 1397790059, 1397790058, 1397790057, 1397790042, 1397790040, 1397790038, 1397790037, 1397790036, 1397790035, 1397790029, 1397790027, 1397790025, 1397790024, 1397790023, 1397790022, 1397790004, 1397790003, 1397790002, 1397789954, 1397789930, 1397789928, 1397789924, 1397789902, 1397789870, 1397789737, 1397789703, 1397789669, 1397789329, 1397789278, 1397789226, 1397789193, 1397789158, 1397789081, 1397788740, 1397788738, 1397788736, 1397788734]} final : False mtd_id 4302 list_pids : [1397790145, 1397790144, 1397790143, 1397790142, 1397790137, 1397790135, 1397790133, 1397790132, 1397790131, 1397790130] Looping around the photos to save general results len do output : 10 /1397790145.Didn't retrieve data . /1397790144.Didn't retrieve data . /1397790143.Didn't retrieve data . /1397790142.Didn't retrieve data . /1397790137.Didn't retrieve data . /1397790135.Didn't retrieve data . /1397790133.Didn't retrieve data . /1397790132.Didn't retrieve data . /1397790131.Didn't retrieve data . /1397790130.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, '4183763') ('4302', '29173539', '1397790145', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790144', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790143', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790142', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790137', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790135', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790133', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790132', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790131', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790130', None, None, None, None, None, '4183763') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '29173539', '1397790145', '0.03977951541145753', None, None, None, None, '4183763'), ('4302', '29173539', '1397790144', '0.03977951541145753', None, None, None, None, '4183763'), ('4302', '29173539', '1397790143', '0.03977951541145753', None, None, None, None, '4183763'), ('4302', '29173539', '1397790142', '0.03977951541145753', None, None, None, None, '4183763'), ('4302', '29173539', '1397790137', '0.03977951541145753', None, None, None, None, '4183763'), ('4302', '29173539', '1397790135', '0.03977951541145753', None, None, None, None, '4183763'), ('4302', '29173539', '1397790133', '0.03977951541145753', None, None, None, None, '4183763'), ('4302', '29173539', '1397790132', '0.03977951541145753', None, None, None, None, '4183763'), ('4302', '29173539', '1397790131', '0.03977951541145753', None, None, None, None, '4183763'), ('4302', '29173539', '1397790130', '0.03977951541145753', None, None, None, None, '4183763')] time used for this insertion : 0.0187227725982666 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08489823341369629 time spend to save output : 0.019232749938964844 total time spend for step 2 : 0.10413098335266113 step3:velours_tree Thu Dec 4 06:14: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 : {29173539: [{'flou': 29173543, 'environnement': 29173544, 'Carton_brun': 29173545, 'kraft': 29173546, 'mal_croppe': 29173547, 'metal': 29173548, 'plastique': 29173549, 'Teint_Dans_La_Masse': 29173550, 'Carton_gris': 29173551, 'papier': 29173552, 'autre_refus': 29173553, 'cartonnette': 29173554}]} input_args_next_step : {29173539: ()} output_args : {29173539: [{'flou': 29173543, 'environnement': 29173544, 'Carton_brun': 29173545, 'kraft': 29173546, 'mal_croppe': 29173547, 'metal': 29173548, 'plastique': 29173549, 'Teint_Dans_La_Masse': 29173550, 'Carton_gris': 29173551, 'papier': 29173552, 'autre_refus': 29173553, 'cartonnette': 29173554}]} args : 29173539 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 : ({'flou': 29173543, 'environnement': 29173544, 'Carton_brun': 29173545, 'kraft': 29173546, 'mal_croppe': 29173547, 'metal': 29173548, 'plastique': 29173549, 'Teint_Dans_La_Masse': 29173550, 'Carton_gris': 29173551, 'papier': 29173552, 'autre_refus': 29173553, 'cartonnette': 29173554},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29173539) 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([29173539]) 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.2594788074493408 time spend to save output : 4.887580871582031e-05 total time spend for step 3 : 0.25952768325805664 step4:send_mail_cod Thu Dec 4 06:14: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 ! complete output_args for input 2 : {1397790145: ('0.03977951541145753',), 1397790144: ('0.03977951541145753',), 1397790143: ('0.03977951541145753',), 1397790142: ('0.03977951541145753',), 1397790137: ('0.03977951541145753',), 1397790135: ('0.03977951541145753',), 1397790133: ('0.03977951541145753',), 1397790132: ('0.03977951541145753',), 1397790131: ('0.03977951541145753',), 1397790130: ('0.03977951541145753',)} input_args_next_step : {1397790145: ()} output_args : {1397790145: ('0.03977951541145753',), 1397790144: ('0.03977951541145753',), 1397790143: ('0.03977951541145753',), 1397790142: ('0.03977951541145753',), 1397790137: ('0.03977951541145753',), 1397790135: ('0.03977951541145753',), 1397790133: ('0.03977951541145753',), 1397790132: ('0.03977951541145753',), 1397790131: ('0.03977951541145753',), 1397790130: ('0.03977951541145753',)} args : 1397790145 depend.output_id : 0 input_args_next_step : {1397790145: ('0.03977951541145753',), 1397790144: ()} output_args : {1397790145: ('0.03977951541145753',), 1397790144: ('0.03977951541145753',), 1397790143: ('0.03977951541145753',), 1397790142: ('0.03977951541145753',), 1397790137: ('0.03977951541145753',), 1397790135: ('0.03977951541145753',), 1397790133: ('0.03977951541145753',), 1397790132: ('0.03977951541145753',), 1397790131: ('0.03977951541145753',), 1397790130: ('0.03977951541145753',)} args : 1397790144 depend.output_id : 0 input_args_next_step : {1397790145: ('0.03977951541145753',), 1397790144: ('0.03977951541145753',), 1397790143: ()} output_args : {1397790145: ('0.03977951541145753',), 1397790144: ('0.03977951541145753',), 1397790143: ('0.03977951541145753',), 1397790142: ('0.03977951541145753',), 1397790137: ('0.03977951541145753',), 1397790135: ('0.03977951541145753',), 1397790133: ('0.03977951541145753',), 1397790132: ('0.03977951541145753',), 1397790131: ('0.03977951541145753',), 1397790130: ('0.03977951541145753',)} args : 1397790143 depend.output_id : 0 input_args_next_step : {1397790145: ('0.03977951541145753',), 1397790144: ('0.03977951541145753',), 1397790143: ('0.03977951541145753',), 1397790142: ()} output_args : {1397790145: ('0.03977951541145753',), 1397790144: ('0.03977951541145753',), 1397790143: ('0.03977951541145753',), 1397790142: ('0.03977951541145753',), 1397790137: ('0.03977951541145753',), 1397790135: ('0.03977951541145753',), 1397790133: ('0.03977951541145753',), 1397790132: ('0.03977951541145753',), 1397790131: ('0.03977951541145753',), 1397790130: ('0.03977951541145753',)} args : 1397790142 depend.output_id : 0 input_args_next_step : {1397790145: ('0.03977951541145753',), 1397790144: ('0.03977951541145753',), 1397790143: ('0.03977951541145753',), 1397790142: ('0.03977951541145753',), 1397790137: ()} output_args : {1397790145: ('0.03977951541145753',), 1397790144: ('0.03977951541145753',), 1397790143: ('0.03977951541145753',), 1397790142: ('0.03977951541145753',), 1397790137: ('0.03977951541145753',), 1397790135: ('0.03977951541145753',), 1397790133: ('0.03977951541145753',), 1397790132: ('0.03977951541145753',), 1397790131: ('0.03977951541145753',), 1397790130: ('0.03977951541145753',)} args : 1397790137 depend.output_id : 0 input_args_next_step : {1397790145: ('0.03977951541145753',), 1397790144: ('0.03977951541145753',), 1397790143: ('0.03977951541145753',), 1397790142: ('0.03977951541145753',), 1397790137: ('0.03977951541145753',), 1397790135: ()} output_args : {1397790145: ('0.03977951541145753',), 1397790144: ('0.03977951541145753',), 1397790143: ('0.03977951541145753',), 1397790142: ('0.03977951541145753',), 1397790137: ('0.03977951541145753',), 1397790135: ('0.03977951541145753',), 1397790133: ('0.03977951541145753',), 1397790132: ('0.03977951541145753',), 1397790131: ('0.03977951541145753',), 1397790130: ('0.03977951541145753',)} args : 1397790135 depend.output_id : 0 input_args_next_step : {1397790145: ('0.03977951541145753',), 1397790144: ('0.03977951541145753',), 1397790143: ('0.03977951541145753',), 1397790142: ('0.03977951541145753',), 1397790137: ('0.03977951541145753',), 1397790135: ('0.03977951541145753',), 1397790133: ()} output_args : {1397790145: ('0.03977951541145753',), 1397790144: ('0.03977951541145753',), 1397790143: ('0.03977951541145753',), 1397790142: ('0.03977951541145753',), 1397790137: ('0.03977951541145753',), 1397790135: ('0.03977951541145753',), 1397790133: ('0.03977951541145753',), 1397790132: ('0.03977951541145753',), 1397790131: ('0.03977951541145753',), 1397790130: ('0.03977951541145753',)} args : 1397790133 depend.output_id : 0 input_args_next_step : {1397790145: ('0.03977951541145753',), 1397790144: ('0.03977951541145753',), 1397790143: ('0.03977951541145753',), 1397790142: ('0.03977951541145753',), 1397790137: ('0.03977951541145753',), 1397790135: ('0.03977951541145753',), 1397790133: ('0.03977951541145753',), 1397790132: ()} output_args : {1397790145: ('0.03977951541145753',), 1397790144: ('0.03977951541145753',), 1397790143: ('0.03977951541145753',), 1397790142: ('0.03977951541145753',), 1397790137: ('0.03977951541145753',), 1397790135: ('0.03977951541145753',), 1397790133: ('0.03977951541145753',), 1397790132: ('0.03977951541145753',), 1397790131: ('0.03977951541145753',), 1397790130: ('0.03977951541145753',)} args : 1397790132 depend.output_id : 0 input_args_next_step : {1397790145: ('0.03977951541145753',), 1397790144: ('0.03977951541145753',), 1397790143: ('0.03977951541145753',), 1397790142: ('0.03977951541145753',), 1397790137: ('0.03977951541145753',), 1397790135: ('0.03977951541145753',), 1397790133: ('0.03977951541145753',), 1397790132: ('0.03977951541145753',), 1397790131: ()} output_args : {1397790145: ('0.03977951541145753',), 1397790144: ('0.03977951541145753',), 1397790143: ('0.03977951541145753',), 1397790142: ('0.03977951541145753',), 1397790137: ('0.03977951541145753',), 1397790135: ('0.03977951541145753',), 1397790133: ('0.03977951541145753',), 1397790132: ('0.03977951541145753',), 1397790131: ('0.03977951541145753',), 1397790130: ('0.03977951541145753',)} args : 1397790131 depend.output_id : 0 input_args_next_step : {1397790145: ('0.03977951541145753',), 1397790144: ('0.03977951541145753',), 1397790143: ('0.03977951541145753',), 1397790142: ('0.03977951541145753',), 1397790137: ('0.03977951541145753',), 1397790135: ('0.03977951541145753',), 1397790133: ('0.03977951541145753',), 1397790132: ('0.03977951541145753',), 1397790131: ('0.03977951541145753',), 1397790130: ()} output_args : {1397790145: ('0.03977951541145753',), 1397790144: ('0.03977951541145753',), 1397790143: ('0.03977951541145753',), 1397790142: ('0.03977951541145753',), 1397790137: ('0.03977951541145753',), 1397790135: ('0.03977951541145753',), 1397790133: ('0.03977951541145753',), 1397790132: ('0.03977951541145753',), 1397790131: ('0.03977951541145753',), 1397790130: ('0.03977951541145753',)} args : 1397790130 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 : {29173539: [{'flou': 29173543, 'environnement': 29173544, 'Carton_brun': 29173545, 'kraft': 29173546, 'mal_croppe': 29173547, 'metal': 29173548, 'plastique': 29173549, 'Teint_Dans_La_Masse': 29173550, 'Carton_gris': 29173551, 'papier': 29173552, 'autre_refus': 29173553, 'cartonnette': 29173554}]} input_args_next_step : {1397790145: ('0.03977951541145753',), 1397790144: ('0.03977951541145753',), 1397790143: ('0.03977951541145753',), 1397790142: ('0.03977951541145753',), 1397790137: ('0.03977951541145753',), 1397790135: ('0.03977951541145753',), 1397790133: ('0.03977951541145753',), 1397790132: ('0.03977951541145753',), 1397790131: ('0.03977951541145753',), 1397790130: ('0.03977951541145753',), 29173539: ()} output_args : {29173539: [{'flou': 29173543, 'environnement': 29173544, 'Carton_brun': 29173545, 'kraft': 29173546, 'mal_croppe': 29173547, 'metal': 29173548, 'plastique': 29173549, 'Teint_Dans_La_Masse': 29173550, 'Carton_gris': 29173551, 'papier': 29173552, 'autre_refus': 29173553, 'cartonnette': 29173554}]} args : 29173539 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 :11, first value : ('0.03977951541145753',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29173539) 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 (1397790145,1397790144,1397790143,1397790142,1397790137,1397790135,1397790133,1397790132,1397790131,1397790130) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1397790130 begin to download photo : 1397790133 begin to download photo : 1397790142 begin to download photo : 1397790145 download finish for photo 1397790145 download finish for photo 1397790133 begin to download photo : 1397790135 download finish for photo 1397790130 begin to download photo : 1397790131 download finish for photo 1397790142 begin to download photo : 1397790143 download finish for photo 1397790135 begin to download photo : 1397790137 download finish for photo 1397790131 begin to download photo : 1397790132 download finish for photo 1397790143 begin to download photo : 1397790144 download finish for photo 1397790137 download finish for photo 1397790132 download finish for photo 1397790144 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette291735431764825300/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P29173539_04-12-2025_06_15_00.pdf 29173543 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=29173543 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291735431764825300 29173546 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=29173546 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397790013: '1764824706_344764_1397788736_fb8fe36c6feca1580e37ce9cef78f956_rle_crop_4058236967_0.png', 1397790086: '1764824944_361862_1397788736_fb8fe36c6feca1580e37ce9cef78f956_rle_crop_4058236967_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/e73a5cabf5fbdde3be1496bacb048d44_99998759.png change filename to text .imagette291735461764825300/ imagette291735461764825300/1764824944_361862_1397788736_fb8fe36c6feca1580e37ce9cef78f956_rle_crop_4058236967_0.png.png imagette291735461764825300/1764824706_344764_1397788736_fb8fe36c6feca1580e37ce9cef78f956_rle_crop_4058236967_0.png.png imagette291735471764825300/ imagette291735481764825300/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/e73a5cabf5fbdde3be1496bacb048d44_12454548.png imagette291735461764825300 29173547 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=29173547 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291735471764825300 29173548 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=29173548 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette291735481764825300 29173549 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=29173549 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397790049: '1764824826_355137_1397789226_eb0e4f76e03576a598a3b6f1a4b51759_rle_crop_4058237403_0.png', 1397790050: '1764824826_355137_1397789226_eb0e4f76e03576a598a3b6f1a4b51759_rle_crop_4058237397_0.png', 1397790085: '1764824944_361862_1397789329_34f0dd12b95d63f2e5a9536ef0b1e9e8_rle_crop_4058237749_0.png', 1397790107: '1764825025_365322_1397790057_e37f4a24888a4b0d71d6cda7be8666ab_rle_crop_4058238164_0.png', 1397790122: '1764825068_368034_1397790042_0b54180daca0c1bfceae9dac2ae0fdd8_rle_crop_4058238326_0.png', 1397790123: '1764825068_368034_1397790025_f84f1bfc601d5345b2c432c460c4d5a7_rle_crop_4058238342_0.png', 1397790129: '1764825086_370430_1397790038_0ed70a1cab00cb5ebf5f30f9cc989271_rle_crop_4058238529_0.png', 1397790152: '1764825205_376041_1397789954_b5ba3905281b72c9aa8e3c94ace98e89_rle_crop_4058238673_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/7c3d3d33ce9e2fca37dc9203efb81330_83882120.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/f60445871bb0c3adb6be18d0275cdebc_37568963.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/73008565c7dea453c7b9cf37a1bdad7d_50029481.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/92bfb3a5ce9b58afc4f12064b2bde125_56255600.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/196da49a0fa356eb59ce8a44ac5ab938_63347209.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/0c9ee674a36e898ce9e035b65dc4a838_73396433.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/4c7e6873b95bd7d457acb9bbca4b181a_64627703.png change filename to text .imagette291735491764825300/ imagette291735491764825300/1764824826_355137_1397789226_eb0e4f76e03576a598a3b6f1a4b51759_rle_crop_4058237403_0.png.png imagette291735491764825300/1764825086_370430_1397790038_0ed70a1cab00cb5ebf5f30f9cc989271_rle_crop_4058238529_0.png.png imagette291735491764825300/1764824944_361862_1397789329_34f0dd12b95d63f2e5a9536ef0b1e9e8_rle_crop_4058237749_0.png.png imagette291735491764825300/1764825025_365322_1397790057_e37f4a24888a4b0d71d6cda7be8666ab_rle_crop_4058238164_0.png.png imagette291735491764825300/1764825205_376041_1397789954_b5ba3905281b72c9aa8e3c94ace98e89_rle_crop_4058238673_0.png.png imagette291735491764825300/1764825068_368034_1397790042_0b54180daca0c1bfceae9dac2ae0fdd8_rle_crop_4058238326_0.png.png imagette291735491764825300/1764825068_368034_1397790025_f84f1bfc601d5345b2c432c460c4d5a7_rle_crop_4058238342_0.png.png imagette291735491764825300/1764824826_355137_1397789226_eb0e4f76e03576a598a3b6f1a4b51759_rle_crop_4058237397_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/d3c554f1f1955a5877b416566d8ec6f1_64079168.png imagette291735491764825300 29173553 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=29173553 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397790011: '1764824706_344764_1397788738_12cd64d860ccdbfac7e09ec9eb1cff8c_rle_crop_4058236957_0.png', 1397790034: '1764824784_352361_1397789703_0d8de6c7fe87838e9eb2c5c3d4388d7f_rle_crop_4058237227_0.png', 1397790081: '1764824944_361862_1397789329_34f0dd12b95d63f2e5a9536ef0b1e9e8_rle_crop_4058237747_0.png', 1397790082: '1764824944_361862_1397788738_12cd64d860ccdbfac7e09ec9eb1cff8c_rle_crop_4058236957_0.png', 1397790126: '1764825086_370430_1397790040_3cb260a8d5dada55bf764f0ba9684ee6_rle_crop_4058238515_0.png', 1397790127: '1764825086_370430_1397790037_793c9cab48209b7cf5365c90b1234bdd_rle_crop_4058238540_0.png', 1397790128: '1764825086_370430_1397790037_793c9cab48209b7cf5365c90b1234bdd_rle_crop_4058238539_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/bcace6df8f6a3ea0799b8f5c76e10f23_96312344.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/720b0bf5bf0058d1713306c5a11de7bd_7928916.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/036b08f956c10946328d222c27183036_84493768.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/bcace6df8f6a3ea0799b8f5c76e10f23_53849031.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/6e955bc74d48f69810a85c98ac4f1437_55302975.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/08cc1b043eb7c27c9ec183a17c3e4c41_60492501.png change filename to text .imagette291735531764825300/ imagette291735531764825300/1764824944_361862_1397788738_12cd64d860ccdbfac7e09ec9eb1cff8c_rle_crop_4058236957_0.png.png imagette291735531764825300/1764825086_370430_1397790040_3cb260a8d5dada55bf764f0ba9684ee6_rle_crop_4058238515_0.png.png imagette291735531764825300/1764824706_344764_1397788738_12cd64d860ccdbfac7e09ec9eb1cff8c_rle_crop_4058236957_0.png.png imagette291735531764825300/1764825086_370430_1397790037_793c9cab48209b7cf5365c90b1234bdd_rle_crop_4058238539_0.png.png imagette291735531764825300/1764824944_361862_1397789329_34f0dd12b95d63f2e5a9536ef0b1e9e8_rle_crop_4058237747_0.png.png imagette291735531764825300/1764825086_370430_1397790037_793c9cab48209b7cf5365c90b1234bdd_rle_crop_4058238540_0.png.png imagette291735531764825300/1764824784_352361_1397789703_0d8de6c7fe87838e9eb2c5c3d4388d7f_rle_crop_4058237227_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/59a31642960970b0603adebe176f5353_42852633.png imagette291735531764825300 29173554 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=29173554 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397790012: '1764824706_344764_1397788736_fb8fe36c6feca1580e37ce9cef78f956_rle_crop_4058236974_0.png', 1397790046: '1764824826_355137_1397789081_8e4d3bd7446ecd6a3d856ad364a55667_rle_crop_4058237428_0.png', 1397790084: '1764824944_361862_1397788736_fb8fe36c6feca1580e37ce9cef78f956_rle_crop_4058236974_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/0c22429e22654d9c00932fd0ad00d45e_90487415.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/13f33d6bdab0aa4799f48ecdfe33216a_10560058.png change filename to text .imagette291735541764825301/ imagette291735541764825301/1764824826_355137_1397789081_8e4d3bd7446ecd6a3d856ad364a55667_rle_crop_4058237428_0.png.png imagette291735541764825301/1764824944_361862_1397788736_fb8fe36c6feca1580e37ce9cef78f956_rle_crop_4058236974_0.png.png imagette291735541764825301/1764824706_344764_1397788736_fb8fe36c6feca1580e37ce9cef78f956_rle_crop_4058236974_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/0c22429e22654d9c00932fd0ad00d45e_88251874.png imagette291735541764825301 29173545 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=29173545 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397790047: '1764824826_355137_1397789226_eb0e4f76e03576a598a3b6f1a4b51759_rle_crop_4058237398_0.png', 1397790120: '1764825068_368034_1397790025_f84f1bfc601d5345b2c432c460c4d5a7_rle_crop_4058238345_0.png', 1397790121: '1764825068_368034_1397790024_f8d34ee25b298145cb10005d666755bc_rle_crop_4058238354_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/f9760e40ffe442ba64398fe25ea056ac_50421291.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/1b4484f092204750036c839d09840d26_46288013.png change filename to text .imagette291735451764825301/ imagette291735451764825301/1764824826_355137_1397789226_eb0e4f76e03576a598a3b6f1a4b51759_rle_crop_4058237398_0.png.png imagette291735451764825301/1764825068_368034_1397790024_f8d34ee25b298145cb10005d666755bc_rle_crop_4058238354_0.png.png imagette291735451764825301/1764825068_368034_1397790025_f84f1bfc601d5345b2c432c460c4d5a7_rle_crop_4058238345_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/3ef43d54b23faebbf2548df6f49b1556_19914644.png imagette291735451764825301 29173550 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=29173550 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397790008: '1764824706_344764_1397788736_fb8fe36c6feca1580e37ce9cef78f956_rle_crop_4058236970_0.png', 1397790009: '1764824706_344764_1397788734_eb9c7d635e5a7662f0db3b0da6e9b31e_rle_crop_4058236987_0.png', 1397790010: '1764824706_344764_1397788734_eb9c7d635e5a7662f0db3b0da6e9b31e_rle_crop_4058236988_0.png', 1397790033: '1764824784_352361_1397789669_e8206b3603365c42f9729f3d817317cc_rle_crop_4058237238_0.png', 1397790045: '1764824826_355137_1397789081_8e4d3bd7446ecd6a3d856ad364a55667_rle_crop_4058237431_0.png', 1397790077: '1764824944_361862_1397789329_34f0dd12b95d63f2e5a9536ef0b1e9e8_rle_crop_4058237751_0.png', 1397790078: '1764824944_361862_1397788736_fb8fe36c6feca1580e37ce9cef78f956_rle_crop_4058236970_0.png', 1397790079: '1764824944_361862_1397788734_eb9c7d635e5a7662f0db3b0da6e9b31e_rle_crop_4058236987_0.png', 1397790080: '1764824944_361862_1397788734_eb9c7d635e5a7662f0db3b0da6e9b31e_rle_crop_4058236988_0.png', 1397790119: '1764825068_368034_1397790022_ba240a1a650dcb181e4745d0e05e7b0a_rle_crop_4058238495_0.png', 1397790124: '1764825086_370430_1397790040_3cb260a8d5dada55bf764f0ba9684ee6_rle_crop_4058238518_0.png', 1397790125: '1764825086_370430_1397790036_12139a905f43300f2a5b38dc6495d876_rle_crop_4058238553_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/cbdc79d7c2d1f7076ecb94c306550101_25350078.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/1704e154a2ec8d67f3058518e8f164fb_28767797.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/3652255271ebd08e625fa570610bd58d_48963861.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/dd38788607fccce42682c1e4deca2b2c_51505539.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/91acbcfc4fd45061de9af07c2c674637_60152101.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/1b76ed229ef87d77f4b3c9dce7abcd8d_28195292.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/cbdc79d7c2d1f7076ecb94c306550101_7218570.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/1704e154a2ec8d67f3058518e8f164fb_3233286.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/3652255271ebd08e625fa570610bd58d_84721899.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/69904f5612596a238c60daa31772d426_90975799.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/77c9576dee6e6665a49622f343c421fa_96555306.png change filename to text .imagette291735501764825302/ imagette291735501764825302/1764824944_361862_1397788734_eb9c7d635e5a7662f0db3b0da6e9b31e_rle_crop_4058236987_0.png.png imagette291735501764825302/1764824784_352361_1397789669_e8206b3603365c42f9729f3d817317cc_rle_crop_4058237238_0.png.png imagette291735501764825302/1764824944_361862_1397789329_34f0dd12b95d63f2e5a9536ef0b1e9e8_rle_crop_4058237751_0.png.png imagette291735501764825302/1764825086_370430_1397790036_12139a905f43300f2a5b38dc6495d876_rle_crop_4058238553_0.png.png imagette291735501764825302/1764825068_368034_1397790022_ba240a1a650dcb181e4745d0e05e7b0a_rle_crop_4058238495_0.png.png imagette291735501764825302/1764824944_361862_1397788736_fb8fe36c6feca1580e37ce9cef78f956_rle_crop_4058236970_0.png.png imagette291735501764825302/1764824706_344764_1397788734_eb9c7d635e5a7662f0db3b0da6e9b31e_rle_crop_4058236987_0.png.png imagette291735501764825302/1764824944_361862_1397788734_eb9c7d635e5a7662f0db3b0da6e9b31e_rle_crop_4058236988_0.png.png imagette291735501764825302/1764824706_344764_1397788736_fb8fe36c6feca1580e37ce9cef78f956_rle_crop_4058236970_0.png.png imagette291735501764825302/1764825086_370430_1397790040_3cb260a8d5dada55bf764f0ba9684ee6_rle_crop_4058238518_0.png.png imagette291735501764825302/1764824706_344764_1397788734_eb9c7d635e5a7662f0db3b0da6e9b31e_rle_crop_4058236988_0.png.png imagette291735501764825302/1764824826_355137_1397789081_8e4d3bd7446ecd6a3d856ad364a55667_rle_crop_4058237431_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/55341962487d4c2a10cf645034996f02_63004576.png imagette291735501764825302 29173551 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=29173551 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1397790083: '1764824944_361862_1397789329_34f0dd12b95d63f2e5a9536ef0b1e9e8_rle_crop_4058237748_0.png'} change filename to text .imagette291735511764825303/ imagette291735511764825303/1764824944_361862_1397789329_34f0dd12b95d63f2e5a9536ef0b1e9e8_rle_crop_4058237748_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/bec5471952371728368d452a04ae9fdd_52597632.png imagette291735511764825303 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29173539 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29173556,29173557,29173558,29173559,29173560,29173561,29173562,29173563,29173564,29173565,29173566,29173567?tags=flou,environnement,Carton_brun,kraft,mal_croppe,metal,plastique,Teint_Dans_La_Masse,Carton_gris,papier,autre_refus,cartonnette your option no_mail is active, we will not send the real mail to your client args[1397790145] : ('0.03977951541145753',) no score found for photo 1397790145 We are sending mail with results at report@fotonower.com args[1397790144] : ('0.03977951541145753',) no score found for photo 1397790144 We are sending mail with results at report@fotonower.com args[1397790143] : ('0.03977951541145753',) no score found for photo 1397790143 We are sending mail with results at report@fotonower.com args[1397790142] : ('0.03977951541145753',) no score found for photo 1397790142 We are sending mail with results at report@fotonower.com args[1397790137] : ('0.03977951541145753',) no score found for photo 1397790137 We are sending mail with results at report@fotonower.com args[1397790135] : ('0.03977951541145753',) no score found for photo 1397790135 We are sending mail with results at report@fotonower.com args[1397790133] : ('0.03977951541145753',) no score found for photo 1397790133 We are sending mail with results at report@fotonower.com args[1397790132] : ('0.03977951541145753',) no score found for photo 1397790132 We are sending mail with results at report@fotonower.com args[1397790131] : ('0.03977951541145753',) no score found for photo 1397790131 We are sending mail with results at report@fotonower.com args[1397790130] : ('0.03977951541145753',) no score found for photo 1397790130 We are sending mail with results at report@fotonower.com refus_total : 0.03977951541145753 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=29173539 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_P29173539_04-12-2025_06_15_00.pdf results_Auto_P29173539_04-12-2025_06_15_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29173539_04-12-2025_06_15_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','29173539','results_Auto_P29173539_04-12-2025_06_15_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29173539_04-12-2025_06_15_00.pdf','pdf','','0.19','0.03977951541145753') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29173539]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1397790145, 1397790144, 1397790143, 1397790142, 1397790137, 1397790135, 1397790133, 1397790132, 1397790131, 1397790130] map_info['map_portfolio_photo'] : {29173539: [1397790145, 1397790144, 1397790143, 1397790142, 1397790137, 1397790135, 1397790133, 1397790132, 1397790131, 1397790130, 1397790116, 1397790114, 1397790112, 1397790110, 1397790109, 1397790108, 1397790102, 1397790101, 1397790096, 1397790087, 1397790074, 1397790072, 1397790070, 1397790069, 1397790068, 1397790067, 1397790060, 1397790059, 1397790058, 1397790057, 1397790042, 1397790040, 1397790038, 1397790037, 1397790036, 1397790035, 1397790029, 1397790027, 1397790025, 1397790024, 1397790023, 1397790022, 1397790004, 1397790003, 1397790002, 1397789954, 1397789930, 1397789928, 1397789924, 1397789902, 1397789870, 1397789737, 1397789703, 1397789669, 1397789329, 1397789278, 1397789226, 1397789193, 1397789158, 1397789081, 1397788740, 1397788738, 1397788736, 1397788734]} final : False mtd_id 4302 list_pids : [1397790145, 1397790144, 1397790143, 1397790142, 1397790137, 1397790135, 1397790133, 1397790132, 1397790131, 1397790130] 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, '4183763') ('4302', '29173539', '1397790145', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790144', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790143', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790142', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790137', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790135', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790133', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790132', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790131', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790130', None, None, None, None, None, '4183763') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '29173539', '1397790145', None, None, None, None, None, '4183763'), ('4302', '29173539', '1397790144', None, None, None, None, None, '4183763'), ('4302', '29173539', '1397790143', None, None, None, None, None, '4183763'), ('4302', '29173539', '1397790142', None, None, None, None, None, '4183763'), ('4302', '29173539', '1397790137', None, None, None, None, None, '4183763'), ('4302', '29173539', '1397790135', None, None, None, None, None, '4183763'), ('4302', '29173539', '1397790133', None, None, None, None, None, '4183763'), ('4302', '29173539', '1397790132', None, None, None, None, None, '4183763'), ('4302', '29173539', '1397790131', None, None, None, None, None, '4183763'), ('4302', '29173539', '1397790130', None, None, None, None, None, '4183763')] time used for this insertion : 0.015827417373657227 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.839836359024048 time spend to save output : 0.016038894653320312 total time spend for step 4 : 4.855875253677368 step5:split_time_score Thu Dec 4 06:15: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 : ['29173539'] 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 : [('29173539',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29173539) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1397790145: {'path': 'temp/1764825299_1000781_1397790145_db7527c1f408729604b13a23737fa265.jpg', 'extension': 'jpg'}, 1397790133: {'path': 'temp/1764825299_1000781_1397790133_547ab8eb46e8addab501108f70f8e4af.jpg', 'extension': 'jpg'}, 1397790135: {'path': 'temp/1764825299_1000781_1397790135_5527c45ad653851f9c5fc683be215f2e.jpg', 'extension': 'jpg'}, 1397790137: {'path': 'temp/1764825299_1000781_1397790137_35fc1802d8d3023b1d717465cf09bea2.jpg', 'extension': 'jpg'}, 1397790130: {'path': 'temp/1764825299_1000781_1397790130_25ad567bbfafed4567bfbb4f06add16c.jpg', 'extension': 'jpg'}, 1397790131: {'path': 'temp/1764825299_1000781_1397790131_45179423fdc7e4f9f47b8d097888f579.jpg', 'extension': 'jpg'}, 1397790132: {'path': 'temp/1764825299_1000781_1397790132_2c3759c35e1839e26c6d61f2a75f2d9c.jpg', 'extension': 'jpg'}, 1397790142: {'path': 'temp/1764825299_1000781_1397790142_18012205526b0341bf830a7d41c10172.jpg', 'extension': 'jpg'}, 1397790143: {'path': 'temp/1764825299_1000781_1397790143_74deb60e86c4c6974ef91f1c3d99541e.jpg', 'extension': 'jpg'}, 1397790144: {'path': 'temp/1764825299_1000781_1397790144_878aa865e3e65e98e5928c54e508743c.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 = 29173539; (('arc_en_ciel_jrm_live',), ('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 = 29173539 group by h (('06', 64),) 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=29173539 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 (29173539) 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 (29173539) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04122025 29173539 Nombre de photos uploadées : 64 / 23040 (0%) 04122025 29173539 Nombre de photos taguées (types de déchets): 0 / 64 (0%) 04122025 29173539 Nombre de photos taguées (volume) : 0 / 64 (0%) [{'photo_id': 1397788740, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/21c0fa109251931d6b569e016fc3f389.jpg', 'username': None, 'uploaded_at': 1764824473, 'text': 'image_04122025_06_00_14_010214m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1397788738, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/12cd64d860ccdbfac7e09ec9eb1cff8c.jpg', 'username': None, 'uploaded_at': 1764824473, 'text': 'image_04122025_06_00_24_010140m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1397788736, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/fb8fe36c6feca1580e37ce9cef78f956.jpg', 'username': None, 'uploaded_at': 1764824473, 'text': 'image_04122025_06_00_34_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1397788734, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/4/eb9c7d635e5a7662f0db3b0da6e9b31e.jpg', 'username': None, 'uploaded_at': 1764824473, 'text': 'image_04122025_06_00_45_010137m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ???????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0027990341186523438 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29173539, '2025-12-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-12-04' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2690577,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2494809627532959 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= 2690577 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2690577, 'dashboard_run_id': 2698966, 'mtr_portfolio_id': 29164250, 'dashboard_result_id': 18049891, '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_P29164250_04-12-2025_00_17_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29164258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29164259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29164260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29164261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29164262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29164263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29164264, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29164265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29164266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29164267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29164268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29164269, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2698966, 'mtr_portfolio_id': 29164732, 'dashboard_result_id': 18049892, '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_P29164732_04-12-2025_00_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29164748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29164749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29164750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29164751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29164752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29164753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29164754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29164755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29164756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29164757, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29164758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29164759, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2698966, 'mtr_portfolio_id': 29165106, 'dashboard_result_id': 18049893, '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_P29165106_04-12-2025_00_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29165134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29165135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29165136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29165137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29165138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29165139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29165140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29165141, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29165142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29165143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29165144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29165145, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2698966, 'mtr_portfolio_id': 29165583, 'dashboard_result_id': 18049894, '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_P29165583_04-12-2025_01_22_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29165590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29165591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29165592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29165593, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29165594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29165595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29165596, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29165597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29165598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29165599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29165600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29165601, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2698966, 'mtr_portfolio_id': 29166634, 'dashboard_result_id': 18049895, '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_P29166634_04-12-2025_01_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29166636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29166637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29166638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29166639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29166640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29166641, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29166642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29166643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29166644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29166645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29166646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29166647, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2698966, 'mtr_portfolio_id': 29166944, 'dashboard_result_id': 18049896, '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_P29166944_04-12-2025_02_03_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29166950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29166951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29166952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29166953, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29166954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29166955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29166956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29166957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29166958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29166959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29166960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29166961, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2698966, 'mtr_portfolio_id': 29167317, 'dashboard_result_id': 18049897, '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_P29167317_04-12-2025_02_16_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29167346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29167347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29167348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29167349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29167350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29167351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29167352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29167353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29167354, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29167355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29167356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29167357, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2698966, 'mtr_portfolio_id': 29167848, 'dashboard_result_id': 18049898, '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_P29167848_04-12-2025_02_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29167849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29167850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29167851, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29167852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29167853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29167854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29167855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29167856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29167857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29167858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29167859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29167860, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2698966, 'mtr_portfolio_id': 29168406, 'dashboard_result_id': 18049899, '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_P29168406_04-12-2025_02_48_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29168439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29168440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29168441, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29168442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29168443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29168444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29168445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29168446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29168447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29168448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29168449, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29168450, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2698966, 'mtr_portfolio_id': 29168945, 'dashboard_result_id': 18049900, '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_P29168945_04-12-2025_03_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29168970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29168971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29168972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29168973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29168974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29168975, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29168976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29168977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29168978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29168979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29168980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29168981, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2698966, 'mtr_portfolio_id': 29169363, 'dashboard_result_id': 18049901, '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_P29169363_04-12-2025_03_17_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29169375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29169376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29169377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29169378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29169379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29169380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29169381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29169382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29169383, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29169384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29169385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29169386, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2698966, 'mtr_portfolio_id': 29169812, 'dashboard_result_id': 18049902, '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_P29169812_04-12-2025_03_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29169845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29169846, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29169847, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29169848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29169849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29169850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29169851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29169852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29169853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29169854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29169855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29169856, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2698966, 'mtr_portfolio_id': 29170360, 'dashboard_result_id': 18049903, '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_P29170360_04-12-2025_03_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29170386, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29170387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29170388, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29170389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29170390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29170391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29170392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29170393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29170394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29170395, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29170396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29170397, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2698966, 'mtr_portfolio_id': 29170831, 'dashboard_result_id': 18049904, '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_P29170831_04-12-2025_04_03_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29170839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29170840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29170841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29170842, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29170843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29170844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29170845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29170846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29170847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29170848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29170849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29170850, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2698966, 'mtr_portfolio_id': 29171165, 'dashboard_result_id': 18049905, '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_P29171165_04-12-2025_04_12_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29171193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29171194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29171195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29171196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29171197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29171198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29171199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29171200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29171201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29171202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29171203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29171204, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2698966, 'mtr_portfolio_id': 29172002, 'dashboard_result_id': 18049906, '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_P29172002_04-12-2025_05_19_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172016, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172019, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2698966, 'mtr_portfolio_id': 29172388, 'dashboard_result_id': 18049907, '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_P29172388_04-12-2025_05_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172403, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2698966, 'mtr_portfolio_id': 29172801, 'dashboard_result_id': 18049908, '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_P29172801_04-12-2025_05_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172809, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172815, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172817, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2698966, 'mtr_portfolio_id': 29173230, 'dashboard_result_id': 18049909, '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_P29173230_04-12-2025_06_03_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29173236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29173237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29173238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29173239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29173240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29173241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29173242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29173243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29173244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29173245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29173246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29173247, 'pht': 3726}}"}, {'dashboat_entry_day': 2690577, 'dashboard_run_id': 2698966, 'mtr_portfolio_id': 29173539, 'dashboard_result_id': 18049910, '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_P29173539_04-12-2025_06_13_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29173543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29173544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29173545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29173546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29173547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29173548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29173549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29173550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29173551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29173552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29173553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29173554, '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 = 29164250 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': 4182371, 'mtr_portfolio_id': 29164250, 'created_at': datetime.datetime(2025, 12, 4, 0, 17), 'result': '0.034021803020429134', 'result_long': None, 'result_double': None}] Qualite : 0.034021803020429134 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29164250 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29164250_04-12-2025_00_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29164250 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_P29164250_04-12-2025_00_17_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29164258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29164259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29164260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29164261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29164262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29164263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29164264, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29164265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29164266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29164267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29164268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29164269, 'pht': 3726}}" where mtr_portfolio_id = 29164250 and dashboard_run_id = 2698966 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`=29164250 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049891, 0.034021803020429134, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29164250_04-12-2025_00_17_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29164258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29164259, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29164260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29164261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29164262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29164263, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29164264, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29164265, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29164266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29164267, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29164268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29164269, '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 = 29164732 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': 4182410, 'mtr_portfolio_id': 29164732, 'created_at': datetime.datetime(2025, 12, 4, 0, 32, 58), 'result': '0.04591742300757987', 'result_long': None, 'result_double': None}] Qualite : 0.04591742300757987 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29164732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29164732_04-12-2025_00_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29164732 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_P29164732_04-12-2025_00_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29164748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29164749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29164750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29164751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29164752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29164753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29164754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29164755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29164756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29164757, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29164758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29164759, 'pht': 3726}}" where mtr_portfolio_id = 29164732 and dashboard_run_id = 2698966 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`=29164732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049892, 0.04591742300757987, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29164732_04-12-2025_00_32_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29164748, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29164749, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29164750, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29164751, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29164752, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29164753, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29164754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29164755, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29164756, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29164757, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29164758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29164759, '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 = 29165106 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': 4182450, 'mtr_portfolio_id': 29165106, 'created_at': datetime.datetime(2025, 12, 4, 0, 48, 58), 'result': '0.034384986604274456', 'result_long': None, 'result_double': None}] Qualite : 0.034384986604274456 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29165106 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29165106_04-12-2025_00_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29165106 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_P29165106_04-12-2025_00_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29165134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29165135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29165136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29165137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29165138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29165139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29165140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29165141, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29165142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29165143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29165144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29165145, 'pht': 3726}}" where mtr_portfolio_id = 29165106 and dashboard_run_id = 2698966 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`=29165106 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049893, 0.034384986604274456, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29165106_04-12-2025_00_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29165134, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29165135, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29165136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29165137, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29165138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29165139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29165140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29165141, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29165142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29165143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29165144, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29165145, '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 = 29165583 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': 4182501, 'mtr_portfolio_id': 29165583, 'created_at': datetime.datetime(2025, 12, 4, 1, 22, 58), 'result': '0.03901994029322212', 'result_long': None, 'result_double': None}] Qualite : 0.03901994029322212 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29165583 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29165583_04-12-2025_01_22_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29165583 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_P29165583_04-12-2025_01_22_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29165590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29165591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29165592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29165593, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29165594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29165595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29165596, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29165597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29165598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29165599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29165600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29165601, 'pht': 3726}}" where mtr_portfolio_id = 29165583 and dashboard_run_id = 2698966 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`=29165583 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049894, 0.03901994029322212, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29165583_04-12-2025_01_22_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29165590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29165591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29165592, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29165593, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29165594, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29165595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29165596, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29165597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29165598, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29165599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29165600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29165601, '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 = 29166634 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': 4182628, 'mtr_portfolio_id': 29166634, 'created_at': datetime.datetime(2025, 12, 4, 1, 48, 59), 'result': '0.021116250073323146', 'result_long': None, 'result_double': None}] Qualite : 0.021116250073323146 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29166634 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29166634_04-12-2025_01_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29166634 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_P29166634_04-12-2025_01_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29166636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29166637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29166638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29166639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29166640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29166641, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29166642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29166643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29166644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29166645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29166646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29166647, 'pht': 3726}}" where mtr_portfolio_id = 29166634 and dashboard_run_id = 2698966 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`=29166634 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049895, 0.021116250073323146, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29166634_04-12-2025_01_49_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29166636, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29166637, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29166638, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29166639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29166640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29166641, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29166642, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29166643, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29166644, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29166645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29166646, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29166647, '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 = 29166944 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': 4182666, 'mtr_portfolio_id': 29166944, 'created_at': datetime.datetime(2025, 12, 4, 2, 3, 30), 'result': '0.052044071454954384', 'result_long': None, 'result_double': None}] Qualite : 0.052044071454954384 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29166944 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29166944_04-12-2025_02_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29166944 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_P29166944_04-12-2025_02_03_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29166950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29166951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29166952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29166953, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29166954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29166955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29166956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29166957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29166958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29166959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29166960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29166961, 'pht': 3726}}" where mtr_portfolio_id = 29166944 and dashboard_run_id = 2698966 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`=29166944 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049896, 0.052044071454954384, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29166944_04-12-2025_02_03_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29166950, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29166951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29166952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29166953, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29166954, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29166955, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29166956, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29166957, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29166958, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29166959, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29166960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29166961, '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 = 29167317 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': 4182736, 'mtr_portfolio_id': 29167317, 'created_at': datetime.datetime(2025, 12, 4, 2, 16, 57), 'result': '0.04557013962396331', 'result_long': None, 'result_double': None}] Qualite : 0.04557013962396331 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29167317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29167317_04-12-2025_02_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29167317 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_P29167317_04-12-2025_02_16_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29167346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29167347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29167348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29167349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29167350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29167351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29167352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29167353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29167354, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29167355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29167356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29167357, 'pht': 3726}}" where mtr_portfolio_id = 29167317 and dashboard_run_id = 2698966 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`=29167317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049897, 0.04557013962396331, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29167317_04-12-2025_02_16_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29167346, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29167347, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29167348, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29167349, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29167350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29167351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29167352, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29167353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29167354, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29167355, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29167356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29167357, '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 = 29167848 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': 4182805, 'mtr_portfolio_id': 29167848, 'created_at': datetime.datetime(2025, 12, 4, 2, 32, 58), 'result': '0.04914837235529033', 'result_long': None, 'result_double': None}] Qualite : 0.04914837235529033 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29167848 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29167848_04-12-2025_02_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29167848 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_P29167848_04-12-2025_02_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29167849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29167850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29167851, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29167852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29167853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29167854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29167855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29167856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29167857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29167858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29167859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29167860, 'pht': 3726}}" where mtr_portfolio_id = 29167848 and dashboard_run_id = 2698966 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`=29167848 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049898, 0.04914837235529033, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29167848_04-12-2025_02_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29167849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29167850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29167851, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29167852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29167853, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29167854, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29167855, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29167856, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29167857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29167858, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29167859, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29167860, '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 = 29168406 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': 4182858, 'mtr_portfolio_id': 29168406, 'created_at': datetime.datetime(2025, 12, 4, 2, 48, 56), 'result': '0.043851720845563845', 'result_long': None, 'result_double': None}] Qualite : 0.043851720845563845 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29168406 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29168406_04-12-2025_02_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29168406 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_P29168406_04-12-2025_02_48_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29168439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29168440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29168441, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29168442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29168443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29168444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29168445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29168446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29168447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29168448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29168449, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29168450, 'pht': 3726}}" where mtr_portfolio_id = 29168406 and dashboard_run_id = 2698966 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`=29168406 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049899, 0.043851720845563845, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29168406_04-12-2025_02_48_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29168439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29168440, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29168441, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29168442, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29168443, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29168444, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29168445, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29168446, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29168447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29168448, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29168449, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29168450, '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 = 29168945 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': 4182938, 'mtr_portfolio_id': 29168945, 'created_at': datetime.datetime(2025, 12, 4, 3, 2, 59), 'result': '0.051185384122511085', 'result_long': None, 'result_double': None}] Qualite : 0.051185384122511085 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29168945 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29168945_04-12-2025_03_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29168945 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_P29168945_04-12-2025_03_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29168970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29168971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29168972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29168973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29168974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29168975, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29168976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29168977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29168978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29168979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29168980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29168981, 'pht': 3726}}" where mtr_portfolio_id = 29168945 and dashboard_run_id = 2698966 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`=29168945 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049900, 0.051185384122511085, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29168945_04-12-2025_03_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29168970, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29168971, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29168972, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29168973, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29168974, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29168975, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29168976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29168977, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29168978, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29168979, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29168980, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29168981, '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 = 29169363 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': 4182993, 'mtr_portfolio_id': 29169363, 'created_at': datetime.datetime(2025, 12, 4, 3, 17), 'result': '0.057764103974592036', 'result_long': None, 'result_double': None}] Qualite : 0.057764103974592036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29169363 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29169363_04-12-2025_03_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29169363 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_P29169363_04-12-2025_03_17_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29169375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29169376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29169377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29169378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29169379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29169380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29169381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29169382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29169383, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29169384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29169385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29169386, 'pht': 3726}}" where mtr_portfolio_id = 29169363 and dashboard_run_id = 2698966 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`=29169363 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049901, 0.057764103974592036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29169363_04-12-2025_03_17_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29169375, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29169376, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29169377, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29169378, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29169379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29169380, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29169381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29169382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29169383, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29169384, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29169385, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29169386, '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 = 29169812 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': 4183049, 'mtr_portfolio_id': 29169812, 'created_at': datetime.datetime(2025, 12, 4, 3, 33), 'result': '0.032192380741164935', 'result_long': None, 'result_double': None}] Qualite : 0.032192380741164935 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29169812 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29169812_04-12-2025_03_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29169812 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_P29169812_04-12-2025_03_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29169845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29169846, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29169847, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29169848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29169849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29169850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29169851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29169852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29169853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29169854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29169855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29169856, 'pht': 3726}}" where mtr_portfolio_id = 29169812 and dashboard_run_id = 2698966 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`=29169812 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049902, 0.032192380741164935, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29169812_04-12-2025_03_33_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29169845, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29169846, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29169847, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29169848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29169849, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29169850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29169851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29169852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29169853, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29169854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29169855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29169856, '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 = 29170360 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': 4183131, 'mtr_portfolio_id': 29170360, 'created_at': datetime.datetime(2025, 12, 4, 3, 48, 57), 'result': '0.04365069550172634', 'result_long': None, 'result_double': None}] Qualite : 0.04365069550172634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29170360 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29170360_04-12-2025_03_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29170360 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_P29170360_04-12-2025_03_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29170386, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29170387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29170388, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29170389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29170390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29170391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29170392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29170393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29170394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29170395, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29170396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29170397, 'pht': 3726}}" where mtr_portfolio_id = 29170360 and dashboard_run_id = 2698966 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`=29170360 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049903, 0.04365069550172634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29170360_04-12-2025_03_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29170386, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29170387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29170388, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29170389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29170390, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29170391, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29170392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29170393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29170394, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29170395, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29170396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29170397, '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 = 29170831 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': 4183187, 'mtr_portfolio_id': 29170831, 'created_at': datetime.datetime(2025, 12, 4, 4, 3, 1), 'result': '0.04934071517604273', 'result_long': None, 'result_double': None}] Qualite : 0.04934071517604273 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29170831 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29170831_04-12-2025_04_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29170831 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_P29170831_04-12-2025_04_03_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29170839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29170840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29170841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29170842, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29170843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29170844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29170845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29170846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29170847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29170848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29170849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29170850, 'pht': 3726}}" where mtr_portfolio_id = 29170831 and dashboard_run_id = 2698966 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`=29170831 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049904, 0.04934071517604273, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29170831_04-12-2025_04_03_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29170839, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29170840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29170841, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29170842, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29170843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29170844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29170845, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29170846, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29170847, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29170848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29170849, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29170850, '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 = 29171165 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': 4183255, 'mtr_portfolio_id': 29171165, 'created_at': datetime.datetime(2025, 12, 4, 6, 0, 28), 'result': '0.05725304174549657', 'result_long': None, 'result_double': None}] Qualite : 0.05725304174549657 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29171165 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29171165_04-12-2025_06_00_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29171165 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_P29171165_04-12-2025_06_00_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29171193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29171194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29171195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29171196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29171197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29171198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29171199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29171200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29171201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29171202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29171203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29171204, 'pht': 3726}}" where mtr_portfolio_id = 29171165 and dashboard_run_id = 2698966 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`=29171165 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049905, 0.05725304174549657, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29171165_04-12-2025_06_00_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29171193, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29171194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29171195, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29171196, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29171197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29171198, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29171199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29171200, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29171201, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29171202, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29171203, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29171204, '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 = 29172002 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': 4183408, 'mtr_portfolio_id': 29172002, 'created_at': datetime.datetime(2025, 12, 4, 5, 19, 29), 'result': '0.04591576893026995', 'result_long': None, 'result_double': None}] Qualite : 0.04591576893026995 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29172002 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172002_04-12-2025_05_19_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29172002 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_P29172002_04-12-2025_05_19_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172016, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172019, 'pht': 3726}}" where mtr_portfolio_id = 29172002 and dashboard_run_id = 2698966 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`=29172002 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049906, 0.04591576893026995, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172002_04-12-2025_05_19_29.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172009, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172011, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172012, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172013, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172014, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172015, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172016, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172017, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172018, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172019, '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 = 29172388 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': 4183446, 'mtr_portfolio_id': 29172388, 'created_at': datetime.datetime(2025, 12, 4, 5, 32, 58), 'result': '0.037301682509678386', 'result_long': None, 'result_double': None}] Qualite : 0.037301682509678386 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29172388 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172388_04-12-2025_05_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29172388 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_P29172388_04-12-2025_05_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172403, 'pht': 3726}}" where mtr_portfolio_id = 29172388 and dashboard_run_id = 2698966 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`=29172388 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049907, 0.037301682509678386, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172388_04-12-2025_05_32_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172392, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172398, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172399, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172400, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172402, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172403, '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 = 29172801 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': 4183500, 'mtr_portfolio_id': 29172801, 'created_at': datetime.datetime(2025, 12, 4, 5, 49), 'result': '0.041410680116186045', 'result_long': None, 'result_double': None}] Qualite : 0.041410680116186045 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29172801 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172801_04-12-2025_05_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29172801 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_P29172801_04-12-2025_05_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172809, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172815, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172817, 'pht': 3726}}" where mtr_portfolio_id = 29172801 and dashboard_run_id = 2698966 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`=29172801 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049908, 0.041410680116186045, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29172801_04-12-2025_05_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29172806, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29172807, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29172808, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29172809, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29172810, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29172811, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29172812, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29172813, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29172814, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29172815, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29172816, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29172817, '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 = 29173230 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': 4183692, 'mtr_portfolio_id': 29173230, 'created_at': datetime.datetime(2025, 12, 4, 6, 3, 31), 'result': '0.044687640590459966', 'result_long': None, 'result_double': None}] Qualite : 0.044687640590459966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29173230 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29173230_04-12-2025_06_03_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29173230 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_P29173230_04-12-2025_06_03_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29173236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29173237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29173238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29173239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29173240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29173241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29173242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29173243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29173244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29173245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29173246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29173247, 'pht': 3726}}" where mtr_portfolio_id = 29173230 and dashboard_run_id = 2698966 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`=29173230 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049909, 0.044687640590459966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29173230_04-12-2025_06_03_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29173236, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29173237, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29173238, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29173239, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29173240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29173241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29173242, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29173243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29173244, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29173245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29173246, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29173247, '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 = 29173539 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': 4183763, 'mtr_portfolio_id': 29173539, 'created_at': datetime.datetime(2025, 12, 4, 6, 14, 59), 'result': '0.03977951541145753', 'result_long': None, 'result_double': None}] Qualite : 0.03977951541145753 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29173539 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29173539_04-12-2025_06_15_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29173539 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_P29173539_04-12-2025_06_15_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29173543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29173544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29173545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29173546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29173547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29173548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29173549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29173550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29173551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29173552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29173553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29173554, 'pht': 3726}}" where mtr_portfolio_id = 29173539 and dashboard_run_id = 2698966 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`=29173539 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18049910, 0.03977951541145753, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29173539_04-12-2025_06_15_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29173543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29173544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29173545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29173546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29173547, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29173548, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29173549, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29173550, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29173551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29173552, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29173553, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29173554, '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 (29164250,29164732,29165106,29165583,29166634,29166944,29167317,29167848,29168406,29168945,29169363,29169812,29170360,29170831,29171165,29172002,29172388,29172801,29173230,29173539) result : ((1397754704,), (1397754746,), (1397754775,), (1397754811,), (1397755183,), (1397755250,), (1397755317,), (1397755363,), (1397755398,), (1397755783,), (1397755857,), (1397755927,), (1397755994,), (1397757030,), (1397757127,), (1397757226,), (1397757284,), (1397757320,), (1397757805,), (1397757841,), (1397757873,), (1397757921,), (1397757943,), (1397758207,), (1397758258,), (1397758323,), (1397758383,), (1397758780,), (1397758800,), (1397758802,), (1397758803,), (1397758805,), (1397758807,), (1397758825,), (1397758826,), (1397759084,), (1397759085,), (1397759086,), (1397759241,), (1397759256,), (1397759259,), (1397759260,), (1397759276,), (1397759277,), (1397759278,), (1397759279,), (1397759281,), (1397759282,), (1397759291,), (1397759294,), (1397759296,), (1397759299,), (1397759302,), (1397759324,), (1397759322,), (1397759323,), (1397759331,), (1397759332,), (1397759336,), (1397759337,), (1397759339,), (1397759341,), (1397759388,), (1397759395,), (1397759406,), (1397759412,), (1397759437,), (1397759612,), (1397759618,), (1397759625,), (1397759626,), (1397759652,), (1397759653,), (1397759654,), (1397759655,), (1397759657,), (1397759671,), (1397759672,), (1397759673,), (1397759674,), (1397759705,), (1397759987,), (1397759988,), (1397759989,), (1397759990,), (1397759992,), (1397760018,), (1397760020,), (1397760021,), (1397760028,), (1397760030,), (1397760032,), (1397760035,), (1397760038,), (1397760052,), (1397760053,), (1397760054,), (1397760055,), (1397760056,), (1397760058,), (1397760069,), (1397760070,), (1397760071,), (1397760073,), (1397760075,), (1397760077,), (1397760103,), (1397760106,), (1397760107,), (1397760135,), (1397760136,), (1397760137,), (1397760140,), (1397760143,), (1397760162,), (1397760165,), (1397760166,), (1397760167,), (1397760168,), (1397760169,), (1397760152,), (1397760153,), (1397760155,), (1397760157,), (1397760160,), (1397760170,), (1397760172,), (1397760180,), (1397760190,), (1397760192,), (1397760195,), (1397760197,), (1397760199,), (1397760213,), (1397760220,), (1397760224,), (1397760225,), (1397760227,), (1397760229,), (1397760308,), (1397760342,), (1397760374,), (1397760405,), (1397760832,), (1397760866,), (1397760900,), (1397760935,), (1397760948,), (1397760950,), (1397760954,), (1397760955,), (1397760985,), (1397761023,), (1397761058,), (1397761091,), (1397761219,), (1397761258,), (1397761268,), (1397761276,), (1397761304,), (1397761306,), (1397761388,), (1397761389,), (1397761391,), (1397761415,), (1397761448,), (1397761449,), (1397761458,), (1397761459,), (1397761460,), (1397761461,), (1397761464,), (1397761465,), (1397761468,), (1397761469,), (1397761472,), (1397761473,), (1397761477,), (1397761478,), (1397761479,), (1397761481,), (1397761483,), (1397761484,), (1397761489,), (1397761490,), (1397761491,), (1397761492,), (1397761493,), (1397761517,), (1397761518,), (1397761519,), (1397761522,), (1397761529,), (1397761535,), (1397761536,), (1397761537,), (1397761538,), (1397761558,), (1397761559,), (1397761560,), (1397761582,), (1397761583,), (1397761593,), (1397761602,), (1397761607,), (1397761610,), (1397761633,), (1397761626,), (1397761627,), (1397761628,), (1397761629,), (1397761631,), (1397761638,), (1397761639,), (1397761640,), (1397761641,), (1397761658,), (1397761659,), (1397761660,), (1397761661,), (1397761668,), (1397761669,), (1397761670,), (1397761671,), (1397761673,), (1397761675,), (1397761697,), (1397761698,), (1397761699,), (1397761700,), (1397761702,), (1397761708,), (1397761709,), (1397761710,), (1397761711,), (1397761724,), (1397761725,), (1397761726,), (1397761727,), (1397761729,), (1397761731,), (1397761748,), (1397761768,), (1397761773,), (1397761774,), (1397761776,), (1397761793,), (1397761794,), (1397761795,), (1397761802,), (1397761804,), (1397761806,), (1397761809,), (1397761812,), (1397761815,), (1397761827,), (1397761828,), (1397761829,), (1397761830,), (1397761869,), (1397761870,), (1397761871,), (1397761872,), (1397761885,), (1397761886,), (1397761894,), (1397761904,), (1397761906,), (1397768205,), (1397768742,), (1397768743,), (1397768744,), (1397768746,), (1397768748,), (1397768753,), (1397768773,), (1397768780,), (1397768781,), (1397768782,), (1397768783,), (1397768794,), (1397768795,), (1397768796,), (1397768797,), (1397768814,), (1397768815,), (1397768816,), (1397768818,), (1397768820,), (1397768831,), (1397768842,), (1397768857,), (1397768872,), (1397768873,), (1397768877,), (1397768894,), (1397768896,), (1397768899,), (1397768903,), (1397768906,), (1397768954,), (1397768967,), (1397768978,), (1397768979,), (1397768982,), (1397768985,), (1397768997,), (1397768998,), (1397768999,), (1397769000,), (1397769002,), (1397769024,), (1397769025,), (1397769026,), (1397769027,), (1397769049,), (1397769050,), (1397769051,), (1397769052,), (1397769054,), (1397769061,), (1397769062,), (1397769064,), (1397769065,), (1397769096,), (1397769089,), (1397769090,), (1397769091,), (1397769092,), (1397769094,), (1397769101,), (1397769102,), (1397769103,), (1397769104,), (1397769106,), (1397769145,), (1397769147,), (1397769148,), (1397769162,), (1397769186,), (1397769217,), (1397769255,), (1397769292,), (1397769328,), (1397769562,), (1397769677,), (1397769709,), (1397769747,), (1397769790,), (1397769823,), (1397769830,), (1397769853,), (1397769885,), (1397770066,), (1397770096,), (1397770097,), (1397770098,), (1397770120,), (1397770161,), (1397770164,), (1397770166,), (1397770180,), (1397770184,), (1397770245,), (1397770250,), (1397770251,), (1397770297,), (1397770299,), (1397770301,), (1397770303,), (1397770305,), (1397770307,), (1397770324,), (1397770325,), (1397770331,), (1397770332,), (1397770365,), (1397770366,), (1397770381,), (1397770411,), (1397770419,), (1397770421,), (1397770426,), (1397770876,), (1397770867,), (1397770869,), (1397770871,), (1397770873,), (1397771055,), (1397771061,), (1397771063,), (1397771087,), (1397771088,), (1397771089,), (1397771090,), (1397771104,), (1397771105,), (1397771106,), (1397771107,), (1397771137,), (1397771147,), (1397771148,), (1397771149,), (1397771151,), (1397771161,), (1397771162,), (1397771163,), (1397771171,), (1397771172,), (1397771173,), (1397771174,), (1397771193,), (1397771194,), (1397771195,), (1397771196,), (1397771199,), (1397771203,), (1397771404,), (1397771440,), (1397771474,), (1397771511,), (1397771547,), (1397771586,), (1397771738,), (1397771780,), (1397771823,), (1397771858,), (1397771890,), (1397771928,), (1397772042,), (1397772043,), (1397772076,), (1397772077,), (1397772215,), (1397772216,), (1397772217,), (1397772407,), (1397772438,), (1397772499,), (1397773283,), (1397773323,), (1397773358,), (1397773400,), (1397773463,), (1397773797,), (1397773798,), (1397773824,), (1397773854,), (1397774486,), (1397774536,), (1397774598,), (1397774632,), (1397774669,), (1397775021,), (1397775018,), (1397775019,), (1397775020,), (1397775207,), (1397775209,), (1397775211,), (1397775246,), (1397775299,), (1397775300,), (1397775301,), (1397775303,), (1397775305,), (1397775307,), (1397775311,), (1397775312,), (1397775314,), (1397775316,), (1397775323,), (1397775325,), (1397775328,), (1397775329,), (1397775330,), (1397775331,), (1397775332,), (1397775333,), (1397775335,), (1397775337,), (1397775339,), (1397775353,), (1397775355,), (1397775357,), (1397775362,), (1397775415,), (1397775422,), (1397775423,), (1397775424,), (1397775436,), (1397775437,), (1397775438,), (1397775439,), (1397775441,), (1397775447,), (1397775448,), (1397775449,), (1397775450,), (1397775452,), (1397775463,), (1397775464,), (1397775478,), (1397775479,), (1397775483,), (1397775484,), (1397775486,), (1397775488,), (1397775544,), (1397775546,), (1397775547,), (1397775549,), (1397775551,), (1397775553,), (1397775588,), (1397775593,), (1397775594,), (1397775596,), (1397775598,), (1397775600,), (1397775609,), (1397775614,), (1397775617,), (1397775619,), (1397775621,), (1397775622,), (1397775625,), (1397775627,), (1397775629,), (1397775631,), (1397775633,), (1397775653,), (1397775654,), (1397775655,), (1397775656,), (1397775664,), (1397775665,), (1397775666,), (1397775667,), (1397775683,), (1397775684,), (1397775685,), (1397775686,), (1397775688,), (1397775690,), (1397775702,), (1397775703,), (1397775709,), (1397775710,), (1397775711,), (1397775713,), (1397775732,), (1397775737,), (1397775738,), (1397775739,), (1397775755,), (1397775781,), (1397775782,), (1397775783,), (1397775785,), (1397775787,), (1397775788,), (1397775792,), (1397775793,), (1397775794,), (1397775796,), (1397775798,), (1397775800,), (1397775810,), (1397775811,), (1397775812,), (1397775818,), (1397775821,), (1397775822,), (1397775826,), (1397775827,), (1397775829,), (1397775831,), (1397775833,), (1397775835,), (1397775837,), (1397775838,), (1397775841,), (1397775842,), (1397775844,), (1397775845,), (1397775846,), (1397775847,), (1397775848,), (1397775850,), (1397775852,), (1397775854,), (1397775874,), (1397775875,), (1397775876,), (1397775877,), (1397775884,), (1397775885,), (1397775886,), (1397775887,), (1397775889,), (1397775891,), (1397775933,), (1397775934,), (1397775935,), (1397775942,), (1397775952,), (1397775956,), (1397775983,), (1397776009,), (1397776011,), (1397776044,), (1397776039,), (1397776040,), (1397776041,), (1397776042,), (1397776050,), (1397776051,), (1397776052,), (1397776053,), (1397776073,), (1397776074,), (1397776075,), (1397776077,), (1397776079,), (1397776081,), (1397776086,), (1397776087,), (1397776089,), (1397776091,), (1397776093,), (1397776095,), (1397776109,), (1397776110,), (1397776111,), (1397776115,), (1397776126,), (1397776129,), (1397776130,), (1397776132,), (1397776134,), (1397776136,), (1397776138,), (1397776139,), (1397776140,), (1397776141,), (1397776157,), (1397776162,), (1397776163,), (1397776164,), (1397776166,), (1397776168,), (1397776185,), (1397776193,), (1397776195,), (1397776260,), (1397776268,), (1397776270,), (1397776273,), (1397776276,), (1397776279,), (1397776283,), (1397776284,), (1397776285,), (1397776286,), (1397776310,), (1397776320,), (1397776324,), (1397776325,), (1397776327,), (1397776332,), (1397776333,), (1397776334,), (1397776335,), (1397776337,), (1397776339,), (1397776357,), (1397776358,), (1397776359,), (1397776361,), (1397776363,), (1397776365,), (1397776381,), (1397776383,), (1397776393,), (1397776399,), (1397776401,), (1397776403,), (1397776412,), (1397776435,), (1397776437,), (1397776439,), (1397776441,), (1397776443,), (1397776686,), (1397776724,), (1397776761,), (1397776878,), (1397776913,), (1397776571,), (1397776605,), (1397776649,), (1397777044,), (1397777077,), (1397777118,), (1397777149,), (1397777184,), (1397777221,), (1397777489,), (1397777521,), (1397777554,), (1397777938,), (1397777969,), (1397778001,), (1397778032,), (1397778714,), (1397778777,), (1397778847,), (1397778900,), (1397779081,), (1397779116,), (1397779179,), (1397779219,), (1397779260,), (1397779294,), (1397779467,), (1397779470,), (1397779471,), (1397779472,), (1397779474,), (1397779506,), (1397779507,), (1397779508,), (1397779510,), (1397779512,), (1397779514,), (1397779522,), (1397779525,), (1397779528,), (1397779531,), (1397779538,), (1397779547,), (1397779554,), (1397779555,), (1397779556,), (1397779557,), (1397779558,), (1397779559,), (1397779563,), (1397779564,), (1397779566,), (1397779568,), (1397779569,), (1397779570,), (1397779571,), (1397779572,), (1397779573,), (1397779574,), (1397779588,), (1397779589,), (1397779590,), (1397779591,), (1397779593,), (1397779606,), (1397779607,), (1397779608,), (1397779609,), (1397779611,), (1397779613,), (1397779622,), (1397779623,), (1397779624,), (1397779627,), (1397779641,), (1397779652,), (1397779653,), (1397779655,), (1397779682,), (1397779679,), (1397779680,), (1397779681,), (1397779702,), (1397779710,), (1397779712,), (1397779715,), (1397779718,), (1397779727,), (1397779729,), (1397779731,), (1397779734,), (1397779737,), (1397779740,), (1397779745,), (1397779747,), (1397779750,), (1397779756,), (1397779759,), (1397779761,), (1397779762,), (1397779763,), (1397779764,), (1397779765,), (1397779766,), (1397779768,), (1397779770,), (1397779771,), (1397779784,), (1397779785,), (1397779786,), (1397779787,), (1397779789,), (1397779790,), (1397779800,), (1397779810,), (1397779811,), (1397779813,), (1397779819,), (1397779820,), (1397779821,), (1397779822,), (1397779824,), (1397779846,), (1397779847,), (1397779860,), (1397779861,), (1397779864,), (1397779915,), (1397779920,), (1397779921,), (1397779929,), (1397779930,), (1397779931,), (1397779932,), (1397779934,), (1397779947,), (1397779948,), (1397779961,), (1397779962,), (1397779963,), (1397779979,), (1397779980,), (1397779981,), (1397779982,), (1397780041,), (1397780042,), (1397780043,), (1397780044,), (1397780047,), (1397780049,), (1397780057,), (1397780055,), (1397780056,), (1397780064,), (1397780065,), (1397780066,), (1397780067,), (1397780080,), (1397780082,), (1397780084,), (1397780087,), (1397780090,), (1397780100,), (1397780101,), (1397780102,), (1397780103,), (1397780105,), (1397780111,), (1397780112,), (1397780113,), (1397780142,), (1397780143,), (1397780144,), (1397780145,), (1397780152,), (1397780162,), (1397780164,), (1397780166,), (1397780173,), (1397780214,), (1397780215,), (1397780216,), (1397780218,), (1397780220,), (1397780222,), (1397780229,), (1397780230,), (1397780232,), (1397780234,), (1397780237,), (1397780239,), (1397780242,), (1397780243,), (1397780249,), (1397780253,), (1397780254,), (1397780256,), (1397780258,), (1397780260,), (1397780262,), (1397780278,), (1397780279,), (1397780280,), (1397780315,), (1397780316,), (1397780317,), (1397780323,), (1397780324,), (1397780325,), (1397780389,), (1397780396,), (1397780397,), (1397780398,), (1397780400,), (1397780407,), (1397780408,), (1397780409,), (1397780410,), (1397780425,), (1397780418,), (1397780419,), (1397780420,), (1397780421,), (1397780423,), (1397780448,), (1397780449,), (1397780450,), (1397780507,), (1397780508,), (1397780509,), (1397780510,), (1397780517,), (1397780518,), (1397780519,), (1397780529,), (1397780530,), (1397780531,), (1397780532,), (1397780534,), (1397780541,), (1397780542,), (1397780543,), (1397780544,), (1397780546,), (1397780558,), (1397780559,), (1397780566,), (1397780568,), (1397780570,), (1397780573,), (1397780576,), (1397780680,), (1397780681,), (1397780682,), (1397780683,), (1397780690,), (1397780691,), (1397780692,), (1397780693,), (1397780695,), (1397780704,), (1397780707,), (1397780709,), (1397780711,), (1397780713,), (1397780715,), (1397781060,), (1397781093,), (1397781106,), (1397781109,), (1397781111,), (1397781113,), (1397781174,), (1397781212,), (1397781244,), (1397781250,), (1397781251,), (1397781281,), (1397781347,), (1397781382,), (1397781415,), (1397781561,), (1397781598,), (1397781651,), (1397781321,), (1397781322,), (1397781323,), (1397781767,), (1397781800,), (1397781830,), (1397782180,), (1397782205,), (1397782207,), (1397782210,), (1397782213,), (1397782275,), (1397782339,), (1397783075,), (1397783113,), (1397783172,), (1397783226,), (1397783264,), (1397783611,), (1397783654,), (1397783686,), (1397783695,), (1397783697,), (1397783734,), (1397783772,), (1397783807,), (1397783839,), (1397784013,), (1397784014,), (1397784015,), (1397784017,), (1397784030,), (1397784054,), (1397784060,), (1397784061,), (1397784063,), (1397784065,), (1397784067,), (1397784069,), (1397784075,), (1397784076,), (1397784091,), (1397784092,), (1397785806,), (1397785773,), (1397786282,), (1397786316,), (1397786742,), (1397786906,), (1397786941,), (1397786964,), (1397787055,), (1397787061,), (1397787062,), (1397787063,), (1397787064,), (1397787078,), (1397787079,), (1397787080,), (1397787082,), (1397787084,), (1397787086,), (1397787091,), (1397787093,), (1397787094,), (1397787096,), (1397787099,), (1397787101,), (1397787104,), (1397787105,), (1397787106,), (1397787107,), (1397787108,), (1397787109,), (1397787113,), (1397787115,), (1397787117,), (1397787119,), (1397787120,), (1397787121,), (1397787122,), (1397787123,), (1397787125,), (1397787127,), (1397787129,), (1397787135,), (1397787143,), (1397787144,), (1397787146,), (1397787148,), (1397787154,), (1397787155,), (1397787156,), (1397787157,), (1397787158,), (1397787185,), (1397787186,), (1397787187,), (1397787188,), (1397787190,), (1397787196,), (1397787197,), (1397787198,), (1397787199,), (1397787201,), (1397787222,), (1397787215,), (1397787216,), (1397787217,), (1397787218,), (1397787220,), (1397787227,), (1397787228,), (1397787229,), (1397787230,), (1397787250,), (1397787251,), (1397787252,), (1397787254,), (1397787256,), (1397787258,), (1397787263,), (1397787265,), (1397787268,), (1397787273,), (1397787276,), (1397787279,), (1397787282,), (1397787283,), (1397787284,), (1397787285,), (1397787286,), (1397787287,), (1397787291,), (1397787292,), (1397787294,), (1397787296,), (1397787298,), (1397787299,), (1397787300,), (1397787301,), (1397787302,), (1397787303,), (1397787305,), (1397787307,), (1397787332,), (1397787333,), (1397787334,), (1397787335,), (1397787337,), (1397787338,), (1397787347,), (1397787349,), (1397787354,), (1397787355,), (1397787421,), (1397787427,), (1397787430,), (1397787433,), (1397787437,), (1397787439,), (1397787446,), (1397787447,), (1397787448,), (1397787449,), (1397787467,), (1397787468,), (1397787469,), (1397787470,), (1397787472,), (1397787474,), (1397787478,), (1397787479,), (1397787480,), (1397787481,), (1397787511,), (1397787512,), (1397787513,), (1397787515,), (1397787517,), (1397787519,), (1397787523,), (1397787524,), (1397787526,), (1397787528,), (1397787530,), (1397787532,), (1397787543,), (1397787546,), (1397787547,), (1397787548,), (1397787550,), (1397787551,), (1397787555,), (1397787556,), (1397787558,), (1397787560,), (1397787562,), (1397787569,), (1397787600,), (1397787602,), (1397787604,), (1397787594,), (1397787595,), (1397787626,), (1397787627,), (1397787628,), (1397787629,), (1397787631,), (1397787637,), (1397787638,), (1397787639,), (1397787640,), (1397787642,), (1397787644,), (1397787662,), (1397787670,), (1397787681,), (1397787682,), (1397787689,), (1397787691,), (1397787693,), (1397787696,), (1397787699,), (1397787702,), (1397787709,), (1397787717,), (1397787718,), (1397787719,), (1397787726,), (1397787727,), (1397787728,), (1397787729,), (1397787731,), (1397787733,), (1397787747,), (1397787748,), (1397787749,), (1397787750,), (1397787752,), (1397787758,), (1397787759,), (1397787760,), (1397787761,), (1397787782,), (1397787786,), (1397787787,), (1397787788,), (1397787790,), (1397787792,), (1397787797,), (1397787798,), (1397787799,), (1397787800,), (1397787824,), (1397787832,), (1397787835,), (1397787836,), (1397787838,), (1397787840,), (1397787844,), (1397787845,), (1397787846,), (1397787847,), (1397787849,), (1397787873,), (1397787874,), (1397787875,), (1397787876,), (1397787878,), (1397787880,), (1397787885,), (1397787887,), (1397787888,), (1397787889,), (1397787914,), (1397787909,), (1397787910,), (1397787911,), (1397787912,), (1397787920,), (1397787921,), (1397787922,), (1397787923,), (1397787947,), (1397787954,), (1397787955,), (1397787963,), (1397787964,), (1397787965,), (1397787966,), (1397787968,), (1397787974,), (1397787975,), (1397787976,), (1397787977,), (1397787997,), (1397788003,), (1397788004,), (1397788005,), (1397788007,), (1397788012,), (1397788014,), (1397788017,), (1397788019,), (1397788022,), (1397788033,), (1397788034,), (1397788035,), (1397788036,), (1397788038,), (1397788040,), (1397788044,), (1397788045,), (1397788046,), (1397788047,), (1397788058,), (1397788059,), (1397788060,), (1397788061,), (1397788063,), (1397788069,), (1397788070,), (1397788071,), (1397788072,), (1397788090,), (1397788091,), (1397788092,), (1397788093,), (1397788095,), (1397788318,), (1397788354,), (1397788387,), (1397788422,), (1397788457,), (1397788491,), (1397788639,), (1397788671,), (1397788705,), (1397788731,), (1397788747,), (1397788734,), (1397788736,), (1397788738,), (1397788740,), (1397789081,), (1397789158,), (1397789193,), (1397789226,), (1397789278,), (1397789329,), (1397789669,), (1397789703,), (1397789737,), (1397789870,), (1397789902,), (1397789924,), (1397789928,), (1397789930,), (1397789954,), (1397790002,), (1397790003,), (1397790004,), (1397790022,), (1397790023,), (1397790024,), (1397790025,), (1397790027,), (1397790029,), (1397790035,), (1397790036,), (1397790037,), (1397790038,), (1397790040,), (1397790042,), (1397790057,), (1397790058,), (1397790059,), (1397790060,), (1397790067,), (1397790068,), (1397790069,), (1397790070,), (1397790072,), (1397790074,), (1397790087,), (1397790096,), (1397790101,), (1397790102,), (1397790108,), (1397790109,), (1397790110,), (1397790112,), (1397790114,), (1397790116,), (1397790130,), (1397790131,), (1397790132,), (1397790133,), (1397790135,), (1397790137,), (1397790142,), (1397790143,), (1397790144,), (1397790145,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04122025': {'nb_upload': 64, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29173539]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1397790145, 1397790144, 1397790143, 1397790142, 1397790137, 1397790135, 1397790133, 1397790132, 1397790131, 1397790130] map_info['map_portfolio_photo'] : {29173539: [1397790145, 1397790144, 1397790143, 1397790142, 1397790137, 1397790135, 1397790133, 1397790132, 1397790131, 1397790130, 1397790116, 1397790114, 1397790112, 1397790110, 1397790109, 1397790108, 1397790102, 1397790101, 1397790096, 1397790087, 1397790074, 1397790072, 1397790070, 1397790069, 1397790068, 1397790067, 1397790060, 1397790059, 1397790058, 1397790057, 1397790042, 1397790040, 1397790038, 1397790037, 1397790036, 1397790035, 1397790029, 1397790027, 1397790025, 1397790024, 1397790023, 1397790022, 1397790004, 1397790003, 1397790002, 1397789954, 1397789930, 1397789928, 1397789924, 1397789902, 1397789870, 1397789737, 1397789703, 1397789669, 1397789329, 1397789278, 1397789226, 1397789193, 1397789158, 1397789081, 1397788740, 1397788738, 1397788736, 1397788734]} final : True mtd_id 4302 list_pids : [1397790145, 1397790144, 1397790143, 1397790142, 1397790137, 1397790135, 1397790133, 1397790132, 1397790131, 1397790130] Looping around the photos to save general results len do output : 1 /29173539Didn'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, '4183763') ('4302', '29173539', '1397790145', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790144', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790143', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790142', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790137', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790135', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790133', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790132', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790131', None, None, None, None, None, '4183763') ('4302', None, None, None, None, None, None, None, '4183763') ('4302', '29173539', '1397790130', None, None, None, None, None, '4183763') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29173539', 'None', None, None, None, None, '4183763'), ('4302', '29173539', '1397790145', None, None, None, None, None, '4183763'), ('4302', '29173539', '1397790144', None, None, None, None, None, '4183763'), ('4302', '29173539', '1397790143', None, None, None, None, None, '4183763'), ('4302', '29173539', '1397790142', None, None, None, None, None, '4183763'), ('4302', '29173539', '1397790137', None, None, None, None, None, '4183763'), ('4302', '29173539', '1397790135', None, None, None, None, None, '4183763'), ('4302', '29173539', '1397790133', None, None, None, None, None, '4183763'), ('4302', '29173539', '1397790132', None, None, None, None, None, '4183763'), ('4302', '29173539', '1397790131', None, None, None, None, None, '4183763'), ('4302', '29173539', '1397790130', None, None, None, None, None, '4183763')] time used for this insertion : 0.019006729125976562 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.97977614402771 time spend to save output : 0.01920771598815918 total time spend for step 5 : 1.9989838600158691 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 (4183763) 2.12user 2.49system 0:12.35elapsed 37%CPU (0avgtext+0avgdata 166732maxresident)k 112inputs+11992outputs (0major+67321minor)pagefaults 0swaps