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 : 1385634 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 (2658485) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2658485) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21290771 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2658485'] with mtr_portfolio_ids : ['21290771'] and first list_photo_ids : [] new path : /proc/1385634/ Name: python3 Umask: 0002 State: R (running) Tgid: 1385634 Ngid: 0 Pid: 1385634 PPid: 1385633 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1385634 NSpid: 1385634 NSpgid: 1382351 NSsid: 1382351 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98772 kB VmRSS: 98772 kB RssAnon: 59752 kB RssFile: 39020 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 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: 53 nonvoluntary_ctxt_switches: 213 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1385634', 'Ngid': '0', 'Pid': '1385634', 'PPid': '1385633', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1385634', 'NSpid': '1385634', 'NSpgid': '1382351', 'NSsid': '1382351', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98772 kB', 'VmRSS': '98772 kB', 'RssAnon': '59752 kB', 'RssFile': '39020 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 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': '53', 'nonvoluntary_ctxt_switches': '213'} ('datou_batch_current', '1385634', '1106844', '0', '1106844', '865592', '98772', b'', 'marlene', '2658485') 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 (21290771) 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 (2658485 ) ) 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 (21290771) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1343065158, 'portfolio_id': 21290771}, {'photo_id': 1343065117, 'portfolio_id': 21290771}, {'photo_id': 1343065091, 'portfolio_id': 21290771}, {'photo_id': 1343065066, 'portfolio_id': 21290771}, {'photo_id': 1343065031, 'portfolio_id': 21290771}, {'photo_id': 1343064910, 'portfolio_id': 21290771}, {'photo_id': 1343064900, 'portfolio_id': 21290771}, {'photo_id': 1343064890, 'portfolio_id': 21290771}, {'photo_id': 1343064863, 'portfolio_id': 21290771}, {'photo_id': 1343064763, 'portfolio_id': 21290771}, {'photo_id': 1343064742, 'portfolio_id': 21290771}, {'photo_id': 1343064709, 'portfolio_id': 21290771}, {'photo_id': 1343064694, 'portfolio_id': 21290771}, {'photo_id': 1343064681, 'portfolio_id': 21290771}, {'photo_id': 1343064659, 'portfolio_id': 21290771}, {'photo_id': 1343064421, 'portfolio_id': 21290771}, {'photo_id': 1343064409, 'portfolio_id': 21290771}, {'photo_id': 1343064378, 'portfolio_id': 21290771}, {'photo_id': 1343064344, 'portfolio_id': 21290771}, {'photo_id': 1343064078, 'portfolio_id': 21290771}, {'photo_id': 1343064054, 'portfolio_id': 21290771}, {'photo_id': 1343064034, 'portfolio_id': 21290771}, {'photo_id': 1343064010, 'portfolio_id': 21290771}, {'photo_id': 1343063986, 'portfolio_id': 21290771}, {'photo_id': 1343063979, 'portfolio_id': 21290771}, {'photo_id': 1343063939, 'portfolio_id': 21290771}, {'photo_id': 1343063915, 'portfolio_id': 21290771}, {'photo_id': 1343063892, 'portfolio_id': 21290771}, {'photo_id': 1343063859, 'portfolio_id': 21290771}, {'photo_id': 1343063730, 'portfolio_id': 21290771}, {'photo_id': 1343063682, 'portfolio_id': 21290771}, {'photo_id': 1343063643, 'portfolio_id': 21290771}, {'photo_id': 1343063602, 'portfolio_id': 21290771}, {'photo_id': 1343063455, 'portfolio_id': 21290771}, {'photo_id': 1343063401, 'portfolio_id': 21290771}, {'photo_id': 1343063342, 'portfolio_id': 21290771}, {'photo_id': 1343063283, 'portfolio_id': 21290771}, {'photo_id': 1343063189, 'portfolio_id': 21290771}, {'photo_id': 1343063132, 'portfolio_id': 21290771}, {'photo_id': 1343063129, 'portfolio_id': 21290771}, {'photo_id': 1343063083, 'portfolio_id': 21290771}, {'photo_id': 1343062745, 'portfolio_id': 21290771}, {'photo_id': 1343062700, 'portfolio_id': 21290771}, {'photo_id': 1343062668, 'portfolio_id': 21290771}, {'photo_id': 1343062293, 'portfolio_id': 21290771}, {'photo_id': 1343062253, 'portfolio_id': 21290771}, {'photo_id': 1343062216, 'portfolio_id': 21290771}, {'photo_id': 1343062106, 'portfolio_id': 21290771}, {'photo_id': 1343062025, 'portfolio_id': 21290771}, {'photo_id': 1343061762, 'portfolio_id': 21290771}, {'photo_id': 1343061741, 'portfolio_id': 21290771}, {'photo_id': 1343061707, 'portfolio_id': 21290771}, {'photo_id': 1343061679, 'portfolio_id': 21290771}, {'photo_id': 1343061621, 'portfolio_id': 21290771}, {'photo_id': 1343061360, 'portfolio_id': 21290771}, {'photo_id': 1343061355, 'portfolio_id': 21290771}, {'photo_id': 1343061337, 'portfolio_id': 21290771}, {'photo_id': 1343061319, 'portfolio_id': 21290771}, {'photo_id': 1343061301, 'portfolio_id': 21290771}, {'photo_id': 1343060887, 'portfolio_id': 21290771}, {'photo_id': 1343060834, 'portfolio_id': 21290771}, {'photo_id': 1343060742, 'portfolio_id': 21290771}, {'photo_id': 1343060684, 'portfolio_id': 21290771}, {'photo_id': 1343060628, 'portfolio_id': 21290771}, {'photo_id': 1343060576, 'portfolio_id': 21290771}, {'photo_id': 1343060293, 'portfolio_id': 21290771}, {'photo_id': 1343060242, 'portfolio_id': 21290771}, {'photo_id': 1343060178, 'portfolio_id': 21290771}, {'photo_id': 1343060099, 'portfolio_id': 21290771}, {'photo_id': 1343059718, 'portfolio_id': 21290771}, {'photo_id': 1343059672, 'portfolio_id': 21290771}, {'photo_id': 1343059615, 'portfolio_id': 21290771}, {'photo_id': 1343059562, 'portfolio_id': 21290771}, {'photo_id': 1343059518, 'portfolio_id': 21290771}, {'photo_id': 1343059479, 'portfolio_id': 21290771}, {'photo_id': 1343059352, 'portfolio_id': 21290771}, {'photo_id': 1343059342, 'portfolio_id': 21290771}, {'photo_id': 1343059320, 'portfolio_id': 21290771}, {'photo_id': 1343059294, 'portfolio_id': 21290771}] map_portfolio_id_photo_id: {21290771: [1343065158, 1343065117, 1343065091, 1343065066, 1343065031, 1343064910, 1343064900, 1343064890, 1343064863, 1343064763, 1343064742, 1343064709, 1343064694, 1343064681, 1343064659, 1343064421, 1343064409, 1343064378, 1343064344, 1343064078, 1343064054, 1343064034, 1343064010, 1343063986, 1343063979, 1343063939, 1343063915, 1343063892, 1343063859, 1343063730, 1343063682, 1343063643, 1343063602, 1343063455, 1343063401, 1343063342, 1343063283, 1343063189, 1343063132, 1343063129, 1343063083, 1343062745, 1343062700, 1343062668, 1343062293, 1343062253, 1343062216, 1343062106, 1343062025, 1343061762, 1343061741, 1343061707, 1343061679, 1343061621, 1343061360, 1343061355, 1343061337, 1343061319, 1343061301, 1343060887, 1343060834, 1343060742, 1343060684, 1343060628, 1343060576, 1343060293, 1343060242, 1343060178, 1343060099, 1343059718, 1343059672, 1343059615, 1343059562, 1343059518, 1343059479, 1343059352, 1343059342, 1343059320, 1343059294]} ##### 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.015663623809814453 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Mar 11 15:16: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 (21290771) 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 : 21290771 get user id for portfolio 21290771 get sub ptf for main ptf 21290771, type 3726 and hashtags ['plastique', 'flou', 'Teint_Dans_La_Masse', 'Carton_brun', 'environnement', 'metal', 'autre_refus', 'cartonnette', 'kraft', 'mal_croppe', 'papier', 'Carton_gris'] 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`=21290771 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','flou','Teint_Dans_La_Masse','Carton_brun','environnement','metal','autre_refus','cartonnette','kraft','mal_croppe','papier','Carton_gris')) 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`=21290771 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','flou','Teint_Dans_La_Masse','Carton_brun','environnement','metal','autre_refus','cartonnette','kraft','mal_croppe','papier','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21290771, 'sub_port_id': 21290832, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13876207, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 5, 58)}, 'Carton_brun': {'main_port_id': 21290771, 'sub_port_id': 21290833, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13876208, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 5, 58)}, 'autre_refus': {'main_port_id': 21290771, 'sub_port_id': 21290834, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13876209, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 5, 58)}, 'plastique': {'main_port_id': 21290771, 'sub_port_id': 21290835, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13876210, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 5, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21290771, 'sub_port_id': 21290836, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13876211, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 5, 58)}, 'mal_croppe': {'main_port_id': 21290771, 'sub_port_id': 21290837, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13876212, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 5, 58)}, 'kraft': {'main_port_id': 21290771, 'sub_port_id': 21290838, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13876213, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 5, 58)}, 'flou': {'main_port_id': 21290771, 'sub_port_id': 21290839, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13876214, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 5, 58)}, 'papier': {'main_port_id': 21290771, 'sub_port_id': 21290840, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13876215, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 5, 58)}, 'cartonnette': {'main_port_id': 21290771, 'sub_port_id': 21290841, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13876216, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 5, 58)}, 'metal': {'main_port_id': 21290771, 'sub_port_id': 21290842, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13876217, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 5, 58)}, 'environnement': {'main_port_id': 21290771, 'sub_port_id': 21290843, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13876218, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 5, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21290832 , 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=21290771 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 (21290832) result : ((1343061558,), (1343061559,), (1343061671,), (1343061672,), (1343063282,), (1343063583,), (1343063687,), (1343063935,), (1343063936,), (1343063937,), (1343063938,), (1343064377,), (1343064385,), (1343064386,), (1343064434,), (1343064436,), (1343064437,), (1343064438,), (1343064859,), (1343065321,), (1343065323,), (1343065325,), (1343065327,), (1343065329,), (1343065331,), (1343065716,), (1343065719,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21290771) result : ((1343059294,), (1343059320,), (1343059342,), (1343059352,), (1343059479,), (1343059518,), (1343059562,), (1343059615,), (1343059672,), (1343059718,), (1343060099,), (1343060178,), (1343060242,), (1343060293,), (1343060576,), (1343060628,), (1343060684,), (1343060742,), (1343060834,), (1343060887,), (1343061301,), (1343061319,), (1343061337,), (1343061355,), (1343061360,), (1343061621,), (1343061679,), (1343061707,), (1343061741,), (1343061762,), (1343062025,), (1343062106,), (1343062216,), (1343062253,), (1343062293,), (1343062668,), (1343062700,), (1343062745,), (1343063083,), (1343063129,), (1343063132,), (1343063189,), (1343063283,), (1343063342,), (1343063401,), (1343063455,), (1343063602,), (1343063643,), (1343063682,), (1343063730,), (1343063859,), (1343063892,), (1343063915,), (1343063939,), (1343063979,), (1343063986,), (1343064010,), (1343064034,), (1343064054,), (1343064078,), (1343064344,), (1343064378,), (1343064409,), (1343064421,), (1343064659,), (1343064681,), (1343064694,), (1343064709,), (1343064742,), (1343064763,), (1343064863,), (1343064890,), (1343064900,), (1343064910,), (1343065031,), (1343065066,), (1343065091,), (1343065117,), (1343065158,)) 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 (1343062700,1343064900) 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 21290833 , 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=21290771 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 (21290833) result : ((1343061584,), (1343061588,), (1343061589,), (1343061590,), (1343063599,), (1343063943,), (1343063944,), (1343064443,), (1343064444,), (1343064804,), (1343065733,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21290771) result : ((1343059294,), (1343059320,), (1343059342,), (1343059352,), (1343059479,), (1343059518,), (1343059562,), (1343059615,), (1343059672,), (1343059718,), (1343060099,), (1343060178,), (1343060242,), (1343060293,), (1343060576,), (1343060628,), (1343060684,), (1343060742,), (1343060834,), (1343060887,), (1343061301,), (1343061319,), (1343061337,), (1343061355,), (1343061360,), (1343061621,), (1343061679,), (1343061707,), (1343061741,), (1343061762,), (1343062025,), (1343062106,), (1343062216,), (1343062253,), (1343062293,), (1343062668,), (1343062700,), (1343062745,), (1343063083,), (1343063129,), (1343063132,), (1343063189,), (1343063283,), (1343063342,), (1343063401,), (1343063455,), (1343063602,), (1343063643,), (1343063682,), (1343063730,), (1343063859,), (1343063892,), (1343063915,), (1343063939,), (1343063979,), (1343063986,), (1343064010,), (1343064034,), (1343064054,), (1343064078,), (1343064344,), (1343064378,), (1343064409,), (1343064421,), (1343064659,), (1343064681,), (1343064694,), (1343064709,), (1343064742,), (1343064763,), (1343064863,), (1343064890,), (1343064900,), (1343064910,), (1343065031,), (1343065066,), (1343065091,), (1343065117,), (1343065158,)) 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 (1343062700,1343064900) 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 21290834 , 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=21290771 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 (21290834) result : ((1343061535,), (1343061536,), (1343061651,), (1343061653,), (1343063261,), (1343063262,), (1343063264,), (1343063266,), (1343063570,), (1343063659,), (1343063662,), (1343063666,), (1343063669,), (1343063920,), (1343063922,), (1343063923,), (1343063924,), (1343064361,), (1343064362,), (1343064363,), (1343064429,), (1343064430,), (1343064431,), (1343064432,), (1343064795,), (1343064796,), (1343064797,), (1343064851,), (1343064852,), (1343064855,), (1343065291,), (1343065294,), (1343065298,), (1343065300,), (1343065302,), (1343065304,), (1343065306,), (1343065309,), (1343065704,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21290771) result : ((1343059294,), (1343059320,), (1343059342,), (1343059352,), (1343059479,), (1343059518,), (1343059562,), (1343059615,), (1343059672,), (1343059718,), (1343060099,), (1343060178,), (1343060242,), (1343060293,), (1343060576,), (1343060628,), (1343060684,), (1343060742,), (1343060834,), (1343060887,), (1343061301,), (1343061319,), (1343061337,), (1343061355,), (1343061360,), (1343061621,), (1343061679,), (1343061707,), (1343061741,), (1343061762,), (1343062025,), (1343062106,), (1343062216,), (1343062253,), (1343062293,), (1343062668,), (1343062700,), (1343062745,), (1343063083,), (1343063129,), (1343063132,), (1343063189,), (1343063283,), (1343063342,), (1343063401,), (1343063455,), (1343063602,), (1343063643,), (1343063682,), (1343063730,), (1343063859,), (1343063892,), (1343063915,), (1343063939,), (1343063979,), (1343063986,), (1343064010,), (1343064034,), (1343064054,), (1343064078,), (1343064344,), (1343064378,), (1343064409,), (1343064421,), (1343064659,), (1343064681,), (1343064694,), (1343064709,), (1343064742,), (1343064763,), (1343064863,), (1343064890,), (1343064900,), (1343064910,), (1343065031,), (1343065066,), (1343065091,), (1343065117,), (1343065158,)) 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 (1343062700,1343064900) 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 21290835 , 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=21290771 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 (21290835) result : ((1343061681,), (1343063715,), (1343064810,), (1343064813,), (1343064868,), (1343064869,), (1343065742,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21290771) result : ((1343059294,), (1343059320,), (1343059342,), (1343059352,), (1343059479,), (1343059518,), (1343059562,), (1343059615,), (1343059672,), (1343059718,), (1343060099,), (1343060178,), (1343060242,), (1343060293,), (1343060576,), (1343060628,), (1343060684,), (1343060742,), (1343060834,), (1343060887,), (1343061301,), (1343061319,), (1343061337,), (1343061355,), (1343061360,), (1343061621,), (1343061679,), (1343061707,), (1343061741,), (1343061762,), (1343062025,), (1343062106,), (1343062216,), (1343062253,), (1343062293,), (1343062668,), (1343062700,), (1343062745,), (1343063083,), (1343063129,), (1343063132,), (1343063189,), (1343063283,), (1343063342,), (1343063401,), (1343063455,), (1343063602,), (1343063643,), (1343063682,), (1343063730,), (1343063859,), (1343063892,), (1343063915,), (1343063939,), (1343063979,), (1343063986,), (1343064010,), (1343064034,), (1343064054,), (1343064078,), (1343064344,), (1343064378,), (1343064409,), (1343064421,), (1343064659,), (1343064681,), (1343064694,), (1343064709,), (1343064742,), (1343064763,), (1343064863,), (1343064890,), (1343064900,), (1343064910,), (1343065031,), (1343065066,), (1343065091,), (1343065117,), (1343065158,)) 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 (1343062700,1343064900) 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 21290836 , 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=21290771 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 (21290836) result : ((1343063555,), (1343063639,), (1343063904,), (1343063905,), (1343064422,), (1343064424,), (1343064426,), (1343064847,), (1343064848,), (1343064849,), (1343064850,), (1343065277,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21290771) result : ((1343059294,), (1343059320,), (1343059342,), (1343059352,), (1343059479,), (1343059518,), (1343059562,), (1343059615,), (1343059672,), (1343059718,), (1343060099,), (1343060178,), (1343060242,), (1343060293,), (1343060576,), (1343060628,), (1343060684,), (1343060742,), (1343060834,), (1343060887,), (1343061301,), (1343061319,), (1343061337,), (1343061355,), (1343061360,), (1343061621,), (1343061679,), (1343061707,), (1343061741,), (1343061762,), (1343062025,), (1343062106,), (1343062216,), (1343062253,), (1343062293,), (1343062668,), (1343062700,), (1343062745,), (1343063083,), (1343063129,), (1343063132,), (1343063189,), (1343063283,), (1343063342,), (1343063401,), (1343063455,), (1343063602,), (1343063643,), (1343063682,), (1343063730,), (1343063859,), (1343063892,), (1343063915,), (1343063939,), (1343063979,), (1343063986,), (1343064010,), (1343064034,), (1343064054,), (1343064078,), (1343064344,), (1343064378,), (1343064409,), (1343064421,), (1343064659,), (1343064681,), (1343064694,), (1343064709,), (1343064742,), (1343064763,), (1343064863,), (1343064890,), (1343064900,), (1343064910,), (1343065031,), (1343065066,), (1343065091,), (1343065117,), (1343065158,)) 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 (1343062700,1343064900) 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 21290837 , 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=21290771 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 (21290837) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21290771) result : ((1343059294,), (1343059320,), (1343059342,), (1343059352,), (1343059479,), (1343059518,), (1343059562,), (1343059615,), (1343059672,), (1343059718,), (1343060099,), (1343060178,), (1343060242,), (1343060293,), (1343060576,), (1343060628,), (1343060684,), (1343060742,), (1343060834,), (1343060887,), (1343061301,), (1343061319,), (1343061337,), (1343061355,), (1343061360,), (1343061621,), (1343061679,), (1343061707,), (1343061741,), (1343061762,), (1343062025,), (1343062106,), (1343062216,), (1343062253,), (1343062293,), (1343062668,), (1343062700,), (1343062745,), (1343063083,), (1343063129,), (1343063132,), (1343063189,), (1343063283,), (1343063342,), (1343063401,), (1343063455,), (1343063602,), (1343063643,), (1343063682,), (1343063730,), (1343063859,), (1343063892,), (1343063915,), (1343063939,), (1343063979,), (1343063986,), (1343064010,), (1343064034,), (1343064054,), (1343064078,), (1343064344,), (1343064378,), (1343064409,), (1343064421,), (1343064659,), (1343064681,), (1343064694,), (1343064709,), (1343064742,), (1343064763,), (1343064863,), (1343064890,), (1343064900,), (1343064910,), (1343065031,), (1343065066,), (1343065091,), (1343065117,), (1343065158,)) 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 (1343062700,1343064900) 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 21290838 , 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=21290771 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 (21290838) result : ((1343061686,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21290771) result : ((1343059294,), (1343059320,), (1343059342,), (1343059352,), (1343059479,), (1343059518,), (1343059562,), (1343059615,), (1343059672,), (1343059718,), (1343060099,), (1343060178,), (1343060242,), (1343060293,), (1343060576,), (1343060628,), (1343060684,), (1343060742,), (1343060834,), (1343060887,), (1343061301,), (1343061319,), (1343061337,), (1343061355,), (1343061360,), (1343061621,), (1343061679,), (1343061707,), (1343061741,), (1343061762,), (1343062025,), (1343062106,), (1343062216,), (1343062253,), (1343062293,), (1343062668,), (1343062700,), (1343062745,), (1343063083,), (1343063129,), (1343063132,), (1343063189,), (1343063283,), (1343063342,), (1343063401,), (1343063455,), (1343063602,), (1343063643,), (1343063682,), (1343063730,), (1343063859,), (1343063892,), (1343063915,), (1343063939,), (1343063979,), (1343063986,), (1343064010,), (1343064034,), (1343064054,), (1343064078,), (1343064344,), (1343064378,), (1343064409,), (1343064421,), (1343064659,), (1343064681,), (1343064694,), (1343064709,), (1343064742,), (1343064763,), (1343064863,), (1343064890,), (1343064900,), (1343064910,), (1343065031,), (1343065066,), (1343065091,), (1343065117,), (1343065158,)) 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 (1343062700,1343064900) 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 21290839 , 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=21290771 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 (21290839) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21290771) result : ((1343059294,), (1343059320,), (1343059342,), (1343059352,), (1343059479,), (1343059518,), (1343059562,), (1343059615,), (1343059672,), (1343059718,), (1343060099,), (1343060178,), (1343060242,), (1343060293,), (1343060576,), (1343060628,), (1343060684,), (1343060742,), (1343060834,), (1343060887,), (1343061301,), (1343061319,), (1343061337,), (1343061355,), (1343061360,), (1343061621,), (1343061679,), (1343061707,), (1343061741,), (1343061762,), (1343062025,), (1343062106,), (1343062216,), (1343062253,), (1343062293,), (1343062668,), (1343062700,), (1343062745,), (1343063083,), (1343063129,), (1343063132,), (1343063189,), (1343063283,), (1343063342,), (1343063401,), (1343063455,), (1343063602,), (1343063643,), (1343063682,), (1343063730,), (1343063859,), (1343063892,), (1343063915,), (1343063939,), (1343063979,), (1343063986,), (1343064010,), (1343064034,), (1343064054,), (1343064078,), (1343064344,), (1343064378,), (1343064409,), (1343064421,), (1343064659,), (1343064681,), (1343064694,), (1343064709,), (1343064742,), (1343064763,), (1343064863,), (1343064890,), (1343064900,), (1343064910,), (1343065031,), (1343065066,), (1343065091,), (1343065117,), (1343065158,)) 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 (1343062700,1343064900) 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 21290840 , 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=21290771 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 (21290840) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21290771) result : ((1343059294,), (1343059320,), (1343059342,), (1343059352,), (1343059479,), (1343059518,), (1343059562,), (1343059615,), (1343059672,), (1343059718,), (1343060099,), (1343060178,), (1343060242,), (1343060293,), (1343060576,), (1343060628,), (1343060684,), (1343060742,), (1343060834,), (1343060887,), (1343061301,), (1343061319,), (1343061337,), (1343061355,), (1343061360,), (1343061621,), (1343061679,), (1343061707,), (1343061741,), (1343061762,), (1343062025,), (1343062106,), (1343062216,), (1343062253,), (1343062293,), (1343062668,), (1343062700,), (1343062745,), (1343063083,), (1343063129,), (1343063132,), (1343063189,), (1343063283,), (1343063342,), (1343063401,), (1343063455,), (1343063602,), (1343063643,), (1343063682,), (1343063730,), (1343063859,), (1343063892,), (1343063915,), (1343063939,), (1343063979,), (1343063986,), (1343064010,), (1343064034,), (1343064054,), (1343064078,), (1343064344,), (1343064378,), (1343064409,), (1343064421,), (1343064659,), (1343064681,), (1343064694,), (1343064709,), (1343064742,), (1343064763,), (1343064863,), (1343064890,), (1343064900,), (1343064910,), (1343065031,), (1343065066,), (1343065091,), (1343065117,), (1343065158,)) 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 (1343062700,1343064900) 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 21290841 , 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=21290771 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 (21290841) result : ((1343061570,), (1343063295,), (1343063296,), (1343063297,), (1343063593,), (1343063701,), (1343063941,), (1343064440,), (1343065338,), (1343065339,), (1343065344,), (1343065347,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21290771) result : ((1343059294,), (1343059320,), (1343059342,), (1343059352,), (1343059479,), (1343059518,), (1343059562,), (1343059615,), (1343059672,), (1343059718,), (1343060099,), (1343060178,), (1343060242,), (1343060293,), (1343060576,), (1343060628,), (1343060684,), (1343060742,), (1343060834,), (1343060887,), (1343061301,), (1343061319,), (1343061337,), (1343061355,), (1343061360,), (1343061621,), (1343061679,), (1343061707,), (1343061741,), (1343061762,), (1343062025,), (1343062106,), (1343062216,), (1343062253,), (1343062293,), (1343062668,), (1343062700,), (1343062745,), (1343063083,), (1343063129,), (1343063132,), (1343063189,), (1343063283,), (1343063342,), (1343063401,), (1343063455,), (1343063602,), (1343063643,), (1343063682,), (1343063730,), (1343063859,), (1343063892,), (1343063915,), (1343063939,), (1343063979,), (1343063986,), (1343064010,), (1343064034,), (1343064054,), (1343064078,), (1343064344,), (1343064378,), (1343064409,), (1343064421,), (1343064659,), (1343064681,), (1343064694,), (1343064709,), (1343064742,), (1343064763,), (1343064863,), (1343064890,), (1343064900,), (1343064910,), (1343065031,), (1343065066,), (1343065091,), (1343065117,), (1343065158,)) 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 (1343062700,1343064900) 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 21290842 , 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=21290771 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 (21290842) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21290771) result : ((1343059294,), (1343059320,), (1343059342,), (1343059352,), (1343059479,), (1343059518,), (1343059562,), (1343059615,), (1343059672,), (1343059718,), (1343060099,), (1343060178,), (1343060242,), (1343060293,), (1343060576,), (1343060628,), (1343060684,), (1343060742,), (1343060834,), (1343060887,), (1343061301,), (1343061319,), (1343061337,), (1343061355,), (1343061360,), (1343061621,), (1343061679,), (1343061707,), (1343061741,), (1343061762,), (1343062025,), (1343062106,), (1343062216,), (1343062253,), (1343062293,), (1343062668,), (1343062700,), (1343062745,), (1343063083,), (1343063129,), (1343063132,), (1343063189,), (1343063283,), (1343063342,), (1343063401,), (1343063455,), (1343063602,), (1343063643,), (1343063682,), (1343063730,), (1343063859,), (1343063892,), (1343063915,), (1343063939,), (1343063979,), (1343063986,), (1343064010,), (1343064034,), (1343064054,), (1343064078,), (1343064344,), (1343064378,), (1343064409,), (1343064421,), (1343064659,), (1343064681,), (1343064694,), (1343064709,), (1343064742,), (1343064763,), (1343064863,), (1343064890,), (1343064900,), (1343064910,), (1343065031,), (1343065066,), (1343065091,), (1343065117,), (1343065158,)) 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 (1343062700,1343064900) 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 21290843 , 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=21290771 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 (21290843) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21290771) result : ((1343059294,), (1343059320,), (1343059342,), (1343059352,), (1343059479,), (1343059518,), (1343059562,), (1343059615,), (1343059672,), (1343059718,), (1343060099,), (1343060178,), (1343060242,), (1343060293,), (1343060576,), (1343060628,), (1343060684,), (1343060742,), (1343060834,), (1343060887,), (1343061301,), (1343061319,), (1343061337,), (1343061355,), (1343061360,), (1343061621,), (1343061679,), (1343061707,), (1343061741,), (1343061762,), (1343062025,), (1343062106,), (1343062216,), (1343062253,), (1343062293,), (1343062668,), (1343062700,), (1343062745,), (1343063083,), (1343063129,), (1343063132,), (1343063189,), (1343063283,), (1343063342,), (1343063401,), (1343063455,), (1343063602,), (1343063643,), (1343063682,), (1343063730,), (1343063859,), (1343063892,), (1343063915,), (1343063939,), (1343063979,), (1343063986,), (1343064010,), (1343064034,), (1343064054,), (1343064078,), (1343064344,), (1343064378,), (1343064409,), (1343064421,), (1343064659,), (1343064681,), (1343064694,), (1343064709,), (1343064742,), (1343064763,), (1343064863,), (1343064890,), (1343064900,), (1343064910,), (1343065031,), (1343065066,), (1343065091,), (1343065117,), (1343065158,)) 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 (1343062700,1343064900) 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`=21290771 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','flou','Teint_Dans_La_Masse','Carton_brun','environnement','metal','autre_refus','cartonnette','kraft','mal_croppe','papier','Carton_gris')) 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`=21290771 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','flou','Teint_Dans_La_Masse','Carton_brun','environnement','metal','autre_refus','cartonnette','kraft','mal_croppe','papier','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 21290771, 'sub_port_id': 21290844, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13876219, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 5, 59)}, 'Carton_brun': {'main_port_id': 21290771, 'sub_port_id': 21290845, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13876220, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 5, 59)}, 'autre_refus': {'main_port_id': 21290771, 'sub_port_id': 21290846, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13876221, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 5, 59)}, 'plastique': {'main_port_id': 21290771, 'sub_port_id': 21290847, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13876222, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 5, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21290771, 'sub_port_id': 21290848, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13876223, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 5, 59)}, 'mal_croppe': {'main_port_id': 21290771, 'sub_port_id': 21290849, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13876224, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 5, 59)}, 'kraft': {'main_port_id': 21290771, 'sub_port_id': 21290850, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13876225, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 5, 59)}, 'flou': {'main_port_id': 21290771, 'sub_port_id': 21290851, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13876226, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 5, 59)}, 'papier': {'main_port_id': 21290771, 'sub_port_id': 21290852, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13876227, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 5, 59)}, 'cartonnette': {'main_port_id': 21290771, 'sub_port_id': 21290853, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13876228, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 5, 59)}, 'metal': {'main_port_id': 21290771, 'sub_port_id': 21290854, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13876229, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 5, 59)}, 'environnement': {'main_port_id': 21290771, 'sub_port_id': 21290855, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13876230, 'last_updated_at': datetime.datetime(2025, 3, 11, 15, 12, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 11, 15, 12, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 11, 15, 5, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21290844,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21290832 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21290845,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21290833 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21290846,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21290834 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21290847,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21290835 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21290848,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21290836 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21290849,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21290837 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21290850,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21290838 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21290851,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21290839 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21290852,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21290840 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21290853,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21290841 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21290854,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21290842 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21290855,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21290843 lien utilise dans velours : https://www.fotonower.com/velours/21290844,21290845,21290846,21290847,21290848,21290849,21290850,21290851,21290852,21290853,21290854,21290855?tags=Carton_gris,Carton_brun,autre_refus,plastique,Teint_Dans_La_Masse,mal_croppe,kraft,flou,papier,cartonnette,metal,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21290771]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1343065158, 1343065117, 1343065091, 1343065066, 1343065031, 1343064910, 1343064900, 1343064890, 1343064863, 1343064763, 1343064742, 1343064709, 1343064694, 1343064681, 1343064659, 1343064421, 1343064409, 1343064378, 1343064344] map_info['map_portfolio_photo'] : {21290771: [1343065158, 1343065117, 1343065091, 1343065066, 1343065031, 1343064910, 1343064900, 1343064890, 1343064863, 1343064763, 1343064742, 1343064709, 1343064694, 1343064681, 1343064659, 1343064421, 1343064409, 1343064378, 1343064344, 1343064078, 1343064054, 1343064034, 1343064010, 1343063986, 1343063979, 1343063939, 1343063915, 1343063892, 1343063859, 1343063730, 1343063682, 1343063643, 1343063602, 1343063455, 1343063401, 1343063342, 1343063283, 1343063189, 1343063132, 1343063129, 1343063083, 1343062745, 1343062700, 1343062668, 1343062293, 1343062253, 1343062216, 1343062106, 1343062025, 1343061762, 1343061741, 1343061707, 1343061679, 1343061621, 1343061360, 1343061355, 1343061337, 1343061319, 1343061301, 1343060887, 1343060834, 1343060742, 1343060684, 1343060628, 1343060576, 1343060293, 1343060242, 1343060178, 1343060099, 1343059718, 1343059672, 1343059615, 1343059562, 1343059518, 1343059479, 1343059352, 1343059342, 1343059320, 1343059294]} final : False mtd_id 4302 list_pids : [1343065158, 1343065117, 1343065091, 1343065066, 1343065031, 1343064910, 1343064900, 1343064890, 1343064863, 1343064763, 1343064742, 1343064709, 1343064694, 1343064681, 1343064659, 1343064421, 1343064409, 1343064378, 1343064344] Looping around the photos to save general results len do output : 1 /21290771. 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, '2658485') ('4302', '21290771', '1343065158', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343065117', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343065091', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343065066', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343065031', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064910', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064900', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064890', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064863', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064763', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064742', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064709', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064694', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064681', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064659', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064421', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064409', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064378', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064344', None, None, None, None, None, '2658485') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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, '21290771', "{'Carton_gris': 21290832, 'Carton_brun': 21290833, 'autre_refus': 21290834, 'plastique': 21290835, 'Teint_Dans_La_Masse': 21290836, 'mal_croppe': 21290837, 'kraft': 21290838, 'flou': 21290839, 'papier': 21290840, 'cartonnette': 21290841, 'metal': 21290842, 'environnement': 21290843}", None, None, None, None, '2658485'), ('4302', '21290771', '1343065158', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343065117', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343065091', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343065066', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343065031', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064910', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064900', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064890', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064863', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064763', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064742', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064709', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064694', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064681', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064659', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064421', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064409', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064378', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064344', None, None, None, None, None, '2658485')] time used for this insertion : 0.01564764976501465 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5142834186553955 time spend to save output : 0.016011953353881836 total time spend for step 1 : 0.5302953720092773 step2:final Tue Mar 11 15:16: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 (21290771) 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 21290771 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1343059352,1343059342,1343059320,1343059294,1343059718,1343059672,1343059615,1343059562,1343059518,1343059479,1343060293,1343060242,1343060178,1343060099,1343060887,1343060834,1343060742,1343060684,1343060628,1343060576,1343061360,1343061355,1343061337,1343061319,1343061301,1343061762,1343061741,1343061707,1343061679,1343061621,1343062293,1343062253,1343062216,1343062106,1343062025,1343063730,1343063132,1343063083,1343063682,1343062745,1343063643,1343062700,1343063602,1343063455,1343062668,1343063401,1343063342,1343063283,1343063189,1343063129,1343063939,1343063915,1343063892,1343063859,1343064078,1343064054,1343064034,1343064010,1343063986,1343063979,1343064421,1343064409,1343064378,1343064344,1343064763,1343064742,1343064709,1343064694,1343064681,1343064659,1343064910,1343064900,1343064890,1343064863,1343065158,1343065117,1343065091,1343065066,1343065031); 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([21290771]) Inside saveOutput : final : False verbose : True original output for save of step final : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ('0.0842144573977629',), 1343064659: ('0.0842144573977629',), 1343064421: ('0.0842144573977629',), 1343064409: ('0.0842144573977629',), 1343064378: ('0.0842144573977629',), 1343064344: ('0.0842144573977629',)} new output for save of step final : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ('0.0842144573977629',), 1343064659: ('0.0842144573977629',), 1343064421: ('0.0842144573977629',), 1343064409: ('0.0842144573977629',), 1343064378: ('0.0842144573977629',), 1343064344: ('0.0842144573977629',)} [1343065158, 1343065117, 1343065091, 1343065066, 1343065031, 1343064910, 1343064900, 1343064890, 1343064863, 1343064763, 1343064742, 1343064709, 1343064694, 1343064681, 1343064659, 1343064421, 1343064409, 1343064378, 1343064344] map_info['map_portfolio_photo'] : {21290771: [1343065158, 1343065117, 1343065091, 1343065066, 1343065031, 1343064910, 1343064900, 1343064890, 1343064863, 1343064763, 1343064742, 1343064709, 1343064694, 1343064681, 1343064659, 1343064421, 1343064409, 1343064378, 1343064344, 1343064078, 1343064054, 1343064034, 1343064010, 1343063986, 1343063979, 1343063939, 1343063915, 1343063892, 1343063859, 1343063730, 1343063682, 1343063643, 1343063602, 1343063455, 1343063401, 1343063342, 1343063283, 1343063189, 1343063132, 1343063129, 1343063083, 1343062745, 1343062700, 1343062668, 1343062293, 1343062253, 1343062216, 1343062106, 1343062025, 1343061762, 1343061741, 1343061707, 1343061679, 1343061621, 1343061360, 1343061355, 1343061337, 1343061319, 1343061301, 1343060887, 1343060834, 1343060742, 1343060684, 1343060628, 1343060576, 1343060293, 1343060242, 1343060178, 1343060099, 1343059718, 1343059672, 1343059615, 1343059562, 1343059518, 1343059479, 1343059352, 1343059342, 1343059320, 1343059294]} final : False mtd_id 4302 list_pids : [1343065158, 1343065117, 1343065091, 1343065066, 1343065031, 1343064910, 1343064900, 1343064890, 1343064863, 1343064763, 1343064742, 1343064709, 1343064694, 1343064681, 1343064659, 1343064421, 1343064409, 1343064378, 1343064344] Looping around the photos to save general results len do output : 19 /1343065158.Didn't retrieve data . /1343065117.Didn't retrieve data . /1343065091.Didn't retrieve data . /1343065066.Didn't retrieve data . /1343065031.Didn't retrieve data . /1343064910.Didn't retrieve data . /1343064900.Didn't retrieve data . /1343064890.Didn't retrieve data . /1343064863.Didn't retrieve data . /1343064763.Didn't retrieve data . /1343064742.Didn't retrieve data . /1343064709.Didn't retrieve data . /1343064694.Didn't retrieve data . /1343064681.Didn't retrieve data . /1343064659.Didn't retrieve data . /1343064421.Didn't retrieve data . /1343064409.Didn't retrieve data . /1343064378.Didn't retrieve data . /1343064344.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, '2658485') ('4302', '21290771', '1343065158', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343065117', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343065091', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343065066', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343065031', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064910', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064900', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064890', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064863', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064763', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064742', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064709', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064694', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064681', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064659', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064421', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064409', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064378', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064344', None, None, None, None, None, '2658485') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 57 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', '21290771', '1343065158', '0.0842144573977629', None, None, None, None, '2658485'), ('4302', '21290771', '1343065117', '0.0842144573977629', None, None, None, None, '2658485'), ('4302', '21290771', '1343065091', '0.0842144573977629', None, None, None, None, '2658485'), ('4302', '21290771', '1343065066', '0.0842144573977629', None, None, None, None, '2658485'), ('4302', '21290771', '1343065031', '0.0842144573977629', None, None, None, None, '2658485'), ('4302', '21290771', '1343064910', '0.0842144573977629', None, None, None, None, '2658485'), ('4302', '21290771', '1343064900', '0.0842144573977629', None, None, None, None, '2658485'), ('4302', '21290771', '1343064890', '0.0842144573977629', None, None, None, None, '2658485'), ('4302', '21290771', '1343064863', '0.0842144573977629', None, None, None, None, '2658485'), ('4302', '21290771', '1343064763', '0.0842144573977629', None, None, None, None, '2658485'), ('4302', '21290771', '1343064742', '0.0842144573977629', None, None, None, None, '2658485'), ('4302', '21290771', '1343064709', '0.0842144573977629', None, None, None, None, '2658485'), ('4302', '21290771', '1343064694', '0.0842144573977629', None, None, None, None, '2658485'), ('4302', '21290771', '1343064681', '0.0842144573977629', None, None, None, None, '2658485'), ('4302', '21290771', '1343064659', '0.0842144573977629', None, None, None, None, '2658485'), ('4302', '21290771', '1343064421', '0.0842144573977629', None, None, None, None, '2658485'), ('4302', '21290771', '1343064409', '0.0842144573977629', None, None, None, None, '2658485'), ('4302', '21290771', '1343064378', '0.0842144573977629', None, None, None, None, '2658485'), ('4302', '21290771', '1343064344', '0.0842144573977629', None, None, None, None, '2658485')] time used for this insertion : 0.0175778865814209 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07598519325256348 time spend to save output : 0.018282651901245117 total time spend for step 2 : 0.0942678451538086 step3:velours_tree Tue Mar 11 15:16:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21290771: [{'Carton_gris': 21290832, 'Carton_brun': 21290833, 'autre_refus': 21290834, 'plastique': 21290835, 'Teint_Dans_La_Masse': 21290836, 'mal_croppe': 21290837, 'kraft': 21290838, 'flou': 21290839, 'papier': 21290840, 'cartonnette': 21290841, 'metal': 21290842, 'environnement': 21290843}]} input_args_next_step : {21290771: ()} output_args : {21290771: [{'Carton_gris': 21290832, 'Carton_brun': 21290833, 'autre_refus': 21290834, 'plastique': 21290835, 'Teint_Dans_La_Masse': 21290836, 'mal_croppe': 21290837, 'kraft': 21290838, 'flou': 21290839, 'papier': 21290840, 'cartonnette': 21290841, 'metal': 21290842, 'environnement': 21290843}]} args : 21290771 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 21290832, 'Carton_brun': 21290833, 'autre_refus': 21290834, 'plastique': 21290835, 'Teint_Dans_La_Masse': 21290836, 'mal_croppe': 21290837, 'kraft': 21290838, 'flou': 21290839, 'papier': 21290840, 'cartonnette': 21290841, 'metal': 21290842, 'environnement': 21290843},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21290771) 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([21290771]) 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.34108901023864746 time spend to save output : 8.082389831542969e-05 total time spend for step 3 : 0.3411698341369629 step4:send_mail_cod Tue Mar 11 15:16: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 : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ('0.0842144573977629',), 1343064659: ('0.0842144573977629',), 1343064421: ('0.0842144573977629',), 1343064409: ('0.0842144573977629',), 1343064378: ('0.0842144573977629',), 1343064344: ('0.0842144573977629',)} input_args_next_step : {1343065158: ()} output_args : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ('0.0842144573977629',), 1343064659: ('0.0842144573977629',), 1343064421: ('0.0842144573977629',), 1343064409: ('0.0842144573977629',), 1343064378: ('0.0842144573977629',), 1343064344: ('0.0842144573977629',)} args : 1343065158 depend.output_id : 0 input_args_next_step : {1343065158: ('0.0842144573977629',), 1343065117: ()} output_args : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ('0.0842144573977629',), 1343064659: ('0.0842144573977629',), 1343064421: ('0.0842144573977629',), 1343064409: ('0.0842144573977629',), 1343064378: ('0.0842144573977629',), 1343064344: ('0.0842144573977629',)} args : 1343065117 depend.output_id : 0 input_args_next_step : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ()} output_args : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ('0.0842144573977629',), 1343064659: ('0.0842144573977629',), 1343064421: ('0.0842144573977629',), 1343064409: ('0.0842144573977629',), 1343064378: ('0.0842144573977629',), 1343064344: ('0.0842144573977629',)} args : 1343065091 depend.output_id : 0 input_args_next_step : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ()} output_args : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ('0.0842144573977629',), 1343064659: ('0.0842144573977629',), 1343064421: ('0.0842144573977629',), 1343064409: ('0.0842144573977629',), 1343064378: ('0.0842144573977629',), 1343064344: ('0.0842144573977629',)} args : 1343065066 depend.output_id : 0 input_args_next_step : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ()} output_args : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ('0.0842144573977629',), 1343064659: ('0.0842144573977629',), 1343064421: ('0.0842144573977629',), 1343064409: ('0.0842144573977629',), 1343064378: ('0.0842144573977629',), 1343064344: ('0.0842144573977629',)} args : 1343065031 depend.output_id : 0 input_args_next_step : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ()} output_args : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ('0.0842144573977629',), 1343064659: ('0.0842144573977629',), 1343064421: ('0.0842144573977629',), 1343064409: ('0.0842144573977629',), 1343064378: ('0.0842144573977629',), 1343064344: ('0.0842144573977629',)} args : 1343064910 depend.output_id : 0 input_args_next_step : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ()} output_args : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ('0.0842144573977629',), 1343064659: ('0.0842144573977629',), 1343064421: ('0.0842144573977629',), 1343064409: ('0.0842144573977629',), 1343064378: ('0.0842144573977629',), 1343064344: ('0.0842144573977629',)} args : 1343064900 depend.output_id : 0 input_args_next_step : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ()} output_args : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ('0.0842144573977629',), 1343064659: ('0.0842144573977629',), 1343064421: ('0.0842144573977629',), 1343064409: ('0.0842144573977629',), 1343064378: ('0.0842144573977629',), 1343064344: ('0.0842144573977629',)} args : 1343064890 depend.output_id : 0 input_args_next_step : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ()} output_args : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ('0.0842144573977629',), 1343064659: ('0.0842144573977629',), 1343064421: ('0.0842144573977629',), 1343064409: ('0.0842144573977629',), 1343064378: ('0.0842144573977629',), 1343064344: ('0.0842144573977629',)} args : 1343064863 depend.output_id : 0 input_args_next_step : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ()} output_args : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ('0.0842144573977629',), 1343064659: ('0.0842144573977629',), 1343064421: ('0.0842144573977629',), 1343064409: ('0.0842144573977629',), 1343064378: ('0.0842144573977629',), 1343064344: ('0.0842144573977629',)} args : 1343064763 depend.output_id : 0 input_args_next_step : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ()} output_args : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ('0.0842144573977629',), 1343064659: ('0.0842144573977629',), 1343064421: ('0.0842144573977629',), 1343064409: ('0.0842144573977629',), 1343064378: ('0.0842144573977629',), 1343064344: ('0.0842144573977629',)} args : 1343064742 depend.output_id : 0 input_args_next_step : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ()} output_args : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ('0.0842144573977629',), 1343064659: ('0.0842144573977629',), 1343064421: ('0.0842144573977629',), 1343064409: ('0.0842144573977629',), 1343064378: ('0.0842144573977629',), 1343064344: ('0.0842144573977629',)} args : 1343064709 depend.output_id : 0 input_args_next_step : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ()} output_args : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ('0.0842144573977629',), 1343064659: ('0.0842144573977629',), 1343064421: ('0.0842144573977629',), 1343064409: ('0.0842144573977629',), 1343064378: ('0.0842144573977629',), 1343064344: ('0.0842144573977629',)} args : 1343064694 depend.output_id : 0 input_args_next_step : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ()} output_args : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ('0.0842144573977629',), 1343064659: ('0.0842144573977629',), 1343064421: ('0.0842144573977629',), 1343064409: ('0.0842144573977629',), 1343064378: ('0.0842144573977629',), 1343064344: ('0.0842144573977629',)} args : 1343064681 depend.output_id : 0 input_args_next_step : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ('0.0842144573977629',), 1343064659: ()} output_args : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ('0.0842144573977629',), 1343064659: ('0.0842144573977629',), 1343064421: ('0.0842144573977629',), 1343064409: ('0.0842144573977629',), 1343064378: ('0.0842144573977629',), 1343064344: ('0.0842144573977629',)} args : 1343064659 depend.output_id : 0 input_args_next_step : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ('0.0842144573977629',), 1343064659: ('0.0842144573977629',), 1343064421: ()} output_args : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ('0.0842144573977629',), 1343064659: ('0.0842144573977629',), 1343064421: ('0.0842144573977629',), 1343064409: ('0.0842144573977629',), 1343064378: ('0.0842144573977629',), 1343064344: ('0.0842144573977629',)} args : 1343064421 depend.output_id : 0 input_args_next_step : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ('0.0842144573977629',), 1343064659: ('0.0842144573977629',), 1343064421: ('0.0842144573977629',), 1343064409: ()} output_args : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ('0.0842144573977629',), 1343064659: ('0.0842144573977629',), 1343064421: ('0.0842144573977629',), 1343064409: ('0.0842144573977629',), 1343064378: ('0.0842144573977629',), 1343064344: ('0.0842144573977629',)} args : 1343064409 depend.output_id : 0 input_args_next_step : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ('0.0842144573977629',), 1343064659: ('0.0842144573977629',), 1343064421: ('0.0842144573977629',), 1343064409: ('0.0842144573977629',), 1343064378: ()} output_args : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ('0.0842144573977629',), 1343064659: ('0.0842144573977629',), 1343064421: ('0.0842144573977629',), 1343064409: ('0.0842144573977629',), 1343064378: ('0.0842144573977629',), 1343064344: ('0.0842144573977629',)} args : 1343064378 depend.output_id : 0 input_args_next_step : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ('0.0842144573977629',), 1343064659: ('0.0842144573977629',), 1343064421: ('0.0842144573977629',), 1343064409: ('0.0842144573977629',), 1343064378: ('0.0842144573977629',), 1343064344: ()} output_args : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ('0.0842144573977629',), 1343064659: ('0.0842144573977629',), 1343064421: ('0.0842144573977629',), 1343064409: ('0.0842144573977629',), 1343064378: ('0.0842144573977629',), 1343064344: ('0.0842144573977629',)} args : 1343064344 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 : {21290771: [{'Carton_gris': 21290832, 'Carton_brun': 21290833, 'autre_refus': 21290834, 'plastique': 21290835, 'Teint_Dans_La_Masse': 21290836, 'mal_croppe': 21290837, 'kraft': 21290838, 'flou': 21290839, 'papier': 21290840, 'cartonnette': 21290841, 'metal': 21290842, 'environnement': 21290843}]} input_args_next_step : {1343065158: ('0.0842144573977629',), 1343065117: ('0.0842144573977629',), 1343065091: ('0.0842144573977629',), 1343065066: ('0.0842144573977629',), 1343065031: ('0.0842144573977629',), 1343064910: ('0.0842144573977629',), 1343064900: ('0.0842144573977629',), 1343064890: ('0.0842144573977629',), 1343064863: ('0.0842144573977629',), 1343064763: ('0.0842144573977629',), 1343064742: ('0.0842144573977629',), 1343064709: ('0.0842144573977629',), 1343064694: ('0.0842144573977629',), 1343064681: ('0.0842144573977629',), 1343064659: ('0.0842144573977629',), 1343064421: ('0.0842144573977629',), 1343064409: ('0.0842144573977629',), 1343064378: ('0.0842144573977629',), 1343064344: ('0.0842144573977629',), 21290771: ()} output_args : {21290771: [{'Carton_gris': 21290832, 'Carton_brun': 21290833, 'autre_refus': 21290834, 'plastique': 21290835, 'Teint_Dans_La_Masse': 21290836, 'mal_croppe': 21290837, 'kraft': 21290838, 'flou': 21290839, 'papier': 21290840, 'cartonnette': 21290841, 'metal': 21290842, 'environnement': 21290843}]} args : 21290771 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 :20, first value : ('0.0842144573977629',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21290771) 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 (1343065158,1343065117,1343065091,1343065066,1343065031,1343064910,1343064900,1343064890,1343064863,1343064763,1343064742,1343064709,1343064694,1343064681,1343064659,1343064421,1343064409,1343064378,1343064344) Found this number of photos: 19 ##### Call download_photos : nb_thread : 5 begin to download photo : 1343064344 begin to download photo : 1343064659 begin to download photo : 1343064742 begin to download photo : 1343064900 begin to download photo : 1343065091 download finish for photo 1343064900 begin to download photo : 1343064910 download finish for photo 1343064742 begin to download photo : 1343064763 download finish for photo 1343065091 begin to download photo : 1343065117 download finish for photo 1343064659 begin to download photo : 1343064681 download finish for photo 1343064344 begin to download photo : 1343064378 download finish for photo 1343064910 begin to download photo : 1343065031 download finish for photo 1343065117 begin to download photo : 1343065158 download finish for photo 1343064763 begin to download photo : 1343064863 download finish for photo 1343064681 begin to download photo : 1343064694 download finish for photo 1343064378 begin to download photo : 1343064409 download finish for photo 1343064863 begin to download photo : 1343064890 download finish for photo 1343065031 begin to download photo : 1343065066 download finish for photo 1343064409 begin to download photo : 1343064421 download finish for photo 1343064694 begin to download photo : 1343064709 download finish for photo 1343065158 download finish for photo 1343064709 download finish for photo 1343065066 download finish for photo 1343064421 download finish for photo 1343064890 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 19 ; length of list_pids : 19 ; length of list_args : 19 results_Auto_P21290771_11-03-2025_15_16_59.pdf 21290834 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=21290834 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343064855: '1741702392_1316561_1343063189_9c9ef6c1b10fef9f8ebe4e3b5c85246c_rle_crop_3705612658_0.png', 1343064429: '1741702251_1314736_1343061360_1c948414e49e30fff4a7961e1f2be40a_rle_crop_3705605386_0.png', 1343064430: '1741702251_1314736_1343060742_e393f85ba98702c47899c15d8c4d5348_rle_crop_3705605777_0.png', 1343064431: '1741702251_1314736_1343060684_d4d7d120e422411f4cc4f0f7805a219b_rle_crop_3705606463_0.png', 1343064432: '1741702251_1314736_1343060576_6c8eeec82d2762b5cde9e87a57f15579_rle_crop_3705607134_0.png', 1343064795: '1741702370_1316268_1343063892_4370475a8b0dc041dc83af082a3c26ba_rle_crop_3705612398_0.png', 1343064796: '1741702370_1316268_1343063892_4370475a8b0dc041dc83af082a3c26ba_rle_crop_3705612403_0.png', 1343064797: '1741702370_1316268_1343063859_6350eea3d773b771a5faaf8efaa249ad_rle_crop_3705612447_0.png', 1343064851: '1741702392_1316561_1343063342_657700820465f2d009f11564ea1214ca_rle_crop_3705612542_0.png', 1343064852: '1741702392_1316561_1343063283_e5b27331ed28d804f79dd66d4aa974f6_rle_crop_3705612630_0.png', 1343064363: '1741702271_1315021_1343060099_065ebef9df00585fcc37c2fe1ec2351a_rle_crop_3705606442_0.png', 1343065291: '1741702407_1904345_1343063643_33edfc6ca6217beba93a7d4dc0ca99ab_rle_crop_3705613014_0.png', 1343065294: '1741702407_1904345_1343063602_447f8c9caf82e2c63c295d068eed7d1c_rle_crop_3705613085_0.png', 1343065298: '1741702407_1904345_1343063455_c5f5ce6ec8ecbc1ae7064991eb8c94bf_rle_crop_3705613145_0.png', 1343065300: '1741702407_1904345_1343063401_70c004fe262307957d7d8d1d833424d1_rle_crop_3705613219_0.png', 1343065302: '1741702407_1904345_1343063401_70c004fe262307957d7d8d1d833424d1_rle_crop_3705613223_0.png', 1343065304: '1741702407_1904345_1343062745_ff6939be127495fa6f57258e96202777_rle_crop_3705613359_0.png', 1343065306: '1741702407_1904345_1343062700_d4d8a05653603869dc24b59bcdfcb2b1_rle_crop_3705613442_0.png', 1343065309: '1741702407_1904345_1343062668_0fb4aa341724f1cf6c85d590d4604d21_rle_crop_3705613498_0.png', 1343065704: '1741702587_1906229_1343064078_3ec3dc160418e95a882e0a990b27a613_rle_crop_3705614060_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7cc1ccef1a0f9cd7ab051ff1011d039a_61651992.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/7be8cf4d655725b385d0871d9b1238bf_77498485.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ec29f18a94908209c484e653b4b042c1_56276052.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1a3f4b24369468be1be003c15b5dc092_11861170.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/35646149effdc6c58627dc3be8297802_22858834.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ab23dd103a9d2f2e2ef3e718e73eb24f_95598172.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f95d1f1309b0aeab4af1e3ef6c9395d7_38112103.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/82ecc1e2bfdadd82112ea1a0976f212b_29275205.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/db9c86ae26a08e6b39033303fd833729_56288226.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/9cc60ef264439270c4b6d9e511d17935_27031361.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/5007341a2fcd9de70b8fa89190e545eb_38705609.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/daf7c7babc2a0e0ed1950273cb60a43e_42459055.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/9896a25044615c0c10495f31136e80e7_97594518.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/16b3fbc60c21098e9d03a8019bbcead8_78239756.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/418ad7861be26bfe1bf6c0c02e9ee07e_37193831.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/465ade1f3c99fcd0380ee7e12bb3cfee_58927857.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/daf7c7babc2a0e0ed1950273cb60a43e_26141436.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/9896a25044615c0c10495f31136e80e7_17574241.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/16b3fbc60c21098e9d03a8019bbcead8_4622629.png change filename to text .imagette212908341741702619/ imagette212908341741702619/1741702392_1316561_1343063189_9c9ef6c1b10fef9f8ebe4e3b5c85246c_rle_crop_3705612658_0.png.png imagette212908341741702619/1741702407_1904345_1343063455_c5f5ce6ec8ecbc1ae7064991eb8c94bf_rle_crop_3705613145_0.png.png imagette212908341741702619/1741702407_1904345_1343063401_70c004fe262307957d7d8d1d833424d1_rle_crop_3705613219_0.png.png imagette212908341741702619/1741702407_1904345_1343062745_ff6939be127495fa6f57258e96202777_rle_crop_3705613359_0.png.png imagette212908341741702619/1741702407_1904345_1343062700_d4d8a05653603869dc24b59bcdfcb2b1_rle_crop_3705613442_0.png.png imagette212908341741702619/1741702251_1314736_1343060742_e393f85ba98702c47899c15d8c4d5348_rle_crop_3705605777_0.png.png imagette212908341741702619/1741702370_1316268_1343063859_6350eea3d773b771a5faaf8efaa249ad_rle_crop_3705612447_0.png.png imagette212908341741702619/1741702587_1906229_1343064078_3ec3dc160418e95a882e0a990b27a613_rle_crop_3705614060_0.png.png imagette212908341741702619/1741702251_1314736_1343061360_1c948414e49e30fff4a7961e1f2be40a_rle_crop_3705605386_0.png.png imagette212908341741702619/1741702251_1314736_1343060576_6c8eeec82d2762b5cde9e87a57f15579_rle_crop_3705607134_0.png.png imagette212908341741702619/1741702407_1904345_1343063401_70c004fe262307957d7d8d1d833424d1_rle_crop_3705613223_0.png.png imagette212908341741702619/1741702407_1904345_1343063643_33edfc6ca6217beba93a7d4dc0ca99ab_rle_crop_3705613014_0.png.png imagette212908341741702619/1741702392_1316561_1343063283_e5b27331ed28d804f79dd66d4aa974f6_rle_crop_3705612630_0.png.png imagette212908341741702619/1741702370_1316268_1343063892_4370475a8b0dc041dc83af082a3c26ba_rle_crop_3705612398_0.png.png imagette212908341741702619/1741702407_1904345_1343063602_447f8c9caf82e2c63c295d068eed7d1c_rle_crop_3705613085_0.png.png imagette212908341741702619/1741702392_1316561_1343063342_657700820465f2d009f11564ea1214ca_rle_crop_3705612542_0.png.png imagette212908341741702619/1741702407_1904345_1343062668_0fb4aa341724f1cf6c85d590d4604d21_rle_crop_3705613498_0.png.png imagette212908341741702619/1741702251_1314736_1343060684_d4d7d120e422411f4cc4f0f7805a219b_rle_crop_3705606463_0.png.png imagette212908341741702619/1741702370_1316268_1343063892_4370475a8b0dc041dc83af082a3c26ba_rle_crop_3705612403_0.png.png imagette212908341741702619/1741702271_1315021_1343060099_065ebef9df00585fcc37c2fe1ec2351a_rle_crop_3705606442_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/29ca6aaed2aaecd358287cf770bedde7_42274576.png imagette212908341741702619 21290835 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=21290835 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343061681: '1741701915_1310430_1343059342_08ebac50f66228263fd3643b731c8579_rle_crop_3705596050_0.png', 1343063715: '1741702106_1900181_1343061301_7317ca49153c838ab10813e1a8ad7a56_rle_crop_3705604864_0.png', 1343064810: '1741702370_1316268_1343063892_4370475a8b0dc041dc83af082a3c26ba_rle_crop_3705612395_0.png', 1343064813: '1741702370_1316268_1343063892_4370475a8b0dc041dc83af082a3c26ba_rle_crop_3705612407_0.png', 1343064868: '1741702392_1316561_1343063283_e5b27331ed28d804f79dd66d4aa974f6_rle_crop_3705612625_0.png', 1343064869: '1741702392_1316561_1343063189_9c9ef6c1b10fef9f8ebe4e3b5c85246c_rle_crop_3705612660_0.png', 1343065742: '1741702587_1906229_1343064078_3ec3dc160418e95a882e0a990b27a613_rle_crop_3705614068_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/3adc331653384bdba1f9ca687f3274e4_72588747.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/995e0dc56fd08315c196f6fcc90818d3_41399974.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/747ef91256a86a57f7e6dac328cb646e_7926687.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/08e2dd44a59fad64a4aea119fad417a0_50686698.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/447bcf74b84debf98df6c79beffddbf7_6998640.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/96f350cb8634d68935c4d384f8980ed5_33287092.png change filename to text .imagette212908351741702620/ imagette212908351741702620/1741702392_1316561_1343063283_e5b27331ed28d804f79dd66d4aa974f6_rle_crop_3705612625_0.png.png imagette212908351741702620/1741702392_1316561_1343063189_9c9ef6c1b10fef9f8ebe4e3b5c85246c_rle_crop_3705612660_0.png.png imagette212908351741702620/1741701915_1310430_1343059342_08ebac50f66228263fd3643b731c8579_rle_crop_3705596050_0.png.png imagette212908351741702620/1741702370_1316268_1343063892_4370475a8b0dc041dc83af082a3c26ba_rle_crop_3705612407_0.png.png imagette212908351741702620/1741702106_1900181_1343061301_7317ca49153c838ab10813e1a8ad7a56_rle_crop_3705604864_0.png.png imagette212908351741702620/1741702587_1906229_1343064078_3ec3dc160418e95a882e0a990b27a613_rle_crop_3705614068_0.png.png imagette212908351741702620/1741702370_1316268_1343063892_4370475a8b0dc041dc83af082a3c26ba_rle_crop_3705612395_0.png.png imagette212908371741702621/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c9dc7527c3f3a4bf3c5523437613a5b0_35441691.png imagette212908351741702620 21290837 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=21290837 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212908371741702621 21290838 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=21290838 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343061686: '1741701915_1310430_1343059352_d053bb106dd7c3c3cdffd7e63df5752d_rle_crop_3705596020_0.png'} change filename to text .imagette212908381741702621/ imagette212908381741702621/1741701915_1310430_1343059352_d053bb106dd7c3c3cdffd7e63df5752d_rle_crop_3705596020_0.png.png imagette212908391741702621/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/50038472fcbfb5407a41584b3abf386a_69069529.png imagette212908381741702621 21290839 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=21290839 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212908391741702621 21290841 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=21290841 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343061570: '1741701893_1310169_1343059562_4b447a19b4f35806d37c960996796f19_rle_crop_3705595718_0.png', 1343063295: '1741702113_1313112_1343061679_b98fceb45f76525017c462747cb835a4_rle_crop_3705604128_0.png', 1343063296: '1741702113_1313112_1343061621_f833ed92fe5ab4399fe3a119d4853245_rle_crop_3705604565_0.png', 1343063297: '1741702113_1313112_1343061621_f833ed92fe5ab4399fe3a119d4853245_rle_crop_3705604567_0.png', 1343063593: '1741702170_1313901_1343060293_76d6374c52e2d8ddaef759a4980719f2_rle_crop_3705604975_0.png', 1343063701: '1741702106_1900181_1343061301_7317ca49153c838ab10813e1a8ad7a56_rle_crop_3705604857_0.png', 1343063941: '1741702142_1313319_1343060684_d4d7d120e422411f4cc4f0f7805a219b_rle_crop_3705606451_0.png', 1343064440: '1741702251_1314736_1343060684_d4d7d120e422411f4cc4f0f7805a219b_rle_crop_3705606451_0.png', 1343065338: '1741702407_1904345_1343063455_c5f5ce6ec8ecbc1ae7064991eb8c94bf_rle_crop_3705613142_0.png', 1343065339: '1741702407_1904345_1343063401_70c004fe262307957d7d8d1d833424d1_rle_crop_3705613214_0.png', 1343065344: '1741702407_1904345_1343063401_70c004fe262307957d7d8d1d833424d1_rle_crop_3705613217_0.png', 1343065347: '1741702407_1904345_1343062668_0fb4aa341724f1cf6c85d590d4604d21_rle_crop_3705613495_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f826973ba9901683832d9ba11c64ead6_82790046.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/a8670ddf1380aabc256484b983a246b3_30437340.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/15ca32b30fa0a8173d3d8deadd062937_18613852.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/61e0e8e1d918de9ea49e1ccbacffbee9_16071051.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c163320092eb7efa48c7d55725e923b2_81149352.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d40d33c4a1e8e7f78cadfcd4a9ad0bf0_5282550.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/4e22fcc8dbdf3278386c4d88b2a28151_7188743.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/4e22fcc8dbdf3278386c4d88b2a28151_7637230.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c67a192f48578a246213c6d7b56798dc_73908730.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/946685f28ee771fffd15537d9a851520_1460918.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/9839b17c125b726687689e63bdeca114_25956133.png change filename to text .imagette212908411741702621/ imagette212908411741702621/1741702142_1313319_1343060684_d4d7d120e422411f4cc4f0f7805a219b_rle_crop_3705606451_0.png.png imagette212908411741702621/1741702113_1313112_1343061679_b98fceb45f76525017c462747cb835a4_rle_crop_3705604128_0.png.png imagette212908411741702621/1741702407_1904345_1343063455_c5f5ce6ec8ecbc1ae7064991eb8c94bf_rle_crop_3705613142_0.png.png imagette212908411741702621/1741702251_1314736_1343060684_d4d7d120e422411f4cc4f0f7805a219b_rle_crop_3705606451_0.png.png imagette212908411741702621/1741702407_1904345_1343063401_70c004fe262307957d7d8d1d833424d1_rle_crop_3705613214_0.png.png imagette212908411741702621/1741702407_1904345_1343062668_0fb4aa341724f1cf6c85d590d4604d21_rle_crop_3705613495_0.png.png imagette212908411741702621/1741702113_1313112_1343061621_f833ed92fe5ab4399fe3a119d4853245_rle_crop_3705604565_0.png.png imagette212908411741702621/1741702407_1904345_1343063401_70c004fe262307957d7d8d1d833424d1_rle_crop_3705613217_0.png.png imagette212908411741702621/1741701893_1310169_1343059562_4b447a19b4f35806d37c960996796f19_rle_crop_3705595718_0.png.png imagette212908411741702621/1741702106_1900181_1343061301_7317ca49153c838ab10813e1a8ad7a56_rle_crop_3705604857_0.png.png imagette212908411741702621/1741702113_1313112_1343061621_f833ed92fe5ab4399fe3a119d4853245_rle_crop_3705604567_0.png.png imagette212908411741702621/1741702170_1313901_1343060293_76d6374c52e2d8ddaef759a4980719f2_rle_crop_3705604975_0.png.png imagette212908421741702622/ wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c67a192f48578a246213c6d7b56798dc_67665135.png imagette212908411741702621 21290842 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=21290842 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette212908421741702622 21290832 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=21290832 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343064386: '1741702271_1315021_1343060099_065ebef9df00585fcc37c2fe1ec2351a_rle_crop_3705606444_0.png', 1343065719: '1741702587_1906229_1343064078_3ec3dc160418e95a882e0a990b27a613_rle_crop_3705614054_0.png', 1343065716: '1741702587_1906229_1343064078_3ec3dc160418e95a882e0a990b27a613_rle_crop_3705614055_0.png', 1343065331: '1741702407_1904345_1343062700_d4d8a05653603869dc24b59bcdfcb2b1_rle_crop_3705613434_0.png', 1343065329: '1741702407_1904345_1343062700_d4d8a05653603869dc24b59bcdfcb2b1_rle_crop_3705613437_0.png', 1343065327: '1741702407_1904345_1343062745_ff6939be127495fa6f57258e96202777_rle_crop_3705613357_0.png', 1343065325: '1741702407_1904345_1343063602_447f8c9caf82e2c63c295d068eed7d1c_rle_crop_3705613077_0.png', 1343065323: '1741702407_1904345_1343063602_447f8c9caf82e2c63c295d068eed7d1c_rle_crop_3705613080_0.png', 1343065321: '1741702407_1904345_1343063643_33edfc6ca6217beba93a7d4dc0ca99ab_rle_crop_3705613012_0.png', 1343064859: '1741702392_1316561_1343063939_55398254b7861983a4d86613786c308a_rle_crop_3705612478_0.png', 1343064438: '1741702251_1314736_1343060628_8daa7878f1e86f9bef10a71a8bf53ba6_rle_crop_3705606492_0.png', 1343064437: '1741702251_1314736_1343060742_e393f85ba98702c47899c15d8c4d5348_rle_crop_3705605776_0.png', 1343064436: '1741702251_1314736_1343060742_e393f85ba98702c47899c15d8c4d5348_rle_crop_3705605774_0.png', 1343064434: '1741702251_1314736_1343060834_272b7805ba7ae8ad002f7ee2dbc49d5f_rle_crop_3705605391_0.png', 1343061558: '1741701893_1310169_1343059615_5584b9a70f8991e140d236d6ccacf732_rle_crop_3705595404_0.png', 1343064385: '1741702271_1315021_1343060099_065ebef9df00585fcc37c2fe1ec2351a_rle_crop_3705609682_0.png', 1343064377: '1741702271_1315021_1343060178_01a369a8c58ce77ac815aca6a03a2616_rle_crop_3705605996_0.png', 1343063938: '1741702142_1313319_1343060628_8daa7878f1e86f9bef10a71a8bf53ba6_rle_crop_3705606492_0.png', 1343063937: '1741702142_1313319_1343060742_e393f85ba98702c47899c15d8c4d5348_rle_crop_3705605776_0.png', 1343063936: '1741702142_1313319_1343060742_e393f85ba98702c47899c15d8c4d5348_rle_crop_3705605774_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/6ac4f3e6c9ea84bf858845ec01f6937d_46434420.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/59b07936fdbb35e710bdc3bf201e8a6b_92884669.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/dd29194c20fbb402d7d25fbd52d71e26_65622537.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/2f78a08398ddf5099ecda9f1d11e4612_28978723.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1f8e5aed25ee61df607ff3478d60b2ae_6156537.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/df2663732760eb17d72e1151a40f6c13_46045205.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/2f78a08398ddf5099ecda9f1d11e4612_37192961.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1f8e5aed25ee61df607ff3478d60b2ae_88256514.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/df2663732760eb17d72e1151a40f6c13_32052432.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ff7c91138a8013acc37c76cae1f6e8b6_94507227.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/309c36d538549447061b30bc3ae1915b_56322124.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/5f27c90371445241a195ca54ca02cd92_1645398.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ce72c421b384e27959bf3f01b56e0384_75426106.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/86cf55fa6b8322a569dcd65de0397691_10913474.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/2a5a06191cd6bb2d0dd65c7ac74708d3_69706601.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/07e024385661ab402f44d85944a24a63_42449849.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/5696bca777a108b73f5d2533fffa5d7a_23095653.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/309c36d538549447061b30bc3ae1915b_98220152.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/5f27c90371445241a195ca54ca02cd92_13184748.png change filename to text .imagette212908321741702622/ imagette212908321741702622/1741702251_1314736_1343060742_e393f85ba98702c47899c15d8c4d5348_rle_crop_3705605774_0.png.png imagette212908321741702622/1741702587_1906229_1343064078_3ec3dc160418e95a882e0a990b27a613_rle_crop_3705614055_0.png.png imagette212908321741702622/1741702407_1904345_1343063602_447f8c9caf82e2c63c295d068eed7d1c_rle_crop_3705613077_0.png.png imagette212908321741702622/1741702407_1904345_1343063643_33edfc6ca6217beba93a7d4dc0ca99ab_rle_crop_3705613012_0.png.png imagette212908321741702622/1741702271_1315021_1343060099_065ebef9df00585fcc37c2fe1ec2351a_rle_crop_3705606444_0.png.png imagette212908321741702622/1741702587_1906229_1343064078_3ec3dc160418e95a882e0a990b27a613_rle_crop_3705614054_0.png.png imagette212908321741702622/1741702407_1904345_1343063602_447f8c9caf82e2c63c295d068eed7d1c_rle_crop_3705613080_0.png.png imagette212908321741702622/1741702407_1904345_1343062745_ff6939be127495fa6f57258e96202777_rle_crop_3705613357_0.png.png imagette212908321741702622/1741702251_1314736_1343060742_e393f85ba98702c47899c15d8c4d5348_rle_crop_3705605776_0.png.png imagette212908321741702622/1741702271_1315021_1343060099_065ebef9df00585fcc37c2fe1ec2351a_rle_crop_3705609682_0.png.png imagette212908321741702622/1741702271_1315021_1343060178_01a369a8c58ce77ac815aca6a03a2616_rle_crop_3705605996_0.png.png imagette212908321741702622/1741701893_1310169_1343059615_5584b9a70f8991e140d236d6ccacf732_rle_crop_3705595404_0.png.png imagette212908321741702622/1741702251_1314736_1343060628_8daa7878f1e86f9bef10a71a8bf53ba6_rle_crop_3705606492_0.png.png imagette212908321741702622/1741702392_1316561_1343063939_55398254b7861983a4d86613786c308a_rle_crop_3705612478_0.png.png imagette212908321741702622/1741702407_1904345_1343062700_d4d8a05653603869dc24b59bcdfcb2b1_rle_crop_3705613437_0.png.png imagette212908321741702622/1741702251_1314736_1343060834_272b7805ba7ae8ad002f7ee2dbc49d5f_rle_crop_3705605391_0.png.png imagette212908321741702622/1741702407_1904345_1343062700_d4d8a05653603869dc24b59bcdfcb2b1_rle_crop_3705613434_0.png.png imagette212908321741702622/1741702142_1313319_1343060628_8daa7878f1e86f9bef10a71a8bf53ba6_rle_crop_3705606492_0.png.png imagette212908321741702622/1741702142_1313319_1343060742_e393f85ba98702c47899c15d8c4d5348_rle_crop_3705605776_0.png.png imagette212908321741702622/1741702142_1313319_1343060742_e393f85ba98702c47899c15d8c4d5348_rle_crop_3705605774_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ce72c421b384e27959bf3f01b56e0384_28012361.png imagette212908321741702622 21290833 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=21290833 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343061584: '1741701893_1310169_1343059615_5584b9a70f8991e140d236d6ccacf732_rle_crop_3705595414_0.png', 1343061588: '1741701893_1310169_1343059615_5584b9a70f8991e140d236d6ccacf732_rle_crop_3705595407_0.png', 1343061589: '1741701893_1310169_1343059562_4b447a19b4f35806d37c960996796f19_rle_crop_3705595719_0.png', 1343061590: '1741701893_1310169_1343059479_6bb7cb16743c3db2552c2fd7849557cd_rle_crop_3705596037_0.png', 1343063599: '1741702170_1313901_1343060293_76d6374c52e2d8ddaef759a4980719f2_rle_crop_3705604979_0.png', 1343063943: '1741702142_1313319_1343060684_d4d7d120e422411f4cc4f0f7805a219b_rle_crop_3705606459_0.png', 1343063944: '1741702142_1313319_1343060628_8daa7878f1e86f9bef10a71a8bf53ba6_rle_crop_3705606495_0.png', 1343064443: '1741702251_1314736_1343060684_d4d7d120e422411f4cc4f0f7805a219b_rle_crop_3705606459_0.png', 1343064444: '1741702251_1314736_1343060628_8daa7878f1e86f9bef10a71a8bf53ba6_rle_crop_3705606495_0.png', 1343064804: '1741702370_1316268_1343063859_6350eea3d773b771a5faaf8efaa249ad_rle_crop_3705612442_0.png', 1343065733: '1741702587_1906229_1343064078_3ec3dc160418e95a882e0a990b27a613_rle_crop_3705614061_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/1d1e4a52064a2f3b4b55fb3bd7b032db_29534763.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/df4e2090f0c3e821cedae40d6c58c490_59311534.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/a4f63e8d7e05f9e1ecc5a3d0249d5bc2_78904540.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/8a04864a3831bda677c9b880d8ef7746_2739527.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/53f5dd0051d4d32cc564782ed62b410f_18869647.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/88279439d1f944cc012a20e6cf6f2402_86682827.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/876b647a219a78387895d54f4cdf30ab_43695431.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/88279439d1f944cc012a20e6cf6f2402_17539417.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/876b647a219a78387895d54f4cdf30ab_21719403.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/8bd2df10aa6996e07d1aac2a9e7a84e4_60080914.png change filename to text .imagette212908331741702623/ imagette212908331741702623/1741702370_1316268_1343063859_6350eea3d773b771a5faaf8efaa249ad_rle_crop_3705612442_0.png.png imagette212908331741702623/1741701893_1310169_1343059479_6bb7cb16743c3db2552c2fd7849557cd_rle_crop_3705596037_0.png.png imagette212908331741702623/1741702251_1314736_1343060628_8daa7878f1e86f9bef10a71a8bf53ba6_rle_crop_3705606495_0.png.png imagette212908331741702623/1741702251_1314736_1343060684_d4d7d120e422411f4cc4f0f7805a219b_rle_crop_3705606459_0.png.png imagette212908331741702623/1741702142_1313319_1343060628_8daa7878f1e86f9bef10a71a8bf53ba6_rle_crop_3705606495_0.png.png imagette212908331741702623/1741701893_1310169_1343059615_5584b9a70f8991e140d236d6ccacf732_rle_crop_3705595407_0.png.png imagette212908331741702623/1741702142_1313319_1343060684_d4d7d120e422411f4cc4f0f7805a219b_rle_crop_3705606459_0.png.png imagette212908331741702623/1741702170_1313901_1343060293_76d6374c52e2d8ddaef759a4980719f2_rle_crop_3705604979_0.png.png imagette212908331741702623/1741701893_1310169_1343059615_5584b9a70f8991e140d236d6ccacf732_rle_crop_3705595414_0.png.png imagette212908331741702623/1741702587_1906229_1343064078_3ec3dc160418e95a882e0a990b27a613_rle_crop_3705614061_0.png.png imagette212908331741702623/1741701893_1310169_1343059562_4b447a19b4f35806d37c960996796f19_rle_crop_3705595719_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/3f9a852e2f687f2b3d8a802e669db8ef_64430046.png imagette212908331741702623 21290836 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=21290836 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1343063555: '1741702170_1313901_1343060293_76d6374c52e2d8ddaef759a4980719f2_rle_crop_3705604972_0.png', 1343063639: '1741702106_1900181_1343061355_c48adc91d9c524b0a59acca903d2020f_rle_crop_3705603927_0.png', 1343063904: '1741702142_1313319_1343060684_d4d7d120e422411f4cc4f0f7805a219b_rle_crop_3705606462_0.png', 1343063905: '1741702142_1313319_1343060684_d4d7d120e422411f4cc4f0f7805a219b_rle_crop_3705606455_0.png', 1343064422: '1741702251_1314736_1343060684_d4d7d120e422411f4cc4f0f7805a219b_rle_crop_3705609661_0.png', 1343064424: '1741702251_1314736_1343060684_d4d7d120e422411f4cc4f0f7805a219b_bib_crop_3705606462_0.jpg', 1343064426: '1741702251_1314736_1343060684_d4d7d120e422411f4cc4f0f7805a219b_rle_crop_3705606455_0.png', 1343064847: '1741702392_1316561_1343063342_657700820465f2d009f11564ea1214ca_rle_crop_3705612543_0.png', 1343064848: '1741702392_1316561_1343063342_657700820465f2d009f11564ea1214ca_rle_crop_3705612537_0.png', 1343064849: '1741702392_1316561_1343063342_657700820465f2d009f11564ea1214ca_rle_crop_3705612541_0.png', 1343064850: '1741702392_1316561_1343063189_9c9ef6c1b10fef9f8ebe4e3b5c85246c_rle_crop_3705612655_0.png', 1343065277: '1741702407_1904345_1343063401_70c004fe262307957d7d8d1d833424d1_rle_crop_3705613221_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/40f4e7a8a2953e3a7581b48fbcf889d2_94340934.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c2c19c0c2b6d9421de8bc5758325bd45_48047096.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/64169519dcba7fc5d81daeaebdf60abd_73454922.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d55b7209ff257681eeab8779ed9fcc46_28826297.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/ca0f6bad1e041f3f04b3e760fdba9e1f_1314791.png change filename to text .wget -O 6.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/2bc4528f8c4cb276a0ef970e929b6421_44045769.jpg change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/76171e7dba631f120b7ab2e6eae38385_43281821.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d484583aafbce5251799d6c446231a57_73355537.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/9b152dbdb58fb88b209e2143760dd9cc_59286534.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/582915e63927a86ebb60551931b3f4e1_53308178.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c38fd08ab59053db7d5ec218b2f6a485_73186259.png change filename to text .imagette212908361741702623/ imagette212908361741702623/1741702392_1316561_1343063342_657700820465f2d009f11564ea1214ca_rle_crop_3705612537_0.png.png imagette212908361741702623/1741702392_1316561_1343063342_657700820465f2d009f11564ea1214ca_rle_crop_3705612543_0.png.png imagette212908361741702623/1741702106_1900181_1343061355_c48adc91d9c524b0a59acca903d2020f_rle_crop_3705603927_0.png.png imagette212908361741702623/1741702392_1316561_1343063189_9c9ef6c1b10fef9f8ebe4e3b5c85246c_rle_crop_3705612655_0.png.png imagette212908361741702623/1741702170_1313901_1343060293_76d6374c52e2d8ddaef759a4980719f2_rle_crop_3705604972_0.png.png imagette212908361741702623/1741702251_1314736_1343060684_d4d7d120e422411f4cc4f0f7805a219b_rle_crop_3705609661_0.png.png imagette212908361741702623/1741702251_1314736_1343060684_d4d7d120e422411f4cc4f0f7805a219b_rle_crop_3705606455_0.png.png imagette212908361741702623/1741702407_1904345_1343063401_70c004fe262307957d7d8d1d833424d1_rle_crop_3705613221_0.png.png imagette212908361741702623/1741702251_1314736_1343060684_d4d7d120e422411f4cc4f0f7805a219b_bib_crop_3705606462_0.jpg.jpg imagette212908361741702623/1741702142_1313319_1343060684_d4d7d120e422411f4cc4f0f7805a219b_rle_crop_3705606462_0.png.png imagette212908361741702623/1741702392_1316561_1343063342_657700820465f2d009f11564ea1214ca_rle_crop_3705612541_0.png.png imagette212908361741702623/1741702142_1313319_1343060684_d4d7d120e422411f4cc4f0f7805a219b_rle_crop_3705606455_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/b90370ded5337adf64c0914c0f315457_59204533.png imagette212908361741702623 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21290771 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21290844,21290845,21290846,21290847,21290848,21290849,21290850,21290851,21290852,21290853,21290854,21290855?tags=Carton_gris,Carton_brun,autre_refus,plastique,Teint_Dans_La_Masse,mal_croppe,kraft,flou,papier,cartonnette,metal,environnement your option no_mail is active, we will not send the real mail to your client args[1343065158] : ('0.0842144573977629',) no score found for photo 1343065158 We are sending mail with results at report@fotonower.com args[1343065117] : ('0.0842144573977629',) no score found for photo 1343065117 We are sending mail with results at report@fotonower.com args[1343065091] : ('0.0842144573977629',) no score found for photo 1343065091 We are sending mail with results at report@fotonower.com args[1343065066] : ('0.0842144573977629',) no score found for photo 1343065066 We are sending mail with results at report@fotonower.com args[1343065031] : ('0.0842144573977629',) no score found for photo 1343065031 We are sending mail with results at report@fotonower.com args[1343064910] : ('0.0842144573977629',) no score found for photo 1343064910 We are sending mail with results at report@fotonower.com args[1343064900] : ('0.0842144573977629',) no score found for photo 1343064900 We are sending mail with results at report@fotonower.com args[1343064890] : ('0.0842144573977629',) no score found for photo 1343064890 We are sending mail with results at report@fotonower.com args[1343064863] : ('0.0842144573977629',) no score found for photo 1343064863 We are sending mail with results at report@fotonower.com args[1343064763] : ('0.0842144573977629',) no score found for photo 1343064763 We are sending mail with results at report@fotonower.com args[1343064742] : ('0.0842144573977629',) no score found for photo 1343064742 We are sending mail with results at report@fotonower.com args[1343064709] : ('0.0842144573977629',) no score found for photo 1343064709 We are sending mail with results at report@fotonower.com args[1343064694] : ('0.0842144573977629',) no score found for photo 1343064694 We are sending mail with results at report@fotonower.com args[1343064681] : ('0.0842144573977629',) no score found for photo 1343064681 We are sending mail with results at report@fotonower.com args[1343064659] : ('0.0842144573977629',) no score found for photo 1343064659 We are sending mail with results at report@fotonower.com args[1343064421] : ('0.0842144573977629',) no score found for photo 1343064421 We are sending mail with results at report@fotonower.com args[1343064409] : ('0.0842144573977629',) no score found for photo 1343064409 We are sending mail with results at report@fotonower.com args[1343064378] : ('0.0842144573977629',) no score found for photo 1343064378 We are sending mail with results at report@fotonower.com args[1343064344] : ('0.0842144573977629',) no score found for photo 1343064344 We are sending mail with results at report@fotonower.com refus_total : 0.0842144573977629 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=21290771 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_P21290771_11-03-2025_15_16_59.pdf results_Auto_P21290771_11-03-2025_15_16_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21290771_11-03-2025_15_16_59.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','21290771','results_Auto_P21290771_11-03-2025_15_16_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21290771_11-03-2025_15_16_59.pdf','pdf','','0.38','0.0842144573977629') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21290771]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1343065158, 1343065117, 1343065091, 1343065066, 1343065031, 1343064910, 1343064900, 1343064890, 1343064863, 1343064763, 1343064742, 1343064709, 1343064694, 1343064681, 1343064659, 1343064421, 1343064409, 1343064378, 1343064344] map_info['map_portfolio_photo'] : {21290771: [1343065158, 1343065117, 1343065091, 1343065066, 1343065031, 1343064910, 1343064900, 1343064890, 1343064863, 1343064763, 1343064742, 1343064709, 1343064694, 1343064681, 1343064659, 1343064421, 1343064409, 1343064378, 1343064344, 1343064078, 1343064054, 1343064034, 1343064010, 1343063986, 1343063979, 1343063939, 1343063915, 1343063892, 1343063859, 1343063730, 1343063682, 1343063643, 1343063602, 1343063455, 1343063401, 1343063342, 1343063283, 1343063189, 1343063132, 1343063129, 1343063083, 1343062745, 1343062700, 1343062668, 1343062293, 1343062253, 1343062216, 1343062106, 1343062025, 1343061762, 1343061741, 1343061707, 1343061679, 1343061621, 1343061360, 1343061355, 1343061337, 1343061319, 1343061301, 1343060887, 1343060834, 1343060742, 1343060684, 1343060628, 1343060576, 1343060293, 1343060242, 1343060178, 1343060099, 1343059718, 1343059672, 1343059615, 1343059562, 1343059518, 1343059479, 1343059352, 1343059342, 1343059320, 1343059294]} final : False mtd_id 4302 list_pids : [1343065158, 1343065117, 1343065091, 1343065066, 1343065031, 1343064910, 1343064900, 1343064890, 1343064863, 1343064763, 1343064742, 1343064709, 1343064694, 1343064681, 1343064659, 1343064421, 1343064409, 1343064378, 1343064344] 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, '2658485') ('4302', '21290771', '1343065158', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343065117', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343065091', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343065066', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343065031', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064910', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064900', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064890', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064863', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064763', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064742', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064709', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064694', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064681', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064659', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064421', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064409', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064378', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064344', None, None, None, None, None, '2658485') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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', '21290771', '1343065158', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343065117', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343065091', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343065066', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343065031', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064910', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064900', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064890', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064863', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064763', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064742', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064709', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064694', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064681', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064659', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064421', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064409', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064378', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064344', None, None, None, None, None, '2658485')] time used for this insertion : 0.12471723556518555 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.57446026802063 time spend to save output : 0.1250011920928955 total time spend for step 4 : 6.699461460113525 step5:split_time_score Tue Mar 11 15:17:05 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 : ['21290771'] 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 : [('21290771',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21290771) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1343065091: {'path': 'temp/1741702619_1385634_1343065091_8bcd184767bbfb2f90813a1c38e3a7d4.jpg', 'extension': 'jpg'}, 1343065117: {'path': 'temp/1741702619_1385634_1343065117_95713592adb0b2a91a110d258cc2a9bd.jpg', 'extension': 'jpg'}, 1343065158: {'path': 'temp/1741702619_1385634_1343065158_837bbaac75135ca7878d8e643040d2d8.jpg', 'extension': 'jpg'}, 1343064659: {'path': 'temp/1741702619_1385634_1343064659_72c2d1a9bbc8bada90612ecdbf840b64.jpg', 'extension': 'jpg'}, 1343064681: {'path': 'temp/1741702619_1385634_1343064681_756cbcc541536da2db3fb8e712e75331.jpg', 'extension': 'jpg'}, 1343064694: {'path': 'temp/1741702619_1385634_1343064694_4a5b28bdefb2a647d41d9657cf0bcf0e.jpg', 'extension': 'jpg'}, 1343064709: {'path': 'temp/1741702619_1385634_1343064709_b363e6b1c18f3b1fe3921a53c6a47ab2.jpg', 'extension': 'jpg'}, 1343064900: {'path': 'temp/1741702619_1385634_1343064900_1b15f217ed38a0f7afd212926f9f38c6.jpg', 'extension': 'jpg'}, 1343064910: {'path': 'temp/1741702619_1385634_1343064910_62eadac6dc0561752d0462186899a267.jpg', 'extension': 'jpg'}, 1343065031: {'path': 'temp/1741702619_1385634_1343065031_f2284a8c3171784ad7a32fe925f2314a.jpg', 'extension': 'jpg'}, 1343065066: {'path': 'temp/1741702619_1385634_1343065066_b38e19745bea19ab24452d443f8c50f3.jpg', 'extension': 'jpg'}, 1343064344: {'path': 'temp/1741702619_1385634_1343064344_a5a6c9d938fd840e5b2d7d3953fd7cd2.jpg', 'extension': 'jpg'}, 1343064378: {'path': 'temp/1741702619_1385634_1343064378_95b1c3257814f06b5c175f203c95c5e3.jpg', 'extension': 'jpg'}, 1343064409: {'path': 'temp/1741702619_1385634_1343064409_b8136259dc4ad22ab6eee93bad33c9db.jpg', 'extension': 'jpg'}, 1343064421: {'path': 'temp/1741702619_1385634_1343064421_6ce5f70c495352938ca2b774b78d81fc.jpg', 'extension': 'jpg'}, 1343064742: {'path': 'temp/1741702619_1385634_1343064742_4a3aafcfbfdf9836b49e90fa270416c4.jpg', 'extension': 'jpg'}, 1343064763: {'path': 'temp/1741702619_1385634_1343064763_63e054f1ad76ba3a7e75f759a36edd0a.jpg', 'extension': 'jpg'}, 1343064863: {'path': 'temp/1741702619_1385634_1343064863_c59c0b89026f4061e0155eba70306c21.jpg', 'extension': 'jpg'}, 1343064890: {'path': 'temp/1741702619_1385634_1343064890_50663b8017e22725fcd79fc3ab830ff6.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 = 21290771; (('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 = 21290771 group by h (('15', 79),) 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=21290771 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 (21290771) 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 (21290771) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11032025 21290771 Nombre de photos uploadées : 79 / 23040 (0%) 11032025 21290771 Nombre de photos taguées (types de déchets): 0 / 79 (0%) 11032025 21290771 Nombre de photos taguées (volume) : 0 / 79 (0%) [{'photo_id': 1343059352, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/d053bb106dd7c3c3cdffd7e63df5752d.jpg', 'username': None, 'uploaded_at': 1741701703, 'text': 'image_11032025_15_00_04_010137m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1343059342, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/08ebac50f66228263fd3643b731c8579.jpg', 'username': None, 'uploaded_at': 1741701703, 'text': 'image_11032025_15_00_14_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1343059320, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/f19206270c6b39a25cb02b8c5290d42d.jpg', 'username': None, 'uploaded_at': 1741701703, 'text': 'image_11032025_15_00_25_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1343059294, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/11/c91794eee2834ae03c9753589d1bd829.jpg', 'username': None, 'uploaded_at': 1741701703, 'text': 'image_11032025_15_00_44_010133m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ??????????????????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003711700439453125 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21290771, '2025-03-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1656727,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02747488021850586 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= 1656727 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1656727, 'dashboard_run_id': 1666801, 'mtr_portfolio_id': 21288922, 'dashboard_result_id': 9349620, '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_P21288922_11-03-2025_14_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21288935, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21288936, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21288937, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21288938, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21288939, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21288940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21288941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21288942, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21288943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21288944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21288945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21288946, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1666801, 'mtr_portfolio_id': 21289999, 'dashboard_result_id': 9349621, '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_P21289999_11-03-2025_15_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21290054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21290055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21290056, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21290057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21290058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21290059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21290060, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21290061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21290062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21290063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21290064, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21290065, 'pht': 3726}}"}, {'dashboat_entry_day': 1656727, 'dashboard_run_id': 1666801, 'mtr_portfolio_id': 21290771, 'dashboard_result_id': 9349622, '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_P21290771_11-03-2025_15_12_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21290832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21290833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21290834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21290835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21290836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21290837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21290838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21290839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21290840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21290841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21290842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21290843, '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 = 21288922 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': 2658363, 'mtr_portfolio_id': 21288922, 'created_at': datetime.datetime(2025, 3, 11, 14, 48, 58), 'result': '0.0711878413736381', 'result_long': None, 'result_double': None}] Qualite : 0.0711878413736381 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21288922 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21288922_11-03-2025_14_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21288922 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_P21288922_11-03-2025_14_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21288935, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21288936, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21288937, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21288938, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21288939, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21288940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21288941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21288942, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21288943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21288944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21288945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21288946, 'pht': 3726}}" where mtr_portfolio_id = 21288922 and dashboard_run_id = 1666801 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`=21288922 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9349620, 0.0711878413736381, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21288922_11-03-2025_14_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21288935, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21288936, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21288937, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21288938, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21288939, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21288940, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21288941, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21288942, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21288943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21288944, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21288945, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21288946, '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 = 21289999 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': 2658407, 'mtr_portfolio_id': 21289999, 'created_at': datetime.datetime(2025, 3, 11, 15, 2, 59), 'result': '0.06463648848266758', 'result_long': None, 'result_double': None}] Qualite : 0.06463648848266758 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21289999 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21289999_11-03-2025_15_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21289999 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_P21289999_11-03-2025_15_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21290054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21290055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21290056, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21290057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21290058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21290059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21290060, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21290061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21290062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21290063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21290064, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21290065, 'pht': 3726}}" where mtr_portfolio_id = 21289999 and dashboard_run_id = 1666801 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`=21289999 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9349621, 0.06463648848266758, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21289999_11-03-2025_15_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21290054, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21290055, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21290056, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21290057, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21290058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21290059, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21290060, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21290061, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21290062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21290063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21290064, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21290065, '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 = 21290771 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': 2658485, 'mtr_portfolio_id': 21290771, 'created_at': datetime.datetime(2025, 3, 11, 15, 16, 58), 'result': '0.0842144573977629', 'result_long': None, 'result_double': None}] Qualite : 0.0842144573977629 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21290771 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21290771_11-03-2025_15_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21290771 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_P21290771_11-03-2025_15_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21290832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21290833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21290834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21290835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21290836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21290837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21290838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21290839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21290840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21290841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21290842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21290843, 'pht': 3726}}" where mtr_portfolio_id = 21290771 and dashboard_run_id = 1666801 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`=21290771 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9349622, 0.0842144573977629, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21290771_11-03-2025_15_16_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21290832, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21290833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21290834, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21290835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21290836, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21290837, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21290838, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21290839, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21290840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21290841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21290842, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21290843, '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 (21288922,21289999,21290771) result : ((1343049847,), (1343049879,), (1343049890,), (1343049969,), (1343049996,), (1343050175,), (1343050484,), (1343050495,), (1343050599,), (1343050641,), (1343050681,), (1343050715,), (1343050753,), (1343051052,), (1343051082,), (1343051094,), (1343051151,), (1343051199,), (1343051546,), (1343051624,), (1343051846,), (1343051989,), (1343052407,), (1343052486,), (1343052542,), (1343052572,), (1343052592,), (1343052601,), (1343052723,), (1343052768,), (1343052802,), (1343052857,), (1343053210,), (1343053281,), (1343053327,), (1343053364,), (1343053392,), (1343053454,), (1343053656,), (1343053689,), (1343053712,), (1343053791,), (1343053796,), (1343053801,), (1343053807,), (1343053814,), (1343053821,), (1343053910,), (1343053916,), (1343053927,), (1343053929,), (1343053947,), (1343054289,), (1343054307,), (1343054336,), (1343054432,), (1343054500,), (1343054573,), (1343054963,), (1343055025,), (1343055094,), (1343055179,), (1343055544,), (1343055549,), (1343055579,), (1343055602,), (1343055625,), (1343055951,), (1343055831,), (1343055859,), (1343055885,), (1343055919,), (1343056204,), (1343056239,), (1343056289,), (1343056322,), (1343056360,), (1343056400,), (1343056408,), (1343056417,), (1343056422,), (1343056622,), (1343056629,), (1343056642,), (1343056913,), (1343056963,), (1343056970,), (1343056976,), (1343056983,), (1343056998,), (1343057007,), (1343057171,), (1343057178,), (1343057185,), (1343057189,), (1343057195,), (1343057205,), (1343057314,), (1343057339,), (1343057382,), (1343057415,), (1343057450,), (1343057537,), (1343057550,), (1343057590,), (1343057595,), (1343057599,), (1343057601,), (1343057872,), (1343057898,), (1343057926,), (1343058003,), (1343058136,), (1343058140,), (1343058146,), (1343058149,), (1343058150,), (1343058183,), (1343058245,), (1343058297,), (1343058343,), (1343058361,), (1343058406,), (1343058814,), (1343058854,), (1343058873,), (1343058877,), (1343058923,), (1343058930,), (1343058950,), (1343058956,), (1343058987,), (1343058990,), (1343059025,), (1343059034,), (1343059128,), (1343059191,), (1343059380,), (1343059294,), (1343059320,), (1343059342,), (1343059352,), (1343059479,), (1343059518,), (1343059562,), (1343059615,), (1343059672,), (1343059718,), (1343060099,), (1343060178,), (1343060242,), (1343060293,), (1343060576,), (1343060628,), (1343060684,), (1343060742,), (1343060834,), (1343060887,), (1343061301,), (1343061319,), (1343061337,), (1343061355,), (1343061360,), (1343061621,), (1343061679,), (1343061707,), (1343061741,), (1343061762,), (1343062025,), (1343062106,), (1343062216,), (1343062253,), (1343062293,), (1343062668,), (1343062700,), (1343062745,), (1343063083,), (1343063129,), (1343063132,), (1343063189,), (1343063283,), (1343063342,), (1343063401,), (1343063455,), (1343063602,), (1343063643,), (1343063682,), (1343063730,), (1343063859,), (1343063892,), (1343063915,), (1343063939,), (1343063979,), (1343063986,), (1343064010,), (1343064034,), (1343064054,), (1343064078,), (1343064344,), (1343064378,), (1343064409,), (1343064421,), (1343064659,), (1343064681,), (1343064694,), (1343064709,), (1343064742,), (1343064763,), (1343064863,), (1343064890,), (1343064900,), (1343064910,), (1343065031,), (1343065066,), (1343065091,), (1343065117,), (1343065158,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11032025': {'nb_upload': 79, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21290771]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1343065158, 1343065117, 1343065091, 1343065066, 1343065031, 1343064910, 1343064900, 1343064890, 1343064863, 1343064763, 1343064742, 1343064709, 1343064694, 1343064681, 1343064659, 1343064421, 1343064409, 1343064378, 1343064344] map_info['map_portfolio_photo'] : {21290771: [1343065158, 1343065117, 1343065091, 1343065066, 1343065031, 1343064910, 1343064900, 1343064890, 1343064863, 1343064763, 1343064742, 1343064709, 1343064694, 1343064681, 1343064659, 1343064421, 1343064409, 1343064378, 1343064344, 1343064078, 1343064054, 1343064034, 1343064010, 1343063986, 1343063979, 1343063939, 1343063915, 1343063892, 1343063859, 1343063730, 1343063682, 1343063643, 1343063602, 1343063455, 1343063401, 1343063342, 1343063283, 1343063189, 1343063132, 1343063129, 1343063083, 1343062745, 1343062700, 1343062668, 1343062293, 1343062253, 1343062216, 1343062106, 1343062025, 1343061762, 1343061741, 1343061707, 1343061679, 1343061621, 1343061360, 1343061355, 1343061337, 1343061319, 1343061301, 1343060887, 1343060834, 1343060742, 1343060684, 1343060628, 1343060576, 1343060293, 1343060242, 1343060178, 1343060099, 1343059718, 1343059672, 1343059615, 1343059562, 1343059518, 1343059479, 1343059352, 1343059342, 1343059320, 1343059294]} final : True mtd_id 4302 list_pids : [1343065158, 1343065117, 1343065091, 1343065066, 1343065031, 1343064910, 1343064900, 1343064890, 1343064863, 1343064763, 1343064742, 1343064709, 1343064694, 1343064681, 1343064659, 1343064421, 1343064409, 1343064378, 1343064344] Looping around the photos to save general results len do output : 1 /21290771Didn'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, '2658485') ('4302', '21290771', '1343065158', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343065117', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343065091', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343065066', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343065031', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064910', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064900', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064890', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064863', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064763', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064742', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064709', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064694', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064681', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064659', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064421', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064409', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064378', None, None, None, None, None, '2658485') ('4302', None, None, None, None, None, None, None, '2658485') ('4302', '21290771', '1343064344', None, None, None, None, None, '2658485') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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, '21290771', 'None', None, None, None, None, '2658485'), ('4302', '21290771', '1343065158', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343065117', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343065091', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343065066', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343065031', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064910', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064900', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064890', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064863', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064763', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064742', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064709', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064694', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064681', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064659', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064421', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064409', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064378', None, None, None, None, None, '2658485'), ('4302', '21290771', '1343064344', None, None, None, None, None, '2658485')] time used for this insertion : 0.01811981201171875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3497748374938965 time spend to save output : 0.018423795700073242 total time spend for step 5 : 0.3681986331939697 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 (2658485) 2.60user 2.12system 0:11.46elapsed 41%CPU (0avgtext+0avgdata 162816maxresident)k 6520inputs+23696outputs (94major+75672minor)pagefaults 0swaps