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 : 997220 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 (4171051) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4171051) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29082316 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4171051'] with mtr_portfolio_ids : ['29082316'] and first list_photo_ids : [] new path : /proc/997220/ Name: python3 Umask: 0002 State: R (running) Tgid: 997220 Ngid: 0 Pid: 997220 PPid: 997219 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 997220 NSpid: 997220 NSpgid: 996047 NSsid: 996047 VmPeak: 1113360 kB VmSize: 1113360 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105128 kB VmRSS: 105128 kB RssAnon: 66284 kB RssFile: 38844 kB RssShmem: 0 kB VmData: 872088 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 109 nonvoluntary_ctxt_switches: 139 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '997220', 'Ngid': '0', 'Pid': '997220', 'PPid': '997219', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '997220', 'NSpid': '997220', 'NSpgid': '996047', 'NSsid': '996047', 'VmPeak': '1113360 kB', 'VmSize': '1113360 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105128 kB', 'VmRSS': '105128 kB', 'RssAnon': '66284 kB', 'RssFile': '38844 kB', 'RssShmem': '0 kB', 'VmData': '872088 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '109', 'nonvoluntary_ctxt_switches': '139'} ('datou_batch_current', '997220', '1113360', '0', '1113360', '872088', '105128', b'', 'marlene', '4171051') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29082316) 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 (4171051 ) ) 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 (29082316) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1397294340, 'portfolio_id': 29082316}, {'photo_id': 1397294338, 'portfolio_id': 29082316}, {'photo_id': 1397294337, 'portfolio_id': 29082316}, {'photo_id': 1397294336, 'portfolio_id': 29082316}, {'photo_id': 1397294335, 'portfolio_id': 29082316}, {'photo_id': 1397294323, 'portfolio_id': 29082316}, {'photo_id': 1397294322, 'portfolio_id': 29082316}, {'photo_id': 1397294320, 'portfolio_id': 29082316}, {'photo_id': 1397294319, 'portfolio_id': 29082316}, {'photo_id': 1397294318, 'portfolio_id': 29082316}, {'photo_id': 1397294317, 'portfolio_id': 29082316}, {'photo_id': 1397294304, 'portfolio_id': 29082316}, {'photo_id': 1397294302, 'portfolio_id': 29082316}, {'photo_id': 1397294300, 'portfolio_id': 29082316}, {'photo_id': 1397294289, 'portfolio_id': 29082316}, {'photo_id': 1397294287, 'portfolio_id': 29082316}, {'photo_id': 1397294285, 'portfolio_id': 29082316}, {'photo_id': 1397294284, 'portfolio_id': 29082316}, {'photo_id': 1397294283, 'portfolio_id': 29082316}, {'photo_id': 1397294282, 'portfolio_id': 29082316}, {'photo_id': 1397294270, 'portfolio_id': 29082316}, {'photo_id': 1397294268, 'portfolio_id': 29082316}, {'photo_id': 1397294267, 'portfolio_id': 29082316}, {'photo_id': 1397294266, 'portfolio_id': 29082316}, {'photo_id': 1397294265, 'portfolio_id': 29082316}, {'photo_id': 1397294231, 'portfolio_id': 29082316}, {'photo_id': 1397294184, 'portfolio_id': 29082316}, {'photo_id': 1397294081, 'portfolio_id': 29082316}, {'photo_id': 1397294057, 'portfolio_id': 29082316}, {'photo_id': 1397294054, 'portfolio_id': 29082316}, {'photo_id': 1397294051, 'portfolio_id': 29082316}, {'photo_id': 1397294046, 'portfolio_id': 29082316}, {'photo_id': 1397294045, 'portfolio_id': 29082316}, {'photo_id': 1397294021, 'portfolio_id': 29082316}, {'photo_id': 1397294019, 'portfolio_id': 29082316}, {'photo_id': 1397294017, 'portfolio_id': 29082316}, {'photo_id': 1397294015, 'portfolio_id': 29082316}, {'photo_id': 1397293994, 'portfolio_id': 29082316}, {'photo_id': 1397293981, 'portfolio_id': 29082316}, {'photo_id': 1397293978, 'portfolio_id': 29082316}, {'photo_id': 1397293975, 'portfolio_id': 29082316}, {'photo_id': 1397293974, 'portfolio_id': 29082316}, {'photo_id': 1397293972, 'portfolio_id': 29082316}, {'photo_id': 1397293971, 'portfolio_id': 29082316}, {'photo_id': 1397293962, 'portfolio_id': 29082316}, {'photo_id': 1397293959, 'portfolio_id': 29082316}, {'photo_id': 1397293957, 'portfolio_id': 29082316}, {'photo_id': 1397293956, 'portfolio_id': 29082316}, {'photo_id': 1397293954, 'portfolio_id': 29082316}, {'photo_id': 1397293943, 'portfolio_id': 29082316}, {'photo_id': 1397293942, 'portfolio_id': 29082316}, {'photo_id': 1397293940, 'portfolio_id': 29082316}, {'photo_id': 1397293905, 'portfolio_id': 29082316}, {'photo_id': 1397293892, 'portfolio_id': 29082316}, {'photo_id': 1397293890, 'portfolio_id': 29082316}, {'photo_id': 1397293889, 'portfolio_id': 29082316}, {'photo_id': 1397293870, 'portfolio_id': 29082316}, {'photo_id': 1397293527, 'portfolio_id': 29082316}, {'photo_id': 1397293526, 'portfolio_id': 29082316}, {'photo_id': 1397293483, 'portfolio_id': 29082316}, {'photo_id': 1397293482, 'portfolio_id': 29082316}] map_portfolio_id_photo_id: {29082316: [1397294340, 1397294338, 1397294337, 1397294336, 1397294335, 1397294323, 1397294322, 1397294320, 1397294319, 1397294318, 1397294317, 1397294304, 1397294302, 1397294300, 1397294289, 1397294287, 1397294285, 1397294284, 1397294283, 1397294282, 1397294270, 1397294268, 1397294267, 1397294266, 1397294265, 1397294231, 1397294184, 1397294081, 1397294057, 1397294054, 1397294051, 1397294046, 1397294045, 1397294021, 1397294019, 1397294017, 1397294015, 1397293994, 1397293981, 1397293978, 1397293975, 1397293974, 1397293972, 1397293971, 1397293962, 1397293959, 1397293957, 1397293956, 1397293954, 1397293943, 1397293942, 1397293940, 1397293905, 1397293892, 1397293890, 1397293889, 1397293870, 1397293527, 1397293526, 1397293483, 1397293482]} ##### 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.0201873779296875 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Dec 2 10:44: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 (29082316) 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 : 29082316 get user id for portfolio 29082316 get sub ptf for main ptf 29082316, type 3726 and hashtags ['kraft', 'autre_refus', 'cartonnette', 'mal_croppe', 'Carton_brun', 'Carton_gris', 'metal', 'plastique', 'flou', 'papier', 'Teint_Dans_La_Masse', 'environnement'] 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`=29082316 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','autre_refus','cartonnette','mal_croppe','Carton_brun','Carton_gris','metal','plastique','flou','papier','Teint_Dans_La_Masse','environnement')) 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`=29082316 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','autre_refus','cartonnette','mal_croppe','Carton_brun','Carton_gris','metal','plastique','flou','papier','Teint_Dans_La_Masse','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 29082316, 'sub_port_id': 29082361, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19751832, 'last_updated_at': datetime.datetime(2025, 12, 2, 10, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 2, 10, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 2, 10, 33, 27)}, 'Carton_gris': {'main_port_id': 29082316, 'sub_port_id': 29082362, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19751833, 'last_updated_at': datetime.datetime(2025, 12, 2, 10, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 2, 10, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 2, 10, 33, 27)}, 'papier': {'main_port_id': 29082316, 'sub_port_id': 29082363, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19751834, 'last_updated_at': datetime.datetime(2025, 12, 2, 10, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 2, 10, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 2, 10, 33, 27)}, 'plastique': {'main_port_id': 29082316, 'sub_port_id': 29082364, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19751835, 'last_updated_at': datetime.datetime(2025, 12, 2, 10, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 2, 10, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 2, 10, 33, 27)}, 'metal': {'main_port_id': 29082316, 'sub_port_id': 29082365, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19751836, 'last_updated_at': datetime.datetime(2025, 12, 2, 10, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 2, 10, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 2, 10, 33, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 29082316, 'sub_port_id': 29082366, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19751837, 'last_updated_at': datetime.datetime(2025, 12, 2, 10, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 2, 10, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 2, 10, 33, 27)}, 'flou': {'main_port_id': 29082316, 'sub_port_id': 29082367, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19751838, 'last_updated_at': datetime.datetime(2025, 12, 2, 10, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 2, 10, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 2, 10, 33, 27)}, 'cartonnette': {'main_port_id': 29082316, 'sub_port_id': 29082368, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19751839, 'last_updated_at': datetime.datetime(2025, 12, 2, 10, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 2, 10, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 2, 10, 33, 27)}, 'kraft': {'main_port_id': 29082316, 'sub_port_id': 29082369, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19751840, 'last_updated_at': datetime.datetime(2025, 12, 2, 10, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 2, 10, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 2, 10, 33, 27)}, 'Carton_brun': {'main_port_id': 29082316, 'sub_port_id': 29082370, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19751841, 'last_updated_at': datetime.datetime(2025, 12, 2, 10, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 2, 10, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 2, 10, 33, 27)}, 'autre_refus': {'main_port_id': 29082316, 'sub_port_id': 29082371, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19751842, 'last_updated_at': datetime.datetime(2025, 12, 2, 10, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 2, 10, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 2, 10, 33, 27)}, 'environnement': {'main_port_id': 29082316, 'sub_port_id': 29082372, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19751843, 'last_updated_at': datetime.datetime(2025, 12, 2, 10, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 2, 10, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 2, 10, 33, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29082361 , 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=29082316 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 (29082361) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29082316) result : ((1397293482,), (1397293483,), (1397293526,), (1397293527,), (1397293870,), (1397293889,), (1397293890,), (1397293892,), (1397293905,), (1397293940,), (1397293942,), (1397293943,), (1397293954,), (1397293956,), (1397293957,), (1397293959,), (1397293962,), (1397293971,), (1397293972,), (1397293974,), (1397293975,), (1397293978,), (1397293981,), (1397293994,), (1397294015,), (1397294017,), (1397294019,), (1397294021,), (1397294045,), (1397294046,), (1397294051,), (1397294054,), (1397294057,), (1397294081,), (1397294184,), (1397294231,), (1397294265,), (1397294266,), (1397294267,), (1397294268,), (1397294270,), (1397294282,), (1397294283,), (1397294284,), (1397294285,), (1397294287,), (1397294289,), (1397294300,), (1397294302,), (1397294304,), (1397294317,), (1397294318,), (1397294319,), (1397294320,), (1397294322,), (1397294323,), (1397294335,), (1397294336,), (1397294337,), (1397294338,), (1397294340,)) 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 (1397294300) 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 29082362 , 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=29082316 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 (29082362) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29082316) result : ((1397293482,), (1397293483,), (1397293526,), (1397293527,), (1397293870,), (1397293889,), (1397293890,), (1397293892,), (1397293905,), (1397293940,), (1397293942,), (1397293943,), (1397293954,), (1397293956,), (1397293957,), (1397293959,), (1397293962,), (1397293971,), (1397293972,), (1397293974,), (1397293975,), (1397293978,), (1397293981,), (1397293994,), (1397294015,), (1397294017,), (1397294019,), (1397294021,), (1397294045,), (1397294046,), (1397294051,), (1397294054,), (1397294057,), (1397294081,), (1397294184,), (1397294231,), (1397294265,), (1397294266,), (1397294267,), (1397294268,), (1397294270,), (1397294282,), (1397294283,), (1397294284,), (1397294285,), (1397294287,), (1397294289,), (1397294300,), (1397294302,), (1397294304,), (1397294317,), (1397294318,), (1397294319,), (1397294320,), (1397294322,), (1397294323,), (1397294335,), (1397294336,), (1397294337,), (1397294338,), (1397294340,)) 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 (1397294300) 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 29082363 , 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=29082316 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 (29082363) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29082316) result : ((1397293482,), (1397293483,), (1397293526,), (1397293527,), (1397293870,), (1397293889,), (1397293890,), (1397293892,), (1397293905,), (1397293940,), (1397293942,), (1397293943,), (1397293954,), (1397293956,), (1397293957,), (1397293959,), (1397293962,), (1397293971,), (1397293972,), (1397293974,), (1397293975,), (1397293978,), (1397293981,), (1397293994,), (1397294015,), (1397294017,), (1397294019,), (1397294021,), (1397294045,), (1397294046,), (1397294051,), (1397294054,), (1397294057,), (1397294081,), (1397294184,), (1397294231,), (1397294265,), (1397294266,), (1397294267,), (1397294268,), (1397294270,), (1397294282,), (1397294283,), (1397294284,), (1397294285,), (1397294287,), (1397294289,), (1397294300,), (1397294302,), (1397294304,), (1397294317,), (1397294318,), (1397294319,), (1397294320,), (1397294322,), (1397294323,), (1397294335,), (1397294336,), (1397294337,), (1397294338,), (1397294340,)) 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 (1397294300) 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 29082364 , 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=29082316 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 (29082364) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29082316) result : ((1397293482,), (1397293483,), (1397293526,), (1397293527,), (1397293870,), (1397293889,), (1397293890,), (1397293892,), (1397293905,), (1397293940,), (1397293942,), (1397293943,), (1397293954,), (1397293956,), (1397293957,), (1397293959,), (1397293962,), (1397293971,), (1397293972,), (1397293974,), (1397293975,), (1397293978,), (1397293981,), (1397293994,), (1397294015,), (1397294017,), (1397294019,), (1397294021,), (1397294045,), (1397294046,), (1397294051,), (1397294054,), (1397294057,), (1397294081,), (1397294184,), (1397294231,), (1397294265,), (1397294266,), (1397294267,), (1397294268,), (1397294270,), (1397294282,), (1397294283,), (1397294284,), (1397294285,), (1397294287,), (1397294289,), (1397294300,), (1397294302,), (1397294304,), (1397294317,), (1397294318,), (1397294319,), (1397294320,), (1397294322,), (1397294323,), (1397294335,), (1397294336,), (1397294337,), (1397294338,), (1397294340,)) 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 (1397294300) 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 29082365 , 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=29082316 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 (29082365) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29082316) result : ((1397293482,), (1397293483,), (1397293526,), (1397293527,), (1397293870,), (1397293889,), (1397293890,), (1397293892,), (1397293905,), (1397293940,), (1397293942,), (1397293943,), (1397293954,), (1397293956,), (1397293957,), (1397293959,), (1397293962,), (1397293971,), (1397293972,), (1397293974,), (1397293975,), (1397293978,), (1397293981,), (1397293994,), (1397294015,), (1397294017,), (1397294019,), (1397294021,), (1397294045,), (1397294046,), (1397294051,), (1397294054,), (1397294057,), (1397294081,), (1397294184,), (1397294231,), (1397294265,), (1397294266,), (1397294267,), (1397294268,), (1397294270,), (1397294282,), (1397294283,), (1397294284,), (1397294285,), (1397294287,), (1397294289,), (1397294300,), (1397294302,), (1397294304,), (1397294317,), (1397294318,), (1397294319,), (1397294320,), (1397294322,), (1397294323,), (1397294335,), (1397294336,), (1397294337,), (1397294338,), (1397294340,)) 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 (1397294300) 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 29082366 , 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=29082316 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 (29082366) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29082316) result : ((1397293482,), (1397293483,), (1397293526,), (1397293527,), (1397293870,), (1397293889,), (1397293890,), (1397293892,), (1397293905,), (1397293940,), (1397293942,), (1397293943,), (1397293954,), (1397293956,), (1397293957,), (1397293959,), (1397293962,), (1397293971,), (1397293972,), (1397293974,), (1397293975,), (1397293978,), (1397293981,), (1397293994,), (1397294015,), (1397294017,), (1397294019,), (1397294021,), (1397294045,), (1397294046,), (1397294051,), (1397294054,), (1397294057,), (1397294081,), (1397294184,), (1397294231,), (1397294265,), (1397294266,), (1397294267,), (1397294268,), (1397294270,), (1397294282,), (1397294283,), (1397294284,), (1397294285,), (1397294287,), (1397294289,), (1397294300,), (1397294302,), (1397294304,), (1397294317,), (1397294318,), (1397294319,), (1397294320,), (1397294322,), (1397294323,), (1397294335,), (1397294336,), (1397294337,), (1397294338,), (1397294340,)) 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 (1397294300) 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 29082367 , 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=29082316 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 (29082367) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29082316) result : ((1397293482,), (1397293483,), (1397293526,), (1397293527,), (1397293870,), (1397293889,), (1397293890,), (1397293892,), (1397293905,), (1397293940,), (1397293942,), (1397293943,), (1397293954,), (1397293956,), (1397293957,), (1397293959,), (1397293962,), (1397293971,), (1397293972,), (1397293974,), (1397293975,), (1397293978,), (1397293981,), (1397293994,), (1397294015,), (1397294017,), (1397294019,), (1397294021,), (1397294045,), (1397294046,), (1397294051,), (1397294054,), (1397294057,), (1397294081,), (1397294184,), (1397294231,), (1397294265,), (1397294266,), (1397294267,), (1397294268,), (1397294270,), (1397294282,), (1397294283,), (1397294284,), (1397294285,), (1397294287,), (1397294289,), (1397294300,), (1397294302,), (1397294304,), (1397294317,), (1397294318,), (1397294319,), (1397294320,), (1397294322,), (1397294323,), (1397294335,), (1397294336,), (1397294337,), (1397294338,), (1397294340,)) 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 (1397294300) 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 29082368 , 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=29082316 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 (29082368) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29082316) result : ((1397293482,), (1397293483,), (1397293526,), (1397293527,), (1397293870,), (1397293889,), (1397293890,), (1397293892,), (1397293905,), (1397293940,), (1397293942,), (1397293943,), (1397293954,), (1397293956,), (1397293957,), (1397293959,), (1397293962,), (1397293971,), (1397293972,), (1397293974,), (1397293975,), (1397293978,), (1397293981,), (1397293994,), (1397294015,), (1397294017,), (1397294019,), (1397294021,), (1397294045,), (1397294046,), (1397294051,), (1397294054,), (1397294057,), (1397294081,), (1397294184,), (1397294231,), (1397294265,), (1397294266,), (1397294267,), (1397294268,), (1397294270,), (1397294282,), (1397294283,), (1397294284,), (1397294285,), (1397294287,), (1397294289,), (1397294300,), (1397294302,), (1397294304,), (1397294317,), (1397294318,), (1397294319,), (1397294320,), (1397294322,), (1397294323,), (1397294335,), (1397294336,), (1397294337,), (1397294338,), (1397294340,)) 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 (1397294300) 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 29082369 , 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=29082316 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 (29082369) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29082316) result : ((1397293482,), (1397293483,), (1397293526,), (1397293527,), (1397293870,), (1397293889,), (1397293890,), (1397293892,), (1397293905,), (1397293940,), (1397293942,), (1397293943,), (1397293954,), (1397293956,), (1397293957,), (1397293959,), (1397293962,), (1397293971,), (1397293972,), (1397293974,), (1397293975,), (1397293978,), (1397293981,), (1397293994,), (1397294015,), (1397294017,), (1397294019,), (1397294021,), (1397294045,), (1397294046,), (1397294051,), (1397294054,), (1397294057,), (1397294081,), (1397294184,), (1397294231,), (1397294265,), (1397294266,), (1397294267,), (1397294268,), (1397294270,), (1397294282,), (1397294283,), (1397294284,), (1397294285,), (1397294287,), (1397294289,), (1397294300,), (1397294302,), (1397294304,), (1397294317,), (1397294318,), (1397294319,), (1397294320,), (1397294322,), (1397294323,), (1397294335,), (1397294336,), (1397294337,), (1397294338,), (1397294340,)) 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 (1397294300) 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 29082370 , 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=29082316 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 (29082370) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29082316) result : ((1397293482,), (1397293483,), (1397293526,), (1397293527,), (1397293870,), (1397293889,), (1397293890,), (1397293892,), (1397293905,), (1397293940,), (1397293942,), (1397293943,), (1397293954,), (1397293956,), (1397293957,), (1397293959,), (1397293962,), (1397293971,), (1397293972,), (1397293974,), (1397293975,), (1397293978,), (1397293981,), (1397293994,), (1397294015,), (1397294017,), (1397294019,), (1397294021,), (1397294045,), (1397294046,), (1397294051,), (1397294054,), (1397294057,), (1397294081,), (1397294184,), (1397294231,), (1397294265,), (1397294266,), (1397294267,), (1397294268,), (1397294270,), (1397294282,), (1397294283,), (1397294284,), (1397294285,), (1397294287,), (1397294289,), (1397294300,), (1397294302,), (1397294304,), (1397294317,), (1397294318,), (1397294319,), (1397294320,), (1397294322,), (1397294323,), (1397294335,), (1397294336,), (1397294337,), (1397294338,), (1397294340,)) 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 (1397294300) 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 29082371 , 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=29082316 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 (29082371) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29082316) result : ((1397293482,), (1397293483,), (1397293526,), (1397293527,), (1397293870,), (1397293889,), (1397293890,), (1397293892,), (1397293905,), (1397293940,), (1397293942,), (1397293943,), (1397293954,), (1397293956,), (1397293957,), (1397293959,), (1397293962,), (1397293971,), (1397293972,), (1397293974,), (1397293975,), (1397293978,), (1397293981,), (1397293994,), (1397294015,), (1397294017,), (1397294019,), (1397294021,), (1397294045,), (1397294046,), (1397294051,), (1397294054,), (1397294057,), (1397294081,), (1397294184,), (1397294231,), (1397294265,), (1397294266,), (1397294267,), (1397294268,), (1397294270,), (1397294282,), (1397294283,), (1397294284,), (1397294285,), (1397294287,), (1397294289,), (1397294300,), (1397294302,), (1397294304,), (1397294317,), (1397294318,), (1397294319,), (1397294320,), (1397294322,), (1397294323,), (1397294335,), (1397294336,), (1397294337,), (1397294338,), (1397294340,)) 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 (1397294300) 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 29082372 , 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=29082316 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 (29082372) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29082316) result : ((1397293482,), (1397293483,), (1397293526,), (1397293527,), (1397293870,), (1397293889,), (1397293890,), (1397293892,), (1397293905,), (1397293940,), (1397293942,), (1397293943,), (1397293954,), (1397293956,), (1397293957,), (1397293959,), (1397293962,), (1397293971,), (1397293972,), (1397293974,), (1397293975,), (1397293978,), (1397293981,), (1397293994,), (1397294015,), (1397294017,), (1397294019,), (1397294021,), (1397294045,), (1397294046,), (1397294051,), (1397294054,), (1397294057,), (1397294081,), (1397294184,), (1397294231,), (1397294265,), (1397294266,), (1397294267,), (1397294268,), (1397294270,), (1397294282,), (1397294283,), (1397294284,), (1397294285,), (1397294287,), (1397294289,), (1397294300,), (1397294302,), (1397294304,), (1397294317,), (1397294318,), (1397294319,), (1397294320,), (1397294322,), (1397294323,), (1397294335,), (1397294336,), (1397294337,), (1397294338,), (1397294340,)) 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 (1397294300) 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`=29082316 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','autre_refus','cartonnette','mal_croppe','Carton_brun','Carton_gris','metal','plastique','flou','papier','Teint_Dans_La_Masse','environnement')) 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`=29082316 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','autre_refus','cartonnette','mal_croppe','Carton_brun','Carton_gris','metal','plastique','flou','papier','Teint_Dans_La_Masse','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 29082316, 'sub_port_id': 29082374, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19751844, 'last_updated_at': datetime.datetime(2025, 12, 2, 10, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 2, 10, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 2, 10, 33, 29)}, 'Carton_gris': {'main_port_id': 29082316, 'sub_port_id': 29082375, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19751845, 'last_updated_at': datetime.datetime(2025, 12, 2, 10, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 2, 10, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 2, 10, 33, 29)}, 'papier': {'main_port_id': 29082316, 'sub_port_id': 29082376, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19751846, 'last_updated_at': datetime.datetime(2025, 12, 2, 10, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 2, 10, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 2, 10, 33, 29)}, 'plastique': {'main_port_id': 29082316, 'sub_port_id': 29082377, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19751847, 'last_updated_at': datetime.datetime(2025, 12, 2, 10, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 2, 10, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 2, 10, 33, 29)}, 'metal': {'main_port_id': 29082316, 'sub_port_id': 29082378, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19751848, 'last_updated_at': datetime.datetime(2025, 12, 2, 10, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 2, 10, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 2, 10, 33, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 29082316, 'sub_port_id': 29082379, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19751849, 'last_updated_at': datetime.datetime(2025, 12, 2, 10, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 2, 10, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 2, 10, 33, 29)}, 'flou': {'main_port_id': 29082316, 'sub_port_id': 29082380, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19751850, 'last_updated_at': datetime.datetime(2025, 12, 2, 10, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 2, 10, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 2, 10, 33, 29)}, 'cartonnette': {'main_port_id': 29082316, 'sub_port_id': 29082381, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19751851, 'last_updated_at': datetime.datetime(2025, 12, 2, 10, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 2, 10, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 2, 10, 33, 29)}, 'kraft': {'main_port_id': 29082316, 'sub_port_id': 29082382, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19751852, 'last_updated_at': datetime.datetime(2025, 12, 2, 10, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 2, 10, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 2, 10, 33, 29)}, 'Carton_brun': {'main_port_id': 29082316, 'sub_port_id': 29082383, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19751853, 'last_updated_at': datetime.datetime(2025, 12, 2, 10, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 2, 10, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 2, 10, 33, 29)}, 'autre_refus': {'main_port_id': 29082316, 'sub_port_id': 29082384, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19751854, 'last_updated_at': datetime.datetime(2025, 12, 2, 10, 33, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 2, 10, 33, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 2, 10, 33, 29)}, 'environnement': {'main_port_id': 29082316, 'sub_port_id': 29082385, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19751855, 'last_updated_at': datetime.datetime(2025, 12, 2, 10, 42, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 2, 10, 42, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 2, 10, 33, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29082374,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29082361 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29082375,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29082362 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29082376,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29082363 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29082377,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29082364 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29082378,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29082365 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29082379,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29082366 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29082380,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29082367 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29082381,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29082368 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29082382,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29082369 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29082383,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29082370 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29082384,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29082371 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29082385,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29082372 lien utilise dans velours : https://marlene.fotonower.com/velours/29082374,29082375,29082376,29082377,29082378,29082379,29082380,29082381,29082382,29082383,29082384,29082385?tags=mal_croppe,Carton_gris,papier,plastique,metal,Teint_Dans_La_Masse,flou,cartonnette,kraft,Carton_brun,autre_refus,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29082316]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1397294340, 1397294338, 1397294337, 1397294336, 1397294335, 1397294323, 1397294322, 1397294320, 1397294319, 1397294318, 1397294317] map_info['map_portfolio_photo'] : {29082316: [1397294340, 1397294338, 1397294337, 1397294336, 1397294335, 1397294323, 1397294322, 1397294320, 1397294319, 1397294318, 1397294317, 1397294304, 1397294302, 1397294300, 1397294289, 1397294287, 1397294285, 1397294284, 1397294283, 1397294282, 1397294270, 1397294268, 1397294267, 1397294266, 1397294265, 1397294231, 1397294184, 1397294081, 1397294057, 1397294054, 1397294051, 1397294046, 1397294045, 1397294021, 1397294019, 1397294017, 1397294015, 1397293994, 1397293981, 1397293978, 1397293975, 1397293974, 1397293972, 1397293971, 1397293962, 1397293959, 1397293957, 1397293956, 1397293954, 1397293943, 1397293942, 1397293940, 1397293905, 1397293892, 1397293890, 1397293889, 1397293870, 1397293527, 1397293526, 1397293483, 1397293482]} final : False mtd_id 4302 list_pids : [1397294340, 1397294338, 1397294337, 1397294336, 1397294335, 1397294323, 1397294322, 1397294320, 1397294319, 1397294318, 1397294317] Looping around the photos to save general results len do output : 1 /29082316. 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, '4171051') ('4302', '29082316', '1397294340', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294338', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294337', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294336', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294335', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294323', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294322', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294320', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294319', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294318', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294317', None, None, None, None, None, '4171051') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '29082316', "{'mal_croppe': 29082361, 'Carton_gris': 29082362, 'papier': 29082363, 'plastique': 29082364, 'metal': 29082365, 'Teint_Dans_La_Masse': 29082366, 'flou': 29082367, 'cartonnette': 29082368, 'kraft': 29082369, 'Carton_brun': 29082370, 'autre_refus': 29082371, 'environnement': 29082372}", None, None, None, None, '4171051'), ('4302', '29082316', '1397294340', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294338', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294337', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294336', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294335', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294323', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294322', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294320', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294319', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294318', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294317', None, None, None, None, None, '4171051')] time used for this insertion : 0.01752758026123047 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5065262317657471 time spend to save output : 0.017839670181274414 total time spend for step 1 : 0.5243659019470215 step2:final Tue Dec 2 10:44: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 (29082316) 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 29082316 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1397293527,1397293526,1397293483,1397293482,1397293905,1397293892,1397293890,1397293889,1397293870,1397293943,1397293942,1397293940,1397293962,1397293959,1397293957,1397293956,1397293954,1397293981,1397293978,1397293975,1397293974,1397293972,1397293971,1397294184,1397294021,1397294081,1397294019,1397294057,1397294017,1397294015,1397294054,1397293994,1397294051,1397294046,1397294045,1397294231,1397294270,1397294268,1397294267,1397294266,1397294265,1397294289,1397294287,1397294285,1397294284,1397294283,1397294282,1397294304,1397294302,1397294300,1397294323,1397294322,1397294320,1397294319,1397294318,1397294317,1397294340,1397294338,1397294337,1397294336,1397294335); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29082316]) Inside saveOutput : final : False verbose : True original output for save of step final : {1397294340: ('0.0',), 1397294338: ('0.0',), 1397294337: ('0.0',), 1397294336: ('0.0',), 1397294335: ('0.0',), 1397294323: ('0.0',), 1397294322: ('0.0',), 1397294320: ('0.0',), 1397294319: ('0.0',), 1397294318: ('0.0',), 1397294317: ('0.0',)} new output for save of step final : {1397294340: ('0.0',), 1397294338: ('0.0',), 1397294337: ('0.0',), 1397294336: ('0.0',), 1397294335: ('0.0',), 1397294323: ('0.0',), 1397294322: ('0.0',), 1397294320: ('0.0',), 1397294319: ('0.0',), 1397294318: ('0.0',), 1397294317: ('0.0',)} [1397294340, 1397294338, 1397294337, 1397294336, 1397294335, 1397294323, 1397294322, 1397294320, 1397294319, 1397294318, 1397294317] map_info['map_portfolio_photo'] : {29082316: [1397294340, 1397294338, 1397294337, 1397294336, 1397294335, 1397294323, 1397294322, 1397294320, 1397294319, 1397294318, 1397294317, 1397294304, 1397294302, 1397294300, 1397294289, 1397294287, 1397294285, 1397294284, 1397294283, 1397294282, 1397294270, 1397294268, 1397294267, 1397294266, 1397294265, 1397294231, 1397294184, 1397294081, 1397294057, 1397294054, 1397294051, 1397294046, 1397294045, 1397294021, 1397294019, 1397294017, 1397294015, 1397293994, 1397293981, 1397293978, 1397293975, 1397293974, 1397293972, 1397293971, 1397293962, 1397293959, 1397293957, 1397293956, 1397293954, 1397293943, 1397293942, 1397293940, 1397293905, 1397293892, 1397293890, 1397293889, 1397293870, 1397293527, 1397293526, 1397293483, 1397293482]} final : False mtd_id 4302 list_pids : [1397294340, 1397294338, 1397294337, 1397294336, 1397294335, 1397294323, 1397294322, 1397294320, 1397294319, 1397294318, 1397294317] Looping around the photos to save general results len do output : 11 /1397294340.Didn't retrieve data . /1397294338.Didn't retrieve data . /1397294337.Didn't retrieve data . /1397294336.Didn't retrieve data . /1397294335.Didn't retrieve data . /1397294323.Didn't retrieve data . /1397294322.Didn't retrieve data . /1397294320.Didn't retrieve data . /1397294319.Didn't retrieve data . /1397294318.Didn't retrieve data . /1397294317.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, '4171051') ('4302', '29082316', '1397294340', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294338', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294337', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294336', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294335', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294323', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294322', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294320', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294319', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294318', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294317', None, None, None, None, None, '4171051') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '29082316', '1397294340', '0.0', None, None, None, None, '4171051'), ('4302', '29082316', '1397294338', '0.0', None, None, None, None, '4171051'), ('4302', '29082316', '1397294337', '0.0', None, None, None, None, '4171051'), ('4302', '29082316', '1397294336', '0.0', None, None, None, None, '4171051'), ('4302', '29082316', '1397294335', '0.0', None, None, None, None, '4171051'), ('4302', '29082316', '1397294323', '0.0', None, None, None, None, '4171051'), ('4302', '29082316', '1397294322', '0.0', None, None, None, None, '4171051'), ('4302', '29082316', '1397294320', '0.0', None, None, None, None, '4171051'), ('4302', '29082316', '1397294319', '0.0', None, None, None, None, '4171051'), ('4302', '29082316', '1397294318', '0.0', None, None, None, None, '4171051'), ('4302', '29082316', '1397294317', '0.0', None, None, None, None, '4171051')] time used for this insertion : 0.017724275588989258 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06482291221618652 time spend to save output : 0.018311262130737305 total time spend for step 2 : 0.08313417434692383 step3:velours_tree Tue Dec 2 10:44: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 : {29082316: [{'mal_croppe': 29082361, 'Carton_gris': 29082362, 'papier': 29082363, 'plastique': 29082364, 'metal': 29082365, 'Teint_Dans_La_Masse': 29082366, 'flou': 29082367, 'cartonnette': 29082368, 'kraft': 29082369, 'Carton_brun': 29082370, 'autre_refus': 29082371, 'environnement': 29082372}]} input_args_next_step : {29082316: ()} output_args : {29082316: [{'mal_croppe': 29082361, 'Carton_gris': 29082362, 'papier': 29082363, 'plastique': 29082364, 'metal': 29082365, 'Teint_Dans_La_Masse': 29082366, 'flou': 29082367, 'cartonnette': 29082368, 'kraft': 29082369, 'Carton_brun': 29082370, 'autre_refus': 29082371, 'environnement': 29082372}]} args : 29082316 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': 29082361, 'Carton_gris': 29082362, 'papier': 29082363, 'plastique': 29082364, 'metal': 29082365, 'Teint_Dans_La_Masse': 29082366, 'flou': 29082367, 'cartonnette': 29082368, 'kraft': 29082369, 'Carton_brun': 29082370, 'autre_refus': 29082371, 'environnement': 29082372},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29082316) 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([29082316]) 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.3193094730377197 time spend to save output : 0.00010704994201660156 total time spend for step 3 : 0.31941652297973633 step4:send_mail_cod Tue Dec 2 10:44: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 : {1397294340: ('0.0',), 1397294338: ('0.0',), 1397294337: ('0.0',), 1397294336: ('0.0',), 1397294335: ('0.0',), 1397294323: ('0.0',), 1397294322: ('0.0',), 1397294320: ('0.0',), 1397294319: ('0.0',), 1397294318: ('0.0',), 1397294317: ('0.0',)} input_args_next_step : {1397294340: ()} output_args : {1397294340: ('0.0',), 1397294338: ('0.0',), 1397294337: ('0.0',), 1397294336: ('0.0',), 1397294335: ('0.0',), 1397294323: ('0.0',), 1397294322: ('0.0',), 1397294320: ('0.0',), 1397294319: ('0.0',), 1397294318: ('0.0',), 1397294317: ('0.0',)} args : 1397294340 depend.output_id : 0 input_args_next_step : {1397294340: ('0.0',), 1397294338: ()} output_args : {1397294340: ('0.0',), 1397294338: ('0.0',), 1397294337: ('0.0',), 1397294336: ('0.0',), 1397294335: ('0.0',), 1397294323: ('0.0',), 1397294322: ('0.0',), 1397294320: ('0.0',), 1397294319: ('0.0',), 1397294318: ('0.0',), 1397294317: ('0.0',)} args : 1397294338 depend.output_id : 0 input_args_next_step : {1397294340: ('0.0',), 1397294338: ('0.0',), 1397294337: ()} output_args : {1397294340: ('0.0',), 1397294338: ('0.0',), 1397294337: ('0.0',), 1397294336: ('0.0',), 1397294335: ('0.0',), 1397294323: ('0.0',), 1397294322: ('0.0',), 1397294320: ('0.0',), 1397294319: ('0.0',), 1397294318: ('0.0',), 1397294317: ('0.0',)} args : 1397294337 depend.output_id : 0 input_args_next_step : {1397294340: ('0.0',), 1397294338: ('0.0',), 1397294337: ('0.0',), 1397294336: ()} output_args : {1397294340: ('0.0',), 1397294338: ('0.0',), 1397294337: ('0.0',), 1397294336: ('0.0',), 1397294335: ('0.0',), 1397294323: ('0.0',), 1397294322: ('0.0',), 1397294320: ('0.0',), 1397294319: ('0.0',), 1397294318: ('0.0',), 1397294317: ('0.0',)} args : 1397294336 depend.output_id : 0 input_args_next_step : {1397294340: ('0.0',), 1397294338: ('0.0',), 1397294337: ('0.0',), 1397294336: ('0.0',), 1397294335: ()} output_args : {1397294340: ('0.0',), 1397294338: ('0.0',), 1397294337: ('0.0',), 1397294336: ('0.0',), 1397294335: ('0.0',), 1397294323: ('0.0',), 1397294322: ('0.0',), 1397294320: ('0.0',), 1397294319: ('0.0',), 1397294318: ('0.0',), 1397294317: ('0.0',)} args : 1397294335 depend.output_id : 0 input_args_next_step : {1397294340: ('0.0',), 1397294338: ('0.0',), 1397294337: ('0.0',), 1397294336: ('0.0',), 1397294335: ('0.0',), 1397294323: ()} output_args : {1397294340: ('0.0',), 1397294338: ('0.0',), 1397294337: ('0.0',), 1397294336: ('0.0',), 1397294335: ('0.0',), 1397294323: ('0.0',), 1397294322: ('0.0',), 1397294320: ('0.0',), 1397294319: ('0.0',), 1397294318: ('0.0',), 1397294317: ('0.0',)} args : 1397294323 depend.output_id : 0 input_args_next_step : {1397294340: ('0.0',), 1397294338: ('0.0',), 1397294337: ('0.0',), 1397294336: ('0.0',), 1397294335: ('0.0',), 1397294323: ('0.0',), 1397294322: ()} output_args : {1397294340: ('0.0',), 1397294338: ('0.0',), 1397294337: ('0.0',), 1397294336: ('0.0',), 1397294335: ('0.0',), 1397294323: ('0.0',), 1397294322: ('0.0',), 1397294320: ('0.0',), 1397294319: ('0.0',), 1397294318: ('0.0',), 1397294317: ('0.0',)} args : 1397294322 depend.output_id : 0 input_args_next_step : {1397294340: ('0.0',), 1397294338: ('0.0',), 1397294337: ('0.0',), 1397294336: ('0.0',), 1397294335: ('0.0',), 1397294323: ('0.0',), 1397294322: ('0.0',), 1397294320: ()} output_args : {1397294340: ('0.0',), 1397294338: ('0.0',), 1397294337: ('0.0',), 1397294336: ('0.0',), 1397294335: ('0.0',), 1397294323: ('0.0',), 1397294322: ('0.0',), 1397294320: ('0.0',), 1397294319: ('0.0',), 1397294318: ('0.0',), 1397294317: ('0.0',)} args : 1397294320 depend.output_id : 0 input_args_next_step : {1397294340: ('0.0',), 1397294338: ('0.0',), 1397294337: ('0.0',), 1397294336: ('0.0',), 1397294335: ('0.0',), 1397294323: ('0.0',), 1397294322: ('0.0',), 1397294320: ('0.0',), 1397294319: ()} output_args : {1397294340: ('0.0',), 1397294338: ('0.0',), 1397294337: ('0.0',), 1397294336: ('0.0',), 1397294335: ('0.0',), 1397294323: ('0.0',), 1397294322: ('0.0',), 1397294320: ('0.0',), 1397294319: ('0.0',), 1397294318: ('0.0',), 1397294317: ('0.0',)} args : 1397294319 depend.output_id : 0 input_args_next_step : {1397294340: ('0.0',), 1397294338: ('0.0',), 1397294337: ('0.0',), 1397294336: ('0.0',), 1397294335: ('0.0',), 1397294323: ('0.0',), 1397294322: ('0.0',), 1397294320: ('0.0',), 1397294319: ('0.0',), 1397294318: ()} output_args : {1397294340: ('0.0',), 1397294338: ('0.0',), 1397294337: ('0.0',), 1397294336: ('0.0',), 1397294335: ('0.0',), 1397294323: ('0.0',), 1397294322: ('0.0',), 1397294320: ('0.0',), 1397294319: ('0.0',), 1397294318: ('0.0',), 1397294317: ('0.0',)} args : 1397294318 depend.output_id : 0 input_args_next_step : {1397294340: ('0.0',), 1397294338: ('0.0',), 1397294337: ('0.0',), 1397294336: ('0.0',), 1397294335: ('0.0',), 1397294323: ('0.0',), 1397294322: ('0.0',), 1397294320: ('0.0',), 1397294319: ('0.0',), 1397294318: ('0.0',), 1397294317: ()} output_args : {1397294340: ('0.0',), 1397294338: ('0.0',), 1397294337: ('0.0',), 1397294336: ('0.0',), 1397294335: ('0.0',), 1397294323: ('0.0',), 1397294322: ('0.0',), 1397294320: ('0.0',), 1397294319: ('0.0',), 1397294318: ('0.0',), 1397294317: ('0.0',)} args : 1397294317 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 : {29082316: [{'mal_croppe': 29082361, 'Carton_gris': 29082362, 'papier': 29082363, 'plastique': 29082364, 'metal': 29082365, 'Teint_Dans_La_Masse': 29082366, 'flou': 29082367, 'cartonnette': 29082368, 'kraft': 29082369, 'Carton_brun': 29082370, 'autre_refus': 29082371, 'environnement': 29082372}]} input_args_next_step : {1397294340: ('0.0',), 1397294338: ('0.0',), 1397294337: ('0.0',), 1397294336: ('0.0',), 1397294335: ('0.0',), 1397294323: ('0.0',), 1397294322: ('0.0',), 1397294320: ('0.0',), 1397294319: ('0.0',), 1397294318: ('0.0',), 1397294317: ('0.0',), 29082316: ()} output_args : {29082316: [{'mal_croppe': 29082361, 'Carton_gris': 29082362, 'papier': 29082363, 'plastique': 29082364, 'metal': 29082365, 'Teint_Dans_La_Masse': 29082366, 'flou': 29082367, 'cartonnette': 29082368, 'kraft': 29082369, 'Carton_brun': 29082370, 'autre_refus': 29082371, 'environnement': 29082372}]} args : 29082316 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 :12, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29082316) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1397294340,1397294338,1397294337,1397294336,1397294335,1397294323,1397294322,1397294320,1397294319,1397294318,1397294317) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1397294317 begin to download photo : 1397294320 begin to download photo : 1397294335 begin to download photo : 1397294338 download finish for photo 1397294338 begin to download photo : 1397294340 download finish for photo 1397294335 begin to download photo : 1397294336 download finish for photo 1397294317 begin to download photo : 1397294318 download finish for photo 1397294320 begin to download photo : 1397294322 download finish for photo 1397294336 begin to download photo : 1397294337 download finish for photo 1397294340 download finish for photo 1397294318 begin to download photo : 1397294319 download finish for photo 1397294322 begin to download photo : 1397294323 download finish for photo 1397294337 download finish for photo 1397294319 download finish for photo 1397294323 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette290823611764668698/ imagette290823641764668698/ imagette290823651764668698/ imagette290823671764668698/ imagette290823681764668698/ imagette290823691764668698/ imagette290823711764668698/ imagette290823621764668698/ imagette290823661764668698/ imagette290823701764668698/ length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P29082316_02-12-2025_10_44_58.pdf 29082361 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29082361 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290823611764668698 29082364 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29082364 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290823641764668698 29082365 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29082365 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290823651764668698 29082367 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29082367 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290823671764668698 29082368 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29082368 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290823681764668698 29082369 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29082369 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290823691764668698 29082371 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29082371 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290823711764668698 29082362 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29082362 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290823621764668698 29082366 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29082366 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290823661764668698 29082370 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29082370 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette290823701764668698 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29082316 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29082374,29082375,29082376,29082377,29082378,29082379,29082380,29082381,29082382,29082383,29082384,29082385?tags=mal_croppe,Carton_gris,papier,plastique,metal,Teint_Dans_La_Masse,flou,cartonnette,kraft,Carton_brun,autre_refus,environnement your option no_mail is active, we will not send the real mail to your client args[1397294340] : ('0.0',) no score found for photo 1397294340 We are sending mail with results at report@fotonower.com args[1397294338] : ('0.0',) no score found for photo 1397294338 We are sending mail with results at report@fotonower.com args[1397294337] : ('0.0',) no score found for photo 1397294337 We are sending mail with results at report@fotonower.com args[1397294336] : ('0.0',) no score found for photo 1397294336 We are sending mail with results at report@fotonower.com args[1397294335] : ('0.0',) no score found for photo 1397294335 We are sending mail with results at report@fotonower.com args[1397294323] : ('0.0',) no score found for photo 1397294323 We are sending mail with results at report@fotonower.com args[1397294322] : ('0.0',) no score found for photo 1397294322 We are sending mail with results at report@fotonower.com args[1397294320] : ('0.0',) no score found for photo 1397294320 We are sending mail with results at report@fotonower.com args[1397294319] : ('0.0',) no score found for photo 1397294319 We are sending mail with results at report@fotonower.com args[1397294318] : ('0.0',) no score found for photo 1397294318 We are sending mail with results at report@fotonower.com args[1397294317] : ('0.0',) no score found for photo 1397294317 We are sending mail with results at report@fotonower.com refus_total : 0.0 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29082316 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_P29082316_02-12-2025_10_44_58.pdf results_Auto_P29082316_02-12-2025_10_44_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29082316_02-12-2025_10_44_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','29082316','results_Auto_P29082316_02-12-2025_10_44_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29082316_02-12-2025_10_44_58.pdf','pdf','','0.11','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29082316]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1397294340, 1397294338, 1397294337, 1397294336, 1397294335, 1397294323, 1397294322, 1397294320, 1397294319, 1397294318, 1397294317] map_info['map_portfolio_photo'] : {29082316: [1397294340, 1397294338, 1397294337, 1397294336, 1397294335, 1397294323, 1397294322, 1397294320, 1397294319, 1397294318, 1397294317, 1397294304, 1397294302, 1397294300, 1397294289, 1397294287, 1397294285, 1397294284, 1397294283, 1397294282, 1397294270, 1397294268, 1397294267, 1397294266, 1397294265, 1397294231, 1397294184, 1397294081, 1397294057, 1397294054, 1397294051, 1397294046, 1397294045, 1397294021, 1397294019, 1397294017, 1397294015, 1397293994, 1397293981, 1397293978, 1397293975, 1397293974, 1397293972, 1397293971, 1397293962, 1397293959, 1397293957, 1397293956, 1397293954, 1397293943, 1397293942, 1397293940, 1397293905, 1397293892, 1397293890, 1397293889, 1397293870, 1397293527, 1397293526, 1397293483, 1397293482]} final : False mtd_id 4302 list_pids : [1397294340, 1397294338, 1397294337, 1397294336, 1397294335, 1397294323, 1397294322, 1397294320, 1397294319, 1397294318, 1397294317] 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, '4171051') ('4302', '29082316', '1397294340', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294338', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294337', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294336', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294335', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294323', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294322', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294320', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294319', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294318', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294317', None, None, None, None, None, '4171051') 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', '29082316', '1397294340', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294338', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294337', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294336', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294335', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294323', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294322', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294320', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294319', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294318', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294317', None, None, None, None, None, '4171051')] time used for this insertion : 0.017452001571655273 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7057619094848633 time spend to save output : 0.017844438552856445 total time spend for step 4 : 1.7236063480377197 step5:split_time_score Tue Dec 2 10:44:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['29082316'] 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 : [('29082316',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29082316) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1397294338: {'path': 'temp/1764668697_997220_1397294338_9a3738bb4930e08b59b58895dd8f84d6.jpg', 'extension': 'jpg'}, 1397294340: {'path': 'temp/1764668697_997220_1397294340_de7c12babb1bab9e8f9746c2fa817082.jpg', 'extension': 'jpg'}, 1397294335: {'path': 'temp/1764668697_997220_1397294335_398d0686658d11c8eb13bb9b7f311456.jpg', 'extension': 'jpg'}, 1397294336: {'path': 'temp/1764668697_997220_1397294336_efa824264c5a7216303e6f04fff2fa3e.jpg', 'extension': 'jpg'}, 1397294337: {'path': 'temp/1764668697_997220_1397294337_215fcaa4118387f7a55e460a78e8ba96.jpg', 'extension': 'jpg'}, 1397294317: {'path': 'temp/1764668697_997220_1397294317_f2e9a86c118aeb33c20100b67e96a108.jpg', 'extension': 'jpg'}, 1397294318: {'path': 'temp/1764668697_997220_1397294318_8a4dd221efe531847663c2d485dbda5e.jpg', 'extension': 'jpg'}, 1397294319: {'path': 'temp/1764668697_997220_1397294319_a17f1b6f56b1ee567a0215a3ea875b83.jpg', 'extension': 'jpg'}, 1397294320: {'path': 'temp/1764668697_997220_1397294320_1beab8d0728f0b342bdc2055835f78c4.jpg', 'extension': 'jpg'}, 1397294322: {'path': 'temp/1764668697_997220_1397294322_ba4b640655cf9119eb9d033dc065dd87.jpg', 'extension': 'jpg'}, 1397294323: {'path': 'temp/1764668697_997220_1397294323_c498b918c20f5dd732d79cc51688ca17.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 = 29082316; (('arc_en_ciel_jrm_live',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29082316 group by h (('10', 61),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29082316 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 (29082316) 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 (29082316) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02122025 29082316 Nombre de photos uploadées : 61 / 23040 (0%) 02122025 29082316 Nombre de photos taguées (types de déchets): 0 / 61 (0%) 02122025 29082316 Nombre de photos taguées (volume) : 0 / 61 (0%) [{'photo_id': 1397293527, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/2/15e9537e51a09c425a0964d6eb509272.jpg', 'username': None, 'uploaded_at': 1764667867, 'text': 'image_02122025_10_30_05_10163.jpg'}, {'photo_id': 1397293526, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/2/778cc574a3f6334e5faf5553d7fa8c2f.jpg', 'username': None, 'uploaded_at': 1764667867, 'text': 'image_02122025_10_30_14_9125.jpg'}, {'photo_id': 1397293483, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/2/4fd822a6e450ceb280b8279d384f7924.jpg', 'username': None, 'uploaded_at': 1764667867, 'text': 'image_02122025_10_30_24_10136.jpg'}, {'photo_id': 1397293482, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/2/a844cd4ccd4a07964588b7db3b115dc8.jpg', 'username': None, 'uploaded_at': 1764667867, 'text': 'image_02122025_10_30_34_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 9.059906005859375e-06 ????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0028543472290039062 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 29082316, '2025-12-02' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 218 and date = '2025-12-02' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2675929,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.24512457847595215 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= 2675929 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2675929, 'dashboard_run_id': 2684816, 'mtr_portfolio_id': 29081318, 'dashboard_result_id': 17943693, '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_P29081318_02-12-2025_10_06_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29081334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29081335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29081336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29081337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29081338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29081339, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29081340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29081341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29081342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29081343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29081344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29081345, 'pht': 3726}}"}, {'dashboat_entry_day': 2675929, 'dashboard_run_id': 2684816, 'mtr_portfolio_id': 29081699, 'dashboard_result_id': 17943694, '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_P29081699_02-12-2025_10_18_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29081720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29081721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29081722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29081723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29081724, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29081725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29081726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29081727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29081728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29081729, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29081730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29081731, 'pht': 3726}}"}, {'dashboat_entry_day': 2675929, 'dashboard_run_id': 2684816, 'mtr_portfolio_id': 29081944, 'dashboard_result_id': 17943695, '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_P29081944_02-12-2025_10_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29081966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29081967, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29081968, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29081969, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29081970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29081971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29081972, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29081973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29081974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29081975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29081976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29081977, 'pht': 3726}}"}, {'dashboat_entry_day': 2675929, 'dashboard_run_id': 2684816, 'mtr_portfolio_id': 29082316, 'dashboard_result_id': 17943696, '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_P29082316_02-12-2025_10_43_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29082361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29082362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29082363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29082364, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29082365, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29082366, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29082367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29082368, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29082369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29082370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29082371, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29082372, '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 = 29081318 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 29081318 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 29081318 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29081318 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29081318 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29081318 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29081318_02-12-2025_10_06_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29081318 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_P29081318_02-12-2025_10_06_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29081334, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29081335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29081336, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29081337, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29081338, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29081339, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29081340, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29081341, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29081342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29081343, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29081344, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29081345, 'pht': 3726}}" where mtr_portfolio_id = 29081318 and dashboard_run_id = 2684816 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 = 29081699 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 29081699 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 29081699 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29081699 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29081699 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29081699 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29081699_02-12-2025_10_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29081699 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_P29081699_02-12-2025_10_18_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29081720, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29081721, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29081722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29081723, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29081724, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29081725, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29081726, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29081727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29081728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29081729, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29081730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29081731, 'pht': 3726}}" where mtr_portfolio_id = 29081699 and dashboard_run_id = 2684816 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 = 29081944 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 29081944 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 29081944 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29081944 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29081944 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29081944 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29081944_02-12-2025_10_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29081944 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_P29081944_02-12-2025_10_33_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29081966, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29081967, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29081968, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29081969, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29081970, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29081971, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29081972, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29081973, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29081974, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29081975, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29081976, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29081977, 'pht': 3726}}" where mtr_portfolio_id = 29081944 and dashboard_run_id = 2684816 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 = 29082316 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 29082316 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 29082316 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29082316 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29082316 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29082316 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29082316_02-12-2025_10_44_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29082316 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_P29082316_02-12-2025_10_44_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29082361, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29082362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29082363, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29082364, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29082365, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29082366, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29082367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29082368, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29082369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29082370, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29082371, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29082372, 'pht': 3726}}" where mtr_portfolio_id = 29082316 and dashboard_run_id = 2684816 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29081318,29081699,29081944,29082316) result : ((1397291460,), (1397291461,), (1397291462,), (1397291463,), (1397291464,), (1397291480,), (1397291482,), (1397291484,), (1397291485,), (1397291487,), (1397291489,), (1397291494,), (1397291496,), (1397291497,), (1397291499,), (1397291507,), (1397291509,), (1397291512,), (1397291515,), (1397291517,), (1397291520,), (1397291527,), (1397291528,), (1397291531,), (1397291534,), (1397291539,), (1397291540,), (1397291542,), (1397291543,), (1397291546,), (1397291549,), (1397291557,), (1397291558,), (1397291560,), (1397291562,), (1397291573,), (1397291574,), (1397291576,), (1397291578,), (1397291580,), (1397291593,), (1397291702,), (1397291709,), (1397291711,), (1397291713,), (1397291716,), (1397291806,), (1397291807,), (1397291809,), (1397291811,), (1397291813,), (1397291823,), (1397291824,), (1397291825,), (1397291826,), (1397291829,), (1397291832,), (1397292026,), (1397292113,), (1397292133,), (1397292139,), (1397292258,), (1397292259,), (1397292283,), (1397292331,), (1397292334,), (1397292358,), (1397292383,), (1397292385,), (1397292410,), (1397292424,), (1397292425,), (1397292435,), (1397292513,), (1397292514,), (1397292516,), (1397292520,), (1397292523,), (1397292544,), (1397292536,), (1397292537,), (1397292539,), (1397292541,), (1397292552,), (1397292554,), (1397292555,), (1397292557,), (1397292560,), (1397292567,), (1397292568,), (1397292570,), (1397292572,), (1397292575,), (1397292584,), (1397292585,), (1397292587,), (1397292589,), (1397292600,), (1397292602,), (1397292603,), (1397292605,), (1397292608,), (1397292610,), (1397292618,), (1397292619,), (1397292621,), (1397292634,), (1397292635,), (1397292637,), (1397292640,), (1397292643,), (1397292645,), (1397292651,), (1397292652,), (1397292654,), (1397292655,), (1397292667,), (1397292668,), (1397292670,), (1397292682,), (1397292683,), (1397292685,), (1397292687,), (1397292690,), (1397292693,), (1397292700,), (1397292701,), (1397292703,), (1397292715,), (1397292716,), (1397292718,), (1397292720,), (1397292722,), (1397292725,), (1397292733,), (1397292734,), (1397292736,), (1397292738,), (1397292741,), (1397292750,), (1397292752,), (1397292753,), (1397292755,), (1397292766,), (1397292768,), (1397292770,), (1397292772,), (1397292780,), (1397292867,), (1397292895,), (1397292857,), (1397292858,), (1397292860,), (1397292862,), (1397292864,), (1397292873,), (1397292875,), (1397292877,), (1397292880,), (1397292882,), (1397292884,), (1397292891,), (1397292892,), (1397292893,), (1397292894,), (1397292901,), (1397292903,), (1397292905,), (1397292908,), (1397292911,), (1397292913,), (1397292914,), (1397292916,), (1397292917,), (1397292919,), (1397292922,), (1397292931,), (1397292932,), (1397292934,), (1397292936,), (1397292939,), (1397292941,), (1397292949,), (1397292950,), (1397292952,), (1397292954,), (1397292965,), (1397292967,), (1397292968,), (1397292970,), (1397292973,), (1397292982,), (1397292983,), (1397292985,), (1397293002,), (1397293154,), (1397293173,), (1397293175,), (1397293177,), (1397293199,), (1397293207,), (1397293255,), (1397293256,), (1397293258,), (1397293260,), (1397293263,), (1397293328,), (1397293329,), (1397293331,), (1397293344,), (1397293345,), (1397293347,), (1397293350,), (1397293353,), (1397293355,), (1397293361,), (1397293363,), (1397293364,), (1397293366,), (1397293377,), (1397293378,), (1397293380,), (1397293382,), (1397293384,), (1397293394,), (1397293395,), (1397293421,), (1397293426,), (1397293581,), (1397293482,), (1397293483,), (1397293526,), (1397293527,), (1397293870,), (1397293889,), (1397293890,), (1397293892,), (1397293905,), (1397293940,), (1397293942,), (1397293943,), (1397293954,), (1397293956,), (1397293957,), (1397293959,), (1397293962,), (1397293971,), (1397293972,), (1397293974,), (1397293975,), (1397293978,), (1397293981,), (1397293994,), (1397294015,), (1397294017,), (1397294019,), (1397294021,), (1397294045,), (1397294046,), (1397294051,), (1397294054,), (1397294057,), (1397294081,), (1397294184,), (1397294231,), (1397294265,), (1397294266,), (1397294267,), (1397294268,), (1397294270,), (1397294282,), (1397294283,), (1397294284,), (1397294285,), (1397294287,), (1397294289,), (1397294300,), (1397294302,), (1397294304,), (1397294317,), (1397294318,), (1397294319,), (1397294320,), (1397294322,), (1397294323,), (1397294335,), (1397294336,), (1397294337,), (1397294338,), (1397294340,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02122025': {'nb_upload': 61, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29082316]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1397294340, 1397294338, 1397294337, 1397294336, 1397294335, 1397294323, 1397294322, 1397294320, 1397294319, 1397294318, 1397294317] map_info['map_portfolio_photo'] : {29082316: [1397294340, 1397294338, 1397294337, 1397294336, 1397294335, 1397294323, 1397294322, 1397294320, 1397294319, 1397294318, 1397294317, 1397294304, 1397294302, 1397294300, 1397294289, 1397294287, 1397294285, 1397294284, 1397294283, 1397294282, 1397294270, 1397294268, 1397294267, 1397294266, 1397294265, 1397294231, 1397294184, 1397294081, 1397294057, 1397294054, 1397294051, 1397294046, 1397294045, 1397294021, 1397294019, 1397294017, 1397294015, 1397293994, 1397293981, 1397293978, 1397293975, 1397293974, 1397293972, 1397293971, 1397293962, 1397293959, 1397293957, 1397293956, 1397293954, 1397293943, 1397293942, 1397293940, 1397293905, 1397293892, 1397293890, 1397293889, 1397293870, 1397293527, 1397293526, 1397293483, 1397293482]} final : True mtd_id 4302 list_pids : [1397294340, 1397294338, 1397294337, 1397294336, 1397294335, 1397294323, 1397294322, 1397294320, 1397294319, 1397294318, 1397294317] Looping around the photos to save general results len do output : 1 /29082316Didn'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, '4171051') ('4302', '29082316', '1397294340', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294338', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294337', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294336', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294335', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294323', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294322', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294320', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294319', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294318', None, None, None, None, None, '4171051') ('4302', None, None, None, None, None, None, None, '4171051') ('4302', '29082316', '1397294317', None, None, None, None, None, '4171051') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '29082316', 'None', None, None, None, None, '4171051'), ('4302', '29082316', '1397294340', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294338', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294337', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294336', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294335', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294323', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294322', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294320', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294319', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294318', None, None, None, None, None, '4171051'), ('4302', '29082316', '1397294317', None, None, None, None, None, '4171051')] time used for this insertion : 0.017905235290527344 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5167794227600098 time spend to save output : 0.018184185028076172 total time spend for step 5 : 0.5349636077880859 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 (4171051) 2.21user 2.56system 0:05.31elapsed 89%CPU (0avgtext+0avgdata 166272maxresident)k 9520inputs+6168outputs (144major+67241minor)pagefaults 0swaps