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 : 2284797 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 (4320454) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4320454) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29983702 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4320454'] with mtr_portfolio_ids : ['29983702'] and first list_photo_ids : [] new path : /proc/2284797/ Name: python3 Umask: 0002 State: R (running) Tgid: 2284797 Ngid: 0 Pid: 2284797 PPid: 2284795 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2284797 NSpid: 2284797 NSpgid: 2284441 NSsid: 2284441 VmPeak: 1113368 kB VmSize: 1113368 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 106064 kB VmRSS: 106064 kB RssAnon: 66300 kB RssFile: 39764 kB RssShmem: 0 kB VmData: 872096 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 38 nonvoluntary_ctxt_switches: 122 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2284797', 'Ngid': '0', 'Pid': '2284797', 'PPid': '2284795', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2284797', 'NSpid': '2284797', 'NSpgid': '2284441', 'NSsid': '2284441', 'VmPeak': '1113368 kB', 'VmSize': '1113368 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '106064 kB', 'VmRSS': '106064 kB', 'RssAnon': '66300 kB', 'RssFile': '39764 kB', 'RssShmem': '0 kB', 'VmData': '872096 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '38', 'nonvoluntary_ctxt_switches': '122'} ('datou_batch_current', '2284797', '1113368', '0', '1113368', '872096', '106064', b'', 'marlene', '4320454') 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 (29983702) 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 (4320454 ) ) 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 (29983702) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1402656264, 'portfolio_id': 29983702}, {'photo_id': 1402655752, 'portfolio_id': 29983702}, {'photo_id': 1402655340, 'portfolio_id': 29983702}, {'photo_id': 1402655333, 'portfolio_id': 29983702}, {'photo_id': 1402655288, 'portfolio_id': 29983702}, {'photo_id': 1402655287, 'portfolio_id': 29983702}, {'photo_id': 1402655248, 'portfolio_id': 29983702}, {'photo_id': 1402655247, 'portfolio_id': 29983702}, {'photo_id': 1402655027, 'portfolio_id': 29983702}, {'photo_id': 1402654993, 'portfolio_id': 29983702}, {'photo_id': 1402654958, 'portfolio_id': 29983702}, {'photo_id': 1402654925, 'portfolio_id': 29983702}, {'photo_id': 1402654262, 'portfolio_id': 29983702}, {'photo_id': 1402654261, 'portfolio_id': 29983702}, {'photo_id': 1402654260, 'portfolio_id': 29983702}, {'photo_id': 1402654217, 'portfolio_id': 29983702}, {'photo_id': 1402654216, 'portfolio_id': 29983702}, {'photo_id': 1402654205, 'portfolio_id': 29983702}, {'photo_id': 1402654202, 'portfolio_id': 29983702}, {'photo_id': 1402654200, 'portfolio_id': 29983702}, {'photo_id': 1402654199, 'portfolio_id': 29983702}, {'photo_id': 1402654197, 'portfolio_id': 29983702}, {'photo_id': 1402654178, 'portfolio_id': 29983702}, {'photo_id': 1402654177, 'portfolio_id': 29983702}, {'photo_id': 1402654176, 'portfolio_id': 29983702}, {'photo_id': 1402653968, 'portfolio_id': 29983702}, {'photo_id': 1402653953, 'portfolio_id': 29983702}, {'photo_id': 1402653951, 'portfolio_id': 29983702}] map_portfolio_id_photo_id: {29983702: [1402656264, 1402655752, 1402655340, 1402655333, 1402655288, 1402655287, 1402655248, 1402655247, 1402655027, 1402654993, 1402654958, 1402654925, 1402654262, 1402654261, 1402654260, 1402654217, 1402654216, 1402654205, 1402654202, 1402654200, 1402654199, 1402654197, 1402654178, 1402654177, 1402654176, 1402653968, 1402653953, 1402653951]} ##### 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.018596887588500977 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Jan 7 05:34:27 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 (29983702) 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 : 29983702 get user id for portfolio 29983702 get sub ptf for main ptf 29983702, type 3726 and hashtags ['metal', 'autre_refus', 'environnement', 'Carton_gris', 'plastique', 'cartonnette', 'mal_croppe', 'flou', 'Teint_Dans_La_Masse', 'papier', 'Carton_brun', 'kraft'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29983702 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','autre_refus','environnement','Carton_gris','plastique','cartonnette','mal_croppe','flou','Teint_Dans_La_Masse','papier','Carton_brun','kraft')) 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`=29983702 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','autre_refus','environnement','Carton_gris','plastique','cartonnette','mal_croppe','flou','Teint_Dans_La_Masse','papier','Carton_brun','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 29983702, 'sub_port_id': 29983703, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20519079, 'last_updated_at': datetime.datetime(2026, 1, 6, 14, 4, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 14, 4, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 13, 47, 28)}, 'Carton_gris': {'main_port_id': 29983702, 'sub_port_id': 29983704, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20519080, 'last_updated_at': datetime.datetime(2026, 1, 6, 14, 4, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 14, 4, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 13, 47, 28)}, 'plastique': {'main_port_id': 29983702, 'sub_port_id': 29983705, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20519081, 'last_updated_at': datetime.datetime(2026, 1, 6, 14, 4, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 14, 4, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 13, 47, 28)}, 'papier': {'main_port_id': 29983702, 'sub_port_id': 29983706, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20519082, 'last_updated_at': datetime.datetime(2026, 1, 6, 14, 4, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 14, 4, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 13, 47, 28)}, 'mal_croppe': {'main_port_id': 29983702, 'sub_port_id': 29983707, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20519083, 'last_updated_at': datetime.datetime(2026, 1, 6, 14, 4, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 14, 4, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 13, 47, 28)}, 'Carton_brun': {'main_port_id': 29983702, 'sub_port_id': 29983708, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20519084, 'last_updated_at': datetime.datetime(2026, 1, 6, 14, 4, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 14, 4, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 13, 47, 28)}, 'environnement': {'main_port_id': 29983702, 'sub_port_id': 29983709, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20519085, 'last_updated_at': datetime.datetime(2026, 1, 6, 14, 4, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 14, 4, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 13, 47, 28)}, 'metal': {'main_port_id': 29983702, 'sub_port_id': 29983710, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20519086, 'last_updated_at': datetime.datetime(2026, 1, 6, 14, 4, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 14, 4, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 13, 47, 28)}, 'cartonnette': {'main_port_id': 29983702, 'sub_port_id': 29983711, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20519087, 'last_updated_at': datetime.datetime(2026, 1, 6, 14, 4, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 14, 4, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 13, 47, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 29983702, 'sub_port_id': 29983712, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20519088, 'last_updated_at': datetime.datetime(2026, 1, 6, 14, 4, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 14, 4, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 13, 47, 28)}, 'autre_refus': {'main_port_id': 29983702, 'sub_port_id': 29983713, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20519089, 'last_updated_at': datetime.datetime(2026, 1, 6, 14, 4, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 14, 4, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 13, 47, 28)}, 'kraft': {'main_port_id': 29983702, 'sub_port_id': 29983714, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20519090, 'last_updated_at': datetime.datetime(2026, 1, 6, 14, 4, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 14, 4, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 13, 47, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29983703 , 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=29983702 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 (29983703) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29983702) result : ((1402653951,), (1402653953,), (1402653968,), (1402654176,), (1402654177,), (1402654178,), (1402654197,), (1402654199,), (1402654200,), (1402654202,), (1402654205,), (1402654216,), (1402654217,), (1402654260,), (1402654261,), (1402654262,), (1402654925,), (1402654958,), (1402654993,), (1402655027,), (1402655247,), (1402655248,), (1402655287,), (1402655288,), (1402655333,), (1402655340,), (1402655752,), (1402656264,)) 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 (1402654200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29983704 , 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=29983702 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 (29983704) result : ((1402654228,), (1402654566,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29983702) result : ((1402653951,), (1402653953,), (1402653968,), (1402654176,), (1402654177,), (1402654178,), (1402654197,), (1402654199,), (1402654200,), (1402654202,), (1402654205,), (1402654216,), (1402654217,), (1402654260,), (1402654261,), (1402654262,), (1402654925,), (1402654958,), (1402654993,), (1402655027,), (1402655247,), (1402655248,), (1402655287,), (1402655288,), (1402655333,), (1402655340,), (1402655752,), (1402656264,)) 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 (1402654200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29983705 , 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=29983702 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 (29983705) result : ((1402654231,), (1402658585,), (1402658605,), (1402658606,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29983702) result : ((1402653951,), (1402653953,), (1402653968,), (1402654176,), (1402654177,), (1402654178,), (1402654197,), (1402654199,), (1402654200,), (1402654202,), (1402654205,), (1402654216,), (1402654217,), (1402654260,), (1402654261,), (1402654262,), (1402654925,), (1402654958,), (1402654993,), (1402655027,), (1402655247,), (1402655248,), (1402655287,), (1402655288,), (1402655333,), (1402655340,), (1402655752,), (1402656264,)) 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 (1402654200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29983706 , 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=29983702 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 (29983706) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29983702) result : ((1402653951,), (1402653953,), (1402653968,), (1402654176,), (1402654177,), (1402654178,), (1402654197,), (1402654199,), (1402654200,), (1402654202,), (1402654205,), (1402654216,), (1402654217,), (1402654260,), (1402654261,), (1402654262,), (1402654925,), (1402654958,), (1402654993,), (1402655027,), (1402655247,), (1402655248,), (1402655287,), (1402655288,), (1402655333,), (1402655340,), (1402655752,), (1402656264,)) 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 (1402654200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29983707 , 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=29983702 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 (29983707) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29983702) result : ((1402653951,), (1402653953,), (1402653968,), (1402654176,), (1402654177,), (1402654178,), (1402654197,), (1402654199,), (1402654200,), (1402654202,), (1402654205,), (1402654216,), (1402654217,), (1402654260,), (1402654261,), (1402654262,), (1402654925,), (1402654958,), (1402654993,), (1402655027,), (1402655247,), (1402655248,), (1402655287,), (1402655288,), (1402655333,), (1402655340,), (1402655752,), (1402656264,)) 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 (1402654200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29983708 , 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=29983702 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 (29983708) result : ((1402654230,), (1402654575,), (1402654577,), (1402658580,), (1402658601,), (1402658602,), (1402658603,), (1402658604,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29983702) result : ((1402653951,), (1402653953,), (1402653968,), (1402654176,), (1402654177,), (1402654178,), (1402654197,), (1402654199,), (1402654200,), (1402654202,), (1402654205,), (1402654216,), (1402654217,), (1402654260,), (1402654261,), (1402654262,), (1402654925,), (1402654958,), (1402654993,), (1402655027,), (1402655247,), (1402655248,), (1402655287,), (1402655288,), (1402655333,), (1402655340,), (1402655752,), (1402656264,)) 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 (1402654200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29983709 , 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=29983702 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 (29983709) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29983702) result : ((1402653951,), (1402653953,), (1402653968,), (1402654176,), (1402654177,), (1402654178,), (1402654197,), (1402654199,), (1402654200,), (1402654202,), (1402654205,), (1402654216,), (1402654217,), (1402654260,), (1402654261,), (1402654262,), (1402654925,), (1402654958,), (1402654993,), (1402655027,), (1402655247,), (1402655248,), (1402655287,), (1402655288,), (1402655333,), (1402655340,), (1402655752,), (1402656264,)) 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 (1402654200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29983710 , 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=29983702 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 (29983710) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29983702) result : ((1402653951,), (1402653953,), (1402653968,), (1402654176,), (1402654177,), (1402654178,), (1402654197,), (1402654199,), (1402654200,), (1402654202,), (1402654205,), (1402654216,), (1402654217,), (1402654260,), (1402654261,), (1402654262,), (1402654925,), (1402654958,), (1402654993,), (1402655027,), (1402655247,), (1402655248,), (1402655287,), (1402655288,), (1402655333,), (1402655340,), (1402655752,), (1402656264,)) 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 (1402654200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29983711 , 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=29983702 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 (29983711) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29983702) result : ((1402653951,), (1402653953,), (1402653968,), (1402654176,), (1402654177,), (1402654178,), (1402654197,), (1402654199,), (1402654200,), (1402654202,), (1402654205,), (1402654216,), (1402654217,), (1402654260,), (1402654261,), (1402654262,), (1402654925,), (1402654958,), (1402654993,), (1402655027,), (1402655247,), (1402655248,), (1402655287,), (1402655288,), (1402655333,), (1402655340,), (1402655752,), (1402656264,)) 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 (1402654200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29983712 , 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=29983702 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 (29983712) result : ((1402654226,), (1402654558,), (1402658598,), (1402658599,), (1402658600,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29983702) result : ((1402653951,), (1402653953,), (1402653968,), (1402654176,), (1402654177,), (1402654178,), (1402654197,), (1402654199,), (1402654200,), (1402654202,), (1402654205,), (1402654216,), (1402654217,), (1402654260,), (1402654261,), (1402654262,), (1402654925,), (1402654958,), (1402654993,), (1402655027,), (1402655247,), (1402655248,), (1402655287,), (1402655288,), (1402655333,), (1402655340,), (1402655752,), (1402656264,)) 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 (1402654200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29983713 , 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=29983702 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 (29983713) result : ((1402654024,), (1402654227,), (1402658039,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29983702) result : ((1402653951,), (1402653953,), (1402653968,), (1402654176,), (1402654177,), (1402654178,), (1402654197,), (1402654199,), (1402654200,), (1402654202,), (1402654205,), (1402654216,), (1402654217,), (1402654260,), (1402654261,), (1402654262,), (1402654925,), (1402654958,), (1402654993,), (1402655027,), (1402655247,), (1402655248,), (1402655287,), (1402655288,), (1402655333,), (1402655340,), (1402655752,), (1402656264,)) 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 (1402654200) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29983714 , 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=29983702 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 (29983714) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29983702) result : ((1402653951,), (1402653953,), (1402653968,), (1402654176,), (1402654177,), (1402654178,), (1402654197,), (1402654199,), (1402654200,), (1402654202,), (1402654205,), (1402654216,), (1402654217,), (1402654260,), (1402654261,), (1402654262,), (1402654925,), (1402654958,), (1402654993,), (1402655027,), (1402655247,), (1402655248,), (1402655287,), (1402655288,), (1402655333,), (1402655340,), (1402655752,), (1402656264,)) 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 (1402654200) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29983702 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','autre_refus','environnement','Carton_gris','plastique','cartonnette','mal_croppe','flou','Teint_Dans_La_Masse','papier','Carton_brun','kraft')) 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`=29983702 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','autre_refus','environnement','Carton_gris','plastique','cartonnette','mal_croppe','flou','Teint_Dans_La_Masse','papier','Carton_brun','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 29983702, 'sub_port_id': 29983715, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20519091, 'last_updated_at': datetime.datetime(2026, 1, 6, 13, 47, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 13, 47, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 13, 47, 30)}, 'Carton_gris': {'main_port_id': 29983702, 'sub_port_id': 29983716, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20519092, 'last_updated_at': datetime.datetime(2026, 1, 6, 13, 47, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 13, 47, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 13, 47, 30)}, 'plastique': {'main_port_id': 29983702, 'sub_port_id': 29983717, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20519093, 'last_updated_at': datetime.datetime(2026, 1, 6, 13, 47, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 13, 47, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 13, 47, 30)}, 'papier': {'main_port_id': 29983702, 'sub_port_id': 29983718, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20519094, 'last_updated_at': datetime.datetime(2026, 1, 6, 13, 47, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 13, 47, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 13, 47, 30)}, 'mal_croppe': {'main_port_id': 29983702, 'sub_port_id': 29983719, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20519095, 'last_updated_at': datetime.datetime(2026, 1, 6, 13, 47, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 13, 47, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 13, 47, 30)}, 'Carton_brun': {'main_port_id': 29983702, 'sub_port_id': 29983720, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20519096, 'last_updated_at': datetime.datetime(2026, 1, 6, 13, 47, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 13, 47, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 13, 47, 30)}, 'environnement': {'main_port_id': 29983702, 'sub_port_id': 29983721, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20519097, 'last_updated_at': datetime.datetime(2026, 1, 6, 13, 47, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 13, 47, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 13, 47, 30)}, 'metal': {'main_port_id': 29983702, 'sub_port_id': 29983722, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20519098, 'last_updated_at': datetime.datetime(2026, 1, 6, 13, 47, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 13, 47, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 13, 47, 30)}, 'cartonnette': {'main_port_id': 29983702, 'sub_port_id': 29983723, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20519099, 'last_updated_at': datetime.datetime(2026, 1, 6, 13, 47, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 13, 47, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 13, 47, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 29983702, 'sub_port_id': 29983724, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20519100, 'last_updated_at': datetime.datetime(2026, 1, 6, 13, 47, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 13, 47, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 13, 47, 30)}, 'autre_refus': {'main_port_id': 29983702, 'sub_port_id': 29983725, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20519101, 'last_updated_at': datetime.datetime(2026, 1, 6, 13, 47, 30), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 13, 47, 30), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 13, 47, 30)}, 'kraft': {'main_port_id': 29983702, 'sub_port_id': 29983726, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20519102, 'last_updated_at': datetime.datetime(2026, 1, 6, 14, 4, 57), 'last_updated_at_desc': datetime.datetime(2026, 1, 6, 14, 4, 57), 'last_updated_at_asc': datetime.datetime(2026, 1, 6, 13, 47, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29983715,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29983703 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29983716,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29983704 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29983717,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29983705 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29983718,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29983706 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29983719,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29983707 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29983720,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29983708 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29983721,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29983709 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29983722,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29983710 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29983723,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29983711 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29983724,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29983712 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29983725,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29983713 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29983726,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29983714 lien utilise dans velours : https://marlene.fotonower.com/velours/29983715,29983716,29983717,29983718,29983719,29983720,29983721,29983722,29983723,29983724,29983725,29983726?tags=flou,Carton_gris,plastique,papier,mal_croppe,Carton_brun,environnement,metal,cartonnette,Teint_Dans_La_Masse,autre_refus,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29983702]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1402656264, 1402655752, 1402655340, 1402655333, 1402655288, 1402655287, 1402655248, 1402655247, 1402655027, 1402654993, 1402654958, 1402654925, 1402654262, 1402654261, 1402654260, 1402654217, 1402654216, 1402654205, 1402654202, 1402654200, 1402654199, 1402654197, 1402654178, 1402654177, 1402654176, 1402653968, 1402653953, 1402653951] map_info['map_portfolio_photo'] : {29983702: [1402656264, 1402655752, 1402655340, 1402655333, 1402655288, 1402655287, 1402655248, 1402655247, 1402655027, 1402654993, 1402654958, 1402654925, 1402654262, 1402654261, 1402654260, 1402654217, 1402654216, 1402654205, 1402654202, 1402654200, 1402654199, 1402654197, 1402654178, 1402654177, 1402654176, 1402653968, 1402653953, 1402653951]} final : False mtd_id 4302 list_pids : [1402656264, 1402655752, 1402655340, 1402655333, 1402655288, 1402655287, 1402655248, 1402655247, 1402655027, 1402654993, 1402654958, 1402654925, 1402654262, 1402654261, 1402654260, 1402654217, 1402654216, 1402654205, 1402654202, 1402654200, 1402654199, 1402654197, 1402654178, 1402654177, 1402654176, 1402653968, 1402653953, 1402653951] Looping around the photos to save general results len do output : 1 /29983702. 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, '4320454') ('4302', '29983702', '1402656264', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655752', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655340', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655333', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655288', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655287', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655248', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655247', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655027', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654993', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654958', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654925', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654262', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654261', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654260', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654217', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654216', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654205', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654202', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654200', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654199', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654197', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654178', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654177', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654176', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402653968', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402653953', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402653951', None, None, None, None, None, '4320454') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 29 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, '29983702', "{'flou': 29983703, 'Carton_gris': 29983704, 'plastique': 29983705, 'papier': 29983706, 'mal_croppe': 29983707, 'Carton_brun': 29983708, 'environnement': 29983709, 'metal': 29983710, 'cartonnette': 29983711, 'Teint_Dans_La_Masse': 29983712, 'autre_refus': 29983713, 'kraft': 29983714}", None, None, None, None, '4320454'), ('4302', '29983702', '1402656264', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402655752', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402655340', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402655333', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402655288', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402655287', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402655248', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402655247', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402655027', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654993', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654958', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654925', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654262', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654261', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654260', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654217', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654216', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654205', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654202', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654200', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654199', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654197', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654178', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654177', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654176', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402653968', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402653953', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402653951', None, None, None, None, None, '4320454')] time used for this insertion : 0.025541305541992188 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.565187931060791 time spend to save output : 0.0259249210357666 total time spend for step 1 : 0.5911128520965576 step2:final Wed Jan 7 05:34:27 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 (29983702) 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 29983702 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1402653953,1402653951,1402653968,1402654178,1402654177,1402654176,1402654205,1402654202,1402654200,1402654199,1402654197,1402654217,1402654216,1402654262,1402654261,1402654260,1402655027,1402654993,1402654958,1402655333,1402655340,1402654925,1402655287,1402655288,1402655247,1402655248,1402655752,1402656264); 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([29983702]) Inside saveOutput : final : False verbose : True original output for save of step final : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} new output for save of step final : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} [1402656264, 1402655752, 1402655340, 1402655333, 1402655288, 1402655287, 1402655248, 1402655247, 1402655027, 1402654993, 1402654958, 1402654925, 1402654262, 1402654261, 1402654260, 1402654217, 1402654216, 1402654205, 1402654202, 1402654200, 1402654199, 1402654197, 1402654178, 1402654177, 1402654176, 1402653968, 1402653953, 1402653951] map_info['map_portfolio_photo'] : {29983702: [1402656264, 1402655752, 1402655340, 1402655333, 1402655288, 1402655287, 1402655248, 1402655247, 1402655027, 1402654993, 1402654958, 1402654925, 1402654262, 1402654261, 1402654260, 1402654217, 1402654216, 1402654205, 1402654202, 1402654200, 1402654199, 1402654197, 1402654178, 1402654177, 1402654176, 1402653968, 1402653953, 1402653951]} final : False mtd_id 4302 list_pids : [1402656264, 1402655752, 1402655340, 1402655333, 1402655288, 1402655287, 1402655248, 1402655247, 1402655027, 1402654993, 1402654958, 1402654925, 1402654262, 1402654261, 1402654260, 1402654217, 1402654216, 1402654205, 1402654202, 1402654200, 1402654199, 1402654197, 1402654178, 1402654177, 1402654176, 1402653968, 1402653953, 1402653951] Looping around the photos to save general results len do output : 28 /1402656264.Didn't retrieve data . /1402655752.Didn't retrieve data . /1402655340.Didn't retrieve data . /1402655333.Didn't retrieve data . /1402655288.Didn't retrieve data . /1402655287.Didn't retrieve data . /1402655248.Didn't retrieve data . /1402655247.Didn't retrieve data . /1402655027.Didn't retrieve data . /1402654993.Didn't retrieve data . /1402654958.Didn't retrieve data . /1402654925.Didn't retrieve data . /1402654262.Didn't retrieve data . /1402654261.Didn't retrieve data . /1402654260.Didn't retrieve data . /1402654217.Didn't retrieve data . /1402654216.Didn't retrieve data . /1402654205.Didn't retrieve data . /1402654202.Didn't retrieve data . /1402654200.Didn't retrieve data . /1402654199.Didn't retrieve data . /1402654197.Didn't retrieve data . /1402654178.Didn't retrieve data . /1402654177.Didn't retrieve data . /1402654176.Didn't retrieve data . /1402653968.Didn't retrieve data . /1402653953.Didn't retrieve data . /1402653951.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, '4320454') ('4302', '29983702', '1402656264', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655752', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655340', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655333', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655288', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655287', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655248', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655247', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655027', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654993', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654958', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654925', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654262', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654261', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654260', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654217', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654216', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654205', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654202', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654200', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654199', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654197', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654178', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654177', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654176', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402653968', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402653953', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402653951', None, None, None, None, None, '4320454') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 84 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', '29983702', '1402656264', '0.0211248607610677', None, None, None, None, '4320454'), ('4302', '29983702', '1402655752', '0.0211248607610677', None, None, None, None, '4320454'), ('4302', '29983702', '1402655340', '0.0211248607610677', None, None, None, None, '4320454'), ('4302', '29983702', '1402655333', '0.0211248607610677', None, None, None, None, '4320454'), ('4302', '29983702', '1402655288', '0.0211248607610677', None, None, None, None, '4320454'), ('4302', '29983702', '1402655287', '0.0211248607610677', None, None, None, None, '4320454'), ('4302', '29983702', '1402655248', '0.0211248607610677', None, None, None, None, '4320454'), ('4302', '29983702', '1402655247', '0.0211248607610677', None, None, None, None, '4320454'), ('4302', '29983702', '1402655027', '0.0211248607610677', None, None, None, None, '4320454'), ('4302', '29983702', '1402654993', '0.0211248607610677', None, None, None, None, '4320454'), ('4302', '29983702', '1402654958', '0.0211248607610677', None, None, None, None, '4320454'), ('4302', '29983702', '1402654925', '0.0211248607610677', None, None, None, None, '4320454'), ('4302', '29983702', '1402654262', '0.0211248607610677', None, None, None, None, '4320454'), ('4302', '29983702', '1402654261', '0.0211248607610677', None, None, None, None, '4320454'), ('4302', '29983702', '1402654260', '0.0211248607610677', None, None, None, None, '4320454'), ('4302', '29983702', '1402654217', '0.0211248607610677', None, None, None, None, '4320454'), ('4302', '29983702', '1402654216', '0.0211248607610677', None, None, None, None, '4320454'), ('4302', '29983702', '1402654205', '0.0211248607610677', None, None, None, None, '4320454'), ('4302', '29983702', '1402654202', '0.0211248607610677', None, None, None, None, '4320454'), ('4302', '29983702', '1402654200', '0.0211248607610677', None, None, None, None, '4320454'), ('4302', '29983702', '1402654199', '0.0211248607610677', None, None, None, None, '4320454'), ('4302', '29983702', '1402654197', '0.0211248607610677', None, None, None, None, '4320454'), ('4302', '29983702', '1402654178', '0.0211248607610677', None, None, None, None, '4320454'), ('4302', '29983702', '1402654177', '0.0211248607610677', None, None, None, None, '4320454'), ('4302', '29983702', '1402654176', '0.0211248607610677', None, None, None, None, '4320454'), ('4302', '29983702', '1402653968', '0.0211248607610677', None, None, None, None, '4320454'), ('4302', '29983702', '1402653953', '0.0211248607610677', None, None, None, None, '4320454'), ('4302', '29983702', '1402653951', '0.0211248607610677', None, None, None, None, '4320454')] time used for this insertion : 0.021924734115600586 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07903313636779785 time spend to save output : 0.022989511489868164 total time spend for step 2 : 0.10202264785766602 step3:velours_tree Wed Jan 7 05:34:27 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 : {29983702: [{'flou': 29983703, 'Carton_gris': 29983704, 'plastique': 29983705, 'papier': 29983706, 'mal_croppe': 29983707, 'Carton_brun': 29983708, 'environnement': 29983709, 'metal': 29983710, 'cartonnette': 29983711, 'Teint_Dans_La_Masse': 29983712, 'autre_refus': 29983713, 'kraft': 29983714}]} input_args_next_step : {29983702: ()} output_args : {29983702: [{'flou': 29983703, 'Carton_gris': 29983704, 'plastique': 29983705, 'papier': 29983706, 'mal_croppe': 29983707, 'Carton_brun': 29983708, 'environnement': 29983709, 'metal': 29983710, 'cartonnette': 29983711, 'Teint_Dans_La_Masse': 29983712, 'autre_refus': 29983713, 'kraft': 29983714}]} args : 29983702 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': 29983703, 'Carton_gris': 29983704, 'plastique': 29983705, 'papier': 29983706, 'mal_croppe': 29983707, 'Carton_brun': 29983708, 'environnement': 29983709, 'metal': 29983710, 'cartonnette': 29983711, 'Teint_Dans_La_Masse': 29983712, 'autre_refus': 29983713, 'kraft': 29983714},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29983702) 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([29983702]) 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.2873713970184326 time spend to save output : 7.343292236328125e-05 total time spend for step 3 : 0.2874448299407959 step4:send_mail_cod Wed Jan 7 05:34:28 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 : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} input_args_next_step : {1402656264: ()} output_args : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} args : 1402656264 depend.output_id : 0 input_args_next_step : {1402656264: ('0.0211248607610677',), 1402655752: ()} output_args : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} args : 1402655752 depend.output_id : 0 input_args_next_step : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ()} output_args : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} args : 1402655340 depend.output_id : 0 input_args_next_step : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ()} output_args : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} args : 1402655333 depend.output_id : 0 input_args_next_step : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ()} output_args : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} args : 1402655288 depend.output_id : 0 input_args_next_step : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ()} output_args : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} args : 1402655287 depend.output_id : 0 input_args_next_step : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ()} output_args : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} args : 1402655248 depend.output_id : 0 input_args_next_step : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ()} output_args : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} args : 1402655247 depend.output_id : 0 input_args_next_step : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ()} output_args : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} args : 1402655027 depend.output_id : 0 input_args_next_step : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ()} output_args : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} args : 1402654993 depend.output_id : 0 input_args_next_step : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ()} output_args : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} args : 1402654958 depend.output_id : 0 input_args_next_step : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ()} output_args : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} args : 1402654925 depend.output_id : 0 input_args_next_step : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ()} output_args : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} args : 1402654262 depend.output_id : 0 input_args_next_step : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ()} output_args : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} args : 1402654261 depend.output_id : 0 input_args_next_step : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ()} output_args : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} args : 1402654260 depend.output_id : 0 input_args_next_step : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ()} output_args : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} args : 1402654217 depend.output_id : 0 input_args_next_step : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ()} output_args : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} args : 1402654216 depend.output_id : 0 input_args_next_step : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ()} output_args : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} args : 1402654205 depend.output_id : 0 input_args_next_step : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ()} output_args : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} args : 1402654202 depend.output_id : 0 input_args_next_step : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ()} output_args : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} args : 1402654200 depend.output_id : 0 input_args_next_step : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ()} output_args : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} args : 1402654199 depend.output_id : 0 input_args_next_step : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ()} output_args : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} args : 1402654197 depend.output_id : 0 input_args_next_step : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ()} output_args : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} args : 1402654178 depend.output_id : 0 input_args_next_step : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ()} output_args : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} args : 1402654177 depend.output_id : 0 input_args_next_step : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ()} output_args : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} args : 1402654176 depend.output_id : 0 input_args_next_step : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ()} output_args : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} args : 1402653968 depend.output_id : 0 input_args_next_step : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ()} output_args : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} args : 1402653953 depend.output_id : 0 input_args_next_step : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ()} output_args : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',)} args : 1402653951 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 : {29983702: [{'flou': 29983703, 'Carton_gris': 29983704, 'plastique': 29983705, 'papier': 29983706, 'mal_croppe': 29983707, 'Carton_brun': 29983708, 'environnement': 29983709, 'metal': 29983710, 'cartonnette': 29983711, 'Teint_Dans_La_Masse': 29983712, 'autre_refus': 29983713, 'kraft': 29983714}]} input_args_next_step : {1402656264: ('0.0211248607610677',), 1402655752: ('0.0211248607610677',), 1402655340: ('0.0211248607610677',), 1402655333: ('0.0211248607610677',), 1402655288: ('0.0211248607610677',), 1402655287: ('0.0211248607610677',), 1402655248: ('0.0211248607610677',), 1402655247: ('0.0211248607610677',), 1402655027: ('0.0211248607610677',), 1402654993: ('0.0211248607610677',), 1402654958: ('0.0211248607610677',), 1402654925: ('0.0211248607610677',), 1402654262: ('0.0211248607610677',), 1402654261: ('0.0211248607610677',), 1402654260: ('0.0211248607610677',), 1402654217: ('0.0211248607610677',), 1402654216: ('0.0211248607610677',), 1402654205: ('0.0211248607610677',), 1402654202: ('0.0211248607610677',), 1402654200: ('0.0211248607610677',), 1402654199: ('0.0211248607610677',), 1402654197: ('0.0211248607610677',), 1402654178: ('0.0211248607610677',), 1402654177: ('0.0211248607610677',), 1402654176: ('0.0211248607610677',), 1402653968: ('0.0211248607610677',), 1402653953: ('0.0211248607610677',), 1402653951: ('0.0211248607610677',), 29983702: ()} output_args : {29983702: [{'flou': 29983703, 'Carton_gris': 29983704, 'plastique': 29983705, 'papier': 29983706, 'mal_croppe': 29983707, 'Carton_brun': 29983708, 'environnement': 29983709, 'metal': 29983710, 'cartonnette': 29983711, 'Teint_Dans_La_Masse': 29983712, 'autre_refus': 29983713, 'kraft': 29983714}]} args : 29983702 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 :29, first value : ('0.0211248607610677',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29983702) 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 (1402656264,1402655752,1402655340,1402655333,1402655288,1402655287,1402655248,1402655247,1402655027,1402654993,1402654958,1402654925,1402654262,1402654261,1402654260,1402654217,1402654216,1402654205,1402654202,1402654200,1402654199,1402654197,1402654178,1402654177,1402654176,1402653968,1402653953,1402653951) Found this number of photos: 28 ##### Call download_photos : nb_thread : 5 begin to download photo : 1402653951 begin to download photo : 1402654197 begin to download photo : 1402654217 begin to download photo : 1402654993 begin to download photo : 1402655333 download finish for photo 1402653951 begin to download photo : 1402653953 download finish for photo 1402654197 begin to download photo : 1402654199 download finish for photo 1402655333 begin to download photo : 1402655340 download finish for photo 1402654993 begin to download photo : 1402655027 download finish for photo 1402654217 begin to download photo : 1402654260 download finish for photo 1402654199 begin to download photo : 1402654200 download finish for photo 1402655027 begin to download photo : 1402655247 download finish for photo 1402655340 begin to download photo : 1402655752 download finish for photo 1402653953 begin to download photo : 1402653968 download finish for photo 1402654260 begin to download photo : 1402654261 download finish for photo 1402654200 begin to download photo : 1402654202 download finish for photo 1402655247 begin to download photo : 1402655248 download finish for photo 1402653968 begin to download photo : 1402654176 download finish for photo 1402655752 begin to download photo : 1402656264 download finish for photo 1402654261 begin to download photo : 1402654262 download finish for photo 1402654202 begin to download photo : 1402654205 download finish for photo 1402655248 begin to download photo : 1402655287 download finish for photo 1402654262 begin to download photo : 1402654925 download finish for photo 1402654176 begin to download photo : 1402654177 download finish for photo 1402656264 download finish for photo 1402654205 begin to download photo : 1402654216 download finish for photo 1402655287 begin to download photo : 1402655288 download finish for photo 1402654925 begin to download photo : 1402654958 download finish for photo 1402654177 begin to download photo : 1402654178 download finish for photo 1402654216 download finish for photo 1402655288 download finish for photo 1402654958 download finish for photo 1402654178 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette299837031767760469/ length of list_filenames : 28 ; length of list_pids : 28 ; length of list_args : 28 results_Auto_P29983702_07-01-2026_05_34_29.pdf 29983703 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=29983703 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette299837031767760469 29983705 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=29983705 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402654231: '1767704227_182646_1402654176_21c7fc11753cc4a389841fc914558271_rle_crop_4091751381_0.png', 1402658585: '1767704946_218083_1402654261_3dcbea87c0f358181dee3bb476184bc4_rle_crop_4091774379_0.png', 1402658605: '1767704965_218494_1402654217_c05368dd68a26841897c422b690ba66f_rle_crop_4091774561_0.png', 1402658606: '1767704965_218494_1402654202_fbee3066b031b2c45255623d12d9fc47_rle_crop_4091774579_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/5eba8fa98d2fd2f51574b3c4b8707e58_28145217.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/2de7174b6e4715b994430384ab1753af_8987717.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/c9db3b9d3436865fd10245b43ea289c1_1056452.png change filename to text .imagette299837051767760469/ imagette299837051767760469/1767704946_218083_1402654261_3dcbea87c0f358181dee3bb476184bc4_rle_crop_4091774379_0.png.png imagette299837051767760469/1767704227_182646_1402654176_21c7fc11753cc4a389841fc914558271_rle_crop_4091751381_0.png.png imagette299837051767760469/1767704965_218494_1402654217_c05368dd68a26841897c422b690ba66f_rle_crop_4091774561_0.png.png imagette299837051767760469/1767704965_218494_1402654202_fbee3066b031b2c45255623d12d9fc47_rle_crop_4091774579_0.png.png imagette299837071767760469/ imagette299837101767760469/ imagette299837111767760469/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/737073a0f6180fd5045e73ff4356d8f4_82986127.png imagette299837051767760469 29983707 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=29983707 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette299837071767760469 29983710 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=29983710 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette299837101767760469 29983711 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=29983711 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette299837111767760469 29983713 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=29983713 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402654024: '1767703747_175198_1402653968_75a5a7837d8a9de2f9169bb01d714c29_rle_crop_4091747615_0.png', 1402654227: '1767704227_182646_1402654177_6e1598aaef60bbab3763f8ab1a9792af_rle_crop_4091751371_0.png', 1402658039: '1767704826_214693_1402654925_c4b64e4e44fe47ef7e31b767a8080783_rle_crop_4091774252_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/65ac72b7b859ab47fb5095a239c6b160_8859132.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/ef97d1a7462416a76e643ac225a8bc81_80105554.png change filename to text .imagette299837131767760469/ imagette299837131767760469/1767704227_182646_1402654177_6e1598aaef60bbab3763f8ab1a9792af_rle_crop_4091751371_0.png.png imagette299837131767760469/1767704826_214693_1402654925_c4b64e4e44fe47ef7e31b767a8080783_rle_crop_4091774252_0.png.png imagette299837131767760469/1767703747_175198_1402653968_75a5a7837d8a9de2f9169bb01d714c29_rle_crop_4091747615_0.png.png imagette299837141767760470/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/ac9e416f61a930fb0e71e2568adae23f_43512986.png imagette299837131767760469 29983714 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=29983714 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette299837141767760470 29983704 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=29983704 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402654228: '1767704227_182646_1402654205_0b9899742a025a8ea96c78ee9dfc2d1f_rle_crop_4091751356_0.png', 1402654566: '1767704344_186359_1402654262_02b8d3ed3f67fe1c170c6a35079e4b56_rle_crop_4091760131_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/7e3fa35b287a5dc5fc96ab5a3de7aa16_15366948.png change filename to text .imagette299837041767760470/ imagette299837041767760470/1767704227_182646_1402654205_0b9899742a025a8ea96c78ee9dfc2d1f_rle_crop_4091751356_0.png.png imagette299837041767760470/1767704344_186359_1402654262_02b8d3ed3f67fe1c170c6a35079e4b56_rle_crop_4091760131_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/f6aea3eb9ca7f36e2f184c4be23985bf_30288607.png imagette299837041767760470 29983708 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=29983708 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402654230: '1767704227_182646_1402654205_0b9899742a025a8ea96c78ee9dfc2d1f_rle_crop_4091751360_0.png', 1402654575: '1767704344_186359_1402654262_02b8d3ed3f67fe1c170c6a35079e4b56_rle_crop_4091760139_0.png', 1402654577: '1767704344_186359_1402654216_f008cecfa03ead0caffa88472752247f_rle_crop_4091760148_0.png', 1402658580: '1767704946_218083_1402654261_3dcbea87c0f358181dee3bb476184bc4_rle_crop_4091774377_0.png', 1402658601: '1767704965_218494_1402654202_fbee3066b031b2c45255623d12d9fc47_rle_crop_4091774583_0.png', 1402658602: '1767704965_218494_1402654200_f16812369a0c64db8629e607655b298c_rle_crop_4091774598_0.png', 1402658603: '1767704965_218494_1402654199_a3dbea3ed418f1071cd86ab6d7da4073_rle_crop_4091774614_0.png', 1402658604: '1767704965_218494_1402654197_6b937f3f5ba09099010b6f9abd980e75_rle_crop_4091774626_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/3d06cb37796bf5ebe439e09fea68565b_36796100.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/9ed750134080da60f26996f2ecc6b91b_77570257.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/7f9192f37e73a6d15cad00b40c6f34e6_15592762.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/890a11730b9228b31475d63f687f9e3d_82470563.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/cdc167baf2b81fec5f1b546a12be6195_16302979.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/7519abd4db6e69555b0c9ecbe5d44d24_12070928.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/d897f68ea7bdf927a065d9e983b03a2a_74187325.png change filename to text .imagette299837081767760470/ imagette299837081767760470/1767704965_218494_1402654200_f16812369a0c64db8629e607655b298c_rle_crop_4091774598_0.png.png imagette299837081767760470/1767704344_186359_1402654216_f008cecfa03ead0caffa88472752247f_rle_crop_4091760148_0.png.png imagette299837081767760470/1767704965_218494_1402654202_fbee3066b031b2c45255623d12d9fc47_rle_crop_4091774583_0.png.png imagette299837081767760470/1767704965_218494_1402654199_a3dbea3ed418f1071cd86ab6d7da4073_rle_crop_4091774614_0.png.png imagette299837081767760470/1767704227_182646_1402654205_0b9899742a025a8ea96c78ee9dfc2d1f_rle_crop_4091751360_0.png.png imagette299837081767760470/1767704344_186359_1402654262_02b8d3ed3f67fe1c170c6a35079e4b56_rle_crop_4091760139_0.png.png imagette299837081767760470/1767704965_218494_1402654197_6b937f3f5ba09099010b6f9abd980e75_rle_crop_4091774626_0.png.png imagette299837081767760470/1767704946_218083_1402654261_3dcbea87c0f358181dee3bb476184bc4_rle_crop_4091774377_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/c487f84e348b7e18b251474283be02f1_22068343.png imagette299837081767760470 29983712 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=29983712 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402654226: '1767704227_182646_1402654205_0b9899742a025a8ea96c78ee9dfc2d1f_rle_crop_4091751365_0.png', 1402654558: '1767704344_186359_1402654262_02b8d3ed3f67fe1c170c6a35079e4b56_rle_crop_4091760138_0.png', 1402658598: '1767704965_218494_1402654217_c05368dd68a26841897c422b690ba66f_rle_crop_4091774569_0.png', 1402658599: '1767704965_218494_1402654202_fbee3066b031b2c45255623d12d9fc47_rle_crop_4091774584_0.png', 1402658600: '1767704965_218494_1402654197_6b937f3f5ba09099010b6f9abd980e75_rle_crop_4091774623_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/7c9781476fbecccf85a7e5a2cec517c5_84790577.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/45ac389ea9bb1e8675dab0f399f622ca_47685032.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/81b6a116523e05f1448c9611de761462_16695282.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/09d91fce63724e20b40d253c90928fcb_62921234.png change filename to text .imagette299837121767760471/ imagette299837121767760471/1767704965_218494_1402654197_6b937f3f5ba09099010b6f9abd980e75_rle_crop_4091774623_0.png.png imagette299837121767760471/1767704965_218494_1402654202_fbee3066b031b2c45255623d12d9fc47_rle_crop_4091774584_0.png.png imagette299837121767760471/1767704344_186359_1402654262_02b8d3ed3f67fe1c170c6a35079e4b56_rle_crop_4091760138_0.png.png imagette299837121767760471/1767704965_218494_1402654217_c05368dd68a26841897c422b690ba66f_rle_crop_4091774569_0.png.png imagette299837121767760471/1767704227_182646_1402654205_0b9899742a025a8ea96c78ee9dfc2d1f_rle_crop_4091751365_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/45a2280a284905469262fbd2b1a712b5_92497514.png imagette299837121767760471 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29983702 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29983715,29983716,29983717,29983718,29983719,29983720,29983721,29983722,29983723,29983724,29983725,29983726?tags=flou,Carton_gris,plastique,papier,mal_croppe,Carton_brun,environnement,metal,cartonnette,Teint_Dans_La_Masse,autre_refus,kraft your option no_mail is active, we will not send the real mail to your client args[1402656264] : ('0.0211248607610677',) no score found for photo 1402656264 We are sending mail with results at report@fotonower.com args[1402655752] : ('0.0211248607610677',) no score found for photo 1402655752 We are sending mail with results at report@fotonower.com args[1402655340] : ('0.0211248607610677',) no score found for photo 1402655340 We are sending mail with results at report@fotonower.com args[1402655333] : ('0.0211248607610677',) no score found for photo 1402655333 We are sending mail with results at report@fotonower.com args[1402655288] : ('0.0211248607610677',) no score found for photo 1402655288 We are sending mail with results at report@fotonower.com args[1402655287] : ('0.0211248607610677',) no score found for photo 1402655287 We are sending mail with results at report@fotonower.com args[1402655248] : ('0.0211248607610677',) no score found for photo 1402655248 We are sending mail with results at report@fotonower.com args[1402655247] : ('0.0211248607610677',) no score found for photo 1402655247 We are sending mail with results at report@fotonower.com args[1402655027] : ('0.0211248607610677',) no score found for photo 1402655027 We are sending mail with results at report@fotonower.com args[1402654993] : ('0.0211248607610677',) no score found for photo 1402654993 We are sending mail with results at report@fotonower.com args[1402654958] : ('0.0211248607610677',) no score found for photo 1402654958 We are sending mail with results at report@fotonower.com args[1402654925] : ('0.0211248607610677',) no score found for photo 1402654925 We are sending mail with results at report@fotonower.com args[1402654262] : ('0.0211248607610677',) no score found for photo 1402654262 We are sending mail with results at report@fotonower.com args[1402654261] : ('0.0211248607610677',) no score found for photo 1402654261 We are sending mail with results at report@fotonower.com args[1402654260] : ('0.0211248607610677',) no score found for photo 1402654260 We are sending mail with results at report@fotonower.com args[1402654217] : ('0.0211248607610677',) no score found for photo 1402654217 We are sending mail with results at report@fotonower.com args[1402654216] : ('0.0211248607610677',) no score found for photo 1402654216 We are sending mail with results at report@fotonower.com args[1402654205] : ('0.0211248607610677',) no score found for photo 1402654205 We are sending mail with results at report@fotonower.com args[1402654202] : ('0.0211248607610677',) no score found for photo 1402654202 We are sending mail with results at report@fotonower.com args[1402654200] : ('0.0211248607610677',) no score found for photo 1402654200 We are sending mail with results at report@fotonower.com args[1402654199] : ('0.0211248607610677',) no score found for photo 1402654199 We are sending mail with results at report@fotonower.com args[1402654197] : ('0.0211248607610677',) no score found for photo 1402654197 We are sending mail with results at report@fotonower.com args[1402654178] : ('0.0211248607610677',) no score found for photo 1402654178 We are sending mail with results at report@fotonower.com args[1402654177] : ('0.0211248607610677',) no score found for photo 1402654177 We are sending mail with results at report@fotonower.com args[1402654176] : ('0.0211248607610677',) no score found for photo 1402654176 We are sending mail with results at report@fotonower.com args[1402653968] : ('0.0211248607610677',) no score found for photo 1402653968 We are sending mail with results at report@fotonower.com args[1402653953] : ('0.0211248607610677',) no score found for photo 1402653953 We are sending mail with results at report@fotonower.com args[1402653951] : ('0.0211248607610677',) no score found for photo 1402653951 We are sending mail with results at report@fotonower.com refus_total : 0.0211248607610677 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=29983702 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_P29983702_07-01-2026_05_34_29.pdf results_Auto_P29983702_07-01-2026_05_34_29.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29983702_07-01-2026_05_34_29.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','29983702','results_Auto_P29983702_07-01-2026_05_34_29.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29983702_07-01-2026_05_34_29.pdf','pdf','','0.26','0.0211248607610677') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29983702]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1402656264, 1402655752, 1402655340, 1402655333, 1402655288, 1402655287, 1402655248, 1402655247, 1402655027, 1402654993, 1402654958, 1402654925, 1402654262, 1402654261, 1402654260, 1402654217, 1402654216, 1402654205, 1402654202, 1402654200, 1402654199, 1402654197, 1402654178, 1402654177, 1402654176, 1402653968, 1402653953, 1402653951] map_info['map_portfolio_photo'] : {29983702: [1402656264, 1402655752, 1402655340, 1402655333, 1402655288, 1402655287, 1402655248, 1402655247, 1402655027, 1402654993, 1402654958, 1402654925, 1402654262, 1402654261, 1402654260, 1402654217, 1402654216, 1402654205, 1402654202, 1402654200, 1402654199, 1402654197, 1402654178, 1402654177, 1402654176, 1402653968, 1402653953, 1402653951]} final : False mtd_id 4302 list_pids : [1402656264, 1402655752, 1402655340, 1402655333, 1402655288, 1402655287, 1402655248, 1402655247, 1402655027, 1402654993, 1402654958, 1402654925, 1402654262, 1402654261, 1402654260, 1402654217, 1402654216, 1402654205, 1402654202, 1402654200, 1402654199, 1402654197, 1402654178, 1402654177, 1402654176, 1402653968, 1402653953, 1402653951] 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, '4320454') ('4302', '29983702', '1402656264', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655752', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655340', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655333', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655288', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655287', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655248', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655247', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655027', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654993', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654958', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654925', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654262', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654261', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654260', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654217', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654216', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654205', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654202', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654200', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654199', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654197', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654178', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654177', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654176', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402653968', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402653953', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402653951', None, None, None, None, None, '4320454') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 28 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', '29983702', '1402656264', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402655752', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402655340', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402655333', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402655288', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402655287', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402655248', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402655247', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402655027', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654993', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654958', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654925', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654262', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654261', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654260', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654217', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654216', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654205', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654202', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654200', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654199', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654197', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654178', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654177', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654176', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402653968', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402653953', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402653951', None, None, None, None, None, '4320454')] time used for this insertion : 0.020653724670410156 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.616943836212158 time spend to save output : 0.020980358123779297 total time spend for step 4 : 5.6379241943359375 step5:split_time_score Wed Jan 7 05:34:33 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 : ['29983702'] 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 : [('29983702',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29983702) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1402655333: {'path': 'temp/1767760468_2284797_1402655333_9e43a320920b10eff842e2210723e6c2.jpg', 'extension': 'jpg'}, 1402655340: {'path': 'temp/1767760468_2284797_1402655340_d06d55b87b6215249f11ec9250e0cd89.jpg', 'extension': 'jpg'}, 1402655752: {'path': 'temp/1767760468_2284797_1402655752_8cac8e743461c28d726e31388d995ff6.jpg', 'extension': 'jpg'}, 1402656264: {'path': 'temp/1767760468_2284797_1402656264_4223bd05a6e43d95d0bba22d7eb27041.jpg', 'extension': 'jpg'}, 1402654197: {'path': 'temp/1767760468_2284797_1402654197_6b937f3f5ba09099010b6f9abd980e75.jpg', 'extension': 'jpg'}, 1402654199: {'path': 'temp/1767760468_2284797_1402654199_a3dbea3ed418f1071cd86ab6d7da4073.jpg', 'extension': 'jpg'}, 1402654200: {'path': 'temp/1767760468_2284797_1402654200_f16812369a0c64db8629e607655b298c.jpg', 'extension': 'jpg'}, 1402654202: {'path': 'temp/1767760468_2284797_1402654202_fbee3066b031b2c45255623d12d9fc47.jpg', 'extension': 'jpg'}, 1402654205: {'path': 'temp/1767760468_2284797_1402654205_0b9899742a025a8ea96c78ee9dfc2d1f.jpg', 'extension': 'jpg'}, 1402654216: {'path': 'temp/1767760468_2284797_1402654216_f008cecfa03ead0caffa88472752247f.jpg', 'extension': 'jpg'}, 1402654993: {'path': 'temp/1767760468_2284797_1402654993_ae583be7f392a55cb823b6e5af8a4931.jpg', 'extension': 'jpg'}, 1402655027: {'path': 'temp/1767760468_2284797_1402655027_4aa7ef217e1c0151e56ee5f8d64b0171.jpg', 'extension': 'jpg'}, 1402655247: {'path': 'temp/1767760468_2284797_1402655247_02a1e39ea5e03738d04b5ebd5f12ead5.jpg', 'extension': 'jpg'}, 1402655248: {'path': 'temp/1767760468_2284797_1402655248_6293f97fba5f6f81323683539c0b93e1.jpg', 'extension': 'jpg'}, 1402655287: {'path': 'temp/1767760468_2284797_1402655287_5fe4de134e6e6cd7b97741ab0d6967dc.jpg', 'extension': 'jpg'}, 1402655288: {'path': 'temp/1767760468_2284797_1402655288_9584bc58d2e4182a1c54bec770dba377.jpg', 'extension': 'jpg'}, 1402654217: {'path': 'temp/1767760468_2284797_1402654217_c05368dd68a26841897c422b690ba66f.jpg', 'extension': 'jpg'}, 1402654260: {'path': 'temp/1767760468_2284797_1402654260_33f00f7295508e4e4debff463a45088a.jpg', 'extension': 'jpg'}, 1402654261: {'path': 'temp/1767760468_2284797_1402654261_3dcbea87c0f358181dee3bb476184bc4.jpg', 'extension': 'jpg'}, 1402654262: {'path': 'temp/1767760468_2284797_1402654262_02b8d3ed3f67fe1c170c6a35079e4b56.jpg', 'extension': 'jpg'}, 1402654925: {'path': 'temp/1767760468_2284797_1402654925_c4b64e4e44fe47ef7e31b767a8080783.jpg', 'extension': 'jpg'}, 1402654958: {'path': 'temp/1767760468_2284797_1402654958_6923220ecc5f2807fc8df8938ddbee92.jpg', 'extension': 'jpg'}, 1402653951: {'path': 'temp/1767760468_2284797_1402653951_e3806f9becd9e536fad79285cba726be.jpg', 'extension': 'jpg'}, 1402653953: {'path': 'temp/1767760468_2284797_1402653953_46bffb23162c0de40efbd59da38dc25f.jpg', 'extension': 'jpg'}, 1402653968: {'path': 'temp/1767760468_2284797_1402653968_75a5a7837d8a9de2f9169bb01d714c29.jpg', 'extension': 'jpg'}, 1402654176: {'path': 'temp/1767760468_2284797_1402654176_21c7fc11753cc4a389841fc914558271.jpg', 'extension': 'jpg'}, 1402654177: {'path': 'temp/1767760468_2284797_1402654177_6e1598aaef60bbab3763f8ab1a9792af.jpg', 'extension': 'jpg'}, 1402654178: {'path': 'temp/1767760468_2284797_1402654178_bcc30cba8079dd50c46604b67cae0714.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 = 29983702; (('arc_en_ciel_jrm_bis',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29983702 group by h (('13', 28),) 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=29983702 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 (29983702) 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 (29983702) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 06012026 29983702 Nombre de photos uploadées : 28 / 23040 (0%) 06012026 29983702 Nombre de photos taguées (types de déchets): 0 / 28 (0%) 06012026 29983702 Nombre de photos taguées (volume) : 0 / 28 (0%) [{'photo_id': 1402653953, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/46bffb23162c0de40efbd59da38dc25f.jpg', 'username': None, 'uploaded_at': 1767703568, 'text': 'image_06012026_13_45_34_010143m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1402653951, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/e3806f9becd9e536fad79285cba726be.jpg', 'username': None, 'uploaded_at': 1767703568, 'text': 'image_06012026_13_45_45_010140m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1402653968, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/75a5a7837d8a9de2f9169bb01d714c29.jpg', 'username': None, 'uploaded_at': 1767703627, 'text': 'image_06012026_13_45_55_010138m0.jpg 3.0000000000000004e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1402654178, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/6/bcc30cba8079dd50c46604b67cae0714.jpg', 'username': None, 'uploaded_at': 1767704107, 'text': 'image_06012026_13_46_15_10138.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ???????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0012722015380859375 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29983702, '2026-01-06' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2026-01-06' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2847576,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.251270055770874 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 2847576 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29983702, 'dashboard_result_id': 19091761, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29983702_06-01-2026_14_04_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983711, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983714, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29983871, 'dashboard_result_id': 19091762, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29983871_06-01-2026_14_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983920, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983931, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29984338, 'dashboard_result_id': 19091763, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29984338_06-01-2026_14_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984353, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29984604, 'dashboard_result_id': 19091764, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29984604_06-01-2026_14_48_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984628, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29985208, 'dashboard_result_id': 19091766, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29985208_06-01-2026_15_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985234, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29985695, 'dashboard_result_id': 19091767, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29985695_06-01-2026_15_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985768, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985774, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29986175, 'dashboard_result_id': 19091768, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986175_06-01-2026_15_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29986180, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986191, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29986341, 'dashboard_result_id': 19091769, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986341_06-01-2026_15_49_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986363, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986370, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29986616, 'dashboard_result_id': 19091770, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986616_06-01-2026_16_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986628, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29986912, 'dashboard_result_id': 19091771, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986912_06-01-2026_16_20_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986918, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986927, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29987128, 'dashboard_result_id': 19091772, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29987128_06-01-2026_16_38_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29987133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29987134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29987135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29987136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29987137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29987138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29987139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29987140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29987141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29987142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29987143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29987144, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29988197, 'dashboard_result_id': 19091773, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29988197_06-01-2026_18_13_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29988204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988213, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29988950, 'dashboard_result_id': 19091774, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29988950_06-01-2026_18_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29988952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988958, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988963, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29989109, 'dashboard_result_id': 19091775, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29989109_06-01-2026_18_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29989115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989121, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989122, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29989579, 'dashboard_result_id': 19091776, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29989579_06-01-2026_19_18_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29989584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989595, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29990042, 'dashboard_result_id': 19091777, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990042_06-01-2026_19_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990046, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990056, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29990281, 'dashboard_result_id': 19091779, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990281_06-01-2026_19_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990296, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29990561, 'dashboard_result_id': 19091780, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990561_06-01-2026_20_05_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990576, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29990904, 'dashboard_result_id': 19091781, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990904_06-01-2026_20_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29990906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990917, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29992020, 'dashboard_result_id': 19091782, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992020_06-01-2026_21_21_13.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992025, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992035, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29992183, 'dashboard_result_id': 19091783, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992183_06-01-2026_21_35_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992196, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992198, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29992563, 'dashboard_result_id': 19091784, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992563_06-01-2026_21_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29992581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992585, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992592, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29993031, 'dashboard_result_id': 19091785, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29993031_06-01-2026_22_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29993043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993051, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993054, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29993483, 'dashboard_result_id': 19091786, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29993483_06-01-2026_22_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29993512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993515, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29994356, 'dashboard_result_id': 19091787, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29994356_06-01-2026_22_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29994405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29994406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29994407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29994408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29994409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29994410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29994411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29994412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29994413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29994414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29994415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29994416, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29995259, 'dashboard_result_id': 19091788, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29995259_06-01-2026_22_47_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29995277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29995278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29995279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29995281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29995282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29995283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29995284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29995285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29995286, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29995287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29995289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29995290, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29996022, 'dashboard_result_id': 19091790, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29996022_06-01-2026_23_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29996060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29996061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29996062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29996064, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29996065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29996066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29996067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29996068, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29996069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29996070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29996071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29996072, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29996868, 'dashboard_result_id': 19091791, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29996868_06-01-2026_23_18_56.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29996922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29996923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29996924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29996925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29996926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29996927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29996928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29996929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29996930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29996931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29996932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29996933, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29997723, 'dashboard_result_id': 19091792, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29997723_06-01-2026_23_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29997748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29997749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29997750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29997751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29997752, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29997753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29997754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29997755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29997756, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29997757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29997758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29997759, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29998325, 'dashboard_result_id': 19091793, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29998325_06-01-2026_23_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29998357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29998358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29998359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29998360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29998361, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29998362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29998363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29998364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29998365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29998366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29998367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29998368, 'pht': 3726}}"}, {'dashboat_entry_day': 2847576, 'dashboard_run_id': 2862046, 'mtr_portfolio_id': 29998733, 'dashboard_result_id': 19091794, '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_P29998733_07-01-2026_01_01_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29998740, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29998741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29998742, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29998743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29998744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29998745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29998746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29998747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29998748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29998749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29998750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29998751, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29983702 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4320454, 'mtr_portfolio_id': 29983702, 'created_at': datetime.datetime(2026, 1, 7, 5, 34, 27), 'result': '0.0211248607610677', 'result_long': None, 'result_double': None}] Qualite : 0.0211248607610677 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29983702 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29983702_07-01-2026_05_34_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29983702 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29983702_07-01-2026_05_34_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983711, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983714, 'pht': 3726}}" where mtr_portfolio_id = 29983702 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29983702 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091761, 0.0211248607610677, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29983702_07-01-2026_05_34_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983703, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983705, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983706, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983707, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983708, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983709, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983710, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983711, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983712, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983713, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983714, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29983871 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4320455, 'mtr_portfolio_id': 29983871, 'created_at': datetime.datetime(2026, 1, 7, 5, 34, 33), 'result': '0.020690922417026077', 'result_long': None, 'result_double': None}] Qualite : 0.020690922417026077 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29983871 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29983871_06-01-2026_14_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29983871 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29983871_06-01-2026_14_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983920, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983931, 'pht': 3726}}" where mtr_portfolio_id = 29983871 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29983871 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091762, 0.020690922417026077, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29983871_06-01-2026_14_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29983920, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29983921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29983922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29983923, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29983924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29983925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29983926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29983927, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29983928, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29983929, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29983930, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29983931, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29984338 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4317247, 'mtr_portfolio_id': 29984338, 'created_at': datetime.datetime(2026, 1, 6, 14, 35), 'result': '0.04421720492812946', 'result_long': None, 'result_double': None}] Qualite : 0.04421720492812946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29984338 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29984338_06-01-2026_14_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29984338 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29984338_06-01-2026_14_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984353, 'pht': 3726}}" where mtr_portfolio_id = 29984338 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29984338 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091763, 0.04421720492812946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29984338_06-01-2026_14_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984343, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984347, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984348, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984349, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984350, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984351, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984353, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29984604 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4317301, 'mtr_portfolio_id': 29984604, 'created_at': datetime.datetime(2026, 1, 6, 14, 48, 56), 'result': '0.04795347821360475', 'result_long': None, 'result_double': None}] Qualite : 0.04795347821360475 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29984604 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29984604_06-01-2026_14_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29984604 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29984604_06-01-2026_14_48_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984628, 'pht': 3726}}" where mtr_portfolio_id = 29984604 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29984604 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091764, 0.04795347821360475, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29984604_06-01-2026_14_48_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29984617, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29984618, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29984619, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29984620, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29984621, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29984622, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29984623, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29984624, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29984625, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29984626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29984627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29984628, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29985208 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4317391, 'mtr_portfolio_id': 29985208, 'created_at': datetime.datetime(2026, 1, 6, 15, 3), 'result': '0.06037429492965243', 'result_long': None, 'result_double': None}] Qualite : 0.06037429492965243 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29985208 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29985208_06-01-2026_15_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29985208 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29985208_06-01-2026_15_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985234, 'pht': 3726}}" where mtr_portfolio_id = 29985208 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29985208 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091766, 0.06037429492965243, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29985208_06-01-2026_15_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985223, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985225, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985226, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985227, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985229, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985230, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985232, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985233, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985234, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29985695 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4317466, 'mtr_portfolio_id': 29985695, 'created_at': datetime.datetime(2026, 1, 6, 15, 18, 59), 'result': '0.030739318521380846', 'result_long': None, 'result_double': None}] Qualite : 0.030739318521380846 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29985695 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29985695_06-01-2026_15_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29985695 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29985695_06-01-2026_15_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985768, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985774, 'pht': 3726}}" where mtr_portfolio_id = 29985695 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29985695 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091767, 0.030739318521380846, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29985695_06-01-2026_15_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29985762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29985763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29985764, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29985765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29985766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29985767, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29985768, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29985769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29985770, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29985771, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29985773, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29985774, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29986175 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4317511, 'mtr_portfolio_id': 29986175, 'created_at': datetime.datetime(2026, 1, 6, 15, 32, 58), 'result': '0.02568770202023262', 'result_long': None, 'result_double': None}] Qualite : 0.02568770202023262 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29986175 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986175_06-01-2026_15_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29986175 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986175_06-01-2026_15_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29986180, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986191, 'pht': 3726}}" where mtr_portfolio_id = 29986175 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29986175 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091768, 0.02568770202023262, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986175_06-01-2026_15_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29986180, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986182, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986183, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986184, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986185, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986186, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986187, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986188, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986190, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986191, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29986341 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4317539, 'mtr_portfolio_id': 29986341, 'created_at': datetime.datetime(2026, 1, 6, 15, 49, 1), 'result': '0.026397140536285345', 'result_long': None, 'result_double': None}] Qualite : 0.026397140536285345 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29986341 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986341_06-01-2026_15_49_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29986341 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986341_06-01-2026_15_49_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986363, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986370, 'pht': 3726}}" where mtr_portfolio_id = 29986341 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29986341 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091769, 0.026397140536285345, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986341_06-01-2026_15_49_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986361, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986362, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986363, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986364, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986367, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986369, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986370, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29986616 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4317584, 'mtr_portfolio_id': 29986616, 'created_at': datetime.datetime(2026, 1, 6, 16, 2, 58), 'result': '0.04873517687602566', 'result_long': None, 'result_double': None}] Qualite : 0.04873517687602566 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29986616 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986616_06-01-2026_16_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29986616 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986616_06-01-2026_16_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986628, 'pht': 3726}}" where mtr_portfolio_id = 29986616 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29986616 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091770, 0.04873517687602566, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986616_06-01-2026_16_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986617, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986618, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986620, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986621, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986622, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986624, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986625, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986627, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986628, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29986912 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4317626, 'mtr_portfolio_id': 29986912, 'created_at': datetime.datetime(2026, 1, 6, 16, 20, 58), 'result': '0.03471252440187812', 'result_long': None, 'result_double': None}] Qualite : 0.03471252440187812 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29986912 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986912_06-01-2026_16_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29986912 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986912_06-01-2026_16_20_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986918, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986927, 'pht': 3726}}" where mtr_portfolio_id = 29986912 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29986912 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091771, 0.03471252440187812, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29986912_06-01-2026_16_20_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29986916, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29986917, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29986918, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29986919, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29986920, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29986921, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29986922, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29986923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29986924, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29986925, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29986926, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29986927, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29987128 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4317656, 'mtr_portfolio_id': 29987128, 'created_at': datetime.datetime(2026, 1, 6, 16, 38, 58), 'result': '0.029989250279964', 'result_long': None, 'result_double': None}] Qualite : 0.029989250279964 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29987128 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29987128_06-01-2026_16_38_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29987128 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29987128_06-01-2026_16_38_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29987133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29987134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29987135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29987136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29987137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29987138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29987139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29987140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29987141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29987142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29987143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29987144, 'pht': 3726}}" where mtr_portfolio_id = 29987128 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29987128 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091772, 0.029989250279964, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29987128_06-01-2026_16_38_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29987133, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29987134, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29987135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29987136, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29987137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29987138, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29987139, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29987140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29987141, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29987142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29987143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29987144, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29988197 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4317808, 'mtr_portfolio_id': 29988197, 'created_at': datetime.datetime(2026, 1, 6, 18, 13), 'result': '0.2352042110746693', 'result_long': None, 'result_double': None}] Qualite : 0.2352042110746693 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29988197 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29988197_06-01-2026_18_13_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29988197 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29988197_06-01-2026_18_13_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29988204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988213, 'pht': 3726}}" where mtr_portfolio_id = 29988197 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29988197 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091773, 0.2352042110746693, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29988197_06-01-2026_18_13_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988202, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29988204, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988205, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988206, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988207, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988208, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988209, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988211, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988212, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988213, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29988950 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4317940, 'mtr_portfolio_id': 29988950, 'created_at': datetime.datetime(2026, 1, 6, 18, 32, 58), 'result': '0.11963051026203138', 'result_long': None, 'result_double': None}] Qualite : 0.11963051026203138 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29988950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29988950_06-01-2026_18_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29988950 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29988950_06-01-2026_18_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29988952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988958, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988963, 'pht': 3726}}" where mtr_portfolio_id = 29988950 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29988950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091774, 0.11963051026203138, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29988950_06-01-2026_18_32_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29988952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29988953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29988954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29988955, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29988956, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29988957, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29988958, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29988959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29988960, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29988961, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29988962, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29988963, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29989109 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4317977, 'mtr_portfolio_id': 29989109, 'created_at': datetime.datetime(2026, 1, 6, 18, 47, 1), 'result': '0.02513504881480487', 'result_long': None, 'result_double': None}] Qualite : 0.02513504881480487 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29989109 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29989109_06-01-2026_18_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29989109 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29989109_06-01-2026_18_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29989115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989121, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989122, 'pht': 3726}}" where mtr_portfolio_id = 29989109 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29989109 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091775, 0.02513504881480487, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29989109_06-01-2026_18_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989111, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989113, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989114, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29989115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989118, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989119, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989120, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989121, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989122, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29989579 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4318051, 'mtr_portfolio_id': 29989579, 'created_at': datetime.datetime(2026, 1, 6, 19, 18, 31), 'result': '0.025601462006281817', 'result_long': None, 'result_double': None}] Qualite : 0.025601462006281817 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29989579 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29989579_06-01-2026_19_18_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29989579 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29989579_06-01-2026_19_18_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29989584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989595, 'pht': 3726}}" where mtr_portfolio_id = 29989579 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29989579 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091776, 0.025601462006281817, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29989579_06-01-2026_19_18_31.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29989584, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29989585, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29989586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29989587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29989588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29989589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29989590, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29989591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29989592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29989593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29989594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29989595, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29990042 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4318092, 'mtr_portfolio_id': 29990042, 'created_at': datetime.datetime(2026, 1, 6, 19, 34, 30), 'result': '0.05281345252904674', 'result_long': None, 'result_double': None}] Qualite : 0.05281345252904674 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29990042 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990042_06-01-2026_19_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29990042 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990042_06-01-2026_19_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990046, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990056, 'pht': 3726}}" where mtr_portfolio_id = 29990042 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29990042 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091777, 0.05281345252904674, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990042_06-01-2026_19_34_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990046, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990049, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990050, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990051, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990052, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990053, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990054, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990056, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29990281 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4318126, 'mtr_portfolio_id': 29990281, 'created_at': datetime.datetime(2026, 1, 6, 19, 46, 59), 'result': '0.031446307287372216', 'result_long': None, 'result_double': None}] Qualite : 0.031446307287372216 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29990281 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990281_06-01-2026_19_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29990281 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990281_06-01-2026_19_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990296, 'pht': 3726}}" where mtr_portfolio_id = 29990281 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29990281 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091779, 0.031446307287372216, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990281_06-01-2026_19_47_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990292, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990295, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990296, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29990561 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4318162, 'mtr_portfolio_id': 29990561, 'created_at': datetime.datetime(2026, 1, 6, 20, 5), 'result': '0.11225773860733029', 'result_long': None, 'result_double': None}] Qualite : 0.11225773860733029 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29990561 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990561_06-01-2026_20_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29990561 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990561_06-01-2026_20_05_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990576, 'pht': 3726}}" where mtr_portfolio_id = 29990561 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29990561 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091780, 0.11225773860733029, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990561_06-01-2026_20_05_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990566, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990567, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990568, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990570, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990571, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29990572, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990573, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990575, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990576, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29990904 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4318212, 'mtr_portfolio_id': 29990904, 'created_at': datetime.datetime(2026, 1, 6, 20, 17), 'result': '0.15519283692203367', 'result_long': None, 'result_double': None}] Qualite : 0.15519283692203367 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29990904 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990904_06-01-2026_20_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29990904 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990904_06-01-2026_20_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29990906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990917, 'pht': 3726}}" where mtr_portfolio_id = 29990904 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29990904 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091781, 0.15519283692203367, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29990904_06-01-2026_20_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29990906, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29990907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29990908, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29990909, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29990910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29990911, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29990912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29990913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29990914, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29990915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29990916, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29990917, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29992020 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4318367, 'mtr_portfolio_id': 29992020, 'created_at': datetime.datetime(2026, 1, 6, 21, 21, 13), 'result': '0.07044894118906095', 'result_long': None, 'result_double': None}] Qualite : 0.07044894118906095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29992020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992020_06-01-2026_21_21_13.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29992020 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992020_06-01-2026_21_21_13.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992025, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992035, 'pht': 3726}}" where mtr_portfolio_id = 29992020 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29992020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091782, 0.07044894118906095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992020_06-01-2026_21_21_13.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992024, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992025, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992026, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992027, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992032, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992033, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992034, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992035, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29992183 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4318380, 'mtr_portfolio_id': 29992183, 'created_at': datetime.datetime(2026, 1, 6, 21, 35), 'result': '0.07215581131758142', 'result_long': None, 'result_double': None}] Qualite : 0.07215581131758142 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29992183 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992183_06-01-2026_21_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29992183 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992183_06-01-2026_21_35_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992196, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992198, 'pht': 3726}}" where mtr_portfolio_id = 29992183 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29992183 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091783, 0.07215581131758142, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992183_06-01-2026_21_35_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992187, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992188, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992189, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992190, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992191, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992192, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29992193, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992194, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992195, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992196, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992198, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29992563 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4318420, 'mtr_portfolio_id': 29992563, 'created_at': datetime.datetime(2026, 1, 6, 21, 49), 'result': '0.040228862385956514', 'result_long': None, 'result_double': None}] Qualite : 0.040228862385956514 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29992563 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992563_06-01-2026_21_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29992563 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992563_06-01-2026_21_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29992581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992585, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992592, 'pht': 3726}}" where mtr_portfolio_id = 29992563 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29992563 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091784, 0.040228862385956514, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29992563_06-01-2026_21_49_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29992581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29992582, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29992583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29992584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29992585, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29992586, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29992587, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29992588, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29992589, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29992590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29992591, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29992592, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29993031 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4318477, 'mtr_portfolio_id': 29993031, 'created_at': datetime.datetime(2026, 1, 6, 22, 2, 59), 'result': '0.05395314798042522', 'result_long': None, 'result_double': None}] Qualite : 0.05395314798042522 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29993031 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29993031_06-01-2026_22_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29993031 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29993031_06-01-2026_22_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29993043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993051, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993054, 'pht': 3726}}" where mtr_portfolio_id = 29993031 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29993031 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091785, 0.05395314798042522, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29993031_06-01-2026_22_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29993043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993045, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993046, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993048, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993049, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993050, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993051, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993052, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993054, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29993483 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4318586, 'mtr_portfolio_id': 29993483, 'created_at': datetime.datetime(2026, 1, 6, 22, 16, 59), 'result': '0.04906287081713248', 'result_long': None, 'result_double': None}] Qualite : 0.04906287081713248 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29993483 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29993483_06-01-2026_22_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29993483 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29993483_06-01-2026_22_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29993512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993515, 'pht': 3726}}" where mtr_portfolio_id = 29993483 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29993483 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091786, 0.04906287081713248, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29993483_06-01-2026_22_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29993503, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29993504, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29993505, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29993507, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29993508, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29993509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29993510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29993511, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29993512, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29993513, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29993514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29993515, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29994356 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4318668, 'mtr_portfolio_id': 29994356, 'created_at': datetime.datetime(2026, 1, 6, 22, 32, 59), 'result': '0.06192785817322462', 'result_long': None, 'result_double': None}] Qualite : 0.06192785817322462 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29994356 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29994356_06-01-2026_22_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29994356 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29994356_06-01-2026_22_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29994405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29994406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29994407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29994408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29994409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29994410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29994411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29994412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29994413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29994414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29994415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29994416, 'pht': 3726}}" where mtr_portfolio_id = 29994356 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29994356 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091787, 0.06192785817322462, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29994356_06-01-2026_22_33_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29994405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29994406, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29994407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29994408, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29994409, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29994410, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29994411, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29994412, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29994413, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29994414, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29994415, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29994416, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29995259 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4318750, 'mtr_portfolio_id': 29995259, 'created_at': datetime.datetime(2026, 1, 6, 22, 47), 'result': '0.04972142154858078', 'result_long': None, 'result_double': None}] Qualite : 0.04972142154858078 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29995259 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29995259_06-01-2026_22_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29995259 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29995259_06-01-2026_22_47_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29995277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29995278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29995279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29995281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29995282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29995283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29995284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29995285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29995286, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29995287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29995289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29995290, 'pht': 3726}}" where mtr_portfolio_id = 29995259 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29995259 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091788, 0.04972142154858078, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29995259_06-01-2026_22_47_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29995277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29995278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29995279, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29995281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29995282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29995283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29995284, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29995285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29995286, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29995287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29995289, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29995290, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29996022 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4318844, 'mtr_portfolio_id': 29996022, 'created_at': datetime.datetime(2026, 1, 6, 23, 2, 58), 'result': '0.0635783938331082', 'result_long': None, 'result_double': None}] Qualite : 0.0635783938331082 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29996022 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29996022_06-01-2026_23_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29996022 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29996022_06-01-2026_23_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29996060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29996061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29996062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29996064, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29996065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29996066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29996067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29996068, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29996069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29996070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29996071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29996072, 'pht': 3726}}" where mtr_portfolio_id = 29996022 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29996022 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091790, 0.0635783938331082, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29996022_06-01-2026_23_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29996060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29996061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29996062, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29996064, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29996065, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29996066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29996067, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29996068, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29996069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29996070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29996071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29996072, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29996868 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4318942, 'mtr_portfolio_id': 29996868, 'created_at': datetime.datetime(2026, 1, 6, 23, 18, 56), 'result': '0.06693331572094002', 'result_long': None, 'result_double': None}] Qualite : 0.06693331572094002 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29996868 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29996868_06-01-2026_23_18_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29996868 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29996868_06-01-2026_23_18_56.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29996922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29996923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29996924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29996925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29996926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29996927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29996928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29996929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29996930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29996931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29996932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29996933, 'pht': 3726}}" where mtr_portfolio_id = 29996868 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29996868 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091791, 0.06693331572094002, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29996868_06-01-2026_23_18_56.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29996922, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29996923, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29996924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29996925, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29996926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29996927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29996928, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29996929, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29996930, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29996931, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29996932, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29996933, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29997723 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4319012, 'mtr_portfolio_id': 29997723, 'created_at': datetime.datetime(2026, 1, 6, 23, 33), 'result': '0.04932814890496483', 'result_long': None, 'result_double': None}] Qualite : 0.04932814890496483 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29997723 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29997723_06-01-2026_23_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29997723 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29997723_06-01-2026_23_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29997748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29997749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29997750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29997751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29997752, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29997753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29997754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29997755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29997756, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29997757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29997758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29997759, 'pht': 3726}}" where mtr_portfolio_id = 29997723 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29997723 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091792, 0.04932814890496483, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29997723_06-01-2026_23_33_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29997748, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29997749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29997750, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29997751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29997752, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29997753, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29997754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29997755, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29997756, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29997757, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29997758, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29997759, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29998325 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 4319085, 'mtr_portfolio_id': 29998325, 'created_at': datetime.datetime(2026, 1, 6, 23, 46, 58), 'result': '0.05071836705046097', 'result_long': None, 'result_double': None}] Qualite : 0.05071836705046097 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29998325 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29998325_06-01-2026_23_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29998325 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29998325_06-01-2026_23_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29998357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29998358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29998359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29998360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29998361, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29998362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29998363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29998364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29998365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29998366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29998367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29998368, 'pht': 3726}}" where mtr_portfolio_id = 29998325 and dashboard_run_id = 2862046 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29998325 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091793, 0.05071836705046097, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29998325_06-01-2026_23_46_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29998357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29998358, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29998359, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29998360, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29998361, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29998362, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29998363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29998364, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29998365, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29998366, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29998367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29998368, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29998733 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': 4319136, 'mtr_portfolio_id': 29998733, 'created_at': datetime.datetime(2026, 1, 7, 1, 1), 'result': '0.051962064812758155', 'result_long': None, 'result_double': None}] Qualite : 0.051962064812758155 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29998733 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29998733_07-01-2026_01_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29998733 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_P29998733_07-01-2026_01_01_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29998740, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29998741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29998742, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29998743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29998744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29998745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29998746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29998747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29998748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29998749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29998750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29998751, 'pht': 3726}}" where mtr_portfolio_id = 29998733 and dashboard_run_id = 2862046 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`=29998733 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (19091794, 0.051962064812758155, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29998733_07-01-2026_01_01_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29998740, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29998741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29998742, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29998743, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29998744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29998745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29998746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29998747, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29998748, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29998749, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29998750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29998751, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29983702,29983871,29984338,29984604,29985208,29985695,29986175,29986341,29986616,29986912,29987128,29988197,29988950,29989109,29989579,29990042,29990281,29990561,29990904,29992020,29992183,29992563,29993031,29993483,29994356,29995259,29996022,29996868,29997723,29998325,29998733) result : ((1402653951,), (1402653953,), (1402653968,), (1402654176,), (1402654177,), (1402654178,), (1402654197,), (1402654199,), (1402654200,), (1402654202,), (1402654205,), (1402654216,), (1402654217,), (1402654260,), (1402654261,), (1402654262,), (1402654925,), (1402654958,), (1402654993,), (1402655027,), (1402655247,), (1402655248,), (1402655287,), (1402655288,), (1402655333,), (1402655340,), (1402655752,), (1402656264,), (1402655652,), (1402655715,), (1402656130,), (1402656154,), (1402656188,), (1402656225,), (1402656257,), (1402656355,), (1402657555,), (1402657557,), (1402658485,), (1402658620,), (1402658691,), (1402658746,), (1402658742,), (1402658744,), (1402658766,), (1402658768,), (1402658788,), (1402658790,), (1402658791,), (1402658808,), (1402658810,), (1402658835,), (1402658836,), (1402658837,), (1402658838,), (1402658841,), (1402658855,), (1402658856,), (1402658883,), (1402658884,), (1402658885,), (1402658887,), (1402658890,), (1402658909,), (1402658912,), (1402658915,), (1402658919,), (1402658924,), (1402658931,), (1402658950,), (1402658951,), (1402658953,), (1402658954,), (1402658969,), (1402658970,), (1402658971,), (1402658972,), (1402658977,), (1402658979,), (1402659005,), (1402659006,), (1402659008,), (1402659009,), (1402659013,), (1402659026,), (1402659027,), (1402659028,), (1402659029,), (1402659057,), (1402659068,), (1402659070,), (1402659071,), (1402659073,), (1402659095,), (1402659141,), (1402659091,), (1402659092,), (1402659094,), (1402659116,), (1402659119,), (1402659120,), (1402659124,), (1402659126,), (1402659129,), (1402659138,), (1402659139,), (1402659142,), (1402659143,), (1402659144,), (1402659148,), (1402659151,), (1402659202,), (1402659203,), (1402659204,), (1402659206,), (1402659219,), (1402659220,), (1402659222,), (1402659224,), (1402659228,), (1402659230,), (1402659249,), (1402659253,), (1402659254,), (1402659256,), (1402659277,), (1402659278,), (1402659279,), (1402659285,), (1402659291,), (1402659308,), (1402659402,), (1402659403,), (1402659404,), (1402659408,), (1402659413,), (1402659422,), (1402659459,), (1402659460,), (1402659461,), (1402659505,), (1402659506,), (1402659507,), (1402659509,), (1402659512,), (1402659515,), (1402659525,), (1402659526,), (1402659528,), (1402659530,), (1402659556,), (1402659557,), (1402659558,), (1402659561,), (1402659564,), (1402659565,), (1402659572,), (1402659574,), (1402659575,), (1402659576,), (1402659577,), (1402659677,), (1402659700,), (1402659781,), (1402659784,), (1402659921,), (1402660263,), (1402660284,), (1402660314,), (1402660552,), (1402660553,), (1402660577,), (1402660578,), (1402660580,), (1402660584,), (1402660729,), (1402660782,), (1402660785,), (1402660788,), (1402661137,), (1402661073,), (1402661105,), (1402661853,), (1402662604,), (1402662642,), (1402662777,), (1402662837,), (1402662889,), (1402662910,), (1402662984,), (1402663040,), (1402663042,), (1402663056,), (1402663069,), (1402663090,), (1402663091,), (1402663103,), (1402663118,), (1402663120,), (1402663158,), (1402663198,), (1402663230,), (1402663250,), (1402663276,), (1402663277,), (1402663312,), (1402663314,), (1402663329,), (1402663379,), (1402663457,), (1402663586,), (1402663621,), (1402663641,), (1402663682,), (1402663761,), (1402663759,), (1402663925,), (1402663933,), (1402664100,), (1402664202,), (1402664324,), (1402664328,), (1402664347,), (1402664381,), (1402664547,), (1402664596,), (1402664604,), (1402664605,), (1402664618,), (1402664619,), (1402665095,), (1402665551,), (1402665397,), (1402665694,), (1402666145,), (1402666164,), (1402666183,), (1402666184,), (1402666268,), (1402666278,), (1402666348,), (1402666350,), (1402666368,), (1402666604,), (1402671093,), (1402671095,), (1402671097,), (1402671254,), (1402671278,), (1402671626,), (1402671627,), (1402671795,), (1402673627,), (1402673736,), (1402673893,), (1402673930,), (1402673952,), (1402673978,), (1402673980,), (1402673992,), (1402674005,), (1402674020,), (1402674113,), (1402674114,), (1402674126,), (1402674160,), (1402674235,), (1402674236,), (1402674737,), (1402674910,), (1402677429,), (1402677764,), (1402679554,), (1402679589,), (1402679870,), (1402679892,), (1402679901,), (1402679934,), (1402680157,), (1402680437,), (1402680676,), (1402680689,), (1402680690,), (1402680770,), (1402680784,), (1402680797,), (1402680892,), (1402680894,), (1402680953,), (1402681012,), (1402681058,), (1402681070,), (1402681071,), (1402681082,), (1402681148,), (1402681242,), (1402681243,), (1402681411,), (1402681430,), (1402681605,), (1402681805,), (1402681806,), (1402681864,), (1402681866,), (1402681868,), (1402681877,), (1402682360,), (1402683739,), (1402683783,), (1402683821,), (1402683823,), (1402683837,), (1402683862,), (1402683932,), (1402683975,), (1402684206,), (1402684207,), (1402684480,), (1402686027,), (1402689280,), (1402689282,), (1402689284,), (1402689286,), (1402689322,), (1402689323,), (1402689975,), (1402689988,), (1402689989,), (1402690405,), (1402690435,), (1402690441,), (1402690450,), (1402690486,), (1402690487,), (1402690501,), (1402690502,), (1402690503,), (1402690504,), (1402690507,), (1402690534,), (1402690536,), (1402690538,), (1402690550,), (1402690552,), (1402690554,), (1402690556,), (1402690559,), (1402690574,), (1402690575,), (1402690577,), (1402690578,), (1402690582,), (1402690594,), (1402690596,), (1402690616,), (1402690617,), (1402690635,), (1402690637,), (1402690639,), (1402690643,), (1402690647,), (1402690651,), (1402690674,), (1402690677,), (1402690679,), (1402690696,), (1402690722,), (1402690694,), (1402690695,), (1402690718,), (1402690719,), (1402690720,), (1402690797,), (1402690798,), (1402690812,), (1402690814,), (1402690835,), (1402690837,), (1402690839,), (1402690841,), (1402690844,), (1402690861,), (1402690863,), (1402690865,), (1402690866,), (1402690868,), (1402690891,), (1402690896,), (1402690908,), (1402690910,), (1402690912,), (1402690913,), (1402690915,), (1402690917,), (1402690938,), (1402690940,), (1402690941,), (1402690943,), (1402690946,), (1402690961,), (1402690989,), (1402691060,), (1402691061,), (1402691062,), (1402691533,), (1402691501,), (1402691526,), (1402691528,), (1402691529,), (1402691531,), (1402691542,), (1402691544,), (1402691546,), (1402691569,), (1402691575,), (1402691580,), (1402691594,), (1402691596,), (1402691599,), (1402691602,), (1402691606,), (1402691608,), (1402691618,), (1402691620,), (1402691622,), (1402691625,), (1402691628,), (1402691655,), (1402691686,), (1402691718,), (1402691750,), (1402691993,), (1402691994,), (1402691995,), (1402691998,), (1402692001,), (1402692003,), (1402692012,), (1402692013,), (1402692015,), (1402692017,), (1402692051,), (1402692052,), (1402692053,), (1402692055,), (1402692059,), (1402692083,), (1402692085,), (1402692087,), (1402692115,), (1402692116,), (1402692118,), (1402692131,), (1402692212,), (1402692213,), (1402692215,), (1402692218,), (1402692222,), (1402692246,), (1402692248,), (1402692250,), (1402692253,), (1402692412,), (1402692446,), (1402692479,), (1402692513,), (1402692652,), (1402692685,), (1402692720,), (1402692754,), (1402693010,), (1402692919,), (1402692954,), (1402693625,), (1402693663,), (1402693695,), (1402693726,), (1402694627,), (1402694672,), (1402694754,), (1402694802,), (1402695071,), (1402695073,), (1402695075,), (1402695078,), (1402695390,), (1402695424,), (1402695459,), (1402696002,), (1402696034,), (1402696069,), (1402696103,), (1402696138,), (1402696173,), (1402696379,), (1402696380,), (1402696381,), (1402696384,), (1402696614,), (1402696615,), (1402696633,), (1402696744,), (1402697300,), (1402697306,), (1402697332,), (1402697400,), (1402697434,), (1402697467,), (1402697497,), (1402697531,), (1402697877,), (1402697909,), (1402697941,), (1402697980,), (1402698214,), (1402698254,), (1402698392,), (1402698535,), (1402698674,), (1402698718,), (1402699001,), (1402699037,), (1402699056,), (1402699072,), (1402699104,), (1402699136,), (1402699280,), (1402699281,), (1402699283,), (1402699287,), (1402699290,), (1402699293,), (1402699311,), (1402699312,), (1402699313,), (1402699314,), (1402699317,), (1402699396,), (1402699365,), (1402699902,), (1402699935,), (1402699968,), (1402699995,), (1402700174,), (1402700186,), (1402700203,), (1402700210,), (1402700244,), (1402700362,), (1402700832,), (1402700910,), (1402700965,), (1402700967,), (1402700970,), (1402701041,), (1402701042,), (1402701057,), (1402701058,), (1402701059,), (1402701063,), (1402701082,), (1402701083,), (1402701084,), (1402701085,), (1402701088,), (1402701091,), (1402701098,), (1402701099,), (1402701100,), (1402701101,), (1402701117,), (1402701164,), (1402701253,), (1402701343,), (1402701449,), (1402702001,), (1402702034,), (1402702107,), (1402702145,), (1402702182,), (1402702362,), (1402702396,), (1402702457,), (1402702598,), (1402702600,), (1402702603,), (1402702608,), (1402702612,), (1402703110,), (1402703217,), (1402703249,), (1402703285,), (1402703318,), (1402703356,), (1402703652,), (1402703653,), (1402703667,), (1402703779,), (1402703781,), (1402703798,), (1402703828,), (1402704239,), (1402704214,), (1402704233,), (1402704234,), (1402704235,), (1402704440,), (1402704454,), (1402704461,), (1402704493,), (1402704509,), (1402704510,), (1402704512,), (1402704513,), (1402704516,), (1402704517,), (1402704542,), (1402704543,), (1402704571,), (1402704572,), (1402704574,), (1402704575,), (1402705413,), (1402705414,), (1402705416,), (1402705418,), (1402705422,), (1402706007,), (1402706044,), (1402706114,), (1402706137,), (1402706632,), (1402706686,), (1402706717,), (1402706866,), (1402706878,), (1402706882,), (1402706886,), (1402706906,), (1402706923,), (1402706924,), (1402706925,), (1402706927,), (1402706931,), (1402706940,), (1402706941,), (1402707089,), (1402707126,), (1402707160,), (1402707196,), (1402707230,), (1402707372,), (1402707389,), (1402707419,), (1402707428,), (1402707473,), (1402707474,), (1402707475,), (1402707477,), (1402707481,), (1402707607,), (1402707644,), (1402707675,), (1402707706,), (1402707756,), (1402708762,), (1402708754,), (1402708761,), (1402709041,), (1402709050,), (1402709059,), (1402709061,), (1402709065,), (1402709174,), (1402709270,), (1402709365,), (1402709464,), (1402709547,), (1402709764,), (1402709790,), (1402709792,), (1402709796,), (1402709821,), (1402709822,), (1402709823,), (1402709856,), (1402709857,), (1402709858,), (1402709860,), (1402709877,), (1402709878,), (1402709901,), (1402709902,), (1402709903,), (1402709970,), (1402709999,), (1402710060,), (1402710063,), (1402710066,), (1402710892,), (1402710895,), (1402710900,), (1402710903,), (1402710963,), (1402711012,), (1402711154,), (1402711157,), (1402711159,), (1402711162,), (1402711166,), (1402711169,), (1402711182,), (1402711184,), (1402711186,), (1402712322,), (1402712327,), (1402712332,), (1402712335,), (1402712530,), (1402712564,), (1402712597,), (1402712697,), (1402712733,), (1402713045,), (1402712841,), (1402712875,), (1402712921,), (1402712979,), (1402713400,), (1402713435,), (1402713466,), (1402713751,), (1402713753,), (1402713756,), (1402713759,), (1402713762,), (1402713791,), (1402714040,), (1402714085,), (1402714120,), (1402714181,), (1402714228,), (1402714579,), (1402714611,), (1402714646,), (1402714683,), (1402715130,), (1402715242,), (1402715914,), (1402715916,), (1402715918,), (1402715921,), (1402715969,), (1402716011,), (1402716073,), (1402716075,), (1402716077,), (1402716099,), (1402716132,), (1402716165,), (1402716701,), (1402716788,), (1402716791,), (1402716793,), (1402717200,), (1402717630,), (1402717632,), (1402717766,), (1402717802,), (1402717834,), (1402717866,), (1402718194,), (1402718232,), (1402718248,), (1402718251,), (1402718572,), (1402718673,), (1402718758,), (1402719557,), (1402720130,), (1402719342,), (1402719386,), (1402719440,), (1402719521,), (1402719876,), (1402719878,), (1402719914,), (1402719949,), (1402719983,), (1402720009,), (1402720028,), (1402720058,), (1402720089,), (1402720119,), (1402720156,), (1402720157,), (1402720210,), (1402720295,), (1402720387,), (1402720709,), (1402720732,), (1402720734,), (1402720736,), (1402720766,), (1402720800,), (1402721125,), (1402721160,), (1402721198,), (1402721233,), (1402721542,), (1402721544,), (1402721550,), (1402722162,), (1402722172,), (1402722189,), (1402722356,), (1402722359,), (1402722361,), (1402722362,), (1402722366,), (1402722387,), (1402722388,), (1402722390,), (1402722391,), (1402722395,), (1402722416,), (1402722417,), (1402722418,), (1402722420,), (1402722446,), (1402722447,), (1402722448,), (1402722450,), (1402722461,), (1402722462,), (1402722464,), (1402722467,), (1402722499,), (1402722500,), (1402722501,), (1402722503,), (1402722506,), (1402722518,), (1402722519,), (1402722520,), (1402722555,), (1402722563,), (1402722572,), (1402722573,), (1402722575,), (1402722577,), (1402722614,), (1402722603,), (1402722604,), (1402722605,), (1402722607,), (1402722611,), (1402722639,), (1402722640,), (1402722642,), (1402722644,), (1402722647,), (1402722671,), (1402722736,), (1402722783,), (1402722787,), (1402722788,), (1402722817,), (1402722828,), (1402722832,), (1402722833,), (1402722836,), (1402722879,), (1402722922,), (1402722923,), (1402722924,), (1402722925,), (1402722985,), (1402722987,), (1402722988,), (1402723001,), (1402723002,), (1402723003,), (1402723004,), (1402723007,), (1402723025,), (1402723026,), (1402723027,), (1402723044,), (1402723045,), (1402723047,), (1402723048,), (1402723071,), (1402723072,), (1402723073,), (1402723088,), (1402723097,), (1402723101,), (1402723104,), (1402723142,), (1402723127,), (1402723135,), (1402723136,), (1402723138,), (1402723155,), (1402723156,), (1402723157,), (1402723159,), (1402723171,), (1402723172,), (1402723173,), (1402723175,), (1402723200,), (1402723201,), (1402723203,), (1402723205,), (1402723207,), (1402723237,), (1402723238,), (1402723240,), (1402723241,), (1402723253,), (1402723254,), (1402723255,), (1402723294,), (1402723295,), (1402723296,), (1402723298,), (1402723316,), (1402723317,), (1402723318,), (1402723320,), (1402723324,), (1402723339,), (1402723340,), (1402723341,), (1402723424,), (1402723426,), (1402723603,), (1402723641,), (1402723682,), (1402723722,), (1402723764,), (1402723798,), (1402723947,), (1402725947,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'06012026': {'nb_upload': 28, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29983702]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1402656264, 1402655752, 1402655340, 1402655333, 1402655288, 1402655287, 1402655248, 1402655247, 1402655027, 1402654993, 1402654958, 1402654925, 1402654262, 1402654261, 1402654260, 1402654217, 1402654216, 1402654205, 1402654202, 1402654200, 1402654199, 1402654197, 1402654178, 1402654177, 1402654176, 1402653968, 1402653953, 1402653951] map_info['map_portfolio_photo'] : {29983702: [1402656264, 1402655752, 1402655340, 1402655333, 1402655288, 1402655287, 1402655248, 1402655247, 1402655027, 1402654993, 1402654958, 1402654925, 1402654262, 1402654261, 1402654260, 1402654217, 1402654216, 1402654205, 1402654202, 1402654200, 1402654199, 1402654197, 1402654178, 1402654177, 1402654176, 1402653968, 1402653953, 1402653951]} final : True mtd_id 4302 list_pids : [1402656264, 1402655752, 1402655340, 1402655333, 1402655288, 1402655287, 1402655248, 1402655247, 1402655027, 1402654993, 1402654958, 1402654925, 1402654262, 1402654261, 1402654260, 1402654217, 1402654216, 1402654205, 1402654202, 1402654200, 1402654199, 1402654197, 1402654178, 1402654177, 1402654176, 1402653968, 1402653953, 1402653951] Looping around the photos to save general results len do output : 1 /29983702Didn'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, '4320454') ('4302', '29983702', '1402656264', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655752', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655340', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655333', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655288', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655287', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655248', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655247', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402655027', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654993', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654958', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654925', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654262', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654261', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654260', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654217', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654216', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654205', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654202', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654200', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654199', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654197', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654178', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654177', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402654176', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402653968', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402653953', None, None, None, None, None, '4320454') ('4302', None, None, None, None, None, None, None, '4320454') ('4302', '29983702', '1402653951', None, None, None, None, None, '4320454') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 29 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, '29983702', 'None', None, None, None, None, '4320454'), ('4302', '29983702', '1402656264', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402655752', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402655340', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402655333', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402655288', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402655287', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402655248', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402655247', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402655027', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654993', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654958', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654925', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654262', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654261', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654260', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654217', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654216', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654205', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654202', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654200', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654199', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654197', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654178', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654177', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402654176', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402653968', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402653953', None, None, None, None, None, '4320454'), ('4302', '29983702', '1402653951', None, None, None, None, None, '4320454')] time used for this insertion : 0.023138761520385742 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.964848756790161 time spend to save output : 0.023490428924560547 total time spend for step 5 : 3.9883391857147217 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 (4320454) 2.99user 2.28system 0:13.15elapsed 40%CPU (0avgtext+0avgdata 168496maxresident)k 776inputs+18680outputs (15major+83046minor)pagefaults 0swaps