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 : 799870 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 (2757457) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2757457) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22382953 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2757457'] with mtr_portfolio_ids : ['22382953'] and first list_photo_ids : [] new path : /proc/799870/ Name: python3 Umask: 0002 State: R (running) Tgid: 799870 Ngid: 0 Pid: 799870 PPid: 799869 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 799870 NSpid: 799870 NSpgid: 794969 NSsid: 794969 VmPeak: 1106936 kB VmSize: 1106936 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98884 kB VmRSS: 98884 kB RssAnon: 59772 kB RssFile: 39112 kB RssShmem: 0 kB VmData: 865684 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 52 nonvoluntary_ctxt_switches: 81 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '799870', 'Ngid': '0', 'Pid': '799870', 'PPid': '799869', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '799870', 'NSpid': '799870', 'NSpgid': '794969', 'NSsid': '794969', 'VmPeak': '1106936 kB', 'VmSize': '1106936 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98884 kB', 'VmRSS': '98884 kB', 'RssAnon': '59772 kB', 'RssFile': '39112 kB', 'RssShmem': '0 kB', 'VmData': '865684 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '52', 'nonvoluntary_ctxt_switches': '81'} ('datou_batch_current', '799870', '1106936', '0', '1106936', '865684', '98884', b'', 'marlene', '2757457') 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 (22382953) 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 (2757457 ) ) 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 (22382953) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1353377286, 'portfolio_id': 22382953}, {'photo_id': 1353377249, 'portfolio_id': 22382953}, {'photo_id': 1353377217, 'portfolio_id': 22382953}, {'photo_id': 1353377182, 'portfolio_id': 22382953}, {'photo_id': 1353377070, 'portfolio_id': 22382953}, {'photo_id': 1353377014, 'portfolio_id': 22382953}, {'photo_id': 1353376951, 'portfolio_id': 22382953}, {'photo_id': 1353376884, 'portfolio_id': 22382953}, {'photo_id': 1353376830, 'portfolio_id': 22382953}, {'photo_id': 1353376776, 'portfolio_id': 22382953}, {'photo_id': 1353375981, 'portfolio_id': 22382953}, {'photo_id': 1353375952, 'portfolio_id': 22382953}, {'photo_id': 1353375924, 'portfolio_id': 22382953}, {'photo_id': 1353375897, 'portfolio_id': 22382953}, {'photo_id': 1353375780, 'portfolio_id': 22382953}, {'photo_id': 1353375757, 'portfolio_id': 22382953}, {'photo_id': 1353375746, 'portfolio_id': 22382953}, {'photo_id': 1353375713, 'portfolio_id': 22382953}, {'photo_id': 1353375682, 'portfolio_id': 22382953}, {'photo_id': 1353375072, 'portfolio_id': 22382953}, {'photo_id': 1353375043, 'portfolio_id': 22382953}, {'photo_id': 1353375016, 'portfolio_id': 22382953}, {'photo_id': 1353374911, 'portfolio_id': 22382953}, {'photo_id': 1353374896, 'portfolio_id': 22382953}, {'photo_id': 1353374891, 'portfolio_id': 22382953}, {'photo_id': 1353374751, 'portfolio_id': 22382953}, {'photo_id': 1353374748, 'portfolio_id': 22382953}, {'photo_id': 1353374743, 'portfolio_id': 22382953}, {'photo_id': 1353374740, 'portfolio_id': 22382953}, {'photo_id': 1353374736, 'portfolio_id': 22382953}, {'photo_id': 1353374730, 'portfolio_id': 22382953}, {'photo_id': 1353374683, 'portfolio_id': 22382953}, {'photo_id': 1353374679, 'portfolio_id': 22382953}, {'photo_id': 1353374676, 'portfolio_id': 22382953}, {'photo_id': 1353374487, 'portfolio_id': 22382953}, {'photo_id': 1353374432, 'portfolio_id': 22382953}, {'photo_id': 1353374429, 'portfolio_id': 22382953}, {'photo_id': 1353374418, 'portfolio_id': 22382953}, {'photo_id': 1353374328, 'portfolio_id': 22382953}, {'photo_id': 1353374213, 'portfolio_id': 22382953}, {'photo_id': 1353374023, 'portfolio_id': 22382953}, {'photo_id': 1353374019, 'portfolio_id': 22382953}, {'photo_id': 1353374015, 'portfolio_id': 22382953}, {'photo_id': 1353373997, 'portfolio_id': 22382953}, {'photo_id': 1353373942, 'portfolio_id': 22382953}, {'photo_id': 1353373529, 'portfolio_id': 22382953}, {'photo_id': 1353373507, 'portfolio_id': 22382953}, {'photo_id': 1353373503, 'portfolio_id': 22382953}, {'photo_id': 1353373499, 'portfolio_id': 22382953}, {'photo_id': 1353373497, 'portfolio_id': 22382953}, {'photo_id': 1353373043, 'portfolio_id': 22382953}, {'photo_id': 1353373014, 'portfolio_id': 22382953}, {'photo_id': 1353372982, 'portfolio_id': 22382953}, {'photo_id': 1353372946, 'portfolio_id': 22382953}, {'photo_id': 1353372644, 'portfolio_id': 22382953}, {'photo_id': 1353372599, 'portfolio_id': 22382953}, {'photo_id': 1353372484, 'portfolio_id': 22382953}, {'photo_id': 1353372455, 'portfolio_id': 22382953}, {'photo_id': 1353372412, 'portfolio_id': 22382953}, {'photo_id': 1353372343, 'portfolio_id': 22382953}, {'photo_id': 1353371877, 'portfolio_id': 22382953}, {'photo_id': 1353371841, 'portfolio_id': 22382953}, {'photo_id': 1353371800, 'portfolio_id': 22382953}, {'photo_id': 1353371770, 'portfolio_id': 22382953}, {'photo_id': 1353371734, 'portfolio_id': 22382953}, {'photo_id': 1353371358, 'portfolio_id': 22382953}, {'photo_id': 1353371336, 'portfolio_id': 22382953}, {'photo_id': 1353371317, 'portfolio_id': 22382953}] map_portfolio_id_photo_id: {22382953: [1353377286, 1353377249, 1353377217, 1353377182, 1353377070, 1353377014, 1353376951, 1353376884, 1353376830, 1353376776, 1353375981, 1353375952, 1353375924, 1353375897, 1353375780, 1353375757, 1353375746, 1353375713, 1353375682, 1353375072, 1353375043, 1353375016, 1353374911, 1353374896, 1353374891, 1353374751, 1353374748, 1353374743, 1353374740, 1353374736, 1353374730, 1353374683, 1353374679, 1353374676, 1353374487, 1353374432, 1353374429, 1353374418, 1353374328, 1353374213, 1353374023, 1353374019, 1353374015, 1353373997, 1353373942, 1353373529, 1353373507, 1353373503, 1353373499, 1353373497, 1353373043, 1353373014, 1353372982, 1353372946, 1353372644, 1353372599, 1353372484, 1353372455, 1353372412, 1353372343, 1353371877, 1353371841, 1353371800, 1353371770, 1353371734, 1353371358, 1353371336, 1353371317]} ##### 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.016237974166870117 #### 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 Thu Apr 24 14:16:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22382953) 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 : 22382953 get user id for portfolio 22382953 get sub ptf for main ptf 22382953, type 3726 and hashtags ['Teint_Dans_La_Masse', 'Carton_brun', 'mal_croppe', 'kraft', 'environnement', 'metal', 'autre_refus', 'Carton_gris', 'plastique', 'papier', 'flou', 'cartonnette'] 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`=22382953 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_brun','mal_croppe','kraft','environnement','metal','autre_refus','Carton_gris','plastique','papier','flou','cartonnette')) 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`=22382953 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_brun','mal_croppe','kraft','environnement','metal','autre_refus','Carton_gris','plastique','papier','flou','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 22382953, 'sub_port_id': 22382981, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14834007, 'last_updated_at': datetime.datetime(2025, 4, 24, 14, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 14, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 14, 7, 27)}, 'metal': {'main_port_id': 22382953, 'sub_port_id': 22382982, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14834008, 'last_updated_at': datetime.datetime(2025, 4, 24, 14, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 14, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 14, 7, 27)}, 'plastique': {'main_port_id': 22382953, 'sub_port_id': 22382983, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14834009, 'last_updated_at': datetime.datetime(2025, 4, 24, 14, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 14, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 14, 7, 27)}, 'autre_refus': {'main_port_id': 22382953, 'sub_port_id': 22382984, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14834010, 'last_updated_at': datetime.datetime(2025, 4, 24, 14, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 14, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 14, 7, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 22382953, 'sub_port_id': 22382985, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14834011, 'last_updated_at': datetime.datetime(2025, 4, 24, 14, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 14, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 14, 7, 27)}, 'Carton_brun': {'main_port_id': 22382953, 'sub_port_id': 22382986, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14834012, 'last_updated_at': datetime.datetime(2025, 4, 24, 14, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 14, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 14, 7, 27)}, 'Carton_gris': {'main_port_id': 22382953, 'sub_port_id': 22382987, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14834013, 'last_updated_at': datetime.datetime(2025, 4, 24, 14, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 14, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 14, 7, 27)}, 'flou': {'main_port_id': 22382953, 'sub_port_id': 22382988, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14834014, 'last_updated_at': datetime.datetime(2025, 4, 24, 14, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 14, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 14, 7, 27)}, 'cartonnette': {'main_port_id': 22382953, 'sub_port_id': 22382989, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14834015, 'last_updated_at': datetime.datetime(2025, 4, 24, 14, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 14, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 14, 7, 27)}, 'environnement': {'main_port_id': 22382953, 'sub_port_id': 22382990, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14834016, 'last_updated_at': datetime.datetime(2025, 4, 24, 14, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 14, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 14, 7, 27)}, 'kraft': {'main_port_id': 22382953, 'sub_port_id': 22382991, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14834017, 'last_updated_at': datetime.datetime(2025, 4, 24, 14, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 14, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 14, 7, 27)}, 'papier': {'main_port_id': 22382953, 'sub_port_id': 22382992, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14834018, 'last_updated_at': datetime.datetime(2025, 4, 24, 14, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 14, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 14, 7, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22382981 , 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=22382953 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 (22382981) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22382953) result : ((1353371317,), (1353371336,), (1353371358,), (1353371734,), (1353371770,), (1353371800,), (1353371841,), (1353371877,), (1353372343,), (1353372412,), (1353372455,), (1353372484,), (1353372599,), (1353372644,), (1353372946,), (1353372982,), (1353373014,), (1353373043,), (1353373497,), (1353373499,), (1353373503,), (1353373507,), (1353373529,), (1353373942,), (1353373997,), (1353374015,), (1353374019,), (1353374023,), (1353374213,), (1353374328,), (1353374418,), (1353374429,), (1353374432,), (1353374487,), (1353374676,), (1353374679,), (1353374683,), (1353374730,), (1353374736,), (1353374740,), (1353374743,), (1353374748,), (1353374751,), (1353374891,), (1353374896,), (1353374911,), (1353375016,), (1353375043,), (1353375072,), (1353375682,), (1353375713,), (1353375746,), (1353375757,), (1353375780,), (1353375897,), (1353375924,), (1353375952,), (1353375981,), (1353376776,), (1353376830,), (1353376884,), (1353376951,), (1353377014,), (1353377070,), (1353377182,), (1353377217,), (1353377249,), (1353377286,)) 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 (1353371800) 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 22382982 , 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=22382953 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 (22382982) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22382953) result : ((1353371317,), (1353371336,), (1353371358,), (1353371734,), (1353371770,), (1353371800,), (1353371841,), (1353371877,), (1353372343,), (1353372412,), (1353372455,), (1353372484,), (1353372599,), (1353372644,), (1353372946,), (1353372982,), (1353373014,), (1353373043,), (1353373497,), (1353373499,), (1353373503,), (1353373507,), (1353373529,), (1353373942,), (1353373997,), (1353374015,), (1353374019,), (1353374023,), (1353374213,), (1353374328,), (1353374418,), (1353374429,), (1353374432,), (1353374487,), (1353374676,), (1353374679,), (1353374683,), (1353374730,), (1353374736,), (1353374740,), (1353374743,), (1353374748,), (1353374751,), (1353374891,), (1353374896,), (1353374911,), (1353375016,), (1353375043,), (1353375072,), (1353375682,), (1353375713,), (1353375746,), (1353375757,), (1353375780,), (1353375897,), (1353375924,), (1353375952,), (1353375981,), (1353376776,), (1353376830,), (1353376884,), (1353376951,), (1353377014,), (1353377070,), (1353377182,), (1353377217,), (1353377249,), (1353377286,)) 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 (1353371800) 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 22382983 , 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=22382953 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 (22382983) result : ((1353373906,), (1353373907,), (1353373908,), (1353375841,), (1353375842,), (1353375843,), (1353375844,), (1353377295,), (1353377296,), (1353377297,), (1353378047,), (1353378048,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22382953) result : ((1353371317,), (1353371336,), (1353371358,), (1353371734,), (1353371770,), (1353371800,), (1353371841,), (1353371877,), (1353372343,), (1353372412,), (1353372455,), (1353372484,), (1353372599,), (1353372644,), (1353372946,), (1353372982,), (1353373014,), (1353373043,), (1353373497,), (1353373499,), (1353373503,), (1353373507,), (1353373529,), (1353373942,), (1353373997,), (1353374015,), (1353374019,), (1353374023,), (1353374213,), (1353374328,), (1353374418,), (1353374429,), (1353374432,), (1353374487,), (1353374676,), (1353374679,), (1353374683,), (1353374730,), (1353374736,), (1353374740,), (1353374743,), (1353374748,), (1353374751,), (1353374891,), (1353374896,), (1353374911,), (1353375016,), (1353375043,), (1353375072,), (1353375682,), (1353375713,), (1353375746,), (1353375757,), (1353375780,), (1353375897,), (1353375924,), (1353375952,), (1353375981,), (1353376776,), (1353376830,), (1353376884,), (1353376951,), (1353377014,), (1353377070,), (1353377182,), (1353377217,), (1353377249,), (1353377286,)) 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 (1353371800) 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 22382984 , 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=22382953 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 (22382984) result : ((1353373900,), (1353374761,), (1353374762,), (1353374773,), (1353374774,), (1353377280,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22382953) result : ((1353371317,), (1353371336,), (1353371358,), (1353371734,), (1353371770,), (1353371800,), (1353371841,), (1353371877,), (1353372343,), (1353372412,), (1353372455,), (1353372484,), (1353372599,), (1353372644,), (1353372946,), (1353372982,), (1353373014,), (1353373043,), (1353373497,), (1353373499,), (1353373503,), (1353373507,), (1353373529,), (1353373942,), (1353373997,), (1353374015,), (1353374019,), (1353374023,), (1353374213,), (1353374328,), (1353374418,), (1353374429,), (1353374432,), (1353374487,), (1353374676,), (1353374679,), (1353374683,), (1353374730,), (1353374736,), (1353374740,), (1353374743,), (1353374748,), (1353374751,), (1353374891,), (1353374896,), (1353374911,), (1353375016,), (1353375043,), (1353375072,), (1353375682,), (1353375713,), (1353375746,), (1353375757,), (1353375780,), (1353375897,), (1353375924,), (1353375952,), (1353375981,), (1353376776,), (1353376830,), (1353376884,), (1353376951,), (1353377014,), (1353377070,), (1353377182,), (1353377217,), (1353377249,), (1353377286,)) 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 (1353371800) 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 22382985 , 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=22382953 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 (22382985) result : ((1353373890,), (1353373891,), (1353373892,), (1353373893,), (1353374110,), (1353374111,), (1353374711,), (1353374712,), (1353374759,), (1353374772,), (1353375836,), (1353376634,), (1353376635,), (1353376637,), (1353378003,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22382953) result : ((1353371317,), (1353371336,), (1353371358,), (1353371734,), (1353371770,), (1353371800,), (1353371841,), (1353371877,), (1353372343,), (1353372412,), (1353372455,), (1353372484,), (1353372599,), (1353372644,), (1353372946,), (1353372982,), (1353373014,), (1353373043,), (1353373497,), (1353373499,), (1353373503,), (1353373507,), (1353373529,), (1353373942,), (1353373997,), (1353374015,), (1353374019,), (1353374023,), (1353374213,), (1353374328,), (1353374418,), (1353374429,), (1353374432,), (1353374487,), (1353374676,), (1353374679,), (1353374683,), (1353374730,), (1353374736,), (1353374740,), (1353374743,), (1353374748,), (1353374751,), (1353374891,), (1353374896,), (1353374911,), (1353375016,), (1353375043,), (1353375072,), (1353375682,), (1353375713,), (1353375746,), (1353375757,), (1353375780,), (1353375897,), (1353375924,), (1353375952,), (1353375981,), (1353376776,), (1353376830,), (1353376884,), (1353376951,), (1353377014,), (1353377070,), (1353377182,), (1353377217,), (1353377249,), (1353377286,)) 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 (1353371800) 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 22382986 , 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=22382953 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 (22382986) result : ((1353373903,), (1353373904,), (1353374115,), (1353374539,), (1353374716,), (1353374767,), (1353374889,), (1353374890,), (1353375837,), (1353375838,), (1353375839,), (1353376088,), (1353376089,), (1353376681,), (1353376682,), (1353376683,), (1353377294,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22382953) result : ((1353371317,), (1353371336,), (1353371358,), (1353371734,), (1353371770,), (1353371800,), (1353371841,), (1353371877,), (1353372343,), (1353372412,), (1353372455,), (1353372484,), (1353372599,), (1353372644,), (1353372946,), (1353372982,), (1353373014,), (1353373043,), (1353373497,), (1353373499,), (1353373503,), (1353373507,), (1353373529,), (1353373942,), (1353373997,), (1353374015,), (1353374019,), (1353374023,), (1353374213,), (1353374328,), (1353374418,), (1353374429,), (1353374432,), (1353374487,), (1353374676,), (1353374679,), (1353374683,), (1353374730,), (1353374736,), (1353374740,), (1353374743,), (1353374748,), (1353374751,), (1353374891,), (1353374896,), (1353374911,), (1353375016,), (1353375043,), (1353375072,), (1353375682,), (1353375713,), (1353375746,), (1353375757,), (1353375780,), (1353375897,), (1353375924,), (1353375952,), (1353375981,), (1353376776,), (1353376830,), (1353376884,), (1353376951,), (1353377014,), (1353377070,), (1353377182,), (1353377217,), (1353377249,), (1353377286,)) 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 (1353371800) 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 22382987 , 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=22382953 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 (22382987) result : ((1353374112,), (1353374537,), (1353374715,), (1353374764,), (1353374765,), (1353374766,), (1353374886,), (1353376085,), (1353376649,), (1353378020,), (1353378021,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22382953) result : ((1353371317,), (1353371336,), (1353371358,), (1353371734,), (1353371770,), (1353371800,), (1353371841,), (1353371877,), (1353372343,), (1353372412,), (1353372455,), (1353372484,), (1353372599,), (1353372644,), (1353372946,), (1353372982,), (1353373014,), (1353373043,), (1353373497,), (1353373499,), (1353373503,), (1353373507,), (1353373529,), (1353373942,), (1353373997,), (1353374015,), (1353374019,), (1353374023,), (1353374213,), (1353374328,), (1353374418,), (1353374429,), (1353374432,), (1353374487,), (1353374676,), (1353374679,), (1353374683,), (1353374730,), (1353374736,), (1353374740,), (1353374743,), (1353374748,), (1353374751,), (1353374891,), (1353374896,), (1353374911,), (1353375016,), (1353375043,), (1353375072,), (1353375682,), (1353375713,), (1353375746,), (1353375757,), (1353375780,), (1353375897,), (1353375924,), (1353375952,), (1353375981,), (1353376776,), (1353376830,), (1353376884,), (1353376951,), (1353377014,), (1353377070,), (1353377182,), (1353377217,), (1353377249,), (1353377286,)) 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 (1353371800) 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 22382988 , 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=22382953 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 (22382988) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22382953) result : ((1353371317,), (1353371336,), (1353371358,), (1353371734,), (1353371770,), (1353371800,), (1353371841,), (1353371877,), (1353372343,), (1353372412,), (1353372455,), (1353372484,), (1353372599,), (1353372644,), (1353372946,), (1353372982,), (1353373014,), (1353373043,), (1353373497,), (1353373499,), (1353373503,), (1353373507,), (1353373529,), (1353373942,), (1353373997,), (1353374015,), (1353374019,), (1353374023,), (1353374213,), (1353374328,), (1353374418,), (1353374429,), (1353374432,), (1353374487,), (1353374676,), (1353374679,), (1353374683,), (1353374730,), (1353374736,), (1353374740,), (1353374743,), (1353374748,), (1353374751,), (1353374891,), (1353374896,), (1353374911,), (1353375016,), (1353375043,), (1353375072,), (1353375682,), (1353375713,), (1353375746,), (1353375757,), (1353375780,), (1353375897,), (1353375924,), (1353375952,), (1353375981,), (1353376776,), (1353376830,), (1353376884,), (1353376951,), (1353377014,), (1353377070,), (1353377182,), (1353377217,), (1353377249,), (1353377286,)) 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 (1353371800) 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 22382989 , 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=22382953 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 (22382989) result : ((1353372810,), (1353373902,), (1353374888,), (1353376086,), (1353376665,), (1353376666,), (1353377291,), (1353377292,), (1353377293,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22382953) result : ((1353371317,), (1353371336,), (1353371358,), (1353371734,), (1353371770,), (1353371800,), (1353371841,), (1353371877,), (1353372343,), (1353372412,), (1353372455,), (1353372484,), (1353372599,), (1353372644,), (1353372946,), (1353372982,), (1353373014,), (1353373043,), (1353373497,), (1353373499,), (1353373503,), (1353373507,), (1353373529,), (1353373942,), (1353373997,), (1353374015,), (1353374019,), (1353374023,), (1353374213,), (1353374328,), (1353374418,), (1353374429,), (1353374432,), (1353374487,), (1353374676,), (1353374679,), (1353374683,), (1353374730,), (1353374736,), (1353374740,), (1353374743,), (1353374748,), (1353374751,), (1353374891,), (1353374896,), (1353374911,), (1353375016,), (1353375043,), (1353375072,), (1353375682,), (1353375713,), (1353375746,), (1353375757,), (1353375780,), (1353375897,), (1353375924,), (1353375952,), (1353375981,), (1353376776,), (1353376830,), (1353376884,), (1353376951,), (1353377014,), (1353377070,), (1353377182,), (1353377217,), (1353377249,), (1353377286,)) 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 (1353371800) 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 22382990 , 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=22382953 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 (22382990) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22382953) result : ((1353371317,), (1353371336,), (1353371358,), (1353371734,), (1353371770,), (1353371800,), (1353371841,), (1353371877,), (1353372343,), (1353372412,), (1353372455,), (1353372484,), (1353372599,), (1353372644,), (1353372946,), (1353372982,), (1353373014,), (1353373043,), (1353373497,), (1353373499,), (1353373503,), (1353373507,), (1353373529,), (1353373942,), (1353373997,), (1353374015,), (1353374019,), (1353374023,), (1353374213,), (1353374328,), (1353374418,), (1353374429,), (1353374432,), (1353374487,), (1353374676,), (1353374679,), (1353374683,), (1353374730,), (1353374736,), (1353374740,), (1353374743,), (1353374748,), (1353374751,), (1353374891,), (1353374896,), (1353374911,), (1353375016,), (1353375043,), (1353375072,), (1353375682,), (1353375713,), (1353375746,), (1353375757,), (1353375780,), (1353375897,), (1353375924,), (1353375952,), (1353375981,), (1353376776,), (1353376830,), (1353376884,), (1353376951,), (1353377014,), (1353377070,), (1353377182,), (1353377217,), (1353377249,), (1353377286,)) 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 (1353371800) 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 22382991 , 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=22382953 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 (22382991) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22382953) result : ((1353371317,), (1353371336,), (1353371358,), (1353371734,), (1353371770,), (1353371800,), (1353371841,), (1353371877,), (1353372343,), (1353372412,), (1353372455,), (1353372484,), (1353372599,), (1353372644,), (1353372946,), (1353372982,), (1353373014,), (1353373043,), (1353373497,), (1353373499,), (1353373503,), (1353373507,), (1353373529,), (1353373942,), (1353373997,), (1353374015,), (1353374019,), (1353374023,), (1353374213,), (1353374328,), (1353374418,), (1353374429,), (1353374432,), (1353374487,), (1353374676,), (1353374679,), (1353374683,), (1353374730,), (1353374736,), (1353374740,), (1353374743,), (1353374748,), (1353374751,), (1353374891,), (1353374896,), (1353374911,), (1353375016,), (1353375043,), (1353375072,), (1353375682,), (1353375713,), (1353375746,), (1353375757,), (1353375780,), (1353375897,), (1353375924,), (1353375952,), (1353375981,), (1353376776,), (1353376830,), (1353376884,), (1353376951,), (1353377014,), (1353377070,), (1353377182,), (1353377217,), (1353377249,), (1353377286,)) 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 (1353371800) 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 22382992 , 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=22382953 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 (22382992) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22382953) result : ((1353371317,), (1353371336,), (1353371358,), (1353371734,), (1353371770,), (1353371800,), (1353371841,), (1353371877,), (1353372343,), (1353372412,), (1353372455,), (1353372484,), (1353372599,), (1353372644,), (1353372946,), (1353372982,), (1353373014,), (1353373043,), (1353373497,), (1353373499,), (1353373503,), (1353373507,), (1353373529,), (1353373942,), (1353373997,), (1353374015,), (1353374019,), (1353374023,), (1353374213,), (1353374328,), (1353374418,), (1353374429,), (1353374432,), (1353374487,), (1353374676,), (1353374679,), (1353374683,), (1353374730,), (1353374736,), (1353374740,), (1353374743,), (1353374748,), (1353374751,), (1353374891,), (1353374896,), (1353374911,), (1353375016,), (1353375043,), (1353375072,), (1353375682,), (1353375713,), (1353375746,), (1353375757,), (1353375780,), (1353375897,), (1353375924,), (1353375952,), (1353375981,), (1353376776,), (1353376830,), (1353376884,), (1353376951,), (1353377014,), (1353377070,), (1353377182,), (1353377217,), (1353377249,), (1353377286,)) 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 (1353371800) 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`=22382953 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_brun','mal_croppe','kraft','environnement','metal','autre_refus','Carton_gris','plastique','papier','flou','cartonnette')) 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`=22382953 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_brun','mal_croppe','kraft','environnement','metal','autre_refus','Carton_gris','plastique','papier','flou','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 22382953, 'sub_port_id': 22382993, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14834019, 'last_updated_at': datetime.datetime(2025, 4, 24, 14, 7, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 14, 7, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 14, 7, 27)}, 'metal': {'main_port_id': 22382953, 'sub_port_id': 22382994, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14834020, 'last_updated_at': datetime.datetime(2025, 4, 24, 14, 7, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 14, 7, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 14, 7, 27)}, 'plastique': {'main_port_id': 22382953, 'sub_port_id': 22382995, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14834021, 'last_updated_at': datetime.datetime(2025, 4, 24, 14, 7, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 14, 7, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 14, 7, 27)}, 'autre_refus': {'main_port_id': 22382953, 'sub_port_id': 22382996, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14834022, 'last_updated_at': datetime.datetime(2025, 4, 24, 14, 7, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 14, 7, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 14, 7, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 22382953, 'sub_port_id': 22382997, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14834023, 'last_updated_at': datetime.datetime(2025, 4, 24, 14, 7, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 14, 7, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 14, 7, 27)}, 'Carton_brun': {'main_port_id': 22382953, 'sub_port_id': 22382998, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14834024, 'last_updated_at': datetime.datetime(2025, 4, 24, 14, 7, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 14, 7, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 14, 7, 27)}, 'Carton_gris': {'main_port_id': 22382953, 'sub_port_id': 22382999, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14834025, 'last_updated_at': datetime.datetime(2025, 4, 24, 14, 7, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 14, 7, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 14, 7, 27)}, 'flou': {'main_port_id': 22382953, 'sub_port_id': 22383000, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14834026, 'last_updated_at': datetime.datetime(2025, 4, 24, 14, 7, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 14, 7, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 14, 7, 27)}, 'cartonnette': {'main_port_id': 22382953, 'sub_port_id': 22383001, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14834027, 'last_updated_at': datetime.datetime(2025, 4, 24, 14, 7, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 14, 7, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 14, 7, 27)}, 'environnement': {'main_port_id': 22382953, 'sub_port_id': 22383002, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14834028, 'last_updated_at': datetime.datetime(2025, 4, 24, 14, 7, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 14, 7, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 14, 7, 27)}, 'kraft': {'main_port_id': 22382953, 'sub_port_id': 22383003, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14834029, 'last_updated_at': datetime.datetime(2025, 4, 24, 14, 7, 27), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 14, 7, 27), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 14, 7, 27)}, 'papier': {'main_port_id': 22382953, 'sub_port_id': 22383004, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14834030, 'last_updated_at': datetime.datetime(2025, 4, 24, 14, 14, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 24, 14, 14, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 24, 14, 7, 27)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22382993,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22382981 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22382994,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22382982 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22382995,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22382983 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22382996,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22382984 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22382997,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22382985 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22382998,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22382986 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22382999,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22382987 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22383000,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22382988 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22383001,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22382989 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22383002,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22382990 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22383003,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22382991 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22383004,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22382992 lien utilise dans velours : https://www.fotonower.com/velours/22382993,22382994,22382995,22382996,22382997,22382998,22382999,22383000,22383001,22383002,22383003,22383004?tags=mal_croppe,metal,plastique,autre_refus,Teint_Dans_La_Masse,Carton_brun,Carton_gris,flou,cartonnette,environnement,kraft,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22382953]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1353377286, 1353377249, 1353377217, 1353377182, 1353377070, 1353377014, 1353376951, 1353376884, 1353376830, 1353376776] map_info['map_portfolio_photo'] : {22382953: [1353377286, 1353377249, 1353377217, 1353377182, 1353377070, 1353377014, 1353376951, 1353376884, 1353376830, 1353376776, 1353375981, 1353375952, 1353375924, 1353375897, 1353375780, 1353375757, 1353375746, 1353375713, 1353375682, 1353375072, 1353375043, 1353375016, 1353374911, 1353374896, 1353374891, 1353374751, 1353374748, 1353374743, 1353374740, 1353374736, 1353374730, 1353374683, 1353374679, 1353374676, 1353374487, 1353374432, 1353374429, 1353374418, 1353374328, 1353374213, 1353374023, 1353374019, 1353374015, 1353373997, 1353373942, 1353373529, 1353373507, 1353373503, 1353373499, 1353373497, 1353373043, 1353373014, 1353372982, 1353372946, 1353372644, 1353372599, 1353372484, 1353372455, 1353372412, 1353372343, 1353371877, 1353371841, 1353371800, 1353371770, 1353371734, 1353371358, 1353371336, 1353371317]} final : False mtd_id 4302 list_pids : [1353377286, 1353377249, 1353377217, 1353377182, 1353377070, 1353377014, 1353376951, 1353376884, 1353376830, 1353376776] Looping around the photos to save general results len do output : 1 /22382953. 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, '2757457') ('4302', '22382953', '1353377286', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353377249', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353377217', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353377182', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353377070', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353377014', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353376951', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353376884', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353376830', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353376776', None, None, None, None, None, '2757457') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '22382953', "{'mal_croppe': 22382981, 'metal': 22382982, 'plastique': 22382983, 'autre_refus': 22382984, 'Teint_Dans_La_Masse': 22382985, 'Carton_brun': 22382986, 'Carton_gris': 22382987, 'flou': 22382988, 'cartonnette': 22382989, 'environnement': 22382990, 'kraft': 22382991, 'papier': 22382992}", None, None, None, None, '2757457'), ('4302', '22382953', '1353377286', None, None, None, None, None, '2757457'), ('4302', '22382953', '1353377249', None, None, None, None, None, '2757457'), ('4302', '22382953', '1353377217', None, None, None, None, None, '2757457'), ('4302', '22382953', '1353377182', None, None, None, None, None, '2757457'), ('4302', '22382953', '1353377070', None, None, None, None, None, '2757457'), ('4302', '22382953', '1353377014', None, None, None, None, None, '2757457'), ('4302', '22382953', '1353376951', None, None, None, None, None, '2757457'), ('4302', '22382953', '1353376884', None, None, None, None, None, '2757457'), ('4302', '22382953', '1353376830', None, None, None, None, None, '2757457'), ('4302', '22382953', '1353376776', None, None, None, None, None, '2757457')] time used for this insertion : 0.013556241989135742 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.46754026412963867 time spend to save output : 0.013875246047973633 total time spend for step 1 : 0.4814155101776123 step2:final Thu Apr 24 14:16:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22382953) 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 22382953 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1353371358,1353371336,1353371317,1353371877,1353371841,1353371800,1353371770,1353371734,1353372644,1353372599,1353372484,1353372455,1353372412,1353372343,1353373043,1353373014,1353372982,1353372946,1353373529,1353373507,1353373503,1353373499,1353373497,1353374023,1353374019,1353374015,1353373997,1353373942,1353374487,1353374432,1353374429,1353374418,1353374328,1353374213,1353374683,1353374679,1353374676,1353374751,1353374748,1353374743,1353374740,1353374736,1353374911,1353374730,1353374896,1353374891,1353375072,1353375043,1353375016,1353375780,1353375757,1353375746,1353375713,1353375682,1353375981,1353375952,1353375924,1353375897,1353377286,1353377249,1353377217,1353377182,1353377070,1353377014,1353376951,1353376884,1353376830,1353376776); 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([22382953]) Inside saveOutput : final : False verbose : True original output for save of step final : {1353377286: ('0.04286931643767377',), 1353377249: ('0.04286931643767377',), 1353377217: ('0.04286931643767377',), 1353377182: ('0.04286931643767377',), 1353377070: ('0.04286931643767377',), 1353377014: ('0.04286931643767377',), 1353376951: ('0.04286931643767377',), 1353376884: ('0.04286931643767377',), 1353376830: ('0.04286931643767377',), 1353376776: ('0.04286931643767377',)} new output for save of step final : {1353377286: ('0.04286931643767377',), 1353377249: ('0.04286931643767377',), 1353377217: ('0.04286931643767377',), 1353377182: ('0.04286931643767377',), 1353377070: ('0.04286931643767377',), 1353377014: ('0.04286931643767377',), 1353376951: ('0.04286931643767377',), 1353376884: ('0.04286931643767377',), 1353376830: ('0.04286931643767377',), 1353376776: ('0.04286931643767377',)} [1353377286, 1353377249, 1353377217, 1353377182, 1353377070, 1353377014, 1353376951, 1353376884, 1353376830, 1353376776] map_info['map_portfolio_photo'] : {22382953: [1353377286, 1353377249, 1353377217, 1353377182, 1353377070, 1353377014, 1353376951, 1353376884, 1353376830, 1353376776, 1353375981, 1353375952, 1353375924, 1353375897, 1353375780, 1353375757, 1353375746, 1353375713, 1353375682, 1353375072, 1353375043, 1353375016, 1353374911, 1353374896, 1353374891, 1353374751, 1353374748, 1353374743, 1353374740, 1353374736, 1353374730, 1353374683, 1353374679, 1353374676, 1353374487, 1353374432, 1353374429, 1353374418, 1353374328, 1353374213, 1353374023, 1353374019, 1353374015, 1353373997, 1353373942, 1353373529, 1353373507, 1353373503, 1353373499, 1353373497, 1353373043, 1353373014, 1353372982, 1353372946, 1353372644, 1353372599, 1353372484, 1353372455, 1353372412, 1353372343, 1353371877, 1353371841, 1353371800, 1353371770, 1353371734, 1353371358, 1353371336, 1353371317]} final : False mtd_id 4302 list_pids : [1353377286, 1353377249, 1353377217, 1353377182, 1353377070, 1353377014, 1353376951, 1353376884, 1353376830, 1353376776] Looping around the photos to save general results len do output : 10 /1353377286.Didn't retrieve data . /1353377249.Didn't retrieve data . /1353377217.Didn't retrieve data . /1353377182.Didn't retrieve data . /1353377070.Didn't retrieve data . /1353377014.Didn't retrieve data . /1353376951.Didn't retrieve data . /1353376884.Didn't retrieve data . /1353376830.Didn't retrieve data . /1353376776.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, '2757457') ('4302', '22382953', '1353377286', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353377249', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353377217', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353377182', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353377070', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353377014', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353376951', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353376884', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353376830', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353376776', None, None, None, None, None, '2757457') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '22382953', '1353377286', '0.04286931643767377', None, None, None, None, '2757457'), ('4302', '22382953', '1353377249', '0.04286931643767377', None, None, None, None, '2757457'), ('4302', '22382953', '1353377217', '0.04286931643767377', None, None, None, None, '2757457'), ('4302', '22382953', '1353377182', '0.04286931643767377', None, None, None, None, '2757457'), ('4302', '22382953', '1353377070', '0.04286931643767377', None, None, None, None, '2757457'), ('4302', '22382953', '1353377014', '0.04286931643767377', None, None, None, None, '2757457'), ('4302', '22382953', '1353376951', '0.04286931643767377', None, None, None, None, '2757457'), ('4302', '22382953', '1353376884', '0.04286931643767377', None, None, None, None, '2757457'), ('4302', '22382953', '1353376830', '0.04286931643767377', None, None, None, None, '2757457'), ('4302', '22382953', '1353376776', '0.04286931643767377', None, None, None, None, '2757457')] time used for this insertion : 0.013505935668945312 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07499384880065918 time spend to save output : 0.014019489288330078 total time spend for step 2 : 0.08901333808898926 step3:velours_tree Thu Apr 24 14:16:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22382953: [{'mal_croppe': 22382981, 'metal': 22382982, 'plastique': 22382983, 'autre_refus': 22382984, 'Teint_Dans_La_Masse': 22382985, 'Carton_brun': 22382986, 'Carton_gris': 22382987, 'flou': 22382988, 'cartonnette': 22382989, 'environnement': 22382990, 'kraft': 22382991, 'papier': 22382992}]} input_args_next_step : {22382953: ()} output_args : {22382953: [{'mal_croppe': 22382981, 'metal': 22382982, 'plastique': 22382983, 'autre_refus': 22382984, 'Teint_Dans_La_Masse': 22382985, 'Carton_brun': 22382986, 'Carton_gris': 22382987, 'flou': 22382988, 'cartonnette': 22382989, 'environnement': 22382990, 'kraft': 22382991, 'papier': 22382992}]} args : 22382953 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 : ({'mal_croppe': 22382981, 'metal': 22382982, 'plastique': 22382983, 'autre_refus': 22382984, 'Teint_Dans_La_Masse': 22382985, 'Carton_brun': 22382986, 'Carton_gris': 22382987, 'flou': 22382988, 'cartonnette': 22382989, 'environnement': 22382990, 'kraft': 22382991, 'papier': 22382992},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22382953) 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([22382953]) 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.32886338233947754 time spend to save output : 4.2438507080078125e-05 total time spend for step 3 : 0.3289058208465576 step4:send_mail_cod Thu Apr 24 14:16:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1353377286: ('0.04286931643767377',), 1353377249: ('0.04286931643767377',), 1353377217: ('0.04286931643767377',), 1353377182: ('0.04286931643767377',), 1353377070: ('0.04286931643767377',), 1353377014: ('0.04286931643767377',), 1353376951: ('0.04286931643767377',), 1353376884: ('0.04286931643767377',), 1353376830: ('0.04286931643767377',), 1353376776: ('0.04286931643767377',)} input_args_next_step : {1353377286: ()} output_args : {1353377286: ('0.04286931643767377',), 1353377249: ('0.04286931643767377',), 1353377217: ('0.04286931643767377',), 1353377182: ('0.04286931643767377',), 1353377070: ('0.04286931643767377',), 1353377014: ('0.04286931643767377',), 1353376951: ('0.04286931643767377',), 1353376884: ('0.04286931643767377',), 1353376830: ('0.04286931643767377',), 1353376776: ('0.04286931643767377',)} args : 1353377286 depend.output_id : 0 input_args_next_step : {1353377286: ('0.04286931643767377',), 1353377249: ()} output_args : {1353377286: ('0.04286931643767377',), 1353377249: ('0.04286931643767377',), 1353377217: ('0.04286931643767377',), 1353377182: ('0.04286931643767377',), 1353377070: ('0.04286931643767377',), 1353377014: ('0.04286931643767377',), 1353376951: ('0.04286931643767377',), 1353376884: ('0.04286931643767377',), 1353376830: ('0.04286931643767377',), 1353376776: ('0.04286931643767377',)} args : 1353377249 depend.output_id : 0 input_args_next_step : {1353377286: ('0.04286931643767377',), 1353377249: ('0.04286931643767377',), 1353377217: ()} output_args : {1353377286: ('0.04286931643767377',), 1353377249: ('0.04286931643767377',), 1353377217: ('0.04286931643767377',), 1353377182: ('0.04286931643767377',), 1353377070: ('0.04286931643767377',), 1353377014: ('0.04286931643767377',), 1353376951: ('0.04286931643767377',), 1353376884: ('0.04286931643767377',), 1353376830: ('0.04286931643767377',), 1353376776: ('0.04286931643767377',)} args : 1353377217 depend.output_id : 0 input_args_next_step : {1353377286: ('0.04286931643767377',), 1353377249: ('0.04286931643767377',), 1353377217: ('0.04286931643767377',), 1353377182: ()} output_args : {1353377286: ('0.04286931643767377',), 1353377249: ('0.04286931643767377',), 1353377217: ('0.04286931643767377',), 1353377182: ('0.04286931643767377',), 1353377070: ('0.04286931643767377',), 1353377014: ('0.04286931643767377',), 1353376951: ('0.04286931643767377',), 1353376884: ('0.04286931643767377',), 1353376830: ('0.04286931643767377',), 1353376776: ('0.04286931643767377',)} args : 1353377182 depend.output_id : 0 input_args_next_step : {1353377286: ('0.04286931643767377',), 1353377249: ('0.04286931643767377',), 1353377217: ('0.04286931643767377',), 1353377182: ('0.04286931643767377',), 1353377070: ()} output_args : {1353377286: ('0.04286931643767377',), 1353377249: ('0.04286931643767377',), 1353377217: ('0.04286931643767377',), 1353377182: ('0.04286931643767377',), 1353377070: ('0.04286931643767377',), 1353377014: ('0.04286931643767377',), 1353376951: ('0.04286931643767377',), 1353376884: ('0.04286931643767377',), 1353376830: ('0.04286931643767377',), 1353376776: ('0.04286931643767377',)} args : 1353377070 depend.output_id : 0 input_args_next_step : {1353377286: ('0.04286931643767377',), 1353377249: ('0.04286931643767377',), 1353377217: ('0.04286931643767377',), 1353377182: ('0.04286931643767377',), 1353377070: ('0.04286931643767377',), 1353377014: ()} output_args : {1353377286: ('0.04286931643767377',), 1353377249: ('0.04286931643767377',), 1353377217: ('0.04286931643767377',), 1353377182: ('0.04286931643767377',), 1353377070: ('0.04286931643767377',), 1353377014: ('0.04286931643767377',), 1353376951: ('0.04286931643767377',), 1353376884: ('0.04286931643767377',), 1353376830: ('0.04286931643767377',), 1353376776: ('0.04286931643767377',)} args : 1353377014 depend.output_id : 0 input_args_next_step : {1353377286: ('0.04286931643767377',), 1353377249: ('0.04286931643767377',), 1353377217: ('0.04286931643767377',), 1353377182: ('0.04286931643767377',), 1353377070: ('0.04286931643767377',), 1353377014: ('0.04286931643767377',), 1353376951: ()} output_args : {1353377286: ('0.04286931643767377',), 1353377249: ('0.04286931643767377',), 1353377217: ('0.04286931643767377',), 1353377182: ('0.04286931643767377',), 1353377070: ('0.04286931643767377',), 1353377014: ('0.04286931643767377',), 1353376951: ('0.04286931643767377',), 1353376884: ('0.04286931643767377',), 1353376830: ('0.04286931643767377',), 1353376776: ('0.04286931643767377',)} args : 1353376951 depend.output_id : 0 input_args_next_step : {1353377286: ('0.04286931643767377',), 1353377249: ('0.04286931643767377',), 1353377217: ('0.04286931643767377',), 1353377182: ('0.04286931643767377',), 1353377070: ('0.04286931643767377',), 1353377014: ('0.04286931643767377',), 1353376951: ('0.04286931643767377',), 1353376884: ()} output_args : {1353377286: ('0.04286931643767377',), 1353377249: ('0.04286931643767377',), 1353377217: ('0.04286931643767377',), 1353377182: ('0.04286931643767377',), 1353377070: ('0.04286931643767377',), 1353377014: ('0.04286931643767377',), 1353376951: ('0.04286931643767377',), 1353376884: ('0.04286931643767377',), 1353376830: ('0.04286931643767377',), 1353376776: ('0.04286931643767377',)} args : 1353376884 depend.output_id : 0 input_args_next_step : {1353377286: ('0.04286931643767377',), 1353377249: ('0.04286931643767377',), 1353377217: ('0.04286931643767377',), 1353377182: ('0.04286931643767377',), 1353377070: ('0.04286931643767377',), 1353377014: ('0.04286931643767377',), 1353376951: ('0.04286931643767377',), 1353376884: ('0.04286931643767377',), 1353376830: ()} output_args : {1353377286: ('0.04286931643767377',), 1353377249: ('0.04286931643767377',), 1353377217: ('0.04286931643767377',), 1353377182: ('0.04286931643767377',), 1353377070: ('0.04286931643767377',), 1353377014: ('0.04286931643767377',), 1353376951: ('0.04286931643767377',), 1353376884: ('0.04286931643767377',), 1353376830: ('0.04286931643767377',), 1353376776: ('0.04286931643767377',)} args : 1353376830 depend.output_id : 0 input_args_next_step : {1353377286: ('0.04286931643767377',), 1353377249: ('0.04286931643767377',), 1353377217: ('0.04286931643767377',), 1353377182: ('0.04286931643767377',), 1353377070: ('0.04286931643767377',), 1353377014: ('0.04286931643767377',), 1353376951: ('0.04286931643767377',), 1353376884: ('0.04286931643767377',), 1353376830: ('0.04286931643767377',), 1353376776: ()} output_args : {1353377286: ('0.04286931643767377',), 1353377249: ('0.04286931643767377',), 1353377217: ('0.04286931643767377',), 1353377182: ('0.04286931643767377',), 1353377070: ('0.04286931643767377',), 1353377014: ('0.04286931643767377',), 1353376951: ('0.04286931643767377',), 1353376884: ('0.04286931643767377',), 1353376830: ('0.04286931643767377',), 1353376776: ('0.04286931643767377',)} args : 1353376776 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 : {22382953: [{'mal_croppe': 22382981, 'metal': 22382982, 'plastique': 22382983, 'autre_refus': 22382984, 'Teint_Dans_La_Masse': 22382985, 'Carton_brun': 22382986, 'Carton_gris': 22382987, 'flou': 22382988, 'cartonnette': 22382989, 'environnement': 22382990, 'kraft': 22382991, 'papier': 22382992}]} input_args_next_step : {1353377286: ('0.04286931643767377',), 1353377249: ('0.04286931643767377',), 1353377217: ('0.04286931643767377',), 1353377182: ('0.04286931643767377',), 1353377070: ('0.04286931643767377',), 1353377014: ('0.04286931643767377',), 1353376951: ('0.04286931643767377',), 1353376884: ('0.04286931643767377',), 1353376830: ('0.04286931643767377',), 1353376776: ('0.04286931643767377',), 22382953: ()} output_args : {22382953: [{'mal_croppe': 22382981, 'metal': 22382982, 'plastique': 22382983, 'autre_refus': 22382984, 'Teint_Dans_La_Masse': 22382985, 'Carton_brun': 22382986, 'Carton_gris': 22382987, 'flou': 22382988, 'cartonnette': 22382989, 'environnement': 22382990, 'kraft': 22382991, 'papier': 22382992}]} args : 22382953 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 :11, first value : ('0.04286931643767377',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22382953) 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 (1353377286,1353377249,1353377217,1353377182,1353377070,1353377014,1353376951,1353376884,1353376830,1353376776) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1353376776 begin to download photo : 1353376951 begin to download photo : 1353377182 begin to download photo : 1353377286 download finish for photo 1353376951 begin to download photo : 1353377014 download finish for photo 1353377286 download finish for photo 1353376776 begin to download photo : 1353376830 download finish for photo 1353377182 begin to download photo : 1353377217 download finish for photo 1353377014 begin to download photo : 1353377070 download finish for photo 1353376830 begin to download photo : 1353376884 download finish for photo 1353377217 begin to download photo : 1353377249 download finish for photo 1353377070 download finish for photo 1353376884 download finish for photo 1353377249 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette223829811745497018/ imagette223829821745497018/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P22382953_24-04-2025_14_16_58.pdf 22382981 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=22382981 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223829811745497018 22382982 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=22382982 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223829821745497018 22382983 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=22382983 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353373906: '1745496312_937081_1353372484_a1cdfe6c878ec35786048a70f11669e6_rle_crop_3767472133_0.png', 1353373907: '1745496312_937081_1353372455_d7f06d5b3f06809700eb4e9c5b440415_rle_crop_3767472140_0.png', 1353373908: '1745496312_937081_1353372343_ffd19b70fdca8f613f99e4a6effa48d1_rle_crop_3767472161_0.png', 1353375841: '1745496734_942171_1353372644_512db4a220a594dba51756551b9515e1_rle_crop_3767491211_0.png', 1353375842: '1745496734_942171_1353372644_512db4a220a594dba51756551b9515e1_rle_crop_3767491219_0.png', 1353375843: '1745496734_942171_1353371770_5c40cfec11a8e3e2740a025ab406b0a5_rle_crop_3767491259_0.png', 1353375844: '1745496734_942171_1353371734_6237d002e0b907458ae1eb8d546e92f5_rle_crop_3767491278_0.png', 1353377295: '1745496911_944218_1353375981_626844f5f60c62cebe174630aedef738_rle_crop_3767495243_0.png', 1353377296: '1745496911_944218_1353375757_cc3c77d4f9758549bb001b8bc8567636_rle_crop_3767495247_0.png', 1353377297: '1745496911_944218_1353375682_a54dc67c4dd13a84230c946296752845_rle_crop_3767495275_0.png', 1353378047: '1745496973_945321_1353375952_239789f001e5567c2c3e635efb725f50_rle_crop_3767497625_0.png', 1353378048: '1745496973_945321_1353375952_239789f001e5567c2c3e635efb725f50_rle_crop_3767497626_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/95755755565bb04fc11160b5f9e9a126_34253078.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/1e3b092480b92708438d541f326d9854_53789635.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/54172b5091b0365fae4368dc27013ca3_39218856.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/e1fa29ae6bf131723fc5ea33c10886ed_73745811.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/aea9519d99949d215ff3f37177244546_1746380.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/f71749e85388c870f9cbba43e982d862_96351069.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/3f5191b498679598d45ae6de80d357b0_94560880.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/bea13281f875cc6428d135b901867df8_8028537.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/3b5fe2ecd14018974adc47c51229f33f_8561979.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/422e359d4da7a09a449060841f0e3af6_26994245.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/c8179134843317d8a87430d869975b6b_48645279.png change filename to text .imagette223829831745497018/ imagette223829831745497018/1745496734_942171_1353372644_512db4a220a594dba51756551b9515e1_rle_crop_3767491219_0.png.png imagette223829831745497018/1745496312_937081_1353372343_ffd19b70fdca8f613f99e4a6effa48d1_rle_crop_3767472161_0.png.png imagette223829831745497018/1745496911_944218_1353375981_626844f5f60c62cebe174630aedef738_rle_crop_3767495243_0.png.png imagette223829831745497018/1745496973_945321_1353375952_239789f001e5567c2c3e635efb725f50_rle_crop_3767497626_0.png.png imagette223829831745497018/1745496312_937081_1353372455_d7f06d5b3f06809700eb4e9c5b440415_rle_crop_3767472140_0.png.png imagette223829831745497018/1745496734_942171_1353371734_6237d002e0b907458ae1eb8d546e92f5_rle_crop_3767491278_0.png.png imagette223829831745497018/1745496973_945321_1353375952_239789f001e5567c2c3e635efb725f50_rle_crop_3767497625_0.png.png imagette223829831745497018/1745496312_937081_1353372484_a1cdfe6c878ec35786048a70f11669e6_rle_crop_3767472133_0.png.png imagette223829831745497018/1745496734_942171_1353371770_5c40cfec11a8e3e2740a025ab406b0a5_rle_crop_3767491259_0.png.png imagette223829831745497018/1745496734_942171_1353372644_512db4a220a594dba51756551b9515e1_rle_crop_3767491211_0.png.png imagette223829831745497018/1745496911_944218_1353375682_a54dc67c4dd13a84230c946296752845_rle_crop_3767495275_0.png.png imagette223829831745497018/1745496911_944218_1353375757_cc3c77d4f9758549bb001b8bc8567636_rle_crop_3767495247_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/b9be1643825d9707afb132d2889d19fc_28507597.png imagette223829831745497018 22382984 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=22382984 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353373900: '1745496312_937081_1353372412_38f5e9f0bd44b33fdb0b7aef1da8058e_rle_crop_3767472147_0.png', 1353374761: '1745496541_939606_1353374487_2e14035e1f168a38f9321309ef813987_rle_crop_3767482136_0.png', 1353374762: '1745496541_939606_1353373942_e87b17c6b352ab02fff3a3cbcdf56afe_rle_crop_3767482206_0.png', 1353374773: '1745496553_939783_1353374432_1c7d36b9d68d207dcc3f9d5011ec153b_rle_crop_3767482258_0.png', 1353374774: '1745496553_939783_1353374429_d22fef6c524d9882d9188743569ad64b_rle_crop_3767482276_0.png', 1353377280: '1745496911_944218_1353375682_a54dc67c4dd13a84230c946296752845_rle_crop_3767495272_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/4328054f3d6d69340f17b12efd006b61_96250686.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/762209fb5382f4b98443f1a2fc2c51e0_32749058.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/4a7899679a4f28dbb49f42f3a3a36378_53161129.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/cf636e42bdbc394662d1070cd6496a1b_15673338.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/d9fe89f0ee0b329aec4a9f42a3d69207_4173009.png change filename to text .imagette223829841745497018/ imagette223829841745497018/1745496541_939606_1353373942_e87b17c6b352ab02fff3a3cbcdf56afe_rle_crop_3767482206_0.png.png imagette223829841745497018/1745496553_939783_1353374429_d22fef6c524d9882d9188743569ad64b_rle_crop_3767482276_0.png.png imagette223829841745497018/1745496541_939606_1353374487_2e14035e1f168a38f9321309ef813987_rle_crop_3767482136_0.png.png imagette223829841745497018/1745496553_939783_1353374432_1c7d36b9d68d207dcc3f9d5011ec153b_rle_crop_3767482258_0.png.png imagette223829841745497018/1745496312_937081_1353372412_38f5e9f0bd44b33fdb0b7aef1da8058e_rle_crop_3767472147_0.png.png imagette223829841745497018/1745496911_944218_1353375682_a54dc67c4dd13a84230c946296752845_rle_crop_3767495272_0.png.png imagette223829881745497019/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/9e2d283d05d036f8ccb933f33f8390e8_28666617.png imagette223829841745497018 22382988 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=22382988 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223829881745497019 22382989 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=22382989 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353372810: '1745496193_935864_1353371336_8adf90a3e8966c7f4bfea8dd97999b70_rle_crop_3767470587_0.png', 1353373902: '1745496312_937081_1353372455_d7f06d5b3f06809700eb4e9c5b440415_rle_crop_3767472138_0.png', 1353374888: '1745496612_940720_1353374679_adc9c2a898670ab2a9822c54935a993d_rle_crop_3767482453_0.png', 1353376086: '1745496791_942893_1353375043_757bb0a05600f6579046f346fbd20d0d_rle_crop_3767491333_0.png', 1353376665: '1745496851_943518_1353374743_075ed93cc72a4ee91e323385e989ee9a_rle_crop_3767494348_0.png', 1353376666: '1745496851_943518_1353374736_defaed7fbb2fe193a5fa96a1dc7ca85f_rle_crop_3767494377_0.png', 1353377291: '1745496911_944218_1353375746_2544ab2fe2ae0d5ff1e4c1178ab21818_rle_crop_3767495252_0.png', 1353377292: '1745496911_944218_1353375713_221897fa879e550971d0135b7a22c3c0_rle_crop_3767495262_0.png', 1353377293: '1745496911_944218_1353375713_221897fa879e550971d0135b7a22c3c0_rle_crop_3767495259_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/82a79b2f0bc38cf19cfbe2c03aea0abe_50279715.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/1a8a555e9bbb9045ed00ea53f4d40d95_61464870.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/0df48681d2b887cf71b6054b2d0ae900_55624091.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/67ef4b306e27821cf560a1cc162326ed_59805952.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/21fc4270bd8d7d0c5abb864bb3c450dc_33932485.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/1064505664b0c28a512af4a38f7a3e2d_74402614.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/a24261b05fbca373e5a99bbf59a85447_60474058.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/9cd7511906b913bb2d399468934854a1_16008105.png change filename to text .imagette223829891745497019/ imagette223829891745497019/1745496193_935864_1353371336_8adf90a3e8966c7f4bfea8dd97999b70_rle_crop_3767470587_0.png.png imagette223829891745497019/1745496911_944218_1353375713_221897fa879e550971d0135b7a22c3c0_rle_crop_3767495259_0.png.png imagette223829891745497019/1745496612_940720_1353374679_adc9c2a898670ab2a9822c54935a993d_rle_crop_3767482453_0.png.png imagette223829891745497019/1745496791_942893_1353375043_757bb0a05600f6579046f346fbd20d0d_rle_crop_3767491333_0.png.png imagette223829891745497019/1745496911_944218_1353375746_2544ab2fe2ae0d5ff1e4c1178ab21818_rle_crop_3767495252_0.png.png imagette223829891745497019/1745496911_944218_1353375713_221897fa879e550971d0135b7a22c3c0_rle_crop_3767495262_0.png.png imagette223829891745497019/1745496851_943518_1353374743_075ed93cc72a4ee91e323385e989ee9a_rle_crop_3767494348_0.png.png imagette223829891745497019/1745496312_937081_1353372455_d7f06d5b3f06809700eb4e9c5b440415_rle_crop_3767472138_0.png.png imagette223829891745497019/1745496851_943518_1353374736_defaed7fbb2fe193a5fa96a1dc7ca85f_rle_crop_3767494377_0.png.png imagette223829911745497019/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/22c056449a7a34ead25698d1a0be357d_43652715.png imagette223829891745497019 22382991 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=22382991 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223829911745497019 22382985 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=22382985 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353373890: '1745496312_937081_1353372599_2e07dca744b47094d7cf618c650e1fef_rle_crop_3767472114_0.png', 1353373891: '1745496312_937081_1353372484_a1cdfe6c878ec35786048a70f11669e6_rle_crop_3767472127_0.png', 1353373892: '1745496312_937081_1353372412_38f5e9f0bd44b33fdb0b7aef1da8058e_rle_crop_3767472151_0.png', 1353373893: '1745496312_937081_1353372343_ffd19b70fdca8f613f99e4a6effa48d1_rle_crop_3767472160_0.png', 1353374110: '1745496373_937737_1353373014_cbf4053f4023a4f0ff000d2d9c2c90ba_rle_crop_3767475147_0.png', 1353374111: '1745496373_937737_1353373014_cbf4053f4023a4f0ff000d2d9c2c90ba_rle_crop_3767475145_0.png', 1353374711: '1745496493_939058_1353373014_cbf4053f4023a4f0ff000d2d9c2c90ba_rle_crop_3767475147_0.png', 1353374712: '1745496493_939058_1353373014_cbf4053f4023a4f0ff000d2d9c2c90ba_rle_crop_3767475145_0.png', 1353374759: '1745496541_939606_1353374015_e7507b1b43a8a6b90c12ff9cbb98cced_rle_crop_3767482157_0.png', 1353374772: '1745496553_939783_1353374328_db93f5012ea6baa74a2eec9fa1f120a1_rle_crop_3767482318_0.png', 1353375836: '1745496734_942171_1353371841_c75926d6eef238f43e5cdd7592747ed7_rle_crop_3767491229_0.png', 1353376634: '1745496851_943518_1353374911_f921d16fa1c449c779048176281d7b11_rle_crop_3767494325_0.png', 1353376635: '1745496851_943518_1353374743_075ed93cc72a4ee91e323385e989ee9a_rle_crop_3767494343_0.png', 1353376637: '1745496851_943518_1353374730_15e6767b9da34a61726caf066d687fb8_rle_crop_3767494393_0.png', 1353378003: '1745496973_945321_1353375924_9f205e3854f608a6a6611b03429fceec_rle_crop_3767497647_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/e5a3597367468f9999be4803b8744baf_61049529.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/76b302c9d7ad62da7da8032276b2e873_91687399.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/1f418835f1f81e5b811fc0d95c10c522_35079218.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/714a1fe07a393ae726e9dda822789427_62840103.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/7dacbf46d78595f266da56a68352aec8_97236294.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/80c7382559715c3027a19cf95e5b6392_60809650.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/7dacbf46d78595f266da56a68352aec8_30177790.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/80c7382559715c3027a19cf95e5b6392_79177749.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/19084d41294fe015ef1a3b339f293715_15215872.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/7f7cb5eb2a48f708f4d9bced86bf6e5b_26768636.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/a4022c325aeecb8a0c4c9c2b1a27518c_44987983.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/9722e27d4224328d734b7959020118e5_97444631.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/4c6196e5e6b95e6d02bfb05cb4674de3_45965987.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/f2b2e5737536ec3b0ac964d3fb9cfee4_5203239.png change filename to text .imagette223829851745497019/ imagette223829851745497019/1745496553_939783_1353374328_db93f5012ea6baa74a2eec9fa1f120a1_rle_crop_3767482318_0.png.png imagette223829851745497019/1745496541_939606_1353374015_e7507b1b43a8a6b90c12ff9cbb98cced_rle_crop_3767482157_0.png.png imagette223829851745497019/1745496851_943518_1353374730_15e6767b9da34a61726caf066d687fb8_rle_crop_3767494393_0.png.png imagette223829851745497019/1745496312_937081_1353372412_38f5e9f0bd44b33fdb0b7aef1da8058e_rle_crop_3767472151_0.png.png imagette223829851745497019/1745496851_943518_1353374743_075ed93cc72a4ee91e323385e989ee9a_rle_crop_3767494343_0.png.png imagette223829851745497019/1745496851_943518_1353374911_f921d16fa1c449c779048176281d7b11_rle_crop_3767494325_0.png.png imagette223829851745497019/1745496373_937737_1353373014_cbf4053f4023a4f0ff000d2d9c2c90ba_rle_crop_3767475145_0.png.png imagette223829851745497019/1745496973_945321_1353375924_9f205e3854f608a6a6611b03429fceec_rle_crop_3767497647_0.png.png imagette223829851745497019/1745496734_942171_1353371841_c75926d6eef238f43e5cdd7592747ed7_rle_crop_3767491229_0.png.png imagette223829851745497019/1745496312_937081_1353372599_2e07dca744b47094d7cf618c650e1fef_rle_crop_3767472114_0.png.png imagette223829851745497019/1745496493_939058_1353373014_cbf4053f4023a4f0ff000d2d9c2c90ba_rle_crop_3767475147_0.png.png imagette223829851745497019/1745496493_939058_1353373014_cbf4053f4023a4f0ff000d2d9c2c90ba_rle_crop_3767475145_0.png.png imagette223829851745497019/1745496373_937737_1353373014_cbf4053f4023a4f0ff000d2d9c2c90ba_rle_crop_3767475147_0.png.png imagette223829851745497019/1745496312_937081_1353372343_ffd19b70fdca8f613f99e4a6effa48d1_rle_crop_3767472160_0.png.png imagette223829851745497019/1745496312_937081_1353372484_a1cdfe6c878ec35786048a70f11669e6_rle_crop_3767472127_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/c44f621ea69985e4444528c60693c65a_9626686.png imagette223829851745497019 22382986 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=22382986 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353375837: '1745496734_942171_1353371841_c75926d6eef238f43e5cdd7592747ed7_rle_crop_3767491232_0.png', 1353377294: '1745496911_944218_1353375713_221897fa879e550971d0135b7a22c3c0_rle_crop_3767495263_0.png', 1353376683: '1745496851_943518_1353374736_defaed7fbb2fe193a5fa96a1dc7ca85f_rle_crop_3767494379_0.png', 1353376682: '1745496851_943518_1353374740_f7558070aae1f1cc50cdb415b88e923c_rle_crop_3767494362_0.png', 1353376681: '1745496851_943518_1353374748_87470d017d72893a8de9005e41b8522c_rle_crop_3767494334_0.png', 1353376089: '1745496791_942893_1353375016_137cf1e3ef0b1cdf7449d97cf5fad84b_rle_crop_3767491345_0.png', 1353376088: '1745496791_942893_1353375016_137cf1e3ef0b1cdf7449d97cf5fad84b_rle_crop_3767491344_0.png', 1353375839: '1745496734_942171_1353371734_6237d002e0b907458ae1eb8d546e92f5_rle_crop_3767491274_0.png', 1353375838: '1745496734_942171_1353371800_f3e1c922bfd4fe2207c30320c88ec2f5_rle_crop_3767491246_0.png', 1353373903: '1745496312_937081_1353372484_a1cdfe6c878ec35786048a70f11669e6_rle_crop_3767472128_0.png', 1353374890: '1745496612_940720_1353374676_1d377d8acd640d78e4981cbf312a3ddd_rle_crop_3767482464_0.png', 1353374889: '1745496612_940720_1353374679_adc9c2a898670ab2a9822c54935a993d_rle_crop_3767482454_0.png', 1353374767: '1745496541_939606_1353374487_2e14035e1f168a38f9321309ef813987_rle_crop_3767482133_0.png', 1353374716: '1745496493_939058_1353372982_2051724da13778f0f11239995cb0e421_rle_crop_3767475161_0.png', 1353374539: '1745496431_938443_1353373499_fbeab0e84668d8719f422099f6378ea1_rle_crop_3767475290_0.png', 1353374115: '1745496373_937737_1353372982_2051724da13778f0f11239995cb0e421_rle_crop_3767475161_0.png', 1353373904: '1745496312_937081_1353372343_ffd19b70fdca8f613f99e4a6effa48d1_rle_crop_3767472163_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/c7aedd49905ecb7c4267211fbcf88bcc_76704688.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/80989ab7307f4324af40d8aeff8da32f_87025892.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/0653a3fc002a347cbe84ca657b7c9506_9402785.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/a8d94878fdcdb8cf0d9e21f6b4886268_46711643.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/231b784f07ea932767496c0136fd6417_87834923.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/37db99d3ecc91b6d89701131e2b3a9dd_37611853.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/fc810b00c6e8c4363d21c6d6cab81c43_73212434.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/ff2550bb285c6c63bda135118d299cf1_89849966.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/2ea96815696301dd32ad6c81e138874d_40526151.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/5e7f094e5389b387178cb12df07902fc_52491922.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/cac6b612e8e4f5a1938b5fe4b67b025e_62239013.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/0b56adae0c902c1896e460f2c51fa928_23046028.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/2a0120f50ef4386052cd1216d261a837_29930049.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/7f09e6ee6fc041a62aee964a211de24a_90574967.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/7ec4eaf62daae20d41c1bb0fa9e027ea_57587026.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/7f09e6ee6fc041a62aee964a211de24a_81305894.png change filename to text .imagette223829861745497020/ imagette223829861745497020/1745496541_939606_1353374487_2e14035e1f168a38f9321309ef813987_rle_crop_3767482133_0.png.png imagette223829861745497020/1745496312_937081_1353372484_a1cdfe6c878ec35786048a70f11669e6_rle_crop_3767472128_0.png.png imagette223829861745497020/1745496791_942893_1353375016_137cf1e3ef0b1cdf7449d97cf5fad84b_rle_crop_3767491345_0.png.png imagette223829861745497020/1745496734_942171_1353371734_6237d002e0b907458ae1eb8d546e92f5_rle_crop_3767491274_0.png.png imagette223829861745497020/1745496851_943518_1353374740_f7558070aae1f1cc50cdb415b88e923c_rle_crop_3767494362_0.png.png imagette223829861745497020/1745496734_942171_1353371800_f3e1c922bfd4fe2207c30320c88ec2f5_rle_crop_3767491246_0.png.png imagette223829861745497020/1745496851_943518_1353374748_87470d017d72893a8de9005e41b8522c_rle_crop_3767494334_0.png.png imagette223829861745497020/1745496791_942893_1353375016_137cf1e3ef0b1cdf7449d97cf5fad84b_rle_crop_3767491344_0.png.png imagette223829861745497020/1745496612_940720_1353374676_1d377d8acd640d78e4981cbf312a3ddd_rle_crop_3767482464_0.png.png imagette223829861745497020/1745496911_944218_1353375713_221897fa879e550971d0135b7a22c3c0_rle_crop_3767495263_0.png.png imagette223829861745497020/1745496373_937737_1353372982_2051724da13778f0f11239995cb0e421_rle_crop_3767475161_0.png.png imagette223829861745497020/1745496734_942171_1353371841_c75926d6eef238f43e5cdd7592747ed7_rle_crop_3767491232_0.png.png imagette223829861745497020/1745496431_938443_1353373499_fbeab0e84668d8719f422099f6378ea1_rle_crop_3767475290_0.png.png imagette223829861745497020/1745496851_943518_1353374736_defaed7fbb2fe193a5fa96a1dc7ca85f_rle_crop_3767494379_0.png.png imagette223829861745497020/1745496312_937081_1353372343_ffd19b70fdca8f613f99e4a6effa48d1_rle_crop_3767472163_0.png.png imagette223829861745497020/1745496493_939058_1353372982_2051724da13778f0f11239995cb0e421_rle_crop_3767475161_0.png.png imagette223829861745497020/1745496612_940720_1353374679_adc9c2a898670ab2a9822c54935a993d_rle_crop_3767482454_0.png.png wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/2a00a7650face8db6ec5b2d014b3ad29_66489664.png imagette223829861745497020 22382987 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=22382987 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353374112: '1745496373_937737_1353372982_2051724da13778f0f11239995cb0e421_rle_crop_3767475159_0.png', 1353374537: '1745496431_938443_1353373497_cb2199fd8f951da9df177b0d3e897292_rle_crop_3767475300_0.png', 1353374715: '1745496493_939058_1353372982_2051724da13778f0f11239995cb0e421_rle_crop_3767475159_0.png', 1353374764: '1745496541_939606_1353374019_95d344cf162e5653b371ad131c44d66e_rle_crop_3767482142_0.png', 1353374765: '1745496541_939606_1353374019_95d344cf162e5653b371ad131c44d66e_rle_crop_3767482145_0.png', 1353374766: '1745496541_939606_1353374015_e7507b1b43a8a6b90c12ff9cbb98cced_rle_crop_3767482156_0.png', 1353374886: '1745496612_940720_1353374676_1d377d8acd640d78e4981cbf312a3ddd_rle_crop_3767482462_0.png', 1353376085: '1745496791_942893_1353375043_757bb0a05600f6579046f346fbd20d0d_rle_crop_3767491331_0.png', 1353376649: '1745496851_943518_1353374740_f7558070aae1f1cc50cdb415b88e923c_rle_crop_3767494359_0.png', 1353378020: '1745496973_945321_1353375924_9f205e3854f608a6a6611b03429fceec_rle_crop_3767497640_0.png', 1353378021: '1745496973_945321_1353375924_9f205e3854f608a6a6611b03429fceec_rle_crop_3767497643_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/b707cbcff71822a243a9f766c63d6bc3_37920876.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/3e93e52548362edde192f6b11cc3cb88_59209517.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/b707cbcff71822a243a9f766c63d6bc3_51128554.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/a71827301bdaca13f623ccbbc30b57da_13823628.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/acae2eff0a267cd8b0c6d95012fa3aa9_8255345.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/8f1f09915348af4d432b9a69d1de7fab_38009094.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/9ca5f679d33123995a47319cb67c8667_70292260.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/6c1416c22562b9800896a80764886b0d_13978388.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/39a3965a8187af31ce289b73fe120bb1_23243267.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/091afb7da91865b1c909b96aac594a21_78770966.png change filename to text .imagette223829871745497021/ imagette223829871745497021/1745496973_945321_1353375924_9f205e3854f608a6a6611b03429fceec_rle_crop_3767497643_0.png.png imagette223829871745497021/1745496791_942893_1353375043_757bb0a05600f6579046f346fbd20d0d_rle_crop_3767491331_0.png.png imagette223829871745497021/1745496541_939606_1353374019_95d344cf162e5653b371ad131c44d66e_rle_crop_3767482145_0.png.png imagette223829871745497021/1745496851_943518_1353374740_f7558070aae1f1cc50cdb415b88e923c_rle_crop_3767494359_0.png.png imagette223829871745497021/1745496612_940720_1353374676_1d377d8acd640d78e4981cbf312a3ddd_rle_crop_3767482462_0.png.png imagette223829871745497021/1745496431_938443_1353373497_cb2199fd8f951da9df177b0d3e897292_rle_crop_3767475300_0.png.png imagette223829871745497021/1745496541_939606_1353374019_95d344cf162e5653b371ad131c44d66e_rle_crop_3767482142_0.png.png imagette223829871745497021/1745496973_945321_1353375924_9f205e3854f608a6a6611b03429fceec_rle_crop_3767497640_0.png.png imagette223829871745497021/1745496373_937737_1353372982_2051724da13778f0f11239995cb0e421_rle_crop_3767475159_0.png.png imagette223829871745497021/1745496493_939058_1353372982_2051724da13778f0f11239995cb0e421_rle_crop_3767475159_0.png.png imagette223829871745497021/1745496541_939606_1353374015_e7507b1b43a8a6b90c12ff9cbb98cced_rle_crop_3767482156_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/46c178a28c8c7bf138a4e844a2f26da5_61731385.png imagette223829871745497021 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22382953 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22382993,22382994,22382995,22382996,22382997,22382998,22382999,22383000,22383001,22383002,22383003,22383004?tags=mal_croppe,metal,plastique,autre_refus,Teint_Dans_La_Masse,Carton_brun,Carton_gris,flou,cartonnette,environnement,kraft,papier your option no_mail is active, we will not send the real mail to your client args[1353377286] : ('0.04286931643767377',) no score found for photo 1353377286 We are sending mail with results at report@fotonower.com args[1353377249] : ('0.04286931643767377',) no score found for photo 1353377249 We are sending mail with results at report@fotonower.com args[1353377217] : ('0.04286931643767377',) no score found for photo 1353377217 We are sending mail with results at report@fotonower.com args[1353377182] : ('0.04286931643767377',) no score found for photo 1353377182 We are sending mail with results at report@fotonower.com args[1353377070] : ('0.04286931643767377',) no score found for photo 1353377070 We are sending mail with results at report@fotonower.com args[1353377014] : ('0.04286931643767377',) no score found for photo 1353377014 We are sending mail with results at report@fotonower.com args[1353376951] : ('0.04286931643767377',) no score found for photo 1353376951 We are sending mail with results at report@fotonower.com args[1353376884] : ('0.04286931643767377',) no score found for photo 1353376884 We are sending mail with results at report@fotonower.com args[1353376830] : ('0.04286931643767377',) no score found for photo 1353376830 We are sending mail with results at report@fotonower.com args[1353376776] : ('0.04286931643767377',) no score found for photo 1353376776 We are sending mail with results at report@fotonower.com refus_total : 0.04286931643767377 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=22382953 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_P22382953_24-04-2025_14_16_58.pdf results_Auto_P22382953_24-04-2025_14_16_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22382953_24-04-2025_14_16_58.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22382953','results_Auto_P22382953_24-04-2025_14_16_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22382953_24-04-2025_14_16_58.pdf','pdf','','0.34','0.04286931643767377') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22382953]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1353377286, 1353377249, 1353377217, 1353377182, 1353377070, 1353377014, 1353376951, 1353376884, 1353376830, 1353376776] map_info['map_portfolio_photo'] : {22382953: [1353377286, 1353377249, 1353377217, 1353377182, 1353377070, 1353377014, 1353376951, 1353376884, 1353376830, 1353376776, 1353375981, 1353375952, 1353375924, 1353375897, 1353375780, 1353375757, 1353375746, 1353375713, 1353375682, 1353375072, 1353375043, 1353375016, 1353374911, 1353374896, 1353374891, 1353374751, 1353374748, 1353374743, 1353374740, 1353374736, 1353374730, 1353374683, 1353374679, 1353374676, 1353374487, 1353374432, 1353374429, 1353374418, 1353374328, 1353374213, 1353374023, 1353374019, 1353374015, 1353373997, 1353373942, 1353373529, 1353373507, 1353373503, 1353373499, 1353373497, 1353373043, 1353373014, 1353372982, 1353372946, 1353372644, 1353372599, 1353372484, 1353372455, 1353372412, 1353372343, 1353371877, 1353371841, 1353371800, 1353371770, 1353371734, 1353371358, 1353371336, 1353371317]} final : False mtd_id 4302 list_pids : [1353377286, 1353377249, 1353377217, 1353377182, 1353377070, 1353377014, 1353376951, 1353376884, 1353376830, 1353376776] 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, '2757457') ('4302', '22382953', '1353377286', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353377249', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353377217', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353377182', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353377070', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353377014', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353376951', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353376884', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353376830', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353376776', None, None, None, None, None, '2757457') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '22382953', '1353377286', None, None, None, None, None, '2757457'), ('4302', '22382953', '1353377249', None, None, None, None, None, '2757457'), ('4302', '22382953', '1353377217', None, None, None, None, None, '2757457'), ('4302', '22382953', '1353377182', None, None, None, None, None, '2757457'), ('4302', '22382953', '1353377070', None, None, None, None, None, '2757457'), ('4302', '22382953', '1353377014', None, None, None, None, None, '2757457'), ('4302', '22382953', '1353376951', None, None, None, None, None, '2757457'), ('4302', '22382953', '1353376884', None, None, None, None, None, '2757457'), ('4302', '22382953', '1353376830', None, None, None, None, None, '2757457'), ('4302', '22382953', '1353376776', None, None, None, None, None, '2757457')] time used for this insertion : 0.013800621032714844 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.90507698059082 time spend to save output : 0.014037609100341797 total time spend for step 4 : 5.919114589691162 step5:split_time_score Thu Apr 24 14:17:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22382953'] 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 : [('22382953',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22382953) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1353377286: {'path': 'temp/1745497017_799870_1353377286_6ab8b64ce36e7e057fc1552e7513bfad.jpg', 'extension': 'jpg'}, 1353376951: {'path': 'temp/1745497017_799870_1353376951_50317aec54d785d163c397ff51a28560.jpg', 'extension': 'jpg'}, 1353377014: {'path': 'temp/1745497017_799870_1353377014_35f96d3a596a7b6e17c2f516435b48b3.jpg', 'extension': 'jpg'}, 1353377070: {'path': 'temp/1745497017_799870_1353377070_d1dd7acb84a895af05fe2fe9ea8ba0e3.jpg', 'extension': 'jpg'}, 1353376776: {'path': 'temp/1745497017_799870_1353376776_1a395fbdd41c8f2e4cda6fe0bb338e0e.jpg', 'extension': 'jpg'}, 1353376830: {'path': 'temp/1745497017_799870_1353376830_860f3bb23d19a7971e0ac7e685af90ce.jpg', 'extension': 'jpg'}, 1353376884: {'path': 'temp/1745497017_799870_1353376884_57d9ef3f3c689f75c8f13ce34fc7eecf.jpg', 'extension': 'jpg'}, 1353377182: {'path': 'temp/1745497017_799870_1353377182_4119ca91ae2eb63d3d32e07c2268bf50.jpg', 'extension': 'jpg'}, 1353377217: {'path': 'temp/1745497017_799870_1353377217_40f5e4a24e63064bc88b5e1205369f59.jpg', 'extension': 'jpg'}, 1353377249: {'path': 'temp/1745497017_799870_1353377249_50c60787b7bbbdf1a1272f2e57918959.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 = 22382953; (('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 = 22382953 group by h (('14', 68),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22382953 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 (22382953) 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 (22382953) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24042025 22382953 Nombre de photos uploadées : 68 / 23040 (0%) 24042025 22382953 Nombre de photos taguées (types de déchets): 0 / 68 (0%) 24042025 22382953 Nombre de photos taguées (volume) : 0 / 68 (0%) [{'photo_id': 1353371358, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/68e763163a33a36f9883a4c65aacd12b.jpg', 'username': None, 'uploaded_at': 1745496067, 'text': 'image_24042025_14_00_14_10253.jpg'}, {'photo_id': 1353371336, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/8adf90a3e8966c7f4bfea8dd97999b70.jpg', 'username': None, 'uploaded_at': 1745496067, 'text': 'image_24042025_14_00_35_10135.jpg'}, {'photo_id': 1353371317, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/7189320ecc4a4b573867596e01213aa9.jpg', 'username': None, 'uploaded_at': 1745496067, 'text': 'image_24042025_14_00_45_10135.jpg'}, {'photo_id': 1353371877, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/24/ea1296fb3d9e10655a2d63cbb31fc241.jpg', 'username': None, 'uploaded_at': 1745496127, 'text': 'image_24042025_14_00_55_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 5.7220458984375e-06 elapsed_time : order_list_meta_photo_and_scores 1.1682510375976562e-05 ???????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.005933284759521484 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22382953, '2025-04-24' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1743777,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024429798126220703 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= 1743777 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1743777, 'dashboard_run_id': 1753317, 'mtr_portfolio_id': 22381488, 'dashboard_result_id': 10070788, '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_P22381488_24-04-2025_13_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22381489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22381490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22381491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22381492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22381493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22381494, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22381495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22381496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22381497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22381498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22381499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22381500, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1753317, 'mtr_portfolio_id': 22381997, 'dashboard_result_id': 10070789, '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_P22381997_24-04-2025_14_06_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22382001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22382002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22382003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22382004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22382005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22382006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22382007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22382008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22382009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22382010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22382011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22382012, 'pht': 3726}}"}, {'dashboat_entry_day': 1743777, 'dashboard_run_id': 1753317, 'mtr_portfolio_id': 22382953, 'dashboard_result_id': 10070790, '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_P22382953_24-04-2025_14_14_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22382981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22382982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22382983, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22382984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22382985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22382986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22382987, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22382988, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22382989, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22382990, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22382991, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22382992, '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 = 22381488 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': 2757346, 'mtr_portfolio_id': 22381488, 'created_at': datetime.datetime(2025, 4, 24, 13, 46, 30), 'result': '0.07283001687836634', 'result_long': None, 'result_double': None}] Qualite : 0.07283001687836634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22381488 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22381488_24-04-2025_13_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22381488 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_P22381488_24-04-2025_13_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22381489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22381490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22381491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22381492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22381493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22381494, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22381495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22381496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22381497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22381498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22381499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22381500, 'pht': 3726}}" where mtr_portfolio_id = 22381488 and dashboard_run_id = 1753317 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`=22381488 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10070788, 0.07283001687836634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22381488_24-04-2025_13_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22381489, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22381490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22381491, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22381492, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22381493, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22381494, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22381495, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22381496, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22381497, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22381498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22381499, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22381500, '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 = 22381997 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': 2757376, 'mtr_portfolio_id': 22381997, 'created_at': datetime.datetime(2025, 4, 24, 14, 6, 58), 'result': '0.05530348544963968', 'result_long': None, 'result_double': None}] Qualite : 0.05530348544963968 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22381997 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22381997_24-04-2025_14_06_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22381997 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_P22381997_24-04-2025_14_06_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22382001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22382002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22382003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22382004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22382005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22382006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22382007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22382008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22382009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22382010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22382011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22382012, 'pht': 3726}}" where mtr_portfolio_id = 22381997 and dashboard_run_id = 1753317 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`=22381997 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10070789, 0.05530348544963968, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22381997_24-04-2025_14_06_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22382001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22382002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22382003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22382004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22382005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22382006, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22382007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22382008, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22382009, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22382010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22382011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22382012, '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 = 22382953 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': 2757457, 'mtr_portfolio_id': 22382953, 'created_at': datetime.datetime(2025, 4, 24, 14, 16, 57), 'result': '0.04286931643767377', 'result_long': None, 'result_double': None}] Qualite : 0.04286931643767377 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22382953 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22382953_24-04-2025_14_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22382953 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_P22382953_24-04-2025_14_16_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22382981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22382982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22382983, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22382984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22382985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22382986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22382987, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22382988, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22382989, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22382990, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22382991, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22382992, 'pht': 3726}}" where mtr_portfolio_id = 22382953 and dashboard_run_id = 1753317 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`=22382953 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10070790, 0.04286931643767377, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22382953_24-04-2025_14_16_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22382981, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22382982, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22382983, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22382984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22382985, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22382986, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22382987, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22382988, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22382989, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22382990, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22382991, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22382992, '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 (22381488,22381997,22382953) result : ((1353362230,), (1353362268,), (1353362314,), (1353362318,), (1353362642,), (1353362725,), (1353362953,), (1353363117,), (1353364038,), (1353364071,), (1353364488,), (1353364544,), (1353364593,), (1353365320,), (1353365381,), (1353365959,), (1353365953,), (1353365956,), (1353366415,), (1353366427,), (1353366486,), (1353366822,), (1353366848,), (1353366888,), (1353366925,), (1353366965,), (1353367443,), (1353367474,), (1353367505,), (1353367539,), (1353367571,), (1353367856,), (1353367862,), (1353367894,), (1353368789,), (1353368816,), (1353368845,), (1353368871,), (1353368898,), (1353368975,), (1353369006,), (1353369041,), (1353369079,), (1353369114,), (1353369146,), (1353369558,), (1353369602,), (1353369638,), (1353369842,), (1353369846,), (1353369851,), (1353369855,), (1353369860,), (1353370046,), (1353370066,), (1353370100,), (1353370105,), (1353370122,), (1353370130,), (1353370260,), (1353370262,), (1353370265,), (1353370268,), (1353370963,), (1353371016,), (1353371079,), (1353371106,), (1353371125,), (1353371380,), (1353371317,), (1353371336,), (1353371358,), (1353371734,), (1353371770,), (1353371800,), (1353371841,), (1353371877,), (1353372343,), (1353372412,), (1353372455,), (1353372484,), (1353372599,), (1353372644,), (1353372946,), (1353372982,), (1353373014,), (1353373043,), (1353373497,), (1353373499,), (1353373503,), (1353373507,), (1353373529,), (1353373942,), (1353373997,), (1353374015,), (1353374019,), (1353374023,), (1353374213,), (1353374328,), (1353374418,), (1353374429,), (1353374432,), (1353374487,), (1353374676,), (1353374679,), (1353374683,), (1353374730,), (1353374736,), (1353374740,), (1353374743,), (1353374748,), (1353374751,), (1353374891,), (1353374896,), (1353374911,), (1353375016,), (1353375043,), (1353375072,), (1353375682,), (1353375713,), (1353375746,), (1353375757,), (1353375780,), (1353375897,), (1353375924,), (1353375952,), (1353375981,), (1353376776,), (1353376830,), (1353376884,), (1353376951,), (1353377014,), (1353377070,), (1353377182,), (1353377217,), (1353377249,), (1353377286,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24042025': {'nb_upload': 68, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22382953]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1353377286, 1353377249, 1353377217, 1353377182, 1353377070, 1353377014, 1353376951, 1353376884, 1353376830, 1353376776] map_info['map_portfolio_photo'] : {22382953: [1353377286, 1353377249, 1353377217, 1353377182, 1353377070, 1353377014, 1353376951, 1353376884, 1353376830, 1353376776, 1353375981, 1353375952, 1353375924, 1353375897, 1353375780, 1353375757, 1353375746, 1353375713, 1353375682, 1353375072, 1353375043, 1353375016, 1353374911, 1353374896, 1353374891, 1353374751, 1353374748, 1353374743, 1353374740, 1353374736, 1353374730, 1353374683, 1353374679, 1353374676, 1353374487, 1353374432, 1353374429, 1353374418, 1353374328, 1353374213, 1353374023, 1353374019, 1353374015, 1353373997, 1353373942, 1353373529, 1353373507, 1353373503, 1353373499, 1353373497, 1353373043, 1353373014, 1353372982, 1353372946, 1353372644, 1353372599, 1353372484, 1353372455, 1353372412, 1353372343, 1353371877, 1353371841, 1353371800, 1353371770, 1353371734, 1353371358, 1353371336, 1353371317]} final : True mtd_id 4302 list_pids : [1353377286, 1353377249, 1353377217, 1353377182, 1353377070, 1353377014, 1353376951, 1353376884, 1353376830, 1353376776] Looping around the photos to save general results len do output : 1 /22382953Didn'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, '2757457') ('4302', '22382953', '1353377286', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353377249', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353377217', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353377182', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353377070', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353377014', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353376951', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353376884', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353376830', None, None, None, None, None, '2757457') ('4302', None, None, None, None, None, None, None, '2757457') ('4302', '22382953', '1353376776', None, None, None, None, None, '2757457') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '22382953', 'None', None, None, None, None, '2757457'), ('4302', '22382953', '1353377286', None, None, None, None, None, '2757457'), ('4302', '22382953', '1353377249', None, None, None, None, None, '2757457'), ('4302', '22382953', '1353377217', None, None, None, None, None, '2757457'), ('4302', '22382953', '1353377182', None, None, None, None, None, '2757457'), ('4302', '22382953', '1353377070', None, None, None, None, None, '2757457'), ('4302', '22382953', '1353377014', None, None, None, None, None, '2757457'), ('4302', '22382953', '1353376951', None, None, None, None, None, '2757457'), ('4302', '22382953', '1353376884', None, None, None, None, None, '2757457'), ('4302', '22382953', '1353376830', None, None, None, None, None, '2757457'), ('4302', '22382953', '1353376776', None, None, None, None, None, '2757457')] time used for this insertion : 0.013197183609008789 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3089444637298584 time spend to save output : 0.013559341430664062 total time spend for step 5 : 0.32250380516052246 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 (2757457) 2.29user 2.32system 0:09.50elapsed 48%CPU (0avgtext+0avgdata 164648maxresident)k 224inputs+18232outputs (0major+77187minor)pagefaults 0swaps