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 : 3579466 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 (2760203) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2760203) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22412515 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2760203'] with mtr_portfolio_ids : ['22412515'] and first list_photo_ids : [] new path : /proc/3579466/ Name: python3 Umask: 0002 State: R (running) Tgid: 3579466 Ngid: 0 Pid: 3579466 PPid: 3579465 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3579466 NSpid: 3579466 NSpgid: 3577336 NSsid: 3577336 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97412 kB VmRSS: 97412 kB RssAnon: 59804 kB RssFile: 37608 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 68 nonvoluntary_ctxt_switches: 96 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3579466', 'Ngid': '0', 'Pid': '3579466', 'PPid': '3579465', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3579466', 'NSpid': '3579466', 'NSpgid': '3577336', 'NSsid': '3577336', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97412 kB', 'VmRSS': '97412 kB', 'RssAnon': '59804 kB', 'RssFile': '37608 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '68', 'nonvoluntary_ctxt_switches': '96'} ('datou_batch_current', '3579466', '1106936', '0', '1106936', '865684', '97412', b'', 'marlene', '2760203') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (22412515) 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 (2760203 ) ) 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 (22412515) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1353599470, 'portfolio_id': 22412515}, {'photo_id': 1353599406, 'portfolio_id': 22412515}, {'photo_id': 1353599404, 'portfolio_id': 22412515}, {'photo_id': 1353599401, 'portfolio_id': 22412515}, {'photo_id': 1353599398, 'portfolio_id': 22412515}, {'photo_id': 1353599352, 'portfolio_id': 22412515}, {'photo_id': 1353599350, 'portfolio_id': 22412515}, {'photo_id': 1353599347, 'portfolio_id': 22412515}, {'photo_id': 1353599336, 'portfolio_id': 22412515}, {'photo_id': 1353599315, 'portfolio_id': 22412515}, {'photo_id': 1353599314, 'portfolio_id': 22412515}, {'photo_id': 1353599313, 'portfolio_id': 22412515}, {'photo_id': 1353599305, 'portfolio_id': 22412515}, {'photo_id': 1353599298, 'portfolio_id': 22412515}, {'photo_id': 1353599292, 'portfolio_id': 22412515}, {'photo_id': 1353599132, 'portfolio_id': 22412515}, {'photo_id': 1353598632, 'portfolio_id': 22412515}, {'photo_id': 1353598628, 'portfolio_id': 22412515}, {'photo_id': 1353598625, 'portfolio_id': 22412515}, {'photo_id': 1353598622, 'portfolio_id': 22412515}, {'photo_id': 1353598604, 'portfolio_id': 22412515}, {'photo_id': 1353598601, 'portfolio_id': 22412515}, {'photo_id': 1353598599, 'portfolio_id': 22412515}, {'photo_id': 1353598596, 'portfolio_id': 22412515}, {'photo_id': 1353598594, 'portfolio_id': 22412515}, {'photo_id': 1353598588, 'portfolio_id': 22412515}, {'photo_id': 1353598571, 'portfolio_id': 22412515}, {'photo_id': 1353598570, 'portfolio_id': 22412515}, {'photo_id': 1353598568, 'portfolio_id': 22412515}, {'photo_id': 1353597375, 'portfolio_id': 22412515}, {'photo_id': 1353597372, 'portfolio_id': 22412515}, {'photo_id': 1353597368, 'portfolio_id': 22412515}, {'photo_id': 1353597357, 'portfolio_id': 22412515}, {'photo_id': 1353597316, 'portfolio_id': 22412515}, {'photo_id': 1353597305, 'portfolio_id': 22412515}, {'photo_id': 1353597302, 'portfolio_id': 22412515}, {'photo_id': 1353597294, 'portfolio_id': 22412515}, {'photo_id': 1353597219, 'portfolio_id': 22412515}, {'photo_id': 1353597143, 'portfolio_id': 22412515}, {'photo_id': 1353596695, 'portfolio_id': 22412515}, {'photo_id': 1353596693, 'portfolio_id': 22412515}, {'photo_id': 1353596691, 'portfolio_id': 22412515}, {'photo_id': 1353596689, 'portfolio_id': 22412515}, {'photo_id': 1353596687, 'portfolio_id': 22412515}, {'photo_id': 1353596683, 'portfolio_id': 22412515}, {'photo_id': 1353596647, 'portfolio_id': 22412515}, {'photo_id': 1353596645, 'portfolio_id': 22412515}, {'photo_id': 1353596643, 'portfolio_id': 22412515}, {'photo_id': 1353596626, 'portfolio_id': 22412515}, {'photo_id': 1353596619, 'portfolio_id': 22412515}, {'photo_id': 1353596614, 'portfolio_id': 22412515}, {'photo_id': 1353596603, 'portfolio_id': 22412515}, {'photo_id': 1353596570, 'portfolio_id': 22412515}, {'photo_id': 1353596569, 'portfolio_id': 22412515}, {'photo_id': 1353596544, 'portfolio_id': 22412515}, {'photo_id': 1353596542, 'portfolio_id': 22412515}, {'photo_id': 1353596541, 'portfolio_id': 22412515}, {'photo_id': 1353596540, 'portfolio_id': 22412515}, {'photo_id': 1353596539, 'portfolio_id': 22412515}, {'photo_id': 1353596489, 'portfolio_id': 22412515}, {'photo_id': 1353596486, 'portfolio_id': 22412515}, {'photo_id': 1353596485, 'portfolio_id': 22412515}, {'photo_id': 1353596484, 'portfolio_id': 22412515}, {'photo_id': 1353596456, 'portfolio_id': 22412515}, {'photo_id': 1353596455, 'portfolio_id': 22412515}, {'photo_id': 1353596454, 'portfolio_id': 22412515}] map_portfolio_id_photo_id: {22412515: [1353599470, 1353599406, 1353599404, 1353599401, 1353599398, 1353599352, 1353599350, 1353599347, 1353599336, 1353599315, 1353599314, 1353599313, 1353599305, 1353599298, 1353599292, 1353599132, 1353598632, 1353598628, 1353598625, 1353598622, 1353598604, 1353598601, 1353598599, 1353598596, 1353598594, 1353598588, 1353598571, 1353598570, 1353598568, 1353597375, 1353597372, 1353597368, 1353597357, 1353597316, 1353597305, 1353597302, 1353597294, 1353597219, 1353597143, 1353596695, 1353596693, 1353596691, 1353596689, 1353596687, 1353596683, 1353596647, 1353596645, 1353596643, 1353596626, 1353596619, 1353596614, 1353596603, 1353596570, 1353596569, 1353596544, 1353596542, 1353596541, 1353596540, 1353596539, 1353596489, 1353596486, 1353596485, 1353596484, 1353596456, 1353596455, 1353596454]} ##### 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.015671253204345703 #### 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 Apr 25 02:46:56 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 (22412515) 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 : 22412515 get user id for portfolio 22412515 get sub ptf for main ptf 22412515, type 3726 and hashtags ['metal', 'flou', 'cartonnette', 'plastique', 'kraft', 'mal_croppe', 'Teint_Dans_La_Masse', 'environnement', 'Carton_brun', 'papier', 'Carton_gris', '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`=22412515 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','flou','cartonnette','plastique','kraft','mal_croppe','Teint_Dans_La_Masse','environnement','Carton_brun','papier','Carton_gris','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`=22412515 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','flou','cartonnette','plastique','kraft','mal_croppe','Teint_Dans_La_Masse','environnement','Carton_brun','papier','Carton_gris','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22412515, 'sub_port_id': 22412575, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14860905, 'last_updated_at': datetime.datetime(2025, 4, 25, 2, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 2, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 2, 35, 43)}, 'papier': {'main_port_id': 22412515, 'sub_port_id': 22412576, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14860906, 'last_updated_at': datetime.datetime(2025, 4, 25, 2, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 2, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 2, 35, 43)}, 'metal': {'main_port_id': 22412515, 'sub_port_id': 22412577, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14860907, 'last_updated_at': datetime.datetime(2025, 4, 25, 2, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 2, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 2, 35, 43)}, 'cartonnette': {'main_port_id': 22412515, 'sub_port_id': 22412578, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14860908, 'last_updated_at': datetime.datetime(2025, 4, 25, 2, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 2, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 2, 35, 43)}, 'Carton_gris': {'main_port_id': 22412515, 'sub_port_id': 22412579, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14860909, 'last_updated_at': datetime.datetime(2025, 4, 25, 2, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 2, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 2, 35, 43)}, 'environnement': {'main_port_id': 22412515, 'sub_port_id': 22412580, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14860910, 'last_updated_at': datetime.datetime(2025, 4, 25, 2, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 2, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 2, 35, 43)}, 'flou': {'main_port_id': 22412515, 'sub_port_id': 22412581, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14860911, 'last_updated_at': datetime.datetime(2025, 4, 25, 2, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 2, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 2, 35, 43)}, 'plastique': {'main_port_id': 22412515, 'sub_port_id': 22412582, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14860912, 'last_updated_at': datetime.datetime(2025, 4, 25, 2, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 2, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 2, 35, 43)}, 'autre_refus': {'main_port_id': 22412515, 'sub_port_id': 22412583, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14860913, 'last_updated_at': datetime.datetime(2025, 4, 25, 2, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 2, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 2, 35, 43)}, 'kraft': {'main_port_id': 22412515, 'sub_port_id': 22412584, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14860914, 'last_updated_at': datetime.datetime(2025, 4, 25, 2, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 2, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 2, 35, 43)}, 'Carton_brun': {'main_port_id': 22412515, 'sub_port_id': 22412585, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14860915, 'last_updated_at': datetime.datetime(2025, 4, 25, 2, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 2, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 2, 35, 43)}, 'mal_croppe': {'main_port_id': 22412515, 'sub_port_id': 22412586, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14860916, 'last_updated_at': datetime.datetime(2025, 4, 25, 2, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 2, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 2, 35, 43)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22412575 , 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=22412515 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 (22412575) result : ((1353596630,), (1353596631,), (1353597348,), (1353597987,), (1353597989,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22412515) result : ((1353596454,), (1353596455,), (1353596456,), (1353596484,), (1353596485,), (1353596486,), (1353596489,), (1353596539,), (1353596540,), (1353596541,), (1353596542,), (1353596544,), (1353596569,), (1353596570,), (1353596603,), (1353596614,), (1353596619,), (1353596626,), (1353596643,), (1353596645,), (1353596647,), (1353596683,), (1353596687,), (1353596689,), (1353596691,), (1353596693,), (1353596695,), (1353597143,), (1353597219,), (1353597294,), (1353597302,), (1353597305,), (1353597316,), (1353597357,), (1353597368,), (1353597372,), (1353597375,), (1353598568,), (1353598570,), (1353598571,), (1353598588,), (1353598594,), (1353598596,), (1353598599,), (1353598601,), (1353598604,), (1353598622,), (1353598625,), (1353598628,), (1353598632,), (1353599132,), (1353599292,), (1353599298,), (1353599305,), (1353599313,), (1353599314,), (1353599315,), (1353599336,), (1353599347,), (1353599350,), (1353599352,), (1353599398,), (1353599401,), (1353599404,), (1353599406,), (1353599470,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22412576 , 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=22412515 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 (22412576) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22412515) result : ((1353596454,), (1353596455,), (1353596456,), (1353596484,), (1353596485,), (1353596486,), (1353596489,), (1353596539,), (1353596540,), (1353596541,), (1353596542,), (1353596544,), (1353596569,), (1353596570,), (1353596603,), (1353596614,), (1353596619,), (1353596626,), (1353596643,), (1353596645,), (1353596647,), (1353596683,), (1353596687,), (1353596689,), (1353596691,), (1353596693,), (1353596695,), (1353597143,), (1353597219,), (1353597294,), (1353597302,), (1353597305,), (1353597316,), (1353597357,), (1353597368,), (1353597372,), (1353597375,), (1353598568,), (1353598570,), (1353598571,), (1353598588,), (1353598594,), (1353598596,), (1353598599,), (1353598601,), (1353598604,), (1353598622,), (1353598625,), (1353598628,), (1353598632,), (1353599132,), (1353599292,), (1353599298,), (1353599305,), (1353599313,), (1353599314,), (1353599315,), (1353599336,), (1353599347,), (1353599350,), (1353599352,), (1353599398,), (1353599401,), (1353599404,), (1353599406,), (1353599470,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22412577 , 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=22412515 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 (22412577) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22412515) result : ((1353596454,), (1353596455,), (1353596456,), (1353596484,), (1353596485,), (1353596486,), (1353596489,), (1353596539,), (1353596540,), (1353596541,), (1353596542,), (1353596544,), (1353596569,), (1353596570,), (1353596603,), (1353596614,), (1353596619,), (1353596626,), (1353596643,), (1353596645,), (1353596647,), (1353596683,), (1353596687,), (1353596689,), (1353596691,), (1353596693,), (1353596695,), (1353597143,), (1353597219,), (1353597294,), (1353597302,), (1353597305,), (1353597316,), (1353597357,), (1353597368,), (1353597372,), (1353597375,), (1353598568,), (1353598570,), (1353598571,), (1353598588,), (1353598594,), (1353598596,), (1353598599,), (1353598601,), (1353598604,), (1353598622,), (1353598625,), (1353598628,), (1353598632,), (1353599132,), (1353599292,), (1353599298,), (1353599305,), (1353599313,), (1353599314,), (1353599315,), (1353599336,), (1353599347,), (1353599350,), (1353599352,), (1353599398,), (1353599401,), (1353599404,), (1353599406,), (1353599470,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22412578 , 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=22412515 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 (22412578) result : ((1353596635,), (1353596666,), (1353596667,), (1353596668,), (1353596669,), (1353597353,), (1353597354,), (1353597355,), (1353597356,), (1353598119,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22412515) result : ((1353596454,), (1353596455,), (1353596456,), (1353596484,), (1353596485,), (1353596486,), (1353596489,), (1353596539,), (1353596540,), (1353596541,), (1353596542,), (1353596544,), (1353596569,), (1353596570,), (1353596603,), (1353596614,), (1353596619,), (1353596626,), (1353596643,), (1353596645,), (1353596647,), (1353596683,), (1353596687,), (1353596689,), (1353596691,), (1353596693,), (1353596695,), (1353597143,), (1353597219,), (1353597294,), (1353597302,), (1353597305,), (1353597316,), (1353597357,), (1353597368,), (1353597372,), (1353597375,), (1353598568,), (1353598570,), (1353598571,), (1353598588,), (1353598594,), (1353598596,), (1353598599,), (1353598601,), (1353598604,), (1353598622,), (1353598625,), (1353598628,), (1353598632,), (1353599132,), (1353599292,), (1353599298,), (1353599305,), (1353599313,), (1353599314,), (1353599315,), (1353599336,), (1353599347,), (1353599350,), (1353599352,), (1353599398,), (1353599401,), (1353599404,), (1353599406,), (1353599470,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22412579 , 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=22412515 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 (22412579) result : ((1353596663,), (1353597350,), (1353597351,), (1353597352,), (1353598088,), (1353598090,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22412515) result : ((1353596454,), (1353596455,), (1353596456,), (1353596484,), (1353596485,), (1353596486,), (1353596489,), (1353596539,), (1353596540,), (1353596541,), (1353596542,), (1353596544,), (1353596569,), (1353596570,), (1353596603,), (1353596614,), (1353596619,), (1353596626,), (1353596643,), (1353596645,), (1353596647,), (1353596683,), (1353596687,), (1353596689,), (1353596691,), (1353596693,), (1353596695,), (1353597143,), (1353597219,), (1353597294,), (1353597302,), (1353597305,), (1353597316,), (1353597357,), (1353597368,), (1353597372,), (1353597375,), (1353598568,), (1353598570,), (1353598571,), (1353598588,), (1353598594,), (1353598596,), (1353598599,), (1353598601,), (1353598604,), (1353598622,), (1353598625,), (1353598628,), (1353598632,), (1353599132,), (1353599292,), (1353599298,), (1353599305,), (1353599313,), (1353599314,), (1353599315,), (1353599336,), (1353599347,), (1353599350,), (1353599352,), (1353599398,), (1353599401,), (1353599404,), (1353599406,), (1353599470,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22412580 , 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=22412515 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 (22412580) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22412515) result : ((1353596454,), (1353596455,), (1353596456,), (1353596484,), (1353596485,), (1353596486,), (1353596489,), (1353596539,), (1353596540,), (1353596541,), (1353596542,), (1353596544,), (1353596569,), (1353596570,), (1353596603,), (1353596614,), (1353596619,), (1353596626,), (1353596643,), (1353596645,), (1353596647,), (1353596683,), (1353596687,), (1353596689,), (1353596691,), (1353596693,), (1353596695,), (1353597143,), (1353597219,), (1353597294,), (1353597302,), (1353597305,), (1353597316,), (1353597357,), (1353597368,), (1353597372,), (1353597375,), (1353598568,), (1353598570,), (1353598571,), (1353598588,), (1353598594,), (1353598596,), (1353598599,), (1353598601,), (1353598604,), (1353598622,), (1353598625,), (1353598628,), (1353598632,), (1353599132,), (1353599292,), (1353599298,), (1353599305,), (1353599313,), (1353599314,), (1353599315,), (1353599336,), (1353599347,), (1353599350,), (1353599352,), (1353599398,), (1353599401,), (1353599404,), (1353599406,), (1353599470,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22412581 , 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=22412515 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 (22412581) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22412515) result : ((1353596454,), (1353596455,), (1353596456,), (1353596484,), (1353596485,), (1353596486,), (1353596489,), (1353596539,), (1353596540,), (1353596541,), (1353596542,), (1353596544,), (1353596569,), (1353596570,), (1353596603,), (1353596614,), (1353596619,), (1353596626,), (1353596643,), (1353596645,), (1353596647,), (1353596683,), (1353596687,), (1353596689,), (1353596691,), (1353596693,), (1353596695,), (1353597143,), (1353597219,), (1353597294,), (1353597302,), (1353597305,), (1353597316,), (1353597357,), (1353597368,), (1353597372,), (1353597375,), (1353598568,), (1353598570,), (1353598571,), (1353598588,), (1353598594,), (1353598596,), (1353598599,), (1353598601,), (1353598604,), (1353598622,), (1353598625,), (1353598628,), (1353598632,), (1353599132,), (1353599292,), (1353599298,), (1353599305,), (1353599313,), (1353599314,), (1353599315,), (1353599336,), (1353599347,), (1353599350,), (1353599352,), (1353599398,), (1353599401,), (1353599404,), (1353599406,), (1353599470,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22412582 , 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=22412515 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 (22412582) result : ((1353597363,), (1353597364,), (1353597365,), (1353597366,), (1353597367,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22412515) result : ((1353596454,), (1353596455,), (1353596456,), (1353596484,), (1353596485,), (1353596486,), (1353596489,), (1353596539,), (1353596540,), (1353596541,), (1353596542,), (1353596544,), (1353596569,), (1353596570,), (1353596603,), (1353596614,), (1353596619,), (1353596626,), (1353596643,), (1353596645,), (1353596647,), (1353596683,), (1353596687,), (1353596689,), (1353596691,), (1353596693,), (1353596695,), (1353597143,), (1353597219,), (1353597294,), (1353597302,), (1353597305,), (1353597316,), (1353597357,), (1353597368,), (1353597372,), (1353597375,), (1353598568,), (1353598570,), (1353598571,), (1353598588,), (1353598594,), (1353598596,), (1353598599,), (1353598601,), (1353598604,), (1353598622,), (1353598625,), (1353598628,), (1353598632,), (1353599132,), (1353599292,), (1353599298,), (1353599305,), (1353599313,), (1353599314,), (1353599315,), (1353599336,), (1353599347,), (1353599350,), (1353599352,), (1353599398,), (1353599401,), (1353599404,), (1353599406,), (1353599470,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22412583 , 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=22412515 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 (22412583) result : ((1353596634,), (1353597349,), (1353598027,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22412515) result : ((1353596454,), (1353596455,), (1353596456,), (1353596484,), (1353596485,), (1353596486,), (1353596489,), (1353596539,), (1353596540,), (1353596541,), (1353596542,), (1353596544,), (1353596569,), (1353596570,), (1353596603,), (1353596614,), (1353596619,), (1353596626,), (1353596643,), (1353596645,), (1353596647,), (1353596683,), (1353596687,), (1353596689,), (1353596691,), (1353596693,), (1353596695,), (1353597143,), (1353597219,), (1353597294,), (1353597302,), (1353597305,), (1353597316,), (1353597357,), (1353597368,), (1353597372,), (1353597375,), (1353598568,), (1353598570,), (1353598571,), (1353598588,), (1353598594,), (1353598596,), (1353598599,), (1353598601,), (1353598604,), (1353598622,), (1353598625,), (1353598628,), (1353598632,), (1353599132,), (1353599292,), (1353599298,), (1353599305,), (1353599313,), (1353599314,), (1353599315,), (1353599336,), (1353599347,), (1353599350,), (1353599352,), (1353599398,), (1353599401,), (1353599404,), (1353599406,), (1353599470,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22412584 , 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=22412515 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 (22412584) result : ((1353596636,), (1353596670,), (1353596671,), (1353596672,), (1353596673,), (1353596674,), (1353597370,), (1353598341,), (1353598343,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22412515) result : ((1353596454,), (1353596455,), (1353596456,), (1353596484,), (1353596485,), (1353596486,), (1353596489,), (1353596539,), (1353596540,), (1353596541,), (1353596542,), (1353596544,), (1353596569,), (1353596570,), (1353596603,), (1353596614,), (1353596619,), (1353596626,), (1353596643,), (1353596645,), (1353596647,), (1353596683,), (1353596687,), (1353596689,), (1353596691,), (1353596693,), (1353596695,), (1353597143,), (1353597219,), (1353597294,), (1353597302,), (1353597305,), (1353597316,), (1353597357,), (1353597368,), (1353597372,), (1353597375,), (1353598568,), (1353598570,), (1353598571,), (1353598588,), (1353598594,), (1353598596,), (1353598599,), (1353598601,), (1353598604,), (1353598622,), (1353598625,), (1353598628,), (1353598632,), (1353599132,), (1353599292,), (1353599298,), (1353599305,), (1353599313,), (1353599314,), (1353599315,), (1353599336,), (1353599347,), (1353599350,), (1353599352,), (1353599398,), (1353599401,), (1353599404,), (1353599406,), (1353599470,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22412585 , 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=22412515 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 (22412585) result : ((1353597359,), (1353597360,), (1353597361,), (1353598211,), (1353598213,), (1353598215,), (1353598217,), (1353598219,), (1353598221,), (1353598573,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22412515) result : ((1353596454,), (1353596455,), (1353596456,), (1353596484,), (1353596485,), (1353596486,), (1353596489,), (1353596539,), (1353596540,), (1353596541,), (1353596542,), (1353596544,), (1353596569,), (1353596570,), (1353596603,), (1353596614,), (1353596619,), (1353596626,), (1353596643,), (1353596645,), (1353596647,), (1353596683,), (1353596687,), (1353596689,), (1353596691,), (1353596693,), (1353596695,), (1353597143,), (1353597219,), (1353597294,), (1353597302,), (1353597305,), (1353597316,), (1353597357,), (1353597368,), (1353597372,), (1353597375,), (1353598568,), (1353598570,), (1353598571,), (1353598588,), (1353598594,), (1353598596,), (1353598599,), (1353598601,), (1353598604,), (1353598622,), (1353598625,), (1353598628,), (1353598632,), (1353599132,), (1353599292,), (1353599298,), (1353599305,), (1353599313,), (1353599314,), (1353599315,), (1353599336,), (1353599347,), (1353599350,), (1353599352,), (1353599398,), (1353599401,), (1353599404,), (1353599406,), (1353599470,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22412586 , 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=22412515 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 (22412586) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22412515) result : ((1353596454,), (1353596455,), (1353596456,), (1353596484,), (1353596485,), (1353596486,), (1353596489,), (1353596539,), (1353596540,), (1353596541,), (1353596542,), (1353596544,), (1353596569,), (1353596570,), (1353596603,), (1353596614,), (1353596619,), (1353596626,), (1353596643,), (1353596645,), (1353596647,), (1353596683,), (1353596687,), (1353596689,), (1353596691,), (1353596693,), (1353596695,), (1353597143,), (1353597219,), (1353597294,), (1353597302,), (1353597305,), (1353597316,), (1353597357,), (1353597368,), (1353597372,), (1353597375,), (1353598568,), (1353598570,), (1353598571,), (1353598588,), (1353598594,), (1353598596,), (1353598599,), (1353598601,), (1353598604,), (1353598622,), (1353598625,), (1353598628,), (1353598632,), (1353599132,), (1353599292,), (1353599298,), (1353599305,), (1353599313,), (1353599314,), (1353599315,), (1353599336,), (1353599347,), (1353599350,), (1353599352,), (1353599398,), (1353599401,), (1353599404,), (1353599406,), (1353599470,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22412515 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','flou','cartonnette','plastique','kraft','mal_croppe','Teint_Dans_La_Masse','environnement','Carton_brun','papier','Carton_gris','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`=22412515 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','flou','cartonnette','plastique','kraft','mal_croppe','Teint_Dans_La_Masse','environnement','Carton_brun','papier','Carton_gris','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22412515, 'sub_port_id': 22412587, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14860917, 'last_updated_at': datetime.datetime(2025, 4, 25, 2, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 2, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 2, 35, 49)}, 'papier': {'main_port_id': 22412515, 'sub_port_id': 22412588, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14860918, 'last_updated_at': datetime.datetime(2025, 4, 25, 2, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 2, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 2, 35, 49)}, 'metal': {'main_port_id': 22412515, 'sub_port_id': 22412589, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14860919, 'last_updated_at': datetime.datetime(2025, 4, 25, 2, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 2, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 2, 35, 49)}, 'cartonnette': {'main_port_id': 22412515, 'sub_port_id': 22412590, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14860920, 'last_updated_at': datetime.datetime(2025, 4, 25, 2, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 2, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 2, 35, 49)}, 'Carton_gris': {'main_port_id': 22412515, 'sub_port_id': 22412591, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14860921, 'last_updated_at': datetime.datetime(2025, 4, 25, 2, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 2, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 2, 35, 49)}, 'environnement': {'main_port_id': 22412515, 'sub_port_id': 22412592, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14860922, 'last_updated_at': datetime.datetime(2025, 4, 25, 2, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 2, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 2, 35, 49)}, 'flou': {'main_port_id': 22412515, 'sub_port_id': 22412593, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14860923, 'last_updated_at': datetime.datetime(2025, 4, 25, 2, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 2, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 2, 35, 49)}, 'plastique': {'main_port_id': 22412515, 'sub_port_id': 22412594, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14860924, 'last_updated_at': datetime.datetime(2025, 4, 25, 2, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 2, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 2, 35, 49)}, 'autre_refus': {'main_port_id': 22412515, 'sub_port_id': 22412595, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14860925, 'last_updated_at': datetime.datetime(2025, 4, 25, 2, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 2, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 2, 35, 49)}, 'kraft': {'main_port_id': 22412515, 'sub_port_id': 22412596, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14860926, 'last_updated_at': datetime.datetime(2025, 4, 25, 2, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 2, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 2, 35, 49)}, 'Carton_brun': {'main_port_id': 22412515, 'sub_port_id': 22412597, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14860927, 'last_updated_at': datetime.datetime(2025, 4, 25, 2, 35, 49), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 2, 35, 49), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 2, 35, 49)}, 'mal_croppe': {'main_port_id': 22412515, 'sub_port_id': 22412598, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14860928, 'last_updated_at': datetime.datetime(2025, 4, 25, 2, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 2, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 2, 35, 49)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22412587,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22412575 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22412588,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22412576 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22412589,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22412577 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22412590,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22412578 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22412591,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22412579 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22412592,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22412580 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22412593,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22412581 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22412594,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22412582 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22412595,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22412583 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22412596,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22412584 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22412597,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22412585 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22412598,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22412586 lien utilise dans velours : https://www.fotonower.com/velours/22412587,22412588,22412589,22412590,22412591,22412592,22412593,22412594,22412595,22412596,22412597,22412598?tags=Teint_Dans_La_Masse,papier,metal,cartonnette,Carton_gris,environnement,flou,plastique,autre_refus,kraft,Carton_brun,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22412515]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1353599470, 1353599406, 1353599404, 1353599401, 1353599398, 1353599352, 1353599350, 1353599347, 1353599336, 1353599315, 1353599314, 1353599313, 1353599305, 1353599298, 1353599292, 1353599132, 1353598632, 1353598628, 1353598625, 1353598622, 1353598604, 1353598601, 1353598599, 1353598596, 1353598594] map_info['map_portfolio_photo'] : {22412515: [1353599470, 1353599406, 1353599404, 1353599401, 1353599398, 1353599352, 1353599350, 1353599347, 1353599336, 1353599315, 1353599314, 1353599313, 1353599305, 1353599298, 1353599292, 1353599132, 1353598632, 1353598628, 1353598625, 1353598622, 1353598604, 1353598601, 1353598599, 1353598596, 1353598594, 1353598588, 1353598571, 1353598570, 1353598568, 1353597375, 1353597372, 1353597368, 1353597357, 1353597316, 1353597305, 1353597302, 1353597294, 1353597219, 1353597143, 1353596695, 1353596693, 1353596691, 1353596689, 1353596687, 1353596683, 1353596647, 1353596645, 1353596643, 1353596626, 1353596619, 1353596614, 1353596603, 1353596570, 1353596569, 1353596544, 1353596542, 1353596541, 1353596540, 1353596539, 1353596489, 1353596486, 1353596485, 1353596484, 1353596456, 1353596455, 1353596454]} final : False mtd_id 4302 list_pids : [1353599470, 1353599406, 1353599404, 1353599401, 1353599398, 1353599352, 1353599350, 1353599347, 1353599336, 1353599315, 1353599314, 1353599313, 1353599305, 1353599298, 1353599292, 1353599132, 1353598632, 1353598628, 1353598625, 1353598622, 1353598604, 1353598601, 1353598599, 1353598596, 1353598594] Looping around the photos to save general results len do output : 1 /22412515. 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, '2760203') ('4302', '22412515', '1353599470', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599406', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599404', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599401', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599398', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599352', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599350', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599347', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599336', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599315', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599314', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599313', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599305', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599298', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599292', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599132', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598632', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598628', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598625', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598622', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598604', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598601', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598599', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598596', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598594', None, None, None, None, None, '2760203') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 26 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, '22412515', "{'Teint_Dans_La_Masse': 22412575, 'papier': 22412576, 'metal': 22412577, 'cartonnette': 22412578, 'Carton_gris': 22412579, 'environnement': 22412580, 'flou': 22412581, 'plastique': 22412582, 'autre_refus': 22412583, 'kraft': 22412584, 'Carton_brun': 22412585, 'mal_croppe': 22412586}", None, None, None, None, '2760203'), ('4302', '22412515', '1353599470', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599406', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599404', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599401', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599398', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599352', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599350', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599347', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599336', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599315', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599314', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599313', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599305', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599298', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599292', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599132', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353598632', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353598628', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353598625', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353598622', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353598604', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353598601', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353598599', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353598596', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353598594', None, None, None, None, None, '2760203')] time used for this insertion : 0.016451120376586914 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4554615020751953 time spend to save output : 0.0169677734375 total time spend for step 1 : 1.4724292755126953 step2:final Fri Apr 25 02:46:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22412515) 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 22412515 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1353596456,1353596455,1353596454,1353596489,1353596486,1353596485,1353596484,1353596544,1353596542,1353596541,1353596540,1353596539,1353596626,1353596619,1353596614,1353596603,1353596570,1353596569,1353596647,1353596645,1353596643,1353596695,1353596693,1353596691,1353596689,1353596687,1353596683,1353597316,1353597305,1353597302,1353597294,1353597219,1353597143,1353597375,1353597372,1353597368,1353597357,1353598571,1353598570,1353598568,1353598604,1353598601,1353598599,1353598588,1353598596,1353598594,1353598632,1353598628,1353598625,1353598622,1353599132,1353599315,1353599314,1353599313,1353599305,1353599298,1353599292,1353599352,1353599350,1353599347,1353599336,1353599470,1353599406,1353599404,1353599401,1353599398); 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([22412515]) Inside saveOutput : final : False verbose : True original output for save of step final : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',)} new output for save of step final : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',)} [1353599470, 1353599406, 1353599404, 1353599401, 1353599398, 1353599352, 1353599350, 1353599347, 1353599336, 1353599315, 1353599314, 1353599313, 1353599305, 1353599298, 1353599292, 1353599132, 1353598632, 1353598628, 1353598625, 1353598622, 1353598604, 1353598601, 1353598599, 1353598596, 1353598594] map_info['map_portfolio_photo'] : {22412515: [1353599470, 1353599406, 1353599404, 1353599401, 1353599398, 1353599352, 1353599350, 1353599347, 1353599336, 1353599315, 1353599314, 1353599313, 1353599305, 1353599298, 1353599292, 1353599132, 1353598632, 1353598628, 1353598625, 1353598622, 1353598604, 1353598601, 1353598599, 1353598596, 1353598594, 1353598588, 1353598571, 1353598570, 1353598568, 1353597375, 1353597372, 1353597368, 1353597357, 1353597316, 1353597305, 1353597302, 1353597294, 1353597219, 1353597143, 1353596695, 1353596693, 1353596691, 1353596689, 1353596687, 1353596683, 1353596647, 1353596645, 1353596643, 1353596626, 1353596619, 1353596614, 1353596603, 1353596570, 1353596569, 1353596544, 1353596542, 1353596541, 1353596540, 1353596539, 1353596489, 1353596486, 1353596485, 1353596484, 1353596456, 1353596455, 1353596454]} final : False mtd_id 4302 list_pids : [1353599470, 1353599406, 1353599404, 1353599401, 1353599398, 1353599352, 1353599350, 1353599347, 1353599336, 1353599315, 1353599314, 1353599313, 1353599305, 1353599298, 1353599292, 1353599132, 1353598632, 1353598628, 1353598625, 1353598622, 1353598604, 1353598601, 1353598599, 1353598596, 1353598594] Looping around the photos to save general results len do output : 25 /1353599470.Didn't retrieve data . /1353599406.Didn't retrieve data . /1353599404.Didn't retrieve data . /1353599401.Didn't retrieve data . /1353599398.Didn't retrieve data . /1353599352.Didn't retrieve data . /1353599350.Didn't retrieve data . /1353599347.Didn't retrieve data . /1353599336.Didn't retrieve data . /1353599315.Didn't retrieve data . /1353599314.Didn't retrieve data . /1353599313.Didn't retrieve data . /1353599305.Didn't retrieve data . /1353599298.Didn't retrieve data . /1353599292.Didn't retrieve data . /1353599132.Didn't retrieve data . /1353598632.Didn't retrieve data . /1353598628.Didn't retrieve data . /1353598625.Didn't retrieve data . /1353598622.Didn't retrieve data . /1353598604.Didn't retrieve data . /1353598601.Didn't retrieve data . /1353598599.Didn't retrieve data . /1353598596.Didn't retrieve data . /1353598594.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, '2760203') ('4302', '22412515', '1353599470', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599406', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599404', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599401', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599398', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599352', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599350', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599347', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599336', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599315', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599314', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599313', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599305', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599298', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599292', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599132', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598632', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598628', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598625', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598622', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598604', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598601', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598599', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598596', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598594', None, None, None, None, None, '2760203') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 75 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', '22412515', '1353599470', '0.08601402926964426', None, None, None, None, '2760203'), ('4302', '22412515', '1353599406', '0.08601402926964426', None, None, None, None, '2760203'), ('4302', '22412515', '1353599404', '0.08601402926964426', None, None, None, None, '2760203'), ('4302', '22412515', '1353599401', '0.08601402926964426', None, None, None, None, '2760203'), ('4302', '22412515', '1353599398', '0.08601402926964426', None, None, None, None, '2760203'), ('4302', '22412515', '1353599352', '0.08601402926964426', None, None, None, None, '2760203'), ('4302', '22412515', '1353599350', '0.08601402926964426', None, None, None, None, '2760203'), ('4302', '22412515', '1353599347', '0.08601402926964426', None, None, None, None, '2760203'), ('4302', '22412515', '1353599336', '0.08601402926964426', None, None, None, None, '2760203'), ('4302', '22412515', '1353599315', '0.08601402926964426', None, None, None, None, '2760203'), ('4302', '22412515', '1353599314', '0.08601402926964426', None, None, None, None, '2760203'), ('4302', '22412515', '1353599313', '0.08601402926964426', None, None, None, None, '2760203'), ('4302', '22412515', '1353599305', '0.08601402926964426', None, None, None, None, '2760203'), ('4302', '22412515', '1353599298', '0.08601402926964426', None, None, None, None, '2760203'), ('4302', '22412515', '1353599292', '0.08601402926964426', None, None, None, None, '2760203'), ('4302', '22412515', '1353599132', '0.08601402926964426', None, None, None, None, '2760203'), ('4302', '22412515', '1353598632', '0.08601402926964426', None, None, None, None, '2760203'), ('4302', '22412515', '1353598628', '0.08601402926964426', None, None, None, None, '2760203'), ('4302', '22412515', '1353598625', '0.08601402926964426', None, None, None, None, '2760203'), ('4302', '22412515', '1353598622', '0.08601402926964426', None, None, None, None, '2760203'), ('4302', '22412515', '1353598604', '0.08601402926964426', None, None, None, None, '2760203'), ('4302', '22412515', '1353598601', '0.08601402926964426', None, None, None, None, '2760203'), ('4302', '22412515', '1353598599', '0.08601402926964426', None, None, None, None, '2760203'), ('4302', '22412515', '1353598596', '0.08601402926964426', None, None, None, None, '2760203'), ('4302', '22412515', '1353598594', '0.08601402926964426', None, None, None, None, '2760203')] time used for this insertion : 0.015061378479003906 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06567215919494629 time spend to save output : 0.016170501708984375 total time spend for step 2 : 0.08184266090393066 step3:velours_tree Fri Apr 25 02:46:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22412515: [{'Teint_Dans_La_Masse': 22412575, 'papier': 22412576, 'metal': 22412577, 'cartonnette': 22412578, 'Carton_gris': 22412579, 'environnement': 22412580, 'flou': 22412581, 'plastique': 22412582, 'autre_refus': 22412583, 'kraft': 22412584, 'Carton_brun': 22412585, 'mal_croppe': 22412586}]} input_args_next_step : {22412515: ()} output_args : {22412515: [{'Teint_Dans_La_Masse': 22412575, 'papier': 22412576, 'metal': 22412577, 'cartonnette': 22412578, 'Carton_gris': 22412579, 'environnement': 22412580, 'flou': 22412581, 'plastique': 22412582, 'autre_refus': 22412583, 'kraft': 22412584, 'Carton_brun': 22412585, 'mal_croppe': 22412586}]} args : 22412515 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 : ({'Teint_Dans_La_Masse': 22412575, 'papier': 22412576, 'metal': 22412577, 'cartonnette': 22412578, 'Carton_gris': 22412579, 'environnement': 22412580, 'flou': 22412581, 'plastique': 22412582, 'autre_refus': 22412583, 'kraft': 22412584, 'Carton_brun': 22412585, 'mal_croppe': 22412586},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22412515) 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([22412515]) 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.6834239959716797 time spend to save output : 0.0001323223114013672 total time spend for step 3 : 0.683556318283081 step4:send_mail_cod Fri Apr 25 02:46:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',)} input_args_next_step : {1353599470: ()} output_args : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',)} args : 1353599470 depend.output_id : 0 input_args_next_step : {1353599470: ('0.08601402926964426',), 1353599406: ()} output_args : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',)} args : 1353599406 depend.output_id : 0 input_args_next_step : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ()} output_args : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',)} args : 1353599404 depend.output_id : 0 input_args_next_step : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ()} output_args : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',)} args : 1353599401 depend.output_id : 0 input_args_next_step : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ()} output_args : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',)} args : 1353599398 depend.output_id : 0 input_args_next_step : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ()} output_args : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',)} args : 1353599352 depend.output_id : 0 input_args_next_step : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ()} output_args : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',)} args : 1353599350 depend.output_id : 0 input_args_next_step : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ()} output_args : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',)} args : 1353599347 depend.output_id : 0 input_args_next_step : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ()} output_args : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',)} args : 1353599336 depend.output_id : 0 input_args_next_step : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ()} output_args : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',)} args : 1353599315 depend.output_id : 0 input_args_next_step : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ()} output_args : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',)} args : 1353599314 depend.output_id : 0 input_args_next_step : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ()} output_args : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',)} args : 1353599313 depend.output_id : 0 input_args_next_step : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ()} output_args : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',)} args : 1353599305 depend.output_id : 0 input_args_next_step : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ()} output_args : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',)} args : 1353599298 depend.output_id : 0 input_args_next_step : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ()} output_args : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',)} args : 1353599292 depend.output_id : 0 input_args_next_step : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ()} output_args : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',)} args : 1353599132 depend.output_id : 0 input_args_next_step : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ()} output_args : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',)} args : 1353598632 depend.output_id : 0 input_args_next_step : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ()} output_args : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',)} args : 1353598628 depend.output_id : 0 input_args_next_step : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ()} output_args : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',)} args : 1353598625 depend.output_id : 0 input_args_next_step : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ()} output_args : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',)} args : 1353598622 depend.output_id : 0 input_args_next_step : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ()} output_args : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',)} args : 1353598604 depend.output_id : 0 input_args_next_step : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ()} output_args : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',)} args : 1353598601 depend.output_id : 0 input_args_next_step : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ()} output_args : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',)} args : 1353598599 depend.output_id : 0 input_args_next_step : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ()} output_args : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',)} args : 1353598596 depend.output_id : 0 input_args_next_step : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ()} output_args : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',)} args : 1353598594 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 : {22412515: [{'Teint_Dans_La_Masse': 22412575, 'papier': 22412576, 'metal': 22412577, 'cartonnette': 22412578, 'Carton_gris': 22412579, 'environnement': 22412580, 'flou': 22412581, 'plastique': 22412582, 'autre_refus': 22412583, 'kraft': 22412584, 'Carton_brun': 22412585, 'mal_croppe': 22412586}]} input_args_next_step : {1353599470: ('0.08601402926964426',), 1353599406: ('0.08601402926964426',), 1353599404: ('0.08601402926964426',), 1353599401: ('0.08601402926964426',), 1353599398: ('0.08601402926964426',), 1353599352: ('0.08601402926964426',), 1353599350: ('0.08601402926964426',), 1353599347: ('0.08601402926964426',), 1353599336: ('0.08601402926964426',), 1353599315: ('0.08601402926964426',), 1353599314: ('0.08601402926964426',), 1353599313: ('0.08601402926964426',), 1353599305: ('0.08601402926964426',), 1353599298: ('0.08601402926964426',), 1353599292: ('0.08601402926964426',), 1353599132: ('0.08601402926964426',), 1353598632: ('0.08601402926964426',), 1353598628: ('0.08601402926964426',), 1353598625: ('0.08601402926964426',), 1353598622: ('0.08601402926964426',), 1353598604: ('0.08601402926964426',), 1353598601: ('0.08601402926964426',), 1353598599: ('0.08601402926964426',), 1353598596: ('0.08601402926964426',), 1353598594: ('0.08601402926964426',), 22412515: ()} output_args : {22412515: [{'Teint_Dans_La_Masse': 22412575, 'papier': 22412576, 'metal': 22412577, 'cartonnette': 22412578, 'Carton_gris': 22412579, 'environnement': 22412580, 'flou': 22412581, 'plastique': 22412582, 'autre_refus': 22412583, 'kraft': 22412584, 'Carton_brun': 22412585, 'mal_croppe': 22412586}]} args : 22412515 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 :26, first value : ('0.08601402926964426',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22412515) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1353599470,1353599406,1353599404,1353599401,1353599398,1353599352,1353599350,1353599347,1353599336,1353599315,1353599314,1353599313,1353599305,1353599298,1353599292,1353599132,1353598632,1353598628,1353598625,1353598622,1353598604,1353598601,1353598599,1353598596,1353598594) Found this number of photos: 25 ##### Call download_photos : nb_thread : 5 begin to download photo : 1353598594 begin to download photo : 1353598625 begin to download photo : 1353599305 begin to download photo : 1353599350 begin to download photo : 1353599470 download finish for photo 1353599470 download finish for photo 1353598625 begin to download photo : 1353598628 download finish for photo 1353598594 begin to download photo : 1353598596 download finish for photo 1353599305 begin to download photo : 1353599313 download finish for photo 1353599350 begin to download photo : 1353599352 download finish for photo 1353598628 begin to download photo : 1353598632 download finish for photo 1353598596 begin to download photo : 1353598599 download finish for photo 1353599313 begin to download photo : 1353599314 download finish for photo 1353599352 begin to download photo : 1353599398 download finish for photo 1353598632 begin to download photo : 1353599132 download finish for photo 1353598599 begin to download photo : 1353598601 download finish for photo 1353599314 begin to download photo : 1353599315 download finish for photo 1353599398 begin to download photo : 1353599401 download finish for photo 1353599132 begin to download photo : 1353599292 download finish for photo 1353598601 begin to download photo : 1353598604 download finish for photo 1353599315 begin to download photo : 1353599336 download finish for photo 1353599401 begin to download photo : 1353599404 download finish for photo 1353598604 begin to download photo : 1353598622 download finish for photo 1353599336 begin to download photo : 1353599347 download finish for photo 1353599404 begin to download photo : 1353599406 download finish for photo 1353598622 download finish for photo 1353599347 download finish for photo 1353599406 download finish for photo 1353599292 begin to download photo : 1353599298 download finish for photo 1353599298 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette224125771745542024/ length of list_filenames : 25 ; length of list_pids : 25 ; length of list_args : 25 results_Auto_P22412515_25-04-2025_02_47_04.pdf 22412577 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22412577 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224125771745542024 22412578 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22412578 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353596635: '1745541252_1478379_1353596486_655065802df584634c6ea70637193a9a_rle_crop_3768955394_0.png', 1353596666: '1745541312_1478950_1353596489_8bbada7ae1b103c5bdc49c794abd63b2_rle_crop_3768955577_0.png', 1353596667: '1745541312_1478950_1353596489_8bbada7ae1b103c5bdc49c794abd63b2_rle_crop_3768955561_0.png', 1353596668: '1745541312_1478950_1353596456_e042cf72a955d1b0c88859530ad31e7b_rle_crop_3768955591_0.png', 1353596669: '1745541312_1478950_1353596455_9ae5ebabcf295ae885ca0b2ff7fea6f8_rle_crop_3768955604_0.png', 1353597353: '1745541447_690762_1353596647_0f17a22788d25c867be13fdbc91004a4_rle_crop_3768956105_0.png', 1353597354: '1745541447_690762_1353596570_b69d99a05817c62404f20bb3c360bf1b_rle_crop_3768956165_0.png', 1353597355: '1745541447_690762_1353596570_b69d99a05817c62404f20bb3c360bf1b_rle_crop_3768956169_0.png', 1353597356: '1745541447_690762_1353596569_5e13b07425c93daff8c7cf4a9e02d211_rle_crop_3768956204_0.png', 1353598119: '1745541493_1480563_1353596540_2ed9e15931e7b0e54b738ac20589fdb2_rle_crop_3768956429_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/b61dcd69b4b3612e503d142c16d589e9_53054980.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/e81798002f6969739142598a885dacc6_86752769.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/30d5637a55598a2a8db428bf680a3d97_10537014.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/d52637d1fd484e93eb0e7f6a9795f6dd_89912142.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/de4d4c74fbaa76ab91a1b58cf64b542b_24951371.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/fbf88be11eb8dc9cd6070738e1d3aceb_37344792.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/0b40edeacf2cee84baaff6830c5fda72_42200718.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/c21294af9efc653e980519ae4a2d5d24_76870387.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/65ff7e7e82797e84f0504a05f53ceba4_4036781.png change filename to text .imagette224125781745542024/ imagette224125781745542024/1745541447_690762_1353596647_0f17a22788d25c867be13fdbc91004a4_rle_crop_3768956105_0.png.png imagette224125781745542024/1745541312_1478950_1353596489_8bbada7ae1b103c5bdc49c794abd63b2_rle_crop_3768955577_0.png.png imagette224125781745542024/1745541312_1478950_1353596456_e042cf72a955d1b0c88859530ad31e7b_rle_crop_3768955591_0.png.png imagette224125781745542024/1745541493_1480563_1353596540_2ed9e15931e7b0e54b738ac20589fdb2_rle_crop_3768956429_0.png.png imagette224125781745542024/1745541447_690762_1353596570_b69d99a05817c62404f20bb3c360bf1b_rle_crop_3768956169_0.png.png imagette224125781745542024/1745541252_1478379_1353596486_655065802df584634c6ea70637193a9a_rle_crop_3768955394_0.png.png imagette224125781745542024/1745541312_1478950_1353596489_8bbada7ae1b103c5bdc49c794abd63b2_rle_crop_3768955561_0.png.png imagette224125781745542024/1745541447_690762_1353596569_5e13b07425c93daff8c7cf4a9e02d211_rle_crop_3768956204_0.png.png imagette224125781745542024/1745541312_1478950_1353596455_9ae5ebabcf295ae885ca0b2ff7fea6f8_rle_crop_3768955604_0.png.png imagette224125781745542024/1745541447_690762_1353596570_b69d99a05817c62404f20bb3c360bf1b_rle_crop_3768956165_0.png.png imagette224125811745542024/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/5ad971d242ffa50459564570b6f8bf13_6213174.png imagette224125781745542024 22412581 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22412581 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224125811745542024 22412582 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22412582 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353597363: '1745541447_690762_1353596647_0f17a22788d25c867be13fdbc91004a4_rle_crop_3768956114_0.png', 1353597364: '1745541447_690762_1353596647_0f17a22788d25c867be13fdbc91004a4_rle_crop_3768956110_0.png', 1353597365: '1745541447_690762_1353596614_1178cc30b7ba83ae83bb892ca663b805_rle_crop_3768956136_0.png', 1353597366: '1745541447_690762_1353596570_b69d99a05817c62404f20bb3c360bf1b_rle_crop_3768956164_0.png', 1353597367: '1745541447_690762_1353596569_5e13b07425c93daff8c7cf4a9e02d211_rle_crop_3768956199_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/9998c284b1205bf994a460d72a0b92d7_13161711.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/186f72cf930cf46ae296587fe2e3127a_52142225.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/f8fe8a374267adf4687b1d845a7d17d8_82069977.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/a0f0b423a0323c526f5b50c4dbe8ea89_29939047.png change filename to text .imagette224125821745542024/ imagette224125821745542024/1745541447_690762_1353596570_b69d99a05817c62404f20bb3c360bf1b_rle_crop_3768956164_0.png.png imagette224125821745542024/1745541447_690762_1353596647_0f17a22788d25c867be13fdbc91004a4_rle_crop_3768956114_0.png.png imagette224125821745542024/1745541447_690762_1353596647_0f17a22788d25c867be13fdbc91004a4_rle_crop_3768956110_0.png.png imagette224125821745542024/1745541447_690762_1353596614_1178cc30b7ba83ae83bb892ca663b805_rle_crop_3768956136_0.png.png imagette224125821745542024/1745541447_690762_1353596569_5e13b07425c93daff8c7cf4a9e02d211_rle_crop_3768956199_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/997b6d4867758a786ee0c5c0c06b5ec8_15107619.png imagette224125821745542024 22412583 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22412583 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353596634: '1745541252_1478379_1353596485_0c0d26c5b0c9a527a2f393a8d67bc637_rle_crop_3768955414_0.png', 1353597349: '1745541447_690762_1353596569_5e13b07425c93daff8c7cf4a9e02d211_rle_crop_3768956197_0.png', 1353598027: '1745541493_1480563_1353596542_d3c61480907a82cc8aca6a965cc203c5_rle_crop_3768956390_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/0462c2e21f06b598abdd10b980fb9ae5_86394337.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/052241e57b20ab97560e48917927ba61_87254920.png change filename to text .imagette224125831745542025/ imagette224125831745542025/1745541447_690762_1353596569_5e13b07425c93daff8c7cf4a9e02d211_rle_crop_3768956197_0.png.png imagette224125831745542025/1745541252_1478379_1353596485_0c0d26c5b0c9a527a2f393a8d67bc637_rle_crop_3768955414_0.png.png imagette224125831745542025/1745541493_1480563_1353596542_d3c61480907a82cc8aca6a965cc203c5_rle_crop_3768956390_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/91eb3999a25ae0f62ab5e126a6b7431a_6831957.png imagette224125831745542025 22412584 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22412584 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353596636: '1745541252_1478379_1353596486_655065802df584634c6ea70637193a9a_rle_crop_3768955388_0.png', 1353596670: '1745541312_1478950_1353596489_8bbada7ae1b103c5bdc49c794abd63b2_rle_crop_3768955579_0.png', 1353596671: '1745541312_1478950_1353596489_8bbada7ae1b103c5bdc49c794abd63b2_rle_crop_3768955566_0.png', 1353596672: '1745541312_1478950_1353596456_e042cf72a955d1b0c88859530ad31e7b_rle_crop_3768955589_0.png', 1353596673: '1745541312_1478950_1353596455_9ae5ebabcf295ae885ca0b2ff7fea6f8_rle_crop_3768955603_0.png', 1353596674: '1745541312_1478950_1353596454_8c081ae9866592d5f02168939de75717_rle_crop_3768955618_0.png', 1353597370: '1745541447_690762_1353596619_e3cea4ab3c3c517ec48a243cf4d30e08_rle_crop_3768956119_0.png', 1353598341: '1745541493_1480563_1353596626_42023eff4418ea7a4780a9975dbb6221_rle_crop_3768956374_0.png', 1353598343: '1745541493_1480563_1353596541_4a3c3b603500a4d63526023dd46bd8ee_rle_crop_3768956420_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/d1d95a00873a66dd38b59bfe3bb85cac_42615913.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/828b9e62a6638039b22c927164de05e9_93572463.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/b4d300b91322fffa22718bbc94ba3ac3_64592150.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/b6b3444377ee4b2d88ecbb9a35552796_58892994.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/d2ea67612d77ee957761c9b86b6ddc7f_3778587.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/cc22787edfdb3866f0a83c11fafcbab6_5222988.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/aac10aa9c0ec2ac36948d263024fbd89_80169672.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/d5928e35bafb754e0799cdb0e2837c20_98390139.png change filename to text .imagette224125841745542025/ imagette224125841745542025/1745541493_1480563_1353596541_4a3c3b603500a4d63526023dd46bd8ee_rle_crop_3768956420_0.png.png imagette224125841745542025/1745541252_1478379_1353596486_655065802df584634c6ea70637193a9a_rle_crop_3768955388_0.png.png imagette224125841745542025/1745541447_690762_1353596619_e3cea4ab3c3c517ec48a243cf4d30e08_rle_crop_3768956119_0.png.png imagette224125841745542025/1745541493_1480563_1353596626_42023eff4418ea7a4780a9975dbb6221_rle_crop_3768956374_0.png.png imagette224125841745542025/1745541312_1478950_1353596455_9ae5ebabcf295ae885ca0b2ff7fea6f8_rle_crop_3768955603_0.png.png imagette224125841745542025/1745541312_1478950_1353596489_8bbada7ae1b103c5bdc49c794abd63b2_rle_crop_3768955579_0.png.png imagette224125841745542025/1745541312_1478950_1353596454_8c081ae9866592d5f02168939de75717_rle_crop_3768955618_0.png.png imagette224125841745542025/1745541312_1478950_1353596456_e042cf72a955d1b0c88859530ad31e7b_rle_crop_3768955589_0.png.png imagette224125841745542025/1745541312_1478950_1353596489_8bbada7ae1b103c5bdc49c794abd63b2_rle_crop_3768955566_0.png.png imagette224125861745542026/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/487734a9db6e7a6963cacac6f7ffeae2_39083326.png imagette224125841745542025 22412586 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22412586 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224125861745542026 22412575 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22412575 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353596630: '1745541252_1478379_1353596485_0c0d26c5b0c9a527a2f393a8d67bc637_rle_crop_3768955412_0.png', 1353596631: '1745541252_1478379_1353596485_0c0d26c5b0c9a527a2f393a8d67bc637_rle_crop_3768955419_0.png', 1353597348: '1745541447_690762_1353596619_e3cea4ab3c3c517ec48a243cf4d30e08_rle_crop_3768956124_0.png', 1353597987: '1745541493_1480563_1353596626_42023eff4418ea7a4780a9975dbb6221_rle_crop_3768956373_0.png', 1353597989: '1745541493_1480563_1353596541_4a3c3b603500a4d63526023dd46bd8ee_rle_crop_3768956410_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/eb04ed65a116a6aeca1f27d7e1252290_1039493.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/b6054ef14948b6e95d7c733206a50b9b_89052716.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/61c04e16ec71cecc6c18e0be902a2d38_25463437.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/2eda4c7827ddc25cedd8e2d6b18c423d_37237407.png change filename to text .imagette224125751745542026/ imagette224125751745542026/1745541447_690762_1353596619_e3cea4ab3c3c517ec48a243cf4d30e08_rle_crop_3768956124_0.png.png imagette224125751745542026/1745541493_1480563_1353596626_42023eff4418ea7a4780a9975dbb6221_rle_crop_3768956373_0.png.png imagette224125751745542026/1745541252_1478379_1353596485_0c0d26c5b0c9a527a2f393a8d67bc637_rle_crop_3768955419_0.png.png imagette224125751745542026/1745541252_1478379_1353596485_0c0d26c5b0c9a527a2f393a8d67bc637_rle_crop_3768955412_0.png.png imagette224125751745542026/1745541493_1480563_1353596541_4a3c3b603500a4d63526023dd46bd8ee_rle_crop_3768956410_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/b41372ab074233f62aae1587f094990a_74551883.png imagette224125751745542026 22412579 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22412579 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353596663: '1745541312_1478950_1353596456_e042cf72a955d1b0c88859530ad31e7b_rle_crop_3768955585_0.png', 1353597350: '1745541447_690762_1353596647_0f17a22788d25c867be13fdbc91004a4_rle_crop_3768956111_0.png', 1353597351: '1745541447_690762_1353596647_0f17a22788d25c867be13fdbc91004a4_rle_crop_3768956107_0.png', 1353597352: '1745541447_690762_1353596614_1178cc30b7ba83ae83bb892ca663b805_rle_crop_3768956142_0.png', 1353598088: '1745541493_1480563_1353596541_4a3c3b603500a4d63526023dd46bd8ee_rle_crop_3768956414_0.png', 1353598090: '1745541493_1480563_1353596539_42304326dc0038e01e27bccaecff74d8_rle_crop_3768956437_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/c78058d47d667b5c057c0eced0ff41be_42881043.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/8a91e6c584e55a18302f69d797f7ac1a_22589229.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/240e609ad8cf0a33143916d33afe359f_7506614.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/d7af77459c853c3d03e28170dd658e67_9803482.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/40ba31185465e48f4b76737978663ef0_96760055.png change filename to text .imagette224125791745542026/ imagette224125791745542026/1745541447_690762_1353596614_1178cc30b7ba83ae83bb892ca663b805_rle_crop_3768956142_0.png.png imagette224125791745542026/1745541447_690762_1353596647_0f17a22788d25c867be13fdbc91004a4_rle_crop_3768956111_0.png.png imagette224125791745542026/1745541312_1478950_1353596456_e042cf72a955d1b0c88859530ad31e7b_rle_crop_3768955585_0.png.png imagette224125791745542026/1745541493_1480563_1353596541_4a3c3b603500a4d63526023dd46bd8ee_rle_crop_3768956414_0.png.png imagette224125791745542026/1745541493_1480563_1353596539_42304326dc0038e01e27bccaecff74d8_rle_crop_3768956437_0.png.png imagette224125791745542026/1745541447_690762_1353596647_0f17a22788d25c867be13fdbc91004a4_rle_crop_3768956107_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/2171871faf487795c00809414cc6d4be_74690540.png imagette224125791745542026 22412585 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22412585 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353597359: '1745541447_690762_1353596647_0f17a22788d25c867be13fdbc91004a4_rle_crop_3768956109_0.png', 1353597360: '1745541447_690762_1353596614_1178cc30b7ba83ae83bb892ca663b805_rle_crop_3768956141_0.png', 1353597361: '1745541447_690762_1353596569_5e13b07425c93daff8c7cf4a9e02d211_rle_crop_3768956196_0.png', 1353598211: '1745541493_1480563_1353596542_d3c61480907a82cc8aca6a965cc203c5_rle_crop_3768956396_0.png', 1353598213: '1745541493_1480563_1353596542_d3c61480907a82cc8aca6a965cc203c5_rle_crop_3768956393_0.png', 1353598215: '1745541493_1480563_1353596541_4a3c3b603500a4d63526023dd46bd8ee_rle_crop_3768956415_0.png', 1353598217: '1745541493_1480563_1353596541_4a3c3b603500a4d63526023dd46bd8ee_rle_crop_3768956413_0.png', 1353598219: '1745541493_1480563_1353596539_42304326dc0038e01e27bccaecff74d8_rle_crop_3768956443_0.png', 1353598221: '1745541493_1480563_1353596539_42304326dc0038e01e27bccaecff74d8_rle_crop_3768956440_0.png', 1353598573: '1745541552_1481093_1353596544_9f6a000501765cfbcf360aef2c19dc81_rle_crop_3768956459_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/d6bcf20b13075b9de939df6fbd3ba474_92105282.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/78f37e74aa3740c917fb241b0947f918_27623720.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/4663ad4d1f2192077eea5494e65951ef_39899635.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/56d01317430cc9c4145ac1ab4c28d4d9_96623883.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/84c4b350545d466bee08502e3c1a9b68_46060553.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/bff546c148c58a9a94f5a39e64ba3d5b_46227222.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/e3ed3841dcee9d22e36e3fa91f64509e_63513510.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/2549bca5b9c757c5b319b78c7fb88eb0_67907674.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/dbcd17c53aa3141140f88d7b9f7225cc_20994290.png change filename to text .imagette224125851745542026/ imagette224125851745542026/1745541493_1480563_1353596541_4a3c3b603500a4d63526023dd46bd8ee_rle_crop_3768956415_0.png.png imagette224125851745542026/1745541493_1480563_1353596539_42304326dc0038e01e27bccaecff74d8_rle_crop_3768956440_0.png.png imagette224125851745542026/1745541552_1481093_1353596544_9f6a000501765cfbcf360aef2c19dc81_rle_crop_3768956459_0.png.png imagette224125851745542026/1745541447_690762_1353596647_0f17a22788d25c867be13fdbc91004a4_rle_crop_3768956109_0.png.png imagette224125851745542026/1745541493_1480563_1353596542_d3c61480907a82cc8aca6a965cc203c5_rle_crop_3768956396_0.png.png imagette224125851745542026/1745541493_1480563_1353596541_4a3c3b603500a4d63526023dd46bd8ee_rle_crop_3768956413_0.png.png imagette224125851745542026/1745541447_690762_1353596614_1178cc30b7ba83ae83bb892ca663b805_rle_crop_3768956141_0.png.png imagette224125851745542026/1745541493_1480563_1353596539_42304326dc0038e01e27bccaecff74d8_rle_crop_3768956443_0.png.png imagette224125851745542026/1745541447_690762_1353596569_5e13b07425c93daff8c7cf4a9e02d211_rle_crop_3768956196_0.png.png imagette224125851745542026/1745541493_1480563_1353596542_d3c61480907a82cc8aca6a965cc203c5_rle_crop_3768956393_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/dddc492bd79aa1761896d321b867009e_90453507.png imagette224125851745542026 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22412515 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22412587,22412588,22412589,22412590,22412591,22412592,22412593,22412594,22412595,22412596,22412597,22412598?tags=Teint_Dans_La_Masse,papier,metal,cartonnette,Carton_gris,environnement,flou,plastique,autre_refus,kraft,Carton_brun,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1353599470] : ('0.08601402926964426',) no score found for photo 1353599470 We are sending mail with results at report@fotonower.com args[1353599406] : ('0.08601402926964426',) no score found for photo 1353599406 We are sending mail with results at report@fotonower.com args[1353599404] : ('0.08601402926964426',) no score found for photo 1353599404 We are sending mail with results at report@fotonower.com args[1353599401] : ('0.08601402926964426',) no score found for photo 1353599401 We are sending mail with results at report@fotonower.com args[1353599398] : ('0.08601402926964426',) no score found for photo 1353599398 We are sending mail with results at report@fotonower.com args[1353599352] : ('0.08601402926964426',) no score found for photo 1353599352 We are sending mail with results at report@fotonower.com args[1353599350] : ('0.08601402926964426',) no score found for photo 1353599350 We are sending mail with results at report@fotonower.com args[1353599347] : ('0.08601402926964426',) no score found for photo 1353599347 We are sending mail with results at report@fotonower.com args[1353599336] : ('0.08601402926964426',) no score found for photo 1353599336 We are sending mail with results at report@fotonower.com args[1353599315] : ('0.08601402926964426',) no score found for photo 1353599315 We are sending mail with results at report@fotonower.com args[1353599314] : ('0.08601402926964426',) no score found for photo 1353599314 We are sending mail with results at report@fotonower.com args[1353599313] : ('0.08601402926964426',) no score found for photo 1353599313 We are sending mail with results at report@fotonower.com args[1353599305] : ('0.08601402926964426',) no score found for photo 1353599305 We are sending mail with results at report@fotonower.com args[1353599298] : ('0.08601402926964426',) no score found for photo 1353599298 We are sending mail with results at report@fotonower.com args[1353599292] : ('0.08601402926964426',) no score found for photo 1353599292 We are sending mail with results at report@fotonower.com args[1353599132] : ('0.08601402926964426',) no score found for photo 1353599132 We are sending mail with results at report@fotonower.com args[1353598632] : ('0.08601402926964426',) no score found for photo 1353598632 We are sending mail with results at report@fotonower.com args[1353598628] : ('0.08601402926964426',) no score found for photo 1353598628 We are sending mail with results at report@fotonower.com args[1353598625] : ('0.08601402926964426',) no score found for photo 1353598625 We are sending mail with results at report@fotonower.com args[1353598622] : ('0.08601402926964426',) no score found for photo 1353598622 We are sending mail with results at report@fotonower.com args[1353598604] : ('0.08601402926964426',) no score found for photo 1353598604 We are sending mail with results at report@fotonower.com args[1353598601] : ('0.08601402926964426',) no score found for photo 1353598601 We are sending mail with results at report@fotonower.com args[1353598599] : ('0.08601402926964426',) no score found for photo 1353598599 We are sending mail with results at report@fotonower.com args[1353598596] : ('0.08601402926964426',) no score found for photo 1353598596 We are sending mail with results at report@fotonower.com args[1353598594] : ('0.08601402926964426',) no score found for photo 1353598594 We are sending mail with results at report@fotonower.com refus_total : 0.08601402926964426 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22412515 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_P22412515_25-04-2025_02_47_04.pdf results_Auto_P22412515_25-04-2025_02_47_04.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22412515_25-04-2025_02_47_04.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','22412515','results_Auto_P22412515_25-04-2025_02_47_04.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22412515_25-04-2025_02_47_04.pdf','pdf','','0.34','0.08601402926964426') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22412515]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1353599470, 1353599406, 1353599404, 1353599401, 1353599398, 1353599352, 1353599350, 1353599347, 1353599336, 1353599315, 1353599314, 1353599313, 1353599305, 1353599298, 1353599292, 1353599132, 1353598632, 1353598628, 1353598625, 1353598622, 1353598604, 1353598601, 1353598599, 1353598596, 1353598594] map_info['map_portfolio_photo'] : {22412515: [1353599470, 1353599406, 1353599404, 1353599401, 1353599398, 1353599352, 1353599350, 1353599347, 1353599336, 1353599315, 1353599314, 1353599313, 1353599305, 1353599298, 1353599292, 1353599132, 1353598632, 1353598628, 1353598625, 1353598622, 1353598604, 1353598601, 1353598599, 1353598596, 1353598594, 1353598588, 1353598571, 1353598570, 1353598568, 1353597375, 1353597372, 1353597368, 1353597357, 1353597316, 1353597305, 1353597302, 1353597294, 1353597219, 1353597143, 1353596695, 1353596693, 1353596691, 1353596689, 1353596687, 1353596683, 1353596647, 1353596645, 1353596643, 1353596626, 1353596619, 1353596614, 1353596603, 1353596570, 1353596569, 1353596544, 1353596542, 1353596541, 1353596540, 1353596539, 1353596489, 1353596486, 1353596485, 1353596484, 1353596456, 1353596455, 1353596454]} final : False mtd_id 4302 list_pids : [1353599470, 1353599406, 1353599404, 1353599401, 1353599398, 1353599352, 1353599350, 1353599347, 1353599336, 1353599315, 1353599314, 1353599313, 1353599305, 1353599298, 1353599292, 1353599132, 1353598632, 1353598628, 1353598625, 1353598622, 1353598604, 1353598601, 1353598599, 1353598596, 1353598594] 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, '2760203') ('4302', '22412515', '1353599470', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599406', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599404', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599401', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599398', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599352', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599350', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599347', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599336', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599315', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599314', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599313', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599305', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599298', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599292', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599132', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598632', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598628', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598625', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598622', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598604', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598601', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598599', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598596', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598594', None, None, None, None, None, '2760203') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 25 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', '22412515', '1353599470', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599406', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599404', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599401', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599398', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599352', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599350', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599347', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599336', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599315', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599314', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599313', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599305', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599298', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599292', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599132', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353598632', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353598628', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353598625', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353598622', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353598604', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353598601', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353598599', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353598596', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353598594', None, None, None, None, None, '2760203')] time used for this insertion : 0.015674829483032227 save_final save missing photos in datou_result : time spend for datou_step_exec : 9.842872858047485 time spend to save output : 0.01607060432434082 total time spend for step 4 : 9.858943462371826 step5:split_time_score Fri Apr 25 02:47:09 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 : ['22412515'] 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 : [('22412515',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22412515) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1353599470: {'path': 'temp/1745542019_3579466_1353599470_b9e2a904d3644114becb0317c12dc92d.jpg', 'extension': 'jpg'}, 1353598594: {'path': 'temp/1745542019_3579466_1353598594_d6cd2edca42038e7237f425fc24944b7.jpg', 'extension': 'jpg'}, 1353598596: {'path': 'temp/1745542019_3579466_1353598596_fb00e01eca53f0bbaa2c944af23bd7ce.jpg', 'extension': 'jpg'}, 1353598599: {'path': 'temp/1745542019_3579466_1353598599_68c7d91169f8d03de287058c8b55f2bc.jpg', 'extension': 'jpg'}, 1353598601: {'path': 'temp/1745542019_3579466_1353598601_a4845d7c6cf28267365104dd4c700503.jpg', 'extension': 'jpg'}, 1353598604: {'path': 'temp/1745542019_3579466_1353598604_a3663c29996d39952017018be2667ff2.jpg', 'extension': 'jpg'}, 1353598622: {'path': 'temp/1745542019_3579466_1353598622_056a44deca41d26145c301d8e51e732c.jpg', 'extension': 'jpg'}, 1353599305: {'path': 'temp/1745542019_3579466_1353599305_734801506188b2225f467f9cee3e11ad.jpg', 'extension': 'jpg'}, 1353599313: {'path': 'temp/1745542019_3579466_1353599313_2c40e8032211012a458f3e10cf5b8635.jpg', 'extension': 'jpg'}, 1353599314: {'path': 'temp/1745542019_3579466_1353599314_75bd4815e6ce09287293bcbf9581fbbc.jpg', 'extension': 'jpg'}, 1353599315: {'path': 'temp/1745542019_3579466_1353599315_f28dc41c0c2b7b9734646f7264dbeb5f.jpg', 'extension': 'jpg'}, 1353599336: {'path': 'temp/1745542019_3579466_1353599336_8037045343c6854d381fa82be1e420c1.jpg', 'extension': 'jpg'}, 1353599347: {'path': 'temp/1745542019_3579466_1353599347_745936b249793709ebbbadab5e50fd6b.jpg', 'extension': 'jpg'}, 1353599350: {'path': 'temp/1745542019_3579466_1353599350_ef3d2fc8000c5c09b1b31a884ebea770.jpg', 'extension': 'jpg'}, 1353599352: {'path': 'temp/1745542019_3579466_1353599352_92fea7bd3e4f657de9c69f5e1578b9ab.jpg', 'extension': 'jpg'}, 1353599398: {'path': 'temp/1745542019_3579466_1353599398_54aa5533fd4e3725ed7fd524a14ae912.jpg', 'extension': 'jpg'}, 1353599401: {'path': 'temp/1745542019_3579466_1353599401_1a79f84e33c141c7638c96acf1234fdc.jpg', 'extension': 'jpg'}, 1353599404: {'path': 'temp/1745542019_3579466_1353599404_10f16dcffb466989c37a7dd6310ea40e.jpg', 'extension': 'jpg'}, 1353599406: {'path': 'temp/1745542019_3579466_1353599406_cc820f9cf25da295875c4018c41cbc9e.jpg', 'extension': 'jpg'}, 1353598625: {'path': 'temp/1745542019_3579466_1353598625_276165559132e8bbc60bc2a72ff481bc.jpg', 'extension': 'jpg'}, 1353598628: {'path': 'temp/1745542019_3579466_1353598628_b967a1c8ed70372356bd7a41142457bf.jpg', 'extension': 'jpg'}, 1353598632: {'path': 'temp/1745542019_3579466_1353598632_110bf022e4a397961a311aae31aa1cce.jpg', 'extension': 'jpg'}, 1353599132: {'path': 'temp/1745542019_3579466_1353599132_82022040cb1cc3a2049eb056f46062a6.jpg', 'extension': 'jpg'}, 1353599292: {'path': 'temp/1745542019_3579466_1353599292_a0be00acdcbf30b9ea88dea54e8c4453.jpg', 'extension': 'jpg'}, 1353599298: {'path': 'temp/1745542019_3579466_1353599298_c5d231cee34eafeff2d16c50bdec4f10.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 = 22412515; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22412515 group by h (('02', 66),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22412515 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 (22412515) 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 (22412515) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25042025 22412515 Nombre de photos uploadées : 66 / 23040 (0%) 25042025 22412515 Nombre de photos taguées (types de déchets): 0 / 66 (0%) 25042025 22412515 Nombre de photos taguées (volume) : 0 / 66 (0%) [{'photo_id': 1353596456, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/e042cf72a955d1b0c88859530ad31e7b.jpg', 'username': None, 'uploaded_at': 1745541067, 'text': 'image_25042025_02_30_05_010143m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1353596455, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/9ae5ebabcf295ae885ca0b2ff7fea6f8.jpg', 'username': None, 'uploaded_at': 1745541067, 'text': 'image_25042025_02_30_15_010135m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1353596454, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/8c081ae9866592d5f02168939de75717.jpg', 'username': None, 'uploaded_at': 1745541067, 'text': 'image_25042025_02_30_34_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1353596489, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/8bbada7ae1b103c5bdc49c794abd63b2.jpg', 'username': None, 'uploaded_at': 1745541127, 'text': 'image_25042025_02_30_44_010136m0.jpg 4e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 6.67572021484375e-06 ?????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0031502246856689453 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22412515, '2025-04-25' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1747621,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02283024787902832 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= 1747621 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1747621, 'dashboard_run_id': 1755445, 'mtr_portfolio_id': 22411651, 'dashboard_result_id': 10089267, '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_P22411651_25-04-2025_02_19_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22411692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22411693, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22411694, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22411695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22411696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22411697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22411698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22411699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22411700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22411701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22411702, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22411703, 'pht': 3726}}"}, {'dashboat_entry_day': 1747621, 'dashboard_run_id': 1755445, 'mtr_portfolio_id': 22411927, 'dashboard_result_id': 10089268, '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_P22411927_25-04-2025_02_35_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22411939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22411940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22411941, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22411942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22411943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22411944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22411945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22411946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22411947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22411948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22411949, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22411950, 'pht': 3726}}"}, {'dashboat_entry_day': 1747621, 'dashboard_run_id': 1755445, 'mtr_portfolio_id': 22412515, 'dashboard_result_id': 10089269, '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_P22412515_25-04-2025_02_41_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22412575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22412576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22412577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22412578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22412579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22412580, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22412581, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22412582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22412583, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22412584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22412585, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22412586, '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 = 22411651 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': 2760086, 'mtr_portfolio_id': 22411651, 'created_at': datetime.datetime(2025, 4, 25, 2, 19), 'result': '0.07260044263518402', 'result_long': None, 'result_double': None}] Qualite : 0.07260044263518402 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22411651 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22411651_25-04-2025_02_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22411651 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_P22411651_25-04-2025_02_19_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22411692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22411693, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22411694, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22411695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22411696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22411697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22411698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22411699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22411700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22411701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22411702, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22411703, 'pht': 3726}}" where mtr_portfolio_id = 22411651 and dashboard_run_id = 1755445 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`=22411651 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089267, 0.07260044263518402, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22411651_25-04-2025_02_19_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22411692, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22411693, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22411694, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22411695, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22411696, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22411697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22411698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22411699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22411700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22411701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22411702, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22411703, '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 = 22411927 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': 2760099, 'mtr_portfolio_id': 22411927, 'created_at': datetime.datetime(2025, 4, 25, 2, 35), 'result': '0.06660551492443835', 'result_long': None, 'result_double': None}] Qualite : 0.06660551492443835 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22411927 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22411927_25-04-2025_02_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22411927 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_P22411927_25-04-2025_02_35_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22411939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22411940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22411941, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22411942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22411943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22411944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22411945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22411946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22411947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22411948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22411949, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22411950, 'pht': 3726}}" where mtr_portfolio_id = 22411927 and dashboard_run_id = 1755445 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`=22411927 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089268, 0.06660551492443835, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22411927_25-04-2025_02_35_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22411939, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22411940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22411941, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22411942, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22411943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22411944, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22411945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22411946, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22411947, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22411948, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22411949, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22411950, '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 = 22412515 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': 2760203, 'mtr_portfolio_id': 22412515, 'created_at': datetime.datetime(2025, 4, 25, 2, 46, 58), 'result': '0.08601402926964426', 'result_long': None, 'result_double': None}] Qualite : 0.08601402926964426 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22412515 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22412515_25-04-2025_02_47_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22412515 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_P22412515_25-04-2025_02_47_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22412575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22412576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22412577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22412578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22412579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22412580, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22412581, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22412582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22412583, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22412584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22412585, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22412586, 'pht': 3726}}" where mtr_portfolio_id = 22412515 and dashboard_run_id = 1755445 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`=22412515 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10089269, 0.08601402926964426, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22412515_25-04-2025_02_47_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22412575, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22412576, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22412577, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22412578, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22412579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22412580, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22412581, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22412582, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22412583, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22412584, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22412585, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22412586, '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 (22411651,22411927,22412515) result : ((1353584903,), (1353585669,), (1353585768,), (1353585832,), (1353585892,), (1353587039,), (1353587086,), (1353587114,), (1353587142,), (1353587471,), (1353587475,), (1353587476,), (1353587478,), (1353587676,), (1353587703,), (1353587729,), (1353587755,), (1353587783,), (1353587811,), (1353588062,), (1353588076,), (1353588078,), (1353588092,), (1353588101,), (1353588129,), (1353588422,), (1353588464,), (1353588591,), (1353588994,), (1353589049,), (1353589099,), (1353589148,), (1353589188,), (1353589215,), (1353589378,), (1353589379,), (1353589380,), (1353589381,), (1353589383,), (1353589420,), (1353589422,), (1353590147,), (1353590229,), (1353590257,), (1353590309,), (1353590610,), (1353590639,), (1353591122,), (1353591151,), (1353591179,), (1353591200,), (1353591301,), (1353591588,), (1353591618,), (1353591649,), (1353591677,), (1353591710,), (1353591996,), (1353592026,), (1353592055,), (1353592506,), (1353592351,), (1353592397,), (1353592423,), (1353592448,), (1353592479,), (1353592569,), (1353592573,), (1353592575,), (1353592577,), (1353592581,), (1353592678,), (1353592711,), (1353592780,), (1353593197,), (1353593225,), (1353593253,), (1353593279,), (1353593290,), (1353593299,), (1353593527,), (1353593558,), (1353593587,), (1353593615,), (1353594230,), (1353594256,), (1353594293,), (1353594327,), (1353594355,), (1353594409,), (1353594411,), (1353594412,), (1353594414,), (1353594416,), (1353594417,), (1353594611,), (1353594612,), (1353594615,), (1353594741,), (1353594774,), (1353594799,), (1353594817,), (1353594820,), (1353594821,), (1353594994,), (1353595022,), (1353595044,), (1353595072,), (1353595487,), (1353595538,), (1353595596,), (1353595643,), (1353595645,), (1353595649,), (1353595654,), (1353595662,), (1353595901,), (1353596081,), (1353596266,), (1353596297,), (1353596306,), (1353596310,), (1353596323,), (1353596328,), (1353596334,), (1353596365,), (1353596410,), (1353596458,), (1353596454,), (1353596455,), (1353596456,), (1353596484,), (1353596485,), (1353596486,), (1353596489,), (1353596539,), (1353596540,), (1353596541,), (1353596542,), (1353596544,), (1353596569,), (1353596570,), (1353596603,), (1353596614,), (1353596619,), (1353596626,), (1353596643,), (1353596645,), (1353596647,), (1353596683,), (1353596687,), (1353596689,), (1353596691,), (1353596693,), (1353596695,), (1353597143,), (1353597219,), (1353597294,), (1353597302,), (1353597305,), (1353597316,), (1353597357,), (1353597368,), (1353597372,), (1353597375,), (1353598568,), (1353598570,), (1353598571,), (1353598588,), (1353598594,), (1353598596,), (1353598599,), (1353598601,), (1353598604,), (1353598622,), (1353598625,), (1353598628,), (1353598632,), (1353599132,), (1353599292,), (1353599298,), (1353599305,), (1353599313,), (1353599314,), (1353599315,), (1353599336,), (1353599347,), (1353599350,), (1353599352,), (1353599398,), (1353599401,), (1353599404,), (1353599406,), (1353599470,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25042025': {'nb_upload': 66, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22412515]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1353599470, 1353599406, 1353599404, 1353599401, 1353599398, 1353599352, 1353599350, 1353599347, 1353599336, 1353599315, 1353599314, 1353599313, 1353599305, 1353599298, 1353599292, 1353599132, 1353598632, 1353598628, 1353598625, 1353598622, 1353598604, 1353598601, 1353598599, 1353598596, 1353598594] map_info['map_portfolio_photo'] : {22412515: [1353599470, 1353599406, 1353599404, 1353599401, 1353599398, 1353599352, 1353599350, 1353599347, 1353599336, 1353599315, 1353599314, 1353599313, 1353599305, 1353599298, 1353599292, 1353599132, 1353598632, 1353598628, 1353598625, 1353598622, 1353598604, 1353598601, 1353598599, 1353598596, 1353598594, 1353598588, 1353598571, 1353598570, 1353598568, 1353597375, 1353597372, 1353597368, 1353597357, 1353597316, 1353597305, 1353597302, 1353597294, 1353597219, 1353597143, 1353596695, 1353596693, 1353596691, 1353596689, 1353596687, 1353596683, 1353596647, 1353596645, 1353596643, 1353596626, 1353596619, 1353596614, 1353596603, 1353596570, 1353596569, 1353596544, 1353596542, 1353596541, 1353596540, 1353596539, 1353596489, 1353596486, 1353596485, 1353596484, 1353596456, 1353596455, 1353596454]} final : True mtd_id 4302 list_pids : [1353599470, 1353599406, 1353599404, 1353599401, 1353599398, 1353599352, 1353599350, 1353599347, 1353599336, 1353599315, 1353599314, 1353599313, 1353599305, 1353599298, 1353599292, 1353599132, 1353598632, 1353598628, 1353598625, 1353598622, 1353598604, 1353598601, 1353598599, 1353598596, 1353598594] Looping around the photos to save general results len do output : 1 /22412515Didn'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, '2760203') ('4302', '22412515', '1353599470', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599406', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599404', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599401', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599398', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599352', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599350', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599347', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599336', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599315', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599314', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599313', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599305', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599298', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599292', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353599132', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598632', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598628', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598625', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598622', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598604', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598601', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598599', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598596', None, None, None, None, None, '2760203') ('4302', None, None, None, None, None, None, None, '2760203') ('4302', '22412515', '1353598594', None, None, None, None, None, '2760203') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 26 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, '22412515', 'None', None, None, None, None, '2760203'), ('4302', '22412515', '1353599470', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599406', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599404', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599401', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599398', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599352', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599350', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599347', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599336', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599315', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599314', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599313', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599305', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599298', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599292', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353599132', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353598632', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353598628', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353598625', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353598622', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353598604', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353598601', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353598599', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353598596', None, None, None, None, None, '2760203'), ('4302', '22412515', '1353598594', None, None, None, None, None, '2760203')] time used for this insertion : 0.019935131072998047 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.28627729415893555 time spend to save output : 0.020340442657470703 total time spend for step 5 : 0.30661773681640625 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 (2760203) 2.72user 2.47system 0:14.06elapsed 36%CPU (0avgtext+0avgdata 160596maxresident)k 105792inputs+20928outputs (456major+76558minor)pagefaults 0swaps