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 : 2259812 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 (2846996) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2846996) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22953747 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2846996'] with mtr_portfolio_ids : ['22953747'] and first list_photo_ids : [] new path : /proc/2259812/ Name: python3 Umask: 0002 State: R (running) Tgid: 2259812 Ngid: 0 Pid: 2259812 PPid: 2259811 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2259812 NSpid: 2259812 NSpgid: 2257138 NSsid: 2257138 VmPeak: 1107228 kB VmSize: 1107228 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99908 kB VmRSS: 99908 kB RssAnon: 60200 kB RssFile: 39708 kB RssShmem: 0 kB VmData: 865976 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: 52 nonvoluntary_ctxt_switches: 95 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2259812', 'Ngid': '0', 'Pid': '2259812', 'PPid': '2259811', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2259812', 'NSpid': '2259812', 'NSpgid': '2257138', 'NSsid': '2257138', 'VmPeak': '1107228 kB', 'VmSize': '1107228 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99908 kB', 'VmRSS': '99908 kB', 'RssAnon': '60200 kB', 'RssFile': '39708 kB', 'RssShmem': '0 kB', 'VmData': '865976 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': '52', 'nonvoluntary_ctxt_switches': '95'} ('datou_batch_current', '2259812', '1107228', '0', '1107228', '865976', '99908', b'', 'marlene', '2846996') 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 (22953747) 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 (2846996 ) ) 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 (22953747) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1358130212, 'portfolio_id': 22953747}, {'photo_id': 1358130183, 'portfolio_id': 22953747}, {'photo_id': 1358130159, 'portfolio_id': 22953747}, {'photo_id': 1358130132, 'portfolio_id': 22953747}, {'photo_id': 1358130104, 'portfolio_id': 22953747}, {'photo_id': 1358129859, 'portfolio_id': 22953747}, {'photo_id': 1358129833, 'portfolio_id': 22953747}, {'photo_id': 1358129807, 'portfolio_id': 22953747}, {'photo_id': 1358129761, 'portfolio_id': 22953747}, {'photo_id': 1358129685, 'portfolio_id': 22953747}, {'photo_id': 1358129227, 'portfolio_id': 22953747}, {'photo_id': 1358129198, 'portfolio_id': 22953747}, {'photo_id': 1358128883, 'portfolio_id': 22953747}, {'photo_id': 1358128838, 'portfolio_id': 22953747}, {'photo_id': 1358128797, 'portfolio_id': 22953747}, {'photo_id': 1358128759, 'portfolio_id': 22953747}, {'photo_id': 1358128709, 'portfolio_id': 22953747}, {'photo_id': 1358128654, 'portfolio_id': 22953747}, {'photo_id': 1358128129, 'portfolio_id': 22953747}, {'photo_id': 1358128100, 'portfolio_id': 22953747}, {'photo_id': 1358128074, 'portfolio_id': 22953747}, {'photo_id': 1358128018, 'portfolio_id': 22953747}, {'photo_id': 1358127990, 'portfolio_id': 22953747}, {'photo_id': 1358127942, 'portfolio_id': 22953747}, {'photo_id': 1358127662, 'portfolio_id': 22953747}, {'photo_id': 1358127623, 'portfolio_id': 22953747}, {'photo_id': 1358127525, 'portfolio_id': 22953747}, {'photo_id': 1358127204, 'portfolio_id': 22953747}, {'photo_id': 1358127147, 'portfolio_id': 22953747}, {'photo_id': 1358127099, 'portfolio_id': 22953747}, {'photo_id': 1358127041, 'portfolio_id': 22953747}, {'photo_id': 1358126966, 'portfolio_id': 22953747}, {'photo_id': 1358126891, 'portfolio_id': 22953747}, {'photo_id': 1358126229, 'portfolio_id': 22953747}, {'photo_id': 1358126179, 'portfolio_id': 22953747}, {'photo_id': 1358126117, 'portfolio_id': 22953747}, {'photo_id': 1358126021, 'portfolio_id': 22953747}, {'photo_id': 1358125324, 'portfolio_id': 22953747}, {'photo_id': 1358125320, 'portfolio_id': 22953747}, {'photo_id': 1358125317, 'portfolio_id': 22953747}, {'photo_id': 1358125092, 'portfolio_id': 22953747}, {'photo_id': 1358125075, 'portfolio_id': 22953747}, {'photo_id': 1358125061, 'portfolio_id': 22953747}, {'photo_id': 1358125014, 'portfolio_id': 22953747}, {'photo_id': 1358124960, 'portfolio_id': 22953747}, {'photo_id': 1358124908, 'portfolio_id': 22953747}, {'photo_id': 1358124305, 'portfolio_id': 22953747}, {'photo_id': 1358124235, 'portfolio_id': 22953747}, {'photo_id': 1358124173, 'portfolio_id': 22953747}, {'photo_id': 1358124098, 'portfolio_id': 22953747}, {'photo_id': 1358124046, 'portfolio_id': 22953747}, {'photo_id': 1358123697, 'portfolio_id': 22953747}, {'photo_id': 1358123672, 'portfolio_id': 22953747}, {'photo_id': 1358123650, 'portfolio_id': 22953747}, {'photo_id': 1358123520, 'portfolio_id': 22953747}, {'photo_id': 1358123486, 'portfolio_id': 22953747}, {'photo_id': 1358123434, 'portfolio_id': 22953747}, {'photo_id': 1358123366, 'portfolio_id': 22953747}, {'photo_id': 1358123299, 'portfolio_id': 22953747}, {'photo_id': 1358122759, 'portfolio_id': 22953747}, {'photo_id': 1358122731, 'portfolio_id': 22953747}, {'photo_id': 1358122705, 'portfolio_id': 22953747}, {'photo_id': 1358122674, 'portfolio_id': 22953747}, {'photo_id': 1358122641, 'portfolio_id': 22953747}, {'photo_id': 1358121956, 'portfolio_id': 22953747}, {'photo_id': 1358121857, 'portfolio_id': 22953747}, {'photo_id': 1358121797, 'portfolio_id': 22953747}, {'photo_id': 1358121714, 'portfolio_id': 22953747}] map_portfolio_id_photo_id: {22953747: [1358130212, 1358130183, 1358130159, 1358130132, 1358130104, 1358129859, 1358129833, 1358129807, 1358129761, 1358129685, 1358129227, 1358129198, 1358128883, 1358128838, 1358128797, 1358128759, 1358128709, 1358128654, 1358128129, 1358128100, 1358128074, 1358128018, 1358127990, 1358127942, 1358127662, 1358127623, 1358127525, 1358127204, 1358127147, 1358127099, 1358127041, 1358126966, 1358126891, 1358126229, 1358126179, 1358126117, 1358126021, 1358125324, 1358125320, 1358125317, 1358125092, 1358125075, 1358125061, 1358125014, 1358124960, 1358124908, 1358124305, 1358124235, 1358124173, 1358124098, 1358124046, 1358123697, 1358123672, 1358123650, 1358123520, 1358123486, 1358123434, 1358123366, 1358123299, 1358122759, 1358122731, 1358122705, 1358122674, 1358122641, 1358121956, 1358121857, 1358121797, 1358121714]} ##### 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.018327951431274414 #### 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 Wed May 14 10:30:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22953747) 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 : 22953747 get user id for portfolio 22953747 get sub ptf for main ptf 22953747, type 3726 and hashtags ['plastique', 'Carton_brun', 'environnement', 'papier', 'autre_refus', 'kraft', 'metal', 'Carton_gris', 'cartonnette', 'mal_croppe', 'flou', 'Teint_Dans_La_Masse'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22953747 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_brun','environnement','papier','autre_refus','kraft','metal','Carton_gris','cartonnette','mal_croppe','flou','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22953747 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_brun','environnement','papier','autre_refus','kraft','metal','Carton_gris','cartonnette','mal_croppe','flou','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22953747, 'sub_port_id': 22953758, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15324407, 'last_updated_at': datetime.datetime(2025, 5, 14, 10, 26, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 10, 26, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 10, 19, 27)}, 'flou': {'main_port_id': 22953747, 'sub_port_id': 22953759, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15324408, 'last_updated_at': datetime.datetime(2025, 5, 14, 10, 26, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 10, 26, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 10, 19, 27)}, 'Carton_brun': {'main_port_id': 22953747, 'sub_port_id': 22953760, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15324409, 'last_updated_at': datetime.datetime(2025, 5, 14, 10, 26, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 10, 26, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 10, 19, 27)}, 'metal': {'main_port_id': 22953747, 'sub_port_id': 22953761, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15324410, 'last_updated_at': datetime.datetime(2025, 5, 14, 10, 26, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 10, 26, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 10, 19, 27)}, 'autre_refus': {'main_port_id': 22953747, 'sub_port_id': 22953762, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15324411, 'last_updated_at': datetime.datetime(2025, 5, 14, 10, 26, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 10, 26, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 10, 19, 27)}, 'cartonnette': {'main_port_id': 22953747, 'sub_port_id': 22953763, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15324412, 'last_updated_at': datetime.datetime(2025, 5, 14, 10, 26, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 10, 26, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 10, 19, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 22953747, 'sub_port_id': 22953764, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15324413, 'last_updated_at': datetime.datetime(2025, 5, 14, 10, 26, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 10, 26, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 10, 19, 27)}, 'papier': {'main_port_id': 22953747, 'sub_port_id': 22953765, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15324414, 'last_updated_at': datetime.datetime(2025, 5, 14, 10, 26, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 10, 26, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 10, 19, 27)}, 'plastique': {'main_port_id': 22953747, 'sub_port_id': 22953766, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15324415, 'last_updated_at': datetime.datetime(2025, 5, 14, 10, 26, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 10, 26, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 10, 19, 27)}, 'kraft': {'main_port_id': 22953747, 'sub_port_id': 22953767, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15324416, 'last_updated_at': datetime.datetime(2025, 5, 14, 10, 26, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 10, 26, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 10, 19, 27)}, 'Carton_gris': {'main_port_id': 22953747, 'sub_port_id': 22953768, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15324417, 'last_updated_at': datetime.datetime(2025, 5, 14, 10, 26, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 10, 26, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 10, 19, 27)}, 'mal_croppe': {'main_port_id': 22953747, 'sub_port_id': 22953769, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15324418, 'last_updated_at': datetime.datetime(2025, 5, 14, 10, 26, 29), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 10, 26, 29), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 10, 19, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22953758 , 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=22953747 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 (22953758) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22953747) result : ((1358121714,), (1358121797,), (1358121857,), (1358121956,), (1358122641,), (1358122674,), (1358122705,), (1358122731,), (1358122759,), (1358123299,), (1358123366,), (1358123434,), (1358123486,), (1358123520,), (1358123650,), (1358123672,), (1358123697,), (1358124046,), (1358124098,), (1358124173,), (1358124235,), (1358124305,), (1358124908,), (1358124960,), (1358125014,), (1358125061,), (1358125075,), (1358125092,), (1358125317,), (1358125320,), (1358125324,), (1358126021,), (1358126117,), (1358126179,), (1358126229,), (1358126891,), (1358126966,), (1358127041,), (1358127099,), (1358127147,), (1358127204,), (1358127525,), (1358127623,), (1358127662,), (1358127942,), (1358127990,), (1358128018,), (1358128074,), (1358128100,), (1358128129,), (1358128654,), (1358128709,), (1358128759,), (1358128797,), (1358128838,), (1358128883,), (1358129198,), (1358129227,), (1358129685,), (1358129761,), (1358129807,), (1358129833,), (1358129859,), (1358130104,), (1358130132,), (1358130159,), (1358130183,), (1358130212,)) 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 (1358128100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22953759 , 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=22953747 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 (22953759) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22953747) result : ((1358121714,), (1358121797,), (1358121857,), (1358121956,), (1358122641,), (1358122674,), (1358122705,), (1358122731,), (1358122759,), (1358123299,), (1358123366,), (1358123434,), (1358123486,), (1358123520,), (1358123650,), (1358123672,), (1358123697,), (1358124046,), (1358124098,), (1358124173,), (1358124235,), (1358124305,), (1358124908,), (1358124960,), (1358125014,), (1358125061,), (1358125075,), (1358125092,), (1358125317,), (1358125320,), (1358125324,), (1358126021,), (1358126117,), (1358126179,), (1358126229,), (1358126891,), (1358126966,), (1358127041,), (1358127099,), (1358127147,), (1358127204,), (1358127525,), (1358127623,), (1358127662,), (1358127942,), (1358127990,), (1358128018,), (1358128074,), (1358128100,), (1358128129,), (1358128654,), (1358128709,), (1358128759,), (1358128797,), (1358128838,), (1358128883,), (1358129198,), (1358129227,), (1358129685,), (1358129761,), (1358129807,), (1358129833,), (1358129859,), (1358130104,), (1358130132,), (1358130159,), (1358130183,), (1358130212,)) 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 (1358128100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22953760 , 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=22953747 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 (22953760) result : ((1358125293,), (1358125295,), (1358126710,), (1358126714,), (1358129144,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22953747) result : ((1358121714,), (1358121797,), (1358121857,), (1358121956,), (1358122641,), (1358122674,), (1358122705,), (1358122731,), (1358122759,), (1358123299,), (1358123366,), (1358123434,), (1358123486,), (1358123520,), (1358123650,), (1358123672,), (1358123697,), (1358124046,), (1358124098,), (1358124173,), (1358124235,), (1358124305,), (1358124908,), (1358124960,), (1358125014,), (1358125061,), (1358125075,), (1358125092,), (1358125317,), (1358125320,), (1358125324,), (1358126021,), (1358126117,), (1358126179,), (1358126229,), (1358126891,), (1358126966,), (1358127041,), (1358127099,), (1358127147,), (1358127204,), (1358127525,), (1358127623,), (1358127662,), (1358127942,), (1358127990,), (1358128018,), (1358128074,), (1358128100,), (1358128129,), (1358128654,), (1358128709,), (1358128759,), (1358128797,), (1358128838,), (1358128883,), (1358129198,), (1358129227,), (1358129685,), (1358129761,), (1358129807,), (1358129833,), (1358129859,), (1358130104,), (1358130132,), (1358130159,), (1358130183,), (1358130212,)) 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 (1358128100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22953761 , 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=22953747 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 (22953761) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22953747) result : ((1358121714,), (1358121797,), (1358121857,), (1358121956,), (1358122641,), (1358122674,), (1358122705,), (1358122731,), (1358122759,), (1358123299,), (1358123366,), (1358123434,), (1358123486,), (1358123520,), (1358123650,), (1358123672,), (1358123697,), (1358124046,), (1358124098,), (1358124173,), (1358124235,), (1358124305,), (1358124908,), (1358124960,), (1358125014,), (1358125061,), (1358125075,), (1358125092,), (1358125317,), (1358125320,), (1358125324,), (1358126021,), (1358126117,), (1358126179,), (1358126229,), (1358126891,), (1358126966,), (1358127041,), (1358127099,), (1358127147,), (1358127204,), (1358127525,), (1358127623,), (1358127662,), (1358127942,), (1358127990,), (1358128018,), (1358128074,), (1358128100,), (1358128129,), (1358128654,), (1358128709,), (1358128759,), (1358128797,), (1358128838,), (1358128883,), (1358129198,), (1358129227,), (1358129685,), (1358129761,), (1358129807,), (1358129833,), (1358129859,), (1358130104,), (1358130132,), (1358130159,), (1358130183,), (1358130212,)) 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 (1358128100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22953762 , 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=22953747 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 (22953762) result : ((1358125269,), (1358126663,), (1358129119,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22953747) result : ((1358121714,), (1358121797,), (1358121857,), (1358121956,), (1358122641,), (1358122674,), (1358122705,), (1358122731,), (1358122759,), (1358123299,), (1358123366,), (1358123434,), (1358123486,), (1358123520,), (1358123650,), (1358123672,), (1358123697,), (1358124046,), (1358124098,), (1358124173,), (1358124235,), (1358124305,), (1358124908,), (1358124960,), (1358125014,), (1358125061,), (1358125075,), (1358125092,), (1358125317,), (1358125320,), (1358125324,), (1358126021,), (1358126117,), (1358126179,), (1358126229,), (1358126891,), (1358126966,), (1358127041,), (1358127099,), (1358127147,), (1358127204,), (1358127525,), (1358127623,), (1358127662,), (1358127942,), (1358127990,), (1358128018,), (1358128074,), (1358128100,), (1358128129,), (1358128654,), (1358128709,), (1358128759,), (1358128797,), (1358128838,), (1358128883,), (1358129198,), (1358129227,), (1358129685,), (1358129761,), (1358129807,), (1358129833,), (1358129859,), (1358130104,), (1358130132,), (1358130159,), (1358130183,), (1358130212,)) 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 (1358128100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22953763 , 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=22953747 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 (22953763) result : ((1358125285,), (1358126682,), (1358129134,), (1358129137,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22953747) result : ((1358121714,), (1358121797,), (1358121857,), (1358121956,), (1358122641,), (1358122674,), (1358122705,), (1358122731,), (1358122759,), (1358123299,), (1358123366,), (1358123434,), (1358123486,), (1358123520,), (1358123650,), (1358123672,), (1358123697,), (1358124046,), (1358124098,), (1358124173,), (1358124235,), (1358124305,), (1358124908,), (1358124960,), (1358125014,), (1358125061,), (1358125075,), (1358125092,), (1358125317,), (1358125320,), (1358125324,), (1358126021,), (1358126117,), (1358126179,), (1358126229,), (1358126891,), (1358126966,), (1358127041,), (1358127099,), (1358127147,), (1358127204,), (1358127525,), (1358127623,), (1358127662,), (1358127942,), (1358127990,), (1358128018,), (1358128074,), (1358128100,), (1358128129,), (1358128654,), (1358128709,), (1358128759,), (1358128797,), (1358128838,), (1358128883,), (1358129198,), (1358129227,), (1358129685,), (1358129761,), (1358129807,), (1358129833,), (1358129859,), (1358130104,), (1358130132,), (1358130159,), (1358130183,), (1358130212,)) 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 (1358128100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22953764 , 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=22953747 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 (22953764) result : ((1358125250,), (1358125252,), (1358125254,), (1358125256,), (1358125258,), (1358125260,), (1358126645,), (1358129111,), (1358129113,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22953747) result : ((1358121714,), (1358121797,), (1358121857,), (1358121956,), (1358122641,), (1358122674,), (1358122705,), (1358122731,), (1358122759,), (1358123299,), (1358123366,), (1358123434,), (1358123486,), (1358123520,), (1358123650,), (1358123672,), (1358123697,), (1358124046,), (1358124098,), (1358124173,), (1358124235,), (1358124305,), (1358124908,), (1358124960,), (1358125014,), (1358125061,), (1358125075,), (1358125092,), (1358125317,), (1358125320,), (1358125324,), (1358126021,), (1358126117,), (1358126179,), (1358126229,), (1358126891,), (1358126966,), (1358127041,), (1358127099,), (1358127147,), (1358127204,), (1358127525,), (1358127623,), (1358127662,), (1358127942,), (1358127990,), (1358128018,), (1358128074,), (1358128100,), (1358128129,), (1358128654,), (1358128709,), (1358128759,), (1358128797,), (1358128838,), (1358128883,), (1358129198,), (1358129227,), (1358129685,), (1358129761,), (1358129807,), (1358129833,), (1358129859,), (1358130104,), (1358130132,), (1358130159,), (1358130183,), (1358130212,)) 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 (1358128100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22953765 , 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=22953747 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 (22953765) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22953747) result : ((1358121714,), (1358121797,), (1358121857,), (1358121956,), (1358122641,), (1358122674,), (1358122705,), (1358122731,), (1358122759,), (1358123299,), (1358123366,), (1358123434,), (1358123486,), (1358123520,), (1358123650,), (1358123672,), (1358123697,), (1358124046,), (1358124098,), (1358124173,), (1358124235,), (1358124305,), (1358124908,), (1358124960,), (1358125014,), (1358125061,), (1358125075,), (1358125092,), (1358125317,), (1358125320,), (1358125324,), (1358126021,), (1358126117,), (1358126179,), (1358126229,), (1358126891,), (1358126966,), (1358127041,), (1358127099,), (1358127147,), (1358127204,), (1358127525,), (1358127623,), (1358127662,), (1358127942,), (1358127990,), (1358128018,), (1358128074,), (1358128100,), (1358128129,), (1358128654,), (1358128709,), (1358128759,), (1358128797,), (1358128838,), (1358128883,), (1358129198,), (1358129227,), (1358129685,), (1358129761,), (1358129807,), (1358129833,), (1358129859,), (1358130104,), (1358130132,), (1358130159,), (1358130183,), (1358130212,)) 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 (1358128100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22953766 , 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=22953747 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 (22953766) result : ((1358126739,), (1358126743,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22953747) result : ((1358121714,), (1358121797,), (1358121857,), (1358121956,), (1358122641,), (1358122674,), (1358122705,), (1358122731,), (1358122759,), (1358123299,), (1358123366,), (1358123434,), (1358123486,), (1358123520,), (1358123650,), (1358123672,), (1358123697,), (1358124046,), (1358124098,), (1358124173,), (1358124235,), (1358124305,), (1358124908,), (1358124960,), (1358125014,), (1358125061,), (1358125075,), (1358125092,), (1358125317,), (1358125320,), (1358125324,), (1358126021,), (1358126117,), (1358126179,), (1358126229,), (1358126891,), (1358126966,), (1358127041,), (1358127099,), (1358127147,), (1358127204,), (1358127525,), (1358127623,), (1358127662,), (1358127942,), (1358127990,), (1358128018,), (1358128074,), (1358128100,), (1358128129,), (1358128654,), (1358128709,), (1358128759,), (1358128797,), (1358128838,), (1358128883,), (1358129198,), (1358129227,), (1358129685,), (1358129761,), (1358129807,), (1358129833,), (1358129859,), (1358130104,), (1358130132,), (1358130159,), (1358130183,), (1358130212,)) 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 (1358128100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22953767 , 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=22953747 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 (22953767) result : ((1358125304,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22953747) result : ((1358121714,), (1358121797,), (1358121857,), (1358121956,), (1358122641,), (1358122674,), (1358122705,), (1358122731,), (1358122759,), (1358123299,), (1358123366,), (1358123434,), (1358123486,), (1358123520,), (1358123650,), (1358123672,), (1358123697,), (1358124046,), (1358124098,), (1358124173,), (1358124235,), (1358124305,), (1358124908,), (1358124960,), (1358125014,), (1358125061,), (1358125075,), (1358125092,), (1358125317,), (1358125320,), (1358125324,), (1358126021,), (1358126117,), (1358126179,), (1358126229,), (1358126891,), (1358126966,), (1358127041,), (1358127099,), (1358127147,), (1358127204,), (1358127525,), (1358127623,), (1358127662,), (1358127942,), (1358127990,), (1358128018,), (1358128074,), (1358128100,), (1358128129,), (1358128654,), (1358128709,), (1358128759,), (1358128797,), (1358128838,), (1358128883,), (1358129198,), (1358129227,), (1358129685,), (1358129761,), (1358129807,), (1358129833,), (1358129859,), (1358130104,), (1358130132,), (1358130159,), (1358130183,), (1358130212,)) 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 (1358128100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22953768 , 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=22953747 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 (22953768) result : ((1358125277,), (1358125279,), (1358129126,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22953747) result : ((1358121714,), (1358121797,), (1358121857,), (1358121956,), (1358122641,), (1358122674,), (1358122705,), (1358122731,), (1358122759,), (1358123299,), (1358123366,), (1358123434,), (1358123486,), (1358123520,), (1358123650,), (1358123672,), (1358123697,), (1358124046,), (1358124098,), (1358124173,), (1358124235,), (1358124305,), (1358124908,), (1358124960,), (1358125014,), (1358125061,), (1358125075,), (1358125092,), (1358125317,), (1358125320,), (1358125324,), (1358126021,), (1358126117,), (1358126179,), (1358126229,), (1358126891,), (1358126966,), (1358127041,), (1358127099,), (1358127147,), (1358127204,), (1358127525,), (1358127623,), (1358127662,), (1358127942,), (1358127990,), (1358128018,), (1358128074,), (1358128100,), (1358128129,), (1358128654,), (1358128709,), (1358128759,), (1358128797,), (1358128838,), (1358128883,), (1358129198,), (1358129227,), (1358129685,), (1358129761,), (1358129807,), (1358129833,), (1358129859,), (1358130104,), (1358130132,), (1358130159,), (1358130183,), (1358130212,)) 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 (1358128100) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22953769 , 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=22953747 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 (22953769) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22953747) result : ((1358121714,), (1358121797,), (1358121857,), (1358121956,), (1358122641,), (1358122674,), (1358122705,), (1358122731,), (1358122759,), (1358123299,), (1358123366,), (1358123434,), (1358123486,), (1358123520,), (1358123650,), (1358123672,), (1358123697,), (1358124046,), (1358124098,), (1358124173,), (1358124235,), (1358124305,), (1358124908,), (1358124960,), (1358125014,), (1358125061,), (1358125075,), (1358125092,), (1358125317,), (1358125320,), (1358125324,), (1358126021,), (1358126117,), (1358126179,), (1358126229,), (1358126891,), (1358126966,), (1358127041,), (1358127099,), (1358127147,), (1358127204,), (1358127525,), (1358127623,), (1358127662,), (1358127942,), (1358127990,), (1358128018,), (1358128074,), (1358128100,), (1358128129,), (1358128654,), (1358128709,), (1358128759,), (1358128797,), (1358128838,), (1358128883,), (1358129198,), (1358129227,), (1358129685,), (1358129761,), (1358129807,), (1358129833,), (1358129859,), (1358130104,), (1358130132,), (1358130159,), (1358130183,), (1358130212,)) 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 (1358128100) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22953747 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_brun','environnement','papier','autre_refus','kraft','metal','Carton_gris','cartonnette','mal_croppe','flou','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22953747 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','Carton_brun','environnement','papier','autre_refus','kraft','metal','Carton_gris','cartonnette','mal_croppe','flou','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22953747, 'sub_port_id': 22953771, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15324419, 'last_updated_at': datetime.datetime(2025, 5, 14, 10, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 10, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 10, 19, 33)}, 'flou': {'main_port_id': 22953747, 'sub_port_id': 22953772, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15324420, 'last_updated_at': datetime.datetime(2025, 5, 14, 10, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 10, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 10, 19, 33)}, 'Carton_brun': {'main_port_id': 22953747, 'sub_port_id': 22953773, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15324421, 'last_updated_at': datetime.datetime(2025, 5, 14, 10, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 10, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 10, 19, 33)}, 'metal': {'main_port_id': 22953747, 'sub_port_id': 22953774, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15324422, 'last_updated_at': datetime.datetime(2025, 5, 14, 10, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 10, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 10, 19, 33)}, 'autre_refus': {'main_port_id': 22953747, 'sub_port_id': 22953775, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15324423, 'last_updated_at': datetime.datetime(2025, 5, 14, 10, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 10, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 10, 19, 33)}, 'cartonnette': {'main_port_id': 22953747, 'sub_port_id': 22953776, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15324424, 'last_updated_at': datetime.datetime(2025, 5, 14, 10, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 10, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 10, 19, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 22953747, 'sub_port_id': 22953777, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15324425, 'last_updated_at': datetime.datetime(2025, 5, 14, 10, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 10, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 10, 19, 33)}, 'papier': {'main_port_id': 22953747, 'sub_port_id': 22953778, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15324426, 'last_updated_at': datetime.datetime(2025, 5, 14, 10, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 10, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 10, 19, 33)}, 'plastique': {'main_port_id': 22953747, 'sub_port_id': 22953779, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15324427, 'last_updated_at': datetime.datetime(2025, 5, 14, 10, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 10, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 10, 19, 33)}, 'kraft': {'main_port_id': 22953747, 'sub_port_id': 22953780, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15324428, 'last_updated_at': datetime.datetime(2025, 5, 14, 10, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 10, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 10, 19, 33)}, 'Carton_gris': {'main_port_id': 22953747, 'sub_port_id': 22953781, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15324429, 'last_updated_at': datetime.datetime(2025, 5, 14, 10, 19, 33), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 10, 19, 33), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 10, 19, 33)}, 'mal_croppe': {'main_port_id': 22953747, 'sub_port_id': 22953782, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15324430, 'last_updated_at': datetime.datetime(2025, 5, 14, 10, 26, 30), 'last_updated_at_desc': datetime.datetime(2025, 5, 14, 10, 26, 30), 'last_updated_at_asc': datetime.datetime(2025, 5, 14, 10, 19, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22953771,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22953758 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22953772,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22953759 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22953773,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22953760 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22953774,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22953761 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22953775,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22953762 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22953776,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22953763 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22953777,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22953764 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22953778,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22953765 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22953779,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22953766 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22953780,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22953767 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22953781,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22953768 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22953782,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22953769 lien utilise dans velours : https://www.fotonower.com/velours/22953771,22953772,22953773,22953774,22953775,22953776,22953777,22953778,22953779,22953780,22953781,22953782?tags=environnement,flou,Carton_brun,metal,autre_refus,cartonnette,Teint_Dans_La_Masse,papier,plastique,kraft,Carton_gris,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22953747]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1358130212, 1358130183, 1358130159, 1358130132, 1358130104, 1358129859, 1358129833, 1358129807, 1358129761, 1358129685, 1358129227, 1358129198, 1358128883, 1358128838, 1358128797, 1358128759, 1358128709, 1358128654, 1358128129, 1358128100, 1358128074, 1358128018, 1358127990, 1358127942] map_info['map_portfolio_photo'] : {22953747: [1358130212, 1358130183, 1358130159, 1358130132, 1358130104, 1358129859, 1358129833, 1358129807, 1358129761, 1358129685, 1358129227, 1358129198, 1358128883, 1358128838, 1358128797, 1358128759, 1358128709, 1358128654, 1358128129, 1358128100, 1358128074, 1358128018, 1358127990, 1358127942, 1358127662, 1358127623, 1358127525, 1358127204, 1358127147, 1358127099, 1358127041, 1358126966, 1358126891, 1358126229, 1358126179, 1358126117, 1358126021, 1358125324, 1358125320, 1358125317, 1358125092, 1358125075, 1358125061, 1358125014, 1358124960, 1358124908, 1358124305, 1358124235, 1358124173, 1358124098, 1358124046, 1358123697, 1358123672, 1358123650, 1358123520, 1358123486, 1358123434, 1358123366, 1358123299, 1358122759, 1358122731, 1358122705, 1358122674, 1358122641, 1358121956, 1358121857, 1358121797, 1358121714]} final : False mtd_id 4302 list_pids : [1358130212, 1358130183, 1358130159, 1358130132, 1358130104, 1358129859, 1358129833, 1358129807, 1358129761, 1358129685, 1358129227, 1358129198, 1358128883, 1358128838, 1358128797, 1358128759, 1358128709, 1358128654, 1358128129, 1358128100, 1358128074, 1358128018, 1358127990, 1358127942] Looping around the photos to save general results len do output : 1 /22953747. 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, '2846996') ('4302', '22953747', '1358130212', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358130183', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358130159', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358130132', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358130104', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358129859', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358129833', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358129807', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358129761', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358129685', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358129227', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358129198', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128883', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128838', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128797', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128759', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128709', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128654', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128129', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128100', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128074', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128018', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358127990', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358127942', None, None, None, None, None, '2846996') 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', None, '22953747', "{'environnement': 22953758, 'flou': 22953759, 'Carton_brun': 22953760, 'metal': 22953761, 'autre_refus': 22953762, 'cartonnette': 22953763, 'Teint_Dans_La_Masse': 22953764, 'papier': 22953765, 'plastique': 22953766, 'kraft': 22953767, 'Carton_gris': 22953768, 'mal_croppe': 22953769}", None, None, None, None, '2846996'), ('4302', '22953747', '1358130212', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358130183', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358130159', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358130132', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358130104', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358129859', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358129833', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358129807', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358129761', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358129685', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358129227', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358129198', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128883', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128838', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128797', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128759', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128709', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128654', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128129', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128100', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128074', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128018', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358127990', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358127942', None, None, None, None, None, '2846996')] time used for this insertion : 0.042485713958740234 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4911048412322998 time spend to save output : 0.04286503791809082 total time spend for step 1 : 0.5339698791503906 step2:final Wed May 14 10:30: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 (22953747) 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 22953747 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1358121956,1358121857,1358121797,1358121714,1358122759,1358122731,1358122705,1358122674,1358122641,1358123520,1358123486,1358123434,1358123366,1358123299,1358123697,1358123672,1358123650,1358124305,1358124235,1358124173,1358124098,1358124046,1358125092,1358125075,1358125061,1358125014,1358124960,1358124908,1358125324,1358125320,1358125317,1358126229,1358126179,1358126117,1358126021,1358127204,1358127147,1358127099,1358127041,1358126966,1358126891,1358127662,1358127623,1358128129,1358127525,1358128100,1358128074,1358128018,1358127990,1358127942,1358128883,1358128838,1358128797,1358128759,1358128709,1358128654,1358129227,1358129198,1358129859,1358129833,1358129807,1358129761,1358129685,1358130212,1358130183,1358130159,1358130132,1358130104); 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([22953747]) Inside saveOutput : final : False verbose : True original output for save of step final : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ('0.06496343936151117',)} new output for save of step final : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ('0.06496343936151117',)} [1358130212, 1358130183, 1358130159, 1358130132, 1358130104, 1358129859, 1358129833, 1358129807, 1358129761, 1358129685, 1358129227, 1358129198, 1358128883, 1358128838, 1358128797, 1358128759, 1358128709, 1358128654, 1358128129, 1358128100, 1358128074, 1358128018, 1358127990, 1358127942] map_info['map_portfolio_photo'] : {22953747: [1358130212, 1358130183, 1358130159, 1358130132, 1358130104, 1358129859, 1358129833, 1358129807, 1358129761, 1358129685, 1358129227, 1358129198, 1358128883, 1358128838, 1358128797, 1358128759, 1358128709, 1358128654, 1358128129, 1358128100, 1358128074, 1358128018, 1358127990, 1358127942, 1358127662, 1358127623, 1358127525, 1358127204, 1358127147, 1358127099, 1358127041, 1358126966, 1358126891, 1358126229, 1358126179, 1358126117, 1358126021, 1358125324, 1358125320, 1358125317, 1358125092, 1358125075, 1358125061, 1358125014, 1358124960, 1358124908, 1358124305, 1358124235, 1358124173, 1358124098, 1358124046, 1358123697, 1358123672, 1358123650, 1358123520, 1358123486, 1358123434, 1358123366, 1358123299, 1358122759, 1358122731, 1358122705, 1358122674, 1358122641, 1358121956, 1358121857, 1358121797, 1358121714]} final : False mtd_id 4302 list_pids : [1358130212, 1358130183, 1358130159, 1358130132, 1358130104, 1358129859, 1358129833, 1358129807, 1358129761, 1358129685, 1358129227, 1358129198, 1358128883, 1358128838, 1358128797, 1358128759, 1358128709, 1358128654, 1358128129, 1358128100, 1358128074, 1358128018, 1358127990, 1358127942] Looping around the photos to save general results len do output : 24 /1358130212.Didn't retrieve data . /1358130183.Didn't retrieve data . /1358130159.Didn't retrieve data . /1358130132.Didn't retrieve data . /1358130104.Didn't retrieve data . /1358129859.Didn't retrieve data . /1358129833.Didn't retrieve data . /1358129807.Didn't retrieve data . /1358129761.Didn't retrieve data . /1358129685.Didn't retrieve data . /1358129227.Didn't retrieve data . /1358129198.Didn't retrieve data . /1358128883.Didn't retrieve data . /1358128838.Didn't retrieve data . /1358128797.Didn't retrieve data . /1358128759.Didn't retrieve data . /1358128709.Didn't retrieve data . /1358128654.Didn't retrieve data . /1358128129.Didn't retrieve data . /1358128100.Didn't retrieve data . /1358128074.Didn't retrieve data . /1358128018.Didn't retrieve data . /1358127990.Didn't retrieve data . /1358127942.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, '2846996') ('4302', '22953747', '1358130212', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358130183', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358130159', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358130132', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358130104', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358129859', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358129833', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358129807', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358129761', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358129685', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358129227', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358129198', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128883', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128838', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128797', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128759', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128709', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128654', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128129', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128100', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128074', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128018', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358127990', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358127942', None, None, None, None, None, '2846996') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 72 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', '22953747', '1358130212', '0.06496343936151117', None, None, None, None, '2846996'), ('4302', '22953747', '1358130183', '0.06496343936151117', None, None, None, None, '2846996'), ('4302', '22953747', '1358130159', '0.06496343936151117', None, None, None, None, '2846996'), ('4302', '22953747', '1358130132', '0.06496343936151117', None, None, None, None, '2846996'), ('4302', '22953747', '1358130104', '0.06496343936151117', None, None, None, None, '2846996'), ('4302', '22953747', '1358129859', '0.06496343936151117', None, None, None, None, '2846996'), ('4302', '22953747', '1358129833', '0.06496343936151117', None, None, None, None, '2846996'), ('4302', '22953747', '1358129807', '0.06496343936151117', None, None, None, None, '2846996'), ('4302', '22953747', '1358129761', '0.06496343936151117', None, None, None, None, '2846996'), ('4302', '22953747', '1358129685', '0.06496343936151117', None, None, None, None, '2846996'), ('4302', '22953747', '1358129227', '0.06496343936151117', None, None, None, None, '2846996'), ('4302', '22953747', '1358129198', '0.06496343936151117', None, None, None, None, '2846996'), ('4302', '22953747', '1358128883', '0.06496343936151117', None, None, None, None, '2846996'), ('4302', '22953747', '1358128838', '0.06496343936151117', None, None, None, None, '2846996'), ('4302', '22953747', '1358128797', '0.06496343936151117', None, None, None, None, '2846996'), ('4302', '22953747', '1358128759', '0.06496343936151117', None, None, None, None, '2846996'), ('4302', '22953747', '1358128709', '0.06496343936151117', None, None, None, None, '2846996'), ('4302', '22953747', '1358128654', '0.06496343936151117', None, None, None, None, '2846996'), ('4302', '22953747', '1358128129', '0.06496343936151117', None, None, None, None, '2846996'), ('4302', '22953747', '1358128100', '0.06496343936151117', None, None, None, None, '2846996'), ('4302', '22953747', '1358128074', '0.06496343936151117', None, None, None, None, '2846996'), ('4302', '22953747', '1358128018', '0.06496343936151117', None, None, None, None, '2846996'), ('4302', '22953747', '1358127990', '0.06496343936151117', None, None, None, None, '2846996'), ('4302', '22953747', '1358127942', '0.06496343936151117', None, None, None, None, '2846996')] time used for this insertion : 0.037543296813964844 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.09750127792358398 time spend to save output : 0.038655757904052734 total time spend for step 2 : 0.13615703582763672 step3:velours_tree Wed May 14 10:30:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22953747: [{'environnement': 22953758, 'flou': 22953759, 'Carton_brun': 22953760, 'metal': 22953761, 'autre_refus': 22953762, 'cartonnette': 22953763, 'Teint_Dans_La_Masse': 22953764, 'papier': 22953765, 'plastique': 22953766, 'kraft': 22953767, 'Carton_gris': 22953768, 'mal_croppe': 22953769}]} input_args_next_step : {22953747: ()} output_args : {22953747: [{'environnement': 22953758, 'flou': 22953759, 'Carton_brun': 22953760, 'metal': 22953761, 'autre_refus': 22953762, 'cartonnette': 22953763, 'Teint_Dans_La_Masse': 22953764, 'papier': 22953765, 'plastique': 22953766, 'kraft': 22953767, 'Carton_gris': 22953768, 'mal_croppe': 22953769}]} args : 22953747 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 : ({'environnement': 22953758, 'flou': 22953759, 'Carton_brun': 22953760, 'metal': 22953761, 'autre_refus': 22953762, 'cartonnette': 22953763, 'Teint_Dans_La_Masse': 22953764, 'papier': 22953765, 'plastique': 22953766, 'kraft': 22953767, 'Carton_gris': 22953768, 'mal_croppe': 22953769},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22953747) 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([22953747]) 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.38790369033813477 time spend to save output : 4.696846008300781e-05 total time spend for step 3 : 0.3879506587982178 step4:send_mail_cod Wed May 14 10:30: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 : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ('0.06496343936151117',)} input_args_next_step : {1358130212: ()} output_args : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ('0.06496343936151117',)} args : 1358130212 depend.output_id : 0 input_args_next_step : {1358130212: ('0.06496343936151117',), 1358130183: ()} output_args : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ('0.06496343936151117',)} args : 1358130183 depend.output_id : 0 input_args_next_step : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ()} output_args : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ('0.06496343936151117',)} args : 1358130159 depend.output_id : 0 input_args_next_step : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ()} output_args : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ('0.06496343936151117',)} args : 1358130132 depend.output_id : 0 input_args_next_step : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ()} output_args : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ('0.06496343936151117',)} args : 1358130104 depend.output_id : 0 input_args_next_step : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ()} output_args : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ('0.06496343936151117',)} args : 1358129859 depend.output_id : 0 input_args_next_step : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ()} output_args : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ('0.06496343936151117',)} args : 1358129833 depend.output_id : 0 input_args_next_step : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ()} output_args : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ('0.06496343936151117',)} args : 1358129807 depend.output_id : 0 input_args_next_step : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ()} output_args : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ('0.06496343936151117',)} args : 1358129761 depend.output_id : 0 input_args_next_step : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ()} output_args : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ('0.06496343936151117',)} args : 1358129685 depend.output_id : 0 input_args_next_step : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ()} output_args : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ('0.06496343936151117',)} args : 1358129227 depend.output_id : 0 input_args_next_step : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ()} output_args : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ('0.06496343936151117',)} args : 1358129198 depend.output_id : 0 input_args_next_step : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ()} output_args : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ('0.06496343936151117',)} args : 1358128883 depend.output_id : 0 input_args_next_step : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ()} output_args : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ('0.06496343936151117',)} args : 1358128838 depend.output_id : 0 input_args_next_step : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ()} output_args : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ('0.06496343936151117',)} args : 1358128797 depend.output_id : 0 input_args_next_step : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ()} output_args : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ('0.06496343936151117',)} args : 1358128759 depend.output_id : 0 input_args_next_step : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ()} output_args : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ('0.06496343936151117',)} args : 1358128709 depend.output_id : 0 input_args_next_step : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ()} output_args : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ('0.06496343936151117',)} args : 1358128654 depend.output_id : 0 input_args_next_step : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ()} output_args : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ('0.06496343936151117',)} args : 1358128129 depend.output_id : 0 input_args_next_step : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ()} output_args : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ('0.06496343936151117',)} args : 1358128100 depend.output_id : 0 input_args_next_step : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ()} output_args : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ('0.06496343936151117',)} args : 1358128074 depend.output_id : 0 input_args_next_step : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ()} output_args : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ('0.06496343936151117',)} args : 1358128018 depend.output_id : 0 input_args_next_step : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ()} output_args : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ('0.06496343936151117',)} args : 1358127990 depend.output_id : 0 input_args_next_step : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ()} output_args : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ('0.06496343936151117',)} args : 1358127942 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 : {22953747: [{'environnement': 22953758, 'flou': 22953759, 'Carton_brun': 22953760, 'metal': 22953761, 'autre_refus': 22953762, 'cartonnette': 22953763, 'Teint_Dans_La_Masse': 22953764, 'papier': 22953765, 'plastique': 22953766, 'kraft': 22953767, 'Carton_gris': 22953768, 'mal_croppe': 22953769}]} input_args_next_step : {1358130212: ('0.06496343936151117',), 1358130183: ('0.06496343936151117',), 1358130159: ('0.06496343936151117',), 1358130132: ('0.06496343936151117',), 1358130104: ('0.06496343936151117',), 1358129859: ('0.06496343936151117',), 1358129833: ('0.06496343936151117',), 1358129807: ('0.06496343936151117',), 1358129761: ('0.06496343936151117',), 1358129685: ('0.06496343936151117',), 1358129227: ('0.06496343936151117',), 1358129198: ('0.06496343936151117',), 1358128883: ('0.06496343936151117',), 1358128838: ('0.06496343936151117',), 1358128797: ('0.06496343936151117',), 1358128759: ('0.06496343936151117',), 1358128709: ('0.06496343936151117',), 1358128654: ('0.06496343936151117',), 1358128129: ('0.06496343936151117',), 1358128100: ('0.06496343936151117',), 1358128074: ('0.06496343936151117',), 1358128018: ('0.06496343936151117',), 1358127990: ('0.06496343936151117',), 1358127942: ('0.06496343936151117',), 22953747: ()} output_args : {22953747: [{'environnement': 22953758, 'flou': 22953759, 'Carton_brun': 22953760, 'metal': 22953761, 'autre_refus': 22953762, 'cartonnette': 22953763, 'Teint_Dans_La_Masse': 22953764, 'papier': 22953765, 'plastique': 22953766, 'kraft': 22953767, 'Carton_gris': 22953768, 'mal_croppe': 22953769}]} args : 22953747 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 :25, first value : ('0.06496343936151117',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22953747) 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 (1358130212,1358130183,1358130159,1358130132,1358130104,1358129859,1358129833,1358129807,1358129761,1358129685,1358129227,1358129198,1358128883,1358128838,1358128797,1358128759,1358128709,1358128654,1358128129,1358128100,1358128074,1358128018,1358127990,1358127942) Found this number of photos: 24 ##### Call download_photos : nb_thread : 5 begin to download photo : 1358127942 begin to download photo : 1358128129 begin to download photo : 1358128838 begin to download photo : 1358129761 begin to download photo : 1358130132 download finish for photo 1358130132 begin to download photo : 1358130159 download finish for photo 1358128838 begin to download photo : 1358128883 download finish for photo 1358128129 begin to download photo : 1358128654 download finish for photo 1358127942 begin to download photo : 1358127990 download finish for photo 1358129761 begin to download photo : 1358129807 download finish for photo 1358128883 begin to download photo : 1358129198 download finish for photo 1358127990 begin to download photo : 1358128018 download finish for photo 1358128654 begin to download photo : 1358128709 download finish for photo 1358130159 begin to download photo : 1358130183 download finish for photo 1358129807 begin to download photo : 1358129833 download finish for photo 1358129198 begin to download photo : 1358129227 download finish for photo 1358128018 begin to download photo : 1358128074 download finish for photo 1358128709 begin to download photo : 1358128759 download finish for photo 1358130183 begin to download photo : 1358130212 download finish for photo 1358129833 begin to download photo : 1358129859 download finish for photo 1358129227 begin to download photo : 1358129685 download finish for photo 1358130212 download finish for photo 1358128074 begin to download photo : 1358128100 download finish for photo 1358128759 begin to download photo : 1358128797 download finish for photo 1358129859 begin to download photo : 1358130104 download finish for photo 1358129685 download finish for photo 1358128797 download finish for photo 1358128100 download finish for photo 1358130104 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette229537591747211460/ imagette229537611747211460/ length of list_filenames : 24 ; length of list_pids : 24 ; length of list_args : 24 results_Auto_P22953747_14-05-2025_10_31_00.pdf 22953759 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=22953759 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229537591747211460 22953761 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=22953761 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229537611747211460 22953762 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=22953762 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358125269: '1747210886_1964300_1358122641_c13872e6ac2bd8bb892bb07fe0fec940_rle_crop_3796747611_0.png', 1358126663: '1747211007_1968106_1358124098_3d2834afad2dbde0b978d6c4a71dc0c3_rle_crop_3796749974_0.png', 1358129119: '1747211247_1972266_1358126117_c13f3860dc70fdbe79656986cc0f2582_rle_crop_3796755217_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/ed5c711c4309776de89063fa21bb0bae_95426209.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/e2feb9439b3f0c649d2520052aa536b6_27563537.png change filename to text .imagette229537621747211460/ imagette229537621747211460/1747210886_1964300_1358122641_c13872e6ac2bd8bb892bb07fe0fec940_rle_crop_3796747611_0.png.png imagette229537621747211460/1747211007_1968106_1358124098_3d2834afad2dbde0b978d6c4a71dc0c3_rle_crop_3796749974_0.png.png imagette229537621747211460/1747211247_1972266_1358126117_c13f3860dc70fdbe79656986cc0f2582_rle_crop_3796755217_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/3bc12f5fd5098c0acefa885b69580731_66250849.png imagette229537621747211460 22953763 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=22953763 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358125285: '1747210886_1964300_1358122641_c13872e6ac2bd8bb892bb07fe0fec940_rle_crop_3796747605_0.png', 1358126682: '1747211007_1968106_1358124098_3d2834afad2dbde0b978d6c4a71dc0c3_rle_crop_3796749973_0.png', 1358129134: '1747211247_1972266_1358126179_281c16d4cbe59147b8232fa76fee0b51_rle_crop_3796755203_0.png', 1358129137: '1747211247_1972266_1358126117_c13f3860dc70fdbe79656986cc0f2582_rle_crop_3796755220_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/71371600d6008907abcd84be87f197c6_23774299.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/66f58a12c0e86b12417061a71ea69aa0_4201712.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/85f142278b74e55c72b8452db76fcaf0_41125240.png change filename to text .imagette229537631747211460/ imagette229537631747211460/1747210886_1964300_1358122641_c13872e6ac2bd8bb892bb07fe0fec940_rle_crop_3796747605_0.png.png imagette229537631747211460/1747211007_1968106_1358124098_3d2834afad2dbde0b978d6c4a71dc0c3_rle_crop_3796749973_0.png.png imagette229537631747211460/1747211247_1972266_1358126179_281c16d4cbe59147b8232fa76fee0b51_rle_crop_3796755203_0.png.png imagette229537631747211460/1747211247_1972266_1358126117_c13f3860dc70fdbe79656986cc0f2582_rle_crop_3796755220_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/453d91971afaf066ac7a3e630b5c0d5b_80305407.png imagette229537631747211460 22953766 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=22953766 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358126739: '1747211007_1968106_1358124235_27ec2188a4e13d8f9cc9231c80c1f8e9_rle_crop_3796749947_0.png', 1358126743: '1747211007_1968106_1358124173_cbe7de9d8a68cafdd501e707595485f5_rle_crop_3796749966_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/e54a5113d6f7d591c186b9443f54338b_21546481.png change filename to text .imagette229537661747211460/ imagette229537661747211460/1747211007_1968106_1358124173_cbe7de9d8a68cafdd501e707595485f5_rle_crop_3796749966_0.png.png imagette229537661747211460/1747211007_1968106_1358124235_27ec2188a4e13d8f9cc9231c80c1f8e9_rle_crop_3796749947_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/beeb596380f699074357ea81c561407e_76544406.png imagette229537661747211460 22953767 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=22953767 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358125304: '1747210886_1964300_1358122705_f95407d0c54bffea699c0c31eafbf402_rle_crop_3796747112_0.png'} change filename to text .imagette229537671747211460/ imagette229537671747211460/1747210886_1964300_1358122705_f95407d0c54bffea699c0c31eafbf402_rle_crop_3796747112_0.png.png imagette229537691747211460/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/3b7739cae26cd66f271702e827cabf01_25596176.png imagette229537671747211460 22953769 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=22953769 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette229537691747211460 22953760 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=22953760 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358125293: '1747210886_1964300_1358122731_52d6d9390507a5445d5214fd30af9150_rle_crop_3796747099_0.png', 1358125295: '1747210886_1964300_1358122674_d1f4c7a8e9e4abf04fa0a9a64f64c215_rle_crop_3796747369_0.png', 1358126710: '1747211007_1968106_1358124235_27ec2188a4e13d8f9cc9231c80c1f8e9_rle_crop_3796749949_0.png', 1358126714: '1747211007_1968106_1358124098_3d2834afad2dbde0b978d6c4a71dc0c3_rle_crop_3796749976_0.png', 1358129144: '1747211247_1972266_1358126179_281c16d4cbe59147b8232fa76fee0b51_rle_crop_3796755208_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/0a462e0b57728d061c6528b66ae40ff8_78235603.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/7b43a58b34f3418788aba3cc65b4f182_33941987.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/195966b2015023201c1a0d51d3312518_61736355.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/e114bab846eb8d9b25a41149f909197e_61560388.png change filename to text .imagette229537601747211460/ imagette229537601747211460/1747210886_1964300_1358122674_d1f4c7a8e9e4abf04fa0a9a64f64c215_rle_crop_3796747369_0.png.png imagette229537601747211460/1747211007_1968106_1358124235_27ec2188a4e13d8f9cc9231c80c1f8e9_rle_crop_3796749949_0.png.png imagette229537601747211460/1747211007_1968106_1358124098_3d2834afad2dbde0b978d6c4a71dc0c3_rle_crop_3796749976_0.png.png imagette229537601747211460/1747211247_1972266_1358126179_281c16d4cbe59147b8232fa76fee0b51_rle_crop_3796755208_0.png.png imagette229537601747211460/1747210886_1964300_1358122731_52d6d9390507a5445d5214fd30af9150_rle_crop_3796747099_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/c27ecf6f8eb655ace4972062d4469f67_64501748.png imagette229537601747211460 22953764 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=22953764 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358125250: '1747210886_1964300_1358122705_f95407d0c54bffea699c0c31eafbf402_rle_crop_3796747110_0.png', 1358125252: '1747210886_1964300_1358122674_d1f4c7a8e9e4abf04fa0a9a64f64c215_rle_crop_3796747371_0.png', 1358125254: '1747210886_1964300_1358122674_d1f4c7a8e9e4abf04fa0a9a64f64c215_rle_crop_3796747372_0.png', 1358125256: '1747210886_1964300_1358122674_d1f4c7a8e9e4abf04fa0a9a64f64c215_rle_crop_3796747377_0.png', 1358125258: '1747210886_1964300_1358122641_c13872e6ac2bd8bb892bb07fe0fec940_rle_crop_3796747615_0.png', 1358125260: '1747210886_1964300_1358122641_c13872e6ac2bd8bb892bb07fe0fec940_rle_crop_3796747610_0.png', 1358126645: '1747211007_1968106_1358124173_cbe7de9d8a68cafdd501e707595485f5_rle_crop_3796749964_0.png', 1358129111: '1747211247_1972266_1358126179_281c16d4cbe59147b8232fa76fee0b51_rle_crop_3796755207_0.png', 1358129113: '1747211247_1972266_1358126117_c13f3860dc70fdbe79656986cc0f2582_rle_crop_3796755232_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/7f11d100d6eb1bbc3a50b6a3a2b20c2f_88091767.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/7de62c17f31a2d6a6f510b8a6b87b105_5326978.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/6cf3e6d2124c2292b7d3e9bcc964c853_28958916.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/3ae70febd7cd5ceb7de9ced16a4e43f9_63674655.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/447423a40d03a2e8cae9b1601e0772e8_93826060.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/0a4d46f1536c1a2912c70634fc4a0f48_30999860.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/e7102cdf6876359e25973dc56a2d1d42_48566954.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/9d40130a2d8de636da67767f4908f5df_12331468.png change filename to text .imagette229537641747211460/ imagette229537641747211460/1747211007_1968106_1358124173_cbe7de9d8a68cafdd501e707595485f5_rle_crop_3796749964_0.png.png imagette229537641747211460/1747210886_1964300_1358122641_c13872e6ac2bd8bb892bb07fe0fec940_rle_crop_3796747610_0.png.png imagette229537641747211460/1747210886_1964300_1358122674_d1f4c7a8e9e4abf04fa0a9a64f64c215_rle_crop_3796747377_0.png.png imagette229537641747211460/1747210886_1964300_1358122674_d1f4c7a8e9e4abf04fa0a9a64f64c215_rle_crop_3796747372_0.png.png imagette229537641747211460/1747211247_1972266_1358126117_c13f3860dc70fdbe79656986cc0f2582_rle_crop_3796755232_0.png.png imagette229537641747211460/1747210886_1964300_1358122641_c13872e6ac2bd8bb892bb07fe0fec940_rle_crop_3796747615_0.png.png imagette229537641747211460/1747210886_1964300_1358122674_d1f4c7a8e9e4abf04fa0a9a64f64c215_rle_crop_3796747371_0.png.png imagette229537641747211460/1747211247_1972266_1358126179_281c16d4cbe59147b8232fa76fee0b51_rle_crop_3796755207_0.png.png imagette229537641747211460/1747210886_1964300_1358122705_f95407d0c54bffea699c0c31eafbf402_rle_crop_3796747110_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/0d21ba4039531252e6888ee77c57ddc3_92133116.png imagette229537641747211460 22953768 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=22953768 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1358125277: '1747210886_1964300_1358122731_52d6d9390507a5445d5214fd30af9150_rle_crop_3796747095_0.png', 1358125279: '1747210886_1964300_1358122705_f95407d0c54bffea699c0c31eafbf402_rle_crop_3796747111_0.png', 1358129126: '1747211247_1972266_1358126117_c13f3860dc70fdbe79656986cc0f2582_rle_crop_3796755222_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/a9ebf4b3d6162a502aaaf113d66864c7_46771027.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/ea49967c97887203b39d770dca5b968c_55915521.png change filename to text .imagette229537681747211461/ imagette229537681747211461/1747211247_1972266_1358126117_c13f3860dc70fdbe79656986cc0f2582_rle_crop_3796755222_0.png.png imagette229537681747211461/1747210886_1964300_1358122731_52d6d9390507a5445d5214fd30af9150_rle_crop_3796747095_0.png.png imagette229537681747211461/1747210886_1964300_1358122705_f95407d0c54bffea699c0c31eafbf402_rle_crop_3796747111_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/b80fb5f638500375a4f6f3a75b6a0365_71026540.png imagette229537681747211461 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22953747 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22953771,22953772,22953773,22953774,22953775,22953776,22953777,22953778,22953779,22953780,22953781,22953782?tags=environnement,flou,Carton_brun,metal,autre_refus,cartonnette,Teint_Dans_La_Masse,papier,plastique,kraft,Carton_gris,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1358130212] : ('0.06496343936151117',) no score found for photo 1358130212 We are sending mail with results at report@fotonower.com args[1358130183] : ('0.06496343936151117',) no score found for photo 1358130183 We are sending mail with results at report@fotonower.com args[1358130159] : ('0.06496343936151117',) no score found for photo 1358130159 We are sending mail with results at report@fotonower.com args[1358130132] : ('0.06496343936151117',) no score found for photo 1358130132 We are sending mail with results at report@fotonower.com args[1358130104] : ('0.06496343936151117',) no score found for photo 1358130104 We are sending mail with results at report@fotonower.com args[1358129859] : ('0.06496343936151117',) no score found for photo 1358129859 We are sending mail with results at report@fotonower.com args[1358129833] : ('0.06496343936151117',) no score found for photo 1358129833 We are sending mail with results at report@fotonower.com args[1358129807] : ('0.06496343936151117',) no score found for photo 1358129807 We are sending mail with results at report@fotonower.com args[1358129761] : ('0.06496343936151117',) no score found for photo 1358129761 We are sending mail with results at report@fotonower.com args[1358129685] : ('0.06496343936151117',) no score found for photo 1358129685 We are sending mail with results at report@fotonower.com args[1358129227] : ('0.06496343936151117',) no score found for photo 1358129227 We are sending mail with results at report@fotonower.com args[1358129198] : ('0.06496343936151117',) no score found for photo 1358129198 We are sending mail with results at report@fotonower.com args[1358128883] : ('0.06496343936151117',) no score found for photo 1358128883 We are sending mail with results at report@fotonower.com args[1358128838] : ('0.06496343936151117',) no score found for photo 1358128838 We are sending mail with results at report@fotonower.com args[1358128797] : ('0.06496343936151117',) no score found for photo 1358128797 We are sending mail with results at report@fotonower.com args[1358128759] : ('0.06496343936151117',) no score found for photo 1358128759 We are sending mail with results at report@fotonower.com args[1358128709] : ('0.06496343936151117',) no score found for photo 1358128709 We are sending mail with results at report@fotonower.com args[1358128654] : ('0.06496343936151117',) no score found for photo 1358128654 We are sending mail with results at report@fotonower.com args[1358128129] : ('0.06496343936151117',) no score found for photo 1358128129 We are sending mail with results at report@fotonower.com args[1358128100] : ('0.06496343936151117',) no score found for photo 1358128100 We are sending mail with results at report@fotonower.com args[1358128074] : ('0.06496343936151117',) no score found for photo 1358128074 We are sending mail with results at report@fotonower.com args[1358128018] : ('0.06496343936151117',) no score found for photo 1358128018 We are sending mail with results at report@fotonower.com args[1358127990] : ('0.06496343936151117',) no score found for photo 1358127990 We are sending mail with results at report@fotonower.com args[1358127942] : ('0.06496343936151117',) no score found for photo 1358127942 We are sending mail with results at report@fotonower.com refus_total : 0.06496343936151117 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=22953747 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_P22953747_14-05-2025_10_31_00.pdf results_Auto_P22953747_14-05-2025_10_31_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22953747_14-05-2025_10_31_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22953747','results_Auto_P22953747_14-05-2025_10_31_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22953747_14-05-2025_10_31_00.pdf','pdf','','0.29','0.06496343936151117') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22953747]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1358130212, 1358130183, 1358130159, 1358130132, 1358130104, 1358129859, 1358129833, 1358129807, 1358129761, 1358129685, 1358129227, 1358129198, 1358128883, 1358128838, 1358128797, 1358128759, 1358128709, 1358128654, 1358128129, 1358128100, 1358128074, 1358128018, 1358127990, 1358127942] map_info['map_portfolio_photo'] : {22953747: [1358130212, 1358130183, 1358130159, 1358130132, 1358130104, 1358129859, 1358129833, 1358129807, 1358129761, 1358129685, 1358129227, 1358129198, 1358128883, 1358128838, 1358128797, 1358128759, 1358128709, 1358128654, 1358128129, 1358128100, 1358128074, 1358128018, 1358127990, 1358127942, 1358127662, 1358127623, 1358127525, 1358127204, 1358127147, 1358127099, 1358127041, 1358126966, 1358126891, 1358126229, 1358126179, 1358126117, 1358126021, 1358125324, 1358125320, 1358125317, 1358125092, 1358125075, 1358125061, 1358125014, 1358124960, 1358124908, 1358124305, 1358124235, 1358124173, 1358124098, 1358124046, 1358123697, 1358123672, 1358123650, 1358123520, 1358123486, 1358123434, 1358123366, 1358123299, 1358122759, 1358122731, 1358122705, 1358122674, 1358122641, 1358121956, 1358121857, 1358121797, 1358121714]} final : False mtd_id 4302 list_pids : [1358130212, 1358130183, 1358130159, 1358130132, 1358130104, 1358129859, 1358129833, 1358129807, 1358129761, 1358129685, 1358129227, 1358129198, 1358128883, 1358128838, 1358128797, 1358128759, 1358128709, 1358128654, 1358128129, 1358128100, 1358128074, 1358128018, 1358127990, 1358127942] 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, '2846996') ('4302', '22953747', '1358130212', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358130183', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358130159', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358130132', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358130104', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358129859', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358129833', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358129807', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358129761', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358129685', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358129227', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358129198', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128883', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128838', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128797', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128759', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128709', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128654', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128129', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128100', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128074', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128018', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358127990', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358127942', None, None, None, None, None, '2846996') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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', '22953747', '1358130212', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358130183', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358130159', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358130132', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358130104', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358129859', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358129833', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358129807', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358129761', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358129685', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358129227', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358129198', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128883', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128838', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128797', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128759', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128709', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128654', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128129', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128100', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128074', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128018', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358127990', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358127942', None, None, None, None, None, '2846996')] time used for this insertion : 0.016893625259399414 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.8175201416015625 time spend to save output : 0.01725172996520996 total time spend for step 4 : 3.8347718715667725 step5:split_time_score Wed May 14 10:31:03 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 : ['22953747'] 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 : [('22953747',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22953747) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1358130132: {'path': 'temp/1747211459_2259812_1358130132_f213add3527b50aab8dee9c313b7ff82.jpg', 'extension': 'jpg'}, 1358130159: {'path': 'temp/1747211459_2259812_1358130159_64de1c707a9042116f7930ea9cb2fd87.jpg', 'extension': 'jpg'}, 1358130183: {'path': 'temp/1747211459_2259812_1358130183_6b5db26ea8a59af931c378b3217470d5.jpg', 'extension': 'jpg'}, 1358130212: {'path': 'temp/1747211459_2259812_1358130212_5667b8ccefb9c9c601d48946e9ba8516.jpg', 'extension': 'jpg'}, 1358128838: {'path': 'temp/1747211459_2259812_1358128838_82ee477807aa6eb27794f91a83bb9897.jpg', 'extension': 'jpg'}, 1358128883: {'path': 'temp/1747211459_2259812_1358128883_b49a7593ef2460b0be46c29adc526405.jpg', 'extension': 'jpg'}, 1358129198: {'path': 'temp/1747211459_2259812_1358129198_1d76e2a72a9fbd25bdbeaff5874ce192.jpg', 'extension': 'jpg'}, 1358129227: {'path': 'temp/1747211459_2259812_1358129227_842c9ef7c5ccca1d1fa4b36a659b9161.jpg', 'extension': 'jpg'}, 1358129685: {'path': 'temp/1747211459_2259812_1358129685_86b9259f747baa4491f41eb56a65236a.jpg', 'extension': 'jpg'}, 1358128129: {'path': 'temp/1747211459_2259812_1358128129_dda36279fed85ce554fa8a49359f0b21.jpg', 'extension': 'jpg'}, 1358128654: {'path': 'temp/1747211459_2259812_1358128654_d07c7d3aa50ab3fa47be7df697b424f5.jpg', 'extension': 'jpg'}, 1358128709: {'path': 'temp/1747211459_2259812_1358128709_3df0a97de106cbce6c3753581e100f95.jpg', 'extension': 'jpg'}, 1358128759: {'path': 'temp/1747211459_2259812_1358128759_c3594a653fb376c3e0cc5b10ec6e6557.jpg', 'extension': 'jpg'}, 1358128797: {'path': 'temp/1747211459_2259812_1358128797_9b06ac48a286b834b7b55179c0c3cfa7.jpg', 'extension': 'jpg'}, 1358127942: {'path': 'temp/1747211459_2259812_1358127942_1bf86e4ac4e56b29d277b804e4b196e4.jpg', 'extension': 'jpg'}, 1358127990: {'path': 'temp/1747211459_2259812_1358127990_581a4821da52a56bde69eb35cdac1cc9.jpg', 'extension': 'jpg'}, 1358128018: {'path': 'temp/1747211459_2259812_1358128018_15d9f8b1b37f057dcc3ab247e0baf7ef.jpg', 'extension': 'jpg'}, 1358128074: {'path': 'temp/1747211459_2259812_1358128074_3e8d20557c72f027f6af716b23382611.jpg', 'extension': 'jpg'}, 1358128100: {'path': 'temp/1747211459_2259812_1358128100_e0393c1fc65b3b9963e7affd2cc3d660.jpg', 'extension': 'jpg'}, 1358129761: {'path': 'temp/1747211459_2259812_1358129761_353478b0081ad3a036a78f6881163bf7.jpg', 'extension': 'jpg'}, 1358129807: {'path': 'temp/1747211459_2259812_1358129807_77ae1cb5413c1990524735c4b0274317.jpg', 'extension': 'jpg'}, 1358129833: {'path': 'temp/1747211459_2259812_1358129833_f2d8bcf7efcd978c320143b0fea3f31f.jpg', 'extension': 'jpg'}, 1358129859: {'path': 'temp/1747211459_2259812_1358129859_f50db5f0549b2865e496c875502edee8.jpg', 'extension': 'jpg'}, 1358130104: {'path': 'temp/1747211459_2259812_1358130104_bcd6b191fbaf83f361ea2996809e4ed9.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 = 22953747; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22953747 group by h (('10', 68),) 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=22953747 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 (22953747) 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 (22953747) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 14052025 22953747 Nombre de photos uploadées : 68 / 23040 (0%) 14052025 22953747 Nombre de photos taguées (types de déchets): 0 / 68 (0%) 14052025 22953747 Nombre de photos taguées (volume) : 0 / 68 (0%) [{'photo_id': 1358121956, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/015795f3ef57839dbf6e530f61ee0cdf.jpg', 'username': None, 'uploaded_at': 1747210578, 'text': 'image_14052025_10_15_04_10139.jpg'}, {'photo_id': 1358121857, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/4a3865839640c715ed97e23dca6ab828.jpg', 'username': None, 'uploaded_at': 1747210578, 'text': 'image_14052025_10_15_14_10133.jpg'}, {'photo_id': 1358121797, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/abc3cc59e45d17ab01ca8ce54930ed08.jpg', 'username': None, 'uploaded_at': 1747210578, 'text': 'image_14052025_10_15_34_9125.jpg'}, {'photo_id': 1358121714, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/14/07f3415e02fde9ddc78079ae544dfb4b.jpg', 'username': None, 'uploaded_at': 1747210563, 'text': 'image_14052025_10_15_44_10140.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ???????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002892017364501953 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22953747, '2025-05-14' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1803731,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.025112628936767578 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= 1803731 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1803731, 'dashboard_run_id': 1812475, 'mtr_portfolio_id': 22952363, 'dashboard_result_id': 10549737, '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_P22952363_14-05-2025_09_50_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22952414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22952415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22952416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22952417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22952418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22952419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22952420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22952421, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22952422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22952423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22952424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22952425, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1812475, 'mtr_portfolio_id': 22952585, 'dashboard_result_id': 10549738, '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_P22952585_14-05-2025_10_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22952589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22952590, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22952591, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22952592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22952593, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22952594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22952595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22952596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22952597, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22952598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22952599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22952600, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1812475, 'mtr_portfolio_id': 22953062, 'dashboard_result_id': 10549739, '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_P22953062_14-05-2025_10_19_11.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22953073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22953074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22953075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22953076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22953077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22953078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22953079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22953080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22953081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22953082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22953083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22953084, 'pht': 3726}}"}, {'dashboat_entry_day': 1803731, 'dashboard_run_id': 1812475, 'mtr_portfolio_id': 22953747, 'dashboard_result_id': 10549740, '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_P22953747_14-05-2025_10_26_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22953758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22953759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22953760, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22953761, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22953762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22953763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22953764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22953765, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22953766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22953767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22953768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22953769, '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 = 22952363 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': 2846724, 'mtr_portfolio_id': 22952363, 'created_at': datetime.datetime(2025, 5, 14, 9, 50, 59), 'result': '0.06624784891260392', 'result_long': None, 'result_double': None}] Qualite : 0.06624784891260392 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22952363 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22952363_14-05-2025_09_50_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22952363 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_P22952363_14-05-2025_09_50_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22952414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22952415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22952416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22952417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22952418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22952419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22952420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22952421, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22952422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22952423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22952424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22952425, 'pht': 3726}}" where mtr_portfolio_id = 22952363 and dashboard_run_id = 1812475 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`=22952363 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10549737, 0.06624784891260392, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22952363_14-05-2025_09_50_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22952414, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22952415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22952416, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22952417, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22952418, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22952419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22952420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22952421, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22952422, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22952423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22952424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22952425, '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 = 22952585 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': 2846774, 'mtr_portfolio_id': 22952585, 'created_at': datetime.datetime(2025, 5, 14, 10, 2, 58), 'result': '0.0520486217610598', 'result_long': None, 'result_double': None}] Qualite : 0.0520486217610598 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22952585 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22952585_14-05-2025_10_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22952585 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_P22952585_14-05-2025_10_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22952589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22952590, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22952591, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22952592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22952593, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22952594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22952595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22952596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22952597, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22952598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22952599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22952600, 'pht': 3726}}" where mtr_portfolio_id = 22952585 and dashboard_run_id = 1812475 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`=22952585 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10549738, 0.0520486217610598, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22952585_14-05-2025_10_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22952589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22952590, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22952591, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22952592, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22952593, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22952594, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22952595, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22952596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22952597, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22952598, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22952599, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22952600, '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 = 22953062 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': 2846910, 'mtr_portfolio_id': 22953062, 'created_at': datetime.datetime(2025, 5, 14, 10, 19, 11), 'result': '0.06011418004289322', 'result_long': None, 'result_double': None}] Qualite : 0.06011418004289322 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22953062 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22953062_14-05-2025_10_19_11.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22953062 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_P22953062_14-05-2025_10_19_11.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22953073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22953074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22953075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22953076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22953077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22953078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22953079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22953080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22953081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22953082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22953083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22953084, 'pht': 3726}}" where mtr_portfolio_id = 22953062 and dashboard_run_id = 1812475 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`=22953062 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10549739, 0.06011418004289322, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22953062_14-05-2025_10_19_11.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22953073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22953074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22953075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22953076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22953077, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22953078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22953079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22953080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22953081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22953082, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22953083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22953084, '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 = 22953747 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': 2846996, 'mtr_portfolio_id': 22953747, 'created_at': datetime.datetime(2025, 5, 14, 10, 30, 59), 'result': '0.06496343936151117', 'result_long': None, 'result_double': None}] Qualite : 0.06496343936151117 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22953747 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22953747_14-05-2025_10_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22953747 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_P22953747_14-05-2025_10_31_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22953758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22953759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22953760, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22953761, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22953762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22953763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22953764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22953765, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22953766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22953767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22953768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22953769, 'pht': 3726}}" where mtr_portfolio_id = 22953747 and dashboard_run_id = 1812475 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`=22953747 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10549740, 0.06496343936151117, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22953747_14-05-2025_10_31_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22953758, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22953759, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22953760, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22953761, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22953762, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22953763, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22953764, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22953765, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22953766, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22953767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22953768, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22953769, '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 (22952363,22952585,22953062,22953747) result : ((1358112171,), (1358112175,), (1358112179,), (1358112182,), (1358112208,), (1358112210,), (1358112212,), (1358112215,), (1358112217,), (1358112222,), (1358112246,), (1358112250,), (1358112286,), (1358112290,), (1358112293,), (1358112296,), (1358112298,), (1358112300,), (1358112324,), (1358112326,), (1358112329,), (1358112332,), (1358112335,), (1358112344,), (1358112396,), (1358112400,), (1358112404,), (1358112447,), (1358112450,), (1358112453,), (1358112456,), (1358112493,), (1358112497,), (1358112501,), (1358112508,), (1358112516,), (1358112551,), (1358112555,), (1358112825,), (1358112787,), (1358112822,), (1358112870,), (1358112878,), (1358112883,), (1358112885,), (1358112888,), (1358112920,), (1358112923,), (1358112962,), (1358112965,), (1358112968,), (1358113009,), (1358113012,), (1358113015,), (1358113018,), (1358113055,), (1358113057,), (1358113059,), (1358113084,), (1358113087,), (1358113090,), (1358113092,), (1358113095,), (1358113136,), (1358113139,), (1358113142,), (1358113178,), (1358113181,), (1358113204,), (1358113231,), (1358113260,), (1358113286,), (1358113429,), (1358113431,), (1358113463,), (1358113501,), (1358113527,), (1358114565,), (1358114617,), (1358115736,), (1358115602,), (1358115647,), (1358115677,), (1358115707,), (1358115938,), (1358115948,), (1358115951,), (1358115976,), (1358116005,), (1358116032,), (1358116390,), (1358116463,), (1358117961,), (1358118689,), (1358118693,), (1358118705,), (1358118736,), (1358118788,), (1358119180,), (1358120295,), (1358120471,), (1358120512,), (1358120516,), (1358120521,), (1358120551,), (1358120585,), (1358120820,), (1358120846,), (1358121050,), (1358121054,), (1358121058,), (1358121067,), (1358121097,), (1358121332,), (1358121335,), (1358121339,), (1358121342,), (1358121346,), (1358121453,), (1358122047,), (1358121714,), (1358121797,), (1358121857,), (1358121956,), (1358122641,), (1358122674,), (1358122705,), (1358122731,), (1358122759,), (1358123299,), (1358123366,), (1358123434,), (1358123486,), (1358123520,), (1358123650,), (1358123672,), (1358123697,), (1358124046,), (1358124098,), (1358124173,), (1358124235,), (1358124305,), (1358124908,), (1358124960,), (1358125014,), (1358125061,), (1358125075,), (1358125092,), (1358125317,), (1358125320,), (1358125324,), (1358126021,), (1358126117,), (1358126179,), (1358126229,), (1358126891,), (1358126966,), (1358127041,), (1358127099,), (1358127147,), (1358127204,), (1358127525,), (1358127623,), (1358127662,), (1358127942,), (1358127990,), (1358128018,), (1358128074,), (1358128100,), (1358128129,), (1358128654,), (1358128709,), (1358128759,), (1358128797,), (1358128838,), (1358128883,), (1358129198,), (1358129227,), (1358129685,), (1358129761,), (1358129807,), (1358129833,), (1358129859,), (1358130104,), (1358130132,), (1358130159,), (1358130183,), (1358130212,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'14052025': {'nb_upload': 68, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22953747]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1358130212, 1358130183, 1358130159, 1358130132, 1358130104, 1358129859, 1358129833, 1358129807, 1358129761, 1358129685, 1358129227, 1358129198, 1358128883, 1358128838, 1358128797, 1358128759, 1358128709, 1358128654, 1358128129, 1358128100, 1358128074, 1358128018, 1358127990, 1358127942] map_info['map_portfolio_photo'] : {22953747: [1358130212, 1358130183, 1358130159, 1358130132, 1358130104, 1358129859, 1358129833, 1358129807, 1358129761, 1358129685, 1358129227, 1358129198, 1358128883, 1358128838, 1358128797, 1358128759, 1358128709, 1358128654, 1358128129, 1358128100, 1358128074, 1358128018, 1358127990, 1358127942, 1358127662, 1358127623, 1358127525, 1358127204, 1358127147, 1358127099, 1358127041, 1358126966, 1358126891, 1358126229, 1358126179, 1358126117, 1358126021, 1358125324, 1358125320, 1358125317, 1358125092, 1358125075, 1358125061, 1358125014, 1358124960, 1358124908, 1358124305, 1358124235, 1358124173, 1358124098, 1358124046, 1358123697, 1358123672, 1358123650, 1358123520, 1358123486, 1358123434, 1358123366, 1358123299, 1358122759, 1358122731, 1358122705, 1358122674, 1358122641, 1358121956, 1358121857, 1358121797, 1358121714]} final : True mtd_id 4302 list_pids : [1358130212, 1358130183, 1358130159, 1358130132, 1358130104, 1358129859, 1358129833, 1358129807, 1358129761, 1358129685, 1358129227, 1358129198, 1358128883, 1358128838, 1358128797, 1358128759, 1358128709, 1358128654, 1358128129, 1358128100, 1358128074, 1358128018, 1358127990, 1358127942] Looping around the photos to save general results len do output : 1 /22953747Didn'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, '2846996') ('4302', '22953747', '1358130212', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358130183', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358130159', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358130132', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358130104', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358129859', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358129833', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358129807', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358129761', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358129685', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358129227', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358129198', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128883', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128838', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128797', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128759', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128709', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128654', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128129', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128100', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128074', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358128018', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358127990', None, None, None, None, None, '2846996') ('4302', None, None, None, None, None, None, None, '2846996') ('4302', '22953747', '1358127942', None, None, None, None, None, '2846996') 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', None, '22953747', 'None', None, None, None, None, '2846996'), ('4302', '22953747', '1358130212', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358130183', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358130159', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358130132', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358130104', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358129859', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358129833', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358129807', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358129761', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358129685', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358129227', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358129198', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128883', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128838', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128797', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128759', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128709', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128654', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128129', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128100', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128074', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358128018', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358127990', None, None, None, None, None, '2846996'), ('4302', '22953747', '1358127942', None, None, None, None, None, '2846996')] time used for this insertion : 0.019882917404174805 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3686676025390625 time spend to save output : 0.020255565643310547 total time spend for step 5 : 0.38892316818237305 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 (2846996) 2.63user 2.61system 0:07.94elapsed 66%CPU (0avgtext+0avgdata 169016maxresident)k 47064inputs+18664outputs (189major+78501minor)pagefaults 0swaps