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 : 2881146 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 (3644306) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3644306) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26384208 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3644306'] with mtr_portfolio_ids : ['26384208'] and first list_photo_ids : [] new path : /proc/2881146/ Name: python3 Umask: 0002 State: R (running) Tgid: 2881146 Ngid: 0 Pid: 2881146 PPid: 2881145 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2881146 NSpid: 2881146 NSpgid: 2879269 NSsid: 2879269 VmPeak: 1107516 kB VmSize: 1107516 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99292 kB VmRSS: 99292 kB RssAnon: 60416 kB RssFile: 38876 kB RssShmem: 0 kB VmData: 866268 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 620 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 54 nonvoluntary_ctxt_switches: 99 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2881146', 'Ngid': '0', 'Pid': '2881146', 'PPid': '2881145', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2881146', 'NSpid': '2881146', 'NSpgid': '2879269', 'NSsid': '2879269', 'VmPeak': '1107516 kB', 'VmSize': '1107516 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99292 kB', 'VmRSS': '99292 kB', 'RssAnon': '60416 kB', 'RssFile': '38876 kB', 'RssShmem': '0 kB', 'VmData': '866268 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '620 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '54', 'nonvoluntary_ctxt_switches': '99'} ('datou_batch_current', '2881146', '1107516', '0', '1107516', '866268', '99292', b'', 'marlene', '3644306') 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 (26384208) 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 (3644306 ) ) 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 (26384208) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1380560959, 'portfolio_id': 26384208}, {'photo_id': 1380560957, 'portfolio_id': 26384208}, {'photo_id': 1380560955, 'portfolio_id': 26384208}, {'photo_id': 1380560953, 'portfolio_id': 26384208}, {'photo_id': 1380560951, 'portfolio_id': 26384208}, {'photo_id': 1380560733, 'portfolio_id': 26384208}, {'photo_id': 1380560732, 'portfolio_id': 26384208}, {'photo_id': 1380560731, 'portfolio_id': 26384208}, {'photo_id': 1380560722, 'portfolio_id': 26384208}, {'photo_id': 1380560720, 'portfolio_id': 26384208}, {'photo_id': 1380560719, 'portfolio_id': 26384208}, {'photo_id': 1380560718, 'portfolio_id': 26384208}, {'photo_id': 1380560717, 'portfolio_id': 26384208}, {'photo_id': 1380560716, 'portfolio_id': 26384208}, {'photo_id': 1380560696, 'portfolio_id': 26384208}, {'photo_id': 1380560695, 'portfolio_id': 26384208}, {'photo_id': 1380560694, 'portfolio_id': 26384208}, {'photo_id': 1380560693, 'portfolio_id': 26384208}, {'photo_id': 1380560661, 'portfolio_id': 26384208}, {'photo_id': 1380560660, 'portfolio_id': 26384208}, {'photo_id': 1380560659, 'portfolio_id': 26384208}, {'photo_id': 1380560658, 'portfolio_id': 26384208}, {'photo_id': 1380560635, 'portfolio_id': 26384208}, {'photo_id': 1380560634, 'portfolio_id': 26384208}, {'photo_id': 1380560633, 'portfolio_id': 26384208}, {'photo_id': 1380560632, 'portfolio_id': 26384208}, {'photo_id': 1380560631, 'portfolio_id': 26384208}, {'photo_id': 1380560630, 'portfolio_id': 26384208}, {'photo_id': 1380560591, 'portfolio_id': 26384208}, {'photo_id': 1380560590, 'portfolio_id': 26384208}, {'photo_id': 1380560589, 'portfolio_id': 26384208}, {'photo_id': 1380560567, 'portfolio_id': 26384208}, {'photo_id': 1380560566, 'portfolio_id': 26384208}, {'photo_id': 1380560565, 'portfolio_id': 26384208}, {'photo_id': 1380560564, 'portfolio_id': 26384208}, {'photo_id': 1380560541, 'portfolio_id': 26384208}, {'photo_id': 1380560540, 'portfolio_id': 26384208}, {'photo_id': 1380560539, 'portfolio_id': 26384208}, {'photo_id': 1380560513, 'portfolio_id': 26384208}, {'photo_id': 1380560512, 'portfolio_id': 26384208}, {'photo_id': 1380560511, 'portfolio_id': 26384208}, {'photo_id': 1380560510, 'portfolio_id': 26384208}, {'photo_id': 1380560496, 'portfolio_id': 26384208}, {'photo_id': 1380560495, 'portfolio_id': 26384208}, {'photo_id': 1380560494, 'portfolio_id': 26384208}, {'photo_id': 1380560493, 'portfolio_id': 26384208}, {'photo_id': 1380560492, 'portfolio_id': 26384208}, {'photo_id': 1380560468, 'portfolio_id': 26384208}, {'photo_id': 1380560466, 'portfolio_id': 26384208}, {'photo_id': 1380560465, 'portfolio_id': 26384208}, {'photo_id': 1380560464, 'portfolio_id': 26384208}, {'photo_id': 1380560463, 'portfolio_id': 26384208}, {'photo_id': 1380560431, 'portfolio_id': 26384208}, {'photo_id': 1380560430, 'portfolio_id': 26384208}, {'photo_id': 1380560429, 'portfolio_id': 26384208}, {'photo_id': 1380560425, 'portfolio_id': 26384208}, {'photo_id': 1380560424, 'portfolio_id': 26384208}, {'photo_id': 1380560423, 'portfolio_id': 26384208}, {'photo_id': 1380560422, 'portfolio_id': 26384208}, {'photo_id': 1380560421, 'portfolio_id': 26384208}, {'photo_id': 1380560420, 'portfolio_id': 26384208}, {'photo_id': 1380560394, 'portfolio_id': 26384208}, {'photo_id': 1380560393, 'portfolio_id': 26384208}, {'photo_id': 1380560392, 'portfolio_id': 26384208}] map_portfolio_id_photo_id: {26384208: [1380560959, 1380560957, 1380560955, 1380560953, 1380560951, 1380560733, 1380560732, 1380560731, 1380560722, 1380560720, 1380560719, 1380560718, 1380560717, 1380560716, 1380560696, 1380560695, 1380560694, 1380560693, 1380560661, 1380560660, 1380560659, 1380560658, 1380560635, 1380560634, 1380560633, 1380560632, 1380560631, 1380560630, 1380560591, 1380560590, 1380560589, 1380560567, 1380560566, 1380560565, 1380560564, 1380560541, 1380560540, 1380560539, 1380560513, 1380560512, 1380560511, 1380560510, 1380560496, 1380560495, 1380560494, 1380560493, 1380560492, 1380560468, 1380560466, 1380560465, 1380560464, 1380560463, 1380560431, 1380560430, 1380560429, 1380560425, 1380560424, 1380560423, 1380560422, 1380560421, 1380560420, 1380560394, 1380560393, 1380560392]} ##### 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.015801191329956055 #### 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 Mon Sep 1 06:58: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 (26384208) 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 : 26384208 get user id for portfolio 26384208 get sub ptf for main ptf 26384208, type 3726 and hashtags ['metal', 'environnement', 'mal_croppe', 'plastique', 'kraft', 'autre_refus', 'cartonnette', 'Teint_Dans_La_Masse', 'papier', 'flou', 'Carton_gris', 'Carton_brun'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26384208 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','environnement','mal_croppe','plastique','kraft','autre_refus','cartonnette','Teint_Dans_La_Masse','papier','flou','Carton_gris','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26384208 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','environnement','mal_croppe','plastique','kraft','autre_refus','cartonnette','Teint_Dans_La_Masse','papier','flou','Carton_gris','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 26384208, 'sub_port_id': 26384215, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17751965, 'last_updated_at': datetime.datetime(2025, 9, 1, 6, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 6, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 6, 47, 27)}, 'papier': {'main_port_id': 26384208, 'sub_port_id': 26384216, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17751966, 'last_updated_at': datetime.datetime(2025, 9, 1, 6, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 6, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 6, 47, 27)}, 'flou': {'main_port_id': 26384208, 'sub_port_id': 26384217, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17751967, 'last_updated_at': datetime.datetime(2025, 9, 1, 6, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 6, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 6, 47, 27)}, 'cartonnette': {'main_port_id': 26384208, 'sub_port_id': 26384218, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17751968, 'last_updated_at': datetime.datetime(2025, 9, 1, 6, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 6, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 6, 47, 27)}, 'kraft': {'main_port_id': 26384208, 'sub_port_id': 26384219, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17751969, 'last_updated_at': datetime.datetime(2025, 9, 1, 6, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 6, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 6, 47, 27)}, 'mal_croppe': {'main_port_id': 26384208, 'sub_port_id': 26384220, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17751970, 'last_updated_at': datetime.datetime(2025, 9, 1, 6, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 6, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 6, 47, 27)}, 'metal': {'main_port_id': 26384208, 'sub_port_id': 26384221, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17751971, 'last_updated_at': datetime.datetime(2025, 9, 1, 6, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 6, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 6, 47, 27)}, 'environnement': {'main_port_id': 26384208, 'sub_port_id': 26384222, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17751972, 'last_updated_at': datetime.datetime(2025, 9, 1, 6, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 6, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 6, 47, 27)}, 'Carton_brun': {'main_port_id': 26384208, 'sub_port_id': 26384223, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17751973, 'last_updated_at': datetime.datetime(2025, 9, 1, 6, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 6, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 6, 47, 27)}, 'plastique': {'main_port_id': 26384208, 'sub_port_id': 26384224, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17751974, 'last_updated_at': datetime.datetime(2025, 9, 1, 6, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 6, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 6, 47, 27)}, 'autre_refus': {'main_port_id': 26384208, 'sub_port_id': 26384225, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17751975, 'last_updated_at': datetime.datetime(2025, 9, 1, 6, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 6, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 6, 47, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 26384208, 'sub_port_id': 26384226, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17751976, 'last_updated_at': datetime.datetime(2025, 9, 1, 6, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 6, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 6, 47, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26384215 , 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=26384208 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 (26384215) result : ((1380560553,), (1380560560,), (1380560561,), (1380560629,), (1380560674,), (1380560675,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26384208) result : ((1380560392,), (1380560393,), (1380560394,), (1380560420,), (1380560421,), (1380560422,), (1380560423,), (1380560424,), (1380560425,), (1380560429,), (1380560430,), (1380560431,), (1380560463,), (1380560464,), (1380560465,), (1380560466,), (1380560468,), (1380560492,), (1380560493,), (1380560494,), (1380560495,), (1380560496,), (1380560510,), (1380560511,), (1380560512,), (1380560513,), (1380560539,), (1380560540,), (1380560541,), (1380560564,), (1380560565,), (1380560566,), (1380560567,), (1380560589,), (1380560590,), (1380560591,), (1380560630,), (1380560631,), (1380560632,), (1380560633,), (1380560634,), (1380560635,), (1380560658,), (1380560659,), (1380560660,), (1380560661,), (1380560693,), (1380560694,), (1380560695,), (1380560696,), (1380560716,), (1380560717,), (1380560718,), (1380560719,), (1380560720,), (1380560722,), (1380560731,), (1380560732,), (1380560733,), (1380560951,), (1380560953,), (1380560955,), (1380560957,), (1380560959,)) 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 26384216 , 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=26384208 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 (26384216) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26384208) result : ((1380560392,), (1380560393,), (1380560394,), (1380560420,), (1380560421,), (1380560422,), (1380560423,), (1380560424,), (1380560425,), (1380560429,), (1380560430,), (1380560431,), (1380560463,), (1380560464,), (1380560465,), (1380560466,), (1380560468,), (1380560492,), (1380560493,), (1380560494,), (1380560495,), (1380560496,), (1380560510,), (1380560511,), (1380560512,), (1380560513,), (1380560539,), (1380560540,), (1380560541,), (1380560564,), (1380560565,), (1380560566,), (1380560567,), (1380560589,), (1380560590,), (1380560591,), (1380560630,), (1380560631,), (1380560632,), (1380560633,), (1380560634,), (1380560635,), (1380560658,), (1380560659,), (1380560660,), (1380560661,), (1380560693,), (1380560694,), (1380560695,), (1380560696,), (1380560716,), (1380560717,), (1380560718,), (1380560719,), (1380560720,), (1380560722,), (1380560731,), (1380560732,), (1380560733,), (1380560951,), (1380560953,), (1380560955,), (1380560957,), (1380560959,)) 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 26384217 , 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=26384208 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 (26384217) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26384208) result : ((1380560392,), (1380560393,), (1380560394,), (1380560420,), (1380560421,), (1380560422,), (1380560423,), (1380560424,), (1380560425,), (1380560429,), (1380560430,), (1380560431,), (1380560463,), (1380560464,), (1380560465,), (1380560466,), (1380560468,), (1380560492,), (1380560493,), (1380560494,), (1380560495,), (1380560496,), (1380560510,), (1380560511,), (1380560512,), (1380560513,), (1380560539,), (1380560540,), (1380560541,), (1380560564,), (1380560565,), (1380560566,), (1380560567,), (1380560589,), (1380560590,), (1380560591,), (1380560630,), (1380560631,), (1380560632,), (1380560633,), (1380560634,), (1380560635,), (1380560658,), (1380560659,), (1380560660,), (1380560661,), (1380560693,), (1380560694,), (1380560695,), (1380560696,), (1380560716,), (1380560717,), (1380560718,), (1380560719,), (1380560720,), (1380560722,), (1380560731,), (1380560732,), (1380560733,), (1380560951,), (1380560953,), (1380560955,), (1380560957,), (1380560959,)) 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 26384218 , 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=26384208 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 (26384218) result : ((1380560554,), (1380560555,), (1380560562,), (1380560563,), (1380560676,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26384208) result : ((1380560392,), (1380560393,), (1380560394,), (1380560420,), (1380560421,), (1380560422,), (1380560423,), (1380560424,), (1380560425,), (1380560429,), (1380560430,), (1380560431,), (1380560463,), (1380560464,), (1380560465,), (1380560466,), (1380560468,), (1380560492,), (1380560493,), (1380560494,), (1380560495,), (1380560496,), (1380560510,), (1380560511,), (1380560512,), (1380560513,), (1380560539,), (1380560540,), (1380560541,), (1380560564,), (1380560565,), (1380560566,), (1380560567,), (1380560589,), (1380560590,), (1380560591,), (1380560630,), (1380560631,), (1380560632,), (1380560633,), (1380560634,), (1380560635,), (1380560658,), (1380560659,), (1380560660,), (1380560661,), (1380560693,), (1380560694,), (1380560695,), (1380560696,), (1380560716,), (1380560717,), (1380560718,), (1380560719,), (1380560720,), (1380560722,), (1380560731,), (1380560732,), (1380560733,), (1380560951,), (1380560953,), (1380560955,), (1380560957,), (1380560959,)) 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 26384219 , 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=26384208 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 (26384219) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26384208) result : ((1380560392,), (1380560393,), (1380560394,), (1380560420,), (1380560421,), (1380560422,), (1380560423,), (1380560424,), (1380560425,), (1380560429,), (1380560430,), (1380560431,), (1380560463,), (1380560464,), (1380560465,), (1380560466,), (1380560468,), (1380560492,), (1380560493,), (1380560494,), (1380560495,), (1380560496,), (1380560510,), (1380560511,), (1380560512,), (1380560513,), (1380560539,), (1380560540,), (1380560541,), (1380560564,), (1380560565,), (1380560566,), (1380560567,), (1380560589,), (1380560590,), (1380560591,), (1380560630,), (1380560631,), (1380560632,), (1380560633,), (1380560634,), (1380560635,), (1380560658,), (1380560659,), (1380560660,), (1380560661,), (1380560693,), (1380560694,), (1380560695,), (1380560696,), (1380560716,), (1380560717,), (1380560718,), (1380560719,), (1380560720,), (1380560722,), (1380560731,), (1380560732,), (1380560733,), (1380560951,), (1380560953,), (1380560955,), (1380560957,), (1380560959,)) 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 26384220 , 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=26384208 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 (26384220) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26384208) result : ((1380560392,), (1380560393,), (1380560394,), (1380560420,), (1380560421,), (1380560422,), (1380560423,), (1380560424,), (1380560425,), (1380560429,), (1380560430,), (1380560431,), (1380560463,), (1380560464,), (1380560465,), (1380560466,), (1380560468,), (1380560492,), (1380560493,), (1380560494,), (1380560495,), (1380560496,), (1380560510,), (1380560511,), (1380560512,), (1380560513,), (1380560539,), (1380560540,), (1380560541,), (1380560564,), (1380560565,), (1380560566,), (1380560567,), (1380560589,), (1380560590,), (1380560591,), (1380560630,), (1380560631,), (1380560632,), (1380560633,), (1380560634,), (1380560635,), (1380560658,), (1380560659,), (1380560660,), (1380560661,), (1380560693,), (1380560694,), (1380560695,), (1380560696,), (1380560716,), (1380560717,), (1380560718,), (1380560719,), (1380560720,), (1380560722,), (1380560731,), (1380560732,), (1380560733,), (1380560951,), (1380560953,), (1380560955,), (1380560957,), (1380560959,)) 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 26384221 , 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=26384208 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 (26384221) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26384208) result : ((1380560392,), (1380560393,), (1380560394,), (1380560420,), (1380560421,), (1380560422,), (1380560423,), (1380560424,), (1380560425,), (1380560429,), (1380560430,), (1380560431,), (1380560463,), (1380560464,), (1380560465,), (1380560466,), (1380560468,), (1380560492,), (1380560493,), (1380560494,), (1380560495,), (1380560496,), (1380560510,), (1380560511,), (1380560512,), (1380560513,), (1380560539,), (1380560540,), (1380560541,), (1380560564,), (1380560565,), (1380560566,), (1380560567,), (1380560589,), (1380560590,), (1380560591,), (1380560630,), (1380560631,), (1380560632,), (1380560633,), (1380560634,), (1380560635,), (1380560658,), (1380560659,), (1380560660,), (1380560661,), (1380560693,), (1380560694,), (1380560695,), (1380560696,), (1380560716,), (1380560717,), (1380560718,), (1380560719,), (1380560720,), (1380560722,), (1380560731,), (1380560732,), (1380560733,), (1380560951,), (1380560953,), (1380560955,), (1380560957,), (1380560959,)) 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 26384222 , 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=26384208 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 (26384222) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26384208) result : ((1380560392,), (1380560393,), (1380560394,), (1380560420,), (1380560421,), (1380560422,), (1380560423,), (1380560424,), (1380560425,), (1380560429,), (1380560430,), (1380560431,), (1380560463,), (1380560464,), (1380560465,), (1380560466,), (1380560468,), (1380560492,), (1380560493,), (1380560494,), (1380560495,), (1380560496,), (1380560510,), (1380560511,), (1380560512,), (1380560513,), (1380560539,), (1380560540,), (1380560541,), (1380560564,), (1380560565,), (1380560566,), (1380560567,), (1380560589,), (1380560590,), (1380560591,), (1380560630,), (1380560631,), (1380560632,), (1380560633,), (1380560634,), (1380560635,), (1380560658,), (1380560659,), (1380560660,), (1380560661,), (1380560693,), (1380560694,), (1380560695,), (1380560696,), (1380560716,), (1380560717,), (1380560718,), (1380560719,), (1380560720,), (1380560722,), (1380560731,), (1380560732,), (1380560733,), (1380560951,), (1380560953,), (1380560955,), (1380560957,), (1380560959,)) 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 26384223 , 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=26384208 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 (26384223) result : ((1380560804,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26384208) result : ((1380560392,), (1380560393,), (1380560394,), (1380560420,), (1380560421,), (1380560422,), (1380560423,), (1380560424,), (1380560425,), (1380560429,), (1380560430,), (1380560431,), (1380560463,), (1380560464,), (1380560465,), (1380560466,), (1380560468,), (1380560492,), (1380560493,), (1380560494,), (1380560495,), (1380560496,), (1380560510,), (1380560511,), (1380560512,), (1380560513,), (1380560539,), (1380560540,), (1380560541,), (1380560564,), (1380560565,), (1380560566,), (1380560567,), (1380560589,), (1380560590,), (1380560591,), (1380560630,), (1380560631,), (1380560632,), (1380560633,), (1380560634,), (1380560635,), (1380560658,), (1380560659,), (1380560660,), (1380560661,), (1380560693,), (1380560694,), (1380560695,), (1380560696,), (1380560716,), (1380560717,), (1380560718,), (1380560719,), (1380560720,), (1380560722,), (1380560731,), (1380560732,), (1380560733,), (1380560951,), (1380560953,), (1380560955,), (1380560957,), (1380560959,)) 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 26384224 , 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=26384208 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 (26384224) result : ((1380560460,), (1380560461,), (1380560618,), (1380560619,), (1380560621,), (1380560622,), (1380560678,), (1380560679,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26384208) result : ((1380560392,), (1380560393,), (1380560394,), (1380560420,), (1380560421,), (1380560422,), (1380560423,), (1380560424,), (1380560425,), (1380560429,), (1380560430,), (1380560431,), (1380560463,), (1380560464,), (1380560465,), (1380560466,), (1380560468,), (1380560492,), (1380560493,), (1380560494,), (1380560495,), (1380560496,), (1380560510,), (1380560511,), (1380560512,), (1380560513,), (1380560539,), (1380560540,), (1380560541,), (1380560564,), (1380560565,), (1380560566,), (1380560567,), (1380560589,), (1380560590,), (1380560591,), (1380560630,), (1380560631,), (1380560632,), (1380560633,), (1380560634,), (1380560635,), (1380560658,), (1380560659,), (1380560660,), (1380560661,), (1380560693,), (1380560694,), (1380560695,), (1380560696,), (1380560716,), (1380560717,), (1380560718,), (1380560719,), (1380560720,), (1380560722,), (1380560731,), (1380560732,), (1380560733,), (1380560951,), (1380560953,), (1380560955,), (1380560957,), (1380560959,)) 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 26384225 , 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=26384208 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 (26384225) result : ((1380560459,), (1380560558,), (1380560559,), (1380560625,), (1380560627,), (1380560628,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26384208) result : ((1380560392,), (1380560393,), (1380560394,), (1380560420,), (1380560421,), (1380560422,), (1380560423,), (1380560424,), (1380560425,), (1380560429,), (1380560430,), (1380560431,), (1380560463,), (1380560464,), (1380560465,), (1380560466,), (1380560468,), (1380560492,), (1380560493,), (1380560494,), (1380560495,), (1380560496,), (1380560510,), (1380560511,), (1380560512,), (1380560513,), (1380560539,), (1380560540,), (1380560541,), (1380560564,), (1380560565,), (1380560566,), (1380560567,), (1380560589,), (1380560590,), (1380560591,), (1380560630,), (1380560631,), (1380560632,), (1380560633,), (1380560634,), (1380560635,), (1380560658,), (1380560659,), (1380560660,), (1380560661,), (1380560693,), (1380560694,), (1380560695,), (1380560696,), (1380560716,), (1380560717,), (1380560718,), (1380560719,), (1380560720,), (1380560722,), (1380560731,), (1380560732,), (1380560733,), (1380560951,), (1380560953,), (1380560955,), (1380560957,), (1380560959,)) 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 26384226 , 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=26384208 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 (26384226) result : ((1380560457,), (1380560458,), (1380560556,), (1380560557,), (1380560613,), (1380560614,), (1380560615,), (1380560616,), (1380560617,), (1380560670,), (1380560671,), (1380560672,), (1380560673,), (1380560787,), (1380560789,), (1380560791,), (1380560793,), (1380560795,), (1380560797,), (1380560852,), (1380560854,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26384208) result : ((1380560392,), (1380560393,), (1380560394,), (1380560420,), (1380560421,), (1380560422,), (1380560423,), (1380560424,), (1380560425,), (1380560429,), (1380560430,), (1380560431,), (1380560463,), (1380560464,), (1380560465,), (1380560466,), (1380560468,), (1380560492,), (1380560493,), (1380560494,), (1380560495,), (1380560496,), (1380560510,), (1380560511,), (1380560512,), (1380560513,), (1380560539,), (1380560540,), (1380560541,), (1380560564,), (1380560565,), (1380560566,), (1380560567,), (1380560589,), (1380560590,), (1380560591,), (1380560630,), (1380560631,), (1380560632,), (1380560633,), (1380560634,), (1380560635,), (1380560658,), (1380560659,), (1380560660,), (1380560661,), (1380560693,), (1380560694,), (1380560695,), (1380560696,), (1380560716,), (1380560717,), (1380560718,), (1380560719,), (1380560720,), (1380560722,), (1380560731,), (1380560732,), (1380560733,), (1380560951,), (1380560953,), (1380560955,), (1380560957,), (1380560959,)) 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`=26384208 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','environnement','mal_croppe','plastique','kraft','autre_refus','cartonnette','Teint_Dans_La_Masse','papier','flou','Carton_gris','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26384208 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','environnement','mal_croppe','plastique','kraft','autre_refus','cartonnette','Teint_Dans_La_Masse','papier','flou','Carton_gris','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 26384208, 'sub_port_id': 26384227, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17751977, 'last_updated_at': datetime.datetime(2025, 9, 1, 6, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 6, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 6, 47, 29)}, 'papier': {'main_port_id': 26384208, 'sub_port_id': 26384228, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17751978, 'last_updated_at': datetime.datetime(2025, 9, 1, 6, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 6, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 6, 47, 29)}, 'flou': {'main_port_id': 26384208, 'sub_port_id': 26384229, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17751979, 'last_updated_at': datetime.datetime(2025, 9, 1, 6, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 6, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 6, 47, 29)}, 'cartonnette': {'main_port_id': 26384208, 'sub_port_id': 26384230, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17751980, 'last_updated_at': datetime.datetime(2025, 9, 1, 6, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 6, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 6, 47, 29)}, 'kraft': {'main_port_id': 26384208, 'sub_port_id': 26384231, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17751981, 'last_updated_at': datetime.datetime(2025, 9, 1, 6, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 6, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 6, 47, 29)}, 'mal_croppe': {'main_port_id': 26384208, 'sub_port_id': 26384232, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17751982, 'last_updated_at': datetime.datetime(2025, 9, 1, 6, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 6, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 6, 47, 29)}, 'metal': {'main_port_id': 26384208, 'sub_port_id': 26384233, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17751983, 'last_updated_at': datetime.datetime(2025, 9, 1, 6, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 6, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 6, 47, 29)}, 'environnement': {'main_port_id': 26384208, 'sub_port_id': 26384234, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17751984, 'last_updated_at': datetime.datetime(2025, 9, 1, 6, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 6, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 6, 47, 29)}, 'Carton_brun': {'main_port_id': 26384208, 'sub_port_id': 26384235, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17751985, 'last_updated_at': datetime.datetime(2025, 9, 1, 6, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 6, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 6, 47, 29)}, 'plastique': {'main_port_id': 26384208, 'sub_port_id': 26384236, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17751986, 'last_updated_at': datetime.datetime(2025, 9, 1, 6, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 6, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 6, 47, 29)}, 'autre_refus': {'main_port_id': 26384208, 'sub_port_id': 26384237, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17751987, 'last_updated_at': datetime.datetime(2025, 9, 1, 6, 47, 29), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 6, 47, 29), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 6, 47, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 26384208, 'sub_port_id': 26384238, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17751988, 'last_updated_at': datetime.datetime(2025, 9, 1, 6, 56, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 1, 6, 56, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 1, 6, 47, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26384227,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26384215 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26384228,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26384216 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26384229,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26384217 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26384230,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26384218 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26384231,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26384219 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26384232,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26384220 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26384233,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26384221 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26384234,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26384222 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26384235,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26384223 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26384236,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26384224 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26384237,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26384225 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26384238,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26384226 lien utilise dans velours : https://marlene.fotonower.com/velours/26384227,26384228,26384229,26384230,26384231,26384232,26384233,26384234,26384235,26384236,26384237,26384238?tags=Carton_gris,papier,flou,cartonnette,kraft,mal_croppe,metal,environnement,Carton_brun,plastique,autre_refus,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26384208]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1380560959, 1380560957, 1380560955, 1380560953, 1380560951, 1380560733, 1380560732, 1380560731, 1380560722, 1380560720, 1380560719, 1380560718, 1380560717, 1380560716] map_info['map_portfolio_photo'] : {26384208: [1380560959, 1380560957, 1380560955, 1380560953, 1380560951, 1380560733, 1380560732, 1380560731, 1380560722, 1380560720, 1380560719, 1380560718, 1380560717, 1380560716, 1380560696, 1380560695, 1380560694, 1380560693, 1380560661, 1380560660, 1380560659, 1380560658, 1380560635, 1380560634, 1380560633, 1380560632, 1380560631, 1380560630, 1380560591, 1380560590, 1380560589, 1380560567, 1380560566, 1380560565, 1380560564, 1380560541, 1380560540, 1380560539, 1380560513, 1380560512, 1380560511, 1380560510, 1380560496, 1380560495, 1380560494, 1380560493, 1380560492, 1380560468, 1380560466, 1380560465, 1380560464, 1380560463, 1380560431, 1380560430, 1380560429, 1380560425, 1380560424, 1380560423, 1380560422, 1380560421, 1380560420, 1380560394, 1380560393, 1380560392]} final : False mtd_id 4302 list_pids : [1380560959, 1380560957, 1380560955, 1380560953, 1380560951, 1380560733, 1380560732, 1380560731, 1380560722, 1380560720, 1380560719, 1380560718, 1380560717, 1380560716] Looping around the photos to save general results len do output : 1 /26384208. 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, '3644306') ('4302', '26384208', '1380560959', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560957', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560955', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560953', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560951', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560733', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560732', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560731', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560722', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560720', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560719', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560718', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560717', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560716', None, None, None, None, None, '3644306') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '26384208', "{'Carton_gris': 26384215, 'papier': 26384216, 'flou': 26384217, 'cartonnette': 26384218, 'kraft': 26384219, 'mal_croppe': 26384220, 'metal': 26384221, 'environnement': 26384222, 'Carton_brun': 26384223, 'plastique': 26384224, 'autre_refus': 26384225, 'Teint_Dans_La_Masse': 26384226}", None, None, None, None, '3644306'), ('4302', '26384208', '1380560959', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560957', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560955', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560953', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560951', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560733', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560732', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560731', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560722', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560720', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560719', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560718', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560717', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560716', None, None, None, None, None, '3644306')] time used for this insertion : 0.021921873092651367 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5667920112609863 time spend to save output : 0.023172616958618164 total time spend for step 1 : 1.5899646282196045 step2:final Mon Sep 1 06:58:59 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 (26384208) 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 26384208 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1380560394,1380560431,1380560393,1380560430,1380560392,1380560429,1380560425,1380560424,1380560423,1380560422,1380560421,1380560420,1380560468,1380560466,1380560465,1380560464,1380560463,1380560496,1380560495,1380560494,1380560493,1380560492,1380560513,1380560512,1380560511,1380560510,1380560541,1380560540,1380560539,1380560567,1380560566,1380560565,1380560564,1380560591,1380560590,1380560589,1380560635,1380560634,1380560633,1380560632,1380560631,1380560630,1380560661,1380560660,1380560659,1380560658,1380560733,1380560696,1380560695,1380560732,1380560694,1380560731,1380560722,1380560693,1380560720,1380560719,1380560718,1380560717,1380560716,1380560959,1380560957,1380560955,1380560953,1380560951); 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([26384208]) Inside saveOutput : final : False verbose : True original output for save of step final : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ('0.06222031674410402',), 1380560951: ('0.06222031674410402',), 1380560733: ('0.06222031674410402',), 1380560732: ('0.06222031674410402',), 1380560731: ('0.06222031674410402',), 1380560722: ('0.06222031674410402',), 1380560720: ('0.06222031674410402',), 1380560719: ('0.06222031674410402',), 1380560718: ('0.06222031674410402',), 1380560717: ('0.06222031674410402',), 1380560716: ('0.06222031674410402',)} new output for save of step final : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ('0.06222031674410402',), 1380560951: ('0.06222031674410402',), 1380560733: ('0.06222031674410402',), 1380560732: ('0.06222031674410402',), 1380560731: ('0.06222031674410402',), 1380560722: ('0.06222031674410402',), 1380560720: ('0.06222031674410402',), 1380560719: ('0.06222031674410402',), 1380560718: ('0.06222031674410402',), 1380560717: ('0.06222031674410402',), 1380560716: ('0.06222031674410402',)} [1380560959, 1380560957, 1380560955, 1380560953, 1380560951, 1380560733, 1380560732, 1380560731, 1380560722, 1380560720, 1380560719, 1380560718, 1380560717, 1380560716] map_info['map_portfolio_photo'] : {26384208: [1380560959, 1380560957, 1380560955, 1380560953, 1380560951, 1380560733, 1380560732, 1380560731, 1380560722, 1380560720, 1380560719, 1380560718, 1380560717, 1380560716, 1380560696, 1380560695, 1380560694, 1380560693, 1380560661, 1380560660, 1380560659, 1380560658, 1380560635, 1380560634, 1380560633, 1380560632, 1380560631, 1380560630, 1380560591, 1380560590, 1380560589, 1380560567, 1380560566, 1380560565, 1380560564, 1380560541, 1380560540, 1380560539, 1380560513, 1380560512, 1380560511, 1380560510, 1380560496, 1380560495, 1380560494, 1380560493, 1380560492, 1380560468, 1380560466, 1380560465, 1380560464, 1380560463, 1380560431, 1380560430, 1380560429, 1380560425, 1380560424, 1380560423, 1380560422, 1380560421, 1380560420, 1380560394, 1380560393, 1380560392]} final : False mtd_id 4302 list_pids : [1380560959, 1380560957, 1380560955, 1380560953, 1380560951, 1380560733, 1380560732, 1380560731, 1380560722, 1380560720, 1380560719, 1380560718, 1380560717, 1380560716] Looping around the photos to save general results len do output : 14 /1380560959.Didn't retrieve data . /1380560957.Didn't retrieve data . /1380560955.Didn't retrieve data . /1380560953.Didn't retrieve data . /1380560951.Didn't retrieve data . /1380560733.Didn't retrieve data . /1380560732.Didn't retrieve data . /1380560731.Didn't retrieve data . /1380560722.Didn't retrieve data . /1380560720.Didn't retrieve data . /1380560719.Didn't retrieve data . /1380560718.Didn't retrieve data . /1380560717.Didn't retrieve data . /1380560716.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, '3644306') ('4302', '26384208', '1380560959', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560957', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560955', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560953', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560951', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560733', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560732', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560731', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560722', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560720', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560719', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560718', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560717', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560716', None, None, None, None, None, '3644306') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '26384208', '1380560959', '0.06222031674410402', None, None, None, None, '3644306'), ('4302', '26384208', '1380560957', '0.06222031674410402', None, None, None, None, '3644306'), ('4302', '26384208', '1380560955', '0.06222031674410402', None, None, None, None, '3644306'), ('4302', '26384208', '1380560953', '0.06222031674410402', None, None, None, None, '3644306'), ('4302', '26384208', '1380560951', '0.06222031674410402', None, None, None, None, '3644306'), ('4302', '26384208', '1380560733', '0.06222031674410402', None, None, None, None, '3644306'), ('4302', '26384208', '1380560732', '0.06222031674410402', None, None, None, None, '3644306'), ('4302', '26384208', '1380560731', '0.06222031674410402', None, None, None, None, '3644306'), ('4302', '26384208', '1380560722', '0.06222031674410402', None, None, None, None, '3644306'), ('4302', '26384208', '1380560720', '0.06222031674410402', None, None, None, None, '3644306'), ('4302', '26384208', '1380560719', '0.06222031674410402', None, None, None, None, '3644306'), ('4302', '26384208', '1380560718', '0.06222031674410402', None, None, None, None, '3644306'), ('4302', '26384208', '1380560717', '0.06222031674410402', None, None, None, None, '3644306'), ('4302', '26384208', '1380560716', '0.06222031674410402', None, None, None, None, '3644306')] time used for this insertion : 0.021326065063476562 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0730750560760498 time spend to save output : 0.021952152252197266 total time spend for step 2 : 0.09502720832824707 step3:velours_tree Mon Sep 1 06:58:59 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 : {26384208: [{'Carton_gris': 26384215, 'papier': 26384216, 'flou': 26384217, 'cartonnette': 26384218, 'kraft': 26384219, 'mal_croppe': 26384220, 'metal': 26384221, 'environnement': 26384222, 'Carton_brun': 26384223, 'plastique': 26384224, 'autre_refus': 26384225, 'Teint_Dans_La_Masse': 26384226}]} input_args_next_step : {26384208: ()} output_args : {26384208: [{'Carton_gris': 26384215, 'papier': 26384216, 'flou': 26384217, 'cartonnette': 26384218, 'kraft': 26384219, 'mal_croppe': 26384220, 'metal': 26384221, 'environnement': 26384222, 'Carton_brun': 26384223, 'plastique': 26384224, 'autre_refus': 26384225, 'Teint_Dans_La_Masse': 26384226}]} args : 26384208 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 : ({'Carton_gris': 26384215, 'papier': 26384216, 'flou': 26384217, 'cartonnette': 26384218, 'kraft': 26384219, 'mal_croppe': 26384220, 'metal': 26384221, 'environnement': 26384222, 'Carton_brun': 26384223, 'plastique': 26384224, 'autre_refus': 26384225, 'Teint_Dans_La_Masse': 26384226},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26384208) 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([26384208]) 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.2745497226715088 time spend to save output : 3.981590270996094e-05 total time spend for step 3 : 0.27458953857421875 step4:send_mail_cod Mon Sep 1 06:59: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 ! complete output_args for input 2 : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ('0.06222031674410402',), 1380560951: ('0.06222031674410402',), 1380560733: ('0.06222031674410402',), 1380560732: ('0.06222031674410402',), 1380560731: ('0.06222031674410402',), 1380560722: ('0.06222031674410402',), 1380560720: ('0.06222031674410402',), 1380560719: ('0.06222031674410402',), 1380560718: ('0.06222031674410402',), 1380560717: ('0.06222031674410402',), 1380560716: ('0.06222031674410402',)} input_args_next_step : {1380560959: ()} output_args : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ('0.06222031674410402',), 1380560951: ('0.06222031674410402',), 1380560733: ('0.06222031674410402',), 1380560732: ('0.06222031674410402',), 1380560731: ('0.06222031674410402',), 1380560722: ('0.06222031674410402',), 1380560720: ('0.06222031674410402',), 1380560719: ('0.06222031674410402',), 1380560718: ('0.06222031674410402',), 1380560717: ('0.06222031674410402',), 1380560716: ('0.06222031674410402',)} args : 1380560959 depend.output_id : 0 input_args_next_step : {1380560959: ('0.06222031674410402',), 1380560957: ()} output_args : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ('0.06222031674410402',), 1380560951: ('0.06222031674410402',), 1380560733: ('0.06222031674410402',), 1380560732: ('0.06222031674410402',), 1380560731: ('0.06222031674410402',), 1380560722: ('0.06222031674410402',), 1380560720: ('0.06222031674410402',), 1380560719: ('0.06222031674410402',), 1380560718: ('0.06222031674410402',), 1380560717: ('0.06222031674410402',), 1380560716: ('0.06222031674410402',)} args : 1380560957 depend.output_id : 0 input_args_next_step : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ()} output_args : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ('0.06222031674410402',), 1380560951: ('0.06222031674410402',), 1380560733: ('0.06222031674410402',), 1380560732: ('0.06222031674410402',), 1380560731: ('0.06222031674410402',), 1380560722: ('0.06222031674410402',), 1380560720: ('0.06222031674410402',), 1380560719: ('0.06222031674410402',), 1380560718: ('0.06222031674410402',), 1380560717: ('0.06222031674410402',), 1380560716: ('0.06222031674410402',)} args : 1380560955 depend.output_id : 0 input_args_next_step : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ()} output_args : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ('0.06222031674410402',), 1380560951: ('0.06222031674410402',), 1380560733: ('0.06222031674410402',), 1380560732: ('0.06222031674410402',), 1380560731: ('0.06222031674410402',), 1380560722: ('0.06222031674410402',), 1380560720: ('0.06222031674410402',), 1380560719: ('0.06222031674410402',), 1380560718: ('0.06222031674410402',), 1380560717: ('0.06222031674410402',), 1380560716: ('0.06222031674410402',)} args : 1380560953 depend.output_id : 0 input_args_next_step : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ('0.06222031674410402',), 1380560951: ()} output_args : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ('0.06222031674410402',), 1380560951: ('0.06222031674410402',), 1380560733: ('0.06222031674410402',), 1380560732: ('0.06222031674410402',), 1380560731: ('0.06222031674410402',), 1380560722: ('0.06222031674410402',), 1380560720: ('0.06222031674410402',), 1380560719: ('0.06222031674410402',), 1380560718: ('0.06222031674410402',), 1380560717: ('0.06222031674410402',), 1380560716: ('0.06222031674410402',)} args : 1380560951 depend.output_id : 0 input_args_next_step : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ('0.06222031674410402',), 1380560951: ('0.06222031674410402',), 1380560733: ()} output_args : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ('0.06222031674410402',), 1380560951: ('0.06222031674410402',), 1380560733: ('0.06222031674410402',), 1380560732: ('0.06222031674410402',), 1380560731: ('0.06222031674410402',), 1380560722: ('0.06222031674410402',), 1380560720: ('0.06222031674410402',), 1380560719: ('0.06222031674410402',), 1380560718: ('0.06222031674410402',), 1380560717: ('0.06222031674410402',), 1380560716: ('0.06222031674410402',)} args : 1380560733 depend.output_id : 0 input_args_next_step : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ('0.06222031674410402',), 1380560951: ('0.06222031674410402',), 1380560733: ('0.06222031674410402',), 1380560732: ()} output_args : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ('0.06222031674410402',), 1380560951: ('0.06222031674410402',), 1380560733: ('0.06222031674410402',), 1380560732: ('0.06222031674410402',), 1380560731: ('0.06222031674410402',), 1380560722: ('0.06222031674410402',), 1380560720: ('0.06222031674410402',), 1380560719: ('0.06222031674410402',), 1380560718: ('0.06222031674410402',), 1380560717: ('0.06222031674410402',), 1380560716: ('0.06222031674410402',)} args : 1380560732 depend.output_id : 0 input_args_next_step : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ('0.06222031674410402',), 1380560951: ('0.06222031674410402',), 1380560733: ('0.06222031674410402',), 1380560732: ('0.06222031674410402',), 1380560731: ()} output_args : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ('0.06222031674410402',), 1380560951: ('0.06222031674410402',), 1380560733: ('0.06222031674410402',), 1380560732: ('0.06222031674410402',), 1380560731: ('0.06222031674410402',), 1380560722: ('0.06222031674410402',), 1380560720: ('0.06222031674410402',), 1380560719: ('0.06222031674410402',), 1380560718: ('0.06222031674410402',), 1380560717: ('0.06222031674410402',), 1380560716: ('0.06222031674410402',)} args : 1380560731 depend.output_id : 0 input_args_next_step : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ('0.06222031674410402',), 1380560951: ('0.06222031674410402',), 1380560733: ('0.06222031674410402',), 1380560732: ('0.06222031674410402',), 1380560731: ('0.06222031674410402',), 1380560722: ()} output_args : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ('0.06222031674410402',), 1380560951: ('0.06222031674410402',), 1380560733: ('0.06222031674410402',), 1380560732: ('0.06222031674410402',), 1380560731: ('0.06222031674410402',), 1380560722: ('0.06222031674410402',), 1380560720: ('0.06222031674410402',), 1380560719: ('0.06222031674410402',), 1380560718: ('0.06222031674410402',), 1380560717: ('0.06222031674410402',), 1380560716: ('0.06222031674410402',)} args : 1380560722 depend.output_id : 0 input_args_next_step : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ('0.06222031674410402',), 1380560951: ('0.06222031674410402',), 1380560733: ('0.06222031674410402',), 1380560732: ('0.06222031674410402',), 1380560731: ('0.06222031674410402',), 1380560722: ('0.06222031674410402',), 1380560720: ()} output_args : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ('0.06222031674410402',), 1380560951: ('0.06222031674410402',), 1380560733: ('0.06222031674410402',), 1380560732: ('0.06222031674410402',), 1380560731: ('0.06222031674410402',), 1380560722: ('0.06222031674410402',), 1380560720: ('0.06222031674410402',), 1380560719: ('0.06222031674410402',), 1380560718: ('0.06222031674410402',), 1380560717: ('0.06222031674410402',), 1380560716: ('0.06222031674410402',)} args : 1380560720 depend.output_id : 0 input_args_next_step : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ('0.06222031674410402',), 1380560951: ('0.06222031674410402',), 1380560733: ('0.06222031674410402',), 1380560732: ('0.06222031674410402',), 1380560731: ('0.06222031674410402',), 1380560722: ('0.06222031674410402',), 1380560720: ('0.06222031674410402',), 1380560719: ()} output_args : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ('0.06222031674410402',), 1380560951: ('0.06222031674410402',), 1380560733: ('0.06222031674410402',), 1380560732: ('0.06222031674410402',), 1380560731: ('0.06222031674410402',), 1380560722: ('0.06222031674410402',), 1380560720: ('0.06222031674410402',), 1380560719: ('0.06222031674410402',), 1380560718: ('0.06222031674410402',), 1380560717: ('0.06222031674410402',), 1380560716: ('0.06222031674410402',)} args : 1380560719 depend.output_id : 0 input_args_next_step : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ('0.06222031674410402',), 1380560951: ('0.06222031674410402',), 1380560733: ('0.06222031674410402',), 1380560732: ('0.06222031674410402',), 1380560731: ('0.06222031674410402',), 1380560722: ('0.06222031674410402',), 1380560720: ('0.06222031674410402',), 1380560719: ('0.06222031674410402',), 1380560718: ()} output_args : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ('0.06222031674410402',), 1380560951: ('0.06222031674410402',), 1380560733: ('0.06222031674410402',), 1380560732: ('0.06222031674410402',), 1380560731: ('0.06222031674410402',), 1380560722: ('0.06222031674410402',), 1380560720: ('0.06222031674410402',), 1380560719: ('0.06222031674410402',), 1380560718: ('0.06222031674410402',), 1380560717: ('0.06222031674410402',), 1380560716: ('0.06222031674410402',)} args : 1380560718 depend.output_id : 0 input_args_next_step : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ('0.06222031674410402',), 1380560951: ('0.06222031674410402',), 1380560733: ('0.06222031674410402',), 1380560732: ('0.06222031674410402',), 1380560731: ('0.06222031674410402',), 1380560722: ('0.06222031674410402',), 1380560720: ('0.06222031674410402',), 1380560719: ('0.06222031674410402',), 1380560718: ('0.06222031674410402',), 1380560717: ()} output_args : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ('0.06222031674410402',), 1380560951: ('0.06222031674410402',), 1380560733: ('0.06222031674410402',), 1380560732: ('0.06222031674410402',), 1380560731: ('0.06222031674410402',), 1380560722: ('0.06222031674410402',), 1380560720: ('0.06222031674410402',), 1380560719: ('0.06222031674410402',), 1380560718: ('0.06222031674410402',), 1380560717: ('0.06222031674410402',), 1380560716: ('0.06222031674410402',)} args : 1380560717 depend.output_id : 0 input_args_next_step : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ('0.06222031674410402',), 1380560951: ('0.06222031674410402',), 1380560733: ('0.06222031674410402',), 1380560732: ('0.06222031674410402',), 1380560731: ('0.06222031674410402',), 1380560722: ('0.06222031674410402',), 1380560720: ('0.06222031674410402',), 1380560719: ('0.06222031674410402',), 1380560718: ('0.06222031674410402',), 1380560717: ('0.06222031674410402',), 1380560716: ()} output_args : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ('0.06222031674410402',), 1380560951: ('0.06222031674410402',), 1380560733: ('0.06222031674410402',), 1380560732: ('0.06222031674410402',), 1380560731: ('0.06222031674410402',), 1380560722: ('0.06222031674410402',), 1380560720: ('0.06222031674410402',), 1380560719: ('0.06222031674410402',), 1380560718: ('0.06222031674410402',), 1380560717: ('0.06222031674410402',), 1380560716: ('0.06222031674410402',)} args : 1380560716 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 : {26384208: [{'Carton_gris': 26384215, 'papier': 26384216, 'flou': 26384217, 'cartonnette': 26384218, 'kraft': 26384219, 'mal_croppe': 26384220, 'metal': 26384221, 'environnement': 26384222, 'Carton_brun': 26384223, 'plastique': 26384224, 'autre_refus': 26384225, 'Teint_Dans_La_Masse': 26384226}]} input_args_next_step : {1380560959: ('0.06222031674410402',), 1380560957: ('0.06222031674410402',), 1380560955: ('0.06222031674410402',), 1380560953: ('0.06222031674410402',), 1380560951: ('0.06222031674410402',), 1380560733: ('0.06222031674410402',), 1380560732: ('0.06222031674410402',), 1380560731: ('0.06222031674410402',), 1380560722: ('0.06222031674410402',), 1380560720: ('0.06222031674410402',), 1380560719: ('0.06222031674410402',), 1380560718: ('0.06222031674410402',), 1380560717: ('0.06222031674410402',), 1380560716: ('0.06222031674410402',), 26384208: ()} output_args : {26384208: [{'Carton_gris': 26384215, 'papier': 26384216, 'flou': 26384217, 'cartonnette': 26384218, 'kraft': 26384219, 'mal_croppe': 26384220, 'metal': 26384221, 'environnement': 26384222, 'Carton_brun': 26384223, 'plastique': 26384224, 'autre_refus': 26384225, 'Teint_Dans_La_Masse': 26384226}]} args : 26384208 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 :15, first value : ('0.06222031674410402',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26384208) 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 (1380560959,1380560957,1380560955,1380560953,1380560951,1380560733,1380560732,1380560731,1380560722,1380560720,1380560719,1380560718,1380560717,1380560716) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1380560716 begin to download photo : 1380560719 begin to download photo : 1380560731 begin to download photo : 1380560951 begin to download photo : 1380560957 download finish for photo 1380560731 begin to download photo : 1380560732 download finish for photo 1380560719 begin to download photo : 1380560720 download finish for photo 1380560957 begin to download photo : 1380560959 download finish for photo 1380560951 begin to download photo : 1380560953 download finish for photo 1380560716 begin to download photo : 1380560717 download finish for photo 1380560732 begin to download photo : 1380560733 download finish for photo 1380560720 begin to download photo : 1380560722 download finish for photo 1380560953 begin to download photo : 1380560955 download finish for photo 1380560959 download finish for photo 1380560717 begin to download photo : 1380560718 download finish for photo 1380560722 download finish for photo 1380560733 download finish for photo 1380560955 download finish for photo 1380560718 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette263842171756702740/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P26384208_01-09-2025_06_59_00.pdf 26384217 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=26384217 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette263842171756702740 26384218 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=26384218 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380560554: '1756702267_2556614_1380560464_d6a6f477678b764f74c1974d8fbf31ab_86459671_rle_crop_3938594956_0.png', 1380560555: '1756702267_2556614_1380560463_e77f00a31c4f3f8971ef8b213171cdee_71164248_rle_crop_3938594967_0.png', 1380560562: '1756702285_2557827_1380560512_b646ec4162cb7c0016b876832d5df218_49715921_rle_crop_3938595082_0.png', 1380560563: '1756702285_2557827_1380560512_b646ec4162cb7c0016b876832d5df218_49715921_rle_crop_3938595084_0.png', 1380560676: '1756702504_2569426_1380560566_884edd0600ddf9079768fb1f2dfdad2b_9605421_rle_crop_3938595648_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/1e5d0d16b46e01ae4897fbc69fd82951_76372626.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/17e9e4ac25a96d57d22cf8490af8c267_49714299.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/234c99cbe8410f3fdd5cb782b3c3fbb0_4073012.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/84b4f5bb4e3a23187cbd8a84dd042014_69770859.png change filename to text .imagette263842181756702740/ imagette263842181756702740/1756702504_2569426_1380560566_884edd0600ddf9079768fb1f2dfdad2b_9605421_rle_crop_3938595648_0.png.png imagette263842181756702740/1756702285_2557827_1380560512_b646ec4162cb7c0016b876832d5df218_49715921_rle_crop_3938595084_0.png.png imagette263842181756702740/1756702267_2556614_1380560464_d6a6f477678b764f74c1974d8fbf31ab_86459671_rle_crop_3938594956_0.png.png imagette263842181756702740/1756702267_2556614_1380560463_e77f00a31c4f3f8971ef8b213171cdee_71164248_rle_crop_3938594967_0.png.png imagette263842181756702740/1756702285_2557827_1380560512_b646ec4162cb7c0016b876832d5df218_49715921_rle_crop_3938595082_0.png.png imagette263842191756702740/ imagette263842201756702740/ imagette263842211756702740/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/b67706f8c0ad382c920e9bafa4ea0347_31578917.png imagette263842181756702740 26384219 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=26384219 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette263842191756702740 26384220 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=26384220 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette263842201756702740 26384221 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=26384221 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette263842211756702740 26384224 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=26384224 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380560460: '1756702046_2546411_1380560394_5a134252a1f4f52077df5f175ce38c49_713206_rle_crop_3938594740_0.png', 1380560461: '1756702046_2546411_1380560392_15aa7b49d895d6eac92cfcc2959ac327_59511345_rle_crop_3938594774_0.png', 1380560618: '1756702386_2563496_1380560494_686ad61772bdbbacbee5caed7b16ef6c_93980016_rle_crop_3938595273_0.png', 1380560619: '1756702386_2563496_1380560494_686ad61772bdbbacbee5caed7b16ef6c_93980016_rle_crop_3938595267_0.png', 1380560621: '1756702386_2563496_1380560493_8a855140a8e07d0eea8d8b7b9f171c8b_76835435_rle_crop_3938595290_0.png', 1380560622: '1756702386_2563496_1380560492_5fc68b0dfbf2e957408c4cb14b66733b_41999929_rle_crop_3938595465_0.png', 1380560678: '1756702504_2569426_1380560565_2c1c325bae5ca2dab46487ccec255b53_8376048_rle_crop_3938595670_0.png', 1380560679: '1756702504_2569426_1380560564_8d3439fdfcee0e524b72cc77856647f6_17838827_rle_crop_3938595678_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/2c671df269ed9c76175fbdf3bb29fe6a_63604310.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/01145f591d9a722ae17e516685df2c86_33823804.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/dee8f2c13865df2f6e5fd85e29a7b457_17694207.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/e5dce45f337cdce0bc09b4c1bf53af04_27119177.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/5de19105aea2e87162518ff7c0ed8cb0_92618120.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/1c427873e22fa8234116e8b11e8ddb5a_36783775.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/179538ec37da5ac47682b0eb3aeb4780_46876114.png change filename to text .imagette263842241756702740/ imagette263842241756702740/1756702046_2546411_1380560394_5a134252a1f4f52077df5f175ce38c49_713206_rle_crop_3938594740_0.png.png imagette263842241756702740/1756702504_2569426_1380560565_2c1c325bae5ca2dab46487ccec255b53_8376048_rle_crop_3938595670_0.png.png imagette263842241756702740/1756702386_2563496_1380560493_8a855140a8e07d0eea8d8b7b9f171c8b_76835435_rle_crop_3938595290_0.png.png imagette263842241756702740/1756702386_2563496_1380560494_686ad61772bdbbacbee5caed7b16ef6c_93980016_rle_crop_3938595267_0.png.png imagette263842241756702740/1756702386_2563496_1380560492_5fc68b0dfbf2e957408c4cb14b66733b_41999929_rle_crop_3938595465_0.png.png imagette263842241756702740/1756702046_2546411_1380560392_15aa7b49d895d6eac92cfcc2959ac327_59511345_rle_crop_3938594774_0.png.png imagette263842241756702740/1756702386_2563496_1380560494_686ad61772bdbbacbee5caed7b16ef6c_93980016_rle_crop_3938595273_0.png.png imagette263842241756702740/1756702504_2569426_1380560564_8d3439fdfcee0e524b72cc77856647f6_17838827_rle_crop_3938595678_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/23b4d6b4d8cdb6d2374420bcef4ed4be_71169673.png imagette263842241756702740 26384225 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=26384225 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380560459: '1756702046_2546411_1380560393_7797b8625735069b93fe97a1aff45fac_68103065_rle_crop_3938594753_0.png', 1380560558: '1756702285_2557827_1380560512_b646ec4162cb7c0016b876832d5df218_49715921_rle_crop_3938595087_0.png', 1380560559: '1756702285_2557827_1380560511_111768df8634fc0f2a921da02578376c_39232677_rle_crop_3938595109_0.png', 1380560625: '1756702406_2564497_1380560423_0411db651a76401a7933c48d967e7e18_82254011_rle_crop_3938595498_0.png', 1380560627: '1756702406_2564497_1380560420_fdfdb9be67a0f47474a45acd7f19c6c1_53604298_rle_crop_3938595541_0.png', 1380560628: '1756702406_2564497_1380560420_fdfdb9be67a0f47474a45acd7f19c6c1_53604298_rle_crop_3938595536_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/21c033a38516ca83f8b2137173f351bc_30691478.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/3714c44f46501a385294d9be64016ac5_39582119.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/5677611ae4b6274adf60cdfa4a213171_49314486.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/74eefd7181107fab288cf16f7fa12611_93407855.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/4e793fe22dceb01c609368c65d1a8f7e_7453983.png change filename to text .imagette263842251756702741/ imagette263842251756702741/1756702406_2564497_1380560423_0411db651a76401a7933c48d967e7e18_82254011_rle_crop_3938595498_0.png.png imagette263842251756702741/1756702285_2557827_1380560512_b646ec4162cb7c0016b876832d5df218_49715921_rle_crop_3938595087_0.png.png imagette263842251756702741/1756702046_2546411_1380560393_7797b8625735069b93fe97a1aff45fac_68103065_rle_crop_3938594753_0.png.png imagette263842251756702741/1756702406_2564497_1380560420_fdfdb9be67a0f47474a45acd7f19c6c1_53604298_rle_crop_3938595541_0.png.png imagette263842251756702741/1756702406_2564497_1380560420_fdfdb9be67a0f47474a45acd7f19c6c1_53604298_rle_crop_3938595536_0.png.png imagette263842251756702741/1756702285_2557827_1380560511_111768df8634fc0f2a921da02578376c_39232677_rle_crop_3938595109_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/2eee108f0702ecf927222f7f9f70b16d_36670274.png imagette263842251756702741 26384215 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=26384215 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380560553: '1756702267_2556614_1380560463_e77f00a31c4f3f8971ef8b213171cdee_71164248_rle_crop_3938594970_0.png', 1380560560: '1756702285_2557827_1380560512_b646ec4162cb7c0016b876832d5df218_49715921_rle_crop_3938595089_0.png', 1380560561: '1756702285_2557827_1380560510_53a5f349946c1fcf274ba3a7bbc488a8_11796974_rle_crop_3938595130_0.png', 1380560629: '1756702406_2564497_1380560423_0411db651a76401a7933c48d967e7e18_82254011_rle_crop_3938595501_0.png', 1380560674: '1756702504_2569426_1380560565_2c1c325bae5ca2dab46487ccec255b53_8376048_rle_crop_3938595656_0.png', 1380560675: '1756702504_2569426_1380560564_8d3439fdfcee0e524b72cc77856647f6_17838827_rle_crop_3938595674_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/046da60278b5c2d1d379678312469cd4_83158345.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/ea15a78d5d2c7d771a6c066f7a3abaf9_27277031.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/4fe64f2f933b92027c4c331900c3b717_31959433.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/fd9a17bc8dee1389d8b78d4eaff16994_22380657.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/8c3ef5d1f79b3f4fa5e612cd99fccd0c_18243123.png change filename to text .imagette263842151756702741/ imagette263842151756702741/1756702285_2557827_1380560512_b646ec4162cb7c0016b876832d5df218_49715921_rle_crop_3938595089_0.png.png imagette263842151756702741/1756702267_2556614_1380560463_e77f00a31c4f3f8971ef8b213171cdee_71164248_rle_crop_3938594970_0.png.png imagette263842151756702741/1756702285_2557827_1380560510_53a5f349946c1fcf274ba3a7bbc488a8_11796974_rle_crop_3938595130_0.png.png imagette263842151756702741/1756702504_2569426_1380560565_2c1c325bae5ca2dab46487ccec255b53_8376048_rle_crop_3938595656_0.png.png imagette263842151756702741/1756702504_2569426_1380560564_8d3439fdfcee0e524b72cc77856647f6_17838827_rle_crop_3938595674_0.png.png imagette263842151756702741/1756702406_2564497_1380560423_0411db651a76401a7933c48d967e7e18_82254011_rle_crop_3938595501_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/d7b7abab239736814b2e2885e37cbb52_46143845.png imagette263842151756702741 26384223 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=26384223 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380560804: '1756702625_2573676_1380560632_b67ae253008ace4399c50f59aa548ae1_59968438_rle_crop_3938604805_0.png'} change filename to text .imagette263842231756702742/ imagette263842231756702742/1756702625_2573676_1380560632_b67ae253008ace4399c50f59aa548ae1_59968438_rle_crop_3938604805_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/d1184592dbc35b7272cd2c71d07cd7f4_35385233.png imagette263842231756702742 26384226 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=26384226 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1380560671: '1756702504_2569426_1380560565_2c1c325bae5ca2dab46487ccec255b53_8376048_rle_crop_3938595667_0.png', 1380560854: '1756702646_2574018_1380560635_4c5671151ff9cfeb534e63215040ba57_68641917_rle_crop_3938604895_0.png', 1380560852: '1756702646_2574018_1380560635_4c5671151ff9cfeb534e63215040ba57_68641917_rle_crop_3938604894_0.png', 1380560797: '1756702625_2573676_1380560631_c04219e8d15e82049414960f40402aa4_84887704_rle_crop_3938604877_0.png', 1380560795: '1756702625_2573676_1380560631_c04219e8d15e82049414960f40402aa4_84887704_rle_crop_3938604871_0.png', 1380560793: '1756702625_2573676_1380560632_b67ae253008ace4399c50f59aa548ae1_59968438_rle_crop_3938604809_0.png', 1380560791: '1756702625_2573676_1380560632_b67ae253008ace4399c50f59aa548ae1_59968438_rle_crop_3938604807_0.png', 1380560789: '1756702625_2573676_1380560633_4aa3e92197c46302c260bf12df82b03d_38045156_rle_crop_3938604793_0.png', 1380560787: '1756702625_2573676_1380560634_1f1f0a43786c6c342c515d3e9b7a48a8_43554867_rle_crop_3938604770_0.png', 1380560673: '1756702504_2569426_1380560565_2c1c325bae5ca2dab46487ccec255b53_8376048_rle_crop_3938595661_0.png', 1380560672: '1756702504_2569426_1380560565_2c1c325bae5ca2dab46487ccec255b53_8376048_rle_crop_3938595666_0.png', 1380560457: '1756702046_2546411_1380560393_7797b8625735069b93fe97a1aff45fac_68103065_rle_crop_3938594762_0.png', 1380560670: '1756702504_2569426_1380560566_884edd0600ddf9079768fb1f2dfdad2b_9605421_rle_crop_3938595647_0.png', 1380560617: '1756702386_2563496_1380560492_5fc68b0dfbf2e957408c4cb14b66733b_41999929_rle_crop_3938595460_0.png', 1380560616: '1756702386_2563496_1380560493_8a855140a8e07d0eea8d8b7b9f171c8b_76835435_rle_crop_3938595284_0.png', 1380560615: '1756702386_2563496_1380560493_8a855140a8e07d0eea8d8b7b9f171c8b_76835435_rle_crop_3938595287_0.png', 1380560614: '1756702386_2563496_1380560493_8a855140a8e07d0eea8d8b7b9f171c8b_76835435_rle_crop_3938595288_0.png', 1380560613: '1756702386_2563496_1380560513_9d3a75b426c847da505b4230af56f8d0_71420809_rle_crop_3938595261_0.png', 1380560557: '1756702285_2557827_1380560510_53a5f349946c1fcf274ba3a7bbc488a8_11796974_rle_crop_3938595128_0.png', 1380560556: '1756702285_2557827_1380560512_b646ec4162cb7c0016b876832d5df218_49715921_rle_crop_3938595100_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/38ab40c6e1b41372f80c44d35474ce8b_54463231.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/f5b9fc0cdf478be5ee29a26d21bf2c2c_66349602.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/b2deb31e226983f9d12a5e93b83f0336_98744114.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/7fc5564afdd1aa4c5016ef91115c5ade_64202780.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/77e2750a5146e4f1cac141e999a1e447_18048050.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/29b7c8f73ed20a0a2821fb14879e6580_41942013.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/48cab1d761ead929d0f6f1ec06ee3b39_1585397.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/400580527bfdcde9e117b69d0243178e_15264681.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/b9016f333d7461972dd26555c2ee88cf_20542416.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/bdc99a4e695a61de2620c7bfd2af5b8a_62623677.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/4c841467862c6ab7da49e923d6ffc06a_73033351.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/f049b99953a19681ebeaf520cc6e9ad5_60142489.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/a4786b6df0b74640f4ad87d194a07baf_23765782.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/f73ce72dc8951cb086572ccb8db836ac_70091339.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/6093917d8119c523294c9f498a2d08de_2124233.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/8cc99e6af23ca129409c173a4c998e7b_86058585.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/f7c8818938406448f36bdccec21638c6_4195638.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/c749dfd791ce7d40af413a22f77dc91d_97279037.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/722e22c00d14c5746b4af95995e892dd_12248979.png change filename to text .imagette263842261756702742/ imagette263842261756702742/1756702504_2569426_1380560565_2c1c325bae5ca2dab46487ccec255b53_8376048_rle_crop_3938595667_0.png.png imagette263842261756702742/1756702625_2573676_1380560631_c04219e8d15e82049414960f40402aa4_84887704_rle_crop_3938604871_0.png.png imagette263842261756702742/1756702646_2574018_1380560635_4c5671151ff9cfeb534e63215040ba57_68641917_rle_crop_3938604895_0.png.png imagette263842261756702742/1756702285_2557827_1380560510_53a5f349946c1fcf274ba3a7bbc488a8_11796974_rle_crop_3938595128_0.png.png imagette263842261756702742/1756702386_2563496_1380560493_8a855140a8e07d0eea8d8b7b9f171c8b_76835435_rle_crop_3938595287_0.png.png imagette263842261756702742/1756702386_2563496_1380560513_9d3a75b426c847da505b4230af56f8d0_71420809_rle_crop_3938595261_0.png.png imagette263842261756702742/1756702625_2573676_1380560632_b67ae253008ace4399c50f59aa548ae1_59968438_rle_crop_3938604807_0.png.png imagette263842261756702742/1756702504_2569426_1380560565_2c1c325bae5ca2dab46487ccec255b53_8376048_rle_crop_3938595661_0.png.png imagette263842261756702742/1756702285_2557827_1380560512_b646ec4162cb7c0016b876832d5df218_49715921_rle_crop_3938595100_0.png.png imagette263842261756702742/1756702046_2546411_1380560393_7797b8625735069b93fe97a1aff45fac_68103065_rle_crop_3938594762_0.png.png imagette263842261756702742/1756702504_2569426_1380560565_2c1c325bae5ca2dab46487ccec255b53_8376048_rle_crop_3938595666_0.png.png imagette263842261756702742/1756702504_2569426_1380560566_884edd0600ddf9079768fb1f2dfdad2b_9605421_rle_crop_3938595647_0.png.png imagette263842261756702742/1756702386_2563496_1380560493_8a855140a8e07d0eea8d8b7b9f171c8b_76835435_rle_crop_3938595284_0.png.png imagette263842261756702742/1756702386_2563496_1380560493_8a855140a8e07d0eea8d8b7b9f171c8b_76835435_rle_crop_3938595288_0.png.png imagette263842261756702742/1756702625_2573676_1380560634_1f1f0a43786c6c342c515d3e9b7a48a8_43554867_rle_crop_3938604770_0.png.png imagette263842261756702742/1756702625_2573676_1380560631_c04219e8d15e82049414960f40402aa4_84887704_rle_crop_3938604877_0.png.png imagette263842261756702742/1756702386_2563496_1380560492_5fc68b0dfbf2e957408c4cb14b66733b_41999929_rle_crop_3938595460_0.png.png imagette263842261756702742/1756702625_2573676_1380560633_4aa3e92197c46302c260bf12df82b03d_38045156_rle_crop_3938604793_0.png.png imagette263842261756702742/1756702625_2573676_1380560632_b67ae253008ace4399c50f59aa548ae1_59968438_rle_crop_3938604809_0.png.png imagette263842261756702742/1756702646_2574018_1380560635_4c5671151ff9cfeb534e63215040ba57_68641917_rle_crop_3938604894_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/8689423499bdf77a401481200f0615a6_41692786.png imagette263842261756702742 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26384208 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26384227,26384228,26384229,26384230,26384231,26384232,26384233,26384234,26384235,26384236,26384237,26384238?tags=Carton_gris,papier,flou,cartonnette,kraft,mal_croppe,metal,environnement,Carton_brun,plastique,autre_refus,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1380560959] : ('0.06222031674410402',) no score found for photo 1380560959 We are sending mail with results at report@fotonower.com args[1380560957] : ('0.06222031674410402',) no score found for photo 1380560957 We are sending mail with results at report@fotonower.com args[1380560955] : ('0.06222031674410402',) no score found for photo 1380560955 We are sending mail with results at report@fotonower.com args[1380560953] : ('0.06222031674410402',) no score found for photo 1380560953 We are sending mail with results at report@fotonower.com args[1380560951] : ('0.06222031674410402',) no score found for photo 1380560951 We are sending mail with results at report@fotonower.com args[1380560733] : ('0.06222031674410402',) no score found for photo 1380560733 We are sending mail with results at report@fotonower.com args[1380560732] : ('0.06222031674410402',) no score found for photo 1380560732 We are sending mail with results at report@fotonower.com args[1380560731] : ('0.06222031674410402',) no score found for photo 1380560731 We are sending mail with results at report@fotonower.com args[1380560722] : ('0.06222031674410402',) no score found for photo 1380560722 We are sending mail with results at report@fotonower.com args[1380560720] : ('0.06222031674410402',) no score found for photo 1380560720 We are sending mail with results at report@fotonower.com args[1380560719] : ('0.06222031674410402',) no score found for photo 1380560719 We are sending mail with results at report@fotonower.com args[1380560718] : ('0.06222031674410402',) no score found for photo 1380560718 We are sending mail with results at report@fotonower.com args[1380560717] : ('0.06222031674410402',) no score found for photo 1380560717 We are sending mail with results at report@fotonower.com args[1380560716] : ('0.06222031674410402',) no score found for photo 1380560716 We are sending mail with results at report@fotonower.com refus_total : 0.06222031674410402 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=26384208 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_P26384208_01-09-2025_06_59_00.pdf results_Auto_P26384208_01-09-2025_06_59_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26384208_01-09-2025_06_59_00.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','26384208','results_Auto_P26384208_01-09-2025_06_59_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26384208_01-09-2025_06_59_00.pdf','pdf','','0.26','0.06222031674410402') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26384208]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1380560959, 1380560957, 1380560955, 1380560953, 1380560951, 1380560733, 1380560732, 1380560731, 1380560722, 1380560720, 1380560719, 1380560718, 1380560717, 1380560716] map_info['map_portfolio_photo'] : {26384208: [1380560959, 1380560957, 1380560955, 1380560953, 1380560951, 1380560733, 1380560732, 1380560731, 1380560722, 1380560720, 1380560719, 1380560718, 1380560717, 1380560716, 1380560696, 1380560695, 1380560694, 1380560693, 1380560661, 1380560660, 1380560659, 1380560658, 1380560635, 1380560634, 1380560633, 1380560632, 1380560631, 1380560630, 1380560591, 1380560590, 1380560589, 1380560567, 1380560566, 1380560565, 1380560564, 1380560541, 1380560540, 1380560539, 1380560513, 1380560512, 1380560511, 1380560510, 1380560496, 1380560495, 1380560494, 1380560493, 1380560492, 1380560468, 1380560466, 1380560465, 1380560464, 1380560463, 1380560431, 1380560430, 1380560429, 1380560425, 1380560424, 1380560423, 1380560422, 1380560421, 1380560420, 1380560394, 1380560393, 1380560392]} final : False mtd_id 4302 list_pids : [1380560959, 1380560957, 1380560955, 1380560953, 1380560951, 1380560733, 1380560732, 1380560731, 1380560722, 1380560720, 1380560719, 1380560718, 1380560717, 1380560716] 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, '3644306') ('4302', '26384208', '1380560959', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560957', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560955', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560953', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560951', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560733', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560732', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560731', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560722', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560720', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560719', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560718', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560717', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560716', None, None, None, None, None, '3644306') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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', '26384208', '1380560959', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560957', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560955', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560953', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560951', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560733', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560732', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560731', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560722', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560720', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560719', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560718', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560717', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560716', None, None, None, None, None, '3644306')] time used for this insertion : 0.023787498474121094 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.7036309242248535 time spend to save output : 0.02406620979309082 total time spend for step 4 : 4.727697134017944 step5:split_time_score Mon Sep 1 06:59: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 : ['26384208'] 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 : [('26384208',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26384208) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1380560957: {'path': 'temp/1756702740_2881146_1380560957_a7c7408209467175b047111350b0299a_3929502.jpg', 'extension': 'jpg'}, 1380560959: {'path': 'temp/1756702740_2881146_1380560959_d8d4526ab0842ecf7ff4551fe9738999_31844667.jpg', 'extension': 'jpg'}, 1380560719: {'path': 'temp/1756702740_2881146_1380560719_7ca5f8e9ac80f3fd756b27bcf59942eb_81834628.jpg', 'extension': 'jpg'}, 1380560720: {'path': 'temp/1756702740_2881146_1380560720_d2ed90c26810a3640b19323af8cc7c5c_22780370.jpg', 'extension': 'jpg'}, 1380560722: {'path': 'temp/1756702740_2881146_1380560722_a027cb77d386dfa34fb4d01eaddd4eea_95367827.jpg', 'extension': 'jpg'}, 1380560731: {'path': 'temp/1756702740_2881146_1380560731_863f90846eed44a6e740aab0c2eb7680_58847327.jpg', 'extension': 'jpg'}, 1380560732: {'path': 'temp/1756702740_2881146_1380560732_6f17568a0f61180532b5ca535c721b65_38819083.jpg', 'extension': 'jpg'}, 1380560733: {'path': 'temp/1756702740_2881146_1380560733_f53a4661d43a60efe9f3f9025e5ee60f_39729990.jpg', 'extension': 'jpg'}, 1380560951: {'path': 'temp/1756702740_2881146_1380560951_71f63d0278baa8e9b5ea09fcabebe848_25407340.jpg', 'extension': 'jpg'}, 1380560953: {'path': 'temp/1756702740_2881146_1380560953_2483712442d85a8bf6a2a5d8e5ac6634_23555102.jpg', 'extension': 'jpg'}, 1380560955: {'path': 'temp/1756702740_2881146_1380560955_522bdc0ec68aa7b512920026439b5aa3_61334584.jpg', 'extension': 'jpg'}, 1380560716: {'path': 'temp/1756702740_2881146_1380560716_2a577766dd65b078101f996bee1ef63b_9538208.jpg', 'extension': 'jpg'}, 1380560717: {'path': 'temp/1756702740_2881146_1380560717_6a6fa6039adb4ab8920c1fa64f87ee7f_54151499.jpg', 'extension': 'jpg'}, 1380560718: {'path': 'temp/1756702740_2881146_1380560718_7fcb50d99fc7353fe19a4cae56c45117_37977940.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 = 26384208; (('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 = 26384208 group by h (('06', 64),) 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=26384208 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 (26384208) 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 (26384208) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 01092025 26384208 Nombre de photos uploadées : 64 / 23040 (0%) 01092025 26384208 Nombre de photos taguées (types de déchets): 0 / 64 (0%) 01092025 26384208 Nombre de photos taguées (volume) : 0 / 64 (0%) [{'photo_id': 1380560394, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/5a134252a1f4f52077df5f175ce38c49_713206.jpg', 'username': None, 'uploaded_at': 1756701972, 'text': 'image_01092025_06_45_15_010133m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1380560431, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/5a134252a1f4f52077df5f175ce38c49_11831848.jpg', 'username': None, 'uploaded_at': 1756702047, 'text': 'image_01092025_06_45_15_10133.jpg'}, {'photo_id': 1380560393, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/7797b8625735069b93fe97a1aff45fac_68103065.jpg', 'username': None, 'uploaded_at': 1756701972, 'text': 'image_01092025_06_45_25_010136m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1380560430, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/1/7797b8625735069b93fe97a1aff45fac_37413723.jpg', 'username': None, 'uploaded_at': 1756702047, 'text': 'image_01092025_06_45_25_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ???????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0028247833251953125 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26384208, '2025-09-01' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-09-01' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2206746,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20160436630249023 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= 2206746 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2206746, 'dashboard_run_id': 2214433, 'mtr_portfolio_id': 26381713, 'dashboard_result_id': 14513037, '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_P26381713_01-09-2025_05_19_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26381714, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26381715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26381716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26381717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26381718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26381719, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26381720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26381721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26381722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26381723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26381724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26381725, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2214433, 'mtr_portfolio_id': 26381992, 'dashboard_result_id': 14513038, '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_P26381992_01-09-2025_05_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26381996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26381997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26381998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26381999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26382000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26382001, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26382002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26382003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26382004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26382005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26382006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26382007, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2214433, 'mtr_portfolio_id': 26382385, 'dashboard_result_id': 14513039, '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_P26382385_01-09-2025_05_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26382389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26382390, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26382391, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26382392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26382393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26382394, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26382395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26382396, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26382397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26382398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26382399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26382400, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2214433, 'mtr_portfolio_id': 26382722, 'dashboard_result_id': 14513040, '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_P26382722_01-09-2025_06_00_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26382727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26382728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26382729, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26382730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26382731, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26382732, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26382733, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26382734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26382735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26382736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26382737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26382738, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2214433, 'mtr_portfolio_id': 26383234, 'dashboard_result_id': 14513041, '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_P26383234_01-09-2025_06_19_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26383287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26383288, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26383289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26383290, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26383291, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26383292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26383293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26383294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26383295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26383296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26383297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26383298, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2214433, 'mtr_portfolio_id': 26383579, 'dashboard_result_id': 14513042, '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_P26383579_01-09-2025_06_36_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26383584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26383585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26383586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26383587, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26383588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26383589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26383590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26383591, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26383592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26383593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26383594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26383595, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2214433, 'mtr_portfolio_id': 26383975, 'dashboard_result_id': 14513043, '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_P26383975_01-09-2025_06_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26383978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26383979, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26383980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26383981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26383982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26383983, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26383984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26383985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26383986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26383987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26383988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26383989, 'pht': 3726}}"}, {'dashboat_entry_day': 2206746, 'dashboard_run_id': 2214433, 'mtr_portfolio_id': 26384208, 'dashboard_result_id': 14513044, '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_P26384208_01-09-2025_06_57_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26384215, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26384216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26384217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26384218, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26384219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26384220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26384221, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26384222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26384223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26384224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26384225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26384226, '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 = 26381713 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': 3643960, 'mtr_portfolio_id': 26381713, 'created_at': datetime.datetime(2025, 9, 1, 5, 19, 1), 'result': '0.05947260669499837', 'result_long': None, 'result_double': None}] Qualite : 0.05947260669499837 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26381713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26381713_01-09-2025_05_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26381713 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_P26381713_01-09-2025_05_19_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26381714, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26381715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26381716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26381717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26381718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26381719, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26381720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26381721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26381722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26381723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26381724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26381725, 'pht': 3726}}" where mtr_portfolio_id = 26381713 and dashboard_run_id = 2214433 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`=26381713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14513037, 0.05947260669499837, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26381713_01-09-2025_05_19_01.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26381714, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26381715, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26381716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26381717, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26381718, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26381719, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26381720, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26381721, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26381722, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26381723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26381724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26381725, '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 = 26381992 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': 3643989, 'mtr_portfolio_id': 26381992, 'created_at': datetime.datetime(2025, 9, 1, 5, 33, 1), 'result': '0.05906098722084514', 'result_long': None, 'result_double': None}] Qualite : 0.05906098722084514 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26381992 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26381992_01-09-2025_05_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26381992 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_P26381992_01-09-2025_05_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26381996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26381997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26381998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26381999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26382000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26382001, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26382002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26382003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26382004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26382005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26382006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26382007, 'pht': 3726}}" where mtr_portfolio_id = 26381992 and dashboard_run_id = 2214433 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`=26381992 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14513038, 0.05906098722084514, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26381992_01-09-2025_05_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26381996, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26381997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26381998, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26381999, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26382000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26382001, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26382002, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26382003, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26382004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26382005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26382006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26382007, '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 = 26382385 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': 3644043, 'mtr_portfolio_id': 26382385, 'created_at': datetime.datetime(2025, 9, 1, 5, 48, 58), 'result': '0.04121344925574471', 'result_long': None, 'result_double': None}] Qualite : 0.04121344925574471 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26382385 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26382385_01-09-2025_05_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26382385 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_P26382385_01-09-2025_05_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26382389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26382390, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26382391, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26382392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26382393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26382394, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26382395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26382396, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26382397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26382398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26382399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26382400, 'pht': 3726}}" where mtr_portfolio_id = 26382385 and dashboard_run_id = 2214433 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`=26382385 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14513039, 0.04121344925574471, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26382385_01-09-2025_05_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26382389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26382390, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26382391, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26382392, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26382393, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26382394, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26382395, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26382396, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26382397, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26382398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26382399, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26382400, '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 = 26382722 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': 3644087, 'mtr_portfolio_id': 26382722, 'created_at': datetime.datetime(2025, 9, 1, 6, 2, 58), 'result': '0.048760567937377076', 'result_long': None, 'result_double': None}] Qualite : 0.048760567937377076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26382722 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26382722_01-09-2025_06_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26382722 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_P26382722_01-09-2025_06_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26382727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26382728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26382729, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26382730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26382731, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26382732, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26382733, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26382734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26382735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26382736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26382737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26382738, 'pht': 3726}}" where mtr_portfolio_id = 26382722 and dashboard_run_id = 2214433 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`=26382722 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14513040, 0.048760567937377076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26382722_01-09-2025_06_02_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26382727, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26382728, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26382729, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26382730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26382731, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26382732, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26382733, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26382734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26382735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26382736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26382737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26382738, '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 = 26383234 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': 3644180, 'mtr_portfolio_id': 26383234, 'created_at': datetime.datetime(2025, 9, 1, 6, 19), 'result': '0.029804132397805074', 'result_long': None, 'result_double': None}] Qualite : 0.029804132397805074 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26383234 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26383234_01-09-2025_06_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26383234 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_P26383234_01-09-2025_06_19_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26383287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26383288, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26383289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26383290, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26383291, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26383292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26383293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26383294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26383295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26383296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26383297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26383298, 'pht': 3726}}" where mtr_portfolio_id = 26383234 and dashboard_run_id = 2214435 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`=26383234 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14513041, 0.029804132397805074, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26383234_01-09-2025_06_19_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26383287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26383288, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26383289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26383290, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26383291, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26383292, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26383293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26383294, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26383295, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26383296, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26383297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26383298, '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 = 26383579 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': 3644213, 'mtr_portfolio_id': 26383579, 'created_at': datetime.datetime(2025, 9, 1, 6, 36, 58), 'result': '0.0259338070912103', 'result_long': None, 'result_double': None}] Qualite : 0.0259338070912103 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26383579 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26383579_01-09-2025_06_36_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26383579 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_P26383579_01-09-2025_06_36_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26383584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26383585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26383586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26383587, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26383588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26383589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26383590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26383591, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26383592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26383593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26383594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26383595, 'pht': 3726}}" where mtr_portfolio_id = 26383579 and dashboard_run_id = 2214435 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`=26383579 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14513042, 0.0259338070912103, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26383579_01-09-2025_06_36_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26383584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26383585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26383586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26383587, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26383588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26383589, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26383590, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26383591, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26383592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26383593, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26383594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26383595, '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 = 26383975 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': 3644276, 'mtr_portfolio_id': 26383975, 'created_at': datetime.datetime(2025, 9, 1, 6, 49, 1), 'result': '0.049485817277569684', 'result_long': None, 'result_double': None}] Qualite : 0.049485817277569684 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26383975 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26383975_01-09-2025_06_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26383975 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_P26383975_01-09-2025_06_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26383978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26383979, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26383980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26383981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26383982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26383983, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26383984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26383985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26383986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26383987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26383988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26383989, 'pht': 3726}}" where mtr_portfolio_id = 26383975 and dashboard_run_id = 2214435 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`=26383975 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14513043, 0.049485817277569684, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26383975_01-09-2025_06_49_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26383978, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26383979, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26383980, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26383981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26383982, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26383983, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26383984, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26383985, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26383986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26383987, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26383988, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26383989, '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 = 26384208 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': 3644306, 'mtr_portfolio_id': 26384208, 'created_at': datetime.datetime(2025, 9, 1, 6, 58, 59), 'result': '0.06222031674410402', 'result_long': None, 'result_double': None}] Qualite : 0.06222031674410402 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26384208 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26384208_01-09-2025_06_59_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26384208 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_P26384208_01-09-2025_06_59_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26384215, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26384216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26384217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26384218, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26384219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26384220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26384221, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26384222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26384223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26384224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26384225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26384226, 'pht': 3726}}" where mtr_portfolio_id = 26384208 and dashboard_run_id = 2214435 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`=26384208 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14513044, 0.06222031674410402, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26384208_01-09-2025_06_59_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26384215, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26384216, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26384217, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26384218, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26384219, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26384220, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26384221, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26384222, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26384223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26384224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26384225, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26384226, '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 (26381713,26381992,26382385,26382722,26383234,26383579,26383975,26384208) result : ((1380555652,), (1380555787,), (1380555804,), (1380555805,), (1380555823,), (1380555824,), (1380555834,), (1380555835,), (1380555836,), (1380555837,), (1380555838,), (1380555850,), (1380555851,), (1380555852,), (1380555853,), (1380555854,), (1380555855,), (1380555857,), (1380555858,), (1380555859,), (1380555882,), (1380555883,), (1380555884,), (1380555929,), (1380555954,), (1380555955,), (1380555956,), (1380555958,), (1380555966,), (1380555967,), (1380555968,), (1380555969,), (1380555971,), (1380555972,), (1380555981,), (1380555982,), (1380555983,), (1380555984,), (1380555993,), (1380555994,), (1380555995,), (1380555996,), (1380556021,), (1380556040,), (1380556017,), (1380556018,), (1380556019,), (1380556020,), (1380556029,), (1380556030,), (1380556031,), (1380556032,), (1380556033,), (1380556034,), (1380556036,), (1380556038,), (1380556054,), (1380556055,), (1380556056,), (1380556057,), (1380556058,), (1380556072,), (1380556073,), (1380556087,), (1380556088,), (1380556089,), (1380556090,), (1380556091,), (1380556093,), (1380556143,), (1380556144,), (1380556145,), (1380556160,), (1380556161,), (1380556162,), (1380556163,), (1380556164,), (1380556165,), (1380556176,), (1380556251,), (1380556252,), (1380556253,), (1380556254,), (1380556268,), (1380556269,), (1380556270,), (1380556271,), (1380556272,), (1380556278,), (1380556279,), (1380556280,), (1380556281,), (1380556282,), (1380556283,), (1380556321,), (1380556322,), (1380556323,), (1380556324,), (1380556325,), (1380556326,), (1380556330,), (1380556331,), (1380556332,), (1380556353,), (1380556354,), (1380556355,), (1380556356,), (1380556379,), (1380556381,), (1380556382,), (1380556383,), (1380556384,), (1380556403,), (1380556404,), (1380556405,), (1380556407,), (1380556424,), (1380556421,), (1380556422,), (1380556423,), (1380556444,), (1380556453,), (1380556467,), (1380556468,), (1380556469,), (1380556480,), (1380556496,), (1380556497,), (1380556498,), (1380556513,), (1380556514,), (1380556515,), (1380556516,), (1380556517,), (1380556518,), (1380556519,), (1380556533,), (1380556538,), (1380556539,), (1380556540,), (1380556549,), (1380556550,), (1380556551,), (1380556571,), (1380556572,), (1380556583,), (1380556584,), (1380556598,), (1380556599,), (1380556611,), (1380556612,), (1380556613,), (1380556614,), (1380556630,), (1380556631,), (1380556632,), (1380556633,), (1380556648,), (1380556649,), (1380556650,), (1380556679,), (1380556706,), (1380556676,), (1380556677,), (1380556678,), (1380556695,), (1380556696,), (1380556697,), (1380556698,), (1380556699,), (1380556700,), (1380556704,), (1380556705,), (1380556721,), (1380556723,), (1380556724,), (1380556725,), (1380556726,), (1380556734,), (1380556735,), (1380556736,), (1380556737,), (1380556738,), (1380556759,), (1380556760,), (1380556761,), (1380556762,), (1380556763,), (1380556771,), (1380556772,), (1380556773,), (1380556774,), (1380556792,), (1380556793,), (1380556794,), (1380556795,), (1380556804,), (1380556805,), (1380556806,), (1380556807,), (1380556808,), (1380556827,), (1380556828,), (1380556829,), (1380556830,), (1380556841,), (1380556842,), (1380556843,), (1380556844,), (1380556859,), (1380556870,), (1380556871,), (1380556872,), (1380556877,), (1380556878,), (1380556879,), (1380556880,), (1380556897,), (1380556898,), (1380557224,), (1380557227,), (1380557230,), (1380557232,), (1380557234,), (1380557602,), (1380559388,), (1380559403,), (1380559405,), (1380559407,), (1380559440,), (1380559441,), (1380559442,), (1380559455,), (1380559456,), (1380559457,), (1380559458,), (1380559459,), (1380559460,), (1380559477,), (1380559478,), (1380559479,), (1380559480,), (1380559481,), (1380559502,), (1380559531,), (1380559532,), (1380559533,), (1380559553,), (1380559554,), (1380559555,), (1380559571,), (1380559572,), (1380559573,), (1380559574,), (1380559594,), (1380559595,), (1380559596,), (1380559597,), (1380559598,), (1380559599,), (1380559623,), (1380559624,), (1380559625,), (1380559626,), (1380559652,), (1380559672,), (1380559648,), (1380559649,), (1380559650,), (1380559651,), (1380559664,), (1380559665,), (1380559666,), (1380559667,), (1380559668,), (1380559669,), (1380559671,), (1380559702,), (1380559703,), (1380559704,), (1380559719,), (1380559720,), (1380559721,), (1380559737,), (1380559738,), (1380559739,), (1380559740,), (1380559741,), (1380559759,), (1380559760,), (1380559761,), (1380559762,), (1380559763,), (1380559783,), (1380559784,), (1380559785,), (1380559786,), (1380559787,), (1380559810,), (1380559811,), (1380559812,), (1380559813,), (1380559839,), (1380559840,), (1380559841,), (1380559842,), (1380559843,), (1380559852,), (1380559853,), (1380559854,), (1380559898,), (1380560062,), (1380560002,), (1380560061,), (1380560085,), (1380560088,), (1380560115,), (1380560116,), (1380560117,), (1380560118,), (1380560119,), (1380560120,), (1380560124,), (1380560157,), (1380560158,), (1380560159,), (1380560160,), (1380560183,), (1380560184,), (1380560185,), (1380560186,), (1380560187,), (1380560218,), (1380560219,), (1380560249,), (1380560250,), (1380560280,), (1380560281,), (1380560282,), (1380560304,), (1380560305,), (1380560306,), (1380560307,), (1380560334,), (1380560335,), (1380560336,), (1380560337,), (1380560338,), (1380560363,), (1380560364,), (1380560365,), (1380560395,), (1380560432,), (1380560392,), (1380560393,), (1380560394,), (1380560420,), (1380560421,), (1380560422,), (1380560423,), (1380560424,), (1380560425,), (1380560429,), (1380560430,), (1380560431,), (1380560463,), (1380560464,), (1380560465,), (1380560466,), (1380560468,), (1380560492,), (1380560493,), (1380560494,), (1380560495,), (1380560496,), (1380560510,), (1380560511,), (1380560512,), (1380560513,), (1380560539,), (1380560540,), (1380560541,), (1380560564,), (1380560565,), (1380560566,), (1380560567,), (1380560589,), (1380560590,), (1380560591,), (1380560630,), (1380560631,), (1380560632,), (1380560633,), (1380560634,), (1380560635,), (1380560658,), (1380560659,), (1380560660,), (1380560661,), (1380560693,), (1380560694,), (1380560695,), (1380560696,), (1380560716,), (1380560717,), (1380560718,), (1380560719,), (1380560720,), (1380560722,), (1380560731,), (1380560732,), (1380560733,), (1380560951,), (1380560953,), (1380560955,), (1380560957,), (1380560959,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'01092025': {'nb_upload': 64, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26384208]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1380560959, 1380560957, 1380560955, 1380560953, 1380560951, 1380560733, 1380560732, 1380560731, 1380560722, 1380560720, 1380560719, 1380560718, 1380560717, 1380560716] map_info['map_portfolio_photo'] : {26384208: [1380560959, 1380560957, 1380560955, 1380560953, 1380560951, 1380560733, 1380560732, 1380560731, 1380560722, 1380560720, 1380560719, 1380560718, 1380560717, 1380560716, 1380560696, 1380560695, 1380560694, 1380560693, 1380560661, 1380560660, 1380560659, 1380560658, 1380560635, 1380560634, 1380560633, 1380560632, 1380560631, 1380560630, 1380560591, 1380560590, 1380560589, 1380560567, 1380560566, 1380560565, 1380560564, 1380560541, 1380560540, 1380560539, 1380560513, 1380560512, 1380560511, 1380560510, 1380560496, 1380560495, 1380560494, 1380560493, 1380560492, 1380560468, 1380560466, 1380560465, 1380560464, 1380560463, 1380560431, 1380560430, 1380560429, 1380560425, 1380560424, 1380560423, 1380560422, 1380560421, 1380560420, 1380560394, 1380560393, 1380560392]} final : True mtd_id 4302 list_pids : [1380560959, 1380560957, 1380560955, 1380560953, 1380560951, 1380560733, 1380560732, 1380560731, 1380560722, 1380560720, 1380560719, 1380560718, 1380560717, 1380560716] Looping around the photos to save general results len do output : 1 /26384208Didn'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, '3644306') ('4302', '26384208', '1380560959', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560957', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560955', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560953', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560951', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560733', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560732', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560731', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560722', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560720', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560719', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560718', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560717', None, None, None, None, None, '3644306') ('4302', None, None, None, None, None, None, None, '3644306') ('4302', '26384208', '1380560716', None, None, None, None, None, '3644306') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '26384208', 'None', None, None, None, None, '3644306'), ('4302', '26384208', '1380560959', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560957', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560955', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560953', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560951', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560733', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560732', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560731', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560722', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560720', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560719', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560718', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560717', None, None, None, None, None, '3644306'), ('4302', '26384208', '1380560716', None, None, None, None, None, '3644306')] time used for this insertion : 0.018144607543945312 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.8726673126220703 time spend to save output : 0.01838064193725586 total time spend for step 5 : 0.8910479545593262 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 (3644306) 2.41user 2.77system 0:10.12elapsed 51%CPU (0avgtext+0avgdata 160928maxresident)k 568inputs+14448outputs (1major+76740minor)pagefaults 0swaps