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 : 1201570 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 (2903221) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2903221) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23157241 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2903221'] with mtr_portfolio_ids : ['23157241'] and first list_photo_ids : [] new path : /proc/1201570/ Name: python3 Umask: 0002 State: R (running) Tgid: 1201570 Ngid: 0 Pid: 1201570 PPid: 1201569 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1201570 NSpid: 1201570 NSpgid: 1197881 NSsid: 1197881 VmPeak: 1107312 kB VmSize: 1107312 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99304 kB VmRSS: 99304 kB RssAnon: 60188 kB RssFile: 39116 kB RssShmem: 0 kB VmData: 866060 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 1/63054 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: 71 nonvoluntary_ctxt_switches: 147 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1201570', 'Ngid': '0', 'Pid': '1201570', 'PPid': '1201569', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1201570', 'NSpid': '1201570', 'NSpgid': '1197881', 'NSsid': '1197881', 'VmPeak': '1107312 kB', 'VmSize': '1107312 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99304 kB', 'VmRSS': '99304 kB', 'RssAnon': '60188 kB', 'RssFile': '39116 kB', 'RssShmem': '0 kB', 'VmData': '866060 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '1/63054', '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': '71', 'nonvoluntary_ctxt_switches': '147'} ('datou_batch_current', '1201570', '1107312', '0', '1107312', '866060', '99304', b'', 'marlene', '2903221') 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 (23157241) 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 (2903221 ) ) 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 (23157241) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1359773846, 'portfolio_id': 23157241}, {'photo_id': 1359773845, 'portfolio_id': 23157241}, {'photo_id': 1359773842, 'portfolio_id': 23157241}, {'photo_id': 1359773838, 'portfolio_id': 23157241}, {'photo_id': 1359773834, 'portfolio_id': 23157241}, {'photo_id': 1359773796, 'portfolio_id': 23157241}, {'photo_id': 1359773793, 'portfolio_id': 23157241}, {'photo_id': 1359773791, 'portfolio_id': 23157241}, {'photo_id': 1359773787, 'portfolio_id': 23157241}, {'photo_id': 1359773784, 'portfolio_id': 23157241}, {'photo_id': 1359773781, 'portfolio_id': 23157241}, {'photo_id': 1359773739, 'portfolio_id': 23157241}, {'photo_id': 1359773736, 'portfolio_id': 23157241}, {'photo_id': 1359773733, 'portfolio_id': 23157241}, {'photo_id': 1359773731, 'portfolio_id': 23157241}, {'photo_id': 1359773697, 'portfolio_id': 23157241}, {'photo_id': 1359773693, 'portfolio_id': 23157241}, {'photo_id': 1359773688, 'portfolio_id': 23157241}, {'photo_id': 1359773684, 'portfolio_id': 23157241}, {'photo_id': 1359773677, 'portfolio_id': 23157241}, {'photo_id': 1359773671, 'portfolio_id': 23157241}, {'photo_id': 1359773654, 'portfolio_id': 23157241}, {'photo_id': 1359773619, 'portfolio_id': 23157241}, {'photo_id': 1359773567, 'portfolio_id': 23157241}, {'photo_id': 1359773549, 'portfolio_id': 23157241}, {'photo_id': 1359773517, 'portfolio_id': 23157241}, {'photo_id': 1359773454, 'portfolio_id': 23157241}, {'photo_id': 1359773451, 'portfolio_id': 23157241}, {'photo_id': 1359773447, 'portfolio_id': 23157241}, {'photo_id': 1359773257, 'portfolio_id': 23157241}, {'photo_id': 1359773252, 'portfolio_id': 23157241}, {'photo_id': 1359773244, 'portfolio_id': 23157241}, {'photo_id': 1359773218, 'portfolio_id': 23157241}, {'photo_id': 1359772746, 'portfolio_id': 23157241}, {'photo_id': 1359772722, 'portfolio_id': 23157241}] map_portfolio_id_photo_id: {23157241: [1359773846, 1359773845, 1359773842, 1359773838, 1359773834, 1359773796, 1359773793, 1359773791, 1359773787, 1359773784, 1359773781, 1359773739, 1359773736, 1359773733, 1359773731, 1359773697, 1359773693, 1359773688, 1359773684, 1359773677, 1359773671, 1359773654, 1359773619, 1359773567, 1359773549, 1359773517, 1359773454, 1359773451, 1359773447, 1359773257, 1359773252, 1359773244, 1359773218, 1359772746, 1359772722]} ##### 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.015352249145507812 #### 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 May 20 08:10: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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23157241) 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 : 23157241 get user id for portfolio 23157241 get sub ptf for main ptf 23157241, type 3726 and hashtags ['cartonnette', 'flou', 'autre_refus', 'kraft', 'papier', 'Carton_gris', 'environnement', 'plastique', 'Teint_Dans_La_Masse', 'metal', 'Carton_brun', 'mal_croppe'] 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`=23157241 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','autre_refus','kraft','papier','Carton_gris','environnement','plastique','Teint_Dans_La_Masse','metal','Carton_brun','mal_croppe')) 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`=23157241 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','autre_refus','kraft','papier','Carton_gris','environnement','plastique','Teint_Dans_La_Masse','metal','Carton_brun','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 23157241, 'sub_port_id': 23157260, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15451593, 'last_updated_at': datetime.datetime(2025, 5, 20, 8, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 8, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 8, 3, 29)}, 'metal': {'main_port_id': 23157241, 'sub_port_id': 23157261, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15451594, 'last_updated_at': datetime.datetime(2025, 5, 20, 8, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 8, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 8, 3, 29)}, 'Carton_brun': {'main_port_id': 23157241, 'sub_port_id': 23157262, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15451595, 'last_updated_at': datetime.datetime(2025, 5, 20, 8, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 8, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 8, 3, 29)}, 'autre_refus': {'main_port_id': 23157241, 'sub_port_id': 23157263, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15451596, 'last_updated_at': datetime.datetime(2025, 5, 20, 8, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 8, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 8, 3, 29)}, 'environnement': {'main_port_id': 23157241, 'sub_port_id': 23157264, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15451597, 'last_updated_at': datetime.datetime(2025, 5, 20, 8, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 8, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 8, 3, 29)}, 'papier': {'main_port_id': 23157241, 'sub_port_id': 23157265, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15451598, 'last_updated_at': datetime.datetime(2025, 5, 20, 8, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 8, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 8, 3, 29)}, 'mal_croppe': {'main_port_id': 23157241, 'sub_port_id': 23157266, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15451599, 'last_updated_at': datetime.datetime(2025, 5, 20, 8, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 8, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 8, 3, 29)}, 'plastique': {'main_port_id': 23157241, 'sub_port_id': 23157267, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15451600, 'last_updated_at': datetime.datetime(2025, 5, 20, 8, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 8, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 8, 3, 29)}, 'cartonnette': {'main_port_id': 23157241, 'sub_port_id': 23157268, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15451601, 'last_updated_at': datetime.datetime(2025, 5, 20, 8, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 8, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 8, 3, 29)}, 'kraft': {'main_port_id': 23157241, 'sub_port_id': 23157269, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15451602, 'last_updated_at': datetime.datetime(2025, 5, 20, 8, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 8, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 8, 3, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 23157241, 'sub_port_id': 23157270, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15451603, 'last_updated_at': datetime.datetime(2025, 5, 20, 8, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 8, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 8, 3, 29)}, 'Carton_gris': {'main_port_id': 23157241, 'sub_port_id': 23157271, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15451604, 'last_updated_at': datetime.datetime(2025, 5, 20, 8, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 8, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 8, 3, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23157260 , 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=23157241 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 (23157260) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23157241) result : ((1359772722,), (1359772746,), (1359773218,), (1359773244,), (1359773252,), (1359773257,), (1359773447,), (1359773451,), (1359773454,), (1359773517,), (1359773549,), (1359773567,), (1359773619,), (1359773654,), (1359773671,), (1359773677,), (1359773684,), (1359773688,), (1359773693,), (1359773697,), (1359773731,), (1359773733,), (1359773736,), (1359773739,), (1359773781,), (1359773784,), (1359773787,), (1359773791,), (1359773793,), (1359773796,), (1359773834,), (1359773838,), (1359773842,), (1359773845,), (1359773846,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23157261 , 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=23157241 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 (23157261) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23157241) result : ((1359772722,), (1359772746,), (1359773218,), (1359773244,), (1359773252,), (1359773257,), (1359773447,), (1359773451,), (1359773454,), (1359773517,), (1359773549,), (1359773567,), (1359773619,), (1359773654,), (1359773671,), (1359773677,), (1359773684,), (1359773688,), (1359773693,), (1359773697,), (1359773731,), (1359773733,), (1359773736,), (1359773739,), (1359773781,), (1359773784,), (1359773787,), (1359773791,), (1359773793,), (1359773796,), (1359773834,), (1359773838,), (1359773842,), (1359773845,), (1359773846,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23157262 , 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=23157241 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 (23157262) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23157241) result : ((1359772722,), (1359772746,), (1359773218,), (1359773244,), (1359773252,), (1359773257,), (1359773447,), (1359773451,), (1359773454,), (1359773517,), (1359773549,), (1359773567,), (1359773619,), (1359773654,), (1359773671,), (1359773677,), (1359773684,), (1359773688,), (1359773693,), (1359773697,), (1359773731,), (1359773733,), (1359773736,), (1359773739,), (1359773781,), (1359773784,), (1359773787,), (1359773791,), (1359773793,), (1359773796,), (1359773834,), (1359773838,), (1359773842,), (1359773845,), (1359773846,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23157263 , 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=23157241 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 (23157263) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23157241) result : ((1359772722,), (1359772746,), (1359773218,), (1359773244,), (1359773252,), (1359773257,), (1359773447,), (1359773451,), (1359773454,), (1359773517,), (1359773549,), (1359773567,), (1359773619,), (1359773654,), (1359773671,), (1359773677,), (1359773684,), (1359773688,), (1359773693,), (1359773697,), (1359773731,), (1359773733,), (1359773736,), (1359773739,), (1359773781,), (1359773784,), (1359773787,), (1359773791,), (1359773793,), (1359773796,), (1359773834,), (1359773838,), (1359773842,), (1359773845,), (1359773846,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23157264 , 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=23157241 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 (23157264) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23157241) result : ((1359772722,), (1359772746,), (1359773218,), (1359773244,), (1359773252,), (1359773257,), (1359773447,), (1359773451,), (1359773454,), (1359773517,), (1359773549,), (1359773567,), (1359773619,), (1359773654,), (1359773671,), (1359773677,), (1359773684,), (1359773688,), (1359773693,), (1359773697,), (1359773731,), (1359773733,), (1359773736,), (1359773739,), (1359773781,), (1359773784,), (1359773787,), (1359773791,), (1359773793,), (1359773796,), (1359773834,), (1359773838,), (1359773842,), (1359773845,), (1359773846,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23157265 , 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=23157241 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 (23157265) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23157241) result : ((1359772722,), (1359772746,), (1359773218,), (1359773244,), (1359773252,), (1359773257,), (1359773447,), (1359773451,), (1359773454,), (1359773517,), (1359773549,), (1359773567,), (1359773619,), (1359773654,), (1359773671,), (1359773677,), (1359773684,), (1359773688,), (1359773693,), (1359773697,), (1359773731,), (1359773733,), (1359773736,), (1359773739,), (1359773781,), (1359773784,), (1359773787,), (1359773791,), (1359773793,), (1359773796,), (1359773834,), (1359773838,), (1359773842,), (1359773845,), (1359773846,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23157266 , 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=23157241 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 (23157266) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23157241) result : ((1359772722,), (1359772746,), (1359773218,), (1359773244,), (1359773252,), (1359773257,), (1359773447,), (1359773451,), (1359773454,), (1359773517,), (1359773549,), (1359773567,), (1359773619,), (1359773654,), (1359773671,), (1359773677,), (1359773684,), (1359773688,), (1359773693,), (1359773697,), (1359773731,), (1359773733,), (1359773736,), (1359773739,), (1359773781,), (1359773784,), (1359773787,), (1359773791,), (1359773793,), (1359773796,), (1359773834,), (1359773838,), (1359773842,), (1359773845,), (1359773846,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23157267 , 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=23157241 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 (23157267) result : ((1359773779,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23157241) result : ((1359772722,), (1359772746,), (1359773218,), (1359773244,), (1359773252,), (1359773257,), (1359773447,), (1359773451,), (1359773454,), (1359773517,), (1359773549,), (1359773567,), (1359773619,), (1359773654,), (1359773671,), (1359773677,), (1359773684,), (1359773688,), (1359773693,), (1359773697,), (1359773731,), (1359773733,), (1359773736,), (1359773739,), (1359773781,), (1359773784,), (1359773787,), (1359773791,), (1359773793,), (1359773796,), (1359773834,), (1359773838,), (1359773842,), (1359773845,), (1359773846,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23157268 , 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=23157241 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 (23157268) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23157241) result : ((1359772722,), (1359772746,), (1359773218,), (1359773244,), (1359773252,), (1359773257,), (1359773447,), (1359773451,), (1359773454,), (1359773517,), (1359773549,), (1359773567,), (1359773619,), (1359773654,), (1359773671,), (1359773677,), (1359773684,), (1359773688,), (1359773693,), (1359773697,), (1359773731,), (1359773733,), (1359773736,), (1359773739,), (1359773781,), (1359773784,), (1359773787,), (1359773791,), (1359773793,), (1359773796,), (1359773834,), (1359773838,), (1359773842,), (1359773845,), (1359773846,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23157269 , 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=23157241 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 (23157269) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23157241) result : ((1359772722,), (1359772746,), (1359773218,), (1359773244,), (1359773252,), (1359773257,), (1359773447,), (1359773451,), (1359773454,), (1359773517,), (1359773549,), (1359773567,), (1359773619,), (1359773654,), (1359773671,), (1359773677,), (1359773684,), (1359773688,), (1359773693,), (1359773697,), (1359773731,), (1359773733,), (1359773736,), (1359773739,), (1359773781,), (1359773784,), (1359773787,), (1359773791,), (1359773793,), (1359773796,), (1359773834,), (1359773838,), (1359773842,), (1359773845,), (1359773846,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23157270 , 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=23157241 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 (23157270) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23157241) result : ((1359772722,), (1359772746,), (1359773218,), (1359773244,), (1359773252,), (1359773257,), (1359773447,), (1359773451,), (1359773454,), (1359773517,), (1359773549,), (1359773567,), (1359773619,), (1359773654,), (1359773671,), (1359773677,), (1359773684,), (1359773688,), (1359773693,), (1359773697,), (1359773731,), (1359773733,), (1359773736,), (1359773739,), (1359773781,), (1359773784,), (1359773787,), (1359773791,), (1359773793,), (1359773796,), (1359773834,), (1359773838,), (1359773842,), (1359773845,), (1359773846,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 23157271 , 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=23157241 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 (23157271) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23157241) result : ((1359772722,), (1359772746,), (1359773218,), (1359773244,), (1359773252,), (1359773257,), (1359773447,), (1359773451,), (1359773454,), (1359773517,), (1359773549,), (1359773567,), (1359773619,), (1359773654,), (1359773671,), (1359773677,), (1359773684,), (1359773688,), (1359773693,), (1359773697,), (1359773731,), (1359773733,), (1359773736,), (1359773739,), (1359773781,), (1359773784,), (1359773787,), (1359773791,), (1359773793,), (1359773796,), (1359773834,), (1359773838,), (1359773842,), (1359773845,), (1359773846,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23157241 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','autre_refus','kraft','papier','Carton_gris','environnement','plastique','Teint_Dans_La_Masse','metal','Carton_brun','mal_croppe')) 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`=23157241 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','autre_refus','kraft','papier','Carton_gris','environnement','plastique','Teint_Dans_La_Masse','metal','Carton_brun','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 23157241, 'sub_port_id': 23157273, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15451605, 'last_updated_at': datetime.datetime(2025, 5, 20, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 8, 3, 30)}, 'metal': {'main_port_id': 23157241, 'sub_port_id': 23157274, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15451606, 'last_updated_at': datetime.datetime(2025, 5, 20, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 8, 3, 30)}, 'Carton_brun': {'main_port_id': 23157241, 'sub_port_id': 23157275, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15451607, 'last_updated_at': datetime.datetime(2025, 5, 20, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 8, 3, 30)}, 'autre_refus': {'main_port_id': 23157241, 'sub_port_id': 23157276, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15451608, 'last_updated_at': datetime.datetime(2025, 5, 20, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 8, 3, 30)}, 'environnement': {'main_port_id': 23157241, 'sub_port_id': 23157277, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15451609, 'last_updated_at': datetime.datetime(2025, 5, 20, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 8, 3, 30)}, 'papier': {'main_port_id': 23157241, 'sub_port_id': 23157278, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15451610, 'last_updated_at': datetime.datetime(2025, 5, 20, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 8, 3, 30)}, 'mal_croppe': {'main_port_id': 23157241, 'sub_port_id': 23157279, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15451611, 'last_updated_at': datetime.datetime(2025, 5, 20, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 8, 3, 30)}, 'plastique': {'main_port_id': 23157241, 'sub_port_id': 23157280, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15451612, 'last_updated_at': datetime.datetime(2025, 5, 20, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 8, 3, 30)}, 'cartonnette': {'main_port_id': 23157241, 'sub_port_id': 23157281, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15451613, 'last_updated_at': datetime.datetime(2025, 5, 20, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 8, 3, 30)}, 'kraft': {'main_port_id': 23157241, 'sub_port_id': 23157282, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15451614, 'last_updated_at': datetime.datetime(2025, 5, 20, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 8, 3, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 23157241, 'sub_port_id': 23157283, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15451615, 'last_updated_at': datetime.datetime(2025, 5, 20, 8, 3, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 8, 3, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 8, 3, 30)}, 'Carton_gris': {'main_port_id': 23157241, 'sub_port_id': 23157284, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15451616, 'last_updated_at': datetime.datetime(2025, 5, 20, 8, 6, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 20, 8, 6, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 20, 8, 3, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23157273,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23157260 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23157274,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23157261 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23157275,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23157262 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23157276,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23157263 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23157277,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23157264 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23157278,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23157265 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23157279,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23157266 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23157280,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23157267 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23157281,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23157268 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23157282,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23157269 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23157283,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23157270 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23157284,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23157271 lien utilise dans velours : https://www.fotonower.com/velours/23157273,23157274,23157275,23157276,23157277,23157278,23157279,23157280,23157281,23157282,23157283,23157284?tags=flou,metal,Carton_brun,autre_refus,environnement,papier,mal_croppe,plastique,cartonnette,kraft,Teint_Dans_La_Masse,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23157241]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1359773846, 1359773845, 1359773842, 1359773838, 1359773834, 1359773796, 1359773793, 1359773791, 1359773787, 1359773784, 1359773781, 1359773739, 1359773736, 1359773733, 1359773731, 1359773697, 1359773693, 1359773688, 1359773684, 1359773677, 1359773671] map_info['map_portfolio_photo'] : {23157241: [1359773846, 1359773845, 1359773842, 1359773838, 1359773834, 1359773796, 1359773793, 1359773791, 1359773787, 1359773784, 1359773781, 1359773739, 1359773736, 1359773733, 1359773731, 1359773697, 1359773693, 1359773688, 1359773684, 1359773677, 1359773671, 1359773654, 1359773619, 1359773567, 1359773549, 1359773517, 1359773454, 1359773451, 1359773447, 1359773257, 1359773252, 1359773244, 1359773218, 1359772746, 1359772722]} final : False mtd_id 4302 list_pids : [1359773846, 1359773845, 1359773842, 1359773838, 1359773834, 1359773796, 1359773793, 1359773791, 1359773787, 1359773784, 1359773781, 1359773739, 1359773736, 1359773733, 1359773731, 1359773697, 1359773693, 1359773688, 1359773684, 1359773677, 1359773671] Looping around the photos to save general results len do output : 1 /23157241. 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, '2903221') ('4302', '23157241', '1359773846', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773845', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773842', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773838', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773834', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773796', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773793', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773791', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773787', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773784', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773781', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773739', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773736', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773733', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773731', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773697', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773693', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773688', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773684', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773677', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773671', None, None, None, None, None, '2903221') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 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, '23157241', "{'flou': 23157260, 'metal': 23157261, 'Carton_brun': 23157262, 'autre_refus': 23157263, 'environnement': 23157264, 'papier': 23157265, 'mal_croppe': 23157266, 'plastique': 23157267, 'cartonnette': 23157268, 'kraft': 23157269, 'Teint_Dans_La_Masse': 23157270, 'Carton_gris': 23157271}", None, None, None, None, '2903221'), ('4302', '23157241', '1359773846', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773845', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773842', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773838', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773834', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773796', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773793', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773791', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773787', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773784', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773781', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773739', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773736', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773733', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773731', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773697', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773693', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773688', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773684', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773677', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773671', None, None, None, None, None, '2903221')] time used for this insertion : 0.029279470443725586 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4907090663909912 time spend to save output : 0.03159141540527344 total time spend for step 1 : 1.5223004817962646 step2:final Tue May 20 08:11:00 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 (23157241) 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 23157241 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1359772746,1359772722,1359773257,1359773252,1359773244,1359773218,1359773454,1359773451,1359773447,1359773654,1359773619,1359773567,1359773549,1359773517,1359773697,1359773693,1359773688,1359773684,1359773677,1359773671,1359773739,1359773736,1359773733,1359773731,1359773796,1359773793,1359773791,1359773787,1359773784,1359773781,1359773846,1359773845,1359773842,1359773838,1359773834); 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([23157241]) Inside saveOutput : final : False verbose : True original output for save of step final : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ('0.02417849007050482',), 1359773684: ('0.02417849007050482',), 1359773677: ('0.02417849007050482',), 1359773671: ('0.02417849007050482',)} new output for save of step final : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ('0.02417849007050482',), 1359773684: ('0.02417849007050482',), 1359773677: ('0.02417849007050482',), 1359773671: ('0.02417849007050482',)} [1359773846, 1359773845, 1359773842, 1359773838, 1359773834, 1359773796, 1359773793, 1359773791, 1359773787, 1359773784, 1359773781, 1359773739, 1359773736, 1359773733, 1359773731, 1359773697, 1359773693, 1359773688, 1359773684, 1359773677, 1359773671] map_info['map_portfolio_photo'] : {23157241: [1359773846, 1359773845, 1359773842, 1359773838, 1359773834, 1359773796, 1359773793, 1359773791, 1359773787, 1359773784, 1359773781, 1359773739, 1359773736, 1359773733, 1359773731, 1359773697, 1359773693, 1359773688, 1359773684, 1359773677, 1359773671, 1359773654, 1359773619, 1359773567, 1359773549, 1359773517, 1359773454, 1359773451, 1359773447, 1359773257, 1359773252, 1359773244, 1359773218, 1359772746, 1359772722]} final : False mtd_id 4302 list_pids : [1359773846, 1359773845, 1359773842, 1359773838, 1359773834, 1359773796, 1359773793, 1359773791, 1359773787, 1359773784, 1359773781, 1359773739, 1359773736, 1359773733, 1359773731, 1359773697, 1359773693, 1359773688, 1359773684, 1359773677, 1359773671] Looping around the photos to save general results len do output : 21 /1359773846.Didn't retrieve data . /1359773845.Didn't retrieve data . /1359773842.Didn't retrieve data . /1359773838.Didn't retrieve data . /1359773834.Didn't retrieve data . /1359773796.Didn't retrieve data . /1359773793.Didn't retrieve data . /1359773791.Didn't retrieve data . /1359773787.Didn't retrieve data . /1359773784.Didn't retrieve data . /1359773781.Didn't retrieve data . /1359773739.Didn't retrieve data . /1359773736.Didn't retrieve data . /1359773733.Didn't retrieve data . /1359773731.Didn't retrieve data . /1359773697.Didn't retrieve data . /1359773693.Didn't retrieve data . /1359773688.Didn't retrieve data . /1359773684.Didn't retrieve data . /1359773677.Didn't retrieve data . /1359773671.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, '2903221') ('4302', '23157241', '1359773846', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773845', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773842', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773838', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773834', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773796', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773793', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773791', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773787', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773784', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773781', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773739', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773736', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773733', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773731', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773697', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773693', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773688', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773684', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773677', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773671', None, None, None, None, None, '2903221') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 63 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', '23157241', '1359773846', '0.02417849007050482', None, None, None, None, '2903221'), ('4302', '23157241', '1359773845', '0.02417849007050482', None, None, None, None, '2903221'), ('4302', '23157241', '1359773842', '0.02417849007050482', None, None, None, None, '2903221'), ('4302', '23157241', '1359773838', '0.02417849007050482', None, None, None, None, '2903221'), ('4302', '23157241', '1359773834', '0.02417849007050482', None, None, None, None, '2903221'), ('4302', '23157241', '1359773796', '0.02417849007050482', None, None, None, None, '2903221'), ('4302', '23157241', '1359773793', '0.02417849007050482', None, None, None, None, '2903221'), ('4302', '23157241', '1359773791', '0.02417849007050482', None, None, None, None, '2903221'), ('4302', '23157241', '1359773787', '0.02417849007050482', None, None, None, None, '2903221'), ('4302', '23157241', '1359773784', '0.02417849007050482', None, None, None, None, '2903221'), ('4302', '23157241', '1359773781', '0.02417849007050482', None, None, None, None, '2903221'), ('4302', '23157241', '1359773739', '0.02417849007050482', None, None, None, None, '2903221'), ('4302', '23157241', '1359773736', '0.02417849007050482', None, None, None, None, '2903221'), ('4302', '23157241', '1359773733', '0.02417849007050482', None, None, None, None, '2903221'), ('4302', '23157241', '1359773731', '0.02417849007050482', None, None, None, None, '2903221'), ('4302', '23157241', '1359773697', '0.02417849007050482', None, None, None, None, '2903221'), ('4302', '23157241', '1359773693', '0.02417849007050482', None, None, None, None, '2903221'), ('4302', '23157241', '1359773688', '0.02417849007050482', None, None, None, None, '2903221'), ('4302', '23157241', '1359773684', '0.02417849007050482', None, None, None, None, '2903221'), ('4302', '23157241', '1359773677', '0.02417849007050482', None, None, None, None, '2903221'), ('4302', '23157241', '1359773671', '0.02417849007050482', None, None, None, None, '2903221')] time used for this insertion : 0.025118112564086914 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07070207595825195 time spend to save output : 0.026210308074951172 total time spend for step 2 : 0.09691238403320312 step3:velours_tree Tue May 20 08:11:00 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 : {23157241: [{'flou': 23157260, 'metal': 23157261, 'Carton_brun': 23157262, 'autre_refus': 23157263, 'environnement': 23157264, 'papier': 23157265, 'mal_croppe': 23157266, 'plastique': 23157267, 'cartonnette': 23157268, 'kraft': 23157269, 'Teint_Dans_La_Masse': 23157270, 'Carton_gris': 23157271}]} input_args_next_step : {23157241: ()} output_args : {23157241: [{'flou': 23157260, 'metal': 23157261, 'Carton_brun': 23157262, 'autre_refus': 23157263, 'environnement': 23157264, 'papier': 23157265, 'mal_croppe': 23157266, 'plastique': 23157267, 'cartonnette': 23157268, 'kraft': 23157269, 'Teint_Dans_La_Masse': 23157270, 'Carton_gris': 23157271}]} args : 23157241 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'flou': 23157260, 'metal': 23157261, 'Carton_brun': 23157262, 'autre_refus': 23157263, 'environnement': 23157264, 'papier': 23157265, 'mal_croppe': 23157266, 'plastique': 23157267, 'cartonnette': 23157268, 'kraft': 23157269, 'Teint_Dans_La_Masse': 23157270, 'Carton_gris': 23157271},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23157241) 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([23157241]) 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.6443183422088623 time spend to save output : 7.462501525878906e-05 total time spend for step 3 : 0.6443929672241211 step4:send_mail_cod Tue May 20 08:11:01 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 : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ('0.02417849007050482',), 1359773684: ('0.02417849007050482',), 1359773677: ('0.02417849007050482',), 1359773671: ('0.02417849007050482',)} input_args_next_step : {1359773846: ()} output_args : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ('0.02417849007050482',), 1359773684: ('0.02417849007050482',), 1359773677: ('0.02417849007050482',), 1359773671: ('0.02417849007050482',)} args : 1359773846 depend.output_id : 0 input_args_next_step : {1359773846: ('0.02417849007050482',), 1359773845: ()} output_args : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ('0.02417849007050482',), 1359773684: ('0.02417849007050482',), 1359773677: ('0.02417849007050482',), 1359773671: ('0.02417849007050482',)} args : 1359773845 depend.output_id : 0 input_args_next_step : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ()} output_args : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ('0.02417849007050482',), 1359773684: ('0.02417849007050482',), 1359773677: ('0.02417849007050482',), 1359773671: ('0.02417849007050482',)} args : 1359773842 depend.output_id : 0 input_args_next_step : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ()} output_args : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ('0.02417849007050482',), 1359773684: ('0.02417849007050482',), 1359773677: ('0.02417849007050482',), 1359773671: ('0.02417849007050482',)} args : 1359773838 depend.output_id : 0 input_args_next_step : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ()} output_args : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ('0.02417849007050482',), 1359773684: ('0.02417849007050482',), 1359773677: ('0.02417849007050482',), 1359773671: ('0.02417849007050482',)} args : 1359773834 depend.output_id : 0 input_args_next_step : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ()} output_args : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ('0.02417849007050482',), 1359773684: ('0.02417849007050482',), 1359773677: ('0.02417849007050482',), 1359773671: ('0.02417849007050482',)} args : 1359773796 depend.output_id : 0 input_args_next_step : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ()} output_args : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ('0.02417849007050482',), 1359773684: ('0.02417849007050482',), 1359773677: ('0.02417849007050482',), 1359773671: ('0.02417849007050482',)} args : 1359773793 depend.output_id : 0 input_args_next_step : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ()} output_args : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ('0.02417849007050482',), 1359773684: ('0.02417849007050482',), 1359773677: ('0.02417849007050482',), 1359773671: ('0.02417849007050482',)} args : 1359773791 depend.output_id : 0 input_args_next_step : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ()} output_args : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ('0.02417849007050482',), 1359773684: ('0.02417849007050482',), 1359773677: ('0.02417849007050482',), 1359773671: ('0.02417849007050482',)} args : 1359773787 depend.output_id : 0 input_args_next_step : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ()} output_args : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ('0.02417849007050482',), 1359773684: ('0.02417849007050482',), 1359773677: ('0.02417849007050482',), 1359773671: ('0.02417849007050482',)} args : 1359773784 depend.output_id : 0 input_args_next_step : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ()} output_args : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ('0.02417849007050482',), 1359773684: ('0.02417849007050482',), 1359773677: ('0.02417849007050482',), 1359773671: ('0.02417849007050482',)} args : 1359773781 depend.output_id : 0 input_args_next_step : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ()} output_args : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ('0.02417849007050482',), 1359773684: ('0.02417849007050482',), 1359773677: ('0.02417849007050482',), 1359773671: ('0.02417849007050482',)} args : 1359773739 depend.output_id : 0 input_args_next_step : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ()} output_args : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ('0.02417849007050482',), 1359773684: ('0.02417849007050482',), 1359773677: ('0.02417849007050482',), 1359773671: ('0.02417849007050482',)} args : 1359773736 depend.output_id : 0 input_args_next_step : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ()} output_args : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ('0.02417849007050482',), 1359773684: ('0.02417849007050482',), 1359773677: ('0.02417849007050482',), 1359773671: ('0.02417849007050482',)} args : 1359773733 depend.output_id : 0 input_args_next_step : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ()} output_args : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ('0.02417849007050482',), 1359773684: ('0.02417849007050482',), 1359773677: ('0.02417849007050482',), 1359773671: ('0.02417849007050482',)} args : 1359773731 depend.output_id : 0 input_args_next_step : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ()} output_args : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ('0.02417849007050482',), 1359773684: ('0.02417849007050482',), 1359773677: ('0.02417849007050482',), 1359773671: ('0.02417849007050482',)} args : 1359773697 depend.output_id : 0 input_args_next_step : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ()} output_args : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ('0.02417849007050482',), 1359773684: ('0.02417849007050482',), 1359773677: ('0.02417849007050482',), 1359773671: ('0.02417849007050482',)} args : 1359773693 depend.output_id : 0 input_args_next_step : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ()} output_args : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ('0.02417849007050482',), 1359773684: ('0.02417849007050482',), 1359773677: ('0.02417849007050482',), 1359773671: ('0.02417849007050482',)} args : 1359773688 depend.output_id : 0 input_args_next_step : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ('0.02417849007050482',), 1359773684: ()} output_args : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ('0.02417849007050482',), 1359773684: ('0.02417849007050482',), 1359773677: ('0.02417849007050482',), 1359773671: ('0.02417849007050482',)} args : 1359773684 depend.output_id : 0 input_args_next_step : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ('0.02417849007050482',), 1359773684: ('0.02417849007050482',), 1359773677: ()} output_args : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ('0.02417849007050482',), 1359773684: ('0.02417849007050482',), 1359773677: ('0.02417849007050482',), 1359773671: ('0.02417849007050482',)} args : 1359773677 depend.output_id : 0 input_args_next_step : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ('0.02417849007050482',), 1359773684: ('0.02417849007050482',), 1359773677: ('0.02417849007050482',), 1359773671: ()} output_args : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ('0.02417849007050482',), 1359773684: ('0.02417849007050482',), 1359773677: ('0.02417849007050482',), 1359773671: ('0.02417849007050482',)} args : 1359773671 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 : {23157241: [{'flou': 23157260, 'metal': 23157261, 'Carton_brun': 23157262, 'autre_refus': 23157263, 'environnement': 23157264, 'papier': 23157265, 'mal_croppe': 23157266, 'plastique': 23157267, 'cartonnette': 23157268, 'kraft': 23157269, 'Teint_Dans_La_Masse': 23157270, 'Carton_gris': 23157271}]} input_args_next_step : {1359773846: ('0.02417849007050482',), 1359773845: ('0.02417849007050482',), 1359773842: ('0.02417849007050482',), 1359773838: ('0.02417849007050482',), 1359773834: ('0.02417849007050482',), 1359773796: ('0.02417849007050482',), 1359773793: ('0.02417849007050482',), 1359773791: ('0.02417849007050482',), 1359773787: ('0.02417849007050482',), 1359773784: ('0.02417849007050482',), 1359773781: ('0.02417849007050482',), 1359773739: ('0.02417849007050482',), 1359773736: ('0.02417849007050482',), 1359773733: ('0.02417849007050482',), 1359773731: ('0.02417849007050482',), 1359773697: ('0.02417849007050482',), 1359773693: ('0.02417849007050482',), 1359773688: ('0.02417849007050482',), 1359773684: ('0.02417849007050482',), 1359773677: ('0.02417849007050482',), 1359773671: ('0.02417849007050482',), 23157241: ()} output_args : {23157241: [{'flou': 23157260, 'metal': 23157261, 'Carton_brun': 23157262, 'autre_refus': 23157263, 'environnement': 23157264, 'papier': 23157265, 'mal_croppe': 23157266, 'plastique': 23157267, 'cartonnette': 23157268, 'kraft': 23157269, 'Teint_Dans_La_Masse': 23157270, 'Carton_gris': 23157271}]} args : 23157241 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 :22, first value : ('0.02417849007050482',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23157241) 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 (1359773846,1359773845,1359773842,1359773838,1359773834,1359773796,1359773793,1359773791,1359773787,1359773784,1359773781,1359773739,1359773736,1359773733,1359773731,1359773697,1359773693,1359773688,1359773684,1359773677,1359773671) Found this number of photos: 21 ##### Call download_photos : nb_thread : 5 begin to download photo : 1359773671 begin to download photo : 1359773697 begin to download photo : 1359773781 begin to download photo : 1359773796 begin to download photo : 1359773846 download finish for photo 1359773796 begin to download photo : 1359773834 download finish for photo 1359773846 download finish for photo 1359773697 begin to download photo : 1359773731 download finish for photo 1359773671 begin to download photo : 1359773677 download finish for photo 1359773781 begin to download photo : 1359773784 download finish for photo 1359773834 begin to download photo : 1359773838 download finish for photo 1359773731 begin to download photo : 1359773733 download finish for photo 1359773677 begin to download photo : 1359773684 download finish for photo 1359773838 begin to download photo : 1359773842 download finish for photo 1359773733 begin to download photo : 1359773736 download finish for photo 1359773684 begin to download photo : 1359773688 download finish for photo 1359773736 begin to download photo : 1359773739 download finish for photo 1359773842 begin to download photo : 1359773845 download finish for photo 1359773688 begin to download photo : 1359773693 download finish for photo 1359773739 download finish for photo 1359773845 download finish for photo 1359773693 download finish for photo 1359773784 begin to download photo : 1359773787 download finish for photo 1359773787 begin to download photo : 1359773791 download finish for photo 1359773791 begin to download photo : 1359773793 download finish for photo 1359773793 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette231572601747721462/ imagette231572611747721462/ imagette231572631747721462/ imagette231572661747721462/ length of list_filenames : 21 ; length of list_pids : 21 ; length of list_args : 21 results_Auto_P23157241_20-05-2025_08_11_02.pdf 23157260 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=23157260 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette231572601747721462 23157261 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=23157261 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette231572611747721462 23157263 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=23157263 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette231572631747721462 23157266 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=23157266 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette231572661747721462 23157267 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=23157267 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1359773779: '1747721263_2394423_1359773451_b32739fc121ad8fe0f459fc1aa031fb7_rle_crop_3806175302_0.png'} change filename to text .imagette231572671747721462/ imagette231572671747721462/1747721263_2394423_1359773451_b32739fc121ad8fe0f459fc1aa031fb7_rle_crop_3806175302_0.png.png imagette231572681747721462/ imagette231572691747721462/ imagette231572621747721462/ imagette231572701747721462/ imagette231572711747721462/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/20/c61a88311588ea704d145ec567d0fe51_26792451.png imagette231572671747721462 23157268 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=23157268 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette231572681747721462 23157269 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=23157269 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette231572691747721462 23157262 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=23157262 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette231572621747721462 23157270 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=23157270 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette231572701747721462 23157271 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=23157271 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette231572711747721462 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=23157241 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/23157273,23157274,23157275,23157276,23157277,23157278,23157279,23157280,23157281,23157282,23157283,23157284?tags=flou,metal,Carton_brun,autre_refus,environnement,papier,mal_croppe,plastique,cartonnette,kraft,Teint_Dans_La_Masse,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1359773846] : ('0.02417849007050482',) no score found for photo 1359773846 We are sending mail with results at report@fotonower.com args[1359773845] : ('0.02417849007050482',) no score found for photo 1359773845 We are sending mail with results at report@fotonower.com args[1359773842] : ('0.02417849007050482',) no score found for photo 1359773842 We are sending mail with results at report@fotonower.com args[1359773838] : ('0.02417849007050482',) no score found for photo 1359773838 We are sending mail with results at report@fotonower.com args[1359773834] : ('0.02417849007050482',) no score found for photo 1359773834 We are sending mail with results at report@fotonower.com args[1359773796] : ('0.02417849007050482',) no score found for photo 1359773796 We are sending mail with results at report@fotonower.com args[1359773793] : ('0.02417849007050482',) no score found for photo 1359773793 We are sending mail with results at report@fotonower.com args[1359773791] : ('0.02417849007050482',) no score found for photo 1359773791 We are sending mail with results at report@fotonower.com args[1359773787] : ('0.02417849007050482',) no score found for photo 1359773787 We are sending mail with results at report@fotonower.com args[1359773784] : ('0.02417849007050482',) no score found for photo 1359773784 We are sending mail with results at report@fotonower.com args[1359773781] : ('0.02417849007050482',) no score found for photo 1359773781 We are sending mail with results at report@fotonower.com args[1359773739] : ('0.02417849007050482',) no score found for photo 1359773739 We are sending mail with results at report@fotonower.com args[1359773736] : ('0.02417849007050482',) no score found for photo 1359773736 We are sending mail with results at report@fotonower.com args[1359773733] : ('0.02417849007050482',) no score found for photo 1359773733 We are sending mail with results at report@fotonower.com args[1359773731] : ('0.02417849007050482',) no score found for photo 1359773731 We are sending mail with results at report@fotonower.com args[1359773697] : ('0.02417849007050482',) no score found for photo 1359773697 We are sending mail with results at report@fotonower.com args[1359773693] : ('0.02417849007050482',) no score found for photo 1359773693 We are sending mail with results at report@fotonower.com args[1359773688] : ('0.02417849007050482',) no score found for photo 1359773688 We are sending mail with results at report@fotonower.com args[1359773684] : ('0.02417849007050482',) no score found for photo 1359773684 We are sending mail with results at report@fotonower.com args[1359773677] : ('0.02417849007050482',) no score found for photo 1359773677 We are sending mail with results at report@fotonower.com args[1359773671] : ('0.02417849007050482',) no score found for photo 1359773671 We are sending mail with results at report@fotonower.com refus_total : 0.02417849007050482 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=23157241 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_P23157241_20-05-2025_08_11_02.pdf results_Auto_P23157241_20-05-2025_08_11_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23157241_20-05-2025_08_11_02.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','23157241','results_Auto_P23157241_20-05-2025_08_11_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23157241_20-05-2025_08_11_02.pdf','pdf','','0.17','0.02417849007050482') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23157241]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1359773846, 1359773845, 1359773842, 1359773838, 1359773834, 1359773796, 1359773793, 1359773791, 1359773787, 1359773784, 1359773781, 1359773739, 1359773736, 1359773733, 1359773731, 1359773697, 1359773693, 1359773688, 1359773684, 1359773677, 1359773671] map_info['map_portfolio_photo'] : {23157241: [1359773846, 1359773845, 1359773842, 1359773838, 1359773834, 1359773796, 1359773793, 1359773791, 1359773787, 1359773784, 1359773781, 1359773739, 1359773736, 1359773733, 1359773731, 1359773697, 1359773693, 1359773688, 1359773684, 1359773677, 1359773671, 1359773654, 1359773619, 1359773567, 1359773549, 1359773517, 1359773454, 1359773451, 1359773447, 1359773257, 1359773252, 1359773244, 1359773218, 1359772746, 1359772722]} final : False mtd_id 4302 list_pids : [1359773846, 1359773845, 1359773842, 1359773838, 1359773834, 1359773796, 1359773793, 1359773791, 1359773787, 1359773784, 1359773781, 1359773739, 1359773736, 1359773733, 1359773731, 1359773697, 1359773693, 1359773688, 1359773684, 1359773677, 1359773671] 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, '2903221') ('4302', '23157241', '1359773846', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773845', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773842', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773838', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773834', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773796', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773793', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773791', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773787', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773784', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773781', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773739', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773736', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773733', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773731', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773697', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773693', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773688', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773684', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773677', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773671', None, None, None, None, None, '2903221') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '23157241', '1359773846', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773845', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773842', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773838', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773834', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773796', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773793', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773791', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773787', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773784', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773781', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773739', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773736', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773733', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773731', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773697', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773693', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773688', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773684', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773677', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773671', None, None, None, None, None, '2903221')] time used for this insertion : 0.19048213958740234 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.659146308898926 time spend to save output : 0.19088268280029297 total time spend for step 4 : 2.8500289916992188 step5:split_time_score Tue May 20 08:11:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['23157241'] 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 : [('23157241',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23157241) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1359773846: {'path': 'temp/1747721461_1201570_1359773846_54a4cc951abb0b2ffd8ce0a79a10a967.jpg', 'extension': 'jpg'}, 1359773697: {'path': 'temp/1747721461_1201570_1359773697_0b4ae8cf0b137d45e2d834c2d9df6f3a.jpg', 'extension': 'jpg'}, 1359773731: {'path': 'temp/1747721461_1201570_1359773731_4eb1003c647ca45666332b736299b70b.jpg', 'extension': 'jpg'}, 1359773733: {'path': 'temp/1747721461_1201570_1359773733_99a233a596a686ab3938883c5d2dd263.jpg', 'extension': 'jpg'}, 1359773736: {'path': 'temp/1747721461_1201570_1359773736_bbb5280f797f2789048afbb882fb619b.jpg', 'extension': 'jpg'}, 1359773739: {'path': 'temp/1747721461_1201570_1359773739_fd1c4e5117eac7a41231553fa928a2e5.jpg', 'extension': 'jpg'}, 1359773796: {'path': 'temp/1747721461_1201570_1359773796_82e8359c777360ae03e0bed6ba3b8059.jpg', 'extension': 'jpg'}, 1359773834: {'path': 'temp/1747721461_1201570_1359773834_b625d3be567b1077c94a8adf949b7fac.jpg', 'extension': 'jpg'}, 1359773838: {'path': 'temp/1747721461_1201570_1359773838_349d24e655283d0e2c6a15bd67352cff.jpg', 'extension': 'jpg'}, 1359773842: {'path': 'temp/1747721461_1201570_1359773842_fcf07a3d823423bd17c2b338ec7b335e.jpg', 'extension': 'jpg'}, 1359773845: {'path': 'temp/1747721461_1201570_1359773845_837b6ddab5cefe7412cfd32087be61d2.jpg', 'extension': 'jpg'}, 1359773671: {'path': 'temp/1747721461_1201570_1359773671_85d75a428c2821220b6363c25909d6a5.jpg', 'extension': 'jpg'}, 1359773677: {'path': 'temp/1747721461_1201570_1359773677_4380da9764427b873a2c633e82a010e3.jpg', 'extension': 'jpg'}, 1359773684: {'path': 'temp/1747721461_1201570_1359773684_0ef753dd2ccffc920d455e4a1b43598e.jpg', 'extension': 'jpg'}, 1359773688: {'path': 'temp/1747721461_1201570_1359773688_75b9ca934668444e25775dfcf9f3d292.jpg', 'extension': 'jpg'}, 1359773693: {'path': 'temp/1747721461_1201570_1359773693_359e9e5d5be5b3a285803aa56d33fffe.jpg', 'extension': 'jpg'}, 1359773781: {'path': 'temp/1747721461_1201570_1359773781_8fcbe14e381c279b9cbde5571b58d6b9.jpg', 'extension': 'jpg'}, 1359773784: {'path': 'temp/1747721461_1201570_1359773784_cc765d1a3715f8167db756986d059c8a.jpg', 'extension': 'jpg'}, 1359773787: {'path': 'temp/1747721461_1201570_1359773787_8e16f53608c1cb882d365fce74ee78bd.jpg', 'extension': 'jpg'}, 1359773791: {'path': 'temp/1747721461_1201570_1359773791_5012003abd037ab239502117c49e13dd.jpg', 'extension': 'jpg'}, 1359773793: {'path': 'temp/1747721461_1201570_1359773793_8f07e66843df8cc92057722109377462.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 = 23157241; (('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 = 23157241 group by h (('08', 35),) 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=23157241 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 (23157241) 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 (23157241) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 20052025 23157241 Nombre de photos uploadées : 35 / 23040 (0%) 20052025 23157241 Nombre de photos taguées (types de déchets): 0 / 35 (0%) 20052025 23157241 Nombre de photos taguées (volume) : 0 / 35 (0%) [{'photo_id': 1359772746, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/20/2e8cbbec654a062129408cb7110611c8.jpg', 'username': None, 'uploaded_at': 1747720927, 'text': 'image_20052025_08_01_35_10142.jpg'}, {'photo_id': 1359772722, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/20/101fa0ebee0c5dbd0498aaaef085a565.jpg', 'username': None, 'uploaded_at': 1747720927, 'text': 'image_20052025_08_01_44_9127.jpg'}, {'photo_id': 1359773257, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/20/9c3722c3e2451f521833264e76a00d25.jpg', 'username': None, 'uploaded_at': 1747720987, 'text': 'image_20052025_08_01_54_10134.jpg'}, {'photo_id': 1359773252, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/20/aff7fa4f325c970baa01ffb677a279f9.jpg', 'username': None, 'uploaded_at': 1747720987, 'text': 'image_20052025_08_02_04_10142.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 7.152557373046875e-06 ??????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0012087821960449219 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 23157241, '2025-05-20' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1820738,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03364062309265137 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= 1820738 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1820738, 'dashboard_run_id': 1829269, 'mtr_portfolio_id': 23148156, 'dashboard_result_id': 10719853, '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_P23148156_20-05-2025_05_58_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23148157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23148158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23148159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23148160, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23148161, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23148162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23148163, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23148164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23148165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23148166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23148167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23148168, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1829269, 'mtr_portfolio_id': 23150574, 'dashboard_result_id': 10719854, '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_P23150574_20-05-2025_05_32_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23150575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23150576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23150577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23150578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23150579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23150580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23150581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23150582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23150583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23150584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23150585, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23150586, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1829269, 'mtr_portfolio_id': 23150983, 'dashboard_result_id': 10719855, '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_P23150983_20-05-2025_05_48_56.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23150987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23150988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23150989, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23150990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23150991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23150992, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23150993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23150994, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23150995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23150996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23150997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23150998, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1829269, 'mtr_portfolio_id': 23151453, 'dashboard_result_id': 10719856, '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_P23151453_20-05-2025_06_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23151484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23151485, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23151486, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23151487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23151488, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23151489, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23151490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23151491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23151492, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23151493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23151494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23151495, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1829269, 'mtr_portfolio_id': 23151856, 'dashboard_result_id': 10719857, '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_P23151856_20-05-2025_06_17_49.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23151879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23151880, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23151881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23151882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23151883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23151884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23151885, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23151886, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23151887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23151888, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23151889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23151890, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1829269, 'mtr_portfolio_id': 23152505, 'dashboard_result_id': 10719858, '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_P23152505_20-05-2025_06_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23152512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23152513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23152514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23152515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23152516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23152517, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23152518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23152519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23152520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23152521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23152522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23152523, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1829269, 'mtr_portfolio_id': 23153069, 'dashboard_result_id': 10719859, '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_P23153069_20-05-2025_06_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23153111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23153112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23153113, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23153114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23153115, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23153116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23153117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23153118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23153119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23153120, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23153121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23153122, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1829269, 'mtr_portfolio_id': 23153614, 'dashboard_result_id': 10719860, '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_P23153614_20-05-2025_06_59_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23153695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23153696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23153697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23153698, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23153699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23153700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23153701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23153702, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23153703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23153704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23153705, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23153706, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1829269, 'mtr_portfolio_id': 23154854, 'dashboard_result_id': 10719861, '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_P23154854_20-05-2025_07_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23154904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23154905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23154906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23154907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23154908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23154909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23154910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23154911, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23154912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23154913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23154914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23154915, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1829269, 'mtr_portfolio_id': 23155663, 'dashboard_result_id': 10719862, '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_P23155663_20-05-2025_07_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23155673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23155674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23155675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23155676, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23155677, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23155678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23155679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23155680, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23155681, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23155682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23155683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23155684, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1829269, 'mtr_portfolio_id': 23156379, 'dashboard_result_id': 10719863, '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_P23156379_20-05-2025_08_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23156415, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23156416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23156417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23156418, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23156419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23156420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23156421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23156422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23156423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23156424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23156425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23156426, 'pht': 3726}}"}, {'dashboat_entry_day': 1820738, 'dashboard_run_id': 1829269, 'mtr_portfolio_id': 23157241, 'dashboard_result_id': 10719864, '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_P23157241_20-05-2025_08_06_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23157260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23157261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23157262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23157263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23157264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23157265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23157266, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23157267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23157268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23157269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23157270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23157271, '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 = 23148156 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': 2900956, 'mtr_portfolio_id': 23148156, 'created_at': datetime.datetime(2025, 5, 20, 5, 58), 'result': '0.03466790997904054', 'result_long': None, 'result_double': None}] Qualite : 0.03466790997904054 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23148156 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23148156_20-05-2025_05_58_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23148156 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_P23148156_20-05-2025_05_58_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23148157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23148158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23148159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23148160, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23148161, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23148162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23148163, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23148164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23148165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23148166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23148167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23148168, 'pht': 3726}}" where mtr_portfolio_id = 23148156 and dashboard_run_id = 1829269 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`=23148156 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10719853, 0.03466790997904054, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23148156_20-05-2025_05_58_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23148157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23148158, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23148159, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23148160, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23148161, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23148162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23148163, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23148164, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23148165, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23148166, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23148167, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23148168, '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 = 23150574 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': 2900958, 'mtr_portfolio_id': 23150574, 'created_at': datetime.datetime(2025, 5, 20, 5, 59, 28), 'result': '0.037850643117095364', 'result_long': None, 'result_double': None}] Qualite : 0.037850643117095364 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23150574 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23150574_20-05-2025_05_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23150574 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_P23150574_20-05-2025_05_32_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23150575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23150576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23150577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23150578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23150579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23150580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23150581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23150582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23150583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23150584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23150585, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23150586, 'pht': 3726}}" where mtr_portfolio_id = 23150574 and dashboard_run_id = 1829269 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`=23150574 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10719854, 0.037850643117095364, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23150574_20-05-2025_05_32_57.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23150575, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23150576, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23150577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23150578, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23150579, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23150580, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23150581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23150582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23150583, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23150584, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23150585, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23150586, '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 = 23150983 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': 2900908, 'mtr_portfolio_id': 23150983, 'created_at': datetime.datetime(2025, 5, 20, 5, 48, 56), 'result': '0.045740393989022105', 'result_long': None, 'result_double': None}] Qualite : 0.045740393989022105 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23150983 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23150983_20-05-2025_05_48_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23150983 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_P23150983_20-05-2025_05_48_56.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23150987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23150988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23150989, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23150990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23150991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23150992, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23150993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23150994, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23150995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23150996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23150997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23150998, 'pht': 3726}}" where mtr_portfolio_id = 23150983 and dashboard_run_id = 1829269 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`=23150983 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10719855, 0.045740393989022105, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23150983_20-05-2025_05_48_56.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 23150987, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23150988, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23150989, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23150990, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23150991, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23150992, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23150993, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23150994, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23150995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23150996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23150997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23150998, '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 = 23151453 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 23151453 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 23151453 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23151453 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23151453 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23151453 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23151453_20-05-2025_06_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23151453 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_P23151453_20-05-2025_06_03_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23151484, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23151485, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23151486, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23151487, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23151488, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23151489, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23151490, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23151491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23151492, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23151493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23151494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23151495, 'pht': 3726}}" where mtr_portfolio_id = 23151453 and dashboard_run_id = 1829269 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 = 23151856 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': 2901204, 'mtr_portfolio_id': 23151856, 'created_at': datetime.datetime(2025, 5, 20, 6, 17, 48), 'result': '0.05431352054860411', 'result_long': None, 'result_double': None}] Qualite : 0.05431352054860411 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23151856 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23151856_20-05-2025_06_17_49.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23151856 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_P23151856_20-05-2025_06_17_49.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23151879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23151880, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23151881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23151882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23151883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23151884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23151885, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23151886, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23151887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23151888, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23151889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23151890, 'pht': 3726}}" where mtr_portfolio_id = 23151856 and dashboard_run_id = 1829269 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`=23151856 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10719857, 0.05431352054860411, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23151856_20-05-2025_06_17_49.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23151879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23151880, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23151881, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23151882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23151883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23151884, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23151885, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23151886, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23151887, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23151888, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23151889, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23151890, '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 = 23152505 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': 2901336, 'mtr_portfolio_id': 23152505, 'created_at': datetime.datetime(2025, 5, 20, 6, 32, 59), 'result': '0.0350929972284991', 'result_long': None, 'result_double': None}] Qualite : 0.0350929972284991 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23152505 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23152505_20-05-2025_06_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23152505 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_P23152505_20-05-2025_06_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23152512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23152513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23152514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23152515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23152516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23152517, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23152518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23152519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23152520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23152521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23152522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23152523, 'pht': 3726}}" where mtr_portfolio_id = 23152505 and dashboard_run_id = 1829269 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`=23152505 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10719858, 0.0350929972284991, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23152505_20-05-2025_06_33_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23152512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23152513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23152514, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23152515, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23152516, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23152517, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23152518, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23152519, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23152520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23152521, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23152522, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23152523, '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 = 23153069 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': 2901569, 'mtr_portfolio_id': 23153069, 'created_at': datetime.datetime(2025, 5, 20, 6, 49), 'result': '0.029204111003464393', 'result_long': None, 'result_double': None}] Qualite : 0.029204111003464393 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23153069 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23153069_20-05-2025_06_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23153069 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_P23153069_20-05-2025_06_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23153111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23153112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23153113, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23153114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23153115, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23153116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23153117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23153118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23153119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23153120, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23153121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23153122, 'pht': 3726}}" where mtr_portfolio_id = 23153069 and dashboard_run_id = 1829269 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`=23153069 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10719859, 0.029204111003464393, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23153069_20-05-2025_06_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23153111, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23153112, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23153113, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23153114, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23153115, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23153116, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23153117, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23153118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23153119, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23153120, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23153121, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23153122, '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 = 23153614 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': 2901827, 'mtr_portfolio_id': 23153614, 'created_at': datetime.datetime(2025, 5, 20, 7, 2, 59), 'result': '0.04354042014532871', 'result_long': None, 'result_double': None}] Qualite : 0.04354042014532871 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23153614 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23153614_20-05-2025_07_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23153614 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_P23153614_20-05-2025_07_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23153695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23153696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23153697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23153698, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23153699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23153700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23153701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23153702, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23153703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23153704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23153705, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23153706, 'pht': 3726}}" where mtr_portfolio_id = 23153614 and dashboard_run_id = 1829269 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`=23153614 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10719860, 0.04354042014532871, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23153614_20-05-2025_07_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23153695, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23153696, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23153697, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23153698, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23153699, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23153700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23153701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23153702, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23153703, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23153704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23153705, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23153706, '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 = 23154854 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': 2902371, 'mtr_portfolio_id': 23154854, 'created_at': datetime.datetime(2025, 5, 20, 7, 33), 'result': '0.03287914189280499', 'result_long': None, 'result_double': None}] Qualite : 0.03287914189280499 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23154854 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23154854_20-05-2025_07_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23154854 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_P23154854_20-05-2025_07_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23154904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23154905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23154906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23154907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23154908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23154909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23154910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23154911, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23154912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23154913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23154914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23154915, 'pht': 3726}}" where mtr_portfolio_id = 23154854 and dashboard_run_id = 1829268 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`=23154854 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10719861, 0.03287914189280499, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23154854_20-05-2025_07_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23154904, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23154905, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23154906, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23154907, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23154908, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23154909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23154910, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23154911, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23154912, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23154913, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23154914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23154915, '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 = 23155663 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': 2902632, 'mtr_portfolio_id': 23155663, 'created_at': datetime.datetime(2025, 5, 20, 7, 46, 59), 'result': '0.07698562797819863', 'result_long': None, 'result_double': None}] Qualite : 0.07698562797819863 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23155663 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23155663_20-05-2025_07_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23155663 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_P23155663_20-05-2025_07_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23155673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23155674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23155675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23155676, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23155677, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23155678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23155679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23155680, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23155681, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23155682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23155683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23155684, 'pht': 3726}}" where mtr_portfolio_id = 23155663 and dashboard_run_id = 1829268 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`=23155663 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10719862, 0.07698562797819863, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23155663_20-05-2025_07_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23155673, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23155674, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23155675, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23155676, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23155677, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23155678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23155679, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23155680, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23155681, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23155682, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23155683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23155684, '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 = 23156379 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': 2902882, 'mtr_portfolio_id': 23156379, 'created_at': datetime.datetime(2025, 5, 20, 8, 2, 58), 'result': '0.0665541930337187', 'result_long': None, 'result_double': None}] Qualite : 0.0665541930337187 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23156379 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23156379_20-05-2025_08_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23156379 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_P23156379_20-05-2025_08_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23156415, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23156416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23156417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23156418, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23156419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23156420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23156421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23156422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23156423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23156424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23156425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23156426, 'pht': 3726}}" where mtr_portfolio_id = 23156379 and dashboard_run_id = 1829268 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`=23156379 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10719863, 0.0665541930337187, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23156379_20-05-2025_08_02_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23156415, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23156416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23156417, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23156418, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23156419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23156420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23156421, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23156422, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23156423, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23156424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23156425, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23156426, '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 = 23157241 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': 2903221, 'mtr_portfolio_id': 23157241, 'created_at': datetime.datetime(2025, 5, 20, 8, 11), 'result': '0.02417849007050482', 'result_long': None, 'result_double': None}] Qualite : 0.02417849007050482 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23157241 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23157241_20-05-2025_08_11_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23157241 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_P23157241_20-05-2025_08_11_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23157260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23157261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23157262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23157263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23157264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23157265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23157266, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23157267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23157268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23157269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23157270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23157271, 'pht': 3726}}" where mtr_portfolio_id = 23157241 and dashboard_run_id = 1829268 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`=23157241 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10719864, 0.02417849007050482, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23157241_20-05-2025_08_11_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 23157260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23157261, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23157262, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23157263, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23157264, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23157265, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23157266, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23157267, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23157268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23157269, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23157270, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23157271, '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 (23148156,23150574,23150983,23151453,23151856,23152505,23153069,23153614,23154854,23155663,23156379,23157241) result : ((1359697510,), (1359697516,), (1359697518,), (1359699306,), (1359699411,), (1359699691,), (1359699725,), (1359700270,), (1359702672,), (1359745594,), (1359745597,), (1359745627,), (1359745774,), (1359745776,), (1359745778,), (1359745803,), (1359745804,), (1359745805,), (1359745931,), (1359745971,), (1359745997,), (1359746335,), (1359746338,), (1359746342,), (1359746395,), (1359746439,), (1359746465,), (1359746888,), (1359746954,), (1359747065,), (1359747110,), (1359747158,), (1359747358,), (1359747500,), (1359747758,), (1359747761,), (1359747772,), (1359747773,), (1359747945,), (1359747966,), (1359747993,), (1359748017,), (1359748038,), (1359748064,), (1359748374,), (1359748399,), (1359748425,), (1359748482,), (1359748507,), (1359748620,), (1359748646,), (1359748672,), (1359748696,), (1359748777,), (1359748781,), (1359748784,), (1359748787,), (1359748791,), (1359748798,), (1359748953,), (1359748988,), (1359749030,), (1359749087,), (1359749495,), (1359749506,), (1359749520,), (1359749523,), (1359749527,), (1359749528,), (1359749661,), (1359749650,), (1359749653,), (1359749656,), (1359749659,), (1359749687,), (1359749712,), (1359749745,), (1359749792,), (1359750082,), (1359750107,), (1359750130,), (1359750155,), (1359750180,), (1359750223,), (1359750728,), (1359750778,), (1359750832,), (1359750881,), (1359750928,), (1359751116,), (1359751141,), (1359751165,), (1359751175,), (1359751525,), (1359751550,), (1359751585,), (1359751638,), (1359751685,), (1359751693,), (1359751878,), (1359751915,), (1359751951,), (1359751975,), (1359751995,), (1359752025,), (1359752032,), (1359752037,), (1359752042,), (1359752045,), (1359752050,), (1359752108,), (1359752110,), (1359752112,), (1359752114,), (1359752141,), (1359752144,), (1359752146,), (1359752148,), (1359752150,), (1359752152,), (1359752192,), (1359752194,), (1359752196,), (1359752198,), (1359752200,), (1359752202,), (1359752225,), (1359752227,), (1359752229,), (1359752231,), (1359752232,), (1359752254,), (1359752256,), (1359752258,), (1359752267,), (1359752275,), (1359752291,), (1359752297,), (1359752298,), (1359752301,), (1359752347,), (1359752424,), (1359752451,), (1359752454,), (1359752455,), (1359752457,), (1359752459,), (1359752461,), (1359752570,), (1359752580,), (1359752582,), (1359752596,), (1359752709,), (1359752728,), (1359752740,), (1359752748,), (1359752754,), (1359752755,), (1359752775,), (1359752777,), (1359752780,), (1359752782,), (1359752803,), (1359752808,), (1359752811,), (1359752812,), (1359752814,), (1359752829,), (1359752831,), (1359752832,), (1359752834,), (1359752837,), (1359752867,), (1359752872,), (1359752874,), (1359752876,), (1359752877,), (1359752924,), (1359752926,), (1359752934,), (1359752939,), (1359752959,), (1359752961,), (1359752963,), (1359752964,), (1359752965,), (1359752966,), (1359752981,), (1359752984,), (1359752993,), (1359752996,), (1359752998,), (1359753446,), (1359753459,), (1359753461,), (1359753464,), (1359753466,), (1359754036,), (1359753768,), (1359753833,), (1359753909,), (1359754483,), (1359754496,), (1359754584,), (1359754657,), (1359754709,), (1359754760,), (1359754782,), (1359754783,), (1359754789,), (1359754791,), (1359754799,), (1359754801,), (1359754804,), (1359754807,), (1359754810,), (1359754814,), (1359754820,), (1359754828,), (1359754853,), (1359754875,), (1359754884,), (1359754890,), (1359754893,), (1359754895,), (1359754904,), (1359754907,), (1359754913,), (1359754918,), (1359754921,), (1359754925,), (1359754931,), (1359754933,), (1359754934,), (1359754937,), (1359754940,), (1359754943,), (1359754954,), (1359754958,), (1359754962,), (1359754964,), (1359754966,), (1359754968,), (1359754976,), (1359754979,), (1359754982,), (1359754988,), (1359754991,), (1359754994,), (1359755001,), (1359755002,), (1359755006,), (1359755012,), (1359755017,), (1359755062,), (1359755076,), (1359755085,), (1359755087,), (1359755089,), (1359755094,), (1359755113,), (1359755116,), (1359755120,), (1359755123,), (1359755166,), (1359755171,), (1359755173,), (1359755176,), (1359755178,), (1359755180,), (1359755208,), (1359755211,), (1359755214,), (1359755217,), (1359755471,), (1359755499,), (1359755523,), (1359755547,), (1359755571,), (1359755594,), (1359755847,), (1359755886,), (1359755917,), (1359755946,), (1359755977,), (1359756161,), (1359756205,), (1359756286,), (1359756340,), (1359756395,), (1359756435,), (1359756806,), (1359756667,), (1359756711,), (1359756760,), (1359757225,), (1359757252,), (1359757284,), (1359757335,), (1359757382,), (1359757635,), (1359757638,), (1359757643,), (1359757647,), (1359757651,), (1359757678,), (1359757704,), (1359757731,), (1359757759,), (1359757784,), (1359757812,), (1359758063,), (1359758091,), (1359758127,), (1359758151,), (1359758297,), (1359758301,), (1359758303,), (1359758305,), (1359758308,), (1359758309,), (1359758321,), (1359758323,), (1359758354,), (1359758378,), (1359758672,), (1359758689,), (1359758709,), (1359758713,), (1359758715,), (1359758717,), (1359758757,), (1359758759,), (1359758767,), (1359758769,), (1359758771,), (1359758792,), (1359758795,), (1359758798,), (1359758800,), (1359758813,), (1359758815,), (1359758817,), (1359758819,), (1359758821,), (1359758823,), (1359758839,), (1359758841,), (1359758843,), (1359758845,), (1359758893,), (1359758895,), (1359758897,), (1359758899,), (1359758901,), (1359758902,), (1359758930,), (1359758932,), (1359758934,), (1359758936,), (1359758947,), (1359758953,), (1359758958,), (1359758960,), (1359758963,), (1359758966,), (1359759004,), (1359758997,), (1359758999,), (1359759001,), (1359759003,), (1359759020,), (1359759025,), (1359759027,), (1359759029,), (1359759030,), (1359759033,), (1359759049,), (1359759050,), (1359759052,), (1359759064,), (1359759066,), (1359759068,), (1359759070,), (1359759072,), (1359759074,), (1359759089,), (1359759092,), (1359759094,), (1359759096,), (1359759113,), (1359759116,), (1359759119,), (1359759121,), (1359759123,), (1359759130,), (1359759160,), (1359759167,), (1359759169,), (1359759175,), (1359759241,), (1359759245,), (1359759248,), (1359759251,), (1359759256,), (1359759304,), (1359759318,), (1359759326,), (1359759327,), (1359759329,), (1359759331,), (1359759334,), (1359759346,), (1359759348,), (1359759350,), (1359759352,), (1359759354,), (1359759355,), (1359759378,), (1359759385,), (1359759392,), (1359759394,), (1359759395,), (1359759408,), (1359759420,), (1359759427,), (1359759430,), (1359759432,), (1359759476,), (1359759513,), (1359759524,), (1359759526,), (1359759527,), (1359759576,), (1359759578,), (1359759580,), (1359759583,), (1359759588,), (1359759604,), (1359759607,), (1359759610,), (1359759612,), (1359759917,), (1359759810,), (1359759835,), (1359759867,), (1359759894,), (1359760184,), (1359760211,), (1359760238,), (1359760264,), (1359760464,), (1359760488,), (1359760519,), (1359760544,), (1359760554,), (1359760688,), (1359760713,), (1359760739,), (1359760763,), (1359760788,), (1359760857,), (1359760881,), (1359760905,), (1359760933,), (1359760951,), (1359760980,), (1359760983,), (1359760985,), (1359760987,), (1359760988,), (1359760990,), (1359761014,), (1359761036,), (1359761062,), (1359761089,), (1359761366,), (1359761392,), (1359761416,), (1359761440,), (1359761465,), (1359761489,), (1359761737,), (1359761762,), (1359761787,), (1359761816,), (1359761846,), (1359761871,), (1359762120,), (1359762122,), (1359762124,), (1359762126,), (1359762144,), (1359762146,), (1359762148,), (1359762150,), (1359762152,), (1359762153,), (1359762321,), (1359762557,), (1359762633,), (1359762658,), (1359762912,), (1359762921,), (1359762929,), (1359762931,), (1359762932,), (1359762939,), (1359763203,), (1359763254,), (1359763313,), (1359763365,), (1359763414,), (1359764008,), (1359765510,), (1359765518,), (1359765523,), (1359765527,), (1359765532,), (1359765592,), (1359765608,), (1359765622,), (1359765671,), (1359765675,), (1359765687,), (1359765691,), (1359765695,), (1359765699,), (1359765770,), (1359765774,), (1359765779,), (1359765784,), (1359765786,), (1359765790,), (1359765808,), (1359765811,), (1359765823,), (1359765876,), (1359765918,), (1359765930,), (1359765935,), (1359765939,), (1359765943,), (1359766143,), (1359766149,), (1359766154,), (1359766158,), (1359766260,), (1359766263,), (1359766268,), (1359766275,), (1359766283,), (1359766293,), (1359766434,), (1359766444,), (1359766457,), (1359766471,), (1359766499,), (1359766532,), (1359766555,), (1359766606,), (1359766611,), (1359766616,), (1359766684,), (1359766789,), (1359766834,), (1359766911,), (1359766933,), (1359766936,), (1359766939,), (1359766950,), (1359766954,), (1359766957,), (1359766961,), (1359766970,), (1359766973,), (1359766975,), (1359766978,), (1359766981,), (1359766984,), (1359767024,), (1359767029,), (1359767033,), (1359767083,), (1359767087,), (1359767091,), (1359767096,), (1359767098,), (1359767125,), (1359767133,), (1359767139,), (1359767144,), (1359767150,), (1359767223,), (1359767205,), (1359767209,), (1359767213,), (1359767217,), (1359767220,), (1359767245,), (1359767254,), (1359767266,), (1359767275,), (1359767310,), (1359767314,), (1359767317,), (1359767321,), (1359767323,), (1359767328,), (1359767434,), (1359767449,), (1359767475,), (1359767489,), (1359767585,), (1359767607,), (1359767629,), (1359767659,), (1359767663,), (1359767667,), (1359767672,), (1359767676,), (1359767679,), (1359767712,), (1359767717,), (1359767742,), (1359767778,), (1359768044,), (1359768072,), (1359768109,), (1359768510,), (1359768538,), (1359768564,), (1359768597,), (1359768628,), (1359768659,), (1359768930,), (1359768938,), (1359768944,), (1359768949,), (1359768978,), (1359768987,), (1359769024,), (1359769048,), (1359769074,), (1359769100,), (1359769358,), (1359769390,), (1359769425,), (1359769457,), (1359769474,), (1359769488,), (1359769551,), (1359769662,), (1359769694,), (1359769735,), (1359769761,), (1359769781,), (1359769785,), (1359769790,), (1359769794,), (1359769797,), (1359770053,), (1359770077,), (1359770104,), (1359770130,), (1359770145,), (1359770178,), (1359770171,), (1359770175,), (1359770229,), (1359770236,), (1359770242,), (1359770246,), (1359770249,), (1359770251,), (1359770369,), (1359770373,), (1359770379,), (1359770385,), (1359770408,), (1359770412,), (1359770416,), (1359770419,), (1359770421,), (1359770425,), (1359770495,), (1359770511,), (1359770515,), (1359770645,), (1359770673,), (1359770695,), (1359770699,), (1359770703,), (1359770708,), (1359770738,), (1359770744,), (1359770750,), (1359770754,), (1359770757,), (1359770761,), (1359770791,), (1359770794,), (1359770798,), (1359770802,), (1359770851,), (1359770866,), (1359770870,), (1359770873,), (1359770876,), (1359770880,), (1359770963,), (1359770966,), (1359770971,), (1359770976,), (1359770979,), (1359771000,), (1359771003,), (1359771007,), (1359771012,), (1359771046,), (1359771053,), (1359771060,), (1359771140,), (1359771152,), (1359772093,), (1359772777,), (1359772722,), (1359772746,), (1359773218,), (1359773244,), (1359773252,), (1359773257,), (1359773447,), (1359773451,), (1359773454,), (1359773517,), (1359773549,), (1359773567,), (1359773619,), (1359773654,), (1359773671,), (1359773677,), (1359773684,), (1359773688,), (1359773693,), (1359773697,), (1359773731,), (1359773733,), (1359773736,), (1359773739,), (1359773781,), (1359773784,), (1359773787,), (1359773791,), (1359773793,), (1359773796,), (1359773834,), (1359773838,), (1359773842,), (1359773845,), (1359773846,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'20052025': {'nb_upload': 35, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23157241]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1359773846, 1359773845, 1359773842, 1359773838, 1359773834, 1359773796, 1359773793, 1359773791, 1359773787, 1359773784, 1359773781, 1359773739, 1359773736, 1359773733, 1359773731, 1359773697, 1359773693, 1359773688, 1359773684, 1359773677, 1359773671] map_info['map_portfolio_photo'] : {23157241: [1359773846, 1359773845, 1359773842, 1359773838, 1359773834, 1359773796, 1359773793, 1359773791, 1359773787, 1359773784, 1359773781, 1359773739, 1359773736, 1359773733, 1359773731, 1359773697, 1359773693, 1359773688, 1359773684, 1359773677, 1359773671, 1359773654, 1359773619, 1359773567, 1359773549, 1359773517, 1359773454, 1359773451, 1359773447, 1359773257, 1359773252, 1359773244, 1359773218, 1359772746, 1359772722]} final : True mtd_id 4302 list_pids : [1359773846, 1359773845, 1359773842, 1359773838, 1359773834, 1359773796, 1359773793, 1359773791, 1359773787, 1359773784, 1359773781, 1359773739, 1359773736, 1359773733, 1359773731, 1359773697, 1359773693, 1359773688, 1359773684, 1359773677, 1359773671] Looping around the photos to save general results len do output : 1 /23157241Didn'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, '2903221') ('4302', '23157241', '1359773846', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773845', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773842', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773838', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773834', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773796', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773793', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773791', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773787', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773784', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773781', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773739', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773736', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773733', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773731', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773697', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773693', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773688', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773684', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773677', None, None, None, None, None, '2903221') ('4302', None, None, None, None, None, None, None, '2903221') ('4302', '23157241', '1359773671', None, None, None, None, None, '2903221') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 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, '23157241', 'None', None, None, None, None, '2903221'), ('4302', '23157241', '1359773846', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773845', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773842', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773838', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773834', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773796', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773793', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773791', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773787', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773784', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773781', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773739', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773736', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773733', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773731', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773697', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773693', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773688', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773684', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773677', None, None, None, None, None, '2903221'), ('4302', '23157241', '1359773671', None, None, None, None, None, '2903221')] time used for this insertion : 0.026849746704101562 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.258112907409668 time spend to save output : 0.02718496322631836 total time spend for step 5 : 1.2852978706359863 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 (2903221) 2.65user 1.60system 0:10.73elapsed 39%CPU (0avgtext+0avgdata 162272maxresident)k 82400inputs+11736outputs (308major+78577minor)pagefaults 0swaps