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 : 109486 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 (3317345) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3317345) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25163476 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3317345'] with mtr_portfolio_ids : ['25163476'] and first list_photo_ids : [] new path : /proc/109486/ Name: python3 Umask: 0002 State: R (running) Tgid: 109486 Ngid: 0 Pid: 109486 PPid: 109485 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 109486 NSpid: 109486 NSpgid: 107701 NSsid: 107701 VmPeak: 1106896 kB VmSize: 1106896 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100016 kB VmRSS: 100016 kB RssAnon: 59824 kB RssFile: 40192 kB RssShmem: 0 kB VmData: 865648 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 46 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '109486', 'Ngid': '0', 'Pid': '109486', 'PPid': '109485', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '109486', 'NSpid': '109486', 'NSpgid': '107701', 'NSsid': '107701', 'VmPeak': '1106896 kB', 'VmSize': '1106896 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100016 kB', 'VmRSS': '100016 kB', 'RssAnon': '59824 kB', 'RssFile': '40192 kB', 'RssShmem': '0 kB', 'VmData': '865648 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '46', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '109486', '1106896', '0', '1106896', '865648', '100016', b'', 'marlene', '3317345') 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 ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25163476) 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 (3317345 ) ) 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 (25163476) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1373107634, 'portfolio_id': 25163476}, {'photo_id': 1373107631, 'portfolio_id': 25163476}, {'photo_id': 1373107628, 'portfolio_id': 25163476}, {'photo_id': 1373107626, 'portfolio_id': 25163476}, {'photo_id': 1373107623, 'portfolio_id': 25163476}, {'photo_id': 1373107615, 'portfolio_id': 25163476}, {'photo_id': 1373107599, 'portfolio_id': 25163476}, {'photo_id': 1373107597, 'portfolio_id': 25163476}, {'photo_id': 1373107595, 'portfolio_id': 25163476}, {'photo_id': 1373107592, 'portfolio_id': 25163476}, {'photo_id': 1373107588, 'portfolio_id': 25163476}, {'photo_id': 1373107586, 'portfolio_id': 25163476}, {'photo_id': 1373107541, 'portfolio_id': 25163476}, {'photo_id': 1373107539, 'portfolio_id': 25163476}, {'photo_id': 1373107538, 'portfolio_id': 25163476}, {'photo_id': 1373107535, 'portfolio_id': 25163476}, {'photo_id': 1373107525, 'portfolio_id': 25163476}, {'photo_id': 1373107515, 'portfolio_id': 25163476}, {'photo_id': 1373107501, 'portfolio_id': 25163476}, {'photo_id': 1373107500, 'portfolio_id': 25163476}, {'photo_id': 1373107498, 'portfolio_id': 25163476}, {'photo_id': 1373107496, 'portfolio_id': 25163476}, {'photo_id': 1373107493, 'portfolio_id': 25163476}, {'photo_id': 1373107491, 'portfolio_id': 25163476}, {'photo_id': 1373107474, 'portfolio_id': 25163476}, {'photo_id': 1373107470, 'portfolio_id': 25163476}, {'photo_id': 1373107466, 'portfolio_id': 25163476}, {'photo_id': 1373107462, 'portfolio_id': 25163476}, {'photo_id': 1373107458, 'portfolio_id': 25163476}, {'photo_id': 1373107453, 'portfolio_id': 25163476}, {'photo_id': 1373107433, 'portfolio_id': 25163476}, {'photo_id': 1373107430, 'portfolio_id': 25163476}, {'photo_id': 1373107429, 'portfolio_id': 25163476}, {'photo_id': 1373107428, 'portfolio_id': 25163476}, {'photo_id': 1373107427, 'portfolio_id': 25163476}, {'photo_id': 1373107423, 'portfolio_id': 25163476}, {'photo_id': 1373107394, 'portfolio_id': 25163476}] map_portfolio_id_photo_id: {25163476: [1373107634, 1373107631, 1373107628, 1373107626, 1373107623, 1373107615, 1373107599, 1373107597, 1373107595, 1373107592, 1373107588, 1373107586, 1373107541, 1373107539, 1373107538, 1373107535, 1373107525, 1373107515, 1373107501, 1373107500, 1373107498, 1373107496, 1373107493, 1373107491, 1373107474, 1373107470, 1373107466, 1373107462, 1373107458, 1373107453, 1373107433, 1373107430, 1373107429, 1373107428, 1373107427, 1373107423, 1373107394]} ##### 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.01500844955444336 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Jul 22 06:52:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25163476) 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 : 25163476 get user id for portfolio 25163476 get sub ptf for main ptf 25163476, type 3726 and hashtags ['metal', 'cartonnette', 'autre_refus', 'environnement', 'Teint_Dans_La_Masse', 'mal_croppe', 'Carton_gris', 'plastique', 'Carton_brun', 'kraft', 'papier', 'flou'] 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`=25163476 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','cartonnette','autre_refus','environnement','Teint_Dans_La_Masse','mal_croppe','Carton_gris','plastique','Carton_brun','kraft','papier','flou')) 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`=25163476 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','cartonnette','autre_refus','environnement','Teint_Dans_La_Masse','mal_croppe','Carton_gris','plastique','Carton_brun','kraft','papier','flou')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 25163476, 'sub_port_id': 25163479, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16971496, 'last_updated_at': datetime.datetime(2025, 7, 22, 6, 50, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 6, 50, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 6, 48, 59)}, 'mal_croppe': {'main_port_id': 25163476, 'sub_port_id': 25163480, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16971497, 'last_updated_at': datetime.datetime(2025, 7, 22, 6, 50, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 6, 50, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 6, 48, 59)}, 'cartonnette': {'main_port_id': 25163476, 'sub_port_id': 25163481, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16971498, 'last_updated_at': datetime.datetime(2025, 7, 22, 6, 50, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 6, 50, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 6, 48, 59)}, 'flou': {'main_port_id': 25163476, 'sub_port_id': 25163482, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16971499, 'last_updated_at': datetime.datetime(2025, 7, 22, 6, 50, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 6, 50, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 6, 48, 59)}, 'plastique': {'main_port_id': 25163476, 'sub_port_id': 25163483, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16971500, 'last_updated_at': datetime.datetime(2025, 7, 22, 6, 50, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 6, 50, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 6, 48, 59)}, 'Carton_brun': {'main_port_id': 25163476, 'sub_port_id': 25163484, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16971501, 'last_updated_at': datetime.datetime(2025, 7, 22, 6, 50, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 6, 50, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 6, 48, 59)}, 'environnement': {'main_port_id': 25163476, 'sub_port_id': 25163485, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16971502, 'last_updated_at': datetime.datetime(2025, 7, 22, 6, 50, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 6, 50, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 6, 48, 59)}, 'autre_refus': {'main_port_id': 25163476, 'sub_port_id': 25163486, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16971503, 'last_updated_at': datetime.datetime(2025, 7, 22, 6, 50, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 6, 50, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 6, 48, 59)}, 'metal': {'main_port_id': 25163476, 'sub_port_id': 25163487, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16971504, 'last_updated_at': datetime.datetime(2025, 7, 22, 6, 50, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 6, 50, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 6, 48, 59)}, 'papier': {'main_port_id': 25163476, 'sub_port_id': 25163488, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16971505, 'last_updated_at': datetime.datetime(2025, 7, 22, 6, 50, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 6, 50, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 6, 48, 59)}, 'Carton_gris': {'main_port_id': 25163476, 'sub_port_id': 25163489, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16971506, 'last_updated_at': datetime.datetime(2025, 7, 22, 6, 50, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 6, 50, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 6, 48, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 25163476, 'sub_port_id': 25163490, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16971507, 'last_updated_at': datetime.datetime(2025, 7, 22, 6, 50, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 6, 50, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 6, 48, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25163479 , 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=25163476 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 (25163479) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25163476) result : ((1373107394,), (1373107423,), (1373107427,), (1373107428,), (1373107429,), (1373107430,), (1373107433,), (1373107453,), (1373107458,), (1373107462,), (1373107466,), (1373107470,), (1373107474,), (1373107491,), (1373107493,), (1373107496,), (1373107498,), (1373107500,), (1373107501,), (1373107515,), (1373107525,), (1373107535,), (1373107538,), (1373107539,), (1373107541,), (1373107586,), (1373107588,), (1373107592,), (1373107595,), (1373107597,), (1373107599,), (1373107615,), (1373107623,), (1373107626,), (1373107628,), (1373107631,), (1373107634,)) 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 (1373107500) 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 25163480 , 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=25163476 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 (25163480) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25163476) result : ((1373107394,), (1373107423,), (1373107427,), (1373107428,), (1373107429,), (1373107430,), (1373107433,), (1373107453,), (1373107458,), (1373107462,), (1373107466,), (1373107470,), (1373107474,), (1373107491,), (1373107493,), (1373107496,), (1373107498,), (1373107500,), (1373107501,), (1373107515,), (1373107525,), (1373107535,), (1373107538,), (1373107539,), (1373107541,), (1373107586,), (1373107588,), (1373107592,), (1373107595,), (1373107597,), (1373107599,), (1373107615,), (1373107623,), (1373107626,), (1373107628,), (1373107631,), (1373107634,)) 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 (1373107500) 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 25163481 , 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=25163476 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 (25163481) result : ((1373107531,), (1373107532,), (1373107572,), (1373107651,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25163476) result : ((1373107394,), (1373107423,), (1373107427,), (1373107428,), (1373107429,), (1373107430,), (1373107433,), (1373107453,), (1373107458,), (1373107462,), (1373107466,), (1373107470,), (1373107474,), (1373107491,), (1373107493,), (1373107496,), (1373107498,), (1373107500,), (1373107501,), (1373107515,), (1373107525,), (1373107535,), (1373107538,), (1373107539,), (1373107541,), (1373107586,), (1373107588,), (1373107592,), (1373107595,), (1373107597,), (1373107599,), (1373107615,), (1373107623,), (1373107626,), (1373107628,), (1373107631,), (1373107634,)) 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 (1373107500) 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 25163482 , 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=25163476 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 (25163482) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25163476) result : ((1373107394,), (1373107423,), (1373107427,), (1373107428,), (1373107429,), (1373107430,), (1373107433,), (1373107453,), (1373107458,), (1373107462,), (1373107466,), (1373107470,), (1373107474,), (1373107491,), (1373107493,), (1373107496,), (1373107498,), (1373107500,), (1373107501,), (1373107515,), (1373107525,), (1373107535,), (1373107538,), (1373107539,), (1373107541,), (1373107586,), (1373107588,), (1373107592,), (1373107595,), (1373107597,), (1373107599,), (1373107615,), (1373107623,), (1373107626,), (1373107628,), (1373107631,), (1373107634,)) 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 (1373107500) 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 25163483 , 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=25163476 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 (25163483) result : ((1373107621,), (1373107652,), (1373107653,), (1373107654,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25163476) result : ((1373107394,), (1373107423,), (1373107427,), (1373107428,), (1373107429,), (1373107430,), (1373107433,), (1373107453,), (1373107458,), (1373107462,), (1373107466,), (1373107470,), (1373107474,), (1373107491,), (1373107493,), (1373107496,), (1373107498,), (1373107500,), (1373107501,), (1373107515,), (1373107525,), (1373107535,), (1373107538,), (1373107539,), (1373107541,), (1373107586,), (1373107588,), (1373107592,), (1373107595,), (1373107597,), (1373107599,), (1373107615,), (1373107623,), (1373107626,), (1373107628,), (1373107631,), (1373107634,)) 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 (1373107500) 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 25163484 , 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=25163476 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 (25163484) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25163476) result : ((1373107394,), (1373107423,), (1373107427,), (1373107428,), (1373107429,), (1373107430,), (1373107433,), (1373107453,), (1373107458,), (1373107462,), (1373107466,), (1373107470,), (1373107474,), (1373107491,), (1373107493,), (1373107496,), (1373107498,), (1373107500,), (1373107501,), (1373107515,), (1373107525,), (1373107535,), (1373107538,), (1373107539,), (1373107541,), (1373107586,), (1373107588,), (1373107592,), (1373107595,), (1373107597,), (1373107599,), (1373107615,), (1373107623,), (1373107626,), (1373107628,), (1373107631,), (1373107634,)) 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 (1373107500) 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 25163485 , 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=25163476 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 (25163485) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25163476) result : ((1373107394,), (1373107423,), (1373107427,), (1373107428,), (1373107429,), (1373107430,), (1373107433,), (1373107453,), (1373107458,), (1373107462,), (1373107466,), (1373107470,), (1373107474,), (1373107491,), (1373107493,), (1373107496,), (1373107498,), (1373107500,), (1373107501,), (1373107515,), (1373107525,), (1373107535,), (1373107538,), (1373107539,), (1373107541,), (1373107586,), (1373107588,), (1373107592,), (1373107595,), (1373107597,), (1373107599,), (1373107615,), (1373107623,), (1373107626,), (1373107628,), (1373107631,), (1373107634,)) 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 (1373107500) 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 25163486 , 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=25163476 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 (25163486) result : ((1373107524,), (1373107548,), (1373107549,), (1373107550,), (1373107648,), (1373107649,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25163476) result : ((1373107394,), (1373107423,), (1373107427,), (1373107428,), (1373107429,), (1373107430,), (1373107433,), (1373107453,), (1373107458,), (1373107462,), (1373107466,), (1373107470,), (1373107474,), (1373107491,), (1373107493,), (1373107496,), (1373107498,), (1373107500,), (1373107501,), (1373107515,), (1373107525,), (1373107535,), (1373107538,), (1373107539,), (1373107541,), (1373107586,), (1373107588,), (1373107592,), (1373107595,), (1373107597,), (1373107599,), (1373107615,), (1373107623,), (1373107626,), (1373107628,), (1373107631,), (1373107634,)) 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 (1373107500) 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 25163487 , 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=25163476 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 (25163487) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25163476) result : ((1373107394,), (1373107423,), (1373107427,), (1373107428,), (1373107429,), (1373107430,), (1373107433,), (1373107453,), (1373107458,), (1373107462,), (1373107466,), (1373107470,), (1373107474,), (1373107491,), (1373107493,), (1373107496,), (1373107498,), (1373107500,), (1373107501,), (1373107515,), (1373107525,), (1373107535,), (1373107538,), (1373107539,), (1373107541,), (1373107586,), (1373107588,), (1373107592,), (1373107595,), (1373107597,), (1373107599,), (1373107615,), (1373107623,), (1373107626,), (1373107628,), (1373107631,), (1373107634,)) 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 (1373107500) 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 25163488 , 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=25163476 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 (25163488) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25163476) result : ((1373107394,), (1373107423,), (1373107427,), (1373107428,), (1373107429,), (1373107430,), (1373107433,), (1373107453,), (1373107458,), (1373107462,), (1373107466,), (1373107470,), (1373107474,), (1373107491,), (1373107493,), (1373107496,), (1373107498,), (1373107500,), (1373107501,), (1373107515,), (1373107525,), (1373107535,), (1373107538,), (1373107539,), (1373107541,), (1373107586,), (1373107588,), (1373107592,), (1373107595,), (1373107597,), (1373107599,), (1373107615,), (1373107623,), (1373107626,), (1373107628,), (1373107631,), (1373107634,)) 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 (1373107500) 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 25163489 , 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=25163476 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 (25163489) result : ((1373107526,), (1373107527,), (1373107528,), (1373107561,), (1373107564,), (1373107617,), (1373107618,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25163476) result : ((1373107394,), (1373107423,), (1373107427,), (1373107428,), (1373107429,), (1373107430,), (1373107433,), (1373107453,), (1373107458,), (1373107462,), (1373107466,), (1373107470,), (1373107474,), (1373107491,), (1373107493,), (1373107496,), (1373107498,), (1373107500,), (1373107501,), (1373107515,), (1373107525,), (1373107535,), (1373107538,), (1373107539,), (1373107541,), (1373107586,), (1373107588,), (1373107592,), (1373107595,), (1373107597,), (1373107599,), (1373107615,), (1373107623,), (1373107626,), (1373107628,), (1373107631,), (1373107634,)) 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 (1373107500) 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 25163490 , 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=25163476 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 (25163490) result : ((1373107518,), (1373107519,), (1373107522,), (1373107523,), (1373107547,), (1373107614,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25163476) result : ((1373107394,), (1373107423,), (1373107427,), (1373107428,), (1373107429,), (1373107430,), (1373107433,), (1373107453,), (1373107458,), (1373107462,), (1373107466,), (1373107470,), (1373107474,), (1373107491,), (1373107493,), (1373107496,), (1373107498,), (1373107500,), (1373107501,), (1373107515,), (1373107525,), (1373107535,), (1373107538,), (1373107539,), (1373107541,), (1373107586,), (1373107588,), (1373107592,), (1373107595,), (1373107597,), (1373107599,), (1373107615,), (1373107623,), (1373107626,), (1373107628,), (1373107631,), (1373107634,)) 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 (1373107500) 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`=25163476 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','cartonnette','autre_refus','environnement','Teint_Dans_La_Masse','mal_croppe','Carton_gris','plastique','Carton_brun','kraft','papier','flou')) 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`=25163476 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','cartonnette','autre_refus','environnement','Teint_Dans_La_Masse','mal_croppe','Carton_gris','plastique','Carton_brun','kraft','papier','flou')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 25163476, 'sub_port_id': 25163491, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16971508, 'last_updated_at': datetime.datetime(2025, 7, 22, 6, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 6, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 6, 49, 1)}, 'mal_croppe': {'main_port_id': 25163476, 'sub_port_id': 25163492, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16971509, 'last_updated_at': datetime.datetime(2025, 7, 22, 6, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 6, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 6, 49, 1)}, 'cartonnette': {'main_port_id': 25163476, 'sub_port_id': 25163493, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16971510, 'last_updated_at': datetime.datetime(2025, 7, 22, 6, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 6, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 6, 49, 1)}, 'flou': {'main_port_id': 25163476, 'sub_port_id': 25163494, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16971511, 'last_updated_at': datetime.datetime(2025, 7, 22, 6, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 6, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 6, 49, 1)}, 'plastique': {'main_port_id': 25163476, 'sub_port_id': 25163495, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16971512, 'last_updated_at': datetime.datetime(2025, 7, 22, 6, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 6, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 6, 49, 1)}, 'Carton_brun': {'main_port_id': 25163476, 'sub_port_id': 25163496, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16971513, 'last_updated_at': datetime.datetime(2025, 7, 22, 6, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 6, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 6, 49, 1)}, 'environnement': {'main_port_id': 25163476, 'sub_port_id': 25163497, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16971514, 'last_updated_at': datetime.datetime(2025, 7, 22, 6, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 6, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 6, 49, 1)}, 'autre_refus': {'main_port_id': 25163476, 'sub_port_id': 25163498, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16971515, 'last_updated_at': datetime.datetime(2025, 7, 22, 6, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 6, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 6, 49, 1)}, 'metal': {'main_port_id': 25163476, 'sub_port_id': 25163499, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16971516, 'last_updated_at': datetime.datetime(2025, 7, 22, 6, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 6, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 6, 49, 1)}, 'papier': {'main_port_id': 25163476, 'sub_port_id': 25163500, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16971517, 'last_updated_at': datetime.datetime(2025, 7, 22, 6, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 6, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 6, 49, 1)}, 'Carton_gris': {'main_port_id': 25163476, 'sub_port_id': 25163501, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16971518, 'last_updated_at': datetime.datetime(2025, 7, 22, 6, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 6, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 6, 49, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 25163476, 'sub_port_id': 25163502, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16971519, 'last_updated_at': datetime.datetime(2025, 7, 22, 6, 50, 29), 'last_updated_at_desc': datetime.datetime(2025, 7, 22, 6, 50, 29), 'last_updated_at_asc': datetime.datetime(2025, 7, 22, 6, 49, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25163491,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25163479 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25163492,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25163480 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25163493,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25163481 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25163494,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25163482 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25163495,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25163483 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25163496,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25163484 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25163497,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25163485 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25163498,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25163486 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25163499,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25163487 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25163500,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25163488 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25163501,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25163489 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25163502,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25163490 lien utilise dans velours : https://www.fotonower.com/velours/25163491,25163492,25163493,25163494,25163495,25163496,25163497,25163498,25163499,25163500,25163501,25163502?tags=kraft,mal_croppe,cartonnette,flou,plastique,Carton_brun,environnement,autre_refus,metal,papier,Carton_gris,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25163476]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1373107634, 1373107631, 1373107628, 1373107626, 1373107623, 1373107615, 1373107599, 1373107597, 1373107595, 1373107592, 1373107588, 1373107586, 1373107541, 1373107539, 1373107538, 1373107535, 1373107525, 1373107515] map_info['map_portfolio_photo'] : {25163476: [1373107634, 1373107631, 1373107628, 1373107626, 1373107623, 1373107615, 1373107599, 1373107597, 1373107595, 1373107592, 1373107588, 1373107586, 1373107541, 1373107539, 1373107538, 1373107535, 1373107525, 1373107515, 1373107501, 1373107500, 1373107498, 1373107496, 1373107493, 1373107491, 1373107474, 1373107470, 1373107466, 1373107462, 1373107458, 1373107453, 1373107433, 1373107430, 1373107429, 1373107428, 1373107427, 1373107423, 1373107394]} final : False mtd_id 4302 list_pids : [1373107634, 1373107631, 1373107628, 1373107626, 1373107623, 1373107615, 1373107599, 1373107597, 1373107595, 1373107592, 1373107588, 1373107586, 1373107541, 1373107539, 1373107538, 1373107535, 1373107525, 1373107515] Looping around the photos to save general results len do output : 1 /25163476. 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, '3317345') ('4302', '25163476', '1373107634', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107631', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107628', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107626', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107623', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107615', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107599', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107597', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107595', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107592', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107588', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107586', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107541', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107539', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107538', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107535', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107525', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107515', None, None, None, None, None, '3317345') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '25163476', "{'kraft': 25163479, 'mal_croppe': 25163480, 'cartonnette': 25163481, 'flou': 25163482, 'plastique': 25163483, 'Carton_brun': 25163484, 'environnement': 25163485, 'autre_refus': 25163486, 'metal': 25163487, 'papier': 25163488, 'Carton_gris': 25163489, 'Teint_Dans_La_Masse': 25163490}", None, None, None, None, '3317345'), ('4302', '25163476', '1373107634', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107631', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107628', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107626', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107623', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107615', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107599', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107597', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107595', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107592', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107588', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107586', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107541', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107539', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107538', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107535', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107525', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107515', None, None, None, None, None, '3317345')] time used for this insertion : 0.07871127128601074 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5331945419311523 time spend to save output : 0.0790565013885498 total time spend for step 1 : 0.6122510433197021 step2:final Tue Jul 22 06:52:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25163476) 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 25163476 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1373107394,1373107433,1373107430,1373107429,1373107428,1373107427,1373107423,1373107474,1373107470,1373107466,1373107462,1373107458,1373107453,1373107501,1373107500,1373107498,1373107496,1373107493,1373107491,1373107541,1373107539,1373107538,1373107535,1373107525,1373107515,1373107599,1373107597,1373107595,1373107592,1373107588,1373107586,1373107634,1373107631,1373107628,1373107626,1373107623,1373107615); 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([25163476]) Inside saveOutput : final : False verbose : True original output for save of step final : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ('0.05306097535473746',), 1373107541: ('0.05306097535473746',), 1373107539: ('0.05306097535473746',), 1373107538: ('0.05306097535473746',), 1373107535: ('0.05306097535473746',), 1373107525: ('0.05306097535473746',), 1373107515: ('0.05306097535473746',)} new output for save of step final : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ('0.05306097535473746',), 1373107541: ('0.05306097535473746',), 1373107539: ('0.05306097535473746',), 1373107538: ('0.05306097535473746',), 1373107535: ('0.05306097535473746',), 1373107525: ('0.05306097535473746',), 1373107515: ('0.05306097535473746',)} [1373107634, 1373107631, 1373107628, 1373107626, 1373107623, 1373107615, 1373107599, 1373107597, 1373107595, 1373107592, 1373107588, 1373107586, 1373107541, 1373107539, 1373107538, 1373107535, 1373107525, 1373107515] map_info['map_portfolio_photo'] : {25163476: [1373107634, 1373107631, 1373107628, 1373107626, 1373107623, 1373107615, 1373107599, 1373107597, 1373107595, 1373107592, 1373107588, 1373107586, 1373107541, 1373107539, 1373107538, 1373107535, 1373107525, 1373107515, 1373107501, 1373107500, 1373107498, 1373107496, 1373107493, 1373107491, 1373107474, 1373107470, 1373107466, 1373107462, 1373107458, 1373107453, 1373107433, 1373107430, 1373107429, 1373107428, 1373107427, 1373107423, 1373107394]} final : False mtd_id 4302 list_pids : [1373107634, 1373107631, 1373107628, 1373107626, 1373107623, 1373107615, 1373107599, 1373107597, 1373107595, 1373107592, 1373107588, 1373107586, 1373107541, 1373107539, 1373107538, 1373107535, 1373107525, 1373107515] Looping around the photos to save general results len do output : 18 /1373107634.Didn't retrieve data . /1373107631.Didn't retrieve data . /1373107628.Didn't retrieve data . /1373107626.Didn't retrieve data . /1373107623.Didn't retrieve data . /1373107615.Didn't retrieve data . /1373107599.Didn't retrieve data . /1373107597.Didn't retrieve data . /1373107595.Didn't retrieve data . /1373107592.Didn't retrieve data . /1373107588.Didn't retrieve data . /1373107586.Didn't retrieve data . /1373107541.Didn't retrieve data . /1373107539.Didn't retrieve data . /1373107538.Didn't retrieve data . /1373107535.Didn't retrieve data . /1373107525.Didn't retrieve data . /1373107515.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, '3317345') ('4302', '25163476', '1373107634', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107631', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107628', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107626', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107623', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107615', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107599', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107597', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107595', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107592', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107588', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107586', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107541', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107539', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107538', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107535', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107525', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107515', None, None, None, None, None, '3317345') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 54 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', '25163476', '1373107634', '0.05306097535473746', None, None, None, None, '3317345'), ('4302', '25163476', '1373107631', '0.05306097535473746', None, None, None, None, '3317345'), ('4302', '25163476', '1373107628', '0.05306097535473746', None, None, None, None, '3317345'), ('4302', '25163476', '1373107626', '0.05306097535473746', None, None, None, None, '3317345'), ('4302', '25163476', '1373107623', '0.05306097535473746', None, None, None, None, '3317345'), ('4302', '25163476', '1373107615', '0.05306097535473746', None, None, None, None, '3317345'), ('4302', '25163476', '1373107599', '0.05306097535473746', None, None, None, None, '3317345'), ('4302', '25163476', '1373107597', '0.05306097535473746', None, None, None, None, '3317345'), ('4302', '25163476', '1373107595', '0.05306097535473746', None, None, None, None, '3317345'), ('4302', '25163476', '1373107592', '0.05306097535473746', None, None, None, None, '3317345'), ('4302', '25163476', '1373107588', '0.05306097535473746', None, None, None, None, '3317345'), ('4302', '25163476', '1373107586', '0.05306097535473746', None, None, None, None, '3317345'), ('4302', '25163476', '1373107541', '0.05306097535473746', None, None, None, None, '3317345'), ('4302', '25163476', '1373107539', '0.05306097535473746', None, None, None, None, '3317345'), ('4302', '25163476', '1373107538', '0.05306097535473746', None, None, None, None, '3317345'), ('4302', '25163476', '1373107535', '0.05306097535473746', None, None, None, None, '3317345'), ('4302', '25163476', '1373107525', '0.05306097535473746', None, None, None, None, '3317345'), ('4302', '25163476', '1373107515', '0.05306097535473746', None, None, None, None, '3317345')] time used for this insertion : 0.018154621124267578 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06897830963134766 time spend to save output : 0.018949270248413086 total time spend for step 2 : 0.08792757987976074 step3:velours_tree Tue Jul 22 06:52:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {25163476: [{'kraft': 25163479, 'mal_croppe': 25163480, 'cartonnette': 25163481, 'flou': 25163482, 'plastique': 25163483, 'Carton_brun': 25163484, 'environnement': 25163485, 'autre_refus': 25163486, 'metal': 25163487, 'papier': 25163488, 'Carton_gris': 25163489, 'Teint_Dans_La_Masse': 25163490}]} input_args_next_step : {25163476: ()} output_args : {25163476: [{'kraft': 25163479, 'mal_croppe': 25163480, 'cartonnette': 25163481, 'flou': 25163482, 'plastique': 25163483, 'Carton_brun': 25163484, 'environnement': 25163485, 'autre_refus': 25163486, 'metal': 25163487, 'papier': 25163488, 'Carton_gris': 25163489, 'Teint_Dans_La_Masse': 25163490}]} args : 25163476 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 : ({'kraft': 25163479, 'mal_croppe': 25163480, 'cartonnette': 25163481, 'flou': 25163482, 'plastique': 25163483, 'Carton_brun': 25163484, 'environnement': 25163485, 'autre_refus': 25163486, 'metal': 25163487, 'papier': 25163488, 'Carton_gris': 25163489, 'Teint_Dans_La_Masse': 25163490},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25163476) 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([25163476]) 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.32233262062072754 time spend to save output : 5.984306335449219e-05 total time spend for step 3 : 0.32239246368408203 step4:send_mail_cod Tue Jul 22 06:52:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ('0.05306097535473746',), 1373107541: ('0.05306097535473746',), 1373107539: ('0.05306097535473746',), 1373107538: ('0.05306097535473746',), 1373107535: ('0.05306097535473746',), 1373107525: ('0.05306097535473746',), 1373107515: ('0.05306097535473746',)} input_args_next_step : {1373107634: ()} output_args : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ('0.05306097535473746',), 1373107541: ('0.05306097535473746',), 1373107539: ('0.05306097535473746',), 1373107538: ('0.05306097535473746',), 1373107535: ('0.05306097535473746',), 1373107525: ('0.05306097535473746',), 1373107515: ('0.05306097535473746',)} args : 1373107634 depend.output_id : 0 input_args_next_step : {1373107634: ('0.05306097535473746',), 1373107631: ()} output_args : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ('0.05306097535473746',), 1373107541: ('0.05306097535473746',), 1373107539: ('0.05306097535473746',), 1373107538: ('0.05306097535473746',), 1373107535: ('0.05306097535473746',), 1373107525: ('0.05306097535473746',), 1373107515: ('0.05306097535473746',)} args : 1373107631 depend.output_id : 0 input_args_next_step : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ()} output_args : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ('0.05306097535473746',), 1373107541: ('0.05306097535473746',), 1373107539: ('0.05306097535473746',), 1373107538: ('0.05306097535473746',), 1373107535: ('0.05306097535473746',), 1373107525: ('0.05306097535473746',), 1373107515: ('0.05306097535473746',)} args : 1373107628 depend.output_id : 0 input_args_next_step : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ()} output_args : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ('0.05306097535473746',), 1373107541: ('0.05306097535473746',), 1373107539: ('0.05306097535473746',), 1373107538: ('0.05306097535473746',), 1373107535: ('0.05306097535473746',), 1373107525: ('0.05306097535473746',), 1373107515: ('0.05306097535473746',)} args : 1373107626 depend.output_id : 0 input_args_next_step : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ()} output_args : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ('0.05306097535473746',), 1373107541: ('0.05306097535473746',), 1373107539: ('0.05306097535473746',), 1373107538: ('0.05306097535473746',), 1373107535: ('0.05306097535473746',), 1373107525: ('0.05306097535473746',), 1373107515: ('0.05306097535473746',)} args : 1373107623 depend.output_id : 0 input_args_next_step : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ()} output_args : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ('0.05306097535473746',), 1373107541: ('0.05306097535473746',), 1373107539: ('0.05306097535473746',), 1373107538: ('0.05306097535473746',), 1373107535: ('0.05306097535473746',), 1373107525: ('0.05306097535473746',), 1373107515: ('0.05306097535473746',)} args : 1373107615 depend.output_id : 0 input_args_next_step : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ()} output_args : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ('0.05306097535473746',), 1373107541: ('0.05306097535473746',), 1373107539: ('0.05306097535473746',), 1373107538: ('0.05306097535473746',), 1373107535: ('0.05306097535473746',), 1373107525: ('0.05306097535473746',), 1373107515: ('0.05306097535473746',)} args : 1373107599 depend.output_id : 0 input_args_next_step : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ()} output_args : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ('0.05306097535473746',), 1373107541: ('0.05306097535473746',), 1373107539: ('0.05306097535473746',), 1373107538: ('0.05306097535473746',), 1373107535: ('0.05306097535473746',), 1373107525: ('0.05306097535473746',), 1373107515: ('0.05306097535473746',)} args : 1373107597 depend.output_id : 0 input_args_next_step : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ()} output_args : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ('0.05306097535473746',), 1373107541: ('0.05306097535473746',), 1373107539: ('0.05306097535473746',), 1373107538: ('0.05306097535473746',), 1373107535: ('0.05306097535473746',), 1373107525: ('0.05306097535473746',), 1373107515: ('0.05306097535473746',)} args : 1373107595 depend.output_id : 0 input_args_next_step : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ()} output_args : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ('0.05306097535473746',), 1373107541: ('0.05306097535473746',), 1373107539: ('0.05306097535473746',), 1373107538: ('0.05306097535473746',), 1373107535: ('0.05306097535473746',), 1373107525: ('0.05306097535473746',), 1373107515: ('0.05306097535473746',)} args : 1373107592 depend.output_id : 0 input_args_next_step : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ()} output_args : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ('0.05306097535473746',), 1373107541: ('0.05306097535473746',), 1373107539: ('0.05306097535473746',), 1373107538: ('0.05306097535473746',), 1373107535: ('0.05306097535473746',), 1373107525: ('0.05306097535473746',), 1373107515: ('0.05306097535473746',)} args : 1373107588 depend.output_id : 0 input_args_next_step : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ()} output_args : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ('0.05306097535473746',), 1373107541: ('0.05306097535473746',), 1373107539: ('0.05306097535473746',), 1373107538: ('0.05306097535473746',), 1373107535: ('0.05306097535473746',), 1373107525: ('0.05306097535473746',), 1373107515: ('0.05306097535473746',)} args : 1373107586 depend.output_id : 0 input_args_next_step : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ('0.05306097535473746',), 1373107541: ()} output_args : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ('0.05306097535473746',), 1373107541: ('0.05306097535473746',), 1373107539: ('0.05306097535473746',), 1373107538: ('0.05306097535473746',), 1373107535: ('0.05306097535473746',), 1373107525: ('0.05306097535473746',), 1373107515: ('0.05306097535473746',)} args : 1373107541 depend.output_id : 0 input_args_next_step : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ('0.05306097535473746',), 1373107541: ('0.05306097535473746',), 1373107539: ()} output_args : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ('0.05306097535473746',), 1373107541: ('0.05306097535473746',), 1373107539: ('0.05306097535473746',), 1373107538: ('0.05306097535473746',), 1373107535: ('0.05306097535473746',), 1373107525: ('0.05306097535473746',), 1373107515: ('0.05306097535473746',)} args : 1373107539 depend.output_id : 0 input_args_next_step : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ('0.05306097535473746',), 1373107541: ('0.05306097535473746',), 1373107539: ('0.05306097535473746',), 1373107538: ()} output_args : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ('0.05306097535473746',), 1373107541: ('0.05306097535473746',), 1373107539: ('0.05306097535473746',), 1373107538: ('0.05306097535473746',), 1373107535: ('0.05306097535473746',), 1373107525: ('0.05306097535473746',), 1373107515: ('0.05306097535473746',)} args : 1373107538 depend.output_id : 0 input_args_next_step : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ('0.05306097535473746',), 1373107541: ('0.05306097535473746',), 1373107539: ('0.05306097535473746',), 1373107538: ('0.05306097535473746',), 1373107535: ()} output_args : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ('0.05306097535473746',), 1373107541: ('0.05306097535473746',), 1373107539: ('0.05306097535473746',), 1373107538: ('0.05306097535473746',), 1373107535: ('0.05306097535473746',), 1373107525: ('0.05306097535473746',), 1373107515: ('0.05306097535473746',)} args : 1373107535 depend.output_id : 0 input_args_next_step : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ('0.05306097535473746',), 1373107541: ('0.05306097535473746',), 1373107539: ('0.05306097535473746',), 1373107538: ('0.05306097535473746',), 1373107535: ('0.05306097535473746',), 1373107525: ()} output_args : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ('0.05306097535473746',), 1373107541: ('0.05306097535473746',), 1373107539: ('0.05306097535473746',), 1373107538: ('0.05306097535473746',), 1373107535: ('0.05306097535473746',), 1373107525: ('0.05306097535473746',), 1373107515: ('0.05306097535473746',)} args : 1373107525 depend.output_id : 0 input_args_next_step : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ('0.05306097535473746',), 1373107541: ('0.05306097535473746',), 1373107539: ('0.05306097535473746',), 1373107538: ('0.05306097535473746',), 1373107535: ('0.05306097535473746',), 1373107525: ('0.05306097535473746',), 1373107515: ()} output_args : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ('0.05306097535473746',), 1373107541: ('0.05306097535473746',), 1373107539: ('0.05306097535473746',), 1373107538: ('0.05306097535473746',), 1373107535: ('0.05306097535473746',), 1373107525: ('0.05306097535473746',), 1373107515: ('0.05306097535473746',)} args : 1373107515 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 : {25163476: [{'kraft': 25163479, 'mal_croppe': 25163480, 'cartonnette': 25163481, 'flou': 25163482, 'plastique': 25163483, 'Carton_brun': 25163484, 'environnement': 25163485, 'autre_refus': 25163486, 'metal': 25163487, 'papier': 25163488, 'Carton_gris': 25163489, 'Teint_Dans_La_Masse': 25163490}]} input_args_next_step : {1373107634: ('0.05306097535473746',), 1373107631: ('0.05306097535473746',), 1373107628: ('0.05306097535473746',), 1373107626: ('0.05306097535473746',), 1373107623: ('0.05306097535473746',), 1373107615: ('0.05306097535473746',), 1373107599: ('0.05306097535473746',), 1373107597: ('0.05306097535473746',), 1373107595: ('0.05306097535473746',), 1373107592: ('0.05306097535473746',), 1373107588: ('0.05306097535473746',), 1373107586: ('0.05306097535473746',), 1373107541: ('0.05306097535473746',), 1373107539: ('0.05306097535473746',), 1373107538: ('0.05306097535473746',), 1373107535: ('0.05306097535473746',), 1373107525: ('0.05306097535473746',), 1373107515: ('0.05306097535473746',), 25163476: ()} output_args : {25163476: [{'kraft': 25163479, 'mal_croppe': 25163480, 'cartonnette': 25163481, 'flou': 25163482, 'plastique': 25163483, 'Carton_brun': 25163484, 'environnement': 25163485, 'autre_refus': 25163486, 'metal': 25163487, 'papier': 25163488, 'Carton_gris': 25163489, 'Teint_Dans_La_Masse': 25163490}]} args : 25163476 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 :19, first value : ('0.05306097535473746',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25163476) 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 ph WHERE photo_id IN (1373107634,1373107631,1373107628,1373107626,1373107623,1373107615,1373107599,1373107597,1373107595,1373107592,1373107588,1373107586,1373107541,1373107539,1373107538,1373107535,1373107525,1373107515) Found this number of photos: 18 ##### Call download_photos : nb_thread : 5 begin to download photo : 1373107515 begin to download photo : 1373107539 begin to download photo : 1373107592 begin to download photo : 1373107615 begin to download photo : 1373107631 download finish for photo 1373107631 begin to download photo : 1373107634 download finish for photo 1373107615 begin to download photo : 1373107623 download finish for photo 1373107539 begin to download photo : 1373107541 download finish for photo 1373107515 begin to download photo : 1373107525 download finish for photo 1373107592 begin to download photo : 1373107595 download finish for photo 1373107634 download finish for photo 1373107623 begin to download photo : 1373107626 download finish for photo 1373107541 begin to download photo : 1373107586 download finish for photo 1373107525 begin to download photo : 1373107535 download finish for photo 1373107595 begin to download photo : 1373107597 download finish for photo 1373107626 begin to download photo : 1373107628 download finish for photo 1373107586 begin to download photo : 1373107588 download finish for photo 1373107535 begin to download photo : 1373107538 download finish for photo 1373107597 begin to download photo : 1373107599 download finish for photo 1373107628 download finish for photo 1373107588 download finish for photo 1373107538 download finish for photo 1373107599 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette251634791753159978/ imagette251634801753159978/ length of list_filenames : 18 ; length of list_pids : 18 ; length of list_args : 18 results_Auto_P25163476_22-07-2025_06_52_58.pdf 25163479 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25163479 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette251634791753159978 25163480 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25163480 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette251634801753159978 25163481 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25163481 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373107531: '1753159766_906432_1373107474_764dd87daa4ed9289fcab79aa2ac8572_rle_crop_3889539130_0.png', 1373107532: '1753159766_906432_1373107470_2f6a0e7505aa274be08b6276f6944b89_rle_crop_3889539137_0.png', 1373107572: '1753159806_667636_1373107427_34e33e10bbb7d105dc63a435da090fdd_rle_crop_3889539312_0.png', 1373107651: '1753159927_672941_1373107501_82f15740c026f7aa606c9a13bd74bdc0_rle_crop_3889539675_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/280236ae2fa0985498e01787b520ee0d_8079753.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/8facba42b8cffb4e81bf4f41c2ce3ea3_81021310.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/7e9bfa61fcbda6fddbbd26ceca393389_37493457.png change filename to text .imagette251634811753159978/ imagette251634811753159978/1753159766_906432_1373107470_2f6a0e7505aa274be08b6276f6944b89_rle_crop_3889539137_0.png.png imagette251634811753159978/1753159806_667636_1373107427_34e33e10bbb7d105dc63a435da090fdd_rle_crop_3889539312_0.png.png imagette251634811753159978/1753159766_906432_1373107474_764dd87daa4ed9289fcab79aa2ac8572_rle_crop_3889539130_0.png.png imagette251634811753159978/1753159927_672941_1373107501_82f15740c026f7aa606c9a13bd74bdc0_rle_crop_3889539675_0.png.png imagette251634821753159979/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/984476da5beb25a1f133ecc4362451e8_84749651.png imagette251634811753159978 25163482 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25163482 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette251634821753159979 25163483 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25163483 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373107621: '1753159884_910164_1373107535_dd656b804b8929cffcc28838c0a5d1c1_rle_crop_3889539553_0.png', 1373107652: '1753159927_672941_1373107501_82f15740c026f7aa606c9a13bd74bdc0_rle_crop_3889539673_0.png', 1373107653: '1753159927_672941_1373107500_91167c712f47b411fe2af55a078ae5a9_rle_crop_3889539684_0.png', 1373107654: '1753159927_672941_1373107498_5754b1d63669d5ec72359b2ead2798a3_rle_crop_3889539697_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/d3b4219b4bffb260bd11146a74cb3393_1783405.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/fdd31921861b5186559724eafb4a650c_19311905.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/c22280331751312bcbd4aaf7ec549235_58526852.png change filename to text .imagette251634831753159979/ imagette251634831753159979/1753159884_910164_1373107535_dd656b804b8929cffcc28838c0a5d1c1_rle_crop_3889539553_0.png.png imagette251634831753159979/1753159927_672941_1373107500_91167c712f47b411fe2af55a078ae5a9_rle_crop_3889539684_0.png.png imagette251634831753159979/1753159927_672941_1373107498_5754b1d63669d5ec72359b2ead2798a3_rle_crop_3889539697_0.png.png imagette251634831753159979/1753159927_672941_1373107501_82f15740c026f7aa606c9a13bd74bdc0_rle_crop_3889539673_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/354d5363405168ff45e99655f7728fd2_31519910.png imagette251634831753159979 25163486 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25163486 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373107524: '1753159766_906432_1373107474_764dd87daa4ed9289fcab79aa2ac8572_rle_crop_3889539131_0.png', 1373107548: '1753159806_667636_1373107427_34e33e10bbb7d105dc63a435da090fdd_rle_crop_3889539313_0.png', 1373107549: '1753159806_667636_1373107427_34e33e10bbb7d105dc63a435da090fdd_rle_crop_3889539317_0.png', 1373107550: '1753159806_667636_1373107423_30f75a51ba7f35a2d4c177c43345109f_rle_crop_3889539348_0.png', 1373107648: '1753159927_672941_1373107500_91167c712f47b411fe2af55a078ae5a9_rle_crop_3889539683_0.png', 1373107649: '1753159927_672941_1373107498_5754b1d63669d5ec72359b2ead2798a3_rle_crop_3889539696_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/5b2c1635e5e66c0a0cda92156f74c73a_82690550.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/a7f7a061827dc87786a1af8091131bb2_96434753.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/ea2a0e0f14cbee912391115544449ed1_22934025.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/ef1ab0c48af5bb13d25936e0a15975b6_44329058.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/cd6600d7bc149348e4ec818bcecdc6b9_61313409.png change filename to text .imagette251634861753159979/ imagette251634861753159979/1753159927_672941_1373107500_91167c712f47b411fe2af55a078ae5a9_rle_crop_3889539683_0.png.png imagette251634861753159979/1753159927_672941_1373107498_5754b1d63669d5ec72359b2ead2798a3_rle_crop_3889539696_0.png.png imagette251634861753159979/1753159766_906432_1373107474_764dd87daa4ed9289fcab79aa2ac8572_rle_crop_3889539131_0.png.png imagette251634861753159979/1753159806_667636_1373107427_34e33e10bbb7d105dc63a435da090fdd_rle_crop_3889539317_0.png.png imagette251634861753159979/1753159806_667636_1373107427_34e33e10bbb7d105dc63a435da090fdd_rle_crop_3889539313_0.png.png imagette251634861753159979/1753159806_667636_1373107423_30f75a51ba7f35a2d4c177c43345109f_rle_crop_3889539348_0.png.png imagette251634871753159979/ imagette251634841753159979/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/98ac7b69477640cc154f5209909b1a39_71797321.png imagette251634861753159979 25163487 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25163487 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette251634871753159979 25163484 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25163484 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette251634841753159979 25163489 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25163489 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373107526: '1753159766_906432_1373107462_42101682769f24673b427183431f0e02_rle_crop_3889539170_0.png', 1373107527: '1753159766_906432_1373107458_1cd96cfeadf1db28d930b06c7fd6eb6e_rle_crop_3889539182_0.png', 1373107528: '1753159766_906432_1373107453_34725ca70c56a128bf2ef89761771164_rle_crop_3889539206_0.png', 1373107561: '1753159806_667636_1373107427_34e33e10bbb7d105dc63a435da090fdd_rle_crop_3889539314_0.png', 1373107564: '1753159806_667636_1373107423_30f75a51ba7f35a2d4c177c43345109f_rle_crop_3889539347_0.png', 1373107617: '1753159884_910164_1373107538_29467e5ca2fb285e71aca9f96927cd61_rle_crop_3889539536_0.png', 1373107618: '1753159884_910164_1373107525_4147c695ee0491eed401c7c0dc5fd76b_rle_crop_3889539564_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/6ff6f40bd0e21af1f21629d539203a8b_62242601.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/8fc2b870341a851060bc77421beb3e40_36244868.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/122ea27b0bb42a08bd5edb09b3639f19_97245896.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/2b4a0cc85e9cd915840e950cb003c4a8_96946489.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/f8066c028e1c1be8c40469f2e6a279fa_12605739.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/1edc5057682392af34d76da515eb5bc4_65454677.png change filename to text .imagette251634891753159979/ imagette251634891753159979/1753159766_906432_1373107458_1cd96cfeadf1db28d930b06c7fd6eb6e_rle_crop_3889539182_0.png.png imagette251634891753159979/1753159884_910164_1373107525_4147c695ee0491eed401c7c0dc5fd76b_rle_crop_3889539564_0.png.png imagette251634891753159979/1753159806_667636_1373107423_30f75a51ba7f35a2d4c177c43345109f_rle_crop_3889539347_0.png.png imagette251634891753159979/1753159766_906432_1373107462_42101682769f24673b427183431f0e02_rle_crop_3889539170_0.png.png imagette251634891753159979/1753159806_667636_1373107427_34e33e10bbb7d105dc63a435da090fdd_rle_crop_3889539314_0.png.png imagette251634891753159979/1753159884_910164_1373107538_29467e5ca2fb285e71aca9f96927cd61_rle_crop_3889539536_0.png.png imagette251634891753159979/1753159766_906432_1373107453_34725ca70c56a128bf2ef89761771164_rle_crop_3889539206_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/0ca2eda9bd1c7a9df80897c09e041d87_62579699.png imagette251634891753159979 25163490 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25163490 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1373107518: '1753159766_906432_1373107470_2f6a0e7505aa274be08b6276f6944b89_rle_crop_3889539138_0.png', 1373107519: '1753159766_906432_1373107462_42101682769f24673b427183431f0e02_rle_crop_3889539173_0.png', 1373107522: '1753159766_906432_1373107458_1cd96cfeadf1db28d930b06c7fd6eb6e_rle_crop_3889539190_0.png', 1373107523: '1753159766_906432_1373107453_34725ca70c56a128bf2ef89761771164_rle_crop_3889539209_0.png', 1373107547: '1753159806_667636_1373107427_34e33e10bbb7d105dc63a435da090fdd_rle_crop_3889539311_0.png', 1373107614: '1753159884_910164_1373107525_4147c695ee0491eed401c7c0dc5fd76b_rle_crop_3889539570_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/feb0f22937d239c3696d07b1d38e4ea9_72698604.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/3aa92fd46248efd5182abf81b26504d9_2768797.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/1fc362d7306870168fe2844490f972ed_56589267.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/5526039e0fa80edab88c490f0abebe8d_30623952.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/d9cd66b01848461a91de0c3000ef5c52_21745979.png change filename to text .imagette251634901753159980/ imagette251634901753159980/1753159766_906432_1373107462_42101682769f24673b427183431f0e02_rle_crop_3889539173_0.png.png imagette251634901753159980/1753159884_910164_1373107525_4147c695ee0491eed401c7c0dc5fd76b_rle_crop_3889539570_0.png.png imagette251634901753159980/1753159766_906432_1373107458_1cd96cfeadf1db28d930b06c7fd6eb6e_rle_crop_3889539190_0.png.png imagette251634901753159980/1753159766_906432_1373107470_2f6a0e7505aa274be08b6276f6944b89_rle_crop_3889539138_0.png.png imagette251634901753159980/1753159806_667636_1373107427_34e33e10bbb7d105dc63a435da090fdd_rle_crop_3889539311_0.png.png imagette251634901753159980/1753159766_906432_1373107453_34725ca70c56a128bf2ef89761771164_rle_crop_3889539209_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/9aba18431f64313195934c865a3c8dc1_35281567.png imagette251634901753159980 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25163476 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25163491,25163492,25163493,25163494,25163495,25163496,25163497,25163498,25163499,25163500,25163501,25163502?tags=kraft,mal_croppe,cartonnette,flou,plastique,Carton_brun,environnement,autre_refus,metal,papier,Carton_gris,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1373107634] : ('0.05306097535473746',) no score found for photo 1373107634 We are sending mail with results at report@fotonower.com args[1373107631] : ('0.05306097535473746',) no score found for photo 1373107631 We are sending mail with results at report@fotonower.com args[1373107628] : ('0.05306097535473746',) no score found for photo 1373107628 We are sending mail with results at report@fotonower.com args[1373107626] : ('0.05306097535473746',) no score found for photo 1373107626 We are sending mail with results at report@fotonower.com args[1373107623] : ('0.05306097535473746',) no score found for photo 1373107623 We are sending mail with results at report@fotonower.com args[1373107615] : ('0.05306097535473746',) no score found for photo 1373107615 We are sending mail with results at report@fotonower.com args[1373107599] : ('0.05306097535473746',) no score found for photo 1373107599 We are sending mail with results at report@fotonower.com args[1373107597] : ('0.05306097535473746',) no score found for photo 1373107597 We are sending mail with results at report@fotonower.com args[1373107595] : ('0.05306097535473746',) no score found for photo 1373107595 We are sending mail with results at report@fotonower.com args[1373107592] : ('0.05306097535473746',) no score found for photo 1373107592 We are sending mail with results at report@fotonower.com args[1373107588] : ('0.05306097535473746',) no score found for photo 1373107588 We are sending mail with results at report@fotonower.com args[1373107586] : ('0.05306097535473746',) no score found for photo 1373107586 We are sending mail with results at report@fotonower.com args[1373107541] : ('0.05306097535473746',) no score found for photo 1373107541 We are sending mail with results at report@fotonower.com args[1373107539] : ('0.05306097535473746',) no score found for photo 1373107539 We are sending mail with results at report@fotonower.com args[1373107538] : ('0.05306097535473746',) no score found for photo 1373107538 We are sending mail with results at report@fotonower.com args[1373107535] : ('0.05306097535473746',) no score found for photo 1373107535 We are sending mail with results at report@fotonower.com args[1373107525] : ('0.05306097535473746',) no score found for photo 1373107525 We are sending mail with results at report@fotonower.com args[1373107515] : ('0.05306097535473746',) no score found for photo 1373107515 We are sending mail with results at report@fotonower.com refus_total : 0.05306097535473746 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25163476 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_P25163476_22-07-2025_06_52_58.pdf results_Auto_P25163476_22-07-2025_06_52_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25163476_22-07-2025_06_52_58.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','25163476','results_Auto_P25163476_22-07-2025_06_52_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25163476_22-07-2025_06_52_58.pdf','pdf','','0.21','0.05306097535473746') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25163476]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1373107634, 1373107631, 1373107628, 1373107626, 1373107623, 1373107615, 1373107599, 1373107597, 1373107595, 1373107592, 1373107588, 1373107586, 1373107541, 1373107539, 1373107538, 1373107535, 1373107525, 1373107515] map_info['map_portfolio_photo'] : {25163476: [1373107634, 1373107631, 1373107628, 1373107626, 1373107623, 1373107615, 1373107599, 1373107597, 1373107595, 1373107592, 1373107588, 1373107586, 1373107541, 1373107539, 1373107538, 1373107535, 1373107525, 1373107515, 1373107501, 1373107500, 1373107498, 1373107496, 1373107493, 1373107491, 1373107474, 1373107470, 1373107466, 1373107462, 1373107458, 1373107453, 1373107433, 1373107430, 1373107429, 1373107428, 1373107427, 1373107423, 1373107394]} final : False mtd_id 4302 list_pids : [1373107634, 1373107631, 1373107628, 1373107626, 1373107623, 1373107615, 1373107599, 1373107597, 1373107595, 1373107592, 1373107588, 1373107586, 1373107541, 1373107539, 1373107538, 1373107535, 1373107525, 1373107515] 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, '3317345') ('4302', '25163476', '1373107634', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107631', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107628', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107626', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107623', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107615', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107599', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107597', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107595', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107592', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107588', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107586', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107541', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107539', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107538', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107535', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107525', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107515', None, None, None, None, None, '3317345') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '25163476', '1373107634', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107631', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107628', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107626', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107623', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107615', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107599', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107597', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107595', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107592', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107588', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107586', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107541', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107539', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107538', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107535', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107525', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107515', None, None, None, None, None, '3317345')] time used for this insertion : 0.14883947372436523 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.4452316761016846 time spend to save output : 0.14913344383239746 total time spend for step 4 : 3.594365119934082 step5:split_time_score Tue Jul 22 06:53:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['25163476'] 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 : [('25163476',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25163476) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1373107631: {'path': 'temp/1753159978_109486_1373107631_570ad69717403bd8f34be982eb655ef9.jpg', 'extension': 'jpg'}, 1373107634: {'path': 'temp/1753159978_109486_1373107634_d8b50ba49bd74099c7f38b402a62dd8c.jpg', 'extension': 'jpg'}, 1373107615: {'path': 'temp/1753159978_109486_1373107615_2cdbde7a395d9c737cf83379644fab0f.jpg', 'extension': 'jpg'}, 1373107623: {'path': 'temp/1753159978_109486_1373107623_e331727b511796891fda834f86d0c502.jpg', 'extension': 'jpg'}, 1373107626: {'path': 'temp/1753159978_109486_1373107626_742b868bc86cf25ccdabdb8d3bc28ca8.jpg', 'extension': 'jpg'}, 1373107628: {'path': 'temp/1753159978_109486_1373107628_2478d91e731dc61f73ee61a375c36b6e.jpg', 'extension': 'jpg'}, 1373107539: {'path': 'temp/1753159978_109486_1373107539_070034fe1f930cbab74792d7039eb687.jpg', 'extension': 'jpg'}, 1373107541: {'path': 'temp/1753159978_109486_1373107541_a7918a47bed10352317594be683b47b9.jpg', 'extension': 'jpg'}, 1373107586: {'path': 'temp/1753159978_109486_1373107586_5641c48e8a751512cf8fbfcb320735a8.jpg', 'extension': 'jpg'}, 1373107588: {'path': 'temp/1753159978_109486_1373107588_187de3e8209eccba75fdcc86ecdc5fdc.jpg', 'extension': 'jpg'}, 1373107515: {'path': 'temp/1753159978_109486_1373107515_4c89f1a2caa7f83c96846091a1fbe9eb.jpg', 'extension': 'jpg'}, 1373107525: {'path': 'temp/1753159978_109486_1373107525_4147c695ee0491eed401c7c0dc5fd76b.jpg', 'extension': 'jpg'}, 1373107535: {'path': 'temp/1753159978_109486_1373107535_dd656b804b8929cffcc28838c0a5d1c1.jpg', 'extension': 'jpg'}, 1373107538: {'path': 'temp/1753159978_109486_1373107538_29467e5ca2fb285e71aca9f96927cd61.jpg', 'extension': 'jpg'}, 1373107592: {'path': 'temp/1753159978_109486_1373107592_423b64b7ed2a7965254c83d96a114d8e.jpg', 'extension': 'jpg'}, 1373107595: {'path': 'temp/1753159978_109486_1373107595_0e29ccd88bc990e8ba6f7347d985ace0.jpg', 'extension': 'jpg'}, 1373107597: {'path': 'temp/1753159978_109486_1373107597_03070a30a578fc3929969076963e3f85.jpg', 'extension': 'jpg'}, 1373107599: {'path': 'temp/1753159978_109486_1373107599_6f3b7945a9cff9d2efb7d0e524810a6b.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 = 25163476; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25163476 group by h (('06', 37),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25163476 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 (25163476) 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 (25163476) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 22072025 25163476 Nombre de photos uploadées : 37 / 23040 (0%) 22072025 25163476 Nombre de photos taguées (types de déchets): 0 / 37 (0%) 22072025 25163476 Nombre de photos taguées (volume) : 0 / 37 (0%) [{'photo_id': 1373107394, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/1b3c3370bc628ea9e3cafa82ec363893.jpg', 'username': None, 'uploaded_at': 1753159568, 'text': 'image_22072025_06_45_55_10133.jpg'}, {'photo_id': 1373107433, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/b992745d2207b8e2963179062f36ba81.jpg', 'username': None, 'uploaded_at': 1753159623, 'text': 'image_22072025_06_46_05_10143.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1373107430, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/a604f78c1cbd0ac98b55fba8d82bcf34.jpg', 'username': None, 'uploaded_at': 1753159623, 'text': 'image_22072025_06_46_15_10135.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1373107429, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/22/99edba02d3c2ef821d01bcf07f1a00b9.jpg', 'username': None, 'uploaded_at': 1753159623, 'text': 'image_22072025_06_46_24_9124.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0017049312591552734 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25163476, '2025-07-22' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1995739,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.0322260856628418 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= 1995739 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1995739, 'dashboard_run_id': 2003781, 'mtr_portfolio_id': 25155989, 'dashboard_result_id': 12842957, '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_P25155989_22-07-2025_06_18_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156050, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2003781, 'mtr_portfolio_id': 25156005, 'dashboard_result_id': 12842958, '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_P25156005_22-07-2025_06_19_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156053, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156062, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2003781, 'mtr_portfolio_id': 25156012, 'dashboard_result_id': 12842959, '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_P25156012_22-07-2025_01_28_34.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156017, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156018, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156026, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2003781, 'mtr_portfolio_id': 25156290, 'dashboard_result_id': 12842960, '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_P25156290_22-07-2025_02_16_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156300, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156302, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156303, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2003781, 'mtr_portfolio_id': 25156560, 'dashboard_result_id': 12842961, '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_P25156560_22-07-2025_02_30_40.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156574, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156581, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156582, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156585, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2003781, 'mtr_portfolio_id': 25156935, 'dashboard_result_id': 12842962, '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_P25156935_22-07-2025_02_46_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25156949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156960, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2003781, 'mtr_portfolio_id': 25157295, 'dashboard_result_id': 12842963, '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_P25157295_22-07-2025_03_02_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25157298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25157299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25157300, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25157301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25157302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25157303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25157304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25157305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25157306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25157307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25157308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25157309, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2003781, 'mtr_portfolio_id': 25157988, 'dashboard_result_id': 12842964, '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_P25157988_22-07-2025_03_16_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25157990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25157991, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25157992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25157993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25157994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25157995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25157996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25157997, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25157998, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25157999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25158000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25158001, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2003781, 'mtr_portfolio_id': 25158310, 'dashboard_result_id': 12842965, '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_P25158310_22-07-2025_03_30_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25158313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25158314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25158315, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25158316, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25158317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25158318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25158319, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25158320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25158321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25158322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25158323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25158324, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2003781, 'mtr_portfolio_id': 25158648, 'dashboard_result_id': 12842966, '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_P25158648_22-07-2025_03_46_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25158661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25158662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25158663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25158665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25158666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25158667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25158668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25158669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25158670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25158671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25158672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25158673, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2003781, 'mtr_portfolio_id': 25159058, 'dashboard_result_id': 12842967, '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_P25159058_22-07-2025_04_01_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25159075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25159076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25159077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25159078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25159079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25159080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25159081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25159082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25159083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25159084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25159085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25159086, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2003781, 'mtr_portfolio_id': 25159590, 'dashboard_result_id': 12842968, '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_P25159590_22-07-2025_04_16_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25159593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25159594, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25159595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25159596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25159597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25159598, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25159599, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25159600, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25159601, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25159602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25159603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25159604, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2003781, 'mtr_portfolio_id': 25159985, 'dashboard_result_id': 12842969, '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_P25159985_22-07-2025_04_30_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25159989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25159990, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25159991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25159992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25159993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25159994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25159995, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25159996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25159997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25159998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25159999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25160000, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2003781, 'mtr_portfolio_id': 25160298, 'dashboard_result_id': 12842970, '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_P25160298_22-07-2025_04_46_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25160300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25160301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25160302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25160303, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25160304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25160305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25160306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25160307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25160308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25160309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25160310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25160311, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2003781, 'mtr_portfolio_id': 25160634, 'dashboard_result_id': 12842971, '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_P25160634_22-07-2025_05_00_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25160660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25160661, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25160662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25160663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25160664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25160665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25160666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25160667, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25160668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25160669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25160670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25160671, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2003781, 'mtr_portfolio_id': 25160985, 'dashboard_result_id': 12842972, '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_P25160985_22-07-2025_05_16_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25160992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25160993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25160994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25160995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25160996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25160997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25160998, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25160999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25161000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25161001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25161002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25161003, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2003781, 'mtr_portfolio_id': 25161378, 'dashboard_result_id': 12842973, '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_P25161378_22-07-2025_05_40_42.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25161380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25161381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25161382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25161383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25161384, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25161385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25161386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25161387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25161388, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25161389, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25161390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25161391, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2003781, 'mtr_portfolio_id': 25161694, 'dashboard_result_id': 12842974, '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_P25161694_22-07-2025_05_46_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25161720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25161721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25161722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25161723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25161724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25161725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25161726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25161727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25161728, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25161729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25161730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25161731, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2003781, 'mtr_portfolio_id': 25162032, 'dashboard_result_id': 12842975, '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_P25162032_22-07-2025_06_01_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25162059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25162060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25162061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25162062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25162063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25162064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25162065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25162066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25162067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25162068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25162069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25162070, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2003781, 'mtr_portfolio_id': 25162433, 'dashboard_result_id': 12842976, '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_P25162433_22-07-2025_06_30_38.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25162441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25162442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25162443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25162444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25162445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25162446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25162447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25162448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25162449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25162450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25162451, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25162452, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2003781, 'mtr_portfolio_id': 25162875, 'dashboard_result_id': 12842977, '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_P25162875_22-07-2025_06_31_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25162877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25162878, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25162879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25162880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25162881, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25162882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25162883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25162884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25162885, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25162886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25162887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25162888, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2003781, 'mtr_portfolio_id': 25163115, 'dashboard_result_id': 12842978, '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_P25163115_22-07-2025_06_46_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25163143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25163144, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25163145, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25163146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25163147, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25163148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25163149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25163150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25163151, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25163152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25163153, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25163154, 'pht': 3726}}"}, {'dashboat_entry_day': 1995739, 'dashboard_run_id': 2003781, 'mtr_portfolio_id': 25163476, 'dashboard_result_id': 12842979, '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_P25163476_22-07-2025_06_50_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25163479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25163480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25163481, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25163482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25163483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25163484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25163485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25163486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25163487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25163488, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25163489, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25163490, '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 = 25155989 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': 3317103, 'mtr_portfolio_id': 25155989, 'created_at': datetime.datetime(2025, 7, 22, 6, 18, 29), 'result': '0.042577496054803265', 'result_long': None, 'result_double': None}] Qualite : 0.042577496054803265 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25155989 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25155989_22-07-2025_06_18_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25155989 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_P25155989_22-07-2025_06_18_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156050, 'pht': 3726}}" where mtr_portfolio_id = 25155989 and dashboard_run_id = 2003781 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`=25155989 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12842957, 0.042577496054803265, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25155989_22-07-2025_06_18_30.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156040, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156042, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156044, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156047, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156048, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156049, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156050, '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 = 25156005 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': 3317104, 'mtr_portfolio_id': 25156005, 'created_at': datetime.datetime(2025, 7, 22, 6, 19, 29), 'result': '0.028660248002575165', 'result_long': None, 'result_double': None}] Qualite : 0.028660248002575165 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25156005 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25156005_22-07-2025_06_19_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25156005 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_P25156005_22-07-2025_06_19_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156053, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156062, 'pht': 3726}}" where mtr_portfolio_id = 25156005 and dashboard_run_id = 2003781 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`=25156005 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12842958, 0.028660248002575165, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25156005_22-07-2025_06_19_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156051, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156053, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156055, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156056, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156058, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156059, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156060, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156062, '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 = 25156012 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': 3317105, 'mtr_portfolio_id': 25156012, 'created_at': datetime.datetime(2025, 7, 22, 6, 20, 29), 'result': '0.03631626189886217', 'result_long': None, 'result_double': None}] Qualite : 0.03631626189886217 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25156012 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25156012_22-07-2025_06_20_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25156012 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_P25156012_22-07-2025_06_20_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156017, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156018, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156026, 'pht': 3726}}" where mtr_portfolio_id = 25156012 and dashboard_run_id = 2003781 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`=25156012 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12842959, 0.03631626189886217, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25156012_22-07-2025_06_20_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156015, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156016, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156017, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156018, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156019, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156020, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156022, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156023, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156025, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156026, '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 = 25156290 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': 3317106, 'mtr_portfolio_id': 25156290, 'created_at': datetime.datetime(2025, 7, 22, 6, 20, 38), 'result': '0.0469417017519264', 'result_long': None, 'result_double': None}] Qualite : 0.0469417017519264 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25156290 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25156290_22-07-2025_06_20_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25156290 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_P25156290_22-07-2025_06_20_42.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156300, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156302, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156303, 'pht': 3726}}" where mtr_portfolio_id = 25156290 and dashboard_run_id = 2003781 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`=25156290 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12842960, 0.0469417017519264, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25156290_22-07-2025_06_20_42.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156294, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156297, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156299, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156300, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156301, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156302, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156303, '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 = 25156560 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': 3317107, 'mtr_portfolio_id': 25156560, 'created_at': datetime.datetime(2025, 7, 22, 6, 20, 59), 'result': '0.049772851886759076', 'result_long': None, 'result_double': None}] Qualite : 0.049772851886759076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25156560 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25156560_22-07-2025_06_21_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25156560 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_P25156560_22-07-2025_06_21_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156574, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156581, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156582, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156585, 'pht': 3726}}" where mtr_portfolio_id = 25156560 and dashboard_run_id = 2003781 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`=25156560 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12842961, 0.049772851886759076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25156560_22-07-2025_06_21_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156574, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25156575, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156576, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156578, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156579, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156581, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156582, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156583, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156585, '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 = 25156935 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': 3317108, 'mtr_portfolio_id': 25156935, 'created_at': datetime.datetime(2025, 7, 22, 6, 21, 32), 'result': '0.05014606425363453', 'result_long': None, 'result_double': None}] Qualite : 0.05014606425363453 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25156935 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25156935_22-07-2025_06_21_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25156935 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_P25156935_22-07-2025_06_21_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25156949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156960, 'pht': 3726}}" where mtr_portfolio_id = 25156935 and dashboard_run_id = 2003781 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`=25156935 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12842962, 0.05014606425363453, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25156935_22-07-2025_06_21_34.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25156949, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25156950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25156951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25156952, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25156953, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25156954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25156955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25156956, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25156957, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25156958, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25156959, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25156960, '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 = 25157295 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': 3317109, 'mtr_portfolio_id': 25157295, 'created_at': datetime.datetime(2025, 7, 22, 6, 22), 'result': '0.0377625093885371', 'result_long': None, 'result_double': None}] Qualite : 0.0377625093885371 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25157295 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25157295_22-07-2025_06_22_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25157295 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_P25157295_22-07-2025_06_22_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25157298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25157299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25157300, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25157301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25157302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25157303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25157304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25157305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25157306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25157307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25157308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25157309, 'pht': 3726}}" where mtr_portfolio_id = 25157295 and dashboard_run_id = 2003781 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`=25157295 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12842963, 0.0377625093885371, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25157295_22-07-2025_06_22_03.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25157298, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25157299, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25157300, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25157301, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25157302, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25157303, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25157304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25157305, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25157306, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25157307, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25157308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25157309, '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 = 25157988 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': 3317110, 'mtr_portfolio_id': 25157988, 'created_at': datetime.datetime(2025, 7, 22, 6, 22, 30), 'result': '0.055900391707576096', 'result_long': None, 'result_double': None}] Qualite : 0.055900391707576096 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25157988 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25157988_22-07-2025_06_22_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25157988 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_P25157988_22-07-2025_06_22_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25157990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25157991, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25157992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25157993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25157994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25157995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25157996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25157997, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25157998, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25157999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25158000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25158001, 'pht': 3726}}" where mtr_portfolio_id = 25157988 and dashboard_run_id = 2003781 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`=25157988 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12842964, 0.055900391707576096, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25157988_22-07-2025_06_22_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25157990, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25157991, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25157992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25157993, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25157994, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25157995, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25157996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25157997, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25157998, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25157999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25158000, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25158001, '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 = 25158310 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': 3317111, 'mtr_portfolio_id': 25158310, 'created_at': datetime.datetime(2025, 7, 22, 6, 23, 28), 'result': '0.044281090071073746', 'result_long': None, 'result_double': None}] Qualite : 0.044281090071073746 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25158310 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25158310_22-07-2025_06_23_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25158310 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_P25158310_22-07-2025_06_23_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25158313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25158314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25158315, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25158316, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25158317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25158318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25158319, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25158320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25158321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25158322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25158323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25158324, 'pht': 3726}}" where mtr_portfolio_id = 25158310 and dashboard_run_id = 2003781 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`=25158310 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12842965, 0.044281090071073746, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25158310_22-07-2025_06_23_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25158313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25158314, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25158315, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25158316, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25158317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25158318, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25158319, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25158320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25158321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25158322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25158323, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25158324, '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 = 25158648 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': 3317112, 'mtr_portfolio_id': 25158648, 'created_at': datetime.datetime(2025, 7, 22, 6, 23, 58), 'result': '0.045151225783406454', 'result_long': None, 'result_double': None}] Qualite : 0.045151225783406454 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25158648 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25158648_22-07-2025_06_24_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25158648 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_P25158648_22-07-2025_06_24_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25158661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25158662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25158663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25158665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25158666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25158667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25158668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25158669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25158670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25158671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25158672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25158673, 'pht': 3726}}" where mtr_portfolio_id = 25158648 and dashboard_run_id = 2003781 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`=25158648 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12842966, 0.045151225783406454, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25158648_22-07-2025_06_24_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25158661, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25158662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25158663, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25158665, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25158666, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25158667, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25158668, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25158669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25158670, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25158671, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25158672, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25158673, '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 = 25159058 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': 3317113, 'mtr_portfolio_id': 25159058, 'created_at': datetime.datetime(2025, 7, 22, 6, 24, 59), 'result': '0.04774759266088347', 'result_long': None, 'result_double': None}] Qualite : 0.04774759266088347 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25159058 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25159058_22-07-2025_06_25_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25159058 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_P25159058_22-07-2025_06_25_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25159075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25159076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25159077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25159078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25159079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25159080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25159081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25159082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25159083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25159084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25159085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25159086, 'pht': 3726}}" where mtr_portfolio_id = 25159058 and dashboard_run_id = 2003781 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`=25159058 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12842967, 0.04774759266088347, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25159058_22-07-2025_06_25_03.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25159075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25159076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25159077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25159078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25159079, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25159080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25159081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25159082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25159083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25159084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25159085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25159086, '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 = 25159590 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': 3317114, 'mtr_portfolio_id': 25159590, 'created_at': datetime.datetime(2025, 7, 22, 6, 25, 27), 'result': '0.04360843286091059', 'result_long': None, 'result_double': None}] Qualite : 0.04360843286091059 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25159590 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25159590_22-07-2025_06_25_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25159590 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_P25159590_22-07-2025_06_25_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25159593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25159594, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25159595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25159596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25159597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25159598, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25159599, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25159600, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25159601, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25159602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25159603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25159604, 'pht': 3726}}" where mtr_portfolio_id = 25159590 and dashboard_run_id = 2003781 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`=25159590 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12842968, 0.04360843286091059, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25159590_22-07-2025_06_25_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25159593, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25159594, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25159595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25159596, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25159597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25159598, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25159599, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25159600, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25159601, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25159602, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25159603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25159604, '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 = 25159985 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': 3317115, 'mtr_portfolio_id': 25159985, 'created_at': datetime.datetime(2025, 7, 22, 6, 25, 39), 'result': '0.01781640655123875', 'result_long': None, 'result_double': None}] Qualite : 0.01781640655123875 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25159985 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25159985_22-07-2025_06_25_41.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25159985 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_P25159985_22-07-2025_06_25_41.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25159989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25159990, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25159991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25159992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25159993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25159994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25159995, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25159996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25159997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25159998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25159999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25160000, 'pht': 3726}}" where mtr_portfolio_id = 25159985 and dashboard_run_id = 2003781 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`=25159985 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12842969, 0.01781640655123875, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25159985_22-07-2025_06_25_41.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25159989, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25159990, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25159991, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25159992, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25159993, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25159994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25159995, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25159996, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25159997, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25159998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25159999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25160000, '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 = 25160298 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': 3317116, 'mtr_portfolio_id': 25160298, 'created_at': datetime.datetime(2025, 7, 22, 6, 25, 56), 'result': '0.02108208209843524', 'result_long': None, 'result_double': None}] Qualite : 0.02108208209843524 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25160298 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25160298_22-07-2025_06_25_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25160298 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_P25160298_22-07-2025_06_25_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25160300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25160301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25160302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25160303, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25160304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25160305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25160306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25160307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25160308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25160309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25160310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25160311, 'pht': 3726}}" where mtr_portfolio_id = 25160298 and dashboard_run_id = 2003781 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`=25160298 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12842970, 0.02108208209843524, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25160298_22-07-2025_06_25_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25160300, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25160301, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25160302, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25160303, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25160304, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25160305, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25160306, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25160307, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25160308, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25160309, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25160310, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25160311, '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 = 25160634 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': 3317117, 'mtr_portfolio_id': 25160634, 'created_at': datetime.datetime(2025, 7, 22, 6, 26, 29), 'result': '0.020951848401778505', 'result_long': None, 'result_double': None}] Qualite : 0.020951848401778505 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25160634 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25160634_22-07-2025_06_26_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25160634 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_P25160634_22-07-2025_06_26_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25160660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25160661, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25160662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25160663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25160664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25160665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25160666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25160667, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25160668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25160669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25160670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25160671, 'pht': 3726}}" where mtr_portfolio_id = 25160634 and dashboard_run_id = 2003781 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`=25160634 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12842971, 0.020951848401778505, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25160634_22-07-2025_06_26_32.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25160660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25160661, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25160662, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25160663, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25160664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25160665, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25160666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25160667, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25160668, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25160669, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25160670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25160671, '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 = 25160985 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': 3316950, 'mtr_portfolio_id': 25160985, 'created_at': datetime.datetime(2025, 7, 22, 5, 16, 29), 'result': '0.03393861594645021', 'result_long': None, 'result_double': None}] Qualite : 0.03393861594645021 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25160985 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25160985_22-07-2025_05_16_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25160985 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_P25160985_22-07-2025_05_16_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25160992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25160993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25160994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25160995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25160996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25160997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25160998, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25160999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25161000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25161001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25161002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25161003, 'pht': 3726}}" where mtr_portfolio_id = 25160985 and dashboard_run_id = 2003781 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`=25160985 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12842972, 0.03393861594645021, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25160985_22-07-2025_05_16_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25160992, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25160993, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25160994, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25160995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25160996, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25160997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25160998, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25160999, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25161000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25161001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25161002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25161003, '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 = 25161378 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': 3317119, 'mtr_portfolio_id': 25161378, 'created_at': datetime.datetime(2025, 7, 22, 5, 40, 39), 'result': '0.03027880577569094', 'result_long': None, 'result_double': None}] Qualite : 0.03027880577569094 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25161378 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25161378_22-07-2025_05_40_42.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25161378 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_P25161378_22-07-2025_05_40_42.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25161380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25161381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25161382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25161383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25161384, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25161385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25161386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25161387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25161388, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25161389, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25161390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25161391, 'pht': 3726}}" where mtr_portfolio_id = 25161378 and dashboard_run_id = 2003781 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`=25161378 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12842973, 0.03027880577569094, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25161378_22-07-2025_05_40_42.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25161380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25161381, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25161382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25161383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25161384, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25161385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25161386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25161387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25161388, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25161389, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25161390, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25161391, '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 = 25161694 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': 3317022, 'mtr_portfolio_id': 25161694, 'created_at': datetime.datetime(2025, 7, 22, 5, 46, 29), 'result': '0.02688829850206059', 'result_long': None, 'result_double': None}] Qualite : 0.02688829850206059 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25161694 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25161694_22-07-2025_05_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25161694 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_P25161694_22-07-2025_05_46_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25161720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25161721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25161722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25161723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25161724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25161725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25161726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25161727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25161728, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25161729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25161730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25161731, 'pht': 3726}}" where mtr_portfolio_id = 25161694 and dashboard_run_id = 2003781 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`=25161694 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12842974, 0.02688829850206059, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25161694_22-07-2025_05_46_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25161720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25161721, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25161722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25161723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25161724, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25161725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25161726, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25161727, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25161728, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25161729, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25161730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25161731, '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 = 25162032 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': 3317186, 'mtr_portfolio_id': 25162032, 'created_at': datetime.datetime(2025, 7, 22, 6, 1), 'result': '0.04702421960511098', 'result_long': None, 'result_double': None}] Qualite : 0.04702421960511098 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25162032 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25162032_22-07-2025_06_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25162032 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_P25162032_22-07-2025_06_01_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25162059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25162060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25162061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25162062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25162063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25162064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25162065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25162066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25162067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25162068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25162069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25162070, 'pht': 3726}}" where mtr_portfolio_id = 25162032 and dashboard_run_id = 2003781 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`=25162032 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12842975, 0.04702421960511098, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25162032_22-07-2025_06_01_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25162059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25162060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25162061, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25162062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25162063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25162064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25162065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25162066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25162067, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25162068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25162069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25162070, '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 = 25162433 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': 3317233, 'mtr_portfolio_id': 25162433, 'created_at': datetime.datetime(2025, 7, 22, 6, 30, 38), 'result': '0.05365971755760239', 'result_long': None, 'result_double': None}] Qualite : 0.05365971755760239 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25162433 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25162433_22-07-2025_06_30_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25162433 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_P25162433_22-07-2025_06_30_38.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25162441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25162442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25162443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25162444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25162445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25162446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25162447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25162448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25162449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25162450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25162451, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25162452, 'pht': 3726}}" where mtr_portfolio_id = 25162433 and dashboard_run_id = 2003781 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`=25162433 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12842976, 0.05365971755760239, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25162433_22-07-2025_06_30_38.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25162441, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25162442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25162443, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25162444, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25162445, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25162446, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25162447, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25162448, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25162449, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25162450, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25162451, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25162452, '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 = 25162875 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': 3317272, 'mtr_portfolio_id': 25162875, 'created_at': datetime.datetime(2025, 7, 22, 6, 30, 59), 'result': '0.03580225906408305', 'result_long': None, 'result_double': None}] Qualite : 0.03580225906408305 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25162875 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25162875_22-07-2025_06_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25162875 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_P25162875_22-07-2025_06_31_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25162877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25162878, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25162879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25162880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25162881, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25162882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25162883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25162884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25162885, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25162886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25162887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25162888, 'pht': 3726}}" where mtr_portfolio_id = 25162875 and dashboard_run_id = 2003781 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`=25162875 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12842977, 0.03580225906408305, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25162875_22-07-2025_06_31_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25162877, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25162878, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25162879, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25162880, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25162881, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25162882, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25162883, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25162884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25162885, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25162886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25162887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25162888, '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 = 25163115 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': 3317306, 'mtr_portfolio_id': 25163115, 'created_at': datetime.datetime(2025, 7, 22, 6, 46, 29), 'result': '0.03800838290606678', 'result_long': None, 'result_double': None}] Qualite : 0.03800838290606678 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25163115 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25163115_22-07-2025_06_46_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25163115 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_P25163115_22-07-2025_06_46_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25163143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25163144, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25163145, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25163146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25163147, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25163148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25163149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25163150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25163151, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25163152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25163153, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25163154, 'pht': 3726}}" where mtr_portfolio_id = 25163115 and dashboard_run_id = 2003781 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`=25163115 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12842978, 0.03800838290606678, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25163115_22-07-2025_06_46_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25163143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25163144, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25163145, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25163146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25163147, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25163148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25163149, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25163150, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25163151, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25163152, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25163153, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25163154, '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 = 25163476 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': 3317345, 'mtr_portfolio_id': 25163476, 'created_at': datetime.datetime(2025, 7, 22, 6, 52, 58), 'result': '0.05306097535473746', 'result_long': None, 'result_double': None}] Qualite : 0.05306097535473746 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25163476 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25163476_22-07-2025_06_52_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25163476 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_P25163476_22-07-2025_06_52_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25163479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25163480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25163481, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25163482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25163483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25163484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25163485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25163486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25163487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25163488, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25163489, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25163490, 'pht': 3726}}" where mtr_portfolio_id = 25163476 and dashboard_run_id = 2003781 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`=25163476 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12842979, 0.05306097535473746, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25163476_22-07-2025_06_52_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25163479, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25163480, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25163481, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25163482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25163483, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25163484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25163485, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25163486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25163487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25163488, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25163489, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25163490, '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 (25155989,25156005,25156012,25156290,25156560,25156935,25157295,25157988,25158310,25158648,25159058,25159590,25159985,25160298,25160634,25160985,25161378,25161694,25162032,25162433,25162875,25163115,25163476) result : ((1373087817,), (1373087821,), (1373087823,), (1373087825,), (1373087827,), (1373087832,), (1373087836,), (1373087837,), (1373087842,), (1373087849,), (1373087854,), (1373087859,), (1373087866,), (1373087873,), (1373087923,), (1373087963,), (1373088002,), (1373088014,), (1373088024,), (1373088038,), (1373087850,), (1373087947,), (1373087984,), (1373088009,), (1373088030,), (1373088041,), (1373088164,), (1373088165,), (1373088522,), (1373088529,), (1373088533,), (1373088536,), (1373088542,), (1373088544,), (1373088545,), (1373088126,), (1373088134,), (1373088147,), (1373088154,), (1373088157,), (1373088174,), (1373088186,), (1373088193,), (1373088221,), (1373088233,), (1373088237,), (1373088421,), (1373088436,), (1373088452,), (1373088483,), (1373088517,), (1373088574,), (1373088929,), (1373088944,), (1373088956,), (1373088960,), (1373088964,), (1373088967,), (1373089041,), (1373089056,), (1373089059,), (1373089081,), (1373089084,), (1373089086,), (1373089089,), (1373089090,), (1373089092,), (1373089106,), (1373089108,), (1373089112,), (1373089115,), (1373089118,), (1373089121,), (1373089143,), (1373089171,), (1373089189,), (1373089190,), (1373089193,), (1373089196,), (1373089198,), (1373089201,), (1373089233,), (1373089238,), (1373089242,), (1373089246,), (1373089248,), (1373089252,), (1373089270,), (1373089273,), (1373089278,), (1373089281,), (1373089283,), (1373089285,), (1373089302,), (1373089334,), (1373089349,), (1373089354,), (1373089357,), (1373089360,), (1373089362,), (1373089376,), (1373089380,), (1373089385,), (1373089386,), (1373089387,), (1373089388,), (1373089401,), (1373089404,), (1373089407,), (1373089409,), (1373089411,), (1373089413,), (1373089427,), (1373089430,), (1373089434,), (1373089436,), (1373089439,), (1373089441,), (1373089472,), (1373089543,), (1373089549,), (1373089552,), (1373089554,), (1373089557,), (1373089571,), (1373089682,), (1373089815,), (1373089825,), (1373089848,), (1373089874,), (1373089879,), (1373089894,), (1373089935,), (1373089939,), (1373089942,), (1373089945,), (1373089948,), (1373089950,), (1373089965,), (1373089977,), (1373089986,), (1373089993,), (1373089995,), (1373089997,), (1373090011,), (1373090015,), (1373090017,), (1373090020,), (1373090023,), (1373090025,), (1373090050,), (1373090064,), (1373090066,), (1373090067,), (1373090070,), (1373090073,), (1373090104,), (1373090106,), (1373090108,), (1373090110,), (1373090114,), (1373090117,), (1373090147,), (1373090158,), (1373090161,), (1373090163,), (1373090165,), (1373090169,), (1373090208,), (1373090237,), (1373090247,), (1373090254,), (1373090255,), (1373090256,), (1373090257,), (1373090296,), (1373090321,), (1373090332,), (1373090335,), (1373090336,), (1373090337,), (1373090338,), (1373090374,), (1373090375,), (1373090377,), (1373090379,), (1373090380,), (1373090382,), (1373090403,), (1373090406,), (1373090409,), (1373090411,), (1373090413,), (1373090415,), (1373090442,), (1373090466,), (1373090469,), (1373090479,), (1373090488,), (1373090490,), (1373090492,), (1373090513,), (1373090516,), (1373090518,), (1373090520,), (1373090522,), (1373090525,), (1373090540,), (1373090557,), (1373090560,), (1373090563,), (1373090566,), (1373090569,), (1373090583,), (1373090585,), (1373090588,), (1373090589,), (1373090591,), (1373090593,), (1373090614,), (1373090646,), (1373090649,), (1373090652,), (1373090654,), (1373090656,), (1373090659,), (1373090675,), (1373090682,), (1373090688,), (1373090690,), (1373090691,), (1373090693,), (1373090714,), (1373090716,), (1373090718,), (1373090719,), (1373090722,), (1373090724,), (1373090746,), (1373090754,), (1373090758,), (1373090761,), (1373090763,), (1373090766,), (1373090812,), (1373090842,), (1373090873,), (1373090876,), (1373090879,), (1373090881,), (1373090883,), (1373090885,), (1373090901,), (1373090903,), (1373090906,), (1373090908,), (1373090910,), (1373090911,), (1373090932,), (1373090934,), (1373090938,), (1373090942,), (1373090947,), (1373090950,), (1373090961,), (1373090968,), (1373090982,), (1373090984,), (1373090987,), (1373090989,), (1373091009,), (1373091013,), (1373091014,), (1373091016,), (1373091017,), (1373091018,), (1373091035,), (1373091044,), (1373091047,), (1373091048,), (1373091049,), (1373091051,), (1373091066,), (1373091069,), (1373091072,), (1373091075,), (1373091078,), (1373091083,), (1373091107,), (1373091115,), (1373091118,), (1373091122,), (1373091124,), (1373091126,), (1373091142,), (1373091145,), (1373091147,), (1373091149,), (1373091152,), (1373091154,), (1373091178,), (1373091181,), (1373091184,), (1373091185,), (1373091189,), (1373091193,), (1373091217,), (1373091247,), (1373091250,), (1373091252,), (1373091256,), (1373091259,), (1373091262,), (1373091286,), (1373091290,), (1373091296,), (1373091298,), (1373091300,), (1373091303,), (1373091318,), (1373091852,), (1373091863,), (1373091890,), (1373091924,), (1373091946,), (1373091969,), (1373092147,), (1373092179,), (1373092208,), (1373092237,), (1373092263,), (1373092301,), (1373092918,), (1373092940,), (1373092969,), (1373093004,), (1373093028,), (1373093056,), (1373093303,), (1373093625,), (1373093647,), (1373093652,), (1373093653,), (1373093655,), (1373093657,), (1373093755,), (1373093782,), (1373093811,), (1373093841,), (1373093866,), (1373093892,), (1373094115,), (1373094142,), (1373094161,), (1373094166,), (1373094168,), (1373094170,), (1373094172,), (1373094174,), (1373094186,), (1373094189,), (1373094192,), (1373094194,), (1373094195,), (1373094197,), (1373094221,), (1373094227,), (1373094230,), (1373094233,), (1373094235,), (1373094237,), (1373094250,), (1373094254,), (1373094257,), (1373094260,), (1373094261,), (1373094262,), (1373094281,), (1373094290,), (1373094293,), (1373094295,), (1373094298,), (1373094301,), (1373094342,), (1373094344,), (1373094347,), (1373094350,), (1373094352,), (1373094357,), (1373094376,), (1373094382,), (1373094384,), (1373094387,), (1373094390,), (1373094393,), (1373094420,), (1373094447,), (1373094450,), (1373094453,), (1373094456,), (1373094458,), (1373094460,), (1373094475,), (1373094478,), (1373094482,), (1373094485,), (1373094488,), (1373094492,), (1373094522,), (1373094543,), (1373094547,), (1373094552,), (1373094560,), (1373094565,), (1373094578,), (1373094608,), (1373094622,), (1373094630,), (1373094633,), (1373094635,), (1373094637,), (1373094654,), (1373094658,), (1373094661,), (1373094664,), (1373094665,), (1373094669,), (1373094691,), (1373094694,), (1373094698,), (1373094701,), (1373094704,), (1373094706,), (1373094720,), (1373094723,), (1373094726,), (1373094728,), (1373094730,), (1373094732,), (1373094754,), (1373094762,), (1373094764,), (1373094766,), (1373094767,), (1373094769,), (1373094777,), (1373094780,), (1373094783,), (1373094786,), (1373094788,), (1373094790,), (1373094802,), (1373094813,), (1373094816,), (1373094820,), (1373094823,), (1373094827,), (1373094839,), (1373094842,), (1373094846,), (1373094848,), (1373094852,), (1373094856,), (1373094874,), (1373094903,), (1373094906,), (1373094909,), (1373094911,), (1373094914,), (1373094917,), (1373094927,), (1373094936,), (1373094941,), (1373094944,), (1373094945,), (1373094947,), (1373094961,), (1373094964,), (1373094966,), (1373094969,), (1373094972,), (1373094973,), (1373094982,), (1373094993,), (1373094996,), (1373094998,), (1373095003,), (1373095006,), (1373095025,), (1373095027,), (1373095029,), (1373095031,), (1373095033,), (1373095036,), (1373095050,), (1373095053,), (1373095056,), (1373095058,), (1373095061,), (1373095064,), (1373095091,), (1373095092,), (1373095094,), (1373095096,), (1373095097,), (1373095098,), (1373095117,), (1373095119,), (1373095122,), (1373095125,), (1373095126,), (1373095128,), (1373095141,), (1373095144,), (1373095146,), (1373095147,), (1373095149,), (1373095152,), (1373095159,), (1373095178,), (1373095180,), (1373095183,), (1373095184,), (1373095186,), (1373095188,), (1373095205,), (1373095210,), (1373095220,), (1373095222,), (1373095223,), (1373095224,), (1373095235,), (1373095237,), (1373095239,), (1373095240,), (1373095241,), (1373095243,), (1373095257,), (1373095264,), (1373095265,), (1373095266,), (1373095269,), (1373095272,), (1373095287,), (1373095288,), (1373095289,), (1373095290,), (1373095291,), (1373095292,), (1373095293,), (1373095299,), (1373095306,), (1373095307,), (1373095309,), (1373095312,), (1373095323,), (1373095326,), (1373095329,), (1373095331,), (1373095333,), (1373095334,), (1373095341,), (1373095348,), (1373095356,), (1373095361,), (1373095365,), (1373095367,), (1373095382,), (1373095385,), (1373095388,), (1373095391,), (1373095393,), (1373095395,), (1373095413,), (1373095436,), (1373095438,), (1373095439,), (1373095440,), (1373095441,), (1373095444,), (1373095626,), (1373095664,), (1373095689,), (1373095715,), (1373095740,), (1373095769,), (1373095820,), (1373095822,), (1373095824,), (1373095826,), (1373095827,), (1373095830,), (1373095839,), (1373095841,), (1373095852,), (1373095859,), (1373095861,), (1373095863,), (1373095886,), (1373095889,), (1373095892,), (1373095894,), (1373095895,), (1373095898,), (1373095907,), (1373095915,), (1373095918,), (1373095920,), (1373095922,), (1373095924,), (1373095927,), (1373095928,), (1373095929,), (1373095930,), (1373095932,), (1373095935,), (1373095941,), (1373095948,), (1373095949,), (1373095950,), (1373095953,), (1373095957,), (1373095978,), (1373095979,), (1373095980,), (1373095982,), (1373095985,), (1373095987,), (1373096002,), (1373096019,), (1373096022,), (1373096025,), (1373096027,), (1373096029,), (1373096032,), (1373096099,), (1373096143,), (1373096186,), (1373096226,), (1373096267,), (1373096323,), (1373097006,), (1373097045,), (1373097092,), (1373097115,), (1373097146,), (1373097195,), (1373097443,), (1373097471,), (1373097502,), (1373097525,), (1373097551,), (1373097579,), (1373097819,), (1373097824,), (1373097827,), (1373097832,), (1373097837,), (1373097839,), (1373097979,), (1373098089,), (1373098092,), (1373098094,), (1373098105,), (1373098130,), (1373098153,), (1373098373,), (1373098377,), (1373098384,), (1373098389,), (1373098392,), (1373098395,), (1373098407,), (1373098445,), (1373098448,), (1373098450,), (1373098451,), (1373098453,), (1373098455,), (1373098478,), (1373098480,), (1373098486,), (1373098492,), (1373098495,), (1373098497,), (1373098520,), (1373098521,), (1373098523,), (1373098525,), (1373098526,), (1373098527,), (1373098539,), (1373098540,), (1373098542,), (1373098543,), (1373098545,), (1373098547,), (1373098587,), (1373098591,), (1373098593,), (1373098596,), (1373098597,), (1373098600,), (1373098611,), (1373098614,), (1373098617,), (1373098618,), (1373098619,), (1373098623,), (1373098637,), (1373098639,), (1373098640,), (1373098641,), (1373098642,), (1373098644,), (1373098667,), (1373098673,), (1373098677,), (1373098680,), (1373098683,), (1373098684,), (1373098708,), (1373098713,), (1373098716,), (1373098717,), (1373098719,), (1373098720,), (1373098731,), (1373098756,), (1373098757,), (1373098758,), (1373098759,), (1373098761,), (1373098762,), (1373098778,), (1373098780,), (1373098786,), (1373098787,), (1373098789,), (1373098791,), (1373098809,), (1373098812,), (1373098815,), (1373098818,), (1373098820,), (1373098821,), (1373098836,), (1373098846,), (1373098848,), (1373098849,), (1373098850,), (1373098852,), (1373098869,), (1373098870,), (1373098872,), (1373098873,), (1373098876,), (1373098877,), (1373098898,), (1373098906,), (1373098909,), (1373098911,), (1373098912,), (1373098915,), (1373098933,), (1373098953,), (1373098957,), (1373098958,), (1373098959,), (1373098961,), (1373098962,), (1373098980,), (1373098982,), (1373098983,), (1373098984,), (1373098985,), (1373098987,), (1373099012,), (1373099038,), (1373099041,), (1373099044,), (1373099048,), (1373099052,), (1373099054,), (1373099072,), (1373099079,), (1373099082,), (1373099084,), (1373099085,), (1373099087,), (1373099108,), (1373099134,), (1373099143,), (1373099147,), (1373099151,), (1373099153,), (1373099154,), (1373099174,), (1373099178,), (1373099181,), (1373099183,), (1373099186,), (1373099188,), (1373099202,), (1373099206,), (1373099208,), (1373099209,), (1373099210,), (1373099211,), (1373099219,), (1373099245,), (1373099251,), (1373099255,), (1373099256,), (1373099258,), (1373099260,), (1373099274,), (1373099278,), (1373099281,), (1373099282,), (1373099284,), (1373099285,), (1373099300,), (1373099316,), (1373099318,), (1373099320,), (1373099321,), (1373099325,), (1373099330,), (1373099350,), (1373099355,), (1373099359,), (1373099361,), (1373099362,), (1373099363,), (1373099376,), (1373099378,), (1373099381,), (1373099382,), (1373099383,), (1373099384,), (1373099402,), (1373099403,), (1373099406,), (1373099408,), (1373099410,), (1373099412,), (1373099426,), (1373099429,), (1373099432,), (1373099434,), (1373099437,), (1373099439,), (1373099455,), (1373099457,), (1373099458,), (1373099459,), (1373099461,), (1373099462,), (1373099485,), (1373099502,), (1373099508,), (1373099511,), (1373099513,), (1373099514,), (1373099515,), (1373099536,), (1373099537,), (1373099539,), (1373099540,), (1373099541,), (1373099542,), (1373099564,), (1373099567,), (1373099568,), (1373099569,), (1373099571,), (1373099574,), (1373099594,), (1373099597,), (1373099599,), (1373099602,), (1373099605,), (1373099606,), (1373099648,), (1373099652,), (1373099654,), (1373099656,), (1373099658,), (1373099660,), (1373099674,), (1373099676,), (1373099677,), (1373099679,), (1373099681,), (1373099682,), (1373099705,), (1373099710,), (1373099714,), (1373099715,), (1373099716,), (1373099717,), (1373099728,), (1373099730,), (1373099732,), (1373099734,), (1373099736,), (1373099738,), (1373099756,), (1373099761,), (1373099763,), (1373099764,), (1373099767,), (1373099769,), (1373099790,), (1373099807,), (1373099814,), (1373099817,), (1373099819,), (1373099822,), (1373099825,), (1373099844,), (1373099847,), (1373099850,), (1373099852,), (1373099853,), (1373099855,), (1373099872,), (1373099888,), (1373099911,), (1373099916,), (1373099918,), (1373099919,), (1373099932,), (1373099956,), (1373100859,), (1373101086,), (1373101092,), (1373101097,), (1373101106,), (1373101111,), (1373101168,), (1373101193,), (1373101221,), (1373101250,), (1373101273,), (1373101297,), (1373101573,), (1373101940,), (1373101950,), (1373101952,), (1373101954,), (1373101956,), (1373101959,), (1373102182,), (1373102183,), (1373102225,), (1373102253,), (1373102274,), (1373102283,), (1373102313,), (1373102336,), (1373102365,), (1373102370,), (1373102373,), (1373102374,), (1373102376,), (1373102377,), (1373102397,), (1373102398,), (1373102399,), (1373102400,), (1373102401,), (1373102403,), (1373102422,), (1373102429,), (1373102431,), (1373102434,), (1373102437,), (1373102439,), (1373102456,), (1373102458,), (1373102461,), (1373102463,), (1373102465,), (1373102466,), (1373102478,), (1373102481,), (1373102484,), (1373102486,), (1373102487,), (1373102489,), (1373102498,), (1373102513,), (1373102520,), (1373102524,), (1373102525,), (1373102528,), (1373102530,), (1373102542,), (1373102544,), (1373102545,), (1373102546,), (1373102548,), (1373102550,), (1373102573,), (1373102600,), (1373102601,), (1373102602,), (1373102603,), (1373102605,), (1373102608,), (1373102620,), (1373102632,), (1373102635,), (1373102637,), (1373102639,), (1373102642,), (1373102653,), (1373102656,), (1373102659,), (1373102662,), (1373102664,), (1373102666,), (1373102675,), (1373102682,), (1373102686,), (1373102688,), (1373102690,), (1373102693,), (1373102709,), (1373102711,), (1373102713,), (1373102714,), (1373102715,), (1373102716,), (1373102731,), (1373102739,), (1373102746,), (1373102747,), (1373102748,), (1373102750,), (1373102768,), (1373102790,), (1373102795,), (1373102798,), (1373102799,), (1373102802,), (1373102805,), (1373102827,), (1373102829,), (1373102832,), (1373102835,), (1373102836,), (1373102838,), (1373102855,), (1373102873,), (1373102875,), (1373102877,), (1373102878,), (1373102881,), (1373102884,), (1373102908,), (1373102913,), (1373102915,), (1373102916,), (1373102918,), (1373102920,), (1373102933,), (1373102935,), (1373102937,), (1373102938,), (1373102941,), (1373102943,), (1373102955,), (1373102962,), (1373102967,), (1373102971,), (1373102972,), (1373102974,), (1373102991,), (1373102993,), (1373102995,), (1373102996,), (1373102997,), (1373102998,), (1373103018,), (1373103021,), (1373103022,), (1373103025,), (1373103027,), (1373103028,), (1373103038,), (1373103055,), (1373103064,), (1373103068,), (1373103071,), (1373103074,), (1373103077,), (1373103085,), (1373103087,), (1373103089,), (1373103091,), (1373103092,), (1373103094,), (1373103107,), (1373103122,), (1373103124,), (1373103126,), (1373103128,), (1373103130,), (1373103131,), (1373103151,), (1373103159,), (1373103167,), (1373103171,), (1373103173,), (1373103175,), (1373103184,), (1373103186,), (1373103188,), (1373103190,), (1373103191,), (1373103193,), (1373103214,), (1373103215,), (1373103216,), (1373103217,), (1373103218,), (1373103220,), (1373103242,), (1373103244,), (1373103247,), (1373103250,), (1373103252,), (1373103256,), (1373103270,), (1373103277,), (1373103282,), (1373103285,), (1373103289,), (1373103290,), (1373103298,), (1373103318,), (1373103322,), (1373103326,), (1373103329,), (1373103334,), (1373103336,), (1373103356,), (1373103358,), (1373103360,), (1373103362,), (1373103364,), (1373103366,), (1373103379,), (1373103381,), (1373103384,), (1373103385,), (1373103387,), (1373103389,), (1373103405,), (1373103407,), (1373103409,), (1373103411,), (1373103413,), (1373103417,), (1373103429,), (1373103436,), (1373103444,), (1373103451,), (1373103453,), (1373103456,), (1373103470,), (1373103472,), (1373103474,), (1373103476,), (1373103477,), (1373103478,), (1373103497,), (1373103501,), (1373103503,), (1373103505,), (1373103509,), (1373103511,), (1373103537,), (1373103539,), (1373103541,), (1373103542,), (1373103544,), (1373103547,), (1373103559,), (1373103562,), (1373103565,), (1373103568,), (1373103571,), (1373103574,), (1373103590,), (1373103606,), (1373103613,), (1373103616,), (1373103619,), (1373103621,), (1373103624,), (1373103638,), (1373103641,), (1373103644,), (1373103646,), (1373103648,), (1373103650,), (1373103658,), (1373103698,), (1373103722,), (1373103747,), (1373103770,), (1373103793,), (1373103818,), (1373104039,), (1373104068,), (1373104083,), (1373104085,), (1373104098,), (1373104125,), (1373104482,), (1373104786,), (1373104788,), (1373104790,), (1373104791,), (1373104794,), (1373105122,), (1373105148,), (1373105185,), (1373105232,), (1373105268,), (1373105296,), (1373105657,), (1373105839,), (1373105847,), (1373105867,), (1373105893,), (1373105918,), (1373105944,), (1373106080,), (1373106083,), (1373106086,), (1373106088,), (1373106091,), (1373106094,), (1373106099,), (1373106101,), (1373106102,), (1373106104,), (1373106106,), (1373106107,), (1373106117,), (1373106118,), (1373106120,), (1373106122,), (1373106123,), (1373106124,), (1373106133,), (1373106138,), (1373106141,), (1373106143,), (1373106144,), (1373106148,), (1373106161,), (1373106165,), (1373106166,), (1373106168,), (1373106171,), (1373106173,), (1373106195,), (1373106201,), (1373106207,), (1373106208,), (1373106210,), (1373106213,), (1373106254,), (1373106256,), (1373106258,), (1373106259,), (1373106261,), (1373106263,), (1373106273,), (1373106280,), (1373106291,), (1373106296,), (1373106298,), (1373106301,), (1373106315,), (1373106328,), (1373106336,), (1373106345,), (1373106357,), (1373106360,), (1373106362,), (1373106387,), (1373106391,), (1373106393,), (1373106395,), (1373106397,), (1373106400,), (1373106413,), (1373106829,), (1373106451,), (1373106452,), (1373106453,), (1373106454,), (1373106455,), (1373106456,), (1373106464,), (1373106478,), (1373106481,), (1373106482,), (1373106484,), (1373106488,), (1373106496,), (1373106499,), (1373106501,), (1373106503,), (1373106506,), (1373106507,), (1373106516,), (1373106518,), (1373106520,), (1373106521,), (1373106523,), (1373106526,), (1373106562,), (1373106585,), (1373106590,), (1373106593,), (1373106596,), (1373106599,), (1373106602,), (1373106629,), (1373106644,), (1373106653,), (1373106655,), (1373106657,), (1373106660,), (1373106664,), (1373106674,), (1373106679,), (1373106681,), (1373106683,), (1373106685,), (1373106687,), (1373106690,), (1373106711,), (1373106740,), (1373106742,), (1373106745,), (1373106747,), (1373106750,), (1373106753,), (1373106769,), (1373106770,), (1373106778,), (1373106784,), (1373106786,), (1373106787,), (1373106805,), (1373106807,), (1373106810,), (1373106813,), (1373106818,), (1373106822,), (1373106843,), (1373106846,), (1373106848,), (1373106850,), (1373106852,), (1373106856,), (1373106892,), (1373106894,), (1373106897,), (1373106899,), (1373106902,), (1373106905,), (1373106918,), (1373106927,), (1373106929,), (1373106930,), (1373106933,), (1373106936,), (1373106955,), (1373106967,), (1373106977,), (1373106979,), (1373106982,), (1373106985,), (1373106990,), (1373106997,), (1373107002,), (1373107004,), (1373107006,), (1373107008,), (1373107009,), (1373107010,), (1373107028,), (1373107050,), (1373107053,), (1373107055,), (1373107056,), (1373107059,), (1373107063,), (1373107080,), (1373107083,), (1373107100,), (1373107103,), (1373107104,), (1373107105,), (1373107122,), (1373107124,), (1373107127,), (1373107128,), (1373107129,), (1373107130,), (1373107150,), (1373107152,), (1373107154,), (1373107156,), (1373107158,), (1373107160,), (1373107213,), (1373107216,), (1373107221,), (1373107223,), (1373107226,), (1373107229,), (1373107245,), (1373107253,), (1373107264,), (1373107271,), (1373107274,), (1373107278,), (1373107306,), (1373107328,), (1373107337,), (1373107347,), (1373107350,), (1373107355,), (1373107358,), (1373107366,), (1373107369,), (1373107373,), (1373107375,), (1373107377,), (1373107379,), (1373107394,), (1373107423,), (1373107427,), (1373107428,), (1373107429,), (1373107430,), (1373107433,), (1373107453,), (1373107458,), (1373107462,), (1373107466,), (1373107470,), (1373107474,), (1373107491,), (1373107493,), (1373107496,), (1373107498,), (1373107500,), (1373107501,), (1373107515,), (1373107525,), (1373107535,), (1373107538,), (1373107539,), (1373107541,), (1373107586,), (1373107588,), (1373107592,), (1373107595,), (1373107597,), (1373107599,), (1373107615,), (1373107623,), (1373107626,), (1373107628,), (1373107631,), (1373107634,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'22072025': {'nb_upload': 37, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25163476]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1373107634, 1373107631, 1373107628, 1373107626, 1373107623, 1373107615, 1373107599, 1373107597, 1373107595, 1373107592, 1373107588, 1373107586, 1373107541, 1373107539, 1373107538, 1373107535, 1373107525, 1373107515] map_info['map_portfolio_photo'] : {25163476: [1373107634, 1373107631, 1373107628, 1373107626, 1373107623, 1373107615, 1373107599, 1373107597, 1373107595, 1373107592, 1373107588, 1373107586, 1373107541, 1373107539, 1373107538, 1373107535, 1373107525, 1373107515, 1373107501, 1373107500, 1373107498, 1373107496, 1373107493, 1373107491, 1373107474, 1373107470, 1373107466, 1373107462, 1373107458, 1373107453, 1373107433, 1373107430, 1373107429, 1373107428, 1373107427, 1373107423, 1373107394]} final : True mtd_id 4302 list_pids : [1373107634, 1373107631, 1373107628, 1373107626, 1373107623, 1373107615, 1373107599, 1373107597, 1373107595, 1373107592, 1373107588, 1373107586, 1373107541, 1373107539, 1373107538, 1373107535, 1373107525, 1373107515] Looping around the photos to save general results len do output : 1 /25163476Didn'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, '3317345') ('4302', '25163476', '1373107634', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107631', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107628', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107626', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107623', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107615', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107599', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107597', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107595', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107592', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107588', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107586', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107541', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107539', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107538', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107535', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107525', None, None, None, None, None, '3317345') ('4302', None, None, None, None, None, None, None, '3317345') ('4302', '25163476', '1373107515', None, None, None, None, None, '3317345') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '25163476', 'None', None, None, None, None, '3317345'), ('4302', '25163476', '1373107634', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107631', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107628', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107626', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107623', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107615', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107599', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107597', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107595', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107592', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107588', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107586', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107541', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107539', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107538', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107535', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107525', None, None, None, None, None, '3317345'), ('4302', '25163476', '1373107515', None, None, None, None, None, '3317345')] time used for this insertion : 0.17586326599121094 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7268238067626953 time spend to save output : 0.1761302947998047 total time spend for step 5 : 1.9029541015625 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 (3317345) 2.27user 2.46system 0:09.03elapsed 52%CPU (0avgtext+0avgdata 162520maxresident)k 920inputs+12488outputs (3major+76687minor)pagefaults 0swaps