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 : 1682623 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 (4303142) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4303142) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29890504 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4303142'] with mtr_portfolio_ids : ['29890504'] and first list_photo_ids : [] new path : /proc/1682623/ Name: python3 Umask: 0002 State: R (running) Tgid: 1682623 Ngid: 0 Pid: 1682623 PPid: 1682622 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1682623 NSpid: 1682623 NSpgid: 1681378 NSsid: 1681378 VmPeak: 1113496 kB VmSize: 1113496 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104612 kB VmRSS: 104612 kB RssAnon: 66288 kB RssFile: 38324 kB RssShmem: 0 kB VmData: 872224 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 616 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: 48 nonvoluntary_ctxt_switches: 93 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1682623', 'Ngid': '0', 'Pid': '1682623', 'PPid': '1682622', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1682623', 'NSpid': '1682623', 'NSpgid': '1681378', 'NSsid': '1681378', 'VmPeak': '1113496 kB', 'VmSize': '1113496 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104612 kB', 'VmRSS': '104612 kB', 'RssAnon': '66288 kB', 'RssFile': '38324 kB', 'RssShmem': '0 kB', 'VmData': '872224 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '616 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': '48', 'nonvoluntary_ctxt_switches': '93'} ('datou_batch_current', '1682623', '1113496', '0', '1113496', '872224', '104612', b'', 'marlene', '4303142') 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 (29890504) 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 (4303142 ) ) 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 (29890504) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1402153653, 'portfolio_id': 29890504}, {'photo_id': 1402153652, 'portfolio_id': 29890504}, {'photo_id': 1402153651, 'portfolio_id': 29890504}, {'photo_id': 1402153649, 'portfolio_id': 29890504}, {'photo_id': 1402153641, 'portfolio_id': 29890504}, {'photo_id': 1402153637, 'portfolio_id': 29890504}, {'photo_id': 1402153633, 'portfolio_id': 29890504}, {'photo_id': 1402153630, 'portfolio_id': 29890504}, {'photo_id': 1402153628, 'portfolio_id': 29890504}, {'photo_id': 1402153596, 'portfolio_id': 29890504}, {'photo_id': 1402153592, 'portfolio_id': 29890504}, {'photo_id': 1402153588, 'portfolio_id': 29890504}, {'photo_id': 1402153586, 'portfolio_id': 29890504}, {'photo_id': 1402153584, 'portfolio_id': 29890504}, {'photo_id': 1402153427, 'portfolio_id': 29890504}, {'photo_id': 1402153425, 'portfolio_id': 29890504}, {'photo_id': 1402153423, 'portfolio_id': 29890504}, {'photo_id': 1402153421, 'portfolio_id': 29890504}, {'photo_id': 1402153323, 'portfolio_id': 29890504}, {'photo_id': 1402153285, 'portfolio_id': 29890504}, {'photo_id': 1402153284, 'portfolio_id': 29890504}, {'photo_id': 1402153283, 'portfolio_id': 29890504}, {'photo_id': 1402153234, 'portfolio_id': 29890504}, {'photo_id': 1402153232, 'portfolio_id': 29890504}, {'photo_id': 1402153231, 'portfolio_id': 29890504}, {'photo_id': 1402153230, 'portfolio_id': 29890504}, {'photo_id': 1402153228, 'portfolio_id': 29890504}, {'photo_id': 1402153063, 'portfolio_id': 29890504}, {'photo_id': 1402153060, 'portfolio_id': 29890504}, {'photo_id': 1402153057, 'portfolio_id': 29890504}, {'photo_id': 1402153055, 'portfolio_id': 29890504}] map_portfolio_id_photo_id: {29890504: [1402153653, 1402153652, 1402153651, 1402153649, 1402153641, 1402153637, 1402153633, 1402153630, 1402153628, 1402153596, 1402153592, 1402153588, 1402153586, 1402153584, 1402153427, 1402153425, 1402153423, 1402153421, 1402153323, 1402153285, 1402153284, 1402153283, 1402153234, 1402153232, 1402153231, 1402153230, 1402153228, 1402153063, 1402153060, 1402153057, 1402153055]} ##### 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.0189363956451416 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Jan 2 13:38:57 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 (29890504) 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 : 29890504 get user id for portfolio 29890504 get sub ptf for main ptf 29890504, type 3726 and hashtags ['kraft', 'plastique', 'flou', 'Carton_gris', 'Teint_Dans_La_Masse', 'environnement', 'papier', 'mal_croppe', 'autre_refus', 'Carton_brun', 'metal', 'cartonnette'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29890504 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','plastique','flou','Carton_gris','Teint_Dans_La_Masse','environnement','papier','mal_croppe','autre_refus','Carton_brun','metal','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29890504 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','plastique','flou','Carton_gris','Teint_Dans_La_Masse','environnement','papier','mal_croppe','autre_refus','Carton_brun','metal','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 29890504, 'sub_port_id': 29890516, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20448325, 'last_updated_at': datetime.datetime(2026, 1, 2, 13, 36, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 13, 36, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 13, 32, 57)}, 'cartonnette': {'main_port_id': 29890504, 'sub_port_id': 29890517, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20448326, 'last_updated_at': datetime.datetime(2026, 1, 2, 13, 36, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 13, 36, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 13, 32, 57)}, 'Carton_brun': {'main_port_id': 29890504, 'sub_port_id': 29890518, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20448327, 'last_updated_at': datetime.datetime(2026, 1, 2, 13, 36, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 13, 36, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 13, 32, 57)}, 'metal': {'main_port_id': 29890504, 'sub_port_id': 29890519, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20448328, 'last_updated_at': datetime.datetime(2026, 1, 2, 13, 36, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 13, 36, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 13, 32, 57)}, 'kraft': {'main_port_id': 29890504, 'sub_port_id': 29890520, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20448329, 'last_updated_at': datetime.datetime(2026, 1, 2, 13, 36, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 13, 36, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 13, 32, 57)}, 'autre_refus': {'main_port_id': 29890504, 'sub_port_id': 29890521, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20448330, 'last_updated_at': datetime.datetime(2026, 1, 2, 13, 36, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 13, 36, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 13, 32, 57)}, 'environnement': {'main_port_id': 29890504, 'sub_port_id': 29890522, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20448331, 'last_updated_at': datetime.datetime(2026, 1, 2, 13, 36, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 13, 36, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 13, 32, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 29890504, 'sub_port_id': 29890523, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20448332, 'last_updated_at': datetime.datetime(2026, 1, 2, 13, 36, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 13, 36, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 13, 32, 57)}, 'plastique': {'main_port_id': 29890504, 'sub_port_id': 29890524, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20448333, 'last_updated_at': datetime.datetime(2026, 1, 2, 13, 36, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 13, 36, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 13, 32, 57)}, 'mal_croppe': {'main_port_id': 29890504, 'sub_port_id': 29890525, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20448334, 'last_updated_at': datetime.datetime(2026, 1, 2, 13, 36, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 13, 36, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 13, 32, 57)}, 'Carton_gris': {'main_port_id': 29890504, 'sub_port_id': 29890526, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20448335, 'last_updated_at': datetime.datetime(2026, 1, 2, 13, 36, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 13, 36, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 13, 32, 57)}, 'papier': {'main_port_id': 29890504, 'sub_port_id': 29890527, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20448336, 'last_updated_at': datetime.datetime(2026, 1, 2, 13, 36, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 13, 36, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 13, 32, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29890516 , 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=29890504 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 (29890516) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29890504) result : ((1402153055,), (1402153057,), (1402153060,), (1402153063,), (1402153228,), (1402153230,), (1402153231,), (1402153232,), (1402153234,), (1402153283,), (1402153284,), (1402153285,), (1402153323,), (1402153421,), (1402153423,), (1402153425,), (1402153427,), (1402153584,), (1402153586,), (1402153588,), (1402153592,), (1402153596,), (1402153628,), (1402153630,), (1402153633,), (1402153637,), (1402153641,), (1402153649,), (1402153651,), (1402153652,), (1402153653,)) 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 29890517 , 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=29890504 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 (29890517) result : ((1402153375,), (1402153377,), (1402153378,), (1402153379,), (1402153380,), (1402153381,), (1402153418,), (1402153616,), (1402153617,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29890504) result : ((1402153055,), (1402153057,), (1402153060,), (1402153063,), (1402153228,), (1402153230,), (1402153231,), (1402153232,), (1402153234,), (1402153283,), (1402153284,), (1402153285,), (1402153323,), (1402153421,), (1402153423,), (1402153425,), (1402153427,), (1402153584,), (1402153586,), (1402153588,), (1402153592,), (1402153596,), (1402153628,), (1402153630,), (1402153633,), (1402153637,), (1402153641,), (1402153649,), (1402153651,), (1402153652,), (1402153653,)) 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 29890518 , 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=29890504 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 (29890518) result : ((1402153419,), (1402153601,), (1402153602,), (1402153618,), (1402153619,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29890504) result : ((1402153055,), (1402153057,), (1402153060,), (1402153063,), (1402153228,), (1402153230,), (1402153231,), (1402153232,), (1402153234,), (1402153283,), (1402153284,), (1402153285,), (1402153323,), (1402153421,), (1402153423,), (1402153425,), (1402153427,), (1402153584,), (1402153586,), (1402153588,), (1402153592,), (1402153596,), (1402153628,), (1402153630,), (1402153633,), (1402153637,), (1402153641,), (1402153649,), (1402153651,), (1402153652,), (1402153653,)) 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 29890519 , 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=29890504 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 (29890519) result : ((1402153625,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29890504) result : ((1402153055,), (1402153057,), (1402153060,), (1402153063,), (1402153228,), (1402153230,), (1402153231,), (1402153232,), (1402153234,), (1402153283,), (1402153284,), (1402153285,), (1402153323,), (1402153421,), (1402153423,), (1402153425,), (1402153427,), (1402153584,), (1402153586,), (1402153588,), (1402153592,), (1402153596,), (1402153628,), (1402153630,), (1402153633,), (1402153637,), (1402153641,), (1402153649,), (1402153651,), (1402153652,), (1402153653,)) 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 29890520 , 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=29890504 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 (29890520) result : ((1402153605,), (1402153623,), (1402153624,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29890504) result : ((1402153055,), (1402153057,), (1402153060,), (1402153063,), (1402153228,), (1402153230,), (1402153231,), (1402153232,), (1402153234,), (1402153283,), (1402153284,), (1402153285,), (1402153323,), (1402153421,), (1402153423,), (1402153425,), (1402153427,), (1402153584,), (1402153586,), (1402153588,), (1402153592,), (1402153596,), (1402153628,), (1402153630,), (1402153633,), (1402153637,), (1402153641,), (1402153649,), (1402153651,), (1402153652,), (1402153653,)) 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 29890521 , 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=29890504 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 (29890521) result : ((1402153362,), (1402153363,), (1402153366,), (1402153415,), (1402153614,), (1402153615,), (1402153660,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29890504) result : ((1402153055,), (1402153057,), (1402153060,), (1402153063,), (1402153228,), (1402153230,), (1402153231,), (1402153232,), (1402153234,), (1402153283,), (1402153284,), (1402153285,), (1402153323,), (1402153421,), (1402153423,), (1402153425,), (1402153427,), (1402153584,), (1402153586,), (1402153588,), (1402153592,), (1402153596,), (1402153628,), (1402153630,), (1402153633,), (1402153637,), (1402153641,), (1402153649,), (1402153651,), (1402153652,), (1402153653,)) 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 29890522 , 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=29890504 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 (29890522) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29890504) result : ((1402153055,), (1402153057,), (1402153060,), (1402153063,), (1402153228,), (1402153230,), (1402153231,), (1402153232,), (1402153234,), (1402153283,), (1402153284,), (1402153285,), (1402153323,), (1402153421,), (1402153423,), (1402153425,), (1402153427,), (1402153584,), (1402153586,), (1402153588,), (1402153592,), (1402153596,), (1402153628,), (1402153630,), (1402153633,), (1402153637,), (1402153641,), (1402153649,), (1402153651,), (1402153652,), (1402153653,)) 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 29890523 , 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=29890504 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 (29890523) result : ((1402153599,), (1402153600,), (1402153612,), (1402153613,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29890504) result : ((1402153055,), (1402153057,), (1402153060,), (1402153063,), (1402153228,), (1402153230,), (1402153231,), (1402153232,), (1402153234,), (1402153283,), (1402153284,), (1402153285,), (1402153323,), (1402153421,), (1402153423,), (1402153425,), (1402153427,), (1402153584,), (1402153586,), (1402153588,), (1402153592,), (1402153596,), (1402153628,), (1402153630,), (1402153633,), (1402153637,), (1402153641,), (1402153649,), (1402153651,), (1402153652,), (1402153653,)) 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 29890524 , 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=29890504 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 (29890524) result : ((1402153384,), (1402153385,), (1402153386,), (1402153621,), (1402153622,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29890504) result : ((1402153055,), (1402153057,), (1402153060,), (1402153063,), (1402153228,), (1402153230,), (1402153231,), (1402153232,), (1402153234,), (1402153283,), (1402153284,), (1402153285,), (1402153323,), (1402153421,), (1402153423,), (1402153425,), (1402153427,), (1402153584,), (1402153586,), (1402153588,), (1402153592,), (1402153596,), (1402153628,), (1402153630,), (1402153633,), (1402153637,), (1402153641,), (1402153649,), (1402153651,), (1402153652,), (1402153653,)) 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 29890525 , 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=29890504 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 (29890525) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29890504) result : ((1402153055,), (1402153057,), (1402153060,), (1402153063,), (1402153228,), (1402153230,), (1402153231,), (1402153232,), (1402153234,), (1402153283,), (1402153284,), (1402153285,), (1402153323,), (1402153421,), (1402153423,), (1402153425,), (1402153427,), (1402153584,), (1402153586,), (1402153588,), (1402153592,), (1402153596,), (1402153628,), (1402153630,), (1402153633,), (1402153637,), (1402153641,), (1402153649,), (1402153651,), (1402153652,), (1402153653,)) 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 29890526 , 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=29890504 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 (29890526) result : ((1402153370,), (1402153371,), (1402153416,), (1402153417,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29890504) result : ((1402153055,), (1402153057,), (1402153060,), (1402153063,), (1402153228,), (1402153230,), (1402153231,), (1402153232,), (1402153234,), (1402153283,), (1402153284,), (1402153285,), (1402153323,), (1402153421,), (1402153423,), (1402153425,), (1402153427,), (1402153584,), (1402153586,), (1402153588,), (1402153592,), (1402153596,), (1402153628,), (1402153630,), (1402153633,), (1402153637,), (1402153641,), (1402153649,), (1402153651,), (1402153652,), (1402153653,)) 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 29890527 , 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=29890504 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 (29890527) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29890504) result : ((1402153055,), (1402153057,), (1402153060,), (1402153063,), (1402153228,), (1402153230,), (1402153231,), (1402153232,), (1402153234,), (1402153283,), (1402153284,), (1402153285,), (1402153323,), (1402153421,), (1402153423,), (1402153425,), (1402153427,), (1402153584,), (1402153586,), (1402153588,), (1402153592,), (1402153596,), (1402153628,), (1402153630,), (1402153633,), (1402153637,), (1402153641,), (1402153649,), (1402153651,), (1402153652,), (1402153653,)) 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`=29890504 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','plastique','flou','Carton_gris','Teint_Dans_La_Masse','environnement','papier','mal_croppe','autre_refus','Carton_brun','metal','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29890504 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','plastique','flou','Carton_gris','Teint_Dans_La_Masse','environnement','papier','mal_croppe','autre_refus','Carton_brun','metal','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 29890504, 'sub_port_id': 29890528, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20448337, 'last_updated_at': datetime.datetime(2026, 1, 2, 13, 32, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 13, 32, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 13, 32, 59)}, 'cartonnette': {'main_port_id': 29890504, 'sub_port_id': 29890529, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20448338, 'last_updated_at': datetime.datetime(2026, 1, 2, 13, 32, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 13, 32, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 13, 32, 59)}, 'Carton_brun': {'main_port_id': 29890504, 'sub_port_id': 29890530, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20448339, 'last_updated_at': datetime.datetime(2026, 1, 2, 13, 32, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 13, 32, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 13, 32, 59)}, 'metal': {'main_port_id': 29890504, 'sub_port_id': 29890531, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20448340, 'last_updated_at': datetime.datetime(2026, 1, 2, 13, 32, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 13, 32, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 13, 32, 59)}, 'kraft': {'main_port_id': 29890504, 'sub_port_id': 29890532, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20448341, 'last_updated_at': datetime.datetime(2026, 1, 2, 13, 32, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 13, 32, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 13, 32, 59)}, 'autre_refus': {'main_port_id': 29890504, 'sub_port_id': 29890533, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20448342, 'last_updated_at': datetime.datetime(2026, 1, 2, 13, 32, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 13, 32, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 13, 32, 59)}, 'environnement': {'main_port_id': 29890504, 'sub_port_id': 29890534, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20448343, 'last_updated_at': datetime.datetime(2026, 1, 2, 13, 32, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 13, 32, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 13, 32, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 29890504, 'sub_port_id': 29890535, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20448344, 'last_updated_at': datetime.datetime(2026, 1, 2, 13, 32, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 13, 32, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 13, 32, 59)}, 'plastique': {'main_port_id': 29890504, 'sub_port_id': 29890536, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20448345, 'last_updated_at': datetime.datetime(2026, 1, 2, 13, 32, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 13, 32, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 13, 32, 59)}, 'mal_croppe': {'main_port_id': 29890504, 'sub_port_id': 29890537, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20448346, 'last_updated_at': datetime.datetime(2026, 1, 2, 13, 32, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 13, 32, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 13, 32, 59)}, 'Carton_gris': {'main_port_id': 29890504, 'sub_port_id': 29890538, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20448347, 'last_updated_at': datetime.datetime(2026, 1, 2, 13, 32, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 13, 32, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 13, 32, 59)}, 'papier': {'main_port_id': 29890504, 'sub_port_id': 29890539, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20448348, 'last_updated_at': datetime.datetime(2026, 1, 2, 13, 36, 59), 'last_updated_at_desc': datetime.datetime(2026, 1, 2, 13, 36, 59), 'last_updated_at_asc': datetime.datetime(2026, 1, 2, 13, 32, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29890528,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29890516 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29890529,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29890517 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29890530,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29890518 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29890531,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29890519 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29890532,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29890520 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29890533,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29890521 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29890534,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29890522 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29890535,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29890523 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29890536,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29890524 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29890537,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29890525 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29890538,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29890526 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29890539,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29890527 lien utilise dans velours : https://marlene.fotonower.com/velours/29890528,29890529,29890530,29890531,29890532,29890533,29890534,29890535,29890536,29890537,29890538,29890539?tags=flou,cartonnette,Carton_brun,metal,kraft,autre_refus,environnement,Teint_Dans_La_Masse,plastique,mal_croppe,Carton_gris,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29890504]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1402153653, 1402153652, 1402153651, 1402153649, 1402153641, 1402153637, 1402153633, 1402153630, 1402153628] map_info['map_portfolio_photo'] : {29890504: [1402153653, 1402153652, 1402153651, 1402153649, 1402153641, 1402153637, 1402153633, 1402153630, 1402153628, 1402153596, 1402153592, 1402153588, 1402153586, 1402153584, 1402153427, 1402153425, 1402153423, 1402153421, 1402153323, 1402153285, 1402153284, 1402153283, 1402153234, 1402153232, 1402153231, 1402153230, 1402153228, 1402153063, 1402153060, 1402153057, 1402153055]} final : False mtd_id 4302 list_pids : [1402153653, 1402153652, 1402153651, 1402153649, 1402153641, 1402153637, 1402153633, 1402153630, 1402153628] Looping around the photos to save general results len do output : 1 /29890504. 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, '4303142') ('4302', '29890504', '1402153653', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153652', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153651', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153649', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153641', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153637', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153633', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153630', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153628', None, None, None, None, None, '4303142') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29890504', "{'flou': 29890516, 'cartonnette': 29890517, 'Carton_brun': 29890518, 'metal': 29890519, 'kraft': 29890520, 'autre_refus': 29890521, 'environnement': 29890522, 'Teint_Dans_La_Masse': 29890523, 'plastique': 29890524, 'mal_croppe': 29890525, 'Carton_gris': 29890526, 'papier': 29890527}", None, None, None, None, '4303142'), ('4302', '29890504', '1402153653', None, None, None, None, None, '4303142'), ('4302', '29890504', '1402153652', None, None, None, None, None, '4303142'), ('4302', '29890504', '1402153651', None, None, None, None, None, '4303142'), ('4302', '29890504', '1402153649', None, None, None, None, None, '4303142'), ('4302', '29890504', '1402153641', None, None, None, None, None, '4303142'), ('4302', '29890504', '1402153637', None, None, None, None, None, '4303142'), ('4302', '29890504', '1402153633', None, None, None, None, None, '4303142'), ('4302', '29890504', '1402153630', None, None, None, None, None, '4303142'), ('4302', '29890504', '1402153628', None, None, None, None, None, '4303142')] time used for this insertion : 0.01793074607849121 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.797987461090088 time spend to save output : 0.018220901489257812 total time spend for step 1 : 1.8162083625793457 step2:final Fri Jan 2 13:38:59 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 (29890504) 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 29890504 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1402153063,1402153060,1402153057,1402153055,1402153234,1402153232,1402153231,1402153230,1402153228,1402153323,1402153285,1402153284,1402153283,1402153427,1402153425,1402153423,1402153421,1402153596,1402153592,1402153588,1402153586,1402153584,1402153641,1402153637,1402153633,1402153630,1402153628,1402153653,1402153652,1402153651,1402153649); 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([29890504]) Inside saveOutput : final : False verbose : True original output for save of step final : {1402153653: ('0.07104572775946964',), 1402153652: ('0.07104572775946964',), 1402153651: ('0.07104572775946964',), 1402153649: ('0.07104572775946964',), 1402153641: ('0.07104572775946964',), 1402153637: ('0.07104572775946964',), 1402153633: ('0.07104572775946964',), 1402153630: ('0.07104572775946964',), 1402153628: ('0.07104572775946964',)} new output for save of step final : {1402153653: ('0.07104572775946964',), 1402153652: ('0.07104572775946964',), 1402153651: ('0.07104572775946964',), 1402153649: ('0.07104572775946964',), 1402153641: ('0.07104572775946964',), 1402153637: ('0.07104572775946964',), 1402153633: ('0.07104572775946964',), 1402153630: ('0.07104572775946964',), 1402153628: ('0.07104572775946964',)} [1402153653, 1402153652, 1402153651, 1402153649, 1402153641, 1402153637, 1402153633, 1402153630, 1402153628] map_info['map_portfolio_photo'] : {29890504: [1402153653, 1402153652, 1402153651, 1402153649, 1402153641, 1402153637, 1402153633, 1402153630, 1402153628, 1402153596, 1402153592, 1402153588, 1402153586, 1402153584, 1402153427, 1402153425, 1402153423, 1402153421, 1402153323, 1402153285, 1402153284, 1402153283, 1402153234, 1402153232, 1402153231, 1402153230, 1402153228, 1402153063, 1402153060, 1402153057, 1402153055]} final : False mtd_id 4302 list_pids : [1402153653, 1402153652, 1402153651, 1402153649, 1402153641, 1402153637, 1402153633, 1402153630, 1402153628] Looping around the photos to save general results len do output : 9 /1402153653.Didn't retrieve data . /1402153652.Didn't retrieve data . /1402153651.Didn't retrieve data . /1402153649.Didn't retrieve data . /1402153641.Didn't retrieve data . /1402153637.Didn't retrieve data . /1402153633.Didn't retrieve data . /1402153630.Didn't retrieve data . /1402153628.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, '4303142') ('4302', '29890504', '1402153653', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153652', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153651', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153649', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153641', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153637', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153633', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153630', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153628', None, None, None, None, None, '4303142') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '29890504', '1402153653', '0.07104572775946964', None, None, None, None, '4303142'), ('4302', '29890504', '1402153652', '0.07104572775946964', None, None, None, None, '4303142'), ('4302', '29890504', '1402153651', '0.07104572775946964', None, None, None, None, '4303142'), ('4302', '29890504', '1402153649', '0.07104572775946964', None, None, None, None, '4303142'), ('4302', '29890504', '1402153641', '0.07104572775946964', None, None, None, None, '4303142'), ('4302', '29890504', '1402153637', '0.07104572775946964', None, None, None, None, '4303142'), ('4302', '29890504', '1402153633', '0.07104572775946964', None, None, None, None, '4303142'), ('4302', '29890504', '1402153630', '0.07104572775946964', None, None, None, None, '4303142'), ('4302', '29890504', '1402153628', '0.07104572775946964', None, None, None, None, '4303142')] time used for this insertion : 0.01781749725341797 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0828862190246582 time spend to save output : 0.01881861686706543 total time spend for step 2 : 0.10170483589172363 step3:velours_tree Fri Jan 2 13:38:59 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 : {29890504: [{'flou': 29890516, 'cartonnette': 29890517, 'Carton_brun': 29890518, 'metal': 29890519, 'kraft': 29890520, 'autre_refus': 29890521, 'environnement': 29890522, 'Teint_Dans_La_Masse': 29890523, 'plastique': 29890524, 'mal_croppe': 29890525, 'Carton_gris': 29890526, 'papier': 29890527}]} input_args_next_step : {29890504: ()} output_args : {29890504: [{'flou': 29890516, 'cartonnette': 29890517, 'Carton_brun': 29890518, 'metal': 29890519, 'kraft': 29890520, 'autre_refus': 29890521, 'environnement': 29890522, 'Teint_Dans_La_Masse': 29890523, 'plastique': 29890524, 'mal_croppe': 29890525, 'Carton_gris': 29890526, 'papier': 29890527}]} args : 29890504 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'flou': 29890516, 'cartonnette': 29890517, 'Carton_brun': 29890518, 'metal': 29890519, 'kraft': 29890520, 'autre_refus': 29890521, 'environnement': 29890522, 'Teint_Dans_La_Masse': 29890523, 'plastique': 29890524, 'mal_croppe': 29890525, 'Carton_gris': 29890526, 'papier': 29890527},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29890504) 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([29890504]) 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.2738938331604004 time spend to save output : 3.981590270996094e-05 total time spend for step 3 : 0.27393364906311035 step4:send_mail_cod Fri Jan 2 13:38:59 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 : {1402153653: ('0.07104572775946964',), 1402153652: ('0.07104572775946964',), 1402153651: ('0.07104572775946964',), 1402153649: ('0.07104572775946964',), 1402153641: ('0.07104572775946964',), 1402153637: ('0.07104572775946964',), 1402153633: ('0.07104572775946964',), 1402153630: ('0.07104572775946964',), 1402153628: ('0.07104572775946964',)} input_args_next_step : {1402153653: ()} output_args : {1402153653: ('0.07104572775946964',), 1402153652: ('0.07104572775946964',), 1402153651: ('0.07104572775946964',), 1402153649: ('0.07104572775946964',), 1402153641: ('0.07104572775946964',), 1402153637: ('0.07104572775946964',), 1402153633: ('0.07104572775946964',), 1402153630: ('0.07104572775946964',), 1402153628: ('0.07104572775946964',)} args : 1402153653 depend.output_id : 0 input_args_next_step : {1402153653: ('0.07104572775946964',), 1402153652: ()} output_args : {1402153653: ('0.07104572775946964',), 1402153652: ('0.07104572775946964',), 1402153651: ('0.07104572775946964',), 1402153649: ('0.07104572775946964',), 1402153641: ('0.07104572775946964',), 1402153637: ('0.07104572775946964',), 1402153633: ('0.07104572775946964',), 1402153630: ('0.07104572775946964',), 1402153628: ('0.07104572775946964',)} args : 1402153652 depend.output_id : 0 input_args_next_step : {1402153653: ('0.07104572775946964',), 1402153652: ('0.07104572775946964',), 1402153651: ()} output_args : {1402153653: ('0.07104572775946964',), 1402153652: ('0.07104572775946964',), 1402153651: ('0.07104572775946964',), 1402153649: ('0.07104572775946964',), 1402153641: ('0.07104572775946964',), 1402153637: ('0.07104572775946964',), 1402153633: ('0.07104572775946964',), 1402153630: ('0.07104572775946964',), 1402153628: ('0.07104572775946964',)} args : 1402153651 depend.output_id : 0 input_args_next_step : {1402153653: ('0.07104572775946964',), 1402153652: ('0.07104572775946964',), 1402153651: ('0.07104572775946964',), 1402153649: ()} output_args : {1402153653: ('0.07104572775946964',), 1402153652: ('0.07104572775946964',), 1402153651: ('0.07104572775946964',), 1402153649: ('0.07104572775946964',), 1402153641: ('0.07104572775946964',), 1402153637: ('0.07104572775946964',), 1402153633: ('0.07104572775946964',), 1402153630: ('0.07104572775946964',), 1402153628: ('0.07104572775946964',)} args : 1402153649 depend.output_id : 0 input_args_next_step : {1402153653: ('0.07104572775946964',), 1402153652: ('0.07104572775946964',), 1402153651: ('0.07104572775946964',), 1402153649: ('0.07104572775946964',), 1402153641: ()} output_args : {1402153653: ('0.07104572775946964',), 1402153652: ('0.07104572775946964',), 1402153651: ('0.07104572775946964',), 1402153649: ('0.07104572775946964',), 1402153641: ('0.07104572775946964',), 1402153637: ('0.07104572775946964',), 1402153633: ('0.07104572775946964',), 1402153630: ('0.07104572775946964',), 1402153628: ('0.07104572775946964',)} args : 1402153641 depend.output_id : 0 input_args_next_step : {1402153653: ('0.07104572775946964',), 1402153652: ('0.07104572775946964',), 1402153651: ('0.07104572775946964',), 1402153649: ('0.07104572775946964',), 1402153641: ('0.07104572775946964',), 1402153637: ()} output_args : {1402153653: ('0.07104572775946964',), 1402153652: ('0.07104572775946964',), 1402153651: ('0.07104572775946964',), 1402153649: ('0.07104572775946964',), 1402153641: ('0.07104572775946964',), 1402153637: ('0.07104572775946964',), 1402153633: ('0.07104572775946964',), 1402153630: ('0.07104572775946964',), 1402153628: ('0.07104572775946964',)} args : 1402153637 depend.output_id : 0 input_args_next_step : {1402153653: ('0.07104572775946964',), 1402153652: ('0.07104572775946964',), 1402153651: ('0.07104572775946964',), 1402153649: ('0.07104572775946964',), 1402153641: ('0.07104572775946964',), 1402153637: ('0.07104572775946964',), 1402153633: ()} output_args : {1402153653: ('0.07104572775946964',), 1402153652: ('0.07104572775946964',), 1402153651: ('0.07104572775946964',), 1402153649: ('0.07104572775946964',), 1402153641: ('0.07104572775946964',), 1402153637: ('0.07104572775946964',), 1402153633: ('0.07104572775946964',), 1402153630: ('0.07104572775946964',), 1402153628: ('0.07104572775946964',)} args : 1402153633 depend.output_id : 0 input_args_next_step : {1402153653: ('0.07104572775946964',), 1402153652: ('0.07104572775946964',), 1402153651: ('0.07104572775946964',), 1402153649: ('0.07104572775946964',), 1402153641: ('0.07104572775946964',), 1402153637: ('0.07104572775946964',), 1402153633: ('0.07104572775946964',), 1402153630: ()} output_args : {1402153653: ('0.07104572775946964',), 1402153652: ('0.07104572775946964',), 1402153651: ('0.07104572775946964',), 1402153649: ('0.07104572775946964',), 1402153641: ('0.07104572775946964',), 1402153637: ('0.07104572775946964',), 1402153633: ('0.07104572775946964',), 1402153630: ('0.07104572775946964',), 1402153628: ('0.07104572775946964',)} args : 1402153630 depend.output_id : 0 input_args_next_step : {1402153653: ('0.07104572775946964',), 1402153652: ('0.07104572775946964',), 1402153651: ('0.07104572775946964',), 1402153649: ('0.07104572775946964',), 1402153641: ('0.07104572775946964',), 1402153637: ('0.07104572775946964',), 1402153633: ('0.07104572775946964',), 1402153630: ('0.07104572775946964',), 1402153628: ()} output_args : {1402153653: ('0.07104572775946964',), 1402153652: ('0.07104572775946964',), 1402153651: ('0.07104572775946964',), 1402153649: ('0.07104572775946964',), 1402153641: ('0.07104572775946964',), 1402153637: ('0.07104572775946964',), 1402153633: ('0.07104572775946964',), 1402153630: ('0.07104572775946964',), 1402153628: ('0.07104572775946964',)} args : 1402153628 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 : {29890504: [{'flou': 29890516, 'cartonnette': 29890517, 'Carton_brun': 29890518, 'metal': 29890519, 'kraft': 29890520, 'autre_refus': 29890521, 'environnement': 29890522, 'Teint_Dans_La_Masse': 29890523, 'plastique': 29890524, 'mal_croppe': 29890525, 'Carton_gris': 29890526, 'papier': 29890527}]} input_args_next_step : {1402153653: ('0.07104572775946964',), 1402153652: ('0.07104572775946964',), 1402153651: ('0.07104572775946964',), 1402153649: ('0.07104572775946964',), 1402153641: ('0.07104572775946964',), 1402153637: ('0.07104572775946964',), 1402153633: ('0.07104572775946964',), 1402153630: ('0.07104572775946964',), 1402153628: ('0.07104572775946964',), 29890504: ()} output_args : {29890504: [{'flou': 29890516, 'cartonnette': 29890517, 'Carton_brun': 29890518, 'metal': 29890519, 'kraft': 29890520, 'autre_refus': 29890521, 'environnement': 29890522, 'Teint_Dans_La_Masse': 29890523, 'plastique': 29890524, 'mal_croppe': 29890525, 'Carton_gris': 29890526, 'papier': 29890527}]} args : 29890504 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 :10, first value : ('0.07104572775946964',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29890504) 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 (1402153653,1402153652,1402153651,1402153649,1402153641,1402153637,1402153633,1402153630,1402153628) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1402153628 begin to download photo : 1402153633 begin to download photo : 1402153641 begin to download photo : 1402153651 begin to download photo : 1402153653 download finish for photo 1402153628 begin to download photo : 1402153630 download finish for photo 1402153653 download finish for photo 1402153641 begin to download photo : 1402153649 download finish for photo 1402153633 begin to download photo : 1402153637 download finish for photo 1402153651 begin to download photo : 1402153652 download finish for photo 1402153630 download finish for photo 1402153649 download finish for photo 1402153652 download finish for photo 1402153637 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette298905161767357539/ length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P29890504_02-01-2026_13_38_59.pdf 29890516 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=29890516 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298905161767357539 29890517 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=29890517 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402153375: '1767357186_2993897_1402153234_2f8f1c6a51c230dc65b3efba92ccd9f7_rle_crop_4088587280_0.png', 1402153377: '1767357186_2993897_1402153063_fe1e171f86ea541c0b2aa5d53e0e2fcf_rle_crop_4088587296_0.png', 1402153378: '1767357186_2993897_1402153060_3408f75490771d25a3ccc92285970c18_rle_crop_4088587313_0.png', 1402153379: '1767357186_2993897_1402153057_fe6cff68d675741dbb0e0f5f06129654_rle_crop_4088587334_0.png', 1402153380: '1767357186_2993897_1402153055_52c23cd43182495a259b2e5091a47b64_rle_crop_4088587344_0.png', 1402153381: '1767357186_2993897_1402153055_52c23cd43182495a259b2e5091a47b64_rle_crop_4088587342_0.png', 1402153418: '1767357207_2994246_1402153232_78010f3e2d98a753cd7cefd8cdf76ca9_rle_crop_4088587496_0.png', 1402153616: '1767357325_3000479_1402153285_a14c8b2a60ff98eb355fce65bfd05572_rle_crop_4088589271_0.png', 1402153617: '1767357325_3000479_1402153283_5d5986ad06a8ff9cd985fb8667f567c8_rle_crop_4088589299_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/ab43788eb498093326741b6b51f355a4_99207424.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/58176f9d42088b35f129ffb84bd42690_990782.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/a555200c830b73dbef6cf05fa813a7dc_9164763.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/d946d4e29d56be427744ec23633dd15f_38195776.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/8f1f860b4da67675df3bb534a74ecd42_6911772.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/ccf22801adf42adc9c5716306924f648_47681523.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/c6ee32275bafa08d2a8409f223db3a65_68878339.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/8ae10a25b4814d7830118a0dfa8cb48f_77705445.png change filename to text .imagette298905171767357539/ imagette298905171767357539/1767357186_2993897_1402153234_2f8f1c6a51c230dc65b3efba92ccd9f7_rle_crop_4088587280_0.png.png imagette298905171767357539/1767357186_2993897_1402153063_fe1e171f86ea541c0b2aa5d53e0e2fcf_rle_crop_4088587296_0.png.png imagette298905171767357539/1767357186_2993897_1402153060_3408f75490771d25a3ccc92285970c18_rle_crop_4088587313_0.png.png imagette298905171767357539/1767357207_2994246_1402153232_78010f3e2d98a753cd7cefd8cdf76ca9_rle_crop_4088587496_0.png.png imagette298905171767357539/1767357325_3000479_1402153285_a14c8b2a60ff98eb355fce65bfd05572_rle_crop_4088589271_0.png.png imagette298905171767357539/1767357186_2993897_1402153055_52c23cd43182495a259b2e5091a47b64_rle_crop_4088587342_0.png.png imagette298905171767357539/1767357186_2993897_1402153057_fe6cff68d675741dbb0e0f5f06129654_rle_crop_4088587334_0.png.png imagette298905171767357539/1767357186_2993897_1402153055_52c23cd43182495a259b2e5091a47b64_rle_crop_4088587344_0.png.png imagette298905171767357539/1767357325_3000479_1402153283_5d5986ad06a8ff9cd985fb8667f567c8_rle_crop_4088589299_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/75320d1afa18b5f3806a7498cf520121_4788237.png imagette298905171767357539 29890519 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=29890519 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402153625: '1767357325_3000479_1402153284_7ee7a19959dc63cd449d3fa23f985cba_rle_crop_4088589282_0.png'} change filename to text .imagette298905191767357540/ imagette298905191767357540/1767357325_3000479_1402153284_7ee7a19959dc63cd449d3fa23f985cba_rle_crop_4088589282_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/48652e8c1da0eb00760c6c69bb9109b3_95529494.png imagette298905191767357540 29890520 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=29890520 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402153605: '1767357307_3000127_1402153421_b116166b7654bd3e561d9520df6a8e01_rle_crop_4088589138_0.png', 1402153623: '1767357325_3000479_1402153285_a14c8b2a60ff98eb355fce65bfd05572_rle_crop_4088589275_0.png', 1402153624: '1767357325_3000479_1402153283_5d5986ad06a8ff9cd985fb8667f567c8_rle_crop_4088589302_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/86a6fdb555ca9ce940e3fcdffb27e67f_39231916.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/5de8a6677df63ccdeffe8044210c2e07_18795986.png change filename to text .imagette298905201767357540/ imagette298905201767357540/1767357307_3000127_1402153421_b116166b7654bd3e561d9520df6a8e01_rle_crop_4088589138_0.png.png imagette298905201767357540/1767357325_3000479_1402153283_5d5986ad06a8ff9cd985fb8667f567c8_rle_crop_4088589302_0.png.png imagette298905201767357540/1767357325_3000479_1402153285_a14c8b2a60ff98eb355fce65bfd05572_rle_crop_4088589275_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/c3b59e8968f53c1461c10ba1b49c762b_53290866.png imagette298905201767357540 29890521 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=29890521 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402153362: '1767357186_2993897_1402153234_2f8f1c6a51c230dc65b3efba92ccd9f7_rle_crop_4088587281_0.png', 1402153363: '1767357186_2993897_1402153234_2f8f1c6a51c230dc65b3efba92ccd9f7_rle_crop_4088587288_0.png', 1402153366: '1767357186_2993897_1402153055_52c23cd43182495a259b2e5091a47b64_rle_crop_4088587347_0.png', 1402153415: '1767357207_2994246_1402153228_48780b921d89fae0b21e6c80e13649f3_rle_crop_4088587548_0.png', 1402153614: '1767357325_3000479_1402153284_7ee7a19959dc63cd449d3fa23f985cba_rle_crop_4088589290_0.png', 1402153615: '1767357325_3000479_1402153283_5d5986ad06a8ff9cd985fb8667f567c8_rle_crop_4088589301_0.png', 1402153660: '1767357427_3007349_1402153588_11e8472d9c7c467dcd0e85658ab3ee1a_rle_crop_4088589440_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/f0d28863869f8c55620e1462622bff77_45970014.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/72d79c5b52359f41c7ebdb1ae6fb5bf7_16037484.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/ccc6c62ae27c02ff03bdca78b96d8ce4_17212967.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/584a6c38b85499cac8207771e9335e77_53126618.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/0700d6c10fa9a02e56286dcde70d5af4_43247760.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/1119709c1b9cc263e55e8a08571f5ec5_47355508.png change filename to text .imagette298905211767357540/ imagette298905211767357540/1767357186_2993897_1402153234_2f8f1c6a51c230dc65b3efba92ccd9f7_rle_crop_4088587281_0.png.png imagette298905211767357540/1767357325_3000479_1402153283_5d5986ad06a8ff9cd985fb8667f567c8_rle_crop_4088589301_0.png.png imagette298905211767357540/1767357186_2993897_1402153055_52c23cd43182495a259b2e5091a47b64_rle_crop_4088587347_0.png.png imagette298905211767357540/1767357186_2993897_1402153234_2f8f1c6a51c230dc65b3efba92ccd9f7_rle_crop_4088587288_0.png.png imagette298905211767357540/1767357427_3007349_1402153588_11e8472d9c7c467dcd0e85658ab3ee1a_rle_crop_4088589440_0.png.png imagette298905211767357540/1767357325_3000479_1402153284_7ee7a19959dc63cd449d3fa23f985cba_rle_crop_4088589290_0.png.png imagette298905211767357540/1767357207_2994246_1402153228_48780b921d89fae0b21e6c80e13649f3_rle_crop_4088587548_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/1905bf4cd87589636673835a5a7d272b_18852823.png imagette298905211767357540 29890524 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=29890524 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402153384: '1767357186_2993897_1402153234_2f8f1c6a51c230dc65b3efba92ccd9f7_rle_crop_4088587282_0.png', 1402153385: '1767357186_2993897_1402153063_fe1e171f86ea541c0b2aa5d53e0e2fcf_rle_crop_4088587293_0.png', 1402153386: '1767357186_2993897_1402153055_52c23cd43182495a259b2e5091a47b64_rle_crop_4088587345_0.png', 1402153621: '1767357325_3000479_1402153283_5d5986ad06a8ff9cd985fb8667f567c8_rle_crop_4088589314_0.png', 1402153622: '1767357325_3000479_1402153283_5d5986ad06a8ff9cd985fb8667f567c8_rle_crop_4088589311_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/978d004cbedc5a4443c7c9bb8a1ba1b0_94029596.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/ca85d1822434074dff45fce4039f137a_15640295.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/45bb1919af9e166770870554b0e34312_91541677.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/43b0fa5d9c54cfa215b96206ddfcef82_42798371.png change filename to text .imagette298905241767357541/ imagette298905241767357541/1767357186_2993897_1402153063_fe1e171f86ea541c0b2aa5d53e0e2fcf_rle_crop_4088587293_0.png.png imagette298905241767357541/1767357325_3000479_1402153283_5d5986ad06a8ff9cd985fb8667f567c8_rle_crop_4088589314_0.png.png imagette298905241767357541/1767357186_2993897_1402153055_52c23cd43182495a259b2e5091a47b64_rle_crop_4088587345_0.png.png imagette298905241767357541/1767357186_2993897_1402153234_2f8f1c6a51c230dc65b3efba92ccd9f7_rle_crop_4088587282_0.png.png imagette298905241767357541/1767357325_3000479_1402153283_5d5986ad06a8ff9cd985fb8667f567c8_rle_crop_4088589311_0.png.png imagette298905251767357541/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/d4cee3cd891f4a54c1547bae3df61150_96672224.png imagette298905241767357541 29890525 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=29890525 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298905251767357541 29890518 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=29890518 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402153419: '1767357207_2994246_1402153231_d8cf7a5d557137f9c12a129d6cb68966_rle_crop_4088587507_0.png', 1402153601: '1767357307_3000127_1402153423_37101cb14329cca3032cd92038a60597_rle_crop_4088589124_0.png', 1402153602: '1767357307_3000127_1402153421_b116166b7654bd3e561d9520df6a8e01_rle_crop_4088589142_0.png', 1402153618: '1767357325_3000479_1402153284_7ee7a19959dc63cd449d3fa23f985cba_rle_crop_4088589284_0.png', 1402153619: '1767357325_3000479_1402153284_7ee7a19959dc63cd449d3fa23f985cba_rle_crop_4088589283_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/121c13e0c57f2fddb9af742bba84aff7_75761274.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/31a2ff9b7291c09e1c6afd50622b3e12_60625496.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/91dd8f51bb324b2d429aceaa2404f64b_8451910.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/6f1f73c5612e8beee0fd5710d45d0975_72949731.png change filename to text .imagette298905181767357541/ imagette298905181767357541/1767357307_3000127_1402153421_b116166b7654bd3e561d9520df6a8e01_rle_crop_4088589142_0.png.png imagette298905181767357541/1767357325_3000479_1402153284_7ee7a19959dc63cd449d3fa23f985cba_rle_crop_4088589284_0.png.png imagette298905181767357541/1767357325_3000479_1402153284_7ee7a19959dc63cd449d3fa23f985cba_rle_crop_4088589283_0.png.png imagette298905181767357541/1767357207_2994246_1402153231_d8cf7a5d557137f9c12a129d6cb68966_rle_crop_4088587507_0.png.png imagette298905181767357541/1767357307_3000127_1402153423_37101cb14329cca3032cd92038a60597_rle_crop_4088589124_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/67daad1311b4b2fb449c23e9e5eb5b7d_21590543.png imagette298905181767357541 29890523 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=29890523 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402153599: '1767357307_3000127_1402153423_37101cb14329cca3032cd92038a60597_rle_crop_4088589122_0.png', 1402153600: '1767357307_3000127_1402153423_37101cb14329cca3032cd92038a60597_rle_crop_4088589119_0.png', 1402153612: '1767357325_3000479_1402153285_a14c8b2a60ff98eb355fce65bfd05572_rle_crop_4088589277_0.png', 1402153613: '1767357325_3000479_1402153284_7ee7a19959dc63cd449d3fa23f985cba_rle_crop_4088589287_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/8f89b6c3213dcbbdf7208039a3b3f668_39571136.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/3c0fe4c0deb50e70cddfc12054014ffd_65840456.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/ce360ec2621747974e0221aeb06a2690_74817049.png change filename to text .imagette298905231767357542/ imagette298905231767357542/1767357325_3000479_1402153284_7ee7a19959dc63cd449d3fa23f985cba_rle_crop_4088589287_0.png.png imagette298905231767357542/1767357325_3000479_1402153285_a14c8b2a60ff98eb355fce65bfd05572_rle_crop_4088589277_0.png.png imagette298905231767357542/1767357307_3000127_1402153423_37101cb14329cca3032cd92038a60597_rle_crop_4088589119_0.png.png imagette298905231767357542/1767357307_3000127_1402153423_37101cb14329cca3032cd92038a60597_rle_crop_4088589122_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/fdd4ca4215ef7b6be5991e354efc59a5_18748510.png imagette298905231767357542 29890526 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=29890526 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402153370: '1767357186_2993897_1402153057_fe6cff68d675741dbb0e0f5f06129654_rle_crop_4088587329_0.png', 1402153371: '1767357186_2993897_1402153055_52c23cd43182495a259b2e5091a47b64_rle_crop_4088587340_0.png', 1402153416: '1767357207_2994246_1402153231_d8cf7a5d557137f9c12a129d6cb68966_rle_crop_4088587505_0.png', 1402153417: '1767357207_2994246_1402153230_78fc1420f792d8d662a1fb32586cc87e_rle_crop_4088587525_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/5f76a10fd09d4d95e806de7a2b6ff82f_94098149.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/f0f817ae801d1b13fb4111a1eba2d6a9_93158549.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/15a748d2f24167935f7dd6acee918dd5_15481141.png change filename to text .imagette298905261767357542/ imagette298905261767357542/1767357207_2994246_1402153231_d8cf7a5d557137f9c12a129d6cb68966_rle_crop_4088587505_0.png.png imagette298905261767357542/1767357186_2993897_1402153055_52c23cd43182495a259b2e5091a47b64_rle_crop_4088587340_0.png.png imagette298905261767357542/1767357207_2994246_1402153230_78fc1420f792d8d662a1fb32586cc87e_rle_crop_4088587525_0.png.png imagette298905261767357542/1767357186_2993897_1402153057_fe6cff68d675741dbb0e0f5f06129654_rle_crop_4088587329_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/f2f3f576adf27373884e958e7823f733_26929546.png imagette298905261767357542 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29890504 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29890528,29890529,29890530,29890531,29890532,29890533,29890534,29890535,29890536,29890537,29890538,29890539?tags=flou,cartonnette,Carton_brun,metal,kraft,autre_refus,environnement,Teint_Dans_La_Masse,plastique,mal_croppe,Carton_gris,papier your option no_mail is active, we will not send the real mail to your client args[1402153653] : ('0.07104572775946964',) no score found for photo 1402153653 We are sending mail with results at report@fotonower.com args[1402153652] : ('0.07104572775946964',) no score found for photo 1402153652 We are sending mail with results at report@fotonower.com args[1402153651] : ('0.07104572775946964',) no score found for photo 1402153651 We are sending mail with results at report@fotonower.com args[1402153649] : ('0.07104572775946964',) no score found for photo 1402153649 We are sending mail with results at report@fotonower.com args[1402153641] : ('0.07104572775946964',) no score found for photo 1402153641 We are sending mail with results at report@fotonower.com args[1402153637] : ('0.07104572775946964',) no score found for photo 1402153637 We are sending mail with results at report@fotonower.com args[1402153633] : ('0.07104572775946964',) no score found for photo 1402153633 We are sending mail with results at report@fotonower.com args[1402153630] : ('0.07104572775946964',) no score found for photo 1402153630 We are sending mail with results at report@fotonower.com args[1402153628] : ('0.07104572775946964',) no score found for photo 1402153628 We are sending mail with results at report@fotonower.com refus_total : 0.07104572775946964 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=29890504 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_P29890504_02-01-2026_13_38_59.pdf results_Auto_P29890504_02-01-2026_13_38_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29890504_02-01-2026_13_38_59.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','29890504','results_Auto_P29890504_02-01-2026_13_38_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29890504_02-01-2026_13_38_59.pdf','pdf','','0.24','0.07104572775946964') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29890504]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1402153653, 1402153652, 1402153651, 1402153649, 1402153641, 1402153637, 1402153633, 1402153630, 1402153628] map_info['map_portfolio_photo'] : {29890504: [1402153653, 1402153652, 1402153651, 1402153649, 1402153641, 1402153637, 1402153633, 1402153630, 1402153628, 1402153596, 1402153592, 1402153588, 1402153586, 1402153584, 1402153427, 1402153425, 1402153423, 1402153421, 1402153323, 1402153285, 1402153284, 1402153283, 1402153234, 1402153232, 1402153231, 1402153230, 1402153228, 1402153063, 1402153060, 1402153057, 1402153055]} final : False mtd_id 4302 list_pids : [1402153653, 1402153652, 1402153651, 1402153649, 1402153641, 1402153637, 1402153633, 1402153630, 1402153628] 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, '4303142') ('4302', '29890504', '1402153653', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153652', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153651', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153649', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153641', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153637', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153633', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153630', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153628', None, None, None, None, None, '4303142') 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', '29890504', '1402153653', None, None, None, None, None, '4303142'), ('4302', '29890504', '1402153652', None, None, None, None, None, '4303142'), ('4302', '29890504', '1402153651', None, None, None, None, None, '4303142'), ('4302', '29890504', '1402153649', None, None, None, None, None, '4303142'), ('4302', '29890504', '1402153641', None, None, None, None, None, '4303142'), ('4302', '29890504', '1402153637', None, None, None, None, None, '4303142'), ('4302', '29890504', '1402153633', None, None, None, None, None, '4303142'), ('4302', '29890504', '1402153630', None, None, None, None, None, '4303142'), ('4302', '29890504', '1402153628', None, None, None, None, None, '4303142')] time used for this insertion : 0.018588781356811523 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.6236021518707275 time spend to save output : 0.018822431564331055 total time spend for step 4 : 4.642424583435059 step5:split_time_score Fri Jan 2 13:39:04 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 : ['29890504'] 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 : [('29890504',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29890504) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1402153653: {'path': 'temp/1767357539_1682623_1402153653_d39b9506568a7209fe35a7301e40960e.jpg', 'extension': 'jpg'}, 1402153628: {'path': 'temp/1767357539_1682623_1402153628_773c60bb38e8f6cdbceacde5594cdd5b.jpg', 'extension': 'jpg'}, 1402153630: {'path': 'temp/1767357539_1682623_1402153630_71a1c899cc2fa63429a78cdf3039f9be.jpg', 'extension': 'jpg'}, 1402153641: {'path': 'temp/1767357539_1682623_1402153641_39be49b04f798ccdbbd9368c96352fb6.jpg', 'extension': 'jpg'}, 1402153649: {'path': 'temp/1767357539_1682623_1402153649_564f731d972960bac2da873b13818858.jpg', 'extension': 'jpg'}, 1402153651: {'path': 'temp/1767357539_1682623_1402153651_7f9994ed820882d957f2bf03c517626c.jpg', 'extension': 'jpg'}, 1402153652: {'path': 'temp/1767357539_1682623_1402153652_78940bfb99cff63945190bb2eef677a0.jpg', 'extension': 'jpg'}, 1402153633: {'path': 'temp/1767357539_1682623_1402153633_3343b4655ed6d12e497cd64bf9dea3d8.jpg', 'extension': 'jpg'}, 1402153637: {'path': 'temp/1767357539_1682623_1402153637_d87298e83e7ebebcff2f047109af9b37.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 = 29890504; (('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 = 29890504 group by h (('13', 31),) 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=29890504 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 (29890504) 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 (29890504) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02012026 29890504 Nombre de photos uploadées : 31 / 23040 (0%) 02012026 29890504 Nombre de photos taguées (types de déchets): 0 / 31 (0%) 02012026 29890504 Nombre de photos taguées (volume) : 0 / 31 (0%) [{'photo_id': 1402153063, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/fe1e171f86ea541c0b2aa5d53e0e2fcf.jpg', 'username': None, 'uploaded_at': 1767357067, 'text': 'image_02012026_13_30_05_010142m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402153060, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/3408f75490771d25a3ccc92285970c18.jpg', 'username': None, 'uploaded_at': 1767357067, 'text': 'image_02012026_13_30_14_009126m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402153057, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/fe6cff68d675741dbb0e0f5f06129654.jpg', 'username': None, 'uploaded_at': 1767357067, 'text': 'image_02012026_13_30_24_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402153055, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/2/52c23cd43182495a259b2e5091a47b64.jpg', 'username': None, 'uploaded_at': 1767357067, 'text': 'image_02012026_13_30_34_010139m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ??????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0014719963073730469 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29890504, '2026-01-02' ) 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-02' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2829505,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.255018949508667 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= 2829505 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2829505, 'dashboard_run_id': 2839494, 'mtr_portfolio_id': 29875698, 'dashboard_result_id': 18942574, '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_P29875698_02-01-2026_06_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29875700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29875701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29875702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29875703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29875704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29875705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29875706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29875707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29875708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29875709, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29875710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29875711, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2839494, 'mtr_portfolio_id': 29875852, 'dashboard_result_id': 18942575, '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_P29875852_02-01-2026_06_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29875855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29875856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29875857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29875858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29875859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29875860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29875861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29875862, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29875863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29875864, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29875865, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29875866, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2839494, 'mtr_portfolio_id': 29876194, 'dashboard_result_id': 18942576, '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_P29876194_02-01-2026_06_52_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29876199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29876200, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29876201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29876202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29876203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29876204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29876205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29876206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29876207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29876208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29876209, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29876210, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2839494, 'mtr_portfolio_id': 29876652, 'dashboard_result_id': 18942577, '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_P29876652_02-01-2026_07_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29876653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29876654, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29876655, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29876656, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29876657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29876658, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29876659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29876660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29876661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29876662, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29876663, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29876664, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2839494, 'mtr_portfolio_id': 29876801, 'dashboard_result_id': 18942578, '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_P29876801_02-01-2026_07_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29876851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29876852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29876853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29876854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29876855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29876856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29876857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29876858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29876859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29876860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29876861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29876862, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2839494, 'mtr_portfolio_id': 29877372, 'dashboard_result_id': 18942579, '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_P29877372_02-01-2026_07_33_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29877428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29877429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29877430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29877431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29877432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29877433, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29877434, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29877435, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29877436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29877437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29877438, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29877439, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2839494, 'mtr_portfolio_id': 29878166, 'dashboard_result_id': 18942580, '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_P29878166_02-01-2026_07_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29878167, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29878168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29878169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29878170, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29878171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29878172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29878173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29878174, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29878175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29878176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29878177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29878178, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2839494, 'mtr_portfolio_id': 29879046, 'dashboard_result_id': 18942581, '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_P29879046_02-01-2026_08_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29879072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29879073, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29879074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29879075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29879076, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29879077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29879078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29879079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29879080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29879081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29879082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29879083, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2839494, 'mtr_portfolio_id': 29879603, 'dashboard_result_id': 18942582, '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_P29879603_02-01-2026_08_21_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29879618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29879619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29879620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29879621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29879622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29879623, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29879624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29879625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29879626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29879627, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29879628, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29879629, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2839494, 'mtr_portfolio_id': 29880964, 'dashboard_result_id': 18942583, '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_P29880964_02-01-2026_09_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29880989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29880990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29880991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29880992, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29880993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29880994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29880995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29880996, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29880997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29880998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29880999, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29881000, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2839494, 'mtr_portfolio_id': 29882264, 'dashboard_result_id': 18942584, '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_P29882264_02-01-2026_09_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29882286, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29882287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29882288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29882289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29882290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29882291, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29882292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29882293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29882294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29882295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29882296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29882297, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2839494, 'mtr_portfolio_id': 29882750, 'dashboard_result_id': 18942585, '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_P29882750_02-01-2026_10_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29882754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29882755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29882756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29882757, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29882758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29882759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29882760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29882761, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29882762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29882763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29882764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29882765, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2839494, 'mtr_portfolio_id': 29883285, 'dashboard_result_id': 18942586, '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_P29883285_02-01-2026_10_17_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29883321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29883322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29883323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29883324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29883325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29883326, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29883327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29883328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29883329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29883330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29883331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29883332, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2839494, 'mtr_portfolio_id': 29883844, 'dashboard_result_id': 18942587, '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_P29883844_02-01-2026_10_32_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29883853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29883854, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29883855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29883856, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29883857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29883858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29883859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29883860, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29883861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29883862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29883863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29883864, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2839494, 'mtr_portfolio_id': 29885052, 'dashboard_result_id': 18942588, '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_P29885052_02-01-2026_11_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29885054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29885055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29885056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29885057, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29885058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29885059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29885060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29885061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29885062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29885063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29885064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29885065, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2839494, 'mtr_portfolio_id': 29885399, 'dashboard_result_id': 18942589, '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_P29885399_02-01-2026_11_19_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29885444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29885445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29885446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29885447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29885448, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29885449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29885450, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29885451, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29885452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29885453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29885454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29885455, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2839494, 'mtr_portfolio_id': 29886087, 'dashboard_result_id': 18942590, '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_P29886087_02-01-2026_11_33_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29886092, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29886093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29886094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29886095, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29886096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29886097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29886098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29886099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29886100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29886101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29886102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29886103, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2839494, 'mtr_portfolio_id': 29886560, 'dashboard_result_id': 18942591, '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_P29886560_02-01-2026_11_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29886572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29886573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29886574, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29886575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29886576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29886577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29886578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29886579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29886580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29886581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29886582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29886583, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2839494, 'mtr_portfolio_id': 29887236, 'dashboard_result_id': 18942592, '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_P29887236_02-01-2026_12_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29887240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29887241, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29887242, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29887243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29887244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29887245, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29887246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29887247, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29887248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29887249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29887250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29887251, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2839494, 'mtr_portfolio_id': 29887673, 'dashboard_result_id': 18942593, '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_P29887673_02-01-2026_12_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29887690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29887691, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29887692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29887693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29887694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29887695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29887696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29887697, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29887698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29887699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29887700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29887701, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2839494, 'mtr_portfolio_id': 29888232, 'dashboard_result_id': 18942594, '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_P29888232_02-01-2026_12_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29888240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29888241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29888242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29888243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29888244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29888245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29888246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29888247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29888248, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29888249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29888250, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29888251, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2839494, 'mtr_portfolio_id': 29888770, 'dashboard_result_id': 18942595, '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_P29888770_02-01-2026_12_40_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29888790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29888791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29888792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29888793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29888794, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29888795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29888796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29888797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29888798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29888799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29888800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29888801, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2839494, 'mtr_portfolio_id': 29889878, 'dashboard_result_id': 18942596, '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_P29889878_02-01-2026_13_17_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29889898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29889899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29889900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29889901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29889902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29889903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29889904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29889905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29889906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29889907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29889908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29889909, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2839494, 'mtr_portfolio_id': 29890060, 'dashboard_result_id': 18942597, '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_P29890060_02-01-2026_13_33_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29890063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29890064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29890065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29890066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29890067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29890068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29890069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29890070, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29890071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29890072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29890073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29890074, 'pht': 3726}}"}, {'dashboat_entry_day': 2829505, 'dashboard_run_id': 2839494, 'mtr_portfolio_id': 29890504, 'dashboard_result_id': 18942598, '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_P29890504_02-01-2026_13_37_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29890516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29890517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29890518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29890519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29890520, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29890521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29890522, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29890523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29890524, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29890525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29890526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29890527, '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 = 29875698 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': 4301255, 'mtr_portfolio_id': 29875698, 'created_at': datetime.datetime(2026, 1, 2, 6, 16, 59), 'result': '0.07492098906161705', 'result_long': None, 'result_double': None}] Qualite : 0.07492098906161705 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29875698 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29875698_02-01-2026_06_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29875698 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_P29875698_02-01-2026_06_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29875700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29875701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29875702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29875703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29875704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29875705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29875706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29875707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29875708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29875709, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29875710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29875711, 'pht': 3726}}" where mtr_portfolio_id = 29875698 and dashboard_run_id = 2839494 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`=29875698 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18942574, 0.07492098906161705, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29875698_02-01-2026_06_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29875700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29875701, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29875702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29875703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29875704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29875705, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29875706, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29875707, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29875708, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29875709, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29875710, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29875711, '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 = 29875852 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': 4301270, 'mtr_portfolio_id': 29875852, 'created_at': datetime.datetime(2026, 1, 2, 6, 33), 'result': '0.04900243563743138', 'result_long': None, 'result_double': None}] Qualite : 0.04900243563743138 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29875852 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29875852_02-01-2026_06_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29875852 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_P29875852_02-01-2026_06_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29875855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29875856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29875857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29875858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29875859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29875860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29875861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29875862, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29875863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29875864, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29875865, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29875866, 'pht': 3726}}" where mtr_portfolio_id = 29875852 and dashboard_run_id = 2839494 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`=29875852 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18942575, 0.04900243563743138, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29875852_02-01-2026_06_33_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29875855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29875856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29875857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29875858, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29875859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29875860, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29875861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29875862, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29875863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29875864, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29875865, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29875866, '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 = 29876194 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': 4301315, 'mtr_portfolio_id': 29876194, 'created_at': datetime.datetime(2026, 1, 2, 6, 52, 31), 'result': '0.05190981045133743', 'result_long': None, 'result_double': None}] Qualite : 0.05190981045133743 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29876194 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29876194_02-01-2026_06_52_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29876194 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_P29876194_02-01-2026_06_52_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29876199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29876200, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29876201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29876202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29876203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29876204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29876205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29876206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29876207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29876208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29876209, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29876210, 'pht': 3726}}" where mtr_portfolio_id = 29876194 and dashboard_run_id = 2839494 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`=29876194 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18942576, 0.05190981045133743, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29876194_02-01-2026_06_52_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29876199, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29876200, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29876201, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29876202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29876203, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29876204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29876205, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29876206, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29876207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29876208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29876209, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29876210, '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 = 29876652 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': 4301388, 'mtr_portfolio_id': 29876652, 'created_at': datetime.datetime(2026, 1, 2, 7, 2, 59), 'result': '0.05348336988569866', 'result_long': None, 'result_double': None}] Qualite : 0.05348336988569866 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29876652 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29876652_02-01-2026_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29876652 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_P29876652_02-01-2026_07_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29876653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29876654, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29876655, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29876656, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29876657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29876658, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29876659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29876660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29876661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29876662, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29876663, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29876664, 'pht': 3726}}" where mtr_portfolio_id = 29876652 and dashboard_run_id = 2839494 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`=29876652 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18942577, 0.05348336988569866, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29876652_02-01-2026_07_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29876653, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29876654, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29876655, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29876656, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29876657, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29876658, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29876659, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29876660, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29876661, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29876662, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29876663, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29876664, '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 = 29876801 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': 4301433, 'mtr_portfolio_id': 29876801, 'created_at': datetime.datetime(2026, 1, 2, 7, 16, 58), 'result': '0.04076281109278468', 'result_long': None, 'result_double': None}] Qualite : 0.04076281109278468 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29876801 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29876801_02-01-2026_07_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29876801 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_P29876801_02-01-2026_07_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29876851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29876852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29876853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29876854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29876855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29876856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29876857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29876858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29876859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29876860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29876861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29876862, 'pht': 3726}}" where mtr_portfolio_id = 29876801 and dashboard_run_id = 2839494 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`=29876801 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18942578, 0.04076281109278468, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29876801_02-01-2026_07_16_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29876851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29876852, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29876853, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29876854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29876855, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29876856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29876857, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29876858, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29876859, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29876860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29876861, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29876862, '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 = 29877372 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': 4301509, 'mtr_portfolio_id': 29877372, 'created_at': datetime.datetime(2026, 1, 2, 7, 33, 34), 'result': '0.07603382662942415', 'result_long': None, 'result_double': None}] Qualite : 0.07603382662942415 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29877372 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29877372_02-01-2026_07_33_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29877372 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_P29877372_02-01-2026_07_33_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29877428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29877429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29877430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29877431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29877432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29877433, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29877434, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29877435, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29877436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29877437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29877438, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29877439, 'pht': 3726}}" where mtr_portfolio_id = 29877372 and dashboard_run_id = 2839494 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`=29877372 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18942579, 0.07603382662942415, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29877372_02-01-2026_07_33_34.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29877428, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29877429, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29877430, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29877431, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29877432, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29877433, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29877434, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29877435, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29877436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29877437, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29877438, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29877439, '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 = 29878166 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': 4301599, 'mtr_portfolio_id': 29878166, 'created_at': datetime.datetime(2026, 1, 2, 7, 48, 59), 'result': '0.05564820976051616', 'result_long': None, 'result_double': None}] Qualite : 0.05564820976051616 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29878166 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29878166_02-01-2026_07_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29878166 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_P29878166_02-01-2026_07_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29878167, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29878168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29878169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29878170, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29878171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29878172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29878173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29878174, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29878175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29878176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29878177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29878178, 'pht': 3726}}" where mtr_portfolio_id = 29878166 and dashboard_run_id = 2839494 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`=29878166 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18942580, 0.05564820976051616, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29878166_02-01-2026_07_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29878167, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29878168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29878169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29878170, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29878171, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29878172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29878173, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29878174, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29878175, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29878176, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29878177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29878178, '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 = 29879046 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': 4301685, 'mtr_portfolio_id': 29879046, 'created_at': datetime.datetime(2026, 1, 2, 8, 2, 59), 'result': '0.07583762117707248', 'result_long': None, 'result_double': None}] Qualite : 0.07583762117707248 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29879046 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29879046_02-01-2026_08_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29879046 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_P29879046_02-01-2026_08_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29879072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29879073, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29879074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29879075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29879076, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29879077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29879078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29879079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29879080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29879081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29879082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29879083, 'pht': 3726}}" where mtr_portfolio_id = 29879046 and dashboard_run_id = 2839494 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`=29879046 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18942581, 0.07583762117707248, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29879046_02-01-2026_08_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29879072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29879073, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29879074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29879075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29879076, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29879077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29879078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29879079, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29879080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29879081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29879082, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29879083, '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 = 29879603 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': 4301764, 'mtr_portfolio_id': 29879603, 'created_at': datetime.datetime(2026, 1, 2, 8, 20, 59), 'result': '0.08415306723980351', 'result_long': None, 'result_double': None}] Qualite : 0.08415306723980351 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29879603 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29879603_02-01-2026_08_21_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29879603 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_P29879603_02-01-2026_08_21_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29879618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29879619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29879620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29879621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29879622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29879623, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29879624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29879625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29879626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29879627, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29879628, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29879629, 'pht': 3726}}" where mtr_portfolio_id = 29879603 and dashboard_run_id = 2839494 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`=29879603 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18942582, 0.08415306723980351, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29879603_02-01-2026_08_21_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29879618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29879619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29879620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29879621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29879622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29879623, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29879624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29879625, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29879626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29879627, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29879628, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29879629, '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 = 29880964 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': 4301941, 'mtr_portfolio_id': 29880964, 'created_at': datetime.datetime(2026, 1, 2, 9, 32, 58), 'result': '0.034355635543217904', 'result_long': None, 'result_double': None}] Qualite : 0.034355635543217904 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29880964 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29880964_02-01-2026_09_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29880964 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_P29880964_02-01-2026_09_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29880989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29880990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29880991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29880992, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29880993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29880994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29880995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29880996, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29880997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29880998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29880999, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29881000, 'pht': 3726}}" where mtr_portfolio_id = 29880964 and dashboard_run_id = 2839494 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`=29880964 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18942583, 0.034355635543217904, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29880964_02-01-2026_09_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29880989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29880990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29880991, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29880992, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29880993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29880994, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29880995, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29880996, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29880997, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29880998, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29880999, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29881000, '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 = 29882264 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': 4302074, 'mtr_portfolio_id': 29882264, 'created_at': datetime.datetime(2026, 1, 2, 9, 46, 58), 'result': '0.055925634359195155', 'result_long': None, 'result_double': None}] Qualite : 0.055925634359195155 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29882264 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29882264_02-01-2026_09_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29882264 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_P29882264_02-01-2026_09_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29882286, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29882287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29882288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29882289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29882290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29882291, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29882292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29882293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29882294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29882295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29882296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29882297, 'pht': 3726}}" where mtr_portfolio_id = 29882264 and dashboard_run_id = 2839494 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`=29882264 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18942584, 0.055925634359195155, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29882264_02-01-2026_09_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29882286, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29882287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29882288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29882289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29882290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29882291, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29882292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29882293, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29882294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29882295, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29882296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29882297, '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 = 29882750 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': 4302114, 'mtr_portfolio_id': 29882750, 'created_at': datetime.datetime(2026, 1, 2, 10, 3), 'result': '0.04812454678514593', 'result_long': None, 'result_double': None}] Qualite : 0.04812454678514593 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29882750 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29882750_02-01-2026_10_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29882750 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_P29882750_02-01-2026_10_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29882754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29882755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29882756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29882757, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29882758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29882759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29882760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29882761, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29882762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29882763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29882764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29882765, 'pht': 3726}}" where mtr_portfolio_id = 29882750 and dashboard_run_id = 2839494 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`=29882750 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18942585, 0.04812454678514593, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29882750_02-01-2026_10_03_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29882754, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29882755, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29882756, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29882757, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29882758, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29882759, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29882760, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29882761, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29882762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29882763, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29882764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29882765, '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 = 29883285 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': 4302179, 'mtr_portfolio_id': 29883285, 'created_at': datetime.datetime(2026, 1, 2, 10, 16, 59), 'result': '0.05391099478832504', 'result_long': None, 'result_double': None}] Qualite : 0.05391099478832504 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29883285 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29883285_02-01-2026_10_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29883285 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_P29883285_02-01-2026_10_17_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29883321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29883322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29883323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29883324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29883325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29883326, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29883327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29883328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29883329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29883330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29883331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29883332, 'pht': 3726}}" where mtr_portfolio_id = 29883285 and dashboard_run_id = 2839494 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`=29883285 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18942586, 0.05391099478832504, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29883285_02-01-2026_10_17_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29883321, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29883322, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29883323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29883324, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29883325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29883326, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29883327, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29883328, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29883329, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29883330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29883331, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29883332, '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 = 29883844 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': 4302271, 'mtr_portfolio_id': 29883844, 'created_at': datetime.datetime(2026, 1, 2, 10, 32, 57), 'result': '0.05451822525507153', 'result_long': None, 'result_double': None}] Qualite : 0.05451822525507153 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29883844 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29883844_02-01-2026_10_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29883844 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_P29883844_02-01-2026_10_32_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29883853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29883854, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29883855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29883856, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29883857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29883858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29883859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29883860, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29883861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29883862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29883863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29883864, 'pht': 3726}}" where mtr_portfolio_id = 29883844 and dashboard_run_id = 2839494 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`=29883844 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18942587, 0.05451822525507153, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29883844_02-01-2026_10_32_57.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29883853, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29883854, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29883855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29883856, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29883857, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29883858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29883859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29883860, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29883861, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29883862, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29883863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29883864, '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 = 29885052 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': 4302410, 'mtr_portfolio_id': 29885052, 'created_at': datetime.datetime(2026, 1, 2, 11, 3), 'result': '0.04917771762162418', 'result_long': None, 'result_double': None}] Qualite : 0.04917771762162418 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29885052 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29885052_02-01-2026_11_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29885052 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_P29885052_02-01-2026_11_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29885054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29885055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29885056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29885057, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29885058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29885059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29885060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29885061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29885062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29885063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29885064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29885065, 'pht': 3726}}" where mtr_portfolio_id = 29885052 and dashboard_run_id = 2839494 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`=29885052 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18942588, 0.04917771762162418, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29885052_02-01-2026_11_03_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29885054, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29885055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29885056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29885057, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29885058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29885059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29885060, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29885061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29885062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29885063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29885064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29885065, '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 = 29885399 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': 4302470, 'mtr_portfolio_id': 29885399, 'created_at': datetime.datetime(2026, 1, 2, 11, 19, 29), 'result': '0.05354351654812283', 'result_long': None, 'result_double': None}] Qualite : 0.05354351654812283 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29885399 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29885399_02-01-2026_11_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29885399 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_P29885399_02-01-2026_11_19_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29885444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29885445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29885446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29885447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29885448, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29885449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29885450, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29885451, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29885452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29885453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29885454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29885455, 'pht': 3726}}" where mtr_portfolio_id = 29885399 and dashboard_run_id = 2839494 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`=29885399 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18942589, 0.05354351654812283, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29885399_02-01-2026_11_19_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29885444, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29885445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29885446, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29885447, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29885448, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29885449, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29885450, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29885451, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29885452, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29885453, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29885454, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29885455, '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 = 29886087 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': 4302556, 'mtr_portfolio_id': 29886087, 'created_at': datetime.datetime(2026, 1, 2, 11, 33, 1), 'result': '0.08963982782625529', 'result_long': None, 'result_double': None}] Qualite : 0.08963982782625529 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29886087 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29886087_02-01-2026_11_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29886087 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_P29886087_02-01-2026_11_33_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29886092, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29886093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29886094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29886095, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29886096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29886097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29886098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29886099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29886100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29886101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29886102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29886103, 'pht': 3726}}" where mtr_portfolio_id = 29886087 and dashboard_run_id = 2839494 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`=29886087 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18942590, 0.08963982782625529, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29886087_02-01-2026_11_33_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29886092, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29886093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29886094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29886095, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29886096, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29886097, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29886098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29886099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29886100, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29886101, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29886102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29886103, '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 = 29886560 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': 4302616, 'mtr_portfolio_id': 29886560, 'created_at': datetime.datetime(2026, 1, 2, 11, 46, 58), 'result': '0.09058900617271963', 'result_long': None, 'result_double': None}] Qualite : 0.09058900617271963 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29886560 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29886560_02-01-2026_11_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29886560 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_P29886560_02-01-2026_11_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29886572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29886573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29886574, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29886575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29886576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29886577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29886578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29886579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29886580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29886581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29886582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29886583, 'pht': 3726}}" where mtr_portfolio_id = 29886560 and dashboard_run_id = 2839494 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`=29886560 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18942591, 0.09058900617271963, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29886560_02-01-2026_11_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29886572, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29886573, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29886574, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29886575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29886576, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29886577, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29886578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29886579, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29886580, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29886581, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29886582, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29886583, '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 = 29887236 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': 4302693, 'mtr_portfolio_id': 29887236, 'created_at': datetime.datetime(2026, 1, 2, 12, 2, 57), 'result': '0.04614894091967786', 'result_long': None, 'result_double': None}] Qualite : 0.04614894091967786 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29887236 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29887236_02-01-2026_12_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29887236 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_P29887236_02-01-2026_12_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29887240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29887241, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29887242, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29887243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29887244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29887245, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29887246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29887247, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29887248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29887249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29887250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29887251, 'pht': 3726}}" where mtr_portfolio_id = 29887236 and dashboard_run_id = 2839494 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`=29887236 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18942592, 0.04614894091967786, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29887236_02-01-2026_12_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29887240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29887241, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29887242, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29887243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29887244, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29887245, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29887246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29887247, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29887248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29887249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29887250, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29887251, '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 = 29887673 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': 4302771, 'mtr_portfolio_id': 29887673, 'created_at': datetime.datetime(2026, 1, 2, 12, 17), 'result': '0.053007170289858296', 'result_long': None, 'result_double': None}] Qualite : 0.053007170289858296 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29887673 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29887673_02-01-2026_12_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29887673 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_P29887673_02-01-2026_12_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29887690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29887691, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29887692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29887693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29887694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29887695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29887696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29887697, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29887698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29887699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29887700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29887701, 'pht': 3726}}" where mtr_portfolio_id = 29887673 and dashboard_run_id = 2839494 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`=29887673 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18942593, 0.053007170289858296, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29887673_02-01-2026_12_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29887690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29887691, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29887692, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29887693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29887694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29887695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29887696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29887697, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29887698, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29887699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29887700, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29887701, '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 = 29888232 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': 4302831, 'mtr_portfolio_id': 29888232, 'created_at': datetime.datetime(2026, 1, 2, 12, 33, 1), 'result': '0.03582819108119962', 'result_long': None, 'result_double': None}] Qualite : 0.03582819108119962 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29888232 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29888232_02-01-2026_12_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29888232 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_P29888232_02-01-2026_12_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29888240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29888241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29888242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29888243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29888244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29888245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29888246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29888247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29888248, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29888249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29888250, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29888251, 'pht': 3726}}" where mtr_portfolio_id = 29888232 and dashboard_run_id = 2839494 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`=29888232 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18942594, 0.03582819108119962, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29888232_02-01-2026_12_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29888240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29888241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29888242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29888243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29888244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29888245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29888246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29888247, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29888248, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29888249, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29888250, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29888251, '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 = 29888770 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': 4302916, 'mtr_portfolio_id': 29888770, 'created_at': datetime.datetime(2026, 1, 2, 13, 8, 58), 'result': '0.05506664571258238', 'result_long': None, 'result_double': None}] Qualite : 0.05506664571258238 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29888770 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29888770_02-01-2026_13_08_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29888770 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_P29888770_02-01-2026_13_08_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29888790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29888791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29888792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29888793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29888794, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29888795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29888796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29888797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29888798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29888799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29888800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29888801, 'pht': 3726}}" where mtr_portfolio_id = 29888770 and dashboard_run_id = 2839494 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`=29888770 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18942595, 0.05506664571258238, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29888770_02-01-2026_13_08_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29888790, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29888791, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29888792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29888793, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29888794, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29888795, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29888796, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29888797, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29888798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29888799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29888800, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29888801, '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 = 29889878 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': 4303076, 'mtr_portfolio_id': 29889878, 'created_at': datetime.datetime(2026, 1, 2, 13, 17), 'result': '0.09911732814472843', 'result_long': None, 'result_double': None}] Qualite : 0.09911732814472843 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29889878 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29889878_02-01-2026_13_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29889878 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_P29889878_02-01-2026_13_17_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29889898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29889899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29889900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29889901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29889902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29889903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29889904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29889905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29889906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29889907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29889908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29889909, 'pht': 3726}}" where mtr_portfolio_id = 29889878 and dashboard_run_id = 2839494 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`=29889878 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18942596, 0.09911732814472843, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29889878_02-01-2026_13_17_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29889898, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29889899, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29889900, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29889901, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29889902, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29889903, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29889904, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29889905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29889906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29889907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29889908, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29889909, '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 = 29890060 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': 4303090, 'mtr_portfolio_id': 29890060, 'created_at': datetime.datetime(2026, 1, 2, 13, 33, 58), 'result': '0.07105733348894742', 'result_long': None, 'result_double': None}] Qualite : 0.07105733348894742 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29890060 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29890060_02-01-2026_13_33_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29890060 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_P29890060_02-01-2026_13_33_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29890063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29890064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29890065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29890066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29890067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29890068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29890069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29890070, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29890071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29890072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29890073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29890074, 'pht': 3726}}" where mtr_portfolio_id = 29890060 and dashboard_run_id = 2839494 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`=29890060 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18942597, 0.07105733348894742, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29890060_02-01-2026_13_33_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29890063, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29890064, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29890065, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29890066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29890067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29890068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29890069, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29890070, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29890071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29890072, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29890073, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29890074, '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 = 29890504 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': 4303142, 'mtr_portfolio_id': 29890504, 'created_at': datetime.datetime(2026, 1, 2, 13, 38, 59), 'result': '0.07104572775946964', 'result_long': None, 'result_double': None}] Qualite : 0.07104572775946964 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29890504 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29890504_02-01-2026_13_38_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29890504 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_P29890504_02-01-2026_13_38_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29890516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29890517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29890518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29890519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29890520, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29890521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29890522, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29890523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29890524, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29890525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29890526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29890527, 'pht': 3726}}" where mtr_portfolio_id = 29890504 and dashboard_run_id = 2839494 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`=29890504 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18942598, 0.07104572775946964, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29890504_02-01-2026_13_38_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29890516, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29890517, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29890518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29890519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29890520, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29890521, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29890522, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29890523, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29890524, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29890525, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29890526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29890527, '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 (29875698,29875852,29876194,29876652,29876801,29877372,29878166,29879046,29879603,29880964,29882264,29882750,29883285,29883844,29885052,29885399,29886087,29886560,29887236,29887673,29888232,29888770,29889878,29890060,29890504) result : ((1402107997,), (1402108121,), (1402108122,), (1402108136,), (1402108137,), (1402108139,), (1402108157,), (1402108158,), (1402108174,), (1402108176,), (1402108178,), (1402108195,), (1402108197,), (1402108198,), (1402108199,), (1402108223,), (1402108221,), (1402108243,), (1402108244,), (1402108245,), (1402108246,), (1402108250,), (1402108280,), (1402108282,), (1402108284,), (1402108309,), (1402108310,), (1402108311,), (1402108312,), (1402108316,), (1402108342,), (1402108344,), (1402108346,), (1402108349,), (1402108352,), (1402108355,), (1402108362,), (1402108363,), (1402108364,), (1402108369,), (1402108371,), (1402108372,), (1402108396,), (1402108397,), (1402108398,), (1402108399,), (1402108417,), (1402108419,), (1402108440,), (1402108441,), (1402108442,), (1402108464,), (1402108466,), (1402108489,), (1402108491,), (1402108493,), (1402108495,), (1402108499,), (1402108515,), (1402108517,), (1402108518,), (1402108519,), (1402108546,), (1402108547,), (1402108549,), (1402108552,), (1402108555,), (1402108568,), (1402108570,), (1402108572,), (1402108601,), (1402108603,), (1402108628,), (1402108625,), (1402108626,), (1402108646,), (1402108648,), (1402108665,), (1402108666,), (1402108690,), (1402108691,), (1402108693,), (1402108717,), (1402108718,), (1402108719,), (1402108744,), (1402108746,), (1402108769,), (1402108771,), (1402108774,), (1402108794,), (1402108798,), (1402108801,), (1402108805,), (1402108809,), (1402108819,), (1402108821,), (1402108823,), (1402108846,), (1402108847,), (1402108848,), (1402108849,), (1402108851,), (1402108853,), (1402108872,), (1402108874,), (1402108876,), (1402108897,), (1402108899,), (1402108900,), (1402108902,), (1402108924,), (1402109147,), (1402109145,), (1402109179,), (1402109180,), (1402109198,), (1402109199,), (1402109200,), (1402109221,), (1402109223,), (1402109224,), (1402109237,), (1402109239,), (1402109242,), (1402109245,), (1402109261,), (1402109264,), (1402109268,), (1402109273,), (1402109277,), (1402109308,), (1402109344,), (1402109388,), (1402110195,), (1402110146,), (1402110174,), (1402110184,), (1402110362,), (1402110363,), (1402110364,), (1402110365,), (1402110367,), (1402110382,), (1402110384,), (1402110387,), (1402110391,), (1402110408,), (1402110410,), (1402110412,), (1402110415,), (1402110438,), (1402110441,), (1402110442,), (1402110444,), (1402110616,), (1402110632,), (1402110636,), (1402110638,), (1402110642,), (1402110655,), (1402110657,), (1402110678,), (1402110679,), (1402110680,), (1402110682,), (1402110697,), (1402110699,), (1402110711,), (1402110830,), (1402110835,), (1402110846,), (1402110854,), (1402110883,), (1402110887,), (1402110889,), (1402110902,), (1402110950,), (1402110954,), (1402110977,), (1402110978,), (1402110980,), (1402110982,), (1402110985,), (1402110988,), (1402111007,), (1402111009,), (1402111012,), (1402111015,), (1402111035,), (1402111037,), (1402111039,), (1402111041,), (1402111043,), (1402111079,), (1402111074,), (1402111075,), (1402111077,), (1402111095,), (1402111097,), (1402111104,), (1402111131,), (1402111142,), (1402111174,), (1402111211,), (1402111246,), (1402111324,), (1402111325,), (1402111326,), (1402111328,), (1402111332,), (1402111448,), (1402111463,), (1402111466,), (1402111526,), (1402111568,), (1402111601,), (1402111671,), (1402111677,), (1402111712,), (1402111736,), (1402111737,), (1402111741,), (1402111773,), (1402111775,), (1402111777,), (1402111779,), (1402111783,), (1402111858,), (1402111890,), (1402111901,), (1402111915,), (1402112101,), (1402112143,), (1402112173,), (1402112206,), (1402112304,), (1402112305,), (1402112306,), (1402112323,), (1402112325,), (1402112327,), (1402112329,), (1402112353,), (1402112354,), (1402112356,), (1402112368,), (1402112734,), (1402112736,), (1402112737,), (1402112759,), (1402112790,), (1402113028,), (1402113069,), (1402113083,), (1402113084,), (1402113146,), (1402113153,), (1402113165,), (1402113223,), (1402113213,), (1402113214,), (1402113216,), (1402113219,), (1402113433,), (1402113512,), (1402113520,), (1402113560,), (1402113576,), (1402113658,), (1402113659,), (1402113661,), (1402113684,), (1402113712,), (1402113714,), (1402113717,), (1402113736,), (1402113745,), (1402113967,), (1402113969,), (1402113971,), (1402114131,), (1402114174,), (1402114175,), (1402114216,), (1402114302,), (1402114303,), (1402114305,), (1402114307,), (1402114617,), (1402114644,), (1402114648,), (1402114652,), (1402114687,), (1402114712,), (1402114741,), (1402114743,), (1402114761,), (1402114846,), (1402114848,), (1402114850,), (1402114853,), (1402114867,), (1402114869,), (1402114877,), (1402115241,), (1402115256,), (1402115288,), (1402115306,), (1402115325,), (1402115326,), (1402115328,), (1402115331,), (1402115445,), (1402115447,), (1402115471,), (1402115499,), (1402115500,), (1402115503,), (1402115504,), (1402115508,), (1402115545,), (1402115532,), (1402115534,), (1402115537,), (1402115539,), (1402115542,), (1402115734,), (1402115735,), (1402115767,), (1402116105,), (1402116106,), (1402116108,), (1402116110,), (1402116138,), (1402116139,), (1402116141,), (1402116142,), (1402116162,), (1402116164,), (1402116167,), (1402116186,), (1402116340,), (1402116356,), (1402116357,), (1402116360,), (1402116398,), (1402116400,), (1402116424,), (1402116425,), (1402116426,), (1402116428,), (1402116443,), (1402116445,), (1402116447,), (1402116475,), (1402116476,), (1402116478,), (1402116480,), (1402116612,), (1402116615,), (1402116618,), (1402116642,), (1402116647,), (1402116651,), (1402116635,), (1402116637,), (1402116639,), (1402116679,), (1402116701,), (1402116732,), (1402117153,), (1402117191,), (1402117249,), (1402117315,), (1402117374,), (1402117436,), (1402117879,), (1402117880,), (1402117882,), (1402118318,), (1402118426,), (1402118428,), (1402118429,), (1402118448,), (1402118450,), (1402118479,), (1402118501,), (1402118502,), (1402118504,), (1402118570,), (1402118572,), (1402118592,), (1402118593,), (1402118619,), (1402118625,), (1402118628,), (1402118642,), (1402118644,), (1402118645,), (1402118864,), (1402120314,), (1402120321,), (1402120689,), (1402120721,), (1402120797,), (1402120799,), (1402120821,), (1402121078,), (1402121080,), (1402121298,), (1402121312,), (1402121317,), (1402121329,), (1402121343,), (1402121469,), (1402121471,), (1402121544,), (1402121741,), (1402121742,), (1402121800,), (1402121809,), (1402126312,), (1402126560,), (1402126566,), (1402126568,), (1402126571,), (1402126674,), (1402126688,), (1402126745,), (1402126765,), (1402126771,), (1402126788,), (1402127066,), (1402127092,), (1402127093,), (1402127157,), (1402127162,), (1402127164,), (1402127167,), (1402127170,), (1402127172,), (1402127183,), (1402127184,), (1402127185,), (1402127213,), (1402127216,), (1402127218,), (1402127220,), (1402127223,), (1402127263,), (1402127264,), (1402127265,), (1402127701,), (1402127733,), (1402127766,), (1402127799,), (1402128190,), (1402128224,), (1402128230,), (1402128232,), (1402128408,), (1402128447,), (1402128481,), (1402128505,), (1402128752,), (1402128786,), (1402128829,), (1402128853,), (1402129170,), (1402129134,), (1402129324,), (1402129357,), (1402129408,), (1402129409,), (1402129411,), (1402129414,), (1402129438,), (1402129439,), (1402129441,), (1402129444,), (1402129728,), (1402129758,), (1402129795,), (1402129798,), (1402129801,), (1402129804,), (1402129814,), (1402129815,), (1402129817,), (1402129852,), (1402129853,), (1402129855,), (1402129870,), (1402129871,), (1402129890,), (1402129892,), (1402129894,), (1402129918,), (1402129920,), (1402129923,), (1402129942,), (1402129965,), (1402129967,), (1402129969,), (1402129972,), (1402129975,), (1402130059,), (1402130069,), (1402130079,), (1402130117,), (1402130119,), (1402130120,), (1402130122,), (1402130125,), (1402130890,), (1402130958,), (1402131023,), (1402131069,), (1402131160,), (1402131294,), (1402131356,), (1402131361,), (1402131383,), (1402131679,), (1402131651,), (1402131673,), (1402131676,), (1402131805,), (1402131810,), (1402131812,), (1402131851,), (1402131995,), (1402131996,), (1402131998,), (1402132025,), (1402132026,), (1402132027,), (1402132030,), (1402132061,), (1402132062,), (1402132064,), (1402132067,), (1402132096,), (1402132098,), (1402132100,), (1402132103,), (1402132107,), (1402132138,), (1402132139,), (1402132141,), (1402132262,), (1402132273,), (1402132275,), (1402132278,), (1402132295,), (1402132296,), (1402132297,), (1402132396,), (1402132436,), (1402132470,), (1402132502,), (1402132657,), (1402132697,), (1402132698,), (1402132701,), (1402132714,), (1402132716,), (1402132720,), (1402132770,), (1402132771,), (1402132794,), (1402132795,), (1402132797,), (1402132799,), (1402132802,), (1402132805,), (1402132954,), (1402132987,), (1402133014,), (1402133017,), (1402133063,), (1402133057,), (1402133058,), (1402133059,), (1402133060,), (1402133198,), (1402133200,), (1402133202,), (1402133205,), (1402133223,), (1402133225,), (1402133227,), (1402133229,), (1402133232,), (1402133391,), (1402133398,), (1402133399,), (1402133400,), (1402133403,), (1402133429,), (1402133547,), (1402133550,), (1402133552,), (1402133555,), (1402133558,), (1402133560,), (1402133566,), (1402133568,), (1402133570,), (1402133572,), (1402133574,), (1402133577,), (1402133578,), (1402133581,), (1402133584,), (1402133590,), (1402133593,), (1402133610,), (1402133612,), (1402133614,), (1402133617,), (1402133669,), (1402133670,), (1402133679,), (1402133681,), (1402133684,), (1402133686,), (1402133737,), (1402133739,), (1402133742,), (1402133745,), (1402133798,), (1402133799,), (1402133800,), (1402133802,), (1402133805,), (1402133807,), (1402133828,), (1402133830,), (1402133832,), (1402133835,), (1402133838,), (1402133855,), (1402133856,), (1402133857,), (1402133858,), (1402133862,), (1402133864,), (1402133910,), (1402133912,), (1402133914,), (1402133917,), (1402133921,), (1402133935,), (1402133971,), (1402133973,), (1402134017,), (1402134899,), (1402134929,), (1402134931,), (1402134933,), (1402134935,), (1402134938,), (1402134962,), (1402135006,), (1402135008,), (1402135010,), (1402135044,), (1402135045,), (1402135046,), (1402135048,), (1402135150,), (1402135152,), (1402135154,), (1402135157,), (1402135201,), (1402135202,), (1402135204,), (1402135211,), (1402135292,), (1402135295,), (1402135297,), (1402135316,), (1402135318,), (1402135320,), (1402135323,), (1402135397,), (1402135427,), (1402135458,), (1402136052,), (1402136087,), (1402136124,), (1402136158,), (1402136160,), (1402136163,), (1402136367,), (1402136359,), (1402136362,), (1402136365,), (1402136383,), (1402136386,), (1402136388,), (1402136390,), (1402136393,), (1402136407,), (1402136408,), (1402136409,), (1402136410,), (1402136412,), (1402137035,), (1402137045,), (1402137089,), (1402137175,), (1402137422,), (1402137453,), (1402137487,), (1402137520,), (1402137554,), (1402137930,), (1402137963,), (1402137995,), (1402138028,), (1402138221,), (1402138257,), (1402138294,), (1402138612,), (1402138618,), (1402138626,), (1402138641,), (1402138706,), (1402138708,), (1402138758,), (1402138759,), (1402138760,), (1402138761,), (1402138763,), (1402138765,), (1402138819,), (1402138826,), (1402138828,), (1402138919,), (1402138962,), (1402139009,), (1402139270,), (1402139272,), (1402139273,), (1402139373,), (1402139374,), (1402139480,), (1402139501,), (1402139503,), (1402139545,), (1402139546,), (1402139547,), (1402139549,), (1402139552,), (1402139567,), (1402139572,), (1402139576,), (1402139580,), (1402139583,), (1402140125,), (1402140128,), (1402140130,), (1402140177,), (1402140179,), (1402140183,), (1402140186,), (1402140427,), (1402140430,), (1402140586,), (1402140587,), (1402140588,), (1402140589,), (1402140620,), (1402140622,), (1402140624,), (1402140627,), (1402140682,), (1402140654,), (1402140656,), (1402140709,), (1402140711,), (1402140712,), (1402140715,), (1402140727,), (1402140729,), (1402140732,), (1402140735,), (1402140739,), (1402140760,), (1402140763,), (1402140766,), (1402140767,), (1402140771,), (1402140802,), (1402140804,), (1402140806,), (1402140935,), (1402140988,), (1402140989,), (1402141011,), (1402141012,), (1402141059,), (1402141068,), (1402141075,), (1402141090,), (1402141212,), (1402141244,), (1402141276,), (1402141310,), (1402141344,), (1402141345,), (1402141346,), (1402141461,), (1402141498,), (1402141511,), (1402141525,), (1402141526,), (1402141528,), (1402141530,), (1402141533,), (1402141536,), (1402141593,), (1402141600,), (1402141602,), (1402141611,), (1402141804,), (1402141810,), (1402141812,), (1402141827,), (1402142064,), (1402142062,), (1402142572,), (1402142575,), (1402142578,), (1402142605,), (1402142667,), (1402142677,), (1402142684,), (1402142686,), (1402142807,), (1402142808,), (1402142830,), (1402142835,), (1402142838,), (1402142841,), (1402142865,), (1402143187,), (1402143189,), (1402143192,), (1402143210,), (1402143212,), (1402143236,), (1402143237,), (1402143238,), (1402143240,), (1402143256,), (1402143258,), (1402143260,), (1402143263,), (1402143311,), (1402143312,), (1402143314,), (1402143318,), (1402143324,), (1402143360,), (1402143364,), (1402143367,), (1402143378,), (1402143379,), (1402143558,), (1402143420,), (1402143527,), (1402143964,), (1402144364,), (1402144373,), (1402144395,), (1402144420,), (1402144568,), (1402144603,), (1402144623,), (1402144652,), (1402145039,), (1402145072,), (1402145103,), (1402145415,), (1402145430,), (1402145440,), (1402145442,), (1402145934,), (1402145971,), (1402146196,), (1402146207,), (1402146227,), (1402146238,), (1402146259,), (1402146260,), (1402146261,), (1402146262,), (1402146313,), (1402146471,), (1402146478,), (1402146805,), (1402146807,), (1402146809,), (1402146904,), (1402147135,), (1402147133,), (1402147134,), (1402147151,), (1402147152,), (1402147154,), (1402147157,), (1402147161,), (1402147174,), (1402147175,), (1402147176,), (1402147179,), (1402147183,), (1402147201,), (1402147203,), (1402147207,), (1402147212,), (1402147230,), (1402147232,), (1402147235,), (1402147240,), (1402147252,), (1402147254,), (1402147256,), (1402147290,), (1402147292,), (1402147293,), (1402147295,), (1402147299,), (1402147350,), (1402147351,), (1402147352,), (1402147353,), (1402147355,), (1402147389,), (1402147391,), (1402147393,), (1402147396,), (1402147423,), (1402147424,), (1402147440,), (1402147441,), (1402147442,), (1402147468,), (1402147469,), (1402147471,), (1402147473,), (1402147502,), (1402147504,), (1402147517,), (1402147519,), (1402147521,), (1402147615,), (1402147617,), (1402147619,), (1402147662,), (1402147650,), (1402147652,), (1402147655,), (1402147659,), (1402147676,), (1402147677,), (1402147686,), (1402147689,), (1402147704,), (1402147705,), (1402147707,), (1402147710,), (1402147714,), (1402147717,), (1402147766,), (1402147767,), (1402147769,), (1402147771,), (1402147814,), (1402147816,), (1402147818,), (1402147904,), (1402147906,), (1402147907,), (1402147909,), (1402147913,), (1402147938,), (1402147940,), (1402147942,), (1402147945,), (1402147949,), (1402147982,), (1402148007,), (1402148026,), (1402148028,), (1402148030,), (1402148033,), (1402148037,), (1402148059,), (1402151757,), (1402151756,), (1402151801,), (1402151917,), (1402152032,), (1402152050,), (1402152051,), (1402152053,), (1402152056,), (1402152074,), (1402152075,), (1402152076,), (1402152078,), (1402152105,), (1402152148,), (1402152141,), (1402152143,), (1402152145,), (1402152177,), (1402152178,), (1402152180,), (1402152182,), (1402152191,), (1402152224,), (1402152273,), (1402152274,), (1402152276,), (1402152278,), (1402152281,), (1402152294,), (1402152296,), (1402152298,), (1402152301,), (1402152304,), (1402152329,), (1402152330,), (1402152331,), (1402152334,), (1402152342,), (1402152374,), (1402152500,), (1402152662,), (1402152668,), (1402152672,), (1402152680,), (1402152684,), (1402152693,), (1402152742,), (1402152744,), (1402152747,), (1402152749,), (1402152760,), (1402152762,), (1402152789,), (1402152819,), (1402152851,), (1402152967,), (1402153034,), (1402153037,), (1402153066,), (1402153055,), (1402153057,), (1402153060,), (1402153063,), (1402153228,), (1402153230,), (1402153231,), (1402153232,), (1402153234,), (1402153283,), (1402153284,), (1402153285,), (1402153323,), (1402153421,), (1402153423,), (1402153425,), (1402153427,), (1402153584,), (1402153586,), (1402153588,), (1402153592,), (1402153596,), (1402153628,), (1402153630,), (1402153633,), (1402153637,), (1402153641,), (1402153649,), (1402153651,), (1402153652,), (1402153653,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02012026': {'nb_upload': 31, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29890504]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1402153653, 1402153652, 1402153651, 1402153649, 1402153641, 1402153637, 1402153633, 1402153630, 1402153628] map_info['map_portfolio_photo'] : {29890504: [1402153653, 1402153652, 1402153651, 1402153649, 1402153641, 1402153637, 1402153633, 1402153630, 1402153628, 1402153596, 1402153592, 1402153588, 1402153586, 1402153584, 1402153427, 1402153425, 1402153423, 1402153421, 1402153323, 1402153285, 1402153284, 1402153283, 1402153234, 1402153232, 1402153231, 1402153230, 1402153228, 1402153063, 1402153060, 1402153057, 1402153055]} final : True mtd_id 4302 list_pids : [1402153653, 1402153652, 1402153651, 1402153649, 1402153641, 1402153637, 1402153633, 1402153630, 1402153628] Looping around the photos to save general results len do output : 1 /29890504Didn'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, '4303142') ('4302', '29890504', '1402153653', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153652', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153651', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153649', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153641', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153637', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153633', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153630', None, None, None, None, None, '4303142') ('4302', None, None, None, None, None, None, None, '4303142') ('4302', '29890504', '1402153628', None, None, None, None, None, '4303142') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29890504', 'None', None, None, None, None, '4303142'), ('4302', '29890504', '1402153653', None, None, None, None, None, '4303142'), ('4302', '29890504', '1402153652', None, None, None, None, None, '4303142'), ('4302', '29890504', '1402153651', None, None, None, None, None, '4303142'), ('4302', '29890504', '1402153649', None, None, None, None, None, '4303142'), ('4302', '29890504', '1402153641', None, None, None, None, None, '4303142'), ('4302', '29890504', '1402153637', None, None, None, None, None, '4303142'), ('4302', '29890504', '1402153633', None, None, None, None, None, '4303142'), ('4302', '29890504', '1402153630', None, None, None, None, None, '4303142'), ('4302', '29890504', '1402153628', None, None, None, None, None, '4303142')] time used for this insertion : 0.01614975929260254 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.0396106243133545 time spend to save output : 0.016363143920898438 total time spend for step 5 : 2.055973768234253 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 (4303142) 2.22user 2.43system 0:10.65elapsed 43%CPU (0avgtext+0avgdata 165820maxresident)k 1136inputs+13112outputs (22major+76261minor)pagefaults 0swaps