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 : 3138575 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 (4131718) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4131718) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28976061 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4131718'] with mtr_portfolio_ids : ['28976061'] and first list_photo_ids : [] new path : /proc/3138575/ Name: python3 Umask: 0002 State: R (running) Tgid: 3138575 Ngid: 0 Pid: 3138575 PPid: 3138574 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3138575 NSpid: 3138575 NSpgid: 3129409 NSsid: 3129409 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 96836 kB VmRSS: 96824 kB RssAnon: 59904 kB RssFile: 36920 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 588 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 46 nonvoluntary_ctxt_switches: 96 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3138575', 'Ngid': '0', 'Pid': '3138575', 'PPid': '3138574', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3138575', 'NSpid': '3138575', 'NSpgid': '3129409', 'NSsid': '3129409', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '96836 kB', 'VmRSS': '96824 kB', 'RssAnon': '59904 kB', 'RssFile': '36920 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '588 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '46', 'nonvoluntary_ctxt_switches': '96'} ('datou_batch_current', '3138575', '1106908', '0', '1106884', '865636', '96824', b'', 'marlene', '4131718') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28976061) 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 (4131718 ) ) 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 (28976061) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1396512841, 'portfolio_id': 28976061}, {'photo_id': 1396512838, 'portfolio_id': 28976061}, {'photo_id': 1396512835, 'portfolio_id': 28976061}, {'photo_id': 1396512833, 'portfolio_id': 28976061}, {'photo_id': 1396512829, 'portfolio_id': 28976061}, {'photo_id': 1396512825, 'portfolio_id': 28976061}, {'photo_id': 1396512718, 'portfolio_id': 28976061}, {'photo_id': 1396512710, 'portfolio_id': 28976061}, {'photo_id': 1396512701, 'portfolio_id': 28976061}, {'photo_id': 1396512641, 'portfolio_id': 28976061}, {'photo_id': 1396512603, 'portfolio_id': 28976061}, {'photo_id': 1396512561, 'portfolio_id': 28976061}, {'photo_id': 1396512452, 'portfolio_id': 28976061}, {'photo_id': 1396512390, 'portfolio_id': 28976061}, {'photo_id': 1396512347, 'portfolio_id': 28976061}, {'photo_id': 1396512301, 'portfolio_id': 28976061}, {'photo_id': 1396512058, 'portfolio_id': 28976061}, {'photo_id': 1396512017, 'portfolio_id': 28976061}, {'photo_id': 1396511977, 'portfolio_id': 28976061}, {'photo_id': 1396511937, 'portfolio_id': 28976061}, {'photo_id': 1396511892, 'portfolio_id': 28976061}, {'photo_id': 1396511779, 'portfolio_id': 28976061}, {'photo_id': 1396511776, 'portfolio_id': 28976061}, {'photo_id': 1396511774, 'portfolio_id': 28976061}, {'photo_id': 1396511764, 'portfolio_id': 28976061}, {'photo_id': 1396511751, 'portfolio_id': 28976061}, {'photo_id': 1396511747, 'portfolio_id': 28976061}, {'photo_id': 1396511745, 'portfolio_id': 28976061}, {'photo_id': 1396511742, 'portfolio_id': 28976061}, {'photo_id': 1396511738, 'portfolio_id': 28976061}, {'photo_id': 1396511735, 'portfolio_id': 28976061}, {'photo_id': 1396511697, 'portfolio_id': 28976061}, {'photo_id': 1396511696, 'portfolio_id': 28976061}, {'photo_id': 1396511670, 'portfolio_id': 28976061}, {'photo_id': 1396511620, 'portfolio_id': 28976061}, {'photo_id': 1396511614, 'portfolio_id': 28976061}, {'photo_id': 1396511599, 'portfolio_id': 28976061}, {'photo_id': 1396511340, 'portfolio_id': 28976061}, {'photo_id': 1396511303, 'portfolio_id': 28976061}, {'photo_id': 1396511300, 'portfolio_id': 28976061}, {'photo_id': 1396511298, 'portfolio_id': 28976061}, {'photo_id': 1396511294, 'portfolio_id': 28976061}, {'photo_id': 1396511190, 'portfolio_id': 28976061}, {'photo_id': 1396511127, 'portfolio_id': 28976061}, {'photo_id': 1396511047, 'portfolio_id': 28976061}, {'photo_id': 1396510971, 'portfolio_id': 28976061}, {'photo_id': 1396510927, 'portfolio_id': 28976061}, {'photo_id': 1396510884, 'portfolio_id': 28976061}, {'photo_id': 1396510593, 'portfolio_id': 28976061}, {'photo_id': 1396510592, 'portfolio_id': 28976061}, {'photo_id': 1396510591, 'portfolio_id': 28976061}, {'photo_id': 1396510589, 'portfolio_id': 28976061}, {'photo_id': 1396510580, 'portfolio_id': 28976061}, {'photo_id': 1396510574, 'portfolio_id': 28976061}, {'photo_id': 1396510571, 'portfolio_id': 28976061}, {'photo_id': 1396510569, 'portfolio_id': 28976061}, {'photo_id': 1396510567, 'portfolio_id': 28976061}, {'photo_id': 1396510564, 'portfolio_id': 28976061}, {'photo_id': 1396510413, 'portfolio_id': 28976061}, {'photo_id': 1396510408, 'portfolio_id': 28976061}, {'photo_id': 1396510376, 'portfolio_id': 28976061}, {'photo_id': 1396510349, 'portfolio_id': 28976061}, {'photo_id': 1396510321, 'portfolio_id': 28976061}, {'photo_id': 1396510121, 'portfolio_id': 28976061}, {'photo_id': 1396510092, 'portfolio_id': 28976061}, {'photo_id': 1396510067, 'portfolio_id': 28976061}, {'photo_id': 1396510063, 'portfolio_id': 28976061}, {'photo_id': 1396510060, 'portfolio_id': 28976061}, {'photo_id': 1396510057, 'portfolio_id': 28976061}, {'photo_id': 1396510030, 'portfolio_id': 28976061}, {'photo_id': 1396510009, 'portfolio_id': 28976061}, {'photo_id': 1396510007, 'portfolio_id': 28976061}] map_portfolio_id_photo_id: {28976061: [1396512841, 1396512838, 1396512835, 1396512833, 1396512829, 1396512825, 1396512718, 1396512710, 1396512701, 1396512641, 1396512603, 1396512561, 1396512452, 1396512390, 1396512347, 1396512301, 1396512058, 1396512017, 1396511977, 1396511937, 1396511892, 1396511779, 1396511776, 1396511774, 1396511764, 1396511751, 1396511747, 1396511745, 1396511742, 1396511738, 1396511735, 1396511697, 1396511696, 1396511670, 1396511620, 1396511614, 1396511599, 1396511340, 1396511303, 1396511300, 1396511298, 1396511294, 1396511190, 1396511127, 1396511047, 1396510971, 1396510927, 1396510884, 1396510593, 1396510592, 1396510591, 1396510589, 1396510580, 1396510574, 1396510571, 1396510569, 1396510567, 1396510564, 1396510413, 1396510408, 1396510376, 1396510349, 1396510321, 1396510121, 1396510092, 1396510067, 1396510063, 1396510060, 1396510057, 1396510030, 1396510009, 1396510007]} ##### 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.0528867244720459 #### 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 Fri Nov 28 00:45:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28976061) 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 : 28976061 get user id for portfolio 28976061 get sub ptf for main ptf 28976061, type 3726 and hashtags ['Teint_Dans_La_Masse', 'mal_croppe', 'metal', 'flou', 'Carton_brun', 'plastique', 'cartonnette', 'environnement', 'Carton_gris', 'kraft', 'papier', 'autre_refus'] 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`=28976061 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','mal_croppe','metal','flou','Carton_brun','plastique','cartonnette','environnement','Carton_gris','kraft','papier','autre_refus')) 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`=28976061 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','mal_croppe','metal','flou','Carton_brun','plastique','cartonnette','environnement','Carton_gris','kraft','papier','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 28976061, 'sub_port_id': 28976065, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19683763, 'last_updated_at': datetime.datetime(2025, 11, 28, 0, 41), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 0, 41), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 0, 35)}, 'plastique': {'main_port_id': 28976061, 'sub_port_id': 28976066, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19683764, 'last_updated_at': datetime.datetime(2025, 11, 28, 0, 41), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 0, 41), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 0, 35)}, 'Carton_brun': {'main_port_id': 28976061, 'sub_port_id': 28976067, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19683765, 'last_updated_at': datetime.datetime(2025, 11, 28, 0, 41), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 0, 41), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 0, 35)}, 'mal_croppe': {'main_port_id': 28976061, 'sub_port_id': 28976068, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19683766, 'last_updated_at': datetime.datetime(2025, 11, 28, 0, 41), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 0, 41), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 0, 35)}, 'flou': {'main_port_id': 28976061, 'sub_port_id': 28976069, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19683767, 'last_updated_at': datetime.datetime(2025, 11, 28, 0, 41), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 0, 41), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 0, 35)}, 'environnement': {'main_port_id': 28976061, 'sub_port_id': 28976070, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19683768, 'last_updated_at': datetime.datetime(2025, 11, 28, 0, 41), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 0, 41), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 0, 35)}, 'autre_refus': {'main_port_id': 28976061, 'sub_port_id': 28976071, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19683769, 'last_updated_at': datetime.datetime(2025, 11, 28, 0, 41), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 0, 41), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 0, 35)}, 'Carton_gris': {'main_port_id': 28976061, 'sub_port_id': 28976072, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19683770, 'last_updated_at': datetime.datetime(2025, 11, 28, 0, 41), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 0, 41), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 0, 35)}, 'kraft': {'main_port_id': 28976061, 'sub_port_id': 28976073, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19683771, 'last_updated_at': datetime.datetime(2025, 11, 28, 0, 41), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 0, 41), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 0, 35)}, 'metal': {'main_port_id': 28976061, 'sub_port_id': 28976074, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19683772, 'last_updated_at': datetime.datetime(2025, 11, 28, 0, 41), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 0, 41), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 0, 35)}, 'cartonnette': {'main_port_id': 28976061, 'sub_port_id': 28976075, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19683773, 'last_updated_at': datetime.datetime(2025, 11, 28, 0, 41), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 0, 41), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 0, 35)}, 'Teint_Dans_La_Masse': {'main_port_id': 28976061, 'sub_port_id': 28976076, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19683774, 'last_updated_at': datetime.datetime(2025, 11, 28, 0, 41), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 0, 41), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 0, 35)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28976065 , 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=28976061 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 (28976065) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28976061) result : ((1396510007,), (1396510009,), (1396510030,), (1396510057,), (1396510060,), (1396510063,), (1396510067,), (1396510092,), (1396510121,), (1396510321,), (1396510349,), (1396510376,), (1396510408,), (1396510413,), (1396510564,), (1396510567,), (1396510569,), (1396510571,), (1396510574,), (1396510580,), (1396510589,), (1396510591,), (1396510592,), (1396510593,), (1396510884,), (1396510927,), (1396510971,), (1396511047,), (1396511127,), (1396511190,), (1396511294,), (1396511298,), (1396511300,), (1396511303,), (1396511340,), (1396511599,), (1396511614,), (1396511620,), (1396511670,), (1396511696,), (1396511697,), (1396511735,), (1396511738,), (1396511742,), (1396511745,), (1396511747,), (1396511751,), (1396511764,), (1396511774,), (1396511776,), (1396511779,), (1396511892,), (1396511937,), (1396511977,), (1396512017,), (1396512058,), (1396512301,), (1396512347,), (1396512390,), (1396512452,), (1396512561,), (1396512603,), (1396512641,), (1396512701,), (1396512710,), (1396512718,), (1396512825,), (1396512829,), (1396512833,), (1396512835,), (1396512838,), (1396512841,)) 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 (1396511300) 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 28976066 , 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=28976061 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 (28976066) result : ((1396510622,), (1396510805,), (1396511771,), (1396511772,), (1396511773,), (1396512719,), (1396512721,), (1396512722,), (1396512723,), (1396512724,), (1396512725,), (1396512863,), (1396512907,), (1396512908,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28976061) result : ((1396510007,), (1396510009,), (1396510030,), (1396510057,), (1396510060,), (1396510063,), (1396510067,), (1396510092,), (1396510121,), (1396510321,), (1396510349,), (1396510376,), (1396510408,), (1396510413,), (1396510564,), (1396510567,), (1396510569,), (1396510571,), (1396510574,), (1396510580,), (1396510589,), (1396510591,), (1396510592,), (1396510593,), (1396510884,), (1396510927,), (1396510971,), (1396511047,), (1396511127,), (1396511190,), (1396511294,), (1396511298,), (1396511300,), (1396511303,), (1396511340,), (1396511599,), (1396511614,), (1396511620,), (1396511670,), (1396511696,), (1396511697,), (1396511735,), (1396511738,), (1396511742,), (1396511745,), (1396511747,), (1396511751,), (1396511764,), (1396511774,), (1396511776,), (1396511779,), (1396511892,), (1396511937,), (1396511977,), (1396512017,), (1396512058,), (1396512301,), (1396512347,), (1396512390,), (1396512452,), (1396512561,), (1396512603,), (1396512641,), (1396512701,), (1396512710,), (1396512718,), (1396512825,), (1396512829,), (1396512833,), (1396512835,), (1396512838,), (1396512841,)) 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 (1396511300) 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 28976067 , 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=28976061 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 (28976067) result : ((1396510608,), (1396510611,), (1396511561,), (1396511562,), (1396511769,), (1396511770,), (1396512525,), (1396512713,), (1396512714,), (1396512716,), (1396512717,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28976061) result : ((1396510007,), (1396510009,), (1396510030,), (1396510057,), (1396510060,), (1396510063,), (1396510067,), (1396510092,), (1396510121,), (1396510321,), (1396510349,), (1396510376,), (1396510408,), (1396510413,), (1396510564,), (1396510567,), (1396510569,), (1396510571,), (1396510574,), (1396510580,), (1396510589,), (1396510591,), (1396510592,), (1396510593,), (1396510884,), (1396510927,), (1396510971,), (1396511047,), (1396511127,), (1396511190,), (1396511294,), (1396511298,), (1396511300,), (1396511303,), (1396511340,), (1396511599,), (1396511614,), (1396511620,), (1396511670,), (1396511696,), (1396511697,), (1396511735,), (1396511738,), (1396511742,), (1396511745,), (1396511747,), (1396511751,), (1396511764,), (1396511774,), (1396511776,), (1396511779,), (1396511892,), (1396511937,), (1396511977,), (1396512017,), (1396512058,), (1396512301,), (1396512347,), (1396512390,), (1396512452,), (1396512561,), (1396512603,), (1396512641,), (1396512701,), (1396512710,), (1396512718,), (1396512825,), (1396512829,), (1396512833,), (1396512835,), (1396512838,), (1396512841,)) 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 (1396511300) 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 28976068 , 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=28976061 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 (28976068) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28976061) result : ((1396510007,), (1396510009,), (1396510030,), (1396510057,), (1396510060,), (1396510063,), (1396510067,), (1396510092,), (1396510121,), (1396510321,), (1396510349,), (1396510376,), (1396510408,), (1396510413,), (1396510564,), (1396510567,), (1396510569,), (1396510571,), (1396510574,), (1396510580,), (1396510589,), (1396510591,), (1396510592,), (1396510593,), (1396510884,), (1396510927,), (1396510971,), (1396511047,), (1396511127,), (1396511190,), (1396511294,), (1396511298,), (1396511300,), (1396511303,), (1396511340,), (1396511599,), (1396511614,), (1396511620,), (1396511670,), (1396511696,), (1396511697,), (1396511735,), (1396511738,), (1396511742,), (1396511745,), (1396511747,), (1396511751,), (1396511764,), (1396511774,), (1396511776,), (1396511779,), (1396511892,), (1396511937,), (1396511977,), (1396512017,), (1396512058,), (1396512301,), (1396512347,), (1396512390,), (1396512452,), (1396512561,), (1396512603,), (1396512641,), (1396512701,), (1396512710,), (1396512718,), (1396512825,), (1396512829,), (1396512833,), (1396512835,), (1396512838,), (1396512841,)) 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 (1396511300) 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 28976069 , 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=28976061 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 (28976069) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28976061) result : ((1396510007,), (1396510009,), (1396510030,), (1396510057,), (1396510060,), (1396510063,), (1396510067,), (1396510092,), (1396510121,), (1396510321,), (1396510349,), (1396510376,), (1396510408,), (1396510413,), (1396510564,), (1396510567,), (1396510569,), (1396510571,), (1396510574,), (1396510580,), (1396510589,), (1396510591,), (1396510592,), (1396510593,), (1396510884,), (1396510927,), (1396510971,), (1396511047,), (1396511127,), (1396511190,), (1396511294,), (1396511298,), (1396511300,), (1396511303,), (1396511340,), (1396511599,), (1396511614,), (1396511620,), (1396511670,), (1396511696,), (1396511697,), (1396511735,), (1396511738,), (1396511742,), (1396511745,), (1396511747,), (1396511751,), (1396511764,), (1396511774,), (1396511776,), (1396511779,), (1396511892,), (1396511937,), (1396511977,), (1396512017,), (1396512058,), (1396512301,), (1396512347,), (1396512390,), (1396512452,), (1396512561,), (1396512603,), (1396512641,), (1396512701,), (1396512710,), (1396512718,), (1396512825,), (1396512829,), (1396512833,), (1396512835,), (1396512838,), (1396512841,)) 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 (1396511300) 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 28976070 , 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=28976061 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 (28976070) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28976061) result : ((1396510007,), (1396510009,), (1396510030,), (1396510057,), (1396510060,), (1396510063,), (1396510067,), (1396510092,), (1396510121,), (1396510321,), (1396510349,), (1396510376,), (1396510408,), (1396510413,), (1396510564,), (1396510567,), (1396510569,), (1396510571,), (1396510574,), (1396510580,), (1396510589,), (1396510591,), (1396510592,), (1396510593,), (1396510884,), (1396510927,), (1396510971,), (1396511047,), (1396511127,), (1396511190,), (1396511294,), (1396511298,), (1396511300,), (1396511303,), (1396511340,), (1396511599,), (1396511614,), (1396511620,), (1396511670,), (1396511696,), (1396511697,), (1396511735,), (1396511738,), (1396511742,), (1396511745,), (1396511747,), (1396511751,), (1396511764,), (1396511774,), (1396511776,), (1396511779,), (1396511892,), (1396511937,), (1396511977,), (1396512017,), (1396512058,), (1396512301,), (1396512347,), (1396512390,), (1396512452,), (1396512561,), (1396512603,), (1396512641,), (1396512701,), (1396512710,), (1396512718,), (1396512825,), (1396512829,), (1396512833,), (1396512835,), (1396512838,), (1396512841,)) 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 (1396511300) 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 28976071 , 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=28976061 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 (28976071) result : ((1396510596,), (1396511759,), (1396511760,), (1396512240,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28976061) result : ((1396510007,), (1396510009,), (1396510030,), (1396510057,), (1396510060,), (1396510063,), (1396510067,), (1396510092,), (1396510121,), (1396510321,), (1396510349,), (1396510376,), (1396510408,), (1396510413,), (1396510564,), (1396510567,), (1396510569,), (1396510571,), (1396510574,), (1396510580,), (1396510589,), (1396510591,), (1396510592,), (1396510593,), (1396510884,), (1396510927,), (1396510971,), (1396511047,), (1396511127,), (1396511190,), (1396511294,), (1396511298,), (1396511300,), (1396511303,), (1396511340,), (1396511599,), (1396511614,), (1396511620,), (1396511670,), (1396511696,), (1396511697,), (1396511735,), (1396511738,), (1396511742,), (1396511745,), (1396511747,), (1396511751,), (1396511764,), (1396511774,), (1396511776,), (1396511779,), (1396511892,), (1396511937,), (1396511977,), (1396512017,), (1396512058,), (1396512301,), (1396512347,), (1396512390,), (1396512452,), (1396512561,), (1396512603,), (1396512641,), (1396512701,), (1396512710,), (1396512718,), (1396512825,), (1396512829,), (1396512833,), (1396512835,), (1396512838,), (1396512841,)) 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 (1396511300) 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 28976072 , 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=28976061 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 (28976072) result : ((1396510598,), (1396511560,), (1396511762,), (1396511763,), (1396512504,), (1396512708,), (1396512903,), (1396512905,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28976061) result : ((1396510007,), (1396510009,), (1396510030,), (1396510057,), (1396510060,), (1396510063,), (1396510067,), (1396510092,), (1396510121,), (1396510321,), (1396510349,), (1396510376,), (1396510408,), (1396510413,), (1396510564,), (1396510567,), (1396510569,), (1396510571,), (1396510574,), (1396510580,), (1396510589,), (1396510591,), (1396510592,), (1396510593,), (1396510884,), (1396510927,), (1396510971,), (1396511047,), (1396511127,), (1396511190,), (1396511294,), (1396511298,), (1396511300,), (1396511303,), (1396511340,), (1396511599,), (1396511614,), (1396511620,), (1396511670,), (1396511696,), (1396511697,), (1396511735,), (1396511738,), (1396511742,), (1396511745,), (1396511747,), (1396511751,), (1396511764,), (1396511774,), (1396511776,), (1396511779,), (1396511892,), (1396511937,), (1396511977,), (1396512017,), (1396512058,), (1396512301,), (1396512347,), (1396512390,), (1396512452,), (1396512561,), (1396512603,), (1396512641,), (1396512701,), (1396512710,), (1396512718,), (1396512825,), (1396512829,), (1396512833,), (1396512835,), (1396512838,), (1396512841,)) 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 (1396511300) 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 28976073 , 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=28976061 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 (28976073) result : ((1396512909,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28976061) result : ((1396510007,), (1396510009,), (1396510030,), (1396510057,), (1396510060,), (1396510063,), (1396510067,), (1396510092,), (1396510121,), (1396510321,), (1396510349,), (1396510376,), (1396510408,), (1396510413,), (1396510564,), (1396510567,), (1396510569,), (1396510571,), (1396510574,), (1396510580,), (1396510589,), (1396510591,), (1396510592,), (1396510593,), (1396510884,), (1396510927,), (1396510971,), (1396511047,), (1396511127,), (1396511190,), (1396511294,), (1396511298,), (1396511300,), (1396511303,), (1396511340,), (1396511599,), (1396511614,), (1396511620,), (1396511670,), (1396511696,), (1396511697,), (1396511735,), (1396511738,), (1396511742,), (1396511745,), (1396511747,), (1396511751,), (1396511764,), (1396511774,), (1396511776,), (1396511779,), (1396511892,), (1396511937,), (1396511977,), (1396512017,), (1396512058,), (1396512301,), (1396512347,), (1396512390,), (1396512452,), (1396512561,), (1396512603,), (1396512641,), (1396512701,), (1396512710,), (1396512718,), (1396512825,), (1396512829,), (1396512833,), (1396512835,), (1396512838,), (1396512841,)) 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 (1396511300) 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 28976074 , 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=28976061 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 (28976074) result : ((1396512864,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28976061) result : ((1396510007,), (1396510009,), (1396510030,), (1396510057,), (1396510060,), (1396510063,), (1396510067,), (1396510092,), (1396510121,), (1396510321,), (1396510349,), (1396510376,), (1396510408,), (1396510413,), (1396510564,), (1396510567,), (1396510569,), (1396510571,), (1396510574,), (1396510580,), (1396510589,), (1396510591,), (1396510592,), (1396510593,), (1396510884,), (1396510927,), (1396510971,), (1396511047,), (1396511127,), (1396511190,), (1396511294,), (1396511298,), (1396511300,), (1396511303,), (1396511340,), (1396511599,), (1396511614,), (1396511620,), (1396511670,), (1396511696,), (1396511697,), (1396511735,), (1396511738,), (1396511742,), (1396511745,), (1396511747,), (1396511751,), (1396511764,), (1396511774,), (1396511776,), (1396511779,), (1396511892,), (1396511937,), (1396511977,), (1396512017,), (1396512058,), (1396512301,), (1396512347,), (1396512390,), (1396512452,), (1396512561,), (1396512603,), (1396512641,), (1396512701,), (1396512710,), (1396512718,), (1396512825,), (1396512829,), (1396512833,), (1396512835,), (1396512838,), (1396512841,)) 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 (1396511300) 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 28976075 , 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=28976061 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 (28976075) result : ((1396511765,), (1396511766,), (1396511767,), (1396512511,), (1396512711,), (1396512712,), (1396512906,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28976061) result : ((1396510007,), (1396510009,), (1396510030,), (1396510057,), (1396510060,), (1396510063,), (1396510067,), (1396510092,), (1396510121,), (1396510321,), (1396510349,), (1396510376,), (1396510408,), (1396510413,), (1396510564,), (1396510567,), (1396510569,), (1396510571,), (1396510574,), (1396510580,), (1396510589,), (1396510591,), (1396510592,), (1396510593,), (1396510884,), (1396510927,), (1396510971,), (1396511047,), (1396511127,), (1396511190,), (1396511294,), (1396511298,), (1396511300,), (1396511303,), (1396511340,), (1396511599,), (1396511614,), (1396511620,), (1396511670,), (1396511696,), (1396511697,), (1396511735,), (1396511738,), (1396511742,), (1396511745,), (1396511747,), (1396511751,), (1396511764,), (1396511774,), (1396511776,), (1396511779,), (1396511892,), (1396511937,), (1396511977,), (1396512017,), (1396512058,), (1396512301,), (1396512347,), (1396512390,), (1396512452,), (1396512561,), (1396512603,), (1396512641,), (1396512701,), (1396512710,), (1396512718,), (1396512825,), (1396512829,), (1396512833,), (1396512835,), (1396512838,), (1396512841,)) 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 (1396511300) 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 28976076 , 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=28976061 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 (28976076) result : ((1396510788,), (1396511757,), (1396511758,), (1396512226,), (1396512229,), (1396512502,), (1396512503,), (1396512707,), (1396512862,), (1396512900,), (1396512901,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28976061) result : ((1396510007,), (1396510009,), (1396510030,), (1396510057,), (1396510060,), (1396510063,), (1396510067,), (1396510092,), (1396510121,), (1396510321,), (1396510349,), (1396510376,), (1396510408,), (1396510413,), (1396510564,), (1396510567,), (1396510569,), (1396510571,), (1396510574,), (1396510580,), (1396510589,), (1396510591,), (1396510592,), (1396510593,), (1396510884,), (1396510927,), (1396510971,), (1396511047,), (1396511127,), (1396511190,), (1396511294,), (1396511298,), (1396511300,), (1396511303,), (1396511340,), (1396511599,), (1396511614,), (1396511620,), (1396511670,), (1396511696,), (1396511697,), (1396511735,), (1396511738,), (1396511742,), (1396511745,), (1396511747,), (1396511751,), (1396511764,), (1396511774,), (1396511776,), (1396511779,), (1396511892,), (1396511937,), (1396511977,), (1396512017,), (1396512058,), (1396512301,), (1396512347,), (1396512390,), (1396512452,), (1396512561,), (1396512603,), (1396512641,), (1396512701,), (1396512710,), (1396512718,), (1396512825,), (1396512829,), (1396512833,), (1396512835,), (1396512838,), (1396512841,)) 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 (1396511300) 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`=28976061 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','mal_croppe','metal','flou','Carton_brun','plastique','cartonnette','environnement','Carton_gris','kraft','papier','autre_refus')) 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`=28976061 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','mal_croppe','metal','flou','Carton_brun','plastique','cartonnette','environnement','Carton_gris','kraft','papier','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 28976061, 'sub_port_id': 28976078, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19683775, 'last_updated_at': datetime.datetime(2025, 11, 28, 0, 35, 6), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 0, 35, 6), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 0, 35, 6)}, 'plastique': {'main_port_id': 28976061, 'sub_port_id': 28976079, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19683776, 'last_updated_at': datetime.datetime(2025, 11, 28, 0, 35, 6), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 0, 35, 6), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 0, 35, 6)}, 'Carton_brun': {'main_port_id': 28976061, 'sub_port_id': 28976080, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19683777, 'last_updated_at': datetime.datetime(2025, 11, 28, 0, 35, 6), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 0, 35, 6), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 0, 35, 6)}, 'mal_croppe': {'main_port_id': 28976061, 'sub_port_id': 28976081, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19683778, 'last_updated_at': datetime.datetime(2025, 11, 28, 0, 35, 6), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 0, 35, 6), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 0, 35, 6)}, 'flou': {'main_port_id': 28976061, 'sub_port_id': 28976082, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19683779, 'last_updated_at': datetime.datetime(2025, 11, 28, 0, 35, 6), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 0, 35, 6), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 0, 35, 6)}, 'environnement': {'main_port_id': 28976061, 'sub_port_id': 28976083, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19683780, 'last_updated_at': datetime.datetime(2025, 11, 28, 0, 35, 6), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 0, 35, 6), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 0, 35, 6)}, 'autre_refus': {'main_port_id': 28976061, 'sub_port_id': 28976084, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19683781, 'last_updated_at': datetime.datetime(2025, 11, 28, 0, 35, 6), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 0, 35, 6), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 0, 35, 6)}, 'Carton_gris': {'main_port_id': 28976061, 'sub_port_id': 28976085, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19683782, 'last_updated_at': datetime.datetime(2025, 11, 28, 0, 35, 6), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 0, 35, 6), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 0, 35, 6)}, 'kraft': {'main_port_id': 28976061, 'sub_port_id': 28976086, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19683783, 'last_updated_at': datetime.datetime(2025, 11, 28, 0, 35, 6), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 0, 35, 6), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 0, 35, 6)}, 'metal': {'main_port_id': 28976061, 'sub_port_id': 28976087, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19683784, 'last_updated_at': datetime.datetime(2025, 11, 28, 0, 35, 6), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 0, 35, 6), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 0, 35, 6)}, 'cartonnette': {'main_port_id': 28976061, 'sub_port_id': 28976088, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19683785, 'last_updated_at': datetime.datetime(2025, 11, 28, 0, 35, 6), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 0, 35, 6), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 0, 35, 6)}, 'Teint_Dans_La_Masse': {'main_port_id': 28976061, 'sub_port_id': 28976089, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19683786, 'last_updated_at': datetime.datetime(2025, 11, 28, 0, 41, 1), 'last_updated_at_desc': datetime.datetime(2025, 11, 28, 0, 41, 1), 'last_updated_at_asc': datetime.datetime(2025, 11, 28, 0, 35, 6)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28976078,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28976065 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28976079,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28976066 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28976080,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28976067 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28976081,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28976068 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28976082,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28976069 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28976083,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28976070 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28976084,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28976071 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28976085,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28976072 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28976086,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28976073 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28976087,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28976074 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28976088,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28976075 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28976089,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28976076 lien utilise dans velours : https://marlene.fotonower.com/velours/28976078,28976079,28976080,28976081,28976082,28976083,28976084,28976085,28976086,28976087,28976088,28976089?tags=papier,plastique,Carton_brun,mal_croppe,flou,environnement,autre_refus,Carton_gris,kraft,metal,cartonnette,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28976061]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1396512841, 1396512838, 1396512835, 1396512833, 1396512829, 1396512825, 1396512718, 1396512710, 1396512701, 1396512641, 1396512603, 1396512561, 1396512452, 1396512390, 1396512347, 1396512301, 1396512058, 1396512017, 1396511977, 1396511937, 1396511892] map_info['map_portfolio_photo'] : {28976061: [1396512841, 1396512838, 1396512835, 1396512833, 1396512829, 1396512825, 1396512718, 1396512710, 1396512701, 1396512641, 1396512603, 1396512561, 1396512452, 1396512390, 1396512347, 1396512301, 1396512058, 1396512017, 1396511977, 1396511937, 1396511892, 1396511779, 1396511776, 1396511774, 1396511764, 1396511751, 1396511747, 1396511745, 1396511742, 1396511738, 1396511735, 1396511697, 1396511696, 1396511670, 1396511620, 1396511614, 1396511599, 1396511340, 1396511303, 1396511300, 1396511298, 1396511294, 1396511190, 1396511127, 1396511047, 1396510971, 1396510927, 1396510884, 1396510593, 1396510592, 1396510591, 1396510589, 1396510580, 1396510574, 1396510571, 1396510569, 1396510567, 1396510564, 1396510413, 1396510408, 1396510376, 1396510349, 1396510321, 1396510121, 1396510092, 1396510067, 1396510063, 1396510060, 1396510057, 1396510030, 1396510009, 1396510007]} final : False mtd_id 4302 list_pids : [1396512841, 1396512838, 1396512835, 1396512833, 1396512829, 1396512825, 1396512718, 1396512710, 1396512701, 1396512641, 1396512603, 1396512561, 1396512452, 1396512390, 1396512347, 1396512301, 1396512058, 1396512017, 1396511977, 1396511937, 1396511892] Looping around the photos to save general results len do output : 1 /28976061. 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, '4131718') ('4302', '28976061', '1396512841', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512838', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512835', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512833', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512829', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512825', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512718', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512710', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512701', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512641', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512603', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512561', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512452', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512390', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512347', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512301', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512058', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512017', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396511977', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396511937', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396511892', None, None, None, None, None, '4131718') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28976061', "{'papier': 28976065, 'plastique': 28976066, 'Carton_brun': 28976067, 'mal_croppe': 28976068, 'flou': 28976069, 'environnement': 28976070, 'autre_refus': 28976071, 'Carton_gris': 28976072, 'kraft': 28976073, 'metal': 28976074, 'cartonnette': 28976075, 'Teint_Dans_La_Masse': 28976076}", None, None, None, None, '4131718'), ('4302', '28976061', '1396512841', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512838', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512835', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512833', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512829', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512825', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512718', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512710', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512701', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512641', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512603', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512561', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512452', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512390', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512347', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512301', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512058', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512017', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396511977', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396511937', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396511892', None, None, None, None, None, '4131718')] time used for this insertion : 0.04040336608886719 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6321678161621094 time spend to save output : 0.040782928466796875 total time spend for step 1 : 1.6729507446289062 step2:final Fri Nov 28 00:46:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (28976061) 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 28976061 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1396510030,1396510009,1396510007,1396510121,1396510092,1396510067,1396510063,1396510060,1396510057,1396510413,1396510408,1396510376,1396510349,1396510321,1396510580,1396510574,1396510571,1396510569,1396510567,1396510564,1396510593,1396510592,1396510591,1396510589,1396511190,1396511127,1396511047,1396510971,1396510927,1396510884,1396511340,1396511303,1396511300,1396511298,1396511294,1396511779,1396511697,1396511696,1396511776,1396511670,1396511774,1396511620,1396511764,1396511614,1396511751,1396511599,1396511747,1396511745,1396511742,1396511738,1396511735,1396512058,1396512017,1396511977,1396511937,1396511892,1396512452,1396512390,1396512347,1396512301,1396512718,1396512710,1396512701,1396512641,1396512603,1396512561,1396512841,1396512838,1396512835,1396512833,1396512829,1396512825); 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([28976061]) Inside saveOutput : final : False verbose : True original output for save of step final : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ('0.042472336458363125',), 1396511977: ('0.042472336458363125',), 1396511937: ('0.042472336458363125',), 1396511892: ('0.042472336458363125',)} new output for save of step final : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ('0.042472336458363125',), 1396511977: ('0.042472336458363125',), 1396511937: ('0.042472336458363125',), 1396511892: ('0.042472336458363125',)} [1396512841, 1396512838, 1396512835, 1396512833, 1396512829, 1396512825, 1396512718, 1396512710, 1396512701, 1396512641, 1396512603, 1396512561, 1396512452, 1396512390, 1396512347, 1396512301, 1396512058, 1396512017, 1396511977, 1396511937, 1396511892] map_info['map_portfolio_photo'] : {28976061: [1396512841, 1396512838, 1396512835, 1396512833, 1396512829, 1396512825, 1396512718, 1396512710, 1396512701, 1396512641, 1396512603, 1396512561, 1396512452, 1396512390, 1396512347, 1396512301, 1396512058, 1396512017, 1396511977, 1396511937, 1396511892, 1396511779, 1396511776, 1396511774, 1396511764, 1396511751, 1396511747, 1396511745, 1396511742, 1396511738, 1396511735, 1396511697, 1396511696, 1396511670, 1396511620, 1396511614, 1396511599, 1396511340, 1396511303, 1396511300, 1396511298, 1396511294, 1396511190, 1396511127, 1396511047, 1396510971, 1396510927, 1396510884, 1396510593, 1396510592, 1396510591, 1396510589, 1396510580, 1396510574, 1396510571, 1396510569, 1396510567, 1396510564, 1396510413, 1396510408, 1396510376, 1396510349, 1396510321, 1396510121, 1396510092, 1396510067, 1396510063, 1396510060, 1396510057, 1396510030, 1396510009, 1396510007]} final : False mtd_id 4302 list_pids : [1396512841, 1396512838, 1396512835, 1396512833, 1396512829, 1396512825, 1396512718, 1396512710, 1396512701, 1396512641, 1396512603, 1396512561, 1396512452, 1396512390, 1396512347, 1396512301, 1396512058, 1396512017, 1396511977, 1396511937, 1396511892] Looping around the photos to save general results len do output : 21 /1396512841.Didn't retrieve data . /1396512838.Didn't retrieve data . /1396512835.Didn't retrieve data . /1396512833.Didn't retrieve data . /1396512829.Didn't retrieve data . /1396512825.Didn't retrieve data . /1396512718.Didn't retrieve data . /1396512710.Didn't retrieve data . /1396512701.Didn't retrieve data . /1396512641.Didn't retrieve data . /1396512603.Didn't retrieve data . /1396512561.Didn't retrieve data . /1396512452.Didn't retrieve data . /1396512390.Didn't retrieve data . /1396512347.Didn't retrieve data . /1396512301.Didn't retrieve data . /1396512058.Didn't retrieve data . /1396512017.Didn't retrieve data . /1396511977.Didn't retrieve data . /1396511937.Didn't retrieve data . /1396511892.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, '4131718') ('4302', '28976061', '1396512841', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512838', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512835', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512833', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512829', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512825', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512718', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512710', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512701', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512641', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512603', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512561', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512452', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512390', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512347', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512301', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512058', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512017', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396511977', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396511937', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396511892', None, None, None, None, None, '4131718') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 63 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28976061', '1396512841', '0.042472336458363125', None, None, None, None, '4131718'), ('4302', '28976061', '1396512838', '0.042472336458363125', None, None, None, None, '4131718'), ('4302', '28976061', '1396512835', '0.042472336458363125', None, None, None, None, '4131718'), ('4302', '28976061', '1396512833', '0.042472336458363125', None, None, None, None, '4131718'), ('4302', '28976061', '1396512829', '0.042472336458363125', None, None, None, None, '4131718'), ('4302', '28976061', '1396512825', '0.042472336458363125', None, None, None, None, '4131718'), ('4302', '28976061', '1396512718', '0.042472336458363125', None, None, None, None, '4131718'), ('4302', '28976061', '1396512710', '0.042472336458363125', None, None, None, None, '4131718'), ('4302', '28976061', '1396512701', '0.042472336458363125', None, None, None, None, '4131718'), ('4302', '28976061', '1396512641', '0.042472336458363125', None, None, None, None, '4131718'), ('4302', '28976061', '1396512603', '0.042472336458363125', None, None, None, None, '4131718'), ('4302', '28976061', '1396512561', '0.042472336458363125', None, None, None, None, '4131718'), ('4302', '28976061', '1396512452', '0.042472336458363125', None, None, None, None, '4131718'), ('4302', '28976061', '1396512390', '0.042472336458363125', None, None, None, None, '4131718'), ('4302', '28976061', '1396512347', '0.042472336458363125', None, None, None, None, '4131718'), ('4302', '28976061', '1396512301', '0.042472336458363125', None, None, None, None, '4131718'), ('4302', '28976061', '1396512058', '0.042472336458363125', None, None, None, None, '4131718'), ('4302', '28976061', '1396512017', '0.042472336458363125', None, None, None, None, '4131718'), ('4302', '28976061', '1396511977', '0.042472336458363125', None, None, None, None, '4131718'), ('4302', '28976061', '1396511937', '0.042472336458363125', None, None, None, None, '4131718'), ('4302', '28976061', '1396511892', '0.042472336458363125', None, None, None, None, '4131718')] time used for this insertion : 0.0392153263092041 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.23987722396850586 time spend to save output : 0.03982377052307129 total time spend for step 2 : 0.27970099449157715 step3:velours_tree Fri Nov 28 00:46:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {28976061: [{'papier': 28976065, 'plastique': 28976066, 'Carton_brun': 28976067, 'mal_croppe': 28976068, 'flou': 28976069, 'environnement': 28976070, 'autre_refus': 28976071, 'Carton_gris': 28976072, 'kraft': 28976073, 'metal': 28976074, 'cartonnette': 28976075, 'Teint_Dans_La_Masse': 28976076}]} input_args_next_step : {28976061: ()} output_args : {28976061: [{'papier': 28976065, 'plastique': 28976066, 'Carton_brun': 28976067, 'mal_croppe': 28976068, 'flou': 28976069, 'environnement': 28976070, 'autre_refus': 28976071, 'Carton_gris': 28976072, 'kraft': 28976073, 'metal': 28976074, 'cartonnette': 28976075, 'Teint_Dans_La_Masse': 28976076}]} args : 28976061 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 : ({'papier': 28976065, 'plastique': 28976066, 'Carton_brun': 28976067, 'mal_croppe': 28976068, 'flou': 28976069, 'environnement': 28976070, 'autre_refus': 28976071, 'Carton_gris': 28976072, 'kraft': 28976073, 'metal': 28976074, 'cartonnette': 28976075, 'Teint_Dans_La_Masse': 28976076},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28976061) 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([28976061]) 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.4291036128997803 time spend to save output : 6.389617919921875e-05 total time spend for step 3 : 0.4291675090789795 step4:send_mail_cod Fri Nov 28 00:46:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ('0.042472336458363125',), 1396511977: ('0.042472336458363125',), 1396511937: ('0.042472336458363125',), 1396511892: ('0.042472336458363125',)} input_args_next_step : {1396512841: ()} output_args : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ('0.042472336458363125',), 1396511977: ('0.042472336458363125',), 1396511937: ('0.042472336458363125',), 1396511892: ('0.042472336458363125',)} args : 1396512841 depend.output_id : 0 input_args_next_step : {1396512841: ('0.042472336458363125',), 1396512838: ()} output_args : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ('0.042472336458363125',), 1396511977: ('0.042472336458363125',), 1396511937: ('0.042472336458363125',), 1396511892: ('0.042472336458363125',)} args : 1396512838 depend.output_id : 0 input_args_next_step : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ()} output_args : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ('0.042472336458363125',), 1396511977: ('0.042472336458363125',), 1396511937: ('0.042472336458363125',), 1396511892: ('0.042472336458363125',)} args : 1396512835 depend.output_id : 0 input_args_next_step : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ()} output_args : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ('0.042472336458363125',), 1396511977: ('0.042472336458363125',), 1396511937: ('0.042472336458363125',), 1396511892: ('0.042472336458363125',)} args : 1396512833 depend.output_id : 0 input_args_next_step : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ()} output_args : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ('0.042472336458363125',), 1396511977: ('0.042472336458363125',), 1396511937: ('0.042472336458363125',), 1396511892: ('0.042472336458363125',)} args : 1396512829 depend.output_id : 0 input_args_next_step : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ()} output_args : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ('0.042472336458363125',), 1396511977: ('0.042472336458363125',), 1396511937: ('0.042472336458363125',), 1396511892: ('0.042472336458363125',)} args : 1396512825 depend.output_id : 0 input_args_next_step : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ()} output_args : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ('0.042472336458363125',), 1396511977: ('0.042472336458363125',), 1396511937: ('0.042472336458363125',), 1396511892: ('0.042472336458363125',)} args : 1396512718 depend.output_id : 0 input_args_next_step : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ()} output_args : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ('0.042472336458363125',), 1396511977: ('0.042472336458363125',), 1396511937: ('0.042472336458363125',), 1396511892: ('0.042472336458363125',)} args : 1396512710 depend.output_id : 0 input_args_next_step : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ()} output_args : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ('0.042472336458363125',), 1396511977: ('0.042472336458363125',), 1396511937: ('0.042472336458363125',), 1396511892: ('0.042472336458363125',)} args : 1396512701 depend.output_id : 0 input_args_next_step : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ()} output_args : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ('0.042472336458363125',), 1396511977: ('0.042472336458363125',), 1396511937: ('0.042472336458363125',), 1396511892: ('0.042472336458363125',)} args : 1396512641 depend.output_id : 0 input_args_next_step : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ()} output_args : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ('0.042472336458363125',), 1396511977: ('0.042472336458363125',), 1396511937: ('0.042472336458363125',), 1396511892: ('0.042472336458363125',)} args : 1396512603 depend.output_id : 0 input_args_next_step : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ()} output_args : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ('0.042472336458363125',), 1396511977: ('0.042472336458363125',), 1396511937: ('0.042472336458363125',), 1396511892: ('0.042472336458363125',)} args : 1396512561 depend.output_id : 0 input_args_next_step : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ()} output_args : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ('0.042472336458363125',), 1396511977: ('0.042472336458363125',), 1396511937: ('0.042472336458363125',), 1396511892: ('0.042472336458363125',)} args : 1396512452 depend.output_id : 0 input_args_next_step : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ()} output_args : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ('0.042472336458363125',), 1396511977: ('0.042472336458363125',), 1396511937: ('0.042472336458363125',), 1396511892: ('0.042472336458363125',)} args : 1396512390 depend.output_id : 0 input_args_next_step : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ()} output_args : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ('0.042472336458363125',), 1396511977: ('0.042472336458363125',), 1396511937: ('0.042472336458363125',), 1396511892: ('0.042472336458363125',)} args : 1396512347 depend.output_id : 0 input_args_next_step : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ()} output_args : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ('0.042472336458363125',), 1396511977: ('0.042472336458363125',), 1396511937: ('0.042472336458363125',), 1396511892: ('0.042472336458363125',)} args : 1396512301 depend.output_id : 0 input_args_next_step : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ()} output_args : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ('0.042472336458363125',), 1396511977: ('0.042472336458363125',), 1396511937: ('0.042472336458363125',), 1396511892: ('0.042472336458363125',)} args : 1396512058 depend.output_id : 0 input_args_next_step : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ()} output_args : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ('0.042472336458363125',), 1396511977: ('0.042472336458363125',), 1396511937: ('0.042472336458363125',), 1396511892: ('0.042472336458363125',)} args : 1396512017 depend.output_id : 0 input_args_next_step : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ('0.042472336458363125',), 1396511977: ()} output_args : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ('0.042472336458363125',), 1396511977: ('0.042472336458363125',), 1396511937: ('0.042472336458363125',), 1396511892: ('0.042472336458363125',)} args : 1396511977 depend.output_id : 0 input_args_next_step : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ('0.042472336458363125',), 1396511977: ('0.042472336458363125',), 1396511937: ()} output_args : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ('0.042472336458363125',), 1396511977: ('0.042472336458363125',), 1396511937: ('0.042472336458363125',), 1396511892: ('0.042472336458363125',)} args : 1396511937 depend.output_id : 0 input_args_next_step : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ('0.042472336458363125',), 1396511977: ('0.042472336458363125',), 1396511937: ('0.042472336458363125',), 1396511892: ()} output_args : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ('0.042472336458363125',), 1396511977: ('0.042472336458363125',), 1396511937: ('0.042472336458363125',), 1396511892: ('0.042472336458363125',)} args : 1396511892 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 : {28976061: [{'papier': 28976065, 'plastique': 28976066, 'Carton_brun': 28976067, 'mal_croppe': 28976068, 'flou': 28976069, 'environnement': 28976070, 'autre_refus': 28976071, 'Carton_gris': 28976072, 'kraft': 28976073, 'metal': 28976074, 'cartonnette': 28976075, 'Teint_Dans_La_Masse': 28976076}]} input_args_next_step : {1396512841: ('0.042472336458363125',), 1396512838: ('0.042472336458363125',), 1396512835: ('0.042472336458363125',), 1396512833: ('0.042472336458363125',), 1396512829: ('0.042472336458363125',), 1396512825: ('0.042472336458363125',), 1396512718: ('0.042472336458363125',), 1396512710: ('0.042472336458363125',), 1396512701: ('0.042472336458363125',), 1396512641: ('0.042472336458363125',), 1396512603: ('0.042472336458363125',), 1396512561: ('0.042472336458363125',), 1396512452: ('0.042472336458363125',), 1396512390: ('0.042472336458363125',), 1396512347: ('0.042472336458363125',), 1396512301: ('0.042472336458363125',), 1396512058: ('0.042472336458363125',), 1396512017: ('0.042472336458363125',), 1396511977: ('0.042472336458363125',), 1396511937: ('0.042472336458363125',), 1396511892: ('0.042472336458363125',), 28976061: ()} output_args : {28976061: [{'papier': 28976065, 'plastique': 28976066, 'Carton_brun': 28976067, 'mal_croppe': 28976068, 'flou': 28976069, 'environnement': 28976070, 'autre_refus': 28976071, 'Carton_gris': 28976072, 'kraft': 28976073, 'metal': 28976074, 'cartonnette': 28976075, 'Teint_Dans_La_Masse': 28976076}]} args : 28976061 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :22, first value : ('0.042472336458363125',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28976061) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1396512841,1396512838,1396512835,1396512833,1396512829,1396512825,1396512718,1396512710,1396512701,1396512641,1396512603,1396512561,1396512452,1396512390,1396512347,1396512301,1396512058,1396512017,1396511977,1396511937,1396511892) Found this number of photos: 21 ##### Call download_photos : nb_thread : 5 begin to download photo : 1396511892 begin to download photo : 1396512301 begin to download photo : 1396512603 begin to download photo : 1396512825 begin to download photo : 1396512841 download finish for photo 1396512841 download finish for photo 1396512301 begin to download photo : 1396512347 download finish for photo 1396512825 begin to download photo : 1396512829 download finish for photo 1396512603 begin to download photo : 1396512641 download finish for photo 1396511892 begin to download photo : 1396511937 download finish for photo 1396512347 begin to download photo : 1396512390 download finish for photo 1396512829 begin to download photo : 1396512833 download finish for photo 1396511937 begin to download photo : 1396511977 download finish for photo 1396512641 begin to download photo : 1396512701 download finish for photo 1396512390 begin to download photo : 1396512452 download finish for photo 1396512833 begin to download photo : 1396512835 download finish for photo 1396512701 begin to download photo : 1396512710 download finish for photo 1396511977 begin to download photo : 1396512017 download finish for photo 1396512452 begin to download photo : 1396512561 download finish for photo 1396512835 begin to download photo : 1396512838 download finish for photo 1396512710 begin to download photo : 1396512718 download finish for photo 1396512017 begin to download photo : 1396512058 download finish for photo 1396512561 download finish for photo 1396512838 download finish for photo 1396512058 download finish for photo 1396512718 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 21 ; length of list_pids : 21 ; length of list_args : 21 results_Auto_P28976061_28-11-2025_00_46_02.pdf 28976066 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28976066 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396510622: '1764286506_262268_1396510030_90249b205fc36fdada1509e366bf9b55_rle_crop_4048183201_0.png', 1396510805: '1764286527_262620_1396510408_30c96adf58ba579a0e62957f19da490d_rle_crop_4048183301_0.png', 1396511771: '1764286747_268581_1396510574_c0002b0f38f9332ba1bfe2add98e22f3_rle_crop_4048193343_0.png', 1396511772: '1764286747_268581_1396510569_07c5ced00f3ebe19d3741ef7e194fc02_rle_crop_4048193387_0.png', 1396511773: '1764286747_268581_1396510567_a6817e2cf19e30a60299cf8ce3f781b2_rle_crop_4048193398_0.png', 1396512719: '1764286886_272155_1396511340_f5dff17207643700b1ff7b9c5ca5d421_rle_crop_4048199939_0.png', 1396512721: '1764286886_272155_1396511127_60701727c1b1517477c6d21e997d41e7_rle_crop_4048199949_0.png', 1396512722: '1764286886_272155_1396511047_fcbe7391f8a51e528731e0e6db0ac829_rle_crop_4048199955_0.png', 1396512723: '1764286886_272155_1396510927_e9d0f36e89b343aeff1cd9eaaaf19a54_rle_crop_4048199985_0.png', 1396512724: '1764286886_272155_1396510927_e9d0f36e89b343aeff1cd9eaaaf19a54_rle_crop_4048199992_0.png', 1396512725: '1764286886_272155_1396510884_37b1ac67adedbd076b9f879e63d50677_rle_crop_4048200004_0.png', 1396512863: '1764287006_279015_1396511892_23dcb538dadf18e14ff70fcc7e5038fc_rle_crop_4048208175_0.png', 1396512907: '1764287105_281926_1396512347_c9da90f1927f11e9f8ae9c2467746623_rle_crop_4048212634_0.png', 1396512908: '1764287105_281926_1396512347_c9da90f1927f11e9f8ae9c2467746623_rle_crop_4048212635_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/b9d08eec1c25938c86310a1802871edc_42518363.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/ccae8531df62ddff1615127129bd8bb1_11639565.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/05d1b3f9d878c08715b89efef8633848_59623171.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/2ae54ccfcb78d1550799f5829f5346b3_93766434.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/e2b3f62cb749744e6290683f163e3c02_65079921.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/bbd684d9477800497980bc07762134db_5375065.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/debbcc2d59dd6043243826cedfd1a781_70695778.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/8911faaff5c34c6c675fd3f82b7171b2_21411351.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/36de4ef3a93974792b2a3b4cfe47f7b9_80499334.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/460c7aad7d193f65aebe6745168e30ff_10566383.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/6532c2fad7b2fbc8ba7f8f8fa594b806_36432745.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/def89517163d63f3c6e0b1cb88face04_26775828.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/26fe346865d21c3168e09aa8aa930019_90941494.png change filename to text .imagette289760661764287162/ imagette289760661764287162/1764286886_272155_1396511047_fcbe7391f8a51e528731e0e6db0ac829_rle_crop_4048199955_0.png.png imagette289760661764287162/1764287105_281926_1396512347_c9da90f1927f11e9f8ae9c2467746623_rle_crop_4048212635_0.png.png imagette289760661764287162/1764286886_272155_1396511340_f5dff17207643700b1ff7b9c5ca5d421_rle_crop_4048199939_0.png.png imagette289760661764287162/1764286886_272155_1396510927_e9d0f36e89b343aeff1cd9eaaaf19a54_rle_crop_4048199985_0.png.png imagette289760661764287162/1764286747_268581_1396510567_a6817e2cf19e30a60299cf8ce3f781b2_rle_crop_4048193398_0.png.png imagette289760661764287162/1764286747_268581_1396510569_07c5ced00f3ebe19d3741ef7e194fc02_rle_crop_4048193387_0.png.png imagette289760661764287162/1764287006_279015_1396511892_23dcb538dadf18e14ff70fcc7e5038fc_rle_crop_4048208175_0.png.png imagette289760661764287162/1764286747_268581_1396510574_c0002b0f38f9332ba1bfe2add98e22f3_rle_crop_4048193343_0.png.png imagette289760661764287162/1764286886_272155_1396510884_37b1ac67adedbd076b9f879e63d50677_rle_crop_4048200004_0.png.png imagette289760661764287162/1764286506_262268_1396510030_90249b205fc36fdada1509e366bf9b55_rle_crop_4048183201_0.png.png imagette289760661764287162/1764286886_272155_1396510927_e9d0f36e89b343aeff1cd9eaaaf19a54_rle_crop_4048199992_0.png.png imagette289760661764287162/1764286527_262620_1396510408_30c96adf58ba579a0e62957f19da490d_rle_crop_4048183301_0.png.png imagette289760661764287162/1764286886_272155_1396511127_60701727c1b1517477c6d21e997d41e7_rle_crop_4048199949_0.png.png imagette289760661764287162/1764287105_281926_1396512347_c9da90f1927f11e9f8ae9c2467746623_rle_crop_4048212634_0.png.png imagette289760681764287164/ imagette289760691764287164/ wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/22d121317128dab86db40cac74e98378_77262005.png imagette289760661764287162 28976068 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28976068 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette289760681764287164 28976069 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28976069 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette289760691764287164 28976071 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28976071 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396510596: '1764286506_262268_1396510007_d3a1b3ec019a92f61e07c98ccc5a814f_rle_crop_4048183223_0.png', 1396511759: '1764286747_268581_1396510593_1eb1f2e0390b3920ce6b871a78a5c5cb_rle_crop_4048193319_0.png', 1396511760: '1764286747_268581_1396510571_8abf339da8f6d331c5aadf100d4e66c6_rle_crop_4048193360_0.png', 1396512240: '1764286826_270344_1396511599_262e82b354b1ac0e060ae64695195992_rle_crop_4048193578_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/c3a3f8d4c63f77904e519b04a7ae4470_60872550.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/5a78f0e6ddab9c9f598593dd5f7d7c97_17817453.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/0c9ac6674e24c76dbcc7bb86ce21d8a6_4465235.png change filename to text .imagette289760711764287164/ imagette289760711764287164/1764286747_268581_1396510571_8abf339da8f6d331c5aadf100d4e66c6_rle_crop_4048193360_0.png.png imagette289760711764287164/1764286506_262268_1396510007_d3a1b3ec019a92f61e07c98ccc5a814f_rle_crop_4048183223_0.png.png imagette289760711764287164/1764286747_268581_1396510593_1eb1f2e0390b3920ce6b871a78a5c5cb_rle_crop_4048193319_0.png.png imagette289760711764287164/1764286826_270344_1396511599_262e82b354b1ac0e060ae64695195992_rle_crop_4048193578_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/79a446d07a8374dcb0d71f42a6eb1ce3_16344300.png imagette289760711764287164 28976073 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28976073 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396512909: '1764287105_281926_1396512390_017d38588417650776ccddd62f162ad7_rle_crop_4048212617_0.png'} change filename to text .imagette289760731764287164/ imagette289760731764287164/1764287105_281926_1396512390_017d38588417650776ccddd62f162ad7_rle_crop_4048212617_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/3dd66586afb13619763c806c941c1009_94144562.png imagette289760731764287164 28976074 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28976074 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396512864: '1764287006_279015_1396512452_07ca0d6105bec4c02016d324955723dc_rle_crop_4048206659_0.png'} change filename to text .imagette289760741764287164/ imagette289760741764287164/1764287006_279015_1396512452_07ca0d6105bec4c02016d324955723dc_rle_crop_4048206659_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/ad885328d50b113c9b5110c7014f6dde_17542368.png imagette289760741764287164 28976075 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28976075 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396511765: '1764286747_268581_1396510593_1eb1f2e0390b3920ce6b871a78a5c5cb_rle_crop_4048193321_0.png', 1396511766: '1764286747_268581_1396510567_a6817e2cf19e30a60299cf8ce3f781b2_rle_crop_4048193393_0.png', 1396511767: '1764286747_268581_1396510564_f3e8bb939a15420b1a47981cc644c98e_rle_crop_4048193403_0.png', 1396512511: '1764286865_271040_1396511298_f54fad6a280a84d4162d3994ca34a2b6_rle_crop_4048198327_0.png', 1396512711: '1764286886_272155_1396511340_f5dff17207643700b1ff7b9c5ca5d421_rle_crop_4048199931_0.png', 1396512712: '1764286886_272155_1396510927_e9d0f36e89b343aeff1cd9eaaaf19a54_rle_crop_4048199989_0.png', 1396512906: '1764287105_281926_1396512347_c9da90f1927f11e9f8ae9c2467746623_rle_crop_4048212637_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/ae348c1425adb2d944a0133d9fdd7755_57381608.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/686b94bdc7f87a7f8888b0b39bc5b93d_69672566.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/6f6a42a95bf20edc149c7f8c4846b49f_11229861.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/809f2c7d6e1d1cded28eccd4db5f5aa2_83846797.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/876f66ca1ceab9e8a06bb44f52ab7607_52406041.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/667739e250e55f7763b337a9d628f9f0_64258706.png change filename to text .imagette289760751764287164/ imagette289760751764287164/1764286747_268581_1396510567_a6817e2cf19e30a60299cf8ce3f781b2_rle_crop_4048193393_0.png.png imagette289760751764287164/1764287105_281926_1396512347_c9da90f1927f11e9f8ae9c2467746623_rle_crop_4048212637_0.png.png imagette289760751764287164/1764286886_272155_1396510927_e9d0f36e89b343aeff1cd9eaaaf19a54_rle_crop_4048199989_0.png.png imagette289760751764287164/1764286886_272155_1396511340_f5dff17207643700b1ff7b9c5ca5d421_rle_crop_4048199931_0.png.png imagette289760751764287164/1764286865_271040_1396511298_f54fad6a280a84d4162d3994ca34a2b6_rle_crop_4048198327_0.png.png imagette289760751764287164/1764286747_268581_1396510564_f3e8bb939a15420b1a47981cc644c98e_rle_crop_4048193403_0.png.png imagette289760751764287164/1764286747_268581_1396510593_1eb1f2e0390b3920ce6b871a78a5c5cb_rle_crop_4048193321_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/82486831bf133dbad5b55780d800b029_99751465.png imagette289760751764287164 28976067 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28976067 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396510608: '1764286506_262268_1396510030_90249b205fc36fdada1509e366bf9b55_rle_crop_4048183199_0.png', 1396510611: '1764286506_262268_1396510007_d3a1b3ec019a92f61e07c98ccc5a814f_rle_crop_4048183227_0.png', 1396511561: '1764286647_266693_1396510591_0ae2b4ef2a89d8d95686a42874d73907_rle_crop_4048190076_0.png', 1396511562: '1764286647_266693_1396510591_0ae2b4ef2a89d8d95686a42874d73907_rle_crop_4048190077_0.png', 1396511769: '1764286747_268581_1396510574_c0002b0f38f9332ba1bfe2add98e22f3_rle_crop_4048193341_0.png', 1396511770: '1764286747_268581_1396510564_f3e8bb939a15420b1a47981cc644c98e_rle_crop_4048193409_0.png', 1396512525: '1764286865_271040_1396511298_f54fad6a280a84d4162d3994ca34a2b6_rle_crop_4048198330_0.png', 1396512713: '1764286886_272155_1396511127_60701727c1b1517477c6d21e997d41e7_rle_crop_4048199945_0.png', 1396512714: '1764286886_272155_1396511127_60701727c1b1517477c6d21e997d41e7_rle_crop_4048199947_0.png', 1396512716: '1764286886_272155_1396510971_b2bedf43204dc2e02166a75d31cdae89_rle_crop_4048199973_0.png', 1396512717: '1764286886_272155_1396510971_b2bedf43204dc2e02166a75d31cdae89_rle_crop_4048199969_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/cd5703b77666c81cc94793023776aab8_21756280.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/df09d8da779190c33f63c7a7e525de43_26045739.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/121bd09349553526636f19351c8b56c8_22032737.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/f083a6a1e6108a385122b11d708f25e6_94121770.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/d62495f57222610c42226efcdc2ba67c_68026249.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/1eff714d3f6a6dc59436c19bafc1476a_97267364.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/e1939cecc83ec3d39b67909263e7f0ec_55455532.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/0206132580ef60714930f2a581a2b4ff_61954991.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/e2db8a0f9f1899c2892bbefdb3e976c6_8446927.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/815e101c6edcbf8d4f42aa95a619eec9_81043920.png change filename to text .imagette289760671764287165/ imagette289760671764287165/1764286886_272155_1396510971_b2bedf43204dc2e02166a75d31cdae89_rle_crop_4048199969_0.png.png imagette289760671764287165/1764286506_262268_1396510030_90249b205fc36fdada1509e366bf9b55_rle_crop_4048183199_0.png.png imagette289760671764287165/1764286865_271040_1396511298_f54fad6a280a84d4162d3994ca34a2b6_rle_crop_4048198330_0.png.png imagette289760671764287165/1764286886_272155_1396511127_60701727c1b1517477c6d21e997d41e7_rle_crop_4048199947_0.png.png imagette289760671764287165/1764286747_268581_1396510574_c0002b0f38f9332ba1bfe2add98e22f3_rle_crop_4048193341_0.png.png imagette289760671764287165/1764286886_272155_1396511127_60701727c1b1517477c6d21e997d41e7_rle_crop_4048199945_0.png.png imagette289760671764287165/1764286886_272155_1396510971_b2bedf43204dc2e02166a75d31cdae89_rle_crop_4048199973_0.png.png imagette289760671764287165/1764286647_266693_1396510591_0ae2b4ef2a89d8d95686a42874d73907_rle_crop_4048190076_0.png.png imagette289760671764287165/1764286747_268581_1396510564_f3e8bb939a15420b1a47981cc644c98e_rle_crop_4048193409_0.png.png imagette289760671764287165/1764286506_262268_1396510007_d3a1b3ec019a92f61e07c98ccc5a814f_rle_crop_4048183227_0.png.png imagette289760671764287165/1764286647_266693_1396510591_0ae2b4ef2a89d8d95686a42874d73907_rle_crop_4048190077_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/5784ab1a5c92a569246bb7f0ee6202e0_88833769.png imagette289760671764287165 28976072 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28976072 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396510598: '1764286506_262268_1396510009_b783222d4e907b0bddac7280ba5cb29e_rle_crop_4048183207_0.png', 1396511560: '1764286647_266693_1396510592_d1dc98b86447a4aaf987db79d224abcc_rle_crop_4048190064_0.png', 1396511762: '1764286747_268581_1396510571_8abf339da8f6d331c5aadf100d4e66c6_rle_crop_4048193354_0.png', 1396511763: '1764286747_268581_1396510567_a6817e2cf19e30a60299cf8ce3f781b2_rle_crop_4048193397_0.png', 1396512504: '1764286865_271040_1396511294_65e5d760c3f077fe6f824a3abaa74a97_rle_crop_4048198336_0.png', 1396512708: '1764286886_272155_1396510884_37b1ac67adedbd076b9f879e63d50677_rle_crop_4048200000_0.png', 1396512903: '1764287105_281926_1396512390_017d38588417650776ccddd62f162ad7_rle_crop_4048212616_0.png', 1396512905: '1764287105_281926_1396512301_105e2ce39d1c99b4781f043a24303281_rle_crop_4048212650_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/03a48c28bc6986bdd6353615d7eced1a_99306851.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/55a2e128bbdee7ea4aa387353c07614f_6584135.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/ba8308de4b21e590c42da828ca0c15d0_22323039.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/dd0fa5e802f7d1924d6995e3f54ed778_66659031.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/e9e5e31308f4b418c3e5c9478d187bd9_19874053.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/6ee749923624cd09698a84c905b839ae_66936934.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/d905d8ecfdefb594e9fa7485ab2ffb65_82380075.png change filename to text .imagette289760721764287166/ imagette289760721764287166/1764286647_266693_1396510592_d1dc98b86447a4aaf987db79d224abcc_rle_crop_4048190064_0.png.png imagette289760721764287166/1764287105_281926_1396512390_017d38588417650776ccddd62f162ad7_rle_crop_4048212616_0.png.png imagette289760721764287166/1764286506_262268_1396510009_b783222d4e907b0bddac7280ba5cb29e_rle_crop_4048183207_0.png.png imagette289760721764287166/1764286747_268581_1396510571_8abf339da8f6d331c5aadf100d4e66c6_rle_crop_4048193354_0.png.png imagette289760721764287166/1764287105_281926_1396512301_105e2ce39d1c99b4781f043a24303281_rle_crop_4048212650_0.png.png imagette289760721764287166/1764286886_272155_1396510884_37b1ac67adedbd076b9f879e63d50677_rle_crop_4048200000_0.png.png imagette289760721764287166/1764286865_271040_1396511294_65e5d760c3f077fe6f824a3abaa74a97_rle_crop_4048198336_0.png.png imagette289760721764287166/1764286747_268581_1396510567_a6817e2cf19e30a60299cf8ce3f781b2_rle_crop_4048193397_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/85bdc57bfa45c27fa8d4fd0470a7d2f9_38728315.png imagette289760721764287166 28976076 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28976076 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1396510788: '1764286527_262620_1396510408_30c96adf58ba579a0e62957f19da490d_rle_crop_4048183310_0.png', 1396511757: '1764286747_268581_1396510571_8abf339da8f6d331c5aadf100d4e66c6_rle_crop_4048193359_0.png', 1396511758: '1764286747_268581_1396510569_07c5ced00f3ebe19d3741ef7e194fc02_rle_crop_4048193385_0.png', 1396512226: '1764286826_270344_1396511696_6429a5302b8c48d4645f4e355e3003d3_rle_crop_4048193536_0.png', 1396512229: '1764286826_270344_1396511670_a2b1d785fc76b8e4790ea48cde097ff6_rle_crop_4048193546_0.png', 1396512502: '1764286865_271040_1396511697_de4d3b80109f9bf02ec03b77b1d1dbef_rle_crop_4048198306_0.png', 1396512503: '1764286865_271040_1396511298_f54fad6a280a84d4162d3994ca34a2b6_rle_crop_4048198328_0.png', 1396512707: '1764286886_272155_1396511340_f5dff17207643700b1ff7b9c5ca5d421_rle_crop_4048199936_0.png', 1396512862: '1764287006_279015_1396511977_7ce736577d55969501943cfe1da788be_rle_crop_4048208153_0.png', 1396512900: '1764287105_281926_1396512301_105e2ce39d1c99b4781f043a24303281_rle_crop_4048212647_0.png', 1396512901: '1764287105_281926_1396512301_105e2ce39d1c99b4781f043a24303281_rle_crop_4048212651_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/378109bc7a8757e0e128faca2b45f9e9_23214853.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/d6bb8c85b7204cccdff3f54a40689478_44162293.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/4af6b880fc1fdb2aaac912bdeffc959c_3266678.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/76d85588df03b4060c9e3fcb588244bd_68788507.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/11ed883a7575e82d872a8b5624b9568e_62522063.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/8cb8096cf86b3cae57669d14da71d37a_51058377.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/5a1fbcad3a47a6ce2a4d415fcee4f51d_52448471.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/baa9c0707a8f376f2638e59d4cd6b44e_99471650.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/4a293397a00302d615a145c77b395d6f_98785985.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/3ca86c3ec6b362da043340af325b758c_13219794.png change filename to text .imagette289760761764287166/ imagette289760761764287166/1764286527_262620_1396510408_30c96adf58ba579a0e62957f19da490d_rle_crop_4048183310_0.png.png imagette289760761764287166/1764286865_271040_1396511697_de4d3b80109f9bf02ec03b77b1d1dbef_rle_crop_4048198306_0.png.png imagette289760761764287166/1764286826_270344_1396511670_a2b1d785fc76b8e4790ea48cde097ff6_rle_crop_4048193546_0.png.png imagette289760761764287166/1764287105_281926_1396512301_105e2ce39d1c99b4781f043a24303281_rle_crop_4048212647_0.png.png imagette289760761764287166/1764286826_270344_1396511696_6429a5302b8c48d4645f4e355e3003d3_rle_crop_4048193536_0.png.png imagette289760761764287166/1764287105_281926_1396512301_105e2ce39d1c99b4781f043a24303281_rle_crop_4048212651_0.png.png imagette289760761764287166/1764286865_271040_1396511298_f54fad6a280a84d4162d3994ca34a2b6_rle_crop_4048198328_0.png.png imagette289760761764287166/1764286886_272155_1396511340_f5dff17207643700b1ff7b9c5ca5d421_rle_crop_4048199936_0.png.png imagette289760761764287166/1764286747_268581_1396510571_8abf339da8f6d331c5aadf100d4e66c6_rle_crop_4048193359_0.png.png imagette289760761764287166/1764286747_268581_1396510569_07c5ced00f3ebe19d3741ef7e194fc02_rle_crop_4048193385_0.png.png imagette289760761764287166/1764287006_279015_1396511977_7ce736577d55969501943cfe1da788be_rle_crop_4048208153_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/9a5ed07ba78ce5da0723a00032dfe6a7_10239863.png imagette289760761764287166 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28976061 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28976078,28976079,28976080,28976081,28976082,28976083,28976084,28976085,28976086,28976087,28976088,28976089?tags=papier,plastique,Carton_brun,mal_croppe,flou,environnement,autre_refus,Carton_gris,kraft,metal,cartonnette,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1396512841] : ('0.042472336458363125',) no score found for photo 1396512841 We are sending mail with results at report@fotonower.com args[1396512838] : ('0.042472336458363125',) no score found for photo 1396512838 We are sending mail with results at report@fotonower.com args[1396512835] : ('0.042472336458363125',) no score found for photo 1396512835 We are sending mail with results at report@fotonower.com args[1396512833] : ('0.042472336458363125',) no score found for photo 1396512833 We are sending mail with results at report@fotonower.com args[1396512829] : ('0.042472336458363125',) no score found for photo 1396512829 We are sending mail with results at report@fotonower.com args[1396512825] : ('0.042472336458363125',) no score found for photo 1396512825 We are sending mail with results at report@fotonower.com args[1396512718] : ('0.042472336458363125',) no score found for photo 1396512718 We are sending mail with results at report@fotonower.com args[1396512710] : ('0.042472336458363125',) no score found for photo 1396512710 We are sending mail with results at report@fotonower.com args[1396512701] : ('0.042472336458363125',) no score found for photo 1396512701 We are sending mail with results at report@fotonower.com args[1396512641] : ('0.042472336458363125',) no score found for photo 1396512641 We are sending mail with results at report@fotonower.com args[1396512603] : ('0.042472336458363125',) no score found for photo 1396512603 We are sending mail with results at report@fotonower.com args[1396512561] : ('0.042472336458363125',) no score found for photo 1396512561 We are sending mail with results at report@fotonower.com args[1396512452] : ('0.042472336458363125',) no score found for photo 1396512452 We are sending mail with results at report@fotonower.com args[1396512390] : ('0.042472336458363125',) no score found for photo 1396512390 We are sending mail with results at report@fotonower.com args[1396512347] : ('0.042472336458363125',) no score found for photo 1396512347 We are sending mail with results at report@fotonower.com args[1396512301] : ('0.042472336458363125',) no score found for photo 1396512301 We are sending mail with results at report@fotonower.com args[1396512058] : ('0.042472336458363125',) no score found for photo 1396512058 We are sending mail with results at report@fotonower.com args[1396512017] : ('0.042472336458363125',) no score found for photo 1396512017 We are sending mail with results at report@fotonower.com args[1396511977] : ('0.042472336458363125',) no score found for photo 1396511977 We are sending mail with results at report@fotonower.com args[1396511937] : ('0.042472336458363125',) no score found for photo 1396511937 We are sending mail with results at report@fotonower.com args[1396511892] : ('0.042472336458363125',) no score found for photo 1396511892 We are sending mail with results at report@fotonower.com refus_total : 0.042472336458363125 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28976061 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_P28976061_28-11-2025_00_46_02.pdf results_Auto_P28976061_28-11-2025_00_46_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976061_28-11-2025_00_46_02.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','28976061','results_Auto_P28976061_28-11-2025_00_46_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976061_28-11-2025_00_46_02.pdf','pdf','','0.32','0.042472336458363125') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28976061]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1396512841, 1396512838, 1396512835, 1396512833, 1396512829, 1396512825, 1396512718, 1396512710, 1396512701, 1396512641, 1396512603, 1396512561, 1396512452, 1396512390, 1396512347, 1396512301, 1396512058, 1396512017, 1396511977, 1396511937, 1396511892] map_info['map_portfolio_photo'] : {28976061: [1396512841, 1396512838, 1396512835, 1396512833, 1396512829, 1396512825, 1396512718, 1396512710, 1396512701, 1396512641, 1396512603, 1396512561, 1396512452, 1396512390, 1396512347, 1396512301, 1396512058, 1396512017, 1396511977, 1396511937, 1396511892, 1396511779, 1396511776, 1396511774, 1396511764, 1396511751, 1396511747, 1396511745, 1396511742, 1396511738, 1396511735, 1396511697, 1396511696, 1396511670, 1396511620, 1396511614, 1396511599, 1396511340, 1396511303, 1396511300, 1396511298, 1396511294, 1396511190, 1396511127, 1396511047, 1396510971, 1396510927, 1396510884, 1396510593, 1396510592, 1396510591, 1396510589, 1396510580, 1396510574, 1396510571, 1396510569, 1396510567, 1396510564, 1396510413, 1396510408, 1396510376, 1396510349, 1396510321, 1396510121, 1396510092, 1396510067, 1396510063, 1396510060, 1396510057, 1396510030, 1396510009, 1396510007]} final : False mtd_id 4302 list_pids : [1396512841, 1396512838, 1396512835, 1396512833, 1396512829, 1396512825, 1396512718, 1396512710, 1396512701, 1396512641, 1396512603, 1396512561, 1396512452, 1396512390, 1396512347, 1396512301, 1396512058, 1396512017, 1396511977, 1396511937, 1396511892] 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, '4131718') ('4302', '28976061', '1396512841', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512838', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512835', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512833', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512829', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512825', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512718', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512710', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512701', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512641', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512603', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512561', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512452', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512390', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512347', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512301', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512058', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512017', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396511977', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396511937', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396511892', None, None, None, None, None, '4131718') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28976061', '1396512841', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512838', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512835', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512833', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512829', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512825', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512718', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512710', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512701', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512641', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512603', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512561', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512452', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512390', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512347', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512301', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512058', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512017', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396511977', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396511937', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396511892', None, None, None, None, None, '4131718')] time used for this insertion : 0.03609347343444824 save_final save missing photos in datou_result : time spend for datou_step_exec : 8.020506381988525 time spend to save output : 0.03644299507141113 total time spend for step 4 : 8.056949377059937 step5:split_time_score Fri Nov 28 00:46:10 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 : ['28976061'] 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 : [('28976061',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28976061) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1396512841: {'path': 'temp/1764287162_3138575_1396512841_cd57d58991dbdefe85b2046993ef0685.jpg', 'extension': 'jpg'}, 1396512301: {'path': 'temp/1764287162_3138575_1396512301_105e2ce39d1c99b4781f043a24303281.jpg', 'extension': 'jpg'}, 1396512347: {'path': 'temp/1764287162_3138575_1396512347_c9da90f1927f11e9f8ae9c2467746623.jpg', 'extension': 'jpg'}, 1396512390: {'path': 'temp/1764287162_3138575_1396512390_017d38588417650776ccddd62f162ad7.jpg', 'extension': 'jpg'}, 1396512452: {'path': 'temp/1764287162_3138575_1396512452_07ca0d6105bec4c02016d324955723dc.jpg', 'extension': 'jpg'}, 1396512561: {'path': 'temp/1764287162_3138575_1396512561_5457032955195df6db4025c47a7d671d.jpg', 'extension': 'jpg'}, 1396512825: {'path': 'temp/1764287162_3138575_1396512825_1b9ecda57324b7bbfddf2db4df6f9ec6.jpg', 'extension': 'jpg'}, 1396512829: {'path': 'temp/1764287162_3138575_1396512829_251c209fe648c8d11773268a57d93aa6.jpg', 'extension': 'jpg'}, 1396512833: {'path': 'temp/1764287162_3138575_1396512833_78cfda4091689dc7ed8603fdc9e6200c.jpg', 'extension': 'jpg'}, 1396512835: {'path': 'temp/1764287162_3138575_1396512835_20d8d8f37080613d317599e52842c5de.jpg', 'extension': 'jpg'}, 1396512838: {'path': 'temp/1764287162_3138575_1396512838_aca83a07067912c80c05011adce66fb4.jpg', 'extension': 'jpg'}, 1396511892: {'path': 'temp/1764287162_3138575_1396511892_23dcb538dadf18e14ff70fcc7e5038fc.jpg', 'extension': 'jpg'}, 1396511937: {'path': 'temp/1764287162_3138575_1396511937_feef4b7a44406c6ef52d29ed31b43675.jpg', 'extension': 'jpg'}, 1396511977: {'path': 'temp/1764287162_3138575_1396511977_7ce736577d55969501943cfe1da788be.jpg', 'extension': 'jpg'}, 1396512017: {'path': 'temp/1764287162_3138575_1396512017_de02722fece06dd6f6cd4fd937fb9c6f.jpg', 'extension': 'jpg'}, 1396512058: {'path': 'temp/1764287162_3138575_1396512058_3447c76d541314c1757aac4286600941.jpg', 'extension': 'jpg'}, 1396512603: {'path': 'temp/1764287162_3138575_1396512603_bfa7dc0e1e642d0b86a7b2a44ab01b05.jpg', 'extension': 'jpg'}, 1396512641: {'path': 'temp/1764287162_3138575_1396512641_0e8dd464c78f89bac509442e85c12d2c.jpg', 'extension': 'jpg'}, 1396512701: {'path': 'temp/1764287162_3138575_1396512701_43766b2474ffc240c7d5a497e4e8bbdd.jpg', 'extension': 'jpg'}, 1396512710: {'path': 'temp/1764287162_3138575_1396512710_42103961bac59ea24f02441a9d746e44.jpg', 'extension': 'jpg'}, 1396512718: {'path': 'temp/1764287162_3138575_1396512718_9331549f0061408f9acb1274072dabc4.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 = 28976061; (('arc_en_ciel_jrm_live',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28976061 group by h (('00', 72),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28976061 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 (28976061) 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 (28976061) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28112025 28976061 Nombre de photos uploadées : 72 / 23040 (0%) 28112025 28976061 Nombre de photos taguées (types de déchets): 0 / 72 (0%) 28112025 28976061 Nombre de photos taguées (volume) : 0 / 72 (0%) [{'photo_id': 1396510030, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/90249b205fc36fdada1509e366bf9b55.jpg', 'username': None, 'uploaded_at': 1764286303, 'text': 'image_28112025_00_30_04_10159.jpg'}, {'photo_id': 1396510009, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/b783222d4e907b0bddac7280ba5cb29e.jpg', 'username': None, 'uploaded_at': 1764286303, 'text': 'image_28112025_00_30_13_9131.jpg'}, {'photo_id': 1396510007, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/d3a1b3ec019a92f61e07c98ccc5a814f.jpg', 'username': None, 'uploaded_at': 1764286303, 'text': 'image_28112025_00_30_23_10136.jpg'}, {'photo_id': 1396510121, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/28/03d7d3fd7661658691f91f58b92d532f.jpg', 'username': None, 'uploaded_at': 1764286342, 'text': 'image_28112025_00_30_33_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.6226043701171875e-06 elapsed_time : order_list_meta_photo_and_scores 9.059906005859375e-06 ???????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0026702880859375 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 28976061, '2025-11-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 218 and date = '2025-11-28' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2657782,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.5513920783996582 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= 2657782 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2657782, 'dashboard_run_id': 2664883, 'mtr_portfolio_id': 28975051, 'dashboard_result_id': 17825157, '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_P28975051_28-11-2025_00_25_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28975071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975082, 'pht': 3726}}"}, {'dashboat_entry_day': 2657782, 'dashboard_run_id': 2664883, 'mtr_portfolio_id': 28975640, 'dashboard_result_id': 17825158, '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_P28975640_28-11-2025_00_31_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28975651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975652, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975654, 'pht': 3726}}"}, {'dashboat_entry_day': 2657782, 'dashboard_run_id': 2664883, 'mtr_portfolio_id': 28976061, 'dashboard_result_id': 17825159, '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_P28976061_28-11-2025_00_41_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28976065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976076, '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 = 28975051 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': 4131633, 'mtr_portfolio_id': 28975051, 'created_at': datetime.datetime(2025, 11, 28, 0, 25, 4), 'result': '0.041448810976491474', 'result_long': None, 'result_double': None}] Qualite : 0.041448810976491474 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28975051 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975051_28-11-2025_00_25_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28975051 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_P28975051_28-11-2025_00_25_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28975071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975082, 'pht': 3726}}" where mtr_portfolio_id = 28975051 and dashboard_run_id = 2664883 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`=28975051 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17825157, 0.041448810976491474, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975051_28-11-2025_00_25_04.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28975071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975073, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975074, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975075, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975078, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975079, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975081, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975082, '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 = 28975640 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': 4131681, 'mtr_portfolio_id': 28975640, 'created_at': datetime.datetime(2025, 11, 28, 0, 31, 4), 'result': '0.026505368073771105', 'result_long': None, 'result_double': None}] Qualite : 0.026505368073771105 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28975640 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975640_28-11-2025_00_31_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28975640 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_P28975640_28-11-2025_00_31_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28975651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975652, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975654, 'pht': 3726}}" where mtr_portfolio_id = 28975640 and dashboard_run_id = 2664883 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`=28975640 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17825158, 0.026505368073771105, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28975640_28-11-2025_00_31_05.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28975643, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28975644, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28975645, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28975646, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28975647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28975648, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28975649, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28975650, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28975651, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28975652, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28975653, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28975654, '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 = 28976061 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': 4131718, 'mtr_portfolio_id': 28976061, 'created_at': datetime.datetime(2025, 11, 28, 0, 46, 1), 'result': '0.042472336458363125', 'result_long': None, 'result_double': None}] Qualite : 0.042472336458363125 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28976061 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976061_28-11-2025_00_46_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28976061 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_P28976061_28-11-2025_00_46_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28976065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976076, 'pht': 3726}}" where mtr_portfolio_id = 28976061 and dashboard_run_id = 2664883 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`=28976061 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17825159, 0.042472336458363125, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28976061_28-11-2025_00_46_02.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28976065, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28976066, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28976067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28976068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28976069, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28976070, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28976071, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28976072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28976073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28976074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28976075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28976076, '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 (28975051,28975640,28976061) result : ((1396500799,), (1396500876,), (1396500951,), (1396501028,), (1396501825,), (1396501895,), (1396501965,), (1396502025,), (1396502595,), (1396502695,), (1396502783,), (1396502874,), (1396503635,), (1396503685,), (1396504251,), (1396504299,), (1396506218,), (1396506261,), (1396506283,), (1396506995,), (1396506650,), (1396506943,), (1396506969,), (1396507382,), (1396507407,), (1396507434,), (1396507465,), (1396507752,), (1396507766,), (1396507771,), (1396507776,), (1396507780,), (1396507960,), (1396508009,), (1396508055,), (1396508106,), (1396508153,), (1396508624,), (1396508674,), (1396508721,), (1396508781,), (1396509060,), (1396509552,), (1396509595,), (1396509654,), (1396509708,), (1396509755,), (1396509793,), (1396509870,), (1396509895,), (1396509907,), (1396509911,), (1396509950,), (1396509953,), (1396509956,), (1396509959,), (1396509962,), (1396509972,), (1396510041,), (1396510048,), (1396510052,), (1396510212,), (1396510007,), (1396510009,), (1396510030,), (1396510057,), (1396510060,), (1396510063,), (1396510067,), (1396510092,), (1396510121,), (1396510321,), (1396510349,), (1396510376,), (1396510408,), (1396510413,), (1396510564,), (1396510567,), (1396510569,), (1396510571,), (1396510574,), (1396510580,), (1396510589,), (1396510591,), (1396510592,), (1396510593,), (1396510884,), (1396510927,), (1396510971,), (1396511047,), (1396511127,), (1396511190,), (1396511294,), (1396511298,), (1396511300,), (1396511303,), (1396511340,), (1396511599,), (1396511614,), (1396511620,), (1396511670,), (1396511696,), (1396511697,), (1396511735,), (1396511738,), (1396511742,), (1396511745,), (1396511747,), (1396511751,), (1396511764,), (1396511774,), (1396511776,), (1396511779,), (1396511892,), (1396511937,), (1396511977,), (1396512017,), (1396512058,), (1396512301,), (1396512347,), (1396512390,), (1396512452,), (1396512561,), (1396512603,), (1396512641,), (1396512701,), (1396512710,), (1396512718,), (1396512825,), (1396512829,), (1396512833,), (1396512835,), (1396512838,), (1396512841,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28112025': {'nb_upload': 72, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28976061]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1396512841, 1396512838, 1396512835, 1396512833, 1396512829, 1396512825, 1396512718, 1396512710, 1396512701, 1396512641, 1396512603, 1396512561, 1396512452, 1396512390, 1396512347, 1396512301, 1396512058, 1396512017, 1396511977, 1396511937, 1396511892] map_info['map_portfolio_photo'] : {28976061: [1396512841, 1396512838, 1396512835, 1396512833, 1396512829, 1396512825, 1396512718, 1396512710, 1396512701, 1396512641, 1396512603, 1396512561, 1396512452, 1396512390, 1396512347, 1396512301, 1396512058, 1396512017, 1396511977, 1396511937, 1396511892, 1396511779, 1396511776, 1396511774, 1396511764, 1396511751, 1396511747, 1396511745, 1396511742, 1396511738, 1396511735, 1396511697, 1396511696, 1396511670, 1396511620, 1396511614, 1396511599, 1396511340, 1396511303, 1396511300, 1396511298, 1396511294, 1396511190, 1396511127, 1396511047, 1396510971, 1396510927, 1396510884, 1396510593, 1396510592, 1396510591, 1396510589, 1396510580, 1396510574, 1396510571, 1396510569, 1396510567, 1396510564, 1396510413, 1396510408, 1396510376, 1396510349, 1396510321, 1396510121, 1396510092, 1396510067, 1396510063, 1396510060, 1396510057, 1396510030, 1396510009, 1396510007]} final : True mtd_id 4302 list_pids : [1396512841, 1396512838, 1396512835, 1396512833, 1396512829, 1396512825, 1396512718, 1396512710, 1396512701, 1396512641, 1396512603, 1396512561, 1396512452, 1396512390, 1396512347, 1396512301, 1396512058, 1396512017, 1396511977, 1396511937, 1396511892] Looping around the photos to save general results len do output : 1 /28976061Didn'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, '4131718') ('4302', '28976061', '1396512841', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512838', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512835', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512833', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512829', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512825', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512718', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512710', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512701', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512641', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512603', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512561', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512452', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512390', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512347', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512301', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512058', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396512017', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396511977', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396511937', None, None, None, None, None, '4131718') ('4302', None, None, None, None, None, None, None, '4131718') ('4302', '28976061', '1396511892', None, None, None, None, None, '4131718') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28976061', 'None', None, None, None, None, '4131718'), ('4302', '28976061', '1396512841', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512838', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512835', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512833', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512829', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512825', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512718', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512710', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512701', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512641', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512603', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512561', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512452', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512390', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512347', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512301', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512058', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396512017', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396511977', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396511937', None, None, None, None, None, '4131718'), ('4302', '28976061', '1396511892', None, None, None, None, None, '4131718')] time used for this insertion : 0.042502641677856445 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5167417526245117 time spend to save output : 0.04284238815307617 total time spend for step 5 : 1.559584140777588 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 (4131718) 2.69user 2.61system 0:16.45elapsed 32%CPU (0avgtext+0avgdata 166748maxresident)k 49360inputs+19560outputs (200major+78483minor)pagefaults 0swaps