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 : 1805594 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 (4319085) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4319085) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29998325 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4319085'] with mtr_portfolio_ids : ['29998325'] and first list_photo_ids : [] new path : /proc/1805594/ Name: python3 Umask: 0002 State: R (running) Tgid: 1805594 Ngid: 0 Pid: 1805594 PPid: 1805593 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1805594 NSpid: 1805594 NSpgid: 1804497 NSsid: 1804497 VmPeak: 1113368 kB VmSize: 1113368 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104984 kB VmRSS: 104984 kB RssAnon: 66304 kB RssFile: 38680 kB RssShmem: 0 kB VmData: 872096 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 43 nonvoluntary_ctxt_switches: 95 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1805594', 'Ngid': '0', 'Pid': '1805594', 'PPid': '1805593', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1805594', 'NSpid': '1805594', 'NSpgid': '1804497', 'NSsid': '1804497', 'VmPeak': '1113368 kB', 'VmSize': '1113368 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104984 kB', 'VmRSS': '104984 kB', 'RssAnon': '66304 kB', 'RssFile': '38680 kB', 'RssShmem': '0 kB', 'VmData': '872096 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '43', 'nonvoluntary_ctxt_switches': '95'} ('datou_batch_current', '1805594', '1113368', '0', '1113368', '872096', '104984', b'', 'marlene', '4319085') 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 (29998325) 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 (4319085 ) ) 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 (29998325) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1402723027, 'portfolio_id': 29998325}, {'photo_id': 1402723026, 'portfolio_id': 29998325}, {'photo_id': 1402723025, 'portfolio_id': 29998325}, {'photo_id': 1402723007, 'portfolio_id': 29998325}, {'photo_id': 1402723004, 'portfolio_id': 29998325}, {'photo_id': 1402723003, 'portfolio_id': 29998325}, {'photo_id': 1402723002, 'portfolio_id': 29998325}, {'photo_id': 1402723001, 'portfolio_id': 29998325}, {'photo_id': 1402722988, 'portfolio_id': 29998325}, {'photo_id': 1402722987, 'portfolio_id': 29998325}, {'photo_id': 1402722985, 'portfolio_id': 29998325}, {'photo_id': 1402722925, 'portfolio_id': 29998325}, {'photo_id': 1402722924, 'portfolio_id': 29998325}, {'photo_id': 1402722923, 'portfolio_id': 29998325}, {'photo_id': 1402722922, 'portfolio_id': 29998325}, {'photo_id': 1402722879, 'portfolio_id': 29998325}, {'photo_id': 1402722836, 'portfolio_id': 29998325}, {'photo_id': 1402722833, 'portfolio_id': 29998325}, {'photo_id': 1402722832, 'portfolio_id': 29998325}, {'photo_id': 1402722828, 'portfolio_id': 29998325}, {'photo_id': 1402722817, 'portfolio_id': 29998325}, {'photo_id': 1402722788, 'portfolio_id': 29998325}, {'photo_id': 1402722787, 'portfolio_id': 29998325}, {'photo_id': 1402722783, 'portfolio_id': 29998325}, {'photo_id': 1402722736, 'portfolio_id': 29998325}, {'photo_id': 1402722671, 'portfolio_id': 29998325}, {'photo_id': 1402722647, 'portfolio_id': 29998325}, {'photo_id': 1402722644, 'portfolio_id': 29998325}, {'photo_id': 1402722642, 'portfolio_id': 29998325}, {'photo_id': 1402722640, 'portfolio_id': 29998325}, {'photo_id': 1402722639, 'portfolio_id': 29998325}, {'photo_id': 1402722611, 'portfolio_id': 29998325}, {'photo_id': 1402722607, 'portfolio_id': 29998325}, {'photo_id': 1402722605, 'portfolio_id': 29998325}, {'photo_id': 1402722604, 'portfolio_id': 29998325}, {'photo_id': 1402722603, 'portfolio_id': 29998325}] map_portfolio_id_photo_id: {29998325: [1402723027, 1402723026, 1402723025, 1402723007, 1402723004, 1402723003, 1402723002, 1402723001, 1402722988, 1402722987, 1402722985, 1402722925, 1402722924, 1402722923, 1402722922, 1402722879, 1402722836, 1402722833, 1402722832, 1402722828, 1402722817, 1402722788, 1402722787, 1402722783, 1402722736, 1402722671, 1402722647, 1402722644, 1402722642, 1402722640, 1402722639, 1402722611, 1402722607, 1402722605, 1402722604, 1402722603]} ##### 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.01915454864501953 #### 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 Tue Jan 6 23:43:00 2026 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 (29998325) 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 : 29998325 get user id for portfolio 29998325 get sub ptf for main ptf 29998325, type 3726 and hashtags ['plastique', 'kraft', 'mal_croppe', 'autre_refus', 'Carton_gris', 'metal', 'Teint_Dans_La_Masse', 'cartonnette', 'flou', 'environnement', 'papier', 'Carton_brun'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29998325 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','kraft','mal_croppe','autre_refus','Carton_gris','metal','Teint_Dans_La_Masse','cartonnette','flou','environnement','papier','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29998325 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','kraft','mal_croppe','autre_refus','Carton_gris','metal','Teint_Dans_La_Masse','cartonnette','flou','environnement','papier','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 29998325, 'sub_port_id': 29998357, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529735, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 40, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 40, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 33, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 29998325, 'sub_port_id': 29998358, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529736, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 40, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 40, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 33, 27)}, 'Carton_gris': {'main_port_id': 29998325, 'sub_port_id': 29998359, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529737, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 40, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 40, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 33, 27)}, 'papier': {'main_port_id': 29998325, 'sub_port_id': 29998360, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529738, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 40, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 40, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 33, 27)}, 'flou': {'main_port_id': 29998325, 'sub_port_id': 29998361, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529739, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 40, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 40, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 33, 27)}, 'cartonnette': {'main_port_id': 29998325, 'sub_port_id': 29998362, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529740, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 40, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 40, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 33, 27)}, 'environnement': {'main_port_id': 29998325, 'sub_port_id': 29998363, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529741, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 40, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 40, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 33, 27)}, 'plastique': {'main_port_id': 29998325, 'sub_port_id': 29998364, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529742, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 40, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 40, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 33, 27)}, 'mal_croppe': {'main_port_id': 29998325, 'sub_port_id': 29998365, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529743, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 40, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 40, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 33, 27)}, 'kraft': {'main_port_id': 29998325, 'sub_port_id': 29998366, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529744, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 40, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 40, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 33, 27)}, 'autre_refus': {'main_port_id': 29998325, 'sub_port_id': 29998367, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529745, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 40, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 40, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 33, 27)}, 'Carton_brun': {'main_port_id': 29998325, 'sub_port_id': 29998368, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529746, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 40, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 40, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 33, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29998357 , 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=29998325 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 (29998357) result : ((1402722986,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29998325) result : ((1402722603,), (1402722604,), (1402722605,), (1402722607,), (1402722611,), (1402722639,), (1402722640,), (1402722642,), (1402722644,), (1402722647,), (1402722671,), (1402722736,), (1402722783,), (1402722787,), (1402722788,), (1402722817,), (1402722828,), (1402722832,), (1402722833,), (1402722836,), (1402722879,), (1402722922,), (1402722923,), (1402722924,), (1402722925,), (1402722985,), (1402722987,), (1402722988,), (1402723001,), (1402723002,), (1402723003,), (1402723004,), (1402723007,), (1402723025,), (1402723026,), (1402723027,)) 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 29998358 , 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=29998325 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 (29998358) result : ((1402722770,), (1402722771,), (1402722772,), (1402722773,), (1402722944,), (1402722945,), (1402722947,), (1402722949,), (1402722968,), (1402722969,), (1402722970,), (1402722971,), (1402723008,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29998325) result : ((1402722603,), (1402722604,), (1402722605,), (1402722607,), (1402722611,), (1402722639,), (1402722640,), (1402722642,), (1402722644,), (1402722647,), (1402722671,), (1402722736,), (1402722783,), (1402722787,), (1402722788,), (1402722817,), (1402722828,), (1402722832,), (1402722833,), (1402722836,), (1402722879,), (1402722922,), (1402722923,), (1402722924,), (1402722925,), (1402722985,), (1402722987,), (1402722988,), (1402723001,), (1402723002,), (1402723003,), (1402723004,), (1402723007,), (1402723025,), (1402723026,), (1402723027,)) 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 29998359 , 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=29998325 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 (29998359) result : ((1402722776,), (1402722914,), (1402722974,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29998325) result : ((1402722603,), (1402722604,), (1402722605,), (1402722607,), (1402722611,), (1402722639,), (1402722640,), (1402722642,), (1402722644,), (1402722647,), (1402722671,), (1402722736,), (1402722783,), (1402722787,), (1402722788,), (1402722817,), (1402722828,), (1402722832,), (1402722833,), (1402722836,), (1402722879,), (1402722922,), (1402722923,), (1402722924,), (1402722925,), (1402722985,), (1402722987,), (1402722988,), (1402723001,), (1402723002,), (1402723003,), (1402723004,), (1402723007,), (1402723025,), (1402723026,), (1402723027,)) 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 29998360 , 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=29998325 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 (29998360) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29998325) result : ((1402722603,), (1402722604,), (1402722605,), (1402722607,), (1402722611,), (1402722639,), (1402722640,), (1402722642,), (1402722644,), (1402722647,), (1402722671,), (1402722736,), (1402722783,), (1402722787,), (1402722788,), (1402722817,), (1402722828,), (1402722832,), (1402722833,), (1402722836,), (1402722879,), (1402722922,), (1402722923,), (1402722924,), (1402722925,), (1402722985,), (1402722987,), (1402722988,), (1402723001,), (1402723002,), (1402723003,), (1402723004,), (1402723007,), (1402723025,), (1402723026,), (1402723027,)) 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 29998361 , 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=29998325 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 (29998361) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29998325) result : ((1402722603,), (1402722604,), (1402722605,), (1402722607,), (1402722611,), (1402722639,), (1402722640,), (1402722642,), (1402722644,), (1402722647,), (1402722671,), (1402722736,), (1402722783,), (1402722787,), (1402722788,), (1402722817,), (1402722828,), (1402722832,), (1402722833,), (1402722836,), (1402722879,), (1402722922,), (1402722923,), (1402722924,), (1402722925,), (1402722985,), (1402722987,), (1402722988,), (1402723001,), (1402723002,), (1402723003,), (1402723004,), (1402723007,), (1402723025,), (1402723026,), (1402723027,)) 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 29998362 , 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=29998325 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 (29998362) result : ((1402722777,), (1402722778,), (1402722779,), (1402722780,), (1402722781,), (1402722950,), (1402722951,), (1402722975,), (1402722976,), (1402722977,), (1402722978,), (1402722979,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29998325) result : ((1402722603,), (1402722604,), (1402722605,), (1402722607,), (1402722611,), (1402722639,), (1402722640,), (1402722642,), (1402722644,), (1402722647,), (1402722671,), (1402722736,), (1402722783,), (1402722787,), (1402722788,), (1402722817,), (1402722828,), (1402722832,), (1402722833,), (1402722836,), (1402722879,), (1402722922,), (1402722923,), (1402722924,), (1402722925,), (1402722985,), (1402722987,), (1402722988,), (1402723001,), (1402723002,), (1402723003,), (1402723004,), (1402723007,), (1402723025,), (1402723026,), (1402723027,)) 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 29998363 , 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=29998325 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 (29998363) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29998325) result : ((1402722603,), (1402722604,), (1402722605,), (1402722607,), (1402722611,), (1402722639,), (1402722640,), (1402722642,), (1402722644,), (1402722647,), (1402722671,), (1402722736,), (1402722783,), (1402722787,), (1402722788,), (1402722817,), (1402722828,), (1402722832,), (1402722833,), (1402722836,), (1402722879,), (1402722922,), (1402722923,), (1402722924,), (1402722925,), (1402722985,), (1402722987,), (1402722988,), (1402723001,), (1402723002,), (1402723003,), (1402723004,), (1402723007,), (1402723025,), (1402723026,), (1402723027,)) 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 29998364 , 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=29998325 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 (29998364) result : ((1402722784,), (1402722785,), (1402722786,), (1402722954,), (1402722984,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29998325) result : ((1402722603,), (1402722604,), (1402722605,), (1402722607,), (1402722611,), (1402722639,), (1402722640,), (1402722642,), (1402722644,), (1402722647,), (1402722671,), (1402722736,), (1402722783,), (1402722787,), (1402722788,), (1402722817,), (1402722828,), (1402722832,), (1402722833,), (1402722836,), (1402722879,), (1402722922,), (1402722923,), (1402722924,), (1402722925,), (1402722985,), (1402722987,), (1402722988,), (1402723001,), (1402723002,), (1402723003,), (1402723004,), (1402723007,), (1402723025,), (1402723026,), (1402723027,)) 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 29998365 , 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=29998325 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 (29998365) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29998325) result : ((1402722603,), (1402722604,), (1402722605,), (1402722607,), (1402722611,), (1402722639,), (1402722640,), (1402722642,), (1402722644,), (1402722647,), (1402722671,), (1402722736,), (1402722783,), (1402722787,), (1402722788,), (1402722817,), (1402722828,), (1402722832,), (1402722833,), (1402722836,), (1402722879,), (1402722922,), (1402722923,), (1402722924,), (1402722925,), (1402722985,), (1402722987,), (1402722988,), (1402723001,), (1402723002,), (1402723003,), (1402723004,), (1402723007,), (1402723025,), (1402723026,), (1402723027,)) 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 29998366 , 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=29998325 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 (29998366) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29998325) result : ((1402722603,), (1402722604,), (1402722605,), (1402722607,), (1402722611,), (1402722639,), (1402722640,), (1402722642,), (1402722644,), (1402722647,), (1402722671,), (1402722736,), (1402722783,), (1402722787,), (1402722788,), (1402722817,), (1402722828,), (1402722832,), (1402722833,), (1402722836,), (1402722879,), (1402722922,), (1402722923,), (1402722924,), (1402722925,), (1402722985,), (1402722987,), (1402722988,), (1402723001,), (1402723002,), (1402723003,), (1402723004,), (1402723007,), (1402723025,), (1402723026,), (1402723027,)) 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 29998367 , 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=29998325 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 (29998367) result : ((1402722774,), (1402722775,), (1402722911,), (1402722912,), (1402722913,), (1402722973,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29998325) result : ((1402722603,), (1402722604,), (1402722605,), (1402722607,), (1402722611,), (1402722639,), (1402722640,), (1402722642,), (1402722644,), (1402722647,), (1402722671,), (1402722736,), (1402722783,), (1402722787,), (1402722788,), (1402722817,), (1402722828,), (1402722832,), (1402722833,), (1402722836,), (1402722879,), (1402722922,), (1402722923,), (1402722924,), (1402722925,), (1402722985,), (1402722987,), (1402722988,), (1402723001,), (1402723002,), (1402723003,), (1402723004,), (1402723007,), (1402723025,), (1402723026,), (1402723027,)) 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 29998368 , 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=29998325 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 (29998368) result : ((1402722782,), (1402722915,), (1402722952,), (1402722953,), (1402722981,), (1402722982,), (1402722983,), (1402723010,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29998325) result : ((1402722603,), (1402722604,), (1402722605,), (1402722607,), (1402722611,), (1402722639,), (1402722640,), (1402722642,), (1402722644,), (1402722647,), (1402722671,), (1402722736,), (1402722783,), (1402722787,), (1402722788,), (1402722817,), (1402722828,), (1402722832,), (1402722833,), (1402722836,), (1402722879,), (1402722922,), (1402722923,), (1402722924,), (1402722925,), (1402722985,), (1402722987,), (1402722988,), (1402723001,), (1402723002,), (1402723003,), (1402723004,), (1402723007,), (1402723025,), (1402723026,), (1402723027,)) 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`=29998325 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','kraft','mal_croppe','autre_refus','Carton_gris','metal','Teint_Dans_La_Masse','cartonnette','flou','environnement','papier','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29998325 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','kraft','mal_croppe','autre_refus','Carton_gris','metal','Teint_Dans_La_Masse','cartonnette','flou','environnement','papier','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 29998325, 'sub_port_id': 29998370, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529747, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 33, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 33, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 33, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 29998325, 'sub_port_id': 29998371, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529748, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 33, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 33, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 33, 33)}, 'Carton_gris': {'main_port_id': 29998325, 'sub_port_id': 29998372, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529749, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 33, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 33, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 33, 33)}, 'papier': {'main_port_id': 29998325, 'sub_port_id': 29998373, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529750, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 33, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 33, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 33, 33)}, 'flou': {'main_port_id': 29998325, 'sub_port_id': 29998374, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529751, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 33, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 33, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 33, 33)}, 'cartonnette': {'main_port_id': 29998325, 'sub_port_id': 29998375, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529752, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 33, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 33, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 33, 33)}, 'environnement': {'main_port_id': 29998325, 'sub_port_id': 29998376, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529753, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 33, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 33, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 33, 33)}, 'plastique': {'main_port_id': 29998325, 'sub_port_id': 29998377, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529754, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 33, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 33, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 33, 33)}, 'mal_croppe': {'main_port_id': 29998325, 'sub_port_id': 29998378, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529755, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 33, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 33, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 33, 33)}, 'kraft': {'main_port_id': 29998325, 'sub_port_id': 29998379, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529756, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 33, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 33, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 33, 33)}, 'autre_refus': {'main_port_id': 29998325, 'sub_port_id': 29998380, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529757, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 33, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 33, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 33, 33)}, 'Carton_brun': {'main_port_id': 29998325, 'sub_port_id': 29998381, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20529758, 'last_updated_at': datetime.datetime(2026, 1, 6, 23, 40, 58), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 23, 40, 58), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 23, 33, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29998370,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29998357 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29998371,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29998358 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29998372,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29998359 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29998373,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29998360 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29998374,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29998361 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29998375,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29998362 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29998376,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29998363 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29998377,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29998364 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29998378,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29998365 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29998379,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29998366 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29998380,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29998367 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29998381,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29998368 lien utilise dans velours : https://marlene.fotonower.com/velours/29998370,29998371,29998372,29998373,29998374,29998375,29998376,29998377,29998378,29998379,29998380,29998381?tags=metal,Teint_Dans_La_Masse,Carton_gris,papier,flou,cartonnette,environnement,plastique,mal_croppe,kraft,autre_refus,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29998325]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1402723027, 1402723026, 1402723025, 1402723007, 1402723004, 1402723003, 1402723002, 1402723001] map_info['map_portfolio_photo'] : {29998325: [1402723027, 1402723026, 1402723025, 1402723007, 1402723004, 1402723003, 1402723002, 1402723001, 1402722988, 1402722987, 1402722985, 1402722925, 1402722924, 1402722923, 1402722922, 1402722879, 1402722836, 1402722833, 1402722832, 1402722828, 1402722817, 1402722788, 1402722787, 1402722783, 1402722736, 1402722671, 1402722647, 1402722644, 1402722642, 1402722640, 1402722639, 1402722611, 1402722607, 1402722605, 1402722604, 1402722603]} final : False mtd_id 4302 list_pids : [1402723027, 1402723026, 1402723025, 1402723007, 1402723004, 1402723003, 1402723002, 1402723001] Looping around the photos to save general results len do output : 1 /29998325. 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, '4319085') ('4302', '29998325', '1402723027', None, None, None, None, None, '4319085') ('4302', None, None, None, None, None, None, None, '4319085') ('4302', '29998325', '1402723026', None, None, None, None, None, '4319085') ('4302', None, None, None, None, None, None, None, '4319085') ('4302', '29998325', '1402723025', None, None, None, None, None, '4319085') ('4302', None, None, None, None, None, None, None, '4319085') ('4302', '29998325', '1402723007', None, None, None, None, None, '4319085') ('4302', None, None, None, None, None, None, None, '4319085') ('4302', '29998325', '1402723004', None, None, None, None, None, '4319085') ('4302', None, None, None, None, None, None, None, '4319085') ('4302', '29998325', '1402723003', None, None, None, None, None, '4319085') ('4302', None, None, None, None, None, None, None, '4319085') ('4302', '29998325', '1402723002', None, None, None, None, None, '4319085') ('4302', None, None, None, None, None, None, None, '4319085') ('4302', '29998325', '1402723001', None, None, None, None, None, '4319085') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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, '29998325', "{'metal': 29998357, 'Teint_Dans_La_Masse': 29998358, 'Carton_gris': 29998359, 'papier': 29998360, 'flou': 29998361, 'cartonnette': 29998362, 'environnement': 29998363, 'plastique': 29998364, 'mal_croppe': 29998365, 'kraft': 29998366, 'autre_refus': 29998367, 'Carton_brun': 29998368}", None, None, None, None, '4319085'), ('4302', '29998325', '1402723027', None, None, None, None, None, '4319085'), ('4302', '29998325', '1402723026', None, None, None, None, None, '4319085'), ('4302', '29998325', '1402723025', None, None, None, None, None, '4319085'), ('4302', '29998325', '1402723007', None, None, None, None, None, '4319085'), ('4302', '29998325', '1402723004', None, None, None, None, None, '4319085'), ('4302', '29998325', '1402723003', None, None, None, None, None, '4319085'), ('4302', '29998325', '1402723002', None, None, None, None, None, '4319085'), ('4302', '29998325', '1402723001', None, None, None, None, None, '4319085')] time used for this insertion : 0.017935514450073242 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8939025402069092 time spend to save output : 0.018200159072875977 total time spend for step 1 : 1.9121026992797852 step2:final Tue Jan 6 23:43:01 2026 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 (29998325) 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 29998325 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1402722611,1402722607,1402722605,1402722604,1402722603,1402722647,1402722644,1402722642,1402722640,1402722639,1402722671,1402722736,1402722788,1402722787,1402722783,1402722836,1402722833,1402722832,1402722828,1402722879,1402722817,1402722925,1402722924,1402722923,1402722922,1402722988,1402722987,1402722985,1402723007,1402723004,1402723003,1402723002,1402723001,1402723027,1402723026,1402723025); 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([29998325]) Inside saveOutput : final : False verbose : True original output for save of step final : {1402723027: ('0.04810811326575189',), 1402723026: ('0.04810811326575189',), 1402723025: ('0.04810811326575189',), 1402723007: ('0.04810811326575189',), 1402723004: ('0.04810811326575189',), 1402723003: ('0.04810811326575189',), 1402723002: ('0.04810811326575189',), 1402723001: ('0.04810811326575189',)} new output for save of step final : {1402723027: ('0.04810811326575189',), 1402723026: ('0.04810811326575189',), 1402723025: ('0.04810811326575189',), 1402723007: ('0.04810811326575189',), 1402723004: ('0.04810811326575189',), 1402723003: ('0.04810811326575189',), 1402723002: ('0.04810811326575189',), 1402723001: ('0.04810811326575189',)} [1402723027, 1402723026, 1402723025, 1402723007, 1402723004, 1402723003, 1402723002, 1402723001] map_info['map_portfolio_photo'] : {29998325: [1402723027, 1402723026, 1402723025, 1402723007, 1402723004, 1402723003, 1402723002, 1402723001, 1402722988, 1402722987, 1402722985, 1402722925, 1402722924, 1402722923, 1402722922, 1402722879, 1402722836, 1402722833, 1402722832, 1402722828, 1402722817, 1402722788, 1402722787, 1402722783, 1402722736, 1402722671, 1402722647, 1402722644, 1402722642, 1402722640, 1402722639, 1402722611, 1402722607, 1402722605, 1402722604, 1402722603]} final : False mtd_id 4302 list_pids : [1402723027, 1402723026, 1402723025, 1402723007, 1402723004, 1402723003, 1402723002, 1402723001] Looping around the photos to save general results len do output : 8 /1402723027.Didn't retrieve data . /1402723026.Didn't retrieve data . /1402723025.Didn't retrieve data . /1402723007.Didn't retrieve data . /1402723004.Didn't retrieve data . /1402723003.Didn't retrieve data . /1402723002.Didn't retrieve data . /1402723001.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, '4319085') ('4302', '29998325', '1402723027', None, None, None, None, None, '4319085') ('4302', None, None, None, None, None, None, None, '4319085') ('4302', '29998325', '1402723026', None, None, None, None, None, '4319085') ('4302', None, None, None, None, None, None, None, '4319085') ('4302', '29998325', '1402723025', None, None, None, None, None, '4319085') ('4302', None, None, None, None, None, None, None, '4319085') ('4302', '29998325', '1402723007', None, None, None, None, None, '4319085') ('4302', None, None, None, None, None, None, None, '4319085') ('4302', '29998325', '1402723004', None, None, None, None, None, '4319085') ('4302', None, None, None, None, None, None, None, '4319085') ('4302', '29998325', '1402723003', None, None, None, None, None, '4319085') ('4302', None, None, None, None, None, None, None, '4319085') ('4302', '29998325', '1402723002', None, None, None, None, None, '4319085') ('4302', None, None, None, None, None, None, None, '4319085') ('4302', '29998325', '1402723001', None, None, None, None, None, '4319085') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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', '29998325', '1402723027', '0.04810811326575189', None, None, None, None, '4319085'), ('4302', '29998325', '1402723026', '0.04810811326575189', None, None, None, None, '4319085'), ('4302', '29998325', '1402723025', '0.04810811326575189', None, None, None, None, '4319085'), ('4302', '29998325', '1402723007', '0.04810811326575189', None, None, None, None, '4319085'), ('4302', '29998325', '1402723004', '0.04810811326575189', None, None, None, None, '4319085'), ('4302', '29998325', '1402723003', '0.04810811326575189', None, None, None, None, '4319085'), ('4302', '29998325', '1402723002', '0.04810811326575189', None, None, None, None, '4319085'), ('4302', '29998325', '1402723001', '0.04810811326575189', None, None, None, None, '4319085')] time used for this insertion : 0.014399290084838867 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07887101173400879 time spend to save output : 0.01481485366821289 total time spend for step 2 : 0.09368586540222168 step3:velours_tree Tue Jan 6 23:43:02 2026 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 : {29998325: [{'metal': 29998357, 'Teint_Dans_La_Masse': 29998358, 'Carton_gris': 29998359, 'papier': 29998360, 'flou': 29998361, 'cartonnette': 29998362, 'environnement': 29998363, 'plastique': 29998364, 'mal_croppe': 29998365, 'kraft': 29998366, 'autre_refus': 29998367, 'Carton_brun': 29998368}]} input_args_next_step : {29998325: ()} output_args : {29998325: [{'metal': 29998357, 'Teint_Dans_La_Masse': 29998358, 'Carton_gris': 29998359, 'papier': 29998360, 'flou': 29998361, 'cartonnette': 29998362, 'environnement': 29998363, 'plastique': 29998364, 'mal_croppe': 29998365, 'kraft': 29998366, 'autre_refus': 29998367, 'Carton_brun': 29998368}]} args : 29998325 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 : ({'metal': 29998357, 'Teint_Dans_La_Masse': 29998358, 'Carton_gris': 29998359, 'papier': 29998360, 'flou': 29998361, 'cartonnette': 29998362, 'environnement': 29998363, 'plastique': 29998364, 'mal_croppe': 29998365, 'kraft': 29998366, 'autre_refus': 29998367, 'Carton_brun': 29998368},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29998325) 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([29998325]) 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.23714160919189453 time spend to save output : 4.744529724121094e-05 total time spend for step 3 : 0.23718905448913574 step4:send_mail_cod Tue Jan 6 23:43:02 2026 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 : {1402723027: ('0.04810811326575189',), 1402723026: ('0.04810811326575189',), 1402723025: ('0.04810811326575189',), 1402723007: ('0.04810811326575189',), 1402723004: ('0.04810811326575189',), 1402723003: ('0.04810811326575189',), 1402723002: ('0.04810811326575189',), 1402723001: ('0.04810811326575189',)} input_args_next_step : {1402723027: ()} output_args : {1402723027: ('0.04810811326575189',), 1402723026: ('0.04810811326575189',), 1402723025: ('0.04810811326575189',), 1402723007: ('0.04810811326575189',), 1402723004: ('0.04810811326575189',), 1402723003: ('0.04810811326575189',), 1402723002: ('0.04810811326575189',), 1402723001: ('0.04810811326575189',)} args : 1402723027 depend.output_id : 0 input_args_next_step : {1402723027: ('0.04810811326575189',), 1402723026: ()} output_args : {1402723027: ('0.04810811326575189',), 1402723026: ('0.04810811326575189',), 1402723025: ('0.04810811326575189',), 1402723007: ('0.04810811326575189',), 1402723004: ('0.04810811326575189',), 1402723003: ('0.04810811326575189',), 1402723002: ('0.04810811326575189',), 1402723001: ('0.04810811326575189',)} args : 1402723026 depend.output_id : 0 input_args_next_step : {1402723027: ('0.04810811326575189',), 1402723026: ('0.04810811326575189',), 1402723025: ()} output_args : {1402723027: ('0.04810811326575189',), 1402723026: ('0.04810811326575189',), 1402723025: ('0.04810811326575189',), 1402723007: ('0.04810811326575189',), 1402723004: ('0.04810811326575189',), 1402723003: ('0.04810811326575189',), 1402723002: ('0.04810811326575189',), 1402723001: ('0.04810811326575189',)} args : 1402723025 depend.output_id : 0 input_args_next_step : {1402723027: ('0.04810811326575189',), 1402723026: ('0.04810811326575189',), 1402723025: ('0.04810811326575189',), 1402723007: ()} output_args : {1402723027: ('0.04810811326575189',), 1402723026: ('0.04810811326575189',), 1402723025: ('0.04810811326575189',), 1402723007: ('0.04810811326575189',), 1402723004: ('0.04810811326575189',), 1402723003: ('0.04810811326575189',), 1402723002: ('0.04810811326575189',), 1402723001: ('0.04810811326575189',)} args : 1402723007 depend.output_id : 0 input_args_next_step : {1402723027: ('0.04810811326575189',), 1402723026: ('0.04810811326575189',), 1402723025: ('0.04810811326575189',), 1402723007: ('0.04810811326575189',), 1402723004: ()} output_args : {1402723027: ('0.04810811326575189',), 1402723026: ('0.04810811326575189',), 1402723025: ('0.04810811326575189',), 1402723007: ('0.04810811326575189',), 1402723004: ('0.04810811326575189',), 1402723003: ('0.04810811326575189',), 1402723002: ('0.04810811326575189',), 1402723001: ('0.04810811326575189',)} args : 1402723004 depend.output_id : 0 input_args_next_step : {1402723027: ('0.04810811326575189',), 1402723026: ('0.04810811326575189',), 1402723025: ('0.04810811326575189',), 1402723007: ('0.04810811326575189',), 1402723004: ('0.04810811326575189',), 1402723003: ()} output_args : {1402723027: ('0.04810811326575189',), 1402723026: ('0.04810811326575189',), 1402723025: ('0.04810811326575189',), 1402723007: ('0.04810811326575189',), 1402723004: ('0.04810811326575189',), 1402723003: ('0.04810811326575189',), 1402723002: ('0.04810811326575189',), 1402723001: ('0.04810811326575189',)} args : 1402723003 depend.output_id : 0 input_args_next_step : {1402723027: ('0.04810811326575189',), 1402723026: ('0.04810811326575189',), 1402723025: ('0.04810811326575189',), 1402723007: ('0.04810811326575189',), 1402723004: ('0.04810811326575189',), 1402723003: ('0.04810811326575189',), 1402723002: ()} output_args : {1402723027: ('0.04810811326575189',), 1402723026: ('0.04810811326575189',), 1402723025: ('0.04810811326575189',), 1402723007: ('0.04810811326575189',), 1402723004: ('0.04810811326575189',), 1402723003: ('0.04810811326575189',), 1402723002: ('0.04810811326575189',), 1402723001: ('0.04810811326575189',)} args : 1402723002 depend.output_id : 0 input_args_next_step : {1402723027: ('0.04810811326575189',), 1402723026: ('0.04810811326575189',), 1402723025: ('0.04810811326575189',), 1402723007: ('0.04810811326575189',), 1402723004: ('0.04810811326575189',), 1402723003: ('0.04810811326575189',), 1402723002: ('0.04810811326575189',), 1402723001: ()} output_args : {1402723027: ('0.04810811326575189',), 1402723026: ('0.04810811326575189',), 1402723025: ('0.04810811326575189',), 1402723007: ('0.04810811326575189',), 1402723004: ('0.04810811326575189',), 1402723003: ('0.04810811326575189',), 1402723002: ('0.04810811326575189',), 1402723001: ('0.04810811326575189',)} args : 1402723001 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 : {29998325: [{'metal': 29998357, 'Teint_Dans_La_Masse': 29998358, 'Carton_gris': 29998359, 'papier': 29998360, 'flou': 29998361, 'cartonnette': 29998362, 'environnement': 29998363, 'plastique': 29998364, 'mal_croppe': 29998365, 'kraft': 29998366, 'autre_refus': 29998367, 'Carton_brun': 29998368}]} input_args_next_step : {1402723027: ('0.04810811326575189',), 1402723026: ('0.04810811326575189',), 1402723025: ('0.04810811326575189',), 1402723007: ('0.04810811326575189',), 1402723004: ('0.04810811326575189',), 1402723003: ('0.04810811326575189',), 1402723002: ('0.04810811326575189',), 1402723001: ('0.04810811326575189',), 29998325: ()} output_args : {29998325: [{'metal': 29998357, 'Teint_Dans_La_Masse': 29998358, 'Carton_gris': 29998359, 'papier': 29998360, 'flou': 29998361, 'cartonnette': 29998362, 'environnement': 29998363, 'plastique': 29998364, 'mal_croppe': 29998365, 'kraft': 29998366, 'autre_refus': 29998367, 'Carton_brun': 29998368}]} args : 29998325 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 :9, first value : ('0.04810811326575189',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29998325) 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 (1402723027,1402723026,1402723025,1402723007,1402723004,1402723003,1402723002,1402723001) Found this number of photos: 8 ##### Call download_photos : nb_thread : 5 begin to download photo : 1402723001 begin to download photo : 1402723003 begin to download photo : 1402723007 begin to download photo : 1402723026 download finish for photo 1402723001 begin to download photo : 1402723002 download finish for photo 1402723026 begin to download photo : 1402723027 download finish for photo 1402723003 begin to download photo : 1402723004 download finish for photo 1402723007 begin to download photo : 1402723025 download finish for photo 1402723027 download finish for photo 1402723004 download finish for photo 1402723002 download finish for photo 1402723025 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 8 ; length of list_pids : 8 ; length of list_args : 8 results_Auto_P29998325_06-01-2026_23_43_02.pdf 29998357 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=29998357 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402722986: '1767739166_1320620_1402722642_9abe6c4c748ca1a6aa52a7ddd83c2df7_rle_crop_4092199113_0.png'} change filename to text .imagette299983571767739382/ imagette299983571767739382/1767739166_1320620_1402722642_9abe6c4c748ca1a6aa52a7ddd83c2df7_rle_crop_4092199113_0.png.png imagette299983611767739382/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/467148ae5489fadc4e226d727f5e5c0f_2282001.png imagette299983571767739382 29998361 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=29998361 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette299983611767739382 29998362 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=29998362 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402722777: '1767738866_1303506_1402722611_081dafba0603e5581c5399abef9e6d14_rle_crop_4092197871_0.png', 1402722778: '1767738866_1303506_1402722607_6c359e5a302f84f8a28cf44c24dce7bc_rle_crop_4092197888_0.png', 1402722779: '1767738866_1303506_1402722604_6079a7c93552ac3aab2cd25b0406c6bb_rle_crop_4092197919_0.png', 1402722780: '1767738866_1303506_1402722604_6079a7c93552ac3aab2cd25b0406c6bb_rle_crop_4092197914_0.png', 1402722781: '1767738866_1303506_1402722603_e1d4c27d693ce8567a5839938f5b7f34_rle_crop_4092197934_0.png', 1402722950: '1767739146_1318250_1402722832_592a8c35490b386b745081faf5874593_rle_crop_4092198875_0.png', 1402722951: '1767739146_1318250_1402722817_162d99193a8a63a457dc2fb7349a622b_rle_crop_4092198911_0.png', 1402722975: '1767739166_1320620_1402722642_9abe6c4c748ca1a6aa52a7ddd83c2df7_rle_crop_4092199134_0.png', 1402722976: '1767739166_1320620_1402722642_9abe6c4c748ca1a6aa52a7ddd83c2df7_rle_crop_4092199136_0.png', 1402722977: '1767739166_1320620_1402722642_9abe6c4c748ca1a6aa52a7ddd83c2df7_rle_crop_4092199111_0.png', 1402722978: '1767739166_1320620_1402722640_b901c5363b38c48b52579f74d599eb47_rle_crop_4092199147_0.png', 1402722979: '1767739166_1320620_1402722640_b901c5363b38c48b52579f74d599eb47_rle_crop_4092199148_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/caa58bc39b51b10fd5d01999db98038b_70673168.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/7a0d1df083acff5ed20fc418943df0b1_10850624.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/a9912ba30ebf774fda80887a17680724_38353604.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/1283dab8904a528a91d9c901f0df0b36_58810003.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/aeab05ab0a2a0503c596e04f18fd4644_22315564.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/1eae619705e2f8278718e1d4e07e1a06_54492044.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/051236b3090bb2fd78a3f7269675e791_70019105.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/6af213c2404b7c3b6983f8592f1fb6eb_67917017.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/70b9dbd338f1cf8275d7d8c93141de15_16759104.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/cc0517f5f9fb44648fdf25f786298c68_60769447.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/1c784670c964fd164c4b1db81690f1b2_82825332.png change filename to text .imagette299983621767739382/ imagette299983621767739382/1767738866_1303506_1402722604_6079a7c93552ac3aab2cd25b0406c6bb_rle_crop_4092197914_0.png.png imagette299983621767739382/1767739166_1320620_1402722642_9abe6c4c748ca1a6aa52a7ddd83c2df7_rle_crop_4092199111_0.png.png imagette299983621767739382/1767738866_1303506_1402722603_e1d4c27d693ce8567a5839938f5b7f34_rle_crop_4092197934_0.png.png imagette299983621767739382/1767739166_1320620_1402722642_9abe6c4c748ca1a6aa52a7ddd83c2df7_rle_crop_4092199134_0.png.png imagette299983621767739382/1767739166_1320620_1402722640_b901c5363b38c48b52579f74d599eb47_rle_crop_4092199147_0.png.png imagette299983621767739382/1767739166_1320620_1402722640_b901c5363b38c48b52579f74d599eb47_rle_crop_4092199148_0.png.png imagette299983621767739382/1767739166_1320620_1402722642_9abe6c4c748ca1a6aa52a7ddd83c2df7_rle_crop_4092199136_0.png.png imagette299983621767739382/1767738866_1303506_1402722611_081dafba0603e5581c5399abef9e6d14_rle_crop_4092197871_0.png.png imagette299983621767739382/1767739146_1318250_1402722817_162d99193a8a63a457dc2fb7349a622b_rle_crop_4092198911_0.png.png imagette299983621767739382/1767738866_1303506_1402722607_6c359e5a302f84f8a28cf44c24dce7bc_rle_crop_4092197888_0.png.png imagette299983621767739382/1767739146_1318250_1402722832_592a8c35490b386b745081faf5874593_rle_crop_4092198875_0.png.png imagette299983621767739382/1767738866_1303506_1402722604_6079a7c93552ac3aab2cd25b0406c6bb_rle_crop_4092197919_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/79f61a2c60a7d1cf221a38411014d8b9_35577075.png imagette299983621767739382 29998364 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=29998364 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402722784: '1767738866_1303506_1402722607_6c359e5a302f84f8a28cf44c24dce7bc_rle_crop_4092197894_0.png', 1402722785: '1767738866_1303506_1402722605_1b20f3dcc39b883aa08f802aa8939164_rle_crop_4092197906_0.png', 1402722786: '1767738866_1303506_1402722604_6079a7c93552ac3aab2cd25b0406c6bb_rle_crop_4092197915_0.png', 1402722954: '1767739146_1318250_1402722817_162d99193a8a63a457dc2fb7349a622b_rle_crop_4092198912_0.png', 1402722984: '1767739166_1320620_1402722644_b42780380c1fba3648635ddddfed8f16_rle_crop_4092199097_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/58309ec82e9f519d613abd384753efde_80725290.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/143d77d48e25df407bcf4a90a6e4cc32_13465295.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/9b1148fcf35901e691cb0c0325030239_25505669.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/576f160dfa30ddbd436766bf55574c98_73720431.png change filename to text .imagette299983641767739383/ imagette299983641767739383/1767738866_1303506_1402722607_6c359e5a302f84f8a28cf44c24dce7bc_rle_crop_4092197894_0.png.png imagette299983641767739383/1767738866_1303506_1402722605_1b20f3dcc39b883aa08f802aa8939164_rle_crop_4092197906_0.png.png imagette299983641767739383/1767738866_1303506_1402722604_6079a7c93552ac3aab2cd25b0406c6bb_rle_crop_4092197915_0.png.png imagette299983641767739383/1767739166_1320620_1402722644_b42780380c1fba3648635ddddfed8f16_rle_crop_4092199097_0.png.png imagette299983641767739383/1767739146_1318250_1402722817_162d99193a8a63a457dc2fb7349a622b_rle_crop_4092198912_0.png.png imagette299983651767739383/ imagette299983661767739383/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/aebd480ae7ae99fc9ae7934f6bd41720_55638644.png imagette299983641767739383 29998365 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=29998365 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette299983651767739383 29998366 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=29998366 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette299983661767739383 29998367 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=29998367 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402722774: '1767738866_1303506_1402722607_6c359e5a302f84f8a28cf44c24dce7bc_rle_crop_4092197885_0.png', 1402722775: '1767738866_1303506_1402722603_e1d4c27d693ce8567a5839938f5b7f34_rle_crop_4092197929_0.png', 1402722911: '1767739107_1317009_1402722836_ade69feb900fc65798fe283cb9d4164f_rle_crop_4092198703_0.png', 1402722912: '1767739107_1317009_1402722787_7dcf2f83f2840e5fec0869dd71420ff1_rle_crop_4092198713_0.png', 1402722913: '1767739107_1317009_1402722783_b9fbed13d9ad0e5df59c719c3e9e2445_rle_crop_4092198729_0.png', 1402722973: '1767739166_1320620_1402722640_b901c5363b38c48b52579f74d599eb47_rle_crop_4092199142_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/a94649071d2ae5f48e8039d88085efdc_98595180.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/86f593798258e7f524d6cdf773309086_11840974.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/74ebd4d57f0c88dc2018e35eb8bee110_53329289.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/14c9fd2e4249a864cf461be53ff657a8_56345934.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/8ae77676e0d222de61cb08165e2abdf9_6388229.png change filename to text .imagette299983671767739383/ imagette299983671767739383/1767739107_1317009_1402722787_7dcf2f83f2840e5fec0869dd71420ff1_rle_crop_4092198713_0.png.png imagette299983671767739383/1767739166_1320620_1402722640_b901c5363b38c48b52579f74d599eb47_rle_crop_4092199142_0.png.png imagette299983671767739383/1767738866_1303506_1402722603_e1d4c27d693ce8567a5839938f5b7f34_rle_crop_4092197929_0.png.png imagette299983671767739383/1767739107_1317009_1402722783_b9fbed13d9ad0e5df59c719c3e9e2445_rle_crop_4092198729_0.png.png imagette299983671767739383/1767739107_1317009_1402722836_ade69feb900fc65798fe283cb9d4164f_rle_crop_4092198703_0.png.png imagette299983671767739383/1767738866_1303506_1402722607_6c359e5a302f84f8a28cf44c24dce7bc_rle_crop_4092197885_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/2f5d8ab67ccc4d387626de4ca74515d4_70586987.png imagette299983671767739383 29998358 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=29998358 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402722770: '1767738866_1303506_1402722611_081dafba0603e5581c5399abef9e6d14_rle_crop_4092197876_0.png', 1402722771: '1767738866_1303506_1402722607_6c359e5a302f84f8a28cf44c24dce7bc_rle_crop_4092197890_0.png', 1402722772: '1767738866_1303506_1402722605_1b20f3dcc39b883aa08f802aa8939164_rle_crop_4092197900_0.png', 1402722773: '1767738866_1303506_1402722604_6079a7c93552ac3aab2cd25b0406c6bb_rle_crop_4092197918_0.png', 1402722944: '1767739146_1318250_1402722832_592a8c35490b386b745081faf5874593_rle_crop_4092198878_0.png', 1402722945: '1767739146_1318250_1402722828_86cfa9a12680516f13503016b2220456_rle_crop_4092198899_0.png', 1402722947: '1767739146_1318250_1402722828_86cfa9a12680516f13503016b2220456_rle_crop_4092198898_0.png', 1402722949: '1767739146_1318250_1402722817_162d99193a8a63a457dc2fb7349a622b_rle_crop_4092198910_0.png', 1402722968: '1767739166_1320620_1402722644_b42780380c1fba3648635ddddfed8f16_rle_crop_4092199102_0.png', 1402722969: '1767739166_1320620_1402722642_9abe6c4c748ca1a6aa52a7ddd83c2df7_rle_crop_4092199118_0.png', 1402722970: '1767739166_1320620_1402722639_9f108552e511ad0b9b4f2fa17de393f5_rle_crop_4092199163_0.png', 1402722971: '1767739166_1320620_1402722639_9f108552e511ad0b9b4f2fa17de393f5_rle_crop_4092199170_0.png', 1402723008: '1767739265_1327334_1402722647_f43b4a4fb5641619de5d93b8eb8fd730_rle_crop_4092199206_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/bf0df9d1201043f02d74673893a835de_73738342.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/cd03fab3b1755728240c8b53fa2e44ba_49886937.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/6dc43fc281ee09766b2bd143e2ec7219_48851638.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/9384c079dc3c22b48c2587c43a5f8442_74472386.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/77c9004787cba3232594f28990ae6b45_97577284.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/66cea3d182926ce9a90276249b72e5ff_98859219.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/c72096d4f46b8eb5732bb09ce69ccadd_76169828.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/5225c1b02159288f20b26d4343c57fbd_15023717.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/9a628e327c95aecf4428ac6f3340eeb5_53272083.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/46ca9406c9b539d37635fadc36458f50_60313464.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/0053757166ec81fae95cc4267b0e48b5_97874711.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/e5e5325b8ed24012d1cd71afe279833b_26267422.png change filename to text .imagette299983581767739384/ imagette299983581767739384/1767739146_1318250_1402722828_86cfa9a12680516f13503016b2220456_rle_crop_4092198899_0.png.png imagette299983581767739384/1767739166_1320620_1402722639_9f108552e511ad0b9b4f2fa17de393f5_rle_crop_4092199163_0.png.png imagette299983581767739384/1767739146_1318250_1402722828_86cfa9a12680516f13503016b2220456_rle_crop_4092198898_0.png.png imagette299983581767739384/1767738866_1303506_1402722611_081dafba0603e5581c5399abef9e6d14_rle_crop_4092197876_0.png.png imagette299983581767739384/1767739166_1320620_1402722644_b42780380c1fba3648635ddddfed8f16_rle_crop_4092199102_0.png.png imagette299983581767739384/1767739146_1318250_1402722817_162d99193a8a63a457dc2fb7349a622b_rle_crop_4092198910_0.png.png imagette299983581767739384/1767739166_1320620_1402722639_9f108552e511ad0b9b4f2fa17de393f5_rle_crop_4092199170_0.png.png imagette299983581767739384/1767738866_1303506_1402722604_6079a7c93552ac3aab2cd25b0406c6bb_rle_crop_4092197918_0.png.png imagette299983581767739384/1767739146_1318250_1402722832_592a8c35490b386b745081faf5874593_rle_crop_4092198878_0.png.png imagette299983581767739384/1767739265_1327334_1402722647_f43b4a4fb5641619de5d93b8eb8fd730_rle_crop_4092199206_0.png.png imagette299983581767739384/1767738866_1303506_1402722605_1b20f3dcc39b883aa08f802aa8939164_rle_crop_4092197900_0.png.png imagette299983581767739384/1767738866_1303506_1402722607_6c359e5a302f84f8a28cf44c24dce7bc_rle_crop_4092197890_0.png.png imagette299983581767739384/1767739166_1320620_1402722642_9abe6c4c748ca1a6aa52a7ddd83c2df7_rle_crop_4092199118_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/16a5428828abfa98f120c5cbf894c3e2_5402390.png imagette299983581767739384 29998359 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=29998359 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402722776: '1767738866_1303506_1402722611_081dafba0603e5581c5399abef9e6d14_rle_crop_4092197873_0.png', 1402722914: '1767739107_1317009_1402722783_b9fbed13d9ad0e5df59c719c3e9e2445_rle_crop_4092198726_0.png', 1402722974: '1767739166_1320620_1402722642_9abe6c4c748ca1a6aa52a7ddd83c2df7_rle_crop_4092199132_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/d6d4509e5b37d3eb8830674a76e81ee6_42669037.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/4fe7d5250a8edf9459a0b107c512dc87_28972053.png change filename to text .imagette299983591767739385/ imagette299983591767739385/1767739166_1320620_1402722642_9abe6c4c748ca1a6aa52a7ddd83c2df7_rle_crop_4092199132_0.png.png imagette299983591767739385/1767739107_1317009_1402722783_b9fbed13d9ad0e5df59c719c3e9e2445_rle_crop_4092198726_0.png.png imagette299983591767739385/1767738866_1303506_1402722611_081dafba0603e5581c5399abef9e6d14_rle_crop_4092197873_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/1cfb6408f2f1632d4b38d7f95073caed_11905627.png imagette299983591767739385 29998368 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=29998368 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402722782: '1767738866_1303506_1402722611_081dafba0603e5581c5399abef9e6d14_rle_crop_4092197874_0.png', 1402722915: '1767739107_1317009_1402722836_ade69feb900fc65798fe283cb9d4164f_rle_crop_4092198702_0.png', 1402722952: '1767739146_1318250_1402722833_8800ed8588033de86057efe420ed8ac7_rle_crop_4092198864_0.png', 1402722953: '1767739146_1318250_1402722832_592a8c35490b386b745081faf5874593_rle_crop_4092198874_0.png', 1402722981: '1767739166_1320620_1402722640_b901c5363b38c48b52579f74d599eb47_rle_crop_4092199149_0.png', 1402722982: '1767739166_1320620_1402722639_9f108552e511ad0b9b4f2fa17de393f5_rle_crop_4092199164_0.png', 1402722983: '1767739166_1320620_1402722639_9f108552e511ad0b9b4f2fa17de393f5_rle_crop_4092199161_0.png', 1402723010: '1767739265_1327334_1402722647_f43b4a4fb5641619de5d93b8eb8fd730_rle_crop_4092199200_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/0525a12ef4a8b45c2fa67e8e595f45ae_28322484.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/4f482f421acb53d709aa8bab0a1a3f3a_62939149.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/b2039c5e3c97b88a02bb558be0d5bdbd_55373935.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/fe847855b20c7bc9bb5b6cc4964a2bd3_76087452.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/853af8f39ca87a4b4e95320412f1eef5_38598280.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/850206ef70bc7efd6e425b0d7f9fd6dc_95216746.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/81812d4c2c0cfa19199f1158c727083e_59570877.png change filename to text .imagette299983681767739385/ imagette299983681767739385/1767739166_1320620_1402722640_b901c5363b38c48b52579f74d599eb47_rle_crop_4092199149_0.png.png imagette299983681767739385/1767739166_1320620_1402722639_9f108552e511ad0b9b4f2fa17de393f5_rle_crop_4092199164_0.png.png imagette299983681767739385/1767739166_1320620_1402722639_9f108552e511ad0b9b4f2fa17de393f5_rle_crop_4092199161_0.png.png imagette299983681767739385/1767739146_1318250_1402722832_592a8c35490b386b745081faf5874593_rle_crop_4092198874_0.png.png imagette299983681767739385/1767738866_1303506_1402722611_081dafba0603e5581c5399abef9e6d14_rle_crop_4092197874_0.png.png imagette299983681767739385/1767739107_1317009_1402722836_ade69feb900fc65798fe283cb9d4164f_rle_crop_4092198702_0.png.png imagette299983681767739385/1767739265_1327334_1402722647_f43b4a4fb5641619de5d93b8eb8fd730_rle_crop_4092199200_0.png.png imagette299983681767739385/1767739146_1318250_1402722833_8800ed8588033de86057efe420ed8ac7_rle_crop_4092198864_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/d7d433c360765bb3bf38f9398f102906_82451053.png imagette299983681767739385 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29998325 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29998370,29998371,29998372,29998373,29998374,29998375,29998376,29998377,29998378,29998379,29998380,29998381?tags=metal,Teint_Dans_La_Masse,Carton_gris,papier,flou,cartonnette,environnement,plastique,mal_croppe,kraft,autre_refus,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1402723027] : ('0.04810811326575189',) no score found for photo 1402723027 We are sending mail with results at report@fotonower.com args[1402723026] : ('0.04810811326575189',) no score found for photo 1402723026 We are sending mail with results at report@fotonower.com args[1402723025] : ('0.04810811326575189',) no score found for photo 1402723025 We are sending mail with results at report@fotonower.com args[1402723007] : ('0.04810811326575189',) no score found for photo 1402723007 We are sending mail with results at report@fotonower.com args[1402723004] : ('0.04810811326575189',) no score found for photo 1402723004 We are sending mail with results at report@fotonower.com args[1402723003] : ('0.04810811326575189',) no score found for photo 1402723003 We are sending mail with results at report@fotonower.com args[1402723002] : ('0.04810811326575189',) no score found for photo 1402723002 We are sending mail with results at report@fotonower.com args[1402723001] : ('0.04810811326575189',) no score found for photo 1402723001 We are sending mail with results at report@fotonower.com refus_total : 0.04810811326575189 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=29998325 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_P29998325_06-01-2026_23_43_02.pdf results_Auto_P29998325_06-01-2026_23_43_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29998325_06-01-2026_23_43_02.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','29998325','results_Auto_P29998325_06-01-2026_23_43_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29998325_06-01-2026_23_43_02.pdf','pdf','','0.2','0.04810811326575189') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29998325]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1402723027, 1402723026, 1402723025, 1402723007, 1402723004, 1402723003, 1402723002, 1402723001] map_info['map_portfolio_photo'] : {29998325: [1402723027, 1402723026, 1402723025, 1402723007, 1402723004, 1402723003, 1402723002, 1402723001, 1402722988, 1402722987, 1402722985, 1402722925, 1402722924, 1402722923, 1402722922, 1402722879, 1402722836, 1402722833, 1402722832, 1402722828, 1402722817, 1402722788, 1402722787, 1402722783, 1402722736, 1402722671, 1402722647, 1402722644, 1402722642, 1402722640, 1402722639, 1402722611, 1402722607, 1402722605, 1402722604, 1402722603]} final : False mtd_id 4302 list_pids : [1402723027, 1402723026, 1402723025, 1402723007, 1402723004, 1402723003, 1402723002, 1402723001] 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, '4319085') ('4302', '29998325', '1402723027', None, None, None, None, None, '4319085') ('4302', None, None, None, None, None, None, None, '4319085') ('4302', '29998325', '1402723026', None, None, None, None, None, '4319085') ('4302', None, None, None, None, None, None, None, '4319085') ('4302', '29998325', '1402723025', None, None, None, None, None, '4319085') ('4302', None, None, None, None, None, None, None, '4319085') ('4302', '29998325', '1402723007', None, None, None, None, None, '4319085') ('4302', None, None, None, None, None, None, None, '4319085') ('4302', '29998325', '1402723004', None, None, None, None, None, '4319085') ('4302', None, None, None, None, None, None, None, '4319085') ('4302', '29998325', '1402723003', None, None, None, None, None, '4319085') ('4302', None, None, None, None, None, None, None, '4319085') ('4302', '29998325', '1402723002', None, None, None, None, None, '4319085') ('4302', None, None, None, None, None, None, None, '4319085') ('4302', '29998325', '1402723001', None, None, None, None, None, '4319085') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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', '29998325', '1402723027', None, None, None, None, None, '4319085'), ('4302', '29998325', '1402723026', None, None, None, None, None, '4319085'), ('4302', '29998325', '1402723025', None, None, None, None, None, '4319085'), ('4302', '29998325', '1402723007', None, None, None, None, None, '4319085'), ('4302', '29998325', '1402723004', None, None, None, None, None, '4319085'), ('4302', '29998325', '1402723003', None, None, None, None, None, '4319085'), ('4302', '29998325', '1402723002', None, None, None, None, None, '4319085'), ('4302', '29998325', '1402723001', None, None, None, None, None, '4319085')] time used for this insertion : 0.014732122421264648 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.0602428913116455 time spend to save output : 0.014928579330444336 total time spend for step 4 : 5.07517147064209 step5:split_time_score Tue Jan 6 23:43:07 2026 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 : ['29998325'] 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 : [('29998325',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29998325) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1402723026: {'path': 'temp/1767739382_1805594_1402723026_6cfb1c48e55dc05e6efe95a1ebbc02a2.jpg', 'extension': 'jpg'}, 1402723027: {'path': 'temp/1767739382_1805594_1402723027_9be492c03a111a52fe68ff677000e5f0.jpg', 'extension': 'jpg'}, 1402723003: {'path': 'temp/1767739382_1805594_1402723003_67151e4ec42e72c483b746bb94ac61a4.jpg', 'extension': 'jpg'}, 1402723004: {'path': 'temp/1767739382_1805594_1402723004_2a2b34bc787fca16271044f082f36293.jpg', 'extension': 'jpg'}, 1402723001: {'path': 'temp/1767739382_1805594_1402723001_8fa63461bc78bfeecc71c2898b0c9907.jpg', 'extension': 'jpg'}, 1402723002: {'path': 'temp/1767739382_1805594_1402723002_4f3753bd451a0e009ee8dbb234f09ffd.jpg', 'extension': 'jpg'}, 1402723007: {'path': 'temp/1767739382_1805594_1402723007_dd0eba018dfbf6df1b1d3156250112bf.jpg', 'extension': 'jpg'}, 1402723025: {'path': 'temp/1767739382_1805594_1402723025_addaa25d4ff975d3ac8d2e74553a79bc.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 = 29998325; (('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 = 29998325 group by h (('23', 36),) 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=29998325 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 (29998325) 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 (29998325) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 06012026 29998325 Nombre de photos uploadées : 36 / 23040 (0%) 06012026 29998325 Nombre de photos taguées (types de déchets): 0 / 36 (0%) 06012026 29998325 Nombre de photos taguées (volume) : 0 / 36 (0%) [{'photo_id': 1402722611, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/081dafba0603e5581c5399abef9e6d14.jpg', 'username': None, 'uploaded_at': 1767738667, 'text': 'image_06012026_23_30_04_010137m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402722607, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/6c359e5a302f84f8a28cf44c24dce7bc.jpg', 'username': None, 'uploaded_at': 1767738667, 'text': 'image_06012026_23_30_14_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402722605, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/1b20f3dcc39b883aa08f802aa8939164.jpg', 'username': None, 'uploaded_at': 1767738667, 'text': 'image_06012026_23_30_25_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402722604, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/6079a7c93552ac3aab2cd25b0406c6bb.jpg', 'username': None, 'uploaded_at': 1767738667, 'text': 'image_06012026_23_30_35_010133m0.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.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ???????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0016207695007324219 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29998325, '2026-01-06' ) 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 = '2026-01-06' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2847576,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2624943256378174 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= 2847576 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29983702, 'dashboard_result_id': 19083911, '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_P29983702_06-01-2026_14_04_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983711, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983714, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29983871, 'dashboard_result_id': 19083912, '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_P29983871_06-01-2026_14_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983920, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983931, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29984338, 'dashboard_result_id': 19083913, '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_P29984338_06-01-2026_14_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984353, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29984604, 'dashboard_result_id': 19083914, '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_P29984604_06-01-2026_14_48_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984628, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29985208, 'dashboard_result_id': 19083915, '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_P29985208_06-01-2026_15_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985234, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29985695, 'dashboard_result_id': 19083916, '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_P29985695_06-01-2026_15_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985768, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985774, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29986175, 'dashboard_result_id': 19083917, '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_P29986175_06-01-2026_15_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29986180, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986191, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29986341, 'dashboard_result_id': 19083918, '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_P29986341_06-01-2026_15_49_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986363, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986370, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29986616, 'dashboard_result_id': 19083919, '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_P29986616_06-01-2026_16_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986628, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29986912, 'dashboard_result_id': 19083920, '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_P29986912_06-01-2026_16_20_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986918, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986927, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29987128, 'dashboard_result_id': 19083921, '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_P29987128_06-01-2026_16_38_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29987133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29987134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29987135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29987136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29987137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29987138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29987139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29987140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29987141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29987142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29987143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29987144, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29988197, 'dashboard_result_id': 19083922, '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_P29988197_06-01-2026_18_13_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29988204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988213, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29988950, 'dashboard_result_id': 19083923, '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_P29988950_06-01-2026_18_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29988952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988958, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988963, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29989109, 'dashboard_result_id': 19083924, '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_P29989109_06-01-2026_18_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29989115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989121, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989122, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29989579, 'dashboard_result_id': 19083925, '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_P29989579_06-01-2026_19_18_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29989584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989595, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29990042, 'dashboard_result_id': 19083926, '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_P29990042_06-01-2026_19_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990046, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990056, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29990281, 'dashboard_result_id': 19083927, '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_P29990281_06-01-2026_19_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990296, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29990561, 'dashboard_result_id': 19083928, '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_P29990561_06-01-2026_20_05_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990576, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29990904, 'dashboard_result_id': 19083929, '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_P29990904_06-01-2026_20_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29990906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990917, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29992020, 'dashboard_result_id': 19083930, '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_P29992020_06-01-2026_21_21_13.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992025, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992035, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29992183, 'dashboard_result_id': 19083931, '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_P29992183_06-01-2026_21_35_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992196, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992198, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29992563, 'dashboard_result_id': 19083932, '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_P29992563_06-01-2026_21_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29992581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992585, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992592, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29993031, 'dashboard_result_id': 19083933, '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_P29993031_06-01-2026_22_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29993043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993051, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993054, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29993483, 'dashboard_result_id': 19083934, '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_P29993483_06-01-2026_22_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29993512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993515, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29994356, 'dashboard_result_id': 19083935, '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_P29994356_06-01-2026_22_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29994405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29994406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29994407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29994408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29994409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29994410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29994411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29994412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29994413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29994414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29994415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29994416, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29995259, 'dashboard_result_id': 19083936, '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_P29995259_06-01-2026_22_47_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29995277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29995278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29995279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29995281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29995282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29995283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29995284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29995285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29995286, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29995287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29995289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29995290, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29996022, 'dashboard_result_id': 19083937, '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_P29996022_06-01-2026_23_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29996060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29996061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29996062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29996064, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29996065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29996066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29996067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29996068, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29996069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29996070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29996071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29996072, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29996868, 'dashboard_result_id': 19083938, '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_P29996868_06-01-2026_23_18_56.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29996922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29996923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29996924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29996925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29996926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29996927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29996928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29996929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29996930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29996931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29996932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29996933, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29997723, 'dashboard_result_id': 19083939, '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_P29997723_06-01-2026_23_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29997748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29997749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29997750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29997751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29997752, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29997753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29997754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29997755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29997756, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29997757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29997758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29997759, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2860760, 'mtr_portfolio_id': 29998325, 'dashboard_result_id': 19083940, '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_P29998325_06-01-2026_23_39_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29998357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29998358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29998359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29998360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29998361, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29998362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29998363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29998364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29998365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29998366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29998367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29998368, '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 = 29983702 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': 4317127, 'mtr_portfolio_id': 29983702, 'created_at': datetime.datetime(2026, 1, 6, 14, 4, 57), 'result': '0.022296639149872198', 'result_long': None, 'result_double': None}] Qualite : 0.022296639149872198 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29983702 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29983702_06-01-2026_14_04_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29983702 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_P29983702_06-01-2026_14_04_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983711, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983714, 'pht': 3726}}" where mtr_portfolio_id = 29983702 and dashboard_run_id = 2860760 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`=29983702 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083911, 0.022296639149872198, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29983702_06-01-2026_14_04_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983711, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983714, '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 = 29983871 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': 4317187, 'mtr_portfolio_id': 29983871, 'created_at': datetime.datetime(2026, 1, 6, 14, 19), 'result': '0.017274851096533806', 'result_long': None, 'result_double': None}] Qualite : 0.017274851096533806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29983871 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29983871_06-01-2026_14_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29983871 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_P29983871_06-01-2026_14_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983920, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983931, 'pht': 3726}}" where mtr_portfolio_id = 29983871 and dashboard_run_id = 2860760 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`=29983871 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083912, 0.017274851096533806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29983871_06-01-2026_14_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983920, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983931, '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 = 29984338 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': 4317247, 'mtr_portfolio_id': 29984338, 'created_at': datetime.datetime(2026, 1, 6, 14, 35), 'result': '0.04421720492812946', 'result_long': None, 'result_double': None}] Qualite : 0.04421720492812946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29984338 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29984338_06-01-2026_14_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29984338 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_P29984338_06-01-2026_14_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984353, 'pht': 3726}}" where mtr_portfolio_id = 29984338 and dashboard_run_id = 2860760 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`=29984338 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083913, 0.04421720492812946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29984338_06-01-2026_14_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984353, '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 = 29984604 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': 4317301, 'mtr_portfolio_id': 29984604, 'created_at': datetime.datetime(2026, 1, 6, 14, 48, 56), 'result': '0.04795347821360475', 'result_long': None, 'result_double': None}] Qualite : 0.04795347821360475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29984604 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29984604_06-01-2026_14_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29984604 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_P29984604_06-01-2026_14_48_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984628, 'pht': 3726}}" where mtr_portfolio_id = 29984604 and dashboard_run_id = 2860760 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`=29984604 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083914, 0.04795347821360475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29984604_06-01-2026_14_48_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984628, '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 = 29985208 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': 4317391, 'mtr_portfolio_id': 29985208, 'created_at': datetime.datetime(2026, 1, 6, 15, 3), 'result': '0.06037429492965243', 'result_long': None, 'result_double': None}] Qualite : 0.06037429492965243 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29985208 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29985208_06-01-2026_15_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29985208 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_P29985208_06-01-2026_15_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985234, 'pht': 3726}}" where mtr_portfolio_id = 29985208 and dashboard_run_id = 2860760 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`=29985208 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083915, 0.06037429492965243, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29985208_06-01-2026_15_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985234, '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 = 29985695 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': 4317466, 'mtr_portfolio_id': 29985695, 'created_at': datetime.datetime(2026, 1, 6, 15, 18, 59), 'result': '0.030739318521380846', 'result_long': None, 'result_double': None}] Qualite : 0.030739318521380846 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29985695 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29985695_06-01-2026_15_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29985695 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_P29985695_06-01-2026_15_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985768, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985774, 'pht': 3726}}" where mtr_portfolio_id = 29985695 and dashboard_run_id = 2860760 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`=29985695 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083916, 0.030739318521380846, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29985695_06-01-2026_15_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985768, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985774, '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 = 29986175 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': 4317511, 'mtr_portfolio_id': 29986175, 'created_at': datetime.datetime(2026, 1, 6, 15, 32, 58), 'result': '0.02568770202023262', 'result_long': None, 'result_double': None}] Qualite : 0.02568770202023262 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29986175 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986175_06-01-2026_15_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29986175 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_P29986175_06-01-2026_15_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29986180, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986191, 'pht': 3726}}" where mtr_portfolio_id = 29986175 and dashboard_run_id = 2860760 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`=29986175 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083917, 0.02568770202023262, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986175_06-01-2026_15_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29986180, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986191, '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 = 29986341 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': 4317539, 'mtr_portfolio_id': 29986341, 'created_at': datetime.datetime(2026, 1, 6, 15, 49, 1), 'result': '0.026397140536285345', 'result_long': None, 'result_double': None}] Qualite : 0.026397140536285345 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29986341 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986341_06-01-2026_15_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29986341 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_P29986341_06-01-2026_15_49_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986363, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986370, 'pht': 3726}}" where mtr_portfolio_id = 29986341 and dashboard_run_id = 2860760 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`=29986341 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083918, 0.026397140536285345, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986341_06-01-2026_15_49_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986363, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986370, '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 = 29986616 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': 4317584, 'mtr_portfolio_id': 29986616, 'created_at': datetime.datetime(2026, 1, 6, 16, 2, 58), 'result': '0.04873517687602566', 'result_long': None, 'result_double': None}] Qualite : 0.04873517687602566 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29986616 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986616_06-01-2026_16_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29986616 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_P29986616_06-01-2026_16_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986628, 'pht': 3726}}" where mtr_portfolio_id = 29986616 and dashboard_run_id = 2860760 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`=29986616 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083919, 0.04873517687602566, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986616_06-01-2026_16_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986628, '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 = 29986912 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': 4317626, 'mtr_portfolio_id': 29986912, 'created_at': datetime.datetime(2026, 1, 6, 16, 20, 58), 'result': '0.03471252440187812', 'result_long': None, 'result_double': None}] Qualite : 0.03471252440187812 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29986912 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986912_06-01-2026_16_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29986912 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_P29986912_06-01-2026_16_20_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986918, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986927, 'pht': 3726}}" where mtr_portfolio_id = 29986912 and dashboard_run_id = 2860760 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`=29986912 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083920, 0.03471252440187812, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986912_06-01-2026_16_20_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986918, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986927, '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 = 29987128 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': 4317656, 'mtr_portfolio_id': 29987128, 'created_at': datetime.datetime(2026, 1, 6, 16, 38, 58), 'result': '0.029989250279964', 'result_long': None, 'result_double': None}] Qualite : 0.029989250279964 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29987128 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29987128_06-01-2026_16_38_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29987128 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_P29987128_06-01-2026_16_38_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29987133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29987134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29987135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29987136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29987137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29987138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29987139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29987140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29987141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29987142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29987143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29987144, 'pht': 3726}}" where mtr_portfolio_id = 29987128 and dashboard_run_id = 2860760 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`=29987128 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083921, 0.029989250279964, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29987128_06-01-2026_16_38_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29987133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29987134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29987135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29987136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29987137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29987138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29987139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29987140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29987141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29987142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29987143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29987144, '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 = 29988197 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': 4317808, 'mtr_portfolio_id': 29988197, 'created_at': datetime.datetime(2026, 1, 6, 18, 13), 'result': '0.2352042110746693', 'result_long': None, 'result_double': None}] Qualite : 0.2352042110746693 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29988197 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29988197_06-01-2026_18_13_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29988197 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_P29988197_06-01-2026_18_13_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29988204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988213, 'pht': 3726}}" where mtr_portfolio_id = 29988197 and dashboard_run_id = 2860760 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`=29988197 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083922, 0.2352042110746693, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29988197_06-01-2026_18_13_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29988204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988213, '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 = 29988950 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': 4317940, 'mtr_portfolio_id': 29988950, 'created_at': datetime.datetime(2026, 1, 6, 18, 32, 58), 'result': '0.11963051026203138', 'result_long': None, 'result_double': None}] Qualite : 0.11963051026203138 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29988950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29988950_06-01-2026_18_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29988950 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_P29988950_06-01-2026_18_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29988952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988958, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988963, 'pht': 3726}}" where mtr_portfolio_id = 29988950 and dashboard_run_id = 2860760 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`=29988950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083923, 0.11963051026203138, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29988950_06-01-2026_18_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29988952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988958, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988963, '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 = 29989109 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': 4317977, 'mtr_portfolio_id': 29989109, 'created_at': datetime.datetime(2026, 1, 6, 18, 47, 1), 'result': '0.02513504881480487', 'result_long': None, 'result_double': None}] Qualite : 0.02513504881480487 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29989109 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29989109_06-01-2026_18_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29989109 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_P29989109_06-01-2026_18_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29989115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989121, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989122, 'pht': 3726}}" where mtr_portfolio_id = 29989109 and dashboard_run_id = 2860760 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`=29989109 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083924, 0.02513504881480487, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29989109_06-01-2026_18_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29989115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989121, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989122, '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 = 29989579 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': 4318051, 'mtr_portfolio_id': 29989579, 'created_at': datetime.datetime(2026, 1, 6, 19, 18, 31), 'result': '0.025601462006281817', 'result_long': None, 'result_double': None}] Qualite : 0.025601462006281817 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29989579 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29989579_06-01-2026_19_18_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29989579 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_P29989579_06-01-2026_19_18_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29989584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989595, 'pht': 3726}}" where mtr_portfolio_id = 29989579 and dashboard_run_id = 2860760 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`=29989579 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083925, 0.025601462006281817, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29989579_06-01-2026_19_18_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29989584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989595, '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 = 29990042 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': 4318092, 'mtr_portfolio_id': 29990042, 'created_at': datetime.datetime(2026, 1, 6, 19, 34, 30), 'result': '0.05281345252904674', 'result_long': None, 'result_double': None}] Qualite : 0.05281345252904674 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29990042 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990042_06-01-2026_19_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29990042 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_P29990042_06-01-2026_19_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990046, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990056, 'pht': 3726}}" where mtr_portfolio_id = 29990042 and dashboard_run_id = 2860760 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`=29990042 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083926, 0.05281345252904674, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990042_06-01-2026_19_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990046, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990056, '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 = 29990281 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': 4318126, 'mtr_portfolio_id': 29990281, 'created_at': datetime.datetime(2026, 1, 6, 19, 46, 59), 'result': '0.031446307287372216', 'result_long': None, 'result_double': None}] Qualite : 0.031446307287372216 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29990281 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990281_06-01-2026_19_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29990281 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_P29990281_06-01-2026_19_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990296, 'pht': 3726}}" where mtr_portfolio_id = 29990281 and dashboard_run_id = 2860760 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`=29990281 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083927, 0.031446307287372216, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990281_06-01-2026_19_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990296, '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 = 29990561 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': 4318162, 'mtr_portfolio_id': 29990561, 'created_at': datetime.datetime(2026, 1, 6, 20, 5), 'result': '0.11225773860733029', 'result_long': None, 'result_double': None}] Qualite : 0.11225773860733029 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29990561 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990561_06-01-2026_20_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29990561 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_P29990561_06-01-2026_20_05_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990576, 'pht': 3726}}" where mtr_portfolio_id = 29990561 and dashboard_run_id = 2860760 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`=29990561 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083928, 0.11225773860733029, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990561_06-01-2026_20_05_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990576, '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 = 29990904 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': 4318212, 'mtr_portfolio_id': 29990904, 'created_at': datetime.datetime(2026, 1, 6, 20, 17), 'result': '0.15519283692203367', 'result_long': None, 'result_double': None}] Qualite : 0.15519283692203367 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29990904 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990904_06-01-2026_20_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29990904 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_P29990904_06-01-2026_20_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29990906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990917, 'pht': 3726}}" where mtr_portfolio_id = 29990904 and dashboard_run_id = 2860760 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`=29990904 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083929, 0.15519283692203367, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990904_06-01-2026_20_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29990906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990917, '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 = 29992020 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': 4318367, 'mtr_portfolio_id': 29992020, 'created_at': datetime.datetime(2026, 1, 6, 21, 21, 13), 'result': '0.07044894118906095', 'result_long': None, 'result_double': None}] Qualite : 0.07044894118906095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29992020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992020_06-01-2026_21_21_13.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29992020 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_P29992020_06-01-2026_21_21_13.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992025, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992035, 'pht': 3726}}" where mtr_portfolio_id = 29992020 and dashboard_run_id = 2860760 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`=29992020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083930, 0.07044894118906095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992020_06-01-2026_21_21_13.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992025, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992035, '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 = 29992183 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': 4318380, 'mtr_portfolio_id': 29992183, 'created_at': datetime.datetime(2026, 1, 6, 21, 35), 'result': '0.07215581131758142', 'result_long': None, 'result_double': None}] Qualite : 0.07215581131758142 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29992183 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992183_06-01-2026_21_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29992183 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_P29992183_06-01-2026_21_35_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992196, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992198, 'pht': 3726}}" where mtr_portfolio_id = 29992183 and dashboard_run_id = 2860760 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`=29992183 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083931, 0.07215581131758142, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992183_06-01-2026_21_35_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992196, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992198, '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 = 29992563 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': 4318420, 'mtr_portfolio_id': 29992563, 'created_at': datetime.datetime(2026, 1, 6, 21, 49), 'result': '0.040228862385956514', 'result_long': None, 'result_double': None}] Qualite : 0.040228862385956514 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29992563 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992563_06-01-2026_21_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29992563 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_P29992563_06-01-2026_21_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29992581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992585, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992592, 'pht': 3726}}" where mtr_portfolio_id = 29992563 and dashboard_run_id = 2860760 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`=29992563 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083932, 0.040228862385956514, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992563_06-01-2026_21_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29992581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992585, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992592, '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 = 29993031 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': 4318477, 'mtr_portfolio_id': 29993031, 'created_at': datetime.datetime(2026, 1, 6, 22, 2, 59), 'result': '0.05395314798042522', 'result_long': None, 'result_double': None}] Qualite : 0.05395314798042522 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29993031 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29993031_06-01-2026_22_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29993031 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_P29993031_06-01-2026_22_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29993043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993051, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993054, 'pht': 3726}}" where mtr_portfolio_id = 29993031 and dashboard_run_id = 2860760 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`=29993031 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083933, 0.05395314798042522, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29993031_06-01-2026_22_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29993043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993051, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993054, '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 = 29993483 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': 4318586, 'mtr_portfolio_id': 29993483, 'created_at': datetime.datetime(2026, 1, 6, 22, 16, 59), 'result': '0.04906287081713248', 'result_long': None, 'result_double': None}] Qualite : 0.04906287081713248 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29993483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29993483_06-01-2026_22_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29993483 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_P29993483_06-01-2026_22_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29993512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993515, 'pht': 3726}}" where mtr_portfolio_id = 29993483 and dashboard_run_id = 2860760 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`=29993483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083934, 0.04906287081713248, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29993483_06-01-2026_22_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29993512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993515, '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 = 29994356 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': 4318668, 'mtr_portfolio_id': 29994356, 'created_at': datetime.datetime(2026, 1, 6, 22, 32, 59), 'result': '0.06192785817322462', 'result_long': None, 'result_double': None}] Qualite : 0.06192785817322462 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29994356 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29994356_06-01-2026_22_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29994356 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_P29994356_06-01-2026_22_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29994405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29994406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29994407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29994408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29994409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29994410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29994411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29994412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29994413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29994414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29994415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29994416, 'pht': 3726}}" where mtr_portfolio_id = 29994356 and dashboard_run_id = 2860760 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`=29994356 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083935, 0.06192785817322462, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29994356_06-01-2026_22_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29994405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29994406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29994407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29994408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29994409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29994410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29994411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29994412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29994413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29994414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29994415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29994416, '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 = 29995259 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': 4318750, 'mtr_portfolio_id': 29995259, 'created_at': datetime.datetime(2026, 1, 6, 22, 47), 'result': '0.04972142154858078', 'result_long': None, 'result_double': None}] Qualite : 0.04972142154858078 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29995259 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29995259_06-01-2026_22_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29995259 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_P29995259_06-01-2026_22_47_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29995277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29995278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29995279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29995281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29995282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29995283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29995284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29995285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29995286, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29995287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29995289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29995290, 'pht': 3726}}" where mtr_portfolio_id = 29995259 and dashboard_run_id = 2860760 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`=29995259 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083936, 0.04972142154858078, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29995259_06-01-2026_22_47_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29995277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29995278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29995279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29995281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29995282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29995283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29995284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29995285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29995286, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29995287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29995289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29995290, '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 = 29996022 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': 4318844, 'mtr_portfolio_id': 29996022, 'created_at': datetime.datetime(2026, 1, 6, 23, 2, 58), 'result': '0.0635783938331082', 'result_long': None, 'result_double': None}] Qualite : 0.0635783938331082 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29996022 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29996022_06-01-2026_23_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29996022 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_P29996022_06-01-2026_23_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29996060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29996061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29996062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29996064, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29996065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29996066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29996067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29996068, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29996069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29996070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29996071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29996072, 'pht': 3726}}" where mtr_portfolio_id = 29996022 and dashboard_run_id = 2860762 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`=29996022 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083937, 0.0635783938331082, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29996022_06-01-2026_23_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29996060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29996061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29996062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29996064, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29996065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29996066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29996067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29996068, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29996069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29996070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29996071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29996072, '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 = 29996868 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': 4318942, 'mtr_portfolio_id': 29996868, 'created_at': datetime.datetime(2026, 1, 6, 23, 18, 56), 'result': '0.06693331572094002', 'result_long': None, 'result_double': None}] Qualite : 0.06693331572094002 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29996868 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29996868_06-01-2026_23_18_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29996868 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_P29996868_06-01-2026_23_18_56.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29996922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29996923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29996924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29996925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29996926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29996927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29996928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29996929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29996930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29996931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29996932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29996933, 'pht': 3726}}" where mtr_portfolio_id = 29996868 and dashboard_run_id = 2860762 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`=29996868 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083938, 0.06693331572094002, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29996868_06-01-2026_23_18_56.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29996922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29996923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29996924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29996925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29996926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29996927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29996928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29996929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29996930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29996931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29996932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29996933, '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 = 29997723 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': 4319012, 'mtr_portfolio_id': 29997723, 'created_at': datetime.datetime(2026, 1, 6, 23, 33), 'result': '0.04932814890496483', 'result_long': None, 'result_double': None}] Qualite : 0.04932814890496483 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29997723 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29997723_06-01-2026_23_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29997723 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_P29997723_06-01-2026_23_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29997748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29997749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29997750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29997751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29997752, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29997753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29997754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29997755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29997756, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29997757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29997758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29997759, 'pht': 3726}}" where mtr_portfolio_id = 29997723 and dashboard_run_id = 2860762 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`=29997723 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083939, 0.04932814890496483, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29997723_06-01-2026_23_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29997748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29997749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29997750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29997751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29997752, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29997753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29997754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29997755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29997756, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29997757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29997758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29997759, '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 = 29998325 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': 4319085, 'mtr_portfolio_id': 29998325, 'created_at': datetime.datetime(2026, 1, 6, 23, 43, 2), 'result': '0.04810811326575189', 'result_long': None, 'result_double': None}] Qualite : 0.04810811326575189 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29998325 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29998325_06-01-2026_23_43_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29998325 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_P29998325_06-01-2026_23_43_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29998357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29998358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29998359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29998360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29998361, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29998362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29998363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29998364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29998365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29998366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29998367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29998368, 'pht': 3726}}" where mtr_portfolio_id = 29998325 and dashboard_run_id = 2860762 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`=29998325 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19083940, 0.04810811326575189, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29998325_06-01-2026_23_43_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29998357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29998358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29998359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29998360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29998361, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29998362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29998363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29998364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29998365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29998366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29998367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29998368, '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 (29983702,29983871,29984338,29984604,29985208,29985695,29986175,29986341,29986616,29986912,29987128,29988197,29988950,29989109,29989579,29990042,29990281,29990561,29990904,29992020,29992183,29992563,29993031,29993483,29994356,29995259,29996022,29996868,29997723,29998325) result : ((1402653951,), (1402653953,), (1402653968,), (1402654176,), (1402654177,), (1402654178,), (1402654197,), (1402654199,), (1402654200,), (1402654202,), (1402654205,), (1402654216,), (1402654217,), (1402654260,), (1402654261,), (1402654262,), (1402654925,), (1402654958,), (1402654993,), (1402655027,), (1402655247,), (1402655248,), (1402655287,), (1402655288,), (1402655333,), (1402655340,), (1402655752,), (1402656264,), (1402655652,), (1402655715,), (1402656130,), (1402656154,), (1402656188,), (1402656225,), (1402656257,), (1402656355,), (1402657555,), (1402657557,), (1402658485,), (1402658620,), (1402658691,), (1402658746,), (1402658742,), (1402658744,), (1402658766,), (1402658768,), (1402658788,), (1402658790,), (1402658791,), (1402658808,), (1402658810,), (1402658835,), (1402658836,), (1402658837,), (1402658838,), (1402658841,), (1402658855,), (1402658856,), (1402658883,), (1402658884,), (1402658885,), (1402658887,), (1402658890,), (1402658909,), (1402658912,), (1402658915,), (1402658919,), (1402658924,), (1402658931,), (1402658950,), (1402658951,), (1402658953,), (1402658954,), (1402658969,), (1402658970,), (1402658971,), (1402658972,), (1402658977,), (1402658979,), (1402659005,), (1402659006,), (1402659008,), (1402659009,), (1402659013,), (1402659026,), (1402659027,), (1402659028,), (1402659029,), (1402659057,), (1402659068,), (1402659070,), (1402659071,), (1402659073,), (1402659095,), (1402659141,), (1402659091,), (1402659092,), (1402659094,), (1402659116,), (1402659119,), (1402659120,), (1402659124,), (1402659126,), (1402659129,), (1402659138,), (1402659139,), (1402659142,), (1402659143,), (1402659144,), (1402659148,), (1402659151,), (1402659202,), (1402659203,), (1402659204,), (1402659206,), (1402659219,), (1402659220,), (1402659222,), (1402659224,), (1402659228,), (1402659230,), (1402659249,), (1402659253,), (1402659254,), (1402659256,), (1402659277,), (1402659278,), (1402659279,), (1402659285,), (1402659291,), (1402659308,), (1402659402,), (1402659403,), (1402659404,), (1402659408,), (1402659413,), (1402659422,), (1402659459,), (1402659460,), (1402659461,), (1402659505,), (1402659506,), (1402659507,), (1402659509,), (1402659512,), (1402659515,), (1402659525,), (1402659526,), (1402659528,), (1402659530,), (1402659556,), (1402659557,), (1402659558,), (1402659561,), (1402659564,), (1402659565,), (1402659572,), (1402659574,), (1402659575,), (1402659576,), (1402659577,), (1402659677,), (1402659700,), (1402659781,), (1402659784,), (1402659921,), (1402660263,), (1402660284,), (1402660314,), (1402660552,), (1402660553,), (1402660577,), (1402660578,), (1402660580,), (1402660584,), (1402660729,), (1402660782,), (1402660785,), (1402660788,), (1402661137,), (1402661073,), (1402661105,), (1402661853,), (1402662604,), (1402662642,), (1402662777,), (1402662837,), (1402662889,), (1402662910,), (1402662984,), (1402663040,), (1402663042,), (1402663056,), (1402663069,), (1402663090,), (1402663091,), (1402663103,), (1402663118,), (1402663120,), (1402663158,), (1402663198,), (1402663230,), (1402663250,), (1402663276,), (1402663277,), (1402663312,), (1402663314,), (1402663329,), (1402663379,), (1402663457,), (1402663586,), (1402663621,), (1402663641,), (1402663682,), (1402663761,), (1402663759,), (1402663925,), (1402663933,), (1402664100,), (1402664202,), (1402664324,), (1402664328,), (1402664347,), (1402664381,), (1402664547,), (1402664596,), (1402664604,), (1402664605,), (1402664618,), (1402664619,), (1402665095,), (1402665551,), (1402665397,), (1402665694,), (1402666145,), (1402666164,), (1402666183,), (1402666184,), (1402666268,), (1402666278,), (1402666348,), (1402666350,), (1402666368,), (1402666604,), (1402671093,), (1402671095,), (1402671097,), (1402671254,), (1402671278,), (1402671626,), (1402671627,), (1402671795,), (1402673627,), (1402673736,), (1402673893,), (1402673930,), (1402673952,), (1402673978,), (1402673980,), (1402673992,), (1402674005,), (1402674020,), (1402674113,), (1402674114,), (1402674126,), (1402674160,), (1402674235,), (1402674236,), (1402674737,), (1402674910,), (1402677429,), (1402677764,), (1402679554,), (1402679589,), (1402679870,), (1402679892,), (1402679901,), (1402679934,), (1402680157,), (1402680437,), (1402680676,), (1402680689,), (1402680690,), (1402680770,), (1402680784,), (1402680797,), (1402680892,), (1402680894,), (1402680953,), (1402681012,), (1402681058,), (1402681070,), (1402681071,), (1402681082,), (1402681148,), (1402681242,), (1402681243,), (1402681411,), (1402681430,), (1402681605,), (1402681805,), (1402681806,), (1402681864,), (1402681866,), (1402681868,), (1402681877,), (1402682360,), (1402683739,), (1402683783,), (1402683821,), (1402683823,), (1402683837,), (1402683862,), (1402683932,), (1402683975,), (1402684206,), (1402684207,), (1402684480,), (1402686027,), (1402689280,), (1402689282,), (1402689284,), (1402689286,), (1402689322,), (1402689323,), (1402689975,), (1402689988,), (1402689989,), (1402690405,), (1402690435,), (1402690441,), (1402690450,), (1402690486,), (1402690487,), (1402690501,), (1402690502,), (1402690503,), (1402690504,), (1402690507,), (1402690534,), (1402690536,), (1402690538,), (1402690550,), (1402690552,), (1402690554,), (1402690556,), (1402690559,), (1402690574,), (1402690575,), (1402690577,), (1402690578,), (1402690582,), (1402690594,), (1402690596,), (1402690616,), (1402690617,), (1402690635,), (1402690637,), (1402690639,), (1402690643,), (1402690647,), (1402690651,), (1402690674,), (1402690677,), (1402690679,), (1402690696,), (1402690722,), (1402690694,), (1402690695,), (1402690718,), (1402690719,), (1402690720,), (1402690797,), (1402690798,), (1402690812,), (1402690814,), (1402690835,), (1402690837,), (1402690839,), (1402690841,), (1402690844,), (1402690861,), (1402690863,), (1402690865,), (1402690866,), (1402690868,), (1402690891,), (1402690896,), (1402690908,), (1402690910,), (1402690912,), (1402690913,), (1402690915,), (1402690917,), (1402690938,), (1402690940,), (1402690941,), (1402690943,), (1402690946,), (1402690961,), (1402690989,), (1402691060,), (1402691061,), (1402691062,), (1402691533,), (1402691501,), (1402691526,), (1402691528,), (1402691529,), (1402691531,), (1402691542,), (1402691544,), (1402691546,), (1402691569,), (1402691575,), (1402691580,), (1402691594,), (1402691596,), (1402691599,), (1402691602,), (1402691606,), (1402691608,), (1402691618,), (1402691620,), (1402691622,), (1402691625,), (1402691628,), (1402691655,), (1402691686,), (1402691718,), (1402691750,), (1402691993,), (1402691994,), (1402691995,), (1402691998,), (1402692001,), (1402692003,), (1402692012,), (1402692013,), (1402692015,), (1402692017,), (1402692051,), (1402692052,), (1402692053,), (1402692055,), (1402692059,), (1402692083,), (1402692085,), (1402692087,), (1402692115,), (1402692116,), (1402692118,), (1402692131,), (1402692212,), (1402692213,), (1402692215,), (1402692218,), (1402692222,), (1402692246,), (1402692248,), (1402692250,), (1402692253,), (1402692412,), (1402692446,), (1402692479,), (1402692513,), (1402692652,), (1402692685,), (1402692720,), (1402692754,), (1402693010,), (1402692919,), (1402692954,), (1402693625,), (1402693663,), (1402693695,), (1402693726,), (1402694627,), (1402694672,), (1402694754,), (1402694802,), (1402695071,), (1402695073,), (1402695075,), (1402695078,), (1402695390,), (1402695424,), (1402695459,), (1402696002,), (1402696034,), (1402696069,), (1402696103,), (1402696138,), (1402696173,), (1402696379,), (1402696380,), (1402696381,), (1402696384,), (1402696614,), (1402696615,), (1402696633,), (1402696744,), (1402697300,), (1402697306,), (1402697332,), (1402697400,), (1402697434,), (1402697467,), (1402697497,), (1402697531,), (1402697877,), (1402697909,), (1402697941,), (1402697980,), (1402698214,), (1402698254,), (1402698392,), (1402698535,), (1402698674,), (1402698718,), (1402699001,), (1402699037,), (1402699056,), (1402699072,), (1402699104,), (1402699136,), (1402699280,), (1402699281,), (1402699283,), (1402699287,), (1402699290,), (1402699293,), (1402699311,), (1402699312,), (1402699313,), (1402699314,), (1402699317,), (1402699396,), (1402699365,), (1402699902,), (1402699935,), (1402699968,), (1402699995,), (1402700174,), (1402700186,), (1402700203,), (1402700210,), (1402700244,), (1402700362,), (1402700832,), (1402700910,), (1402700965,), (1402700967,), (1402700970,), (1402701041,), (1402701042,), (1402701057,), (1402701058,), (1402701059,), (1402701063,), (1402701082,), (1402701083,), (1402701084,), (1402701085,), (1402701088,), (1402701091,), (1402701098,), (1402701099,), (1402701100,), (1402701101,), (1402701117,), (1402701164,), (1402701253,), (1402701343,), (1402701449,), (1402702001,), (1402702034,), (1402702107,), (1402702145,), (1402702182,), (1402702362,), (1402702396,), (1402702457,), (1402702598,), (1402702600,), (1402702603,), (1402702608,), (1402702612,), (1402703110,), (1402703217,), (1402703249,), (1402703285,), (1402703318,), (1402703356,), (1402703652,), (1402703653,), (1402703667,), (1402703779,), (1402703781,), (1402703798,), (1402703828,), (1402704239,), (1402704214,), (1402704233,), (1402704234,), (1402704235,), (1402704440,), (1402704454,), (1402704461,), (1402704493,), (1402704509,), (1402704510,), (1402704512,), (1402704513,), (1402704516,), (1402704517,), (1402704542,), (1402704543,), (1402704571,), (1402704572,), (1402704574,), (1402704575,), (1402705413,), (1402705414,), (1402705416,), (1402705418,), (1402705422,), (1402706007,), (1402706044,), (1402706114,), (1402706137,), (1402706632,), (1402706686,), (1402706717,), (1402706866,), (1402706878,), (1402706882,), (1402706886,), (1402706906,), (1402706923,), (1402706924,), (1402706925,), (1402706927,), (1402706931,), (1402706940,), (1402706941,), (1402707089,), (1402707126,), (1402707160,), (1402707196,), (1402707230,), (1402707372,), (1402707389,), (1402707419,), (1402707428,), (1402707473,), (1402707474,), (1402707475,), (1402707477,), (1402707481,), (1402707607,), (1402707644,), (1402707675,), (1402707706,), (1402707756,), (1402708762,), (1402708754,), (1402708761,), (1402709041,), (1402709050,), (1402709059,), (1402709061,), (1402709065,), (1402709174,), (1402709270,), (1402709365,), (1402709464,), (1402709547,), (1402709764,), (1402709790,), (1402709792,), (1402709796,), (1402709821,), (1402709822,), (1402709823,), (1402709856,), (1402709857,), (1402709858,), (1402709860,), (1402709877,), (1402709878,), (1402709901,), (1402709902,), (1402709903,), (1402709970,), (1402709999,), (1402710060,), (1402710063,), (1402710066,), (1402710892,), (1402710895,), (1402710900,), (1402710903,), (1402710963,), (1402711012,), (1402711154,), (1402711157,), (1402711159,), (1402711162,), (1402711166,), (1402711169,), (1402711182,), (1402711184,), (1402711186,), (1402712322,), (1402712327,), (1402712332,), (1402712335,), (1402712530,), (1402712564,), (1402712597,), (1402712697,), (1402712733,), (1402713045,), (1402712841,), (1402712875,), (1402712921,), (1402712979,), (1402713400,), (1402713435,), (1402713466,), (1402713751,), (1402713753,), (1402713756,), (1402713759,), (1402713762,), (1402713791,), (1402714040,), (1402714085,), (1402714120,), (1402714181,), (1402714228,), (1402714579,), (1402714611,), (1402714646,), (1402714683,), (1402715130,), (1402715242,), (1402715914,), (1402715916,), (1402715918,), (1402715921,), (1402715969,), (1402716011,), (1402716073,), (1402716075,), (1402716077,), (1402716099,), (1402716132,), (1402716165,), (1402716701,), (1402716788,), (1402716791,), (1402716793,), (1402717200,), (1402717630,), (1402717632,), (1402717766,), (1402717802,), (1402717834,), (1402717866,), (1402718194,), (1402718232,), (1402718248,), (1402718251,), (1402718572,), (1402718673,), (1402718758,), (1402719557,), (1402720130,), (1402719342,), (1402719386,), (1402719440,), (1402719521,), (1402719876,), (1402719878,), (1402719914,), (1402719949,), (1402719983,), (1402720009,), (1402720028,), (1402720058,), (1402720089,), (1402720119,), (1402720156,), (1402720157,), (1402720210,), (1402720295,), (1402720387,), (1402720709,), (1402720732,), (1402720734,), (1402720736,), (1402720766,), (1402720800,), (1402721125,), (1402721160,), (1402721198,), (1402721233,), (1402721542,), (1402721544,), (1402721550,), (1402722162,), (1402722172,), (1402722189,), (1402722356,), (1402722359,), (1402722361,), (1402722362,), (1402722366,), (1402722387,), (1402722388,), (1402722390,), (1402722391,), (1402722395,), (1402722416,), (1402722417,), (1402722418,), (1402722420,), (1402722446,), (1402722447,), (1402722448,), (1402722450,), (1402722461,), (1402722462,), (1402722464,), (1402722467,), (1402722499,), (1402722500,), (1402722501,), (1402722503,), (1402722506,), (1402722518,), (1402722519,), (1402722520,), (1402722555,), (1402722563,), (1402722572,), (1402722573,), (1402722575,), (1402722577,), (1402722614,), (1402722603,), (1402722604,), (1402722605,), (1402722607,), (1402722611,), (1402722639,), (1402722640,), (1402722642,), (1402722644,), (1402722647,), (1402722671,), (1402722736,), (1402722783,), (1402722787,), (1402722788,), (1402722817,), (1402722828,), (1402722832,), (1402722833,), (1402722836,), (1402722879,), (1402722922,), (1402722923,), (1402722924,), (1402722925,), (1402722985,), (1402722987,), (1402722988,), (1402723001,), (1402723002,), (1402723003,), (1402723004,), (1402723007,), (1402723025,), (1402723026,), (1402723027,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'06012026': {'nb_upload': 36, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29998325]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1402723027, 1402723026, 1402723025, 1402723007, 1402723004, 1402723003, 1402723002, 1402723001] map_info['map_portfolio_photo'] : {29998325: [1402723027, 1402723026, 1402723025, 1402723007, 1402723004, 1402723003, 1402723002, 1402723001, 1402722988, 1402722987, 1402722985, 1402722925, 1402722924, 1402722923, 1402722922, 1402722879, 1402722836, 1402722833, 1402722832, 1402722828, 1402722817, 1402722788, 1402722787, 1402722783, 1402722736, 1402722671, 1402722647, 1402722644, 1402722642, 1402722640, 1402722639, 1402722611, 1402722607, 1402722605, 1402722604, 1402722603]} final : True mtd_id 4302 list_pids : [1402723027, 1402723026, 1402723025, 1402723007, 1402723004, 1402723003, 1402723002, 1402723001] Looping around the photos to save general results len do output : 1 /29998325Didn'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, '4319085') ('4302', '29998325', '1402723027', None, None, None, None, None, '4319085') ('4302', None, None, None, None, None, None, None, '4319085') ('4302', '29998325', '1402723026', None, None, None, None, None, '4319085') ('4302', None, None, None, None, None, None, None, '4319085') ('4302', '29998325', '1402723025', None, None, None, None, None, '4319085') ('4302', None, None, None, None, None, None, None, '4319085') ('4302', '29998325', '1402723007', None, None, None, None, None, '4319085') ('4302', None, None, None, None, None, None, None, '4319085') ('4302', '29998325', '1402723004', None, None, None, None, None, '4319085') ('4302', None, None, None, None, None, None, None, '4319085') ('4302', '29998325', '1402723003', None, None, None, None, None, '4319085') ('4302', None, None, None, None, None, None, None, '4319085') ('4302', '29998325', '1402723002', None, None, None, None, None, '4319085') ('4302', None, None, None, None, None, None, None, '4319085') ('4302', '29998325', '1402723001', None, None, None, None, None, '4319085') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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, '29998325', 'None', None, None, None, None, '4319085'), ('4302', '29998325', '1402723027', None, None, None, None, None, '4319085'), ('4302', '29998325', '1402723026', None, None, None, None, None, '4319085'), ('4302', '29998325', '1402723025', None, None, None, None, None, '4319085'), ('4302', '29998325', '1402723007', None, None, None, None, None, '4319085'), ('4302', '29998325', '1402723004', None, None, None, None, None, '4319085'), ('4302', '29998325', '1402723003', None, None, None, None, None, '4319085'), ('4302', '29998325', '1402723002', None, None, None, None, None, '4319085'), ('4302', '29998325', '1402723001', None, None, None, None, None, '4319085')] time used for this insertion : 0.017448902130126953 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.385267972946167 time spend to save output : 0.01763439178466797 total time spend for step 5 : 2.402902364730835 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 (4319085) 2.03user 2.57system 0:12.87elapsed 35%CPU (0avgtext+0avgdata 166704maxresident)k 200inputs+11104outputs (1major+67343minor)pagefaults 0swaps