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 : 1045557 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 (3248282) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3248282) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24704184 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3248282'] with mtr_portfolio_ids : ['24704184'] and first list_photo_ids : [] new path : /proc/1045557/ Name: python3 Umask: 0002 State: R (running) Tgid: 1045557 Ngid: 0 Pid: 1045557 PPid: 1045556 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1045557 NSpid: 1045557 NSpgid: 1043973 NSsid: 1043973 VmPeak: 1106864 kB VmSize: 1106864 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100324 kB VmRSS: 100324 kB RssAnon: 59800 kB RssFile: 40524 kB RssShmem: 0 kB VmData: 865616 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 6/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: 39 nonvoluntary_ctxt_switches: 84 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1045557', 'Ngid': '0', 'Pid': '1045557', 'PPid': '1045556', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1045557', 'NSpid': '1045557', 'NSpgid': '1043973', 'NSsid': '1043973', 'VmPeak': '1106864 kB', 'VmSize': '1106864 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100324 kB', 'VmRSS': '100324 kB', 'RssAnon': '59800 kB', 'RssFile': '40524 kB', 'RssShmem': '0 kB', 'VmData': '865616 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '6/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': '39', 'nonvoluntary_ctxt_switches': '84'} ('datou_batch_current', '1045557', '1106864', '0', '1106864', '865616', '100324', b'', 'marlene', '3248282') 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 (24704184) 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 (3248282 ) ) 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 (24704184) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1371109835, 'portfolio_id': 24704184}, {'photo_id': 1371109833, 'portfolio_id': 24704184}, {'photo_id': 1371109831, 'portfolio_id': 24704184}, {'photo_id': 1371109829, 'portfolio_id': 24704184}, {'photo_id': 1371109826, 'portfolio_id': 24704184}, {'photo_id': 1371109822, 'portfolio_id': 24704184}, {'photo_id': 1371109798, 'portfolio_id': 24704184}, {'photo_id': 1371109797, 'portfolio_id': 24704184}, {'photo_id': 1371109796, 'portfolio_id': 24704184}, {'photo_id': 1371109794, 'portfolio_id': 24704184}, {'photo_id': 1371109791, 'portfolio_id': 24704184}, {'photo_id': 1371109785, 'portfolio_id': 24704184}, {'photo_id': 1371109758, 'portfolio_id': 24704184}, {'photo_id': 1371109755, 'portfolio_id': 24704184}, {'photo_id': 1371109753, 'portfolio_id': 24704184}, {'photo_id': 1371109751, 'portfolio_id': 24704184}, {'photo_id': 1371109749, 'portfolio_id': 24704184}, {'photo_id': 1371109746, 'portfolio_id': 24704184}, {'photo_id': 1371109720, 'portfolio_id': 24704184}, {'photo_id': 1371109718, 'portfolio_id': 24704184}, {'photo_id': 1371109716, 'portfolio_id': 24704184}, {'photo_id': 1371109713, 'portfolio_id': 24704184}, {'photo_id': 1371109710, 'portfolio_id': 24704184}, {'photo_id': 1371109700, 'portfolio_id': 24704184}, {'photo_id': 1371109687, 'portfolio_id': 24704184}, {'photo_id': 1371109684, 'portfolio_id': 24704184}, {'photo_id': 1371109681, 'portfolio_id': 24704184}, {'photo_id': 1371109678, 'portfolio_id': 24704184}, {'photo_id': 1371109674, 'portfolio_id': 24704184}, {'photo_id': 1371109671, 'portfolio_id': 24704184}, {'photo_id': 1371109656, 'portfolio_id': 24704184}, {'photo_id': 1371109655, 'portfolio_id': 24704184}, {'photo_id': 1371109651, 'portfolio_id': 24704184}, {'photo_id': 1371109648, 'portfolio_id': 24704184}, {'photo_id': 1371109643, 'portfolio_id': 24704184}, {'photo_id': 1371109638, 'portfolio_id': 24704184}, {'photo_id': 1371109623, 'portfolio_id': 24704184}, {'photo_id': 1371109622, 'portfolio_id': 24704184}, {'photo_id': 1371109620, 'portfolio_id': 24704184}, {'photo_id': 1371109618, 'portfolio_id': 24704184}, {'photo_id': 1371109613, 'portfolio_id': 24704184}, {'photo_id': 1371109609, 'portfolio_id': 24704184}, {'photo_id': 1371109593, 'portfolio_id': 24704184}, {'photo_id': 1371109592, 'portfolio_id': 24704184}, {'photo_id': 1371109583, 'portfolio_id': 24704184}, {'photo_id': 1371109579, 'portfolio_id': 24704184}, {'photo_id': 1371109576, 'portfolio_id': 24704184}, {'photo_id': 1371109572, 'portfolio_id': 24704184}, {'photo_id': 1371109555, 'portfolio_id': 24704184}, {'photo_id': 1371109554, 'portfolio_id': 24704184}, {'photo_id': 1371109550, 'portfolio_id': 24704184}, {'photo_id': 1371109546, 'portfolio_id': 24704184}, {'photo_id': 1371109542, 'portfolio_id': 24704184}, {'photo_id': 1371109537, 'portfolio_id': 24704184}, {'photo_id': 1371109521, 'portfolio_id': 24704184}, {'photo_id': 1371109519, 'portfolio_id': 24704184}, {'photo_id': 1371109517, 'portfolio_id': 24704184}, {'photo_id': 1371109514, 'portfolio_id': 24704184}, {'photo_id': 1371109510, 'portfolio_id': 24704184}, {'photo_id': 1371109499, 'portfolio_id': 24704184}, {'photo_id': 1371109489, 'portfolio_id': 24704184}, {'photo_id': 1371109487, 'portfolio_id': 24704184}, {'photo_id': 1371109483, 'portfolio_id': 24704184}, {'photo_id': 1371109478, 'portfolio_id': 24704184}, {'photo_id': 1371109473, 'portfolio_id': 24704184}, {'photo_id': 1371109469, 'portfolio_id': 24704184}, {'photo_id': 1371109462, 'portfolio_id': 24704184}, {'photo_id': 1371109461, 'portfolio_id': 24704184}, {'photo_id': 1371109458, 'portfolio_id': 24704184}, {'photo_id': 1371109454, 'portfolio_id': 24704184}, {'photo_id': 1371109450, 'portfolio_id': 24704184}, {'photo_id': 1371109436, 'portfolio_id': 24704184}, {'photo_id': 1371109326, 'portfolio_id': 24704184}, {'photo_id': 1371109293, 'portfolio_id': 24704184}, {'photo_id': 1371109258, 'portfolio_id': 24704184}, {'photo_id': 1371109222, 'portfolio_id': 24704184}, {'photo_id': 1371109188, 'portfolio_id': 24704184}] map_portfolio_id_photo_id: {24704184: [1371109835, 1371109833, 1371109831, 1371109829, 1371109826, 1371109822, 1371109798, 1371109797, 1371109796, 1371109794, 1371109791, 1371109785, 1371109758, 1371109755, 1371109753, 1371109751, 1371109749, 1371109746, 1371109720, 1371109718, 1371109716, 1371109713, 1371109710, 1371109700, 1371109687, 1371109684, 1371109681, 1371109678, 1371109674, 1371109671, 1371109656, 1371109655, 1371109651, 1371109648, 1371109643, 1371109638, 1371109623, 1371109622, 1371109620, 1371109618, 1371109613, 1371109609, 1371109593, 1371109592, 1371109583, 1371109579, 1371109576, 1371109572, 1371109555, 1371109554, 1371109550, 1371109546, 1371109542, 1371109537, 1371109521, 1371109519, 1371109517, 1371109514, 1371109510, 1371109499, 1371109489, 1371109487, 1371109483, 1371109478, 1371109473, 1371109469, 1371109462, 1371109461, 1371109458, 1371109454, 1371109450, 1371109436, 1371109326, 1371109293, 1371109258, 1371109222, 1371109188]} ##### 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.01527714729309082 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Jul 8 01:14:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24704184) 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 : 24704184 get user id for portfolio 24704184 get sub ptf for main ptf 24704184, type 3726 and hashtags ['cartonnette', 'flou', 'mal_croppe', 'metal', 'kraft', 'plastique', 'autre_refus', 'papier', 'Carton_brun', 'Carton_gris', 'environnement', 'Teint_Dans_La_Masse'] 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`=24704184 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','mal_croppe','metal','kraft','plastique','autre_refus','papier','Carton_brun','Carton_gris','environnement','Teint_Dans_La_Masse')) 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`=24704184 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','mal_croppe','metal','kraft','plastique','autre_refus','papier','Carton_brun','Carton_gris','environnement','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 24704184, 'sub_port_id': 24704187, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610583, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 2, 59)}, 'autre_refus': {'main_port_id': 24704184, 'sub_port_id': 24704188, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610584, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 2, 59)}, 'cartonnette': {'main_port_id': 24704184, 'sub_port_id': 24704189, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610585, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 2, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 24704184, 'sub_port_id': 24704190, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610586, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 2, 59)}, 'kraft': {'main_port_id': 24704184, 'sub_port_id': 24704191, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610587, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 2, 59)}, 'Carton_gris': {'main_port_id': 24704184, 'sub_port_id': 24704192, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610588, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 2, 59)}, 'papier': {'main_port_id': 24704184, 'sub_port_id': 24704193, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610589, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 2, 59)}, 'metal': {'main_port_id': 24704184, 'sub_port_id': 24704194, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610590, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 2, 59)}, 'Carton_brun': {'main_port_id': 24704184, 'sub_port_id': 24704195, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610591, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 2, 59)}, 'environnement': {'main_port_id': 24704184, 'sub_port_id': 24704196, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610592, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 2, 59)}, 'plastique': {'main_port_id': 24704184, 'sub_port_id': 24704197, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610593, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 2, 59)}, 'mal_croppe': {'main_port_id': 24704184, 'sub_port_id': 24704198, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610594, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 2, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24704187 , 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=24704184 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 (24704187) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24704184) result : ((1371109188,), (1371109222,), (1371109258,), (1371109293,), (1371109326,), (1371109436,), (1371109450,), (1371109454,), (1371109458,), (1371109461,), (1371109462,), (1371109469,), (1371109473,), (1371109478,), (1371109483,), (1371109487,), (1371109489,), (1371109499,), (1371109510,), (1371109514,), (1371109517,), (1371109519,), (1371109521,), (1371109537,), (1371109542,), (1371109546,), (1371109550,), (1371109554,), (1371109555,), (1371109572,), (1371109576,), (1371109579,), (1371109583,), (1371109592,), (1371109593,), (1371109609,), (1371109613,), (1371109618,), (1371109620,), (1371109622,), (1371109623,), (1371109638,), (1371109643,), (1371109648,), (1371109651,), (1371109655,), (1371109656,), (1371109671,), (1371109674,), (1371109678,), (1371109681,), (1371109684,), (1371109687,), (1371109700,), (1371109710,), (1371109713,), (1371109716,), (1371109718,), (1371109720,), (1371109746,), (1371109749,), (1371109751,), (1371109753,), (1371109755,), (1371109758,), (1371109785,), (1371109791,), (1371109794,), (1371109796,), (1371109797,), (1371109798,), (1371109822,), (1371109826,), (1371109829,), (1371109831,), (1371109833,), (1371109835,)) 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 (1371109700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24704188 , 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=24704184 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 (24704188) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24704184) result : ((1371109188,), (1371109222,), (1371109258,), (1371109293,), (1371109326,), (1371109436,), (1371109450,), (1371109454,), (1371109458,), (1371109461,), (1371109462,), (1371109469,), (1371109473,), (1371109478,), (1371109483,), (1371109487,), (1371109489,), (1371109499,), (1371109510,), (1371109514,), (1371109517,), (1371109519,), (1371109521,), (1371109537,), (1371109542,), (1371109546,), (1371109550,), (1371109554,), (1371109555,), (1371109572,), (1371109576,), (1371109579,), (1371109583,), (1371109592,), (1371109593,), (1371109609,), (1371109613,), (1371109618,), (1371109620,), (1371109622,), (1371109623,), (1371109638,), (1371109643,), (1371109648,), (1371109651,), (1371109655,), (1371109656,), (1371109671,), (1371109674,), (1371109678,), (1371109681,), (1371109684,), (1371109687,), (1371109700,), (1371109710,), (1371109713,), (1371109716,), (1371109718,), (1371109720,), (1371109746,), (1371109749,), (1371109751,), (1371109753,), (1371109755,), (1371109758,), (1371109785,), (1371109791,), (1371109794,), (1371109796,), (1371109797,), (1371109798,), (1371109822,), (1371109826,), (1371109829,), (1371109831,), (1371109833,), (1371109835,)) 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 (1371109700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24704189 , 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=24704184 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 (24704189) result : ((1371109727,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24704184) result : ((1371109188,), (1371109222,), (1371109258,), (1371109293,), (1371109326,), (1371109436,), (1371109450,), (1371109454,), (1371109458,), (1371109461,), (1371109462,), (1371109469,), (1371109473,), (1371109478,), (1371109483,), (1371109487,), (1371109489,), (1371109499,), (1371109510,), (1371109514,), (1371109517,), (1371109519,), (1371109521,), (1371109537,), (1371109542,), (1371109546,), (1371109550,), (1371109554,), (1371109555,), (1371109572,), (1371109576,), (1371109579,), (1371109583,), (1371109592,), (1371109593,), (1371109609,), (1371109613,), (1371109618,), (1371109620,), (1371109622,), (1371109623,), (1371109638,), (1371109643,), (1371109648,), (1371109651,), (1371109655,), (1371109656,), (1371109671,), (1371109674,), (1371109678,), (1371109681,), (1371109684,), (1371109687,), (1371109700,), (1371109710,), (1371109713,), (1371109716,), (1371109718,), (1371109720,), (1371109746,), (1371109749,), (1371109751,), (1371109753,), (1371109755,), (1371109758,), (1371109785,), (1371109791,), (1371109794,), (1371109796,), (1371109797,), (1371109798,), (1371109822,), (1371109826,), (1371109829,), (1371109831,), (1371109833,), (1371109835,)) 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 (1371109700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24704190 , 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=24704184 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 (24704190) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24704184) result : ((1371109188,), (1371109222,), (1371109258,), (1371109293,), (1371109326,), (1371109436,), (1371109450,), (1371109454,), (1371109458,), (1371109461,), (1371109462,), (1371109469,), (1371109473,), (1371109478,), (1371109483,), (1371109487,), (1371109489,), (1371109499,), (1371109510,), (1371109514,), (1371109517,), (1371109519,), (1371109521,), (1371109537,), (1371109542,), (1371109546,), (1371109550,), (1371109554,), (1371109555,), (1371109572,), (1371109576,), (1371109579,), (1371109583,), (1371109592,), (1371109593,), (1371109609,), (1371109613,), (1371109618,), (1371109620,), (1371109622,), (1371109623,), (1371109638,), (1371109643,), (1371109648,), (1371109651,), (1371109655,), (1371109656,), (1371109671,), (1371109674,), (1371109678,), (1371109681,), (1371109684,), (1371109687,), (1371109700,), (1371109710,), (1371109713,), (1371109716,), (1371109718,), (1371109720,), (1371109746,), (1371109749,), (1371109751,), (1371109753,), (1371109755,), (1371109758,), (1371109785,), (1371109791,), (1371109794,), (1371109796,), (1371109797,), (1371109798,), (1371109822,), (1371109826,), (1371109829,), (1371109831,), (1371109833,), (1371109835,)) 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 (1371109700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24704191 , 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=24704184 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 (24704191) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24704184) result : ((1371109188,), (1371109222,), (1371109258,), (1371109293,), (1371109326,), (1371109436,), (1371109450,), (1371109454,), (1371109458,), (1371109461,), (1371109462,), (1371109469,), (1371109473,), (1371109478,), (1371109483,), (1371109487,), (1371109489,), (1371109499,), (1371109510,), (1371109514,), (1371109517,), (1371109519,), (1371109521,), (1371109537,), (1371109542,), (1371109546,), (1371109550,), (1371109554,), (1371109555,), (1371109572,), (1371109576,), (1371109579,), (1371109583,), (1371109592,), (1371109593,), (1371109609,), (1371109613,), (1371109618,), (1371109620,), (1371109622,), (1371109623,), (1371109638,), (1371109643,), (1371109648,), (1371109651,), (1371109655,), (1371109656,), (1371109671,), (1371109674,), (1371109678,), (1371109681,), (1371109684,), (1371109687,), (1371109700,), (1371109710,), (1371109713,), (1371109716,), (1371109718,), (1371109720,), (1371109746,), (1371109749,), (1371109751,), (1371109753,), (1371109755,), (1371109758,), (1371109785,), (1371109791,), (1371109794,), (1371109796,), (1371109797,), (1371109798,), (1371109822,), (1371109826,), (1371109829,), (1371109831,), (1371109833,), (1371109835,)) 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 (1371109700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24704192 , 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=24704184 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 (24704192) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24704184) result : ((1371109188,), (1371109222,), (1371109258,), (1371109293,), (1371109326,), (1371109436,), (1371109450,), (1371109454,), (1371109458,), (1371109461,), (1371109462,), (1371109469,), (1371109473,), (1371109478,), (1371109483,), (1371109487,), (1371109489,), (1371109499,), (1371109510,), (1371109514,), (1371109517,), (1371109519,), (1371109521,), (1371109537,), (1371109542,), (1371109546,), (1371109550,), (1371109554,), (1371109555,), (1371109572,), (1371109576,), (1371109579,), (1371109583,), (1371109592,), (1371109593,), (1371109609,), (1371109613,), (1371109618,), (1371109620,), (1371109622,), (1371109623,), (1371109638,), (1371109643,), (1371109648,), (1371109651,), (1371109655,), (1371109656,), (1371109671,), (1371109674,), (1371109678,), (1371109681,), (1371109684,), (1371109687,), (1371109700,), (1371109710,), (1371109713,), (1371109716,), (1371109718,), (1371109720,), (1371109746,), (1371109749,), (1371109751,), (1371109753,), (1371109755,), (1371109758,), (1371109785,), (1371109791,), (1371109794,), (1371109796,), (1371109797,), (1371109798,), (1371109822,), (1371109826,), (1371109829,), (1371109831,), (1371109833,), (1371109835,)) 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 (1371109700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24704193 , 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=24704184 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 (24704193) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24704184) result : ((1371109188,), (1371109222,), (1371109258,), (1371109293,), (1371109326,), (1371109436,), (1371109450,), (1371109454,), (1371109458,), (1371109461,), (1371109462,), (1371109469,), (1371109473,), (1371109478,), (1371109483,), (1371109487,), (1371109489,), (1371109499,), (1371109510,), (1371109514,), (1371109517,), (1371109519,), (1371109521,), (1371109537,), (1371109542,), (1371109546,), (1371109550,), (1371109554,), (1371109555,), (1371109572,), (1371109576,), (1371109579,), (1371109583,), (1371109592,), (1371109593,), (1371109609,), (1371109613,), (1371109618,), (1371109620,), (1371109622,), (1371109623,), (1371109638,), (1371109643,), (1371109648,), (1371109651,), (1371109655,), (1371109656,), (1371109671,), (1371109674,), (1371109678,), (1371109681,), (1371109684,), (1371109687,), (1371109700,), (1371109710,), (1371109713,), (1371109716,), (1371109718,), (1371109720,), (1371109746,), (1371109749,), (1371109751,), (1371109753,), (1371109755,), (1371109758,), (1371109785,), (1371109791,), (1371109794,), (1371109796,), (1371109797,), (1371109798,), (1371109822,), (1371109826,), (1371109829,), (1371109831,), (1371109833,), (1371109835,)) 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 (1371109700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24704194 , 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=24704184 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 (24704194) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24704184) result : ((1371109188,), (1371109222,), (1371109258,), (1371109293,), (1371109326,), (1371109436,), (1371109450,), (1371109454,), (1371109458,), (1371109461,), (1371109462,), (1371109469,), (1371109473,), (1371109478,), (1371109483,), (1371109487,), (1371109489,), (1371109499,), (1371109510,), (1371109514,), (1371109517,), (1371109519,), (1371109521,), (1371109537,), (1371109542,), (1371109546,), (1371109550,), (1371109554,), (1371109555,), (1371109572,), (1371109576,), (1371109579,), (1371109583,), (1371109592,), (1371109593,), (1371109609,), (1371109613,), (1371109618,), (1371109620,), (1371109622,), (1371109623,), (1371109638,), (1371109643,), (1371109648,), (1371109651,), (1371109655,), (1371109656,), (1371109671,), (1371109674,), (1371109678,), (1371109681,), (1371109684,), (1371109687,), (1371109700,), (1371109710,), (1371109713,), (1371109716,), (1371109718,), (1371109720,), (1371109746,), (1371109749,), (1371109751,), (1371109753,), (1371109755,), (1371109758,), (1371109785,), (1371109791,), (1371109794,), (1371109796,), (1371109797,), (1371109798,), (1371109822,), (1371109826,), (1371109829,), (1371109831,), (1371109833,), (1371109835,)) 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 (1371109700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24704195 , 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=24704184 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 (24704195) result : ((1371109524,), (1371109525,), (1371109526,), (1371109564,), (1371109565,), (1371109566,), (1371109567,), (1371109568,), (1371109569,), (1371109570,), (1371109594,), (1371109595,), (1371109596,), (1371109597,), (1371109598,), (1371109600,), (1371109631,), (1371109632,), (1371109633,), (1371109635,), (1371109636,), (1371109637,), (1371109658,), (1371109659,), (1371109660,), (1371109661,), (1371109662,), (1371109663,), (1371109703,), (1371109704,), (1371109705,), (1371109706,), (1371109707,), (1371109708,), (1371109709,), (1371109729,), (1371109730,), (1371109731,), (1371109732,), (1371109735,), (1371109736,), (1371109737,), (1371109738,), (1371109739,), (1371109740,), (1371109776,), (1371109777,), (1371109778,), (1371109779,), (1371109780,), (1371109781,), (1371109782,), (1371109783,), (1371109784,), (1371109808,), (1371109809,), (1371109810,), (1371109811,), (1371109812,), (1371109813,), (1371109814,), (1371109815,), (1371109816,), (1371109849,), (1371109851,), (1371109852,), (1371109853,), (1371109854,), (1371109856,), (1371109857,), (1371109858,), (1371109876,), (1371109877,), (1371109878,), (1371109879,), (1371109880,), (1371109881,), (1371109882,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24704184) result : ((1371109188,), (1371109222,), (1371109258,), (1371109293,), (1371109326,), (1371109436,), (1371109450,), (1371109454,), (1371109458,), (1371109461,), (1371109462,), (1371109469,), (1371109473,), (1371109478,), (1371109483,), (1371109487,), (1371109489,), (1371109499,), (1371109510,), (1371109514,), (1371109517,), (1371109519,), (1371109521,), (1371109537,), (1371109542,), (1371109546,), (1371109550,), (1371109554,), (1371109555,), (1371109572,), (1371109576,), (1371109579,), (1371109583,), (1371109592,), (1371109593,), (1371109609,), (1371109613,), (1371109618,), (1371109620,), (1371109622,), (1371109623,), (1371109638,), (1371109643,), (1371109648,), (1371109651,), (1371109655,), (1371109656,), (1371109671,), (1371109674,), (1371109678,), (1371109681,), (1371109684,), (1371109687,), (1371109700,), (1371109710,), (1371109713,), (1371109716,), (1371109718,), (1371109720,), (1371109746,), (1371109749,), (1371109751,), (1371109753,), (1371109755,), (1371109758,), (1371109785,), (1371109791,), (1371109794,), (1371109796,), (1371109797,), (1371109798,), (1371109822,), (1371109826,), (1371109829,), (1371109831,), (1371109833,), (1371109835,)) 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 (1371109700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24704196 , 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=24704184 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 (24704196) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24704184) result : ((1371109188,), (1371109222,), (1371109258,), (1371109293,), (1371109326,), (1371109436,), (1371109450,), (1371109454,), (1371109458,), (1371109461,), (1371109462,), (1371109469,), (1371109473,), (1371109478,), (1371109483,), (1371109487,), (1371109489,), (1371109499,), (1371109510,), (1371109514,), (1371109517,), (1371109519,), (1371109521,), (1371109537,), (1371109542,), (1371109546,), (1371109550,), (1371109554,), (1371109555,), (1371109572,), (1371109576,), (1371109579,), (1371109583,), (1371109592,), (1371109593,), (1371109609,), (1371109613,), (1371109618,), (1371109620,), (1371109622,), (1371109623,), (1371109638,), (1371109643,), (1371109648,), (1371109651,), (1371109655,), (1371109656,), (1371109671,), (1371109674,), (1371109678,), (1371109681,), (1371109684,), (1371109687,), (1371109700,), (1371109710,), (1371109713,), (1371109716,), (1371109718,), (1371109720,), (1371109746,), (1371109749,), (1371109751,), (1371109753,), (1371109755,), (1371109758,), (1371109785,), (1371109791,), (1371109794,), (1371109796,), (1371109797,), (1371109798,), (1371109822,), (1371109826,), (1371109829,), (1371109831,), (1371109833,), (1371109835,)) 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 (1371109700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24704197 , 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=24704184 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 (24704197) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24704184) result : ((1371109188,), (1371109222,), (1371109258,), (1371109293,), (1371109326,), (1371109436,), (1371109450,), (1371109454,), (1371109458,), (1371109461,), (1371109462,), (1371109469,), (1371109473,), (1371109478,), (1371109483,), (1371109487,), (1371109489,), (1371109499,), (1371109510,), (1371109514,), (1371109517,), (1371109519,), (1371109521,), (1371109537,), (1371109542,), (1371109546,), (1371109550,), (1371109554,), (1371109555,), (1371109572,), (1371109576,), (1371109579,), (1371109583,), (1371109592,), (1371109593,), (1371109609,), (1371109613,), (1371109618,), (1371109620,), (1371109622,), (1371109623,), (1371109638,), (1371109643,), (1371109648,), (1371109651,), (1371109655,), (1371109656,), (1371109671,), (1371109674,), (1371109678,), (1371109681,), (1371109684,), (1371109687,), (1371109700,), (1371109710,), (1371109713,), (1371109716,), (1371109718,), (1371109720,), (1371109746,), (1371109749,), (1371109751,), (1371109753,), (1371109755,), (1371109758,), (1371109785,), (1371109791,), (1371109794,), (1371109796,), (1371109797,), (1371109798,), (1371109822,), (1371109826,), (1371109829,), (1371109831,), (1371109833,), (1371109835,)) 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 (1371109700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24704198 , 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=24704184 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 (24704198) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24704184) result : ((1371109188,), (1371109222,), (1371109258,), (1371109293,), (1371109326,), (1371109436,), (1371109450,), (1371109454,), (1371109458,), (1371109461,), (1371109462,), (1371109469,), (1371109473,), (1371109478,), (1371109483,), (1371109487,), (1371109489,), (1371109499,), (1371109510,), (1371109514,), (1371109517,), (1371109519,), (1371109521,), (1371109537,), (1371109542,), (1371109546,), (1371109550,), (1371109554,), (1371109555,), (1371109572,), (1371109576,), (1371109579,), (1371109583,), (1371109592,), (1371109593,), (1371109609,), (1371109613,), (1371109618,), (1371109620,), (1371109622,), (1371109623,), (1371109638,), (1371109643,), (1371109648,), (1371109651,), (1371109655,), (1371109656,), (1371109671,), (1371109674,), (1371109678,), (1371109681,), (1371109684,), (1371109687,), (1371109700,), (1371109710,), (1371109713,), (1371109716,), (1371109718,), (1371109720,), (1371109746,), (1371109749,), (1371109751,), (1371109753,), (1371109755,), (1371109758,), (1371109785,), (1371109791,), (1371109794,), (1371109796,), (1371109797,), (1371109798,), (1371109822,), (1371109826,), (1371109829,), (1371109831,), (1371109833,), (1371109835,)) 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 (1371109700) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24704184 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','mal_croppe','metal','kraft','plastique','autre_refus','papier','Carton_brun','Carton_gris','environnement','Teint_Dans_La_Masse')) 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`=24704184 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','flou','mal_croppe','metal','kraft','plastique','autre_refus','papier','Carton_brun','Carton_gris','environnement','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 24704184, 'sub_port_id': 24704199, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610595, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 3, 1)}, 'autre_refus': {'main_port_id': 24704184, 'sub_port_id': 24704200, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610596, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 3, 1)}, 'cartonnette': {'main_port_id': 24704184, 'sub_port_id': 24704201, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610597, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 3, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 24704184, 'sub_port_id': 24704202, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610598, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 3, 1)}, 'kraft': {'main_port_id': 24704184, 'sub_port_id': 24704203, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610599, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 3, 1)}, 'Carton_gris': {'main_port_id': 24704184, 'sub_port_id': 24704204, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610600, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 3, 1)}, 'papier': {'main_port_id': 24704184, 'sub_port_id': 24704205, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610601, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 3, 1)}, 'metal': {'main_port_id': 24704184, 'sub_port_id': 24704206, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610602, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 3, 1)}, 'Carton_brun': {'main_port_id': 24704184, 'sub_port_id': 24704207, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610603, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 3, 1)}, 'environnement': {'main_port_id': 24704184, 'sub_port_id': 24704208, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610604, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 3, 1)}, 'plastique': {'main_port_id': 24704184, 'sub_port_id': 24704209, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610605, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 3, 1), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 3, 1), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 3, 1)}, 'mal_croppe': {'main_port_id': 24704184, 'sub_port_id': 24704210, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16610606, 'last_updated_at': datetime.datetime(2025, 7, 8, 1, 12, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 8, 1, 12, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 8, 1, 3, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24704199,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24704187 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24704200,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24704188 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24704201,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24704189 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24704202,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24704190 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24704203,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24704191 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24704204,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24704192 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24704205,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24704193 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24704206,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24704194 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24704207,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24704195 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24704208,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24704196 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24704209,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24704197 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24704210,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24704198 lien utilise dans velours : https://www.fotonower.com/velours/24704199,24704200,24704201,24704202,24704203,24704204,24704205,24704206,24704207,24704208,24704209,24704210?tags=flou,autre_refus,cartonnette,Teint_Dans_La_Masse,kraft,Carton_gris,papier,metal,Carton_brun,environnement,plastique,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24704184]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1371109835, 1371109833, 1371109831, 1371109829, 1371109826, 1371109822, 1371109798, 1371109797, 1371109796, 1371109794, 1371109791, 1371109785] map_info['map_portfolio_photo'] : {24704184: [1371109835, 1371109833, 1371109831, 1371109829, 1371109826, 1371109822, 1371109798, 1371109797, 1371109796, 1371109794, 1371109791, 1371109785, 1371109758, 1371109755, 1371109753, 1371109751, 1371109749, 1371109746, 1371109720, 1371109718, 1371109716, 1371109713, 1371109710, 1371109700, 1371109687, 1371109684, 1371109681, 1371109678, 1371109674, 1371109671, 1371109656, 1371109655, 1371109651, 1371109648, 1371109643, 1371109638, 1371109623, 1371109622, 1371109620, 1371109618, 1371109613, 1371109609, 1371109593, 1371109592, 1371109583, 1371109579, 1371109576, 1371109572, 1371109555, 1371109554, 1371109550, 1371109546, 1371109542, 1371109537, 1371109521, 1371109519, 1371109517, 1371109514, 1371109510, 1371109499, 1371109489, 1371109487, 1371109483, 1371109478, 1371109473, 1371109469, 1371109462, 1371109461, 1371109458, 1371109454, 1371109450, 1371109436, 1371109326, 1371109293, 1371109258, 1371109222, 1371109188]} final : False mtd_id 4302 list_pids : [1371109835, 1371109833, 1371109831, 1371109829, 1371109826, 1371109822, 1371109798, 1371109797, 1371109796, 1371109794, 1371109791, 1371109785] Looping around the photos to save general results len do output : 1 /24704184. 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, '3248282') ('4302', '24704184', '1371109835', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109833', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109831', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109829', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109826', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109822', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109798', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109797', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109796', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109794', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109791', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109785', None, None, None, None, None, '3248282') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '24704184', "{'flou': 24704187, 'autre_refus': 24704188, 'cartonnette': 24704189, 'Teint_Dans_La_Masse': 24704190, 'kraft': 24704191, 'Carton_gris': 24704192, 'papier': 24704193, 'metal': 24704194, 'Carton_brun': 24704195, 'environnement': 24704196, 'plastique': 24704197, 'mal_croppe': 24704198}", None, None, None, None, '3248282'), ('4302', '24704184', '1371109835', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109833', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109831', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109829', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109826', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109822', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109798', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109797', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109796', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109794', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109791', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109785', None, None, None, None, None, '3248282')] time used for this insertion : 0.016486406326293945 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5296368598937988 time spend to save output : 0.016783475875854492 total time spend for step 1 : 0.5464203357696533 step2:final Tue Jul 8 01:14:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (24704184) 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 24704184 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1371109326,1371109293,1371109258,1371109222,1371109188,1371109462,1371109461,1371109458,1371109454,1371109450,1371109436,1371109489,1371109487,1371109483,1371109478,1371109473,1371109469,1371109521,1371109519,1371109517,1371109514,1371109510,1371109499,1371109555,1371109554,1371109550,1371109546,1371109542,1371109537,1371109593,1371109592,1371109583,1371109579,1371109576,1371109572,1371109623,1371109622,1371109620,1371109618,1371109613,1371109609,1371109656,1371109655,1371109651,1371109648,1371109643,1371109638,1371109687,1371109684,1371109681,1371109678,1371109674,1371109671,1371109720,1371109718,1371109716,1371109713,1371109710,1371109700,1371109758,1371109755,1371109753,1371109751,1371109749,1371109746,1371109798,1371109797,1371109796,1371109794,1371109791,1371109785,1371109835,1371109833,1371109831,1371109829,1371109826,1371109822); 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([24704184]) Inside saveOutput : final : False verbose : True original output for save of step final : {1371109835: ('0.05424128983681577',), 1371109833: ('0.05424128983681577',), 1371109831: ('0.05424128983681577',), 1371109829: ('0.05424128983681577',), 1371109826: ('0.05424128983681577',), 1371109822: ('0.05424128983681577',), 1371109798: ('0.05424128983681577',), 1371109797: ('0.05424128983681577',), 1371109796: ('0.05424128983681577',), 1371109794: ('0.05424128983681577',), 1371109791: ('0.05424128983681577',), 1371109785: ('0.05424128983681577',)} new output for save of step final : {1371109835: ('0.05424128983681577',), 1371109833: ('0.05424128983681577',), 1371109831: ('0.05424128983681577',), 1371109829: ('0.05424128983681577',), 1371109826: ('0.05424128983681577',), 1371109822: ('0.05424128983681577',), 1371109798: ('0.05424128983681577',), 1371109797: ('0.05424128983681577',), 1371109796: ('0.05424128983681577',), 1371109794: ('0.05424128983681577',), 1371109791: ('0.05424128983681577',), 1371109785: ('0.05424128983681577',)} [1371109835, 1371109833, 1371109831, 1371109829, 1371109826, 1371109822, 1371109798, 1371109797, 1371109796, 1371109794, 1371109791, 1371109785] map_info['map_portfolio_photo'] : {24704184: [1371109835, 1371109833, 1371109831, 1371109829, 1371109826, 1371109822, 1371109798, 1371109797, 1371109796, 1371109794, 1371109791, 1371109785, 1371109758, 1371109755, 1371109753, 1371109751, 1371109749, 1371109746, 1371109720, 1371109718, 1371109716, 1371109713, 1371109710, 1371109700, 1371109687, 1371109684, 1371109681, 1371109678, 1371109674, 1371109671, 1371109656, 1371109655, 1371109651, 1371109648, 1371109643, 1371109638, 1371109623, 1371109622, 1371109620, 1371109618, 1371109613, 1371109609, 1371109593, 1371109592, 1371109583, 1371109579, 1371109576, 1371109572, 1371109555, 1371109554, 1371109550, 1371109546, 1371109542, 1371109537, 1371109521, 1371109519, 1371109517, 1371109514, 1371109510, 1371109499, 1371109489, 1371109487, 1371109483, 1371109478, 1371109473, 1371109469, 1371109462, 1371109461, 1371109458, 1371109454, 1371109450, 1371109436, 1371109326, 1371109293, 1371109258, 1371109222, 1371109188]} final : False mtd_id 4302 list_pids : [1371109835, 1371109833, 1371109831, 1371109829, 1371109826, 1371109822, 1371109798, 1371109797, 1371109796, 1371109794, 1371109791, 1371109785] Looping around the photos to save general results len do output : 12 /1371109835.Didn't retrieve data . /1371109833.Didn't retrieve data . /1371109831.Didn't retrieve data . /1371109829.Didn't retrieve data . /1371109826.Didn't retrieve data . /1371109822.Didn't retrieve data . /1371109798.Didn't retrieve data . /1371109797.Didn't retrieve data . /1371109796.Didn't retrieve data . /1371109794.Didn't retrieve data . /1371109791.Didn't retrieve data . /1371109785.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, '3248282') ('4302', '24704184', '1371109835', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109833', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109831', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109829', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109826', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109822', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109798', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109797', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109796', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109794', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109791', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109785', None, None, None, None, None, '3248282') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '24704184', '1371109835', '0.05424128983681577', None, None, None, None, '3248282'), ('4302', '24704184', '1371109833', '0.05424128983681577', None, None, None, None, '3248282'), ('4302', '24704184', '1371109831', '0.05424128983681577', None, None, None, None, '3248282'), ('4302', '24704184', '1371109829', '0.05424128983681577', None, None, None, None, '3248282'), ('4302', '24704184', '1371109826', '0.05424128983681577', None, None, None, None, '3248282'), ('4302', '24704184', '1371109822', '0.05424128983681577', None, None, None, None, '3248282'), ('4302', '24704184', '1371109798', '0.05424128983681577', None, None, None, None, '3248282'), ('4302', '24704184', '1371109797', '0.05424128983681577', None, None, None, None, '3248282'), ('4302', '24704184', '1371109796', '0.05424128983681577', None, None, None, None, '3248282'), ('4302', '24704184', '1371109794', '0.05424128983681577', None, None, None, None, '3248282'), ('4302', '24704184', '1371109791', '0.05424128983681577', None, None, None, None, '3248282'), ('4302', '24704184', '1371109785', '0.05424128983681577', None, None, None, None, '3248282')] time used for this insertion : 0.015492916107177734 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0769357681274414 time spend to save output : 0.016058921813964844 total time spend for step 2 : 0.09299468994140625 step3:velours_tree Tue Jul 8 01:14:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {24704184: [{'flou': 24704187, 'autre_refus': 24704188, 'cartonnette': 24704189, 'Teint_Dans_La_Masse': 24704190, 'kraft': 24704191, 'Carton_gris': 24704192, 'papier': 24704193, 'metal': 24704194, 'Carton_brun': 24704195, 'environnement': 24704196, 'plastique': 24704197, 'mal_croppe': 24704198}]} input_args_next_step : {24704184: ()} output_args : {24704184: [{'flou': 24704187, 'autre_refus': 24704188, 'cartonnette': 24704189, 'Teint_Dans_La_Masse': 24704190, 'kraft': 24704191, 'Carton_gris': 24704192, 'papier': 24704193, 'metal': 24704194, 'Carton_brun': 24704195, 'environnement': 24704196, 'plastique': 24704197, 'mal_croppe': 24704198}]} args : 24704184 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'flou': 24704187, 'autre_refus': 24704188, 'cartonnette': 24704189, 'Teint_Dans_La_Masse': 24704190, 'kraft': 24704191, 'Carton_gris': 24704192, 'papier': 24704193, 'metal': 24704194, 'Carton_brun': 24704195, 'environnement': 24704196, 'plastique': 24704197, 'mal_croppe': 24704198},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24704184) 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([24704184]) 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.26514244079589844 time spend to save output : 3.981590270996094e-05 total time spend for step 3 : 0.2651822566986084 step4:send_mail_cod Tue Jul 8 01:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1371109835: ('0.05424128983681577',), 1371109833: ('0.05424128983681577',), 1371109831: ('0.05424128983681577',), 1371109829: ('0.05424128983681577',), 1371109826: ('0.05424128983681577',), 1371109822: ('0.05424128983681577',), 1371109798: ('0.05424128983681577',), 1371109797: ('0.05424128983681577',), 1371109796: ('0.05424128983681577',), 1371109794: ('0.05424128983681577',), 1371109791: ('0.05424128983681577',), 1371109785: ('0.05424128983681577',)} input_args_next_step : {1371109835: ()} output_args : {1371109835: ('0.05424128983681577',), 1371109833: ('0.05424128983681577',), 1371109831: ('0.05424128983681577',), 1371109829: ('0.05424128983681577',), 1371109826: ('0.05424128983681577',), 1371109822: ('0.05424128983681577',), 1371109798: ('0.05424128983681577',), 1371109797: ('0.05424128983681577',), 1371109796: ('0.05424128983681577',), 1371109794: ('0.05424128983681577',), 1371109791: ('0.05424128983681577',), 1371109785: ('0.05424128983681577',)} args : 1371109835 depend.output_id : 0 input_args_next_step : {1371109835: ('0.05424128983681577',), 1371109833: ()} output_args : {1371109835: ('0.05424128983681577',), 1371109833: ('0.05424128983681577',), 1371109831: ('0.05424128983681577',), 1371109829: ('0.05424128983681577',), 1371109826: ('0.05424128983681577',), 1371109822: ('0.05424128983681577',), 1371109798: ('0.05424128983681577',), 1371109797: ('0.05424128983681577',), 1371109796: ('0.05424128983681577',), 1371109794: ('0.05424128983681577',), 1371109791: ('0.05424128983681577',), 1371109785: ('0.05424128983681577',)} args : 1371109833 depend.output_id : 0 input_args_next_step : {1371109835: ('0.05424128983681577',), 1371109833: ('0.05424128983681577',), 1371109831: ()} output_args : {1371109835: ('0.05424128983681577',), 1371109833: ('0.05424128983681577',), 1371109831: ('0.05424128983681577',), 1371109829: ('0.05424128983681577',), 1371109826: ('0.05424128983681577',), 1371109822: ('0.05424128983681577',), 1371109798: ('0.05424128983681577',), 1371109797: ('0.05424128983681577',), 1371109796: ('0.05424128983681577',), 1371109794: ('0.05424128983681577',), 1371109791: ('0.05424128983681577',), 1371109785: ('0.05424128983681577',)} args : 1371109831 depend.output_id : 0 input_args_next_step : {1371109835: ('0.05424128983681577',), 1371109833: ('0.05424128983681577',), 1371109831: ('0.05424128983681577',), 1371109829: ()} output_args : {1371109835: ('0.05424128983681577',), 1371109833: ('0.05424128983681577',), 1371109831: ('0.05424128983681577',), 1371109829: ('0.05424128983681577',), 1371109826: ('0.05424128983681577',), 1371109822: ('0.05424128983681577',), 1371109798: ('0.05424128983681577',), 1371109797: ('0.05424128983681577',), 1371109796: ('0.05424128983681577',), 1371109794: ('0.05424128983681577',), 1371109791: ('0.05424128983681577',), 1371109785: ('0.05424128983681577',)} args : 1371109829 depend.output_id : 0 input_args_next_step : {1371109835: ('0.05424128983681577',), 1371109833: ('0.05424128983681577',), 1371109831: ('0.05424128983681577',), 1371109829: ('0.05424128983681577',), 1371109826: ()} output_args : {1371109835: ('0.05424128983681577',), 1371109833: ('0.05424128983681577',), 1371109831: ('0.05424128983681577',), 1371109829: ('0.05424128983681577',), 1371109826: ('0.05424128983681577',), 1371109822: ('0.05424128983681577',), 1371109798: ('0.05424128983681577',), 1371109797: ('0.05424128983681577',), 1371109796: ('0.05424128983681577',), 1371109794: ('0.05424128983681577',), 1371109791: ('0.05424128983681577',), 1371109785: ('0.05424128983681577',)} args : 1371109826 depend.output_id : 0 input_args_next_step : {1371109835: ('0.05424128983681577',), 1371109833: ('0.05424128983681577',), 1371109831: ('0.05424128983681577',), 1371109829: ('0.05424128983681577',), 1371109826: ('0.05424128983681577',), 1371109822: ()} output_args : {1371109835: ('0.05424128983681577',), 1371109833: ('0.05424128983681577',), 1371109831: ('0.05424128983681577',), 1371109829: ('0.05424128983681577',), 1371109826: ('0.05424128983681577',), 1371109822: ('0.05424128983681577',), 1371109798: ('0.05424128983681577',), 1371109797: ('0.05424128983681577',), 1371109796: ('0.05424128983681577',), 1371109794: ('0.05424128983681577',), 1371109791: ('0.05424128983681577',), 1371109785: ('0.05424128983681577',)} args : 1371109822 depend.output_id : 0 input_args_next_step : {1371109835: ('0.05424128983681577',), 1371109833: ('0.05424128983681577',), 1371109831: ('0.05424128983681577',), 1371109829: ('0.05424128983681577',), 1371109826: ('0.05424128983681577',), 1371109822: ('0.05424128983681577',), 1371109798: ()} output_args : {1371109835: ('0.05424128983681577',), 1371109833: ('0.05424128983681577',), 1371109831: ('0.05424128983681577',), 1371109829: ('0.05424128983681577',), 1371109826: ('0.05424128983681577',), 1371109822: ('0.05424128983681577',), 1371109798: ('0.05424128983681577',), 1371109797: ('0.05424128983681577',), 1371109796: ('0.05424128983681577',), 1371109794: ('0.05424128983681577',), 1371109791: ('0.05424128983681577',), 1371109785: ('0.05424128983681577',)} args : 1371109798 depend.output_id : 0 input_args_next_step : {1371109835: ('0.05424128983681577',), 1371109833: ('0.05424128983681577',), 1371109831: ('0.05424128983681577',), 1371109829: ('0.05424128983681577',), 1371109826: ('0.05424128983681577',), 1371109822: ('0.05424128983681577',), 1371109798: ('0.05424128983681577',), 1371109797: ()} output_args : {1371109835: ('0.05424128983681577',), 1371109833: ('0.05424128983681577',), 1371109831: ('0.05424128983681577',), 1371109829: ('0.05424128983681577',), 1371109826: ('0.05424128983681577',), 1371109822: ('0.05424128983681577',), 1371109798: ('0.05424128983681577',), 1371109797: ('0.05424128983681577',), 1371109796: ('0.05424128983681577',), 1371109794: ('0.05424128983681577',), 1371109791: ('0.05424128983681577',), 1371109785: ('0.05424128983681577',)} args : 1371109797 depend.output_id : 0 input_args_next_step : {1371109835: ('0.05424128983681577',), 1371109833: ('0.05424128983681577',), 1371109831: ('0.05424128983681577',), 1371109829: ('0.05424128983681577',), 1371109826: ('0.05424128983681577',), 1371109822: ('0.05424128983681577',), 1371109798: ('0.05424128983681577',), 1371109797: ('0.05424128983681577',), 1371109796: ()} output_args : {1371109835: ('0.05424128983681577',), 1371109833: ('0.05424128983681577',), 1371109831: ('0.05424128983681577',), 1371109829: ('0.05424128983681577',), 1371109826: ('0.05424128983681577',), 1371109822: ('0.05424128983681577',), 1371109798: ('0.05424128983681577',), 1371109797: ('0.05424128983681577',), 1371109796: ('0.05424128983681577',), 1371109794: ('0.05424128983681577',), 1371109791: ('0.05424128983681577',), 1371109785: ('0.05424128983681577',)} args : 1371109796 depend.output_id : 0 input_args_next_step : {1371109835: ('0.05424128983681577',), 1371109833: ('0.05424128983681577',), 1371109831: ('0.05424128983681577',), 1371109829: ('0.05424128983681577',), 1371109826: ('0.05424128983681577',), 1371109822: ('0.05424128983681577',), 1371109798: ('0.05424128983681577',), 1371109797: ('0.05424128983681577',), 1371109796: ('0.05424128983681577',), 1371109794: ()} output_args : {1371109835: ('0.05424128983681577',), 1371109833: ('0.05424128983681577',), 1371109831: ('0.05424128983681577',), 1371109829: ('0.05424128983681577',), 1371109826: ('0.05424128983681577',), 1371109822: ('0.05424128983681577',), 1371109798: ('0.05424128983681577',), 1371109797: ('0.05424128983681577',), 1371109796: ('0.05424128983681577',), 1371109794: ('0.05424128983681577',), 1371109791: ('0.05424128983681577',), 1371109785: ('0.05424128983681577',)} args : 1371109794 depend.output_id : 0 input_args_next_step : {1371109835: ('0.05424128983681577',), 1371109833: ('0.05424128983681577',), 1371109831: ('0.05424128983681577',), 1371109829: ('0.05424128983681577',), 1371109826: ('0.05424128983681577',), 1371109822: ('0.05424128983681577',), 1371109798: ('0.05424128983681577',), 1371109797: ('0.05424128983681577',), 1371109796: ('0.05424128983681577',), 1371109794: ('0.05424128983681577',), 1371109791: ()} output_args : {1371109835: ('0.05424128983681577',), 1371109833: ('0.05424128983681577',), 1371109831: ('0.05424128983681577',), 1371109829: ('0.05424128983681577',), 1371109826: ('0.05424128983681577',), 1371109822: ('0.05424128983681577',), 1371109798: ('0.05424128983681577',), 1371109797: ('0.05424128983681577',), 1371109796: ('0.05424128983681577',), 1371109794: ('0.05424128983681577',), 1371109791: ('0.05424128983681577',), 1371109785: ('0.05424128983681577',)} args : 1371109791 depend.output_id : 0 input_args_next_step : {1371109835: ('0.05424128983681577',), 1371109833: ('0.05424128983681577',), 1371109831: ('0.05424128983681577',), 1371109829: ('0.05424128983681577',), 1371109826: ('0.05424128983681577',), 1371109822: ('0.05424128983681577',), 1371109798: ('0.05424128983681577',), 1371109797: ('0.05424128983681577',), 1371109796: ('0.05424128983681577',), 1371109794: ('0.05424128983681577',), 1371109791: ('0.05424128983681577',), 1371109785: ()} output_args : {1371109835: ('0.05424128983681577',), 1371109833: ('0.05424128983681577',), 1371109831: ('0.05424128983681577',), 1371109829: ('0.05424128983681577',), 1371109826: ('0.05424128983681577',), 1371109822: ('0.05424128983681577',), 1371109798: ('0.05424128983681577',), 1371109797: ('0.05424128983681577',), 1371109796: ('0.05424128983681577',), 1371109794: ('0.05424128983681577',), 1371109791: ('0.05424128983681577',), 1371109785: ('0.05424128983681577',)} args : 1371109785 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 : {24704184: [{'flou': 24704187, 'autre_refus': 24704188, 'cartonnette': 24704189, 'Teint_Dans_La_Masse': 24704190, 'kraft': 24704191, 'Carton_gris': 24704192, 'papier': 24704193, 'metal': 24704194, 'Carton_brun': 24704195, 'environnement': 24704196, 'plastique': 24704197, 'mal_croppe': 24704198}]} input_args_next_step : {1371109835: ('0.05424128983681577',), 1371109833: ('0.05424128983681577',), 1371109831: ('0.05424128983681577',), 1371109829: ('0.05424128983681577',), 1371109826: ('0.05424128983681577',), 1371109822: ('0.05424128983681577',), 1371109798: ('0.05424128983681577',), 1371109797: ('0.05424128983681577',), 1371109796: ('0.05424128983681577',), 1371109794: ('0.05424128983681577',), 1371109791: ('0.05424128983681577',), 1371109785: ('0.05424128983681577',), 24704184: ()} output_args : {24704184: [{'flou': 24704187, 'autre_refus': 24704188, 'cartonnette': 24704189, 'Teint_Dans_La_Masse': 24704190, 'kraft': 24704191, 'Carton_gris': 24704192, 'papier': 24704193, 'metal': 24704194, 'Carton_brun': 24704195, 'environnement': 24704196, 'plastique': 24704197, 'mal_croppe': 24704198}]} args : 24704184 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 :13, first value : ('0.05424128983681577',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24704184) 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 (1371109835,1371109833,1371109831,1371109829,1371109826,1371109822,1371109798,1371109797,1371109796,1371109794,1371109791,1371109785) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1371109785 begin to download photo : 1371109796 begin to download photo : 1371109822 begin to download photo : 1371109831 download finish for photo 1371109822 begin to download photo : 1371109826 download finish for photo 1371109831 begin to download photo : 1371109833 download finish for photo 1371109796 begin to download photo : 1371109797 download finish for photo 1371109785 begin to download photo : 1371109791 download finish for photo 1371109826 begin to download photo : 1371109829 download finish for photo 1371109833 begin to download photo : 1371109835 download finish for photo 1371109797 begin to download photo : 1371109798 download finish for photo 1371109791 begin to download photo : 1371109794 download finish for photo 1371109829 download finish for photo 1371109835 download finish for photo 1371109798 download finish for photo 1371109794 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette247041871751930098/ imagette247041881751930098/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P24704184_08-07-2025_01_14_58.pdf 24704187 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=24704187 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247041871751930098 24704188 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=24704188 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247041881751930098 24704189 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=24704189 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371109727: '1751929804_1966451_1371109592_a066a88e035500d5b583908867db194b_rle_crop_3875418453_0.png'} change filename to text .imagette247041891751930098/ imagette247041891751930098/1751929804_1966451_1371109592_a066a88e035500d5b583908867db194b_rle_crop_3875418453_0.png.png imagette247041911751930098/ imagette247041941751930098/ imagette247041971751930098/ imagette247041981751930098/ imagette247041901751930098/ imagette247041921751930098/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/b1732a888699ccc4516e9e68fc1d9848_89150015.png imagette247041891751930098 24704191 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=24704191 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247041911751930098 24704194 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=24704194 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247041941751930098 24704197 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=24704197 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247041971751930098 24704198 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=24704198 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247041981751930098 24704190 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=24704190 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247041901751930098 24704192 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=24704192 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette247041921751930098 24704195 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=24704195 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1371109780: '1751929884_3105604_1371109681_1b9d9a9410264d46c8860b3453f5beab_rle_crop_3875418643_0.png', 1371109812: '1751929925_1970217_1371109648_5d1f39a99d37f5b63de8057fbb69ccd7_rle_crop_3875418827_0.png', 1371109811: '1751929925_1970217_1371109651_de23050f6a0bc885cb948aa82f999872_rle_crop_3875418816_0.png', 1371109810: '1751929925_1970217_1371109655_124f962a2788b041f93cbccae5c61469_rle_crop_3875418801_0.png', 1371109809: '1751929925_1970217_1371109655_124f962a2788b041f93cbccae5c61469_rle_crop_3875418807_0.png', 1371109808: '1751929925_1970217_1371109656_9711527f1524e21cba47a8dd1c8fb6c5_rle_crop_3875418797_0.png', 1371109784: '1751929884_3105604_1371109671_810883a644830580ddb91874e240238e_rle_crop_3875418678_0.png', 1371109783: '1751929884_3105604_1371109674_02f20a32cc5de1ac61c0a59f76ad5bc3_rle_crop_3875418667_0.png', 1371109782: '1751929884_3105604_1371109678_bf775f678c5d9f649a57cd7b9f4c0a92_rle_crop_3875418654_0.png', 1371109781: '1751929884_3105604_1371109678_bf775f678c5d9f649a57cd7b9f4c0a92_rle_crop_3875418657_0.png', 1371109813: '1751929925_1970217_1371109648_5d1f39a99d37f5b63de8057fbb69ccd7_rle_crop_3875418823_0.png', 1371109779: '1751929884_3105604_1371109681_1b9d9a9410264d46c8860b3453f5beab_rle_crop_3875418647_0.png', 1371109778: '1751929884_3105604_1371109684_35002515549ccaf47d2da4a2f1187645_rle_crop_3875418632_0.png', 1371109777: '1751929884_3105604_1371109684_35002515549ccaf47d2da4a2f1187645_rle_crop_3875418637_0.png', 1371109776: '1751929884_3105604_1371109687_bb3d8648e065b84fc60f1124ba70acbd_rle_crop_3875418628_0.png', 1371109740: '1751929804_1966451_1371109572_4df589dee35981b397f48711816e9999_rle_crop_3875418508_0.png', 1371109739: '1751929804_1966451_1371109576_44c2490b1e7db1fc1ca05208050981ed_rle_crop_3875418495_0.png', 1371109738: '1751929804_1966451_1371109576_44c2490b1e7db1fc1ca05208050981ed_rle_crop_3875418499_0.png', 1371109737: '1751929804_1966451_1371109579_d0a323cac22945548a7aab8399fa73e1_rle_crop_3875418472_0.png', 1371109736: '1751929804_1966451_1371109579_d0a323cac22945548a7aab8399fa73e1_rle_crop_3875418476_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/45f7a7661a446aa6499d2ea80912402a_8203792.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/6c5aa24243d43284485b5ebe4674be7c_85628557.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/086a12700f16908fa67edc063035edbc_74297275.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/df2b2a2ac5614f2866c17da277db0a70_2863237.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/4251e59530e0dae1fbf17f54d4726a9c_74648835.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/a791940afc509e5c39929c22347076e7_48962061.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/8e222128c661916f9c93feaf854cae30_84150322.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/ec27bfec949230af695a91b4e8793a5b_48132647.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/bb610d63498d170bde65e7a0b0c83510_73998740.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/1fd4e51033cb4905aaa6e486b3fce80d_60111312.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/07f277ef2182fd89216223a4e1a17f9e_93911810.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/3d3a979a33be367bdaf27ef778c2fcfa_24643784.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/ce91c3809318ed83ac3924c40d8ac4fa_19054331.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/cc2909fdf7aa8132973b3115c1c46ef3_60858971.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/66f65ff1dceb3352e6010db7fdbf5234_55978410.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/4e2827b22fd7d5a35d76d97ae9ef4c23_34302596.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/88a191548345086570e2207c9586407e_69199422.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/68ce30ce77053d09ec17e0172f2e3230_89070760.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/a63c70e023c636a8b6953b1ca389b0e4_95849670.png change filename to text .imagette247041951751930098/ imagette247041951751930098/1751929804_1966451_1371109579_d0a323cac22945548a7aab8399fa73e1_rle_crop_3875418472_0.png.png imagette247041951751930098/1751929925_1970217_1371109656_9711527f1524e21cba47a8dd1c8fb6c5_rle_crop_3875418797_0.png.png imagette247041951751930098/1751929925_1970217_1371109655_124f962a2788b041f93cbccae5c61469_rle_crop_3875418807_0.png.png imagette247041951751930098/1751929884_3105604_1371109674_02f20a32cc5de1ac61c0a59f76ad5bc3_rle_crop_3875418667_0.png.png imagette247041951751930098/1751929884_3105604_1371109681_1b9d9a9410264d46c8860b3453f5beab_rle_crop_3875418647_0.png.png imagette247041951751930098/1751929884_3105604_1371109678_bf775f678c5d9f649a57cd7b9f4c0a92_rle_crop_3875418654_0.png.png imagette247041951751930098/1751929925_1970217_1371109651_de23050f6a0bc885cb948aa82f999872_rle_crop_3875418816_0.png.png imagette247041951751930098/1751929925_1970217_1371109648_5d1f39a99d37f5b63de8057fbb69ccd7_rle_crop_3875418823_0.png.png imagette247041951751930098/1751929884_3105604_1371109678_bf775f678c5d9f649a57cd7b9f4c0a92_rle_crop_3875418657_0.png.png imagette247041951751930098/1751929884_3105604_1371109681_1b9d9a9410264d46c8860b3453f5beab_rle_crop_3875418643_0.png.png imagette247041951751930098/1751929925_1970217_1371109655_124f962a2788b041f93cbccae5c61469_rle_crop_3875418801_0.png.png imagette247041951751930098/1751929884_3105604_1371109671_810883a644830580ddb91874e240238e_rle_crop_3875418678_0.png.png imagette247041951751930098/1751929804_1966451_1371109572_4df589dee35981b397f48711816e9999_rle_crop_3875418508_0.png.png imagette247041951751930098/1751929925_1970217_1371109648_5d1f39a99d37f5b63de8057fbb69ccd7_rle_crop_3875418827_0.png.png imagette247041951751930098/1751929884_3105604_1371109684_35002515549ccaf47d2da4a2f1187645_rle_crop_3875418637_0.png.png imagette247041951751930098/1751929804_1966451_1371109576_44c2490b1e7db1fc1ca05208050981ed_rle_crop_3875418499_0.png.png imagette247041951751930098/1751929804_1966451_1371109579_d0a323cac22945548a7aab8399fa73e1_rle_crop_3875418476_0.png.png imagette247041951751930098/1751929884_3105604_1371109687_bb3d8648e065b84fc60f1124ba70acbd_rle_crop_3875418628_0.png.png imagette247041951751930098/1751929884_3105604_1371109684_35002515549ccaf47d2da4a2f1187645_rle_crop_3875418632_0.png.png imagette247041951751930098/1751929804_1966451_1371109576_44c2490b1e7db1fc1ca05208050981ed_rle_crop_3875418495_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/0a995e2281a6dceafe408483e0eca14f_46603005.png imagette247041951751930098 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24704184 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24704199,24704200,24704201,24704202,24704203,24704204,24704205,24704206,24704207,24704208,24704209,24704210?tags=flou,autre_refus,cartonnette,Teint_Dans_La_Masse,kraft,Carton_gris,papier,metal,Carton_brun,environnement,plastique,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1371109835] : ('0.05424128983681577',) no score found for photo 1371109835 We are sending mail with results at report@fotonower.com args[1371109833] : ('0.05424128983681577',) no score found for photo 1371109833 We are sending mail with results at report@fotonower.com args[1371109831] : ('0.05424128983681577',) no score found for photo 1371109831 We are sending mail with results at report@fotonower.com args[1371109829] : ('0.05424128983681577',) no score found for photo 1371109829 We are sending mail with results at report@fotonower.com args[1371109826] : ('0.05424128983681577',) no score found for photo 1371109826 We are sending mail with results at report@fotonower.com args[1371109822] : ('0.05424128983681577',) no score found for photo 1371109822 We are sending mail with results at report@fotonower.com args[1371109798] : ('0.05424128983681577',) no score found for photo 1371109798 We are sending mail with results at report@fotonower.com args[1371109797] : ('0.05424128983681577',) no score found for photo 1371109797 We are sending mail with results at report@fotonower.com args[1371109796] : ('0.05424128983681577',) no score found for photo 1371109796 We are sending mail with results at report@fotonower.com args[1371109794] : ('0.05424128983681577',) no score found for photo 1371109794 We are sending mail with results at report@fotonower.com args[1371109791] : ('0.05424128983681577',) no score found for photo 1371109791 We are sending mail with results at report@fotonower.com args[1371109785] : ('0.05424128983681577',) no score found for photo 1371109785 We are sending mail with results at report@fotonower.com refus_total : 0.05424128983681577 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=24704184 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_P24704184_08-07-2025_01_14_58.pdf results_Auto_P24704184_08-07-2025_01_14_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24704184_08-07-2025_01_14_58.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','24704184','results_Auto_P24704184_08-07-2025_01_14_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24704184_08-07-2025_01_14_58.pdf','pdf','','0.16','0.05424128983681577') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24704184]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1371109835, 1371109833, 1371109831, 1371109829, 1371109826, 1371109822, 1371109798, 1371109797, 1371109796, 1371109794, 1371109791, 1371109785] map_info['map_portfolio_photo'] : {24704184: [1371109835, 1371109833, 1371109831, 1371109829, 1371109826, 1371109822, 1371109798, 1371109797, 1371109796, 1371109794, 1371109791, 1371109785, 1371109758, 1371109755, 1371109753, 1371109751, 1371109749, 1371109746, 1371109720, 1371109718, 1371109716, 1371109713, 1371109710, 1371109700, 1371109687, 1371109684, 1371109681, 1371109678, 1371109674, 1371109671, 1371109656, 1371109655, 1371109651, 1371109648, 1371109643, 1371109638, 1371109623, 1371109622, 1371109620, 1371109618, 1371109613, 1371109609, 1371109593, 1371109592, 1371109583, 1371109579, 1371109576, 1371109572, 1371109555, 1371109554, 1371109550, 1371109546, 1371109542, 1371109537, 1371109521, 1371109519, 1371109517, 1371109514, 1371109510, 1371109499, 1371109489, 1371109487, 1371109483, 1371109478, 1371109473, 1371109469, 1371109462, 1371109461, 1371109458, 1371109454, 1371109450, 1371109436, 1371109326, 1371109293, 1371109258, 1371109222, 1371109188]} final : False mtd_id 4302 list_pids : [1371109835, 1371109833, 1371109831, 1371109829, 1371109826, 1371109822, 1371109798, 1371109797, 1371109796, 1371109794, 1371109791, 1371109785] 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, '3248282') ('4302', '24704184', '1371109835', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109833', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109831', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109829', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109826', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109822', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109798', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109797', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109796', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109794', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109791', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109785', None, None, None, None, None, '3248282') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '24704184', '1371109835', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109833', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109831', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109829', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109826', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109822', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109798', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109797', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109796', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109794', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109791', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109785', None, None, None, None, None, '3248282')] time used for this insertion : 0.014579534530639648 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.7290198802948 time spend to save output : 0.01479959487915039 total time spend for step 4 : 2.74381947517395 step5:split_time_score Tue Jul 8 01:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['24704184'] 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 : [('24704184',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24704184) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1371109822: {'path': 'temp/1751930098_1045557_1371109822_111ccbc9d7c2d9d167bac626f497d037.jpg', 'extension': 'jpg'}, 1371109826: {'path': 'temp/1751930098_1045557_1371109826_58a13367c2884ad4cccd7b4e75b02db2.jpg', 'extension': 'jpg'}, 1371109829: {'path': 'temp/1751930098_1045557_1371109829_f08f182faaba0e6f4ff7655b7615207b.jpg', 'extension': 'jpg'}, 1371109831: {'path': 'temp/1751930098_1045557_1371109831_e019348dcfe870ed4e7043479967b07e.jpg', 'extension': 'jpg'}, 1371109833: {'path': 'temp/1751930098_1045557_1371109833_6b237f7ce0ce5ae892aef5550f81400a.jpg', 'extension': 'jpg'}, 1371109835: {'path': 'temp/1751930098_1045557_1371109835_55a6c251f76209e366b4c1bf9c23d82e.jpg', 'extension': 'jpg'}, 1371109796: {'path': 'temp/1751930098_1045557_1371109796_7767226bc6b205e95f03e43dd06ea8ae.jpg', 'extension': 'jpg'}, 1371109797: {'path': 'temp/1751930098_1045557_1371109797_0138ac10b641322b6634d5ceca47aaa0.jpg', 'extension': 'jpg'}, 1371109798: {'path': 'temp/1751930098_1045557_1371109798_3e4a3ffa6b7ff4d071d77d4580c9d30c.jpg', 'extension': 'jpg'}, 1371109785: {'path': 'temp/1751930098_1045557_1371109785_6762f98a48a08c45006b9c6d79ce60cf.jpg', 'extension': 'jpg'}, 1371109791: {'path': 'temp/1751930098_1045557_1371109791_10d93ce9b0f03bf19132dd632ec3eb9e.jpg', 'extension': 'jpg'}, 1371109794: {'path': 'temp/1751930098_1045557_1371109794_5546c61361eb2d7c792875100d140ec0.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 = 24704184; (('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 = 24704184 group by h (('01', 77),) 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=24704184 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 (24704184) 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 (24704184) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 08072025 24704184 Nombre de photos uploadées : 77 / 23040 (0%) 08072025 24704184 Nombre de photos taguées (types de déchets): 0 / 77 (0%) 08072025 24704184 Nombre de photos taguées (volume) : 0 / 77 (0%) [{'photo_id': 1371109326, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/c96a3ddb301f06e9f81c85c5d1c780ad.jpg', 'username': None, 'uploaded_at': 1751929263, 'text': 'image_08072025_01_00_14_010202m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371109293, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/88179c06b0a0301c475814fc2cc93256.jpg', 'username': None, 'uploaded_at': 1751929263, 'text': 'image_08072025_01_00_24_010139m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371109258, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/aa159f0460942166883e039496ff0283.jpg', 'username': None, 'uploaded_at': 1751929263, 'text': 'image_08072025_01_00_34_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1371109222, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/8/0e77e11a1bc67fba12579794904dd9b8.jpg', 'username': None, 'uploaded_at': 1751929263, 'text': 'image_08072025_01_00_44_010135m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.004394054412841797 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 24704184, '2025-07-08' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1960471,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.021823644638061523 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= 1960471 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1960471, 'dashboard_run_id': 1967943, 'mtr_portfolio_id': 24702229, 'dashboard_result_id': 12256350, '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_P24702229_08-07-2025_00_16_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24702291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702302, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1967943, 'mtr_portfolio_id': 24702755, 'dashboard_result_id': 12256351, '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_P24702755_08-07-2025_00_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24702774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702781, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1967943, 'mtr_portfolio_id': 24703205, 'dashboard_result_id': 12256352, '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_P24703205_08-07-2025_00_46_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703278, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1967943, 'mtr_portfolio_id': 24703713, 'dashboard_result_id': 12256353, '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_P24703713_08-07-2025_01_01_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703739, 'pht': 3726}}"}, {'dashboat_entry_day': 1960471, 'dashboard_run_id': 1967943, 'mtr_portfolio_id': 24704184, 'dashboard_result_id': 12256354, '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_P24704184_08-07-2025_01_12_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24704187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704198, '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 = 24702229 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': 3248100, 'mtr_portfolio_id': 24702229, 'created_at': datetime.datetime(2025, 7, 8, 0, 16, 29), 'result': '0.03432764518805383', 'result_long': None, 'result_double': None}] Qualite : 0.03432764518805383 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24702229 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702229_08-07-2025_00_16_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24702229 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_P24702229_08-07-2025_00_16_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24702291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702302, 'pht': 3726}}" where mtr_portfolio_id = 24702229 and dashboard_run_id = 1967943 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`=24702229 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12256350, 0.03432764518805383, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702229_08-07-2025_00_16_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24702291, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702293, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702294, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702296, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702297, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702298, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702299, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702300, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702301, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702302, '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 = 24702755 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': 3248151, 'mtr_portfolio_id': 24702755, 'created_at': datetime.datetime(2025, 7, 8, 0, 32, 58), 'result': '0.029028561484370358', 'result_long': None, 'result_double': None}] Qualite : 0.029028561484370358 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24702755 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702755_08-07-2025_00_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24702755 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_P24702755_08-07-2025_00_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24702774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702781, 'pht': 3726}}" where mtr_portfolio_id = 24702755 and dashboard_run_id = 1967944 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`=24702755 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12256351, 0.029028561484370358, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24702755_08-07-2025_00_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24702770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24702771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24702772, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24702773, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24702774, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24702775, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24702776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24702777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24702778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24702779, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24702780, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24702781, '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 = 24703205 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': 3248189, 'mtr_portfolio_id': 24703205, 'created_at': datetime.datetime(2025, 7, 8, 0, 46, 30), 'result': '0.0338677238874439', 'result_long': None, 'result_double': None}] Qualite : 0.0338677238874439 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24703205 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703205_08-07-2025_00_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24703205 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_P24703205_08-07-2025_00_46_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703278, 'pht': 3726}}" where mtr_portfolio_id = 24703205 and dashboard_run_id = 1967944 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`=24703205 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12256352, 0.0338677238874439, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703205_08-07-2025_00_46_31.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703268, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703271, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703272, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703273, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703275, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703277, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703278, '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 = 24703713 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': 3248233, 'mtr_portfolio_id': 24703713, 'created_at': datetime.datetime(2025, 7, 8, 1, 0, 58), 'result': '0.03287787548647065', 'result_long': None, 'result_double': None}] Qualite : 0.03287787548647065 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24703713 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703713_08-07-2025_01_01_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24703713 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_P24703713_08-07-2025_01_01_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703739, 'pht': 3726}}" where mtr_portfolio_id = 24703713 and dashboard_run_id = 1967944 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`=24703713 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12256353, 0.03287787548647065, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24703713_08-07-2025_01_01_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24703728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24703729, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24703730, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24703731, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24703732, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24703733, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24703734, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24703735, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24703736, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24703737, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24703738, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24703739, '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 = 24704184 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': 3248282, 'mtr_portfolio_id': 24704184, 'created_at': datetime.datetime(2025, 7, 8, 1, 14, 57), 'result': '0.05424128983681577', 'result_long': None, 'result_double': None}] Qualite : 0.05424128983681577 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24704184 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24704184_08-07-2025_01_14_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24704184 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_P24704184_08-07-2025_01_14_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24704187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704198, 'pht': 3726}}" where mtr_portfolio_id = 24704184 and dashboard_run_id = 1967944 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`=24704184 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12256354, 0.05424128983681577, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24704184_08-07-2025_01_14_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24704187, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24704188, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24704189, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24704190, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24704191, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24704192, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24704193, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24704194, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24704195, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24704196, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24704197, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24704198, '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 (24702229,24702755,24703205,24703713,24704184) result : ((1371103946,), (1371103951,), (1371103984,), (1371103989,), (1371103998,), (1371104125,), (1371104160,), (1371104195,), (1371104223,), (1371104232,), (1371104236,), (1371104398,), (1371104404,), (1371104407,), (1371104408,), (1371104411,), (1371104414,), (1371104420,), (1371104422,), (1371104424,), (1371104427,), (1371104430,), (1371104432,), (1371104435,), (1371104437,), (1371104440,), (1371104443,), (1371104445,), (1371104449,), (1371104484,), (1371104486,), (1371104489,), (1371104496,), (1371104533,), (1371104536,), (1371104541,), (1371104546,), (1371104549,), (1371104578,), (1371104613,), (1371104634,), (1371104648,), (1371104658,), (1371104662,), (1371104667,), (1371104671,), (1371104674,), (1371104686,), (1371104690,), (1371104695,), (1371104701,), (1371104711,), (1371104713,), (1371104734,), (1371104740,), (1371104745,), (1371104750,), (1371104753,), (1371104754,), (1371104789,), (1371104792,), (1371104795,), (1371104798,), (1371104800,), (1371104803,), (1371104825,), (1371104831,), (1371104833,), (1371104835,), (1371104837,), (1371104845,), (1371104874,), (1371104891,), (1371104896,), (1371104899,), (1371104902,), (1371104920,), (1371104959,), (1371104970,), (1371104973,), (1371104977,), (1371104980,), (1371104982,), (1371104990,), (1371104994,), (1371104999,), (1371105001,), (1371105004,), (1371105006,), (1371105016,), (1371105025,), (1371105029,), (1371105034,), (1371105039,), (1371105041,), (1371105058,), (1371105063,), (1371105066,), (1371105069,), (1371105076,), (1371105082,), (1371105095,), (1371105103,), (1371105106,), (1371105108,), (1371105110,), (1371105111,), (1371105131,), (1371105135,), (1371105141,), (1371105146,), (1371105150,), (1371105153,), (1371105163,), (1371105177,), (1371105189,), (1371105191,), (1371105194,), (1371105195,), (1371105216,), (1371105220,), (1371105224,), (1371105227,), (1371105231,), (1371105234,), (1371105244,), (1371105258,), (1371105268,), (1371105271,), (1371105274,), (1371105276,), (1371105308,), (1371105311,), (1371105316,), (1371105319,), (1371105323,), (1371105326,), (1371105336,), (1371105350,), (1371105352,), (1371105354,), (1371105357,), (1371105360,), (1371105382,), (1371105386,), (1371105390,), (1371105394,), (1371105398,), (1371105400,), (1371105425,), (1371105437,), (1371105444,), (1371105448,), (1371105451,), (1371105453,), (1371105473,), (1371105478,), (1371105482,), (1371105486,), (1371105489,), (1371105492,), (1371105506,), (1371105513,), (1371105520,), (1371105530,), (1371105534,), (1371105535,), (1371105575,), (1371105584,), (1371105597,), (1371105599,), (1371105601,), (1371105602,), (1371105655,), (1371105665,), (1371105715,), (1371105727,), (1371105731,), (1371105732,), (1371105757,), (1371105826,), (1371105830,), (1371105833,), (1371105845,), (1371105857,), (1371105896,), (1371105921,), (1371105925,), (1371105940,), (1371105948,), (1371105950,), (1371106000,), (1371106003,), (1371106007,), (1371106010,), (1371106013,), (1371106017,), (1371106186,), (1371106226,), (1371106262,), (1371106296,), (1371106330,), (1371106362,), (1371106568,), (1371106605,), (1371106636,), (1371106641,), (1371106645,), (1371106647,), (1371106683,), (1371106718,), (1371106760,), (1371106796,), (1371106827,), (1371106839,), (1371106906,), (1371106910,), (1371106914,), (1371106919,), (1371106924,), (1371106927,), (1371106941,), (1371106952,), (1371106957,), (1371106966,), (1371106969,), (1371106971,), (1371106984,), (1371106989,), (1371106992,), (1371106998,), (1371107002,), (1371107004,), (1371107018,), (1371107032,), (1371107037,), (1371107041,), (1371107045,), (1371107048,), (1371107069,), (1371107074,), (1371107077,), (1371107081,), (1371107082,), (1371107090,), (1371107118,), (1371107122,), (1371107127,), (1371107129,), (1371107131,), (1371107132,), (1371107145,), (1371107156,), (1371107160,), (1371107163,), (1371107165,), (1371107166,), (1371107186,), (1371107189,), (1371107193,), (1371107196,), (1371107199,), (1371107202,), (1371107212,), (1371107217,), (1371107222,), (1371107227,), (1371107238,), (1371107240,), (1371107259,), (1371107264,), (1371107271,), (1371107273,), (1371107275,), (1371107276,), (1371107293,), (1371107302,), (1371107304,), (1371107307,), (1371107309,), (1371107311,), (1371107333,), (1371107341,), (1371107352,), (1371107356,), (1371107359,), (1371107360,), (1371107381,), (1371107386,), (1371107391,), (1371107395,), (1371107399,), (1371107400,), (1371107417,), (1371107421,), (1371107425,), (1371107428,), (1371107431,), (1371107434,), (1371107450,), (1371107455,), (1371107459,), (1371107464,), (1371107468,), (1371107471,), (1371107481,), (1371107486,), (1371107491,), (1371107496,), (1371107500,), (1371107502,), (1371107513,), (1371107518,), (1371107523,), (1371107527,), (1371107531,), (1371107533,), (1371107542,), (1371107546,), (1371107557,), (1371107561,), (1371107565,), (1371107567,), (1371107598,), (1371107601,), (1371107604,), (1371107608,), (1371107611,), (1371107613,), (1371107616,), (1371107627,), (1371107638,), (1371107649,), (1371107654,), (1371107656,), (1371107670,), (1371107674,), (1371107682,), (1371107686,), (1371107689,), (1371107694,), (1371107910,), (1371107954,), (1371107989,), (1371108019,), (1371108050,), (1371108095,), (1371108907,), (1371108975,), (1371109030,), (1371109069,), (1371109105,), (1371109137,), (1371109188,), (1371109222,), (1371109258,), (1371109293,), (1371109326,), (1371109436,), (1371109450,), (1371109454,), (1371109458,), (1371109461,), (1371109462,), (1371109469,), (1371109473,), (1371109478,), (1371109483,), (1371109487,), (1371109489,), (1371109499,), (1371109510,), (1371109514,), (1371109517,), (1371109519,), (1371109521,), (1371109537,), (1371109542,), (1371109546,), (1371109550,), (1371109554,), (1371109555,), (1371109572,), (1371109576,), (1371109579,), (1371109583,), (1371109592,), (1371109593,), (1371109609,), (1371109613,), (1371109618,), (1371109620,), (1371109622,), (1371109623,), (1371109638,), (1371109643,), (1371109648,), (1371109651,), (1371109655,), (1371109656,), (1371109671,), (1371109674,), (1371109678,), (1371109681,), (1371109684,), (1371109687,), (1371109700,), (1371109710,), (1371109713,), (1371109716,), (1371109718,), (1371109720,), (1371109746,), (1371109749,), (1371109751,), (1371109753,), (1371109755,), (1371109758,), (1371109785,), (1371109791,), (1371109794,), (1371109796,), (1371109797,), (1371109798,), (1371109822,), (1371109826,), (1371109829,), (1371109831,), (1371109833,), (1371109835,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'08072025': {'nb_upload': 77, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24704184]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1371109835, 1371109833, 1371109831, 1371109829, 1371109826, 1371109822, 1371109798, 1371109797, 1371109796, 1371109794, 1371109791, 1371109785] map_info['map_portfolio_photo'] : {24704184: [1371109835, 1371109833, 1371109831, 1371109829, 1371109826, 1371109822, 1371109798, 1371109797, 1371109796, 1371109794, 1371109791, 1371109785, 1371109758, 1371109755, 1371109753, 1371109751, 1371109749, 1371109746, 1371109720, 1371109718, 1371109716, 1371109713, 1371109710, 1371109700, 1371109687, 1371109684, 1371109681, 1371109678, 1371109674, 1371109671, 1371109656, 1371109655, 1371109651, 1371109648, 1371109643, 1371109638, 1371109623, 1371109622, 1371109620, 1371109618, 1371109613, 1371109609, 1371109593, 1371109592, 1371109583, 1371109579, 1371109576, 1371109572, 1371109555, 1371109554, 1371109550, 1371109546, 1371109542, 1371109537, 1371109521, 1371109519, 1371109517, 1371109514, 1371109510, 1371109499, 1371109489, 1371109487, 1371109483, 1371109478, 1371109473, 1371109469, 1371109462, 1371109461, 1371109458, 1371109454, 1371109450, 1371109436, 1371109326, 1371109293, 1371109258, 1371109222, 1371109188]} final : True mtd_id 4302 list_pids : [1371109835, 1371109833, 1371109831, 1371109829, 1371109826, 1371109822, 1371109798, 1371109797, 1371109796, 1371109794, 1371109791, 1371109785] Looping around the photos to save general results len do output : 1 /24704184Didn'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, '3248282') ('4302', '24704184', '1371109835', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109833', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109831', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109829', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109826', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109822', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109798', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109797', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109796', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109794', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109791', None, None, None, None, None, '3248282') ('4302', None, None, None, None, None, None, None, '3248282') ('4302', '24704184', '1371109785', None, None, None, None, None, '3248282') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '24704184', 'None', None, None, None, None, '3248282'), ('4302', '24704184', '1371109835', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109833', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109831', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109829', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109826', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109822', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109798', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109797', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109796', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109794', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109791', None, None, None, None, None, '3248282'), ('4302', '24704184', '1371109785', None, None, None, None, None, '3248282')] time used for this insertion : 0.060563087463378906 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3931870460510254 time spend to save output : 0.06083416938781738 total time spend for step 5 : 0.4540212154388428 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 (3248282) 2.16user 2.54system 0:06.97elapsed 67%CPU (0avgtext+0avgdata 161672maxresident)k 0inputs+7888outputs (2major+64110minor)pagefaults 0swaps