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 : 3583175 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 (4030242) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4030242) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28416538 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4030242'] with mtr_portfolio_ids : ['28416538'] and first list_photo_ids : [] new path : /proc/3583175/ Name: python3 Umask: 0002 State: R (running) Tgid: 3583175 Ngid: 0 Pid: 3583175 PPid: 3583174 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3583175 NSpid: 3583175 NSpgid: 3580555 NSsid: 3580555 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98428 kB VmRSS: 98428 kB RssAnon: 59904 kB RssFile: 38524 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 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: 49 nonvoluntary_ctxt_switches: 108 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3583175', 'Ngid': '0', 'Pid': '3583175', 'PPid': '3583174', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3583175', 'NSpid': '3583175', 'NSpgid': '3580555', 'NSsid': '3580555', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98428 kB', 'VmRSS': '98428 kB', 'RssAnon': '59904 kB', 'RssFile': '38524 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 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': '49', 'nonvoluntary_ctxt_switches': '108'} ('datou_batch_current', '3583175', '1106908', '0', '1106884', '865636', '98428', b'', 'marlene', '4030242') 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 (28416538) 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 (4030242 ) ) 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 (28416538) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1393843525, 'portfolio_id': 28416538}, {'photo_id': 1393843510, 'portfolio_id': 28416538}, {'photo_id': 1393843476, 'portfolio_id': 28416538}, {'photo_id': 1393843438, 'portfolio_id': 28416538}, {'photo_id': 1393843401, 'portfolio_id': 28416538}, {'photo_id': 1393843389, 'portfolio_id': 28416538}, {'photo_id': 1393843363, 'portfolio_id': 28416538}, {'photo_id': 1393843361, 'portfolio_id': 28416538}, {'photo_id': 1393843357, 'portfolio_id': 28416538}, {'photo_id': 1393843355, 'portfolio_id': 28416538}, {'photo_id': 1393843352, 'portfolio_id': 28416538}, {'photo_id': 1393843349, 'portfolio_id': 28416538}, {'photo_id': 1393843318, 'portfolio_id': 28416538}, {'photo_id': 1393843315, 'portfolio_id': 28416538}, {'photo_id': 1393843312, 'portfolio_id': 28416538}, {'photo_id': 1393843311, 'portfolio_id': 28416538}, {'photo_id': 1393843297, 'portfolio_id': 28416538}, {'photo_id': 1393843296, 'portfolio_id': 28416538}, {'photo_id': 1393843295, 'portfolio_id': 28416538}, {'photo_id': 1393843294, 'portfolio_id': 28416538}, {'photo_id': 1393843287, 'portfolio_id': 28416538}, {'photo_id': 1393843284, 'portfolio_id': 28416538}, {'photo_id': 1393843281, 'portfolio_id': 28416538}, {'photo_id': 1393843278, 'portfolio_id': 28416538}, {'photo_id': 1393843277, 'portfolio_id': 28416538}, {'photo_id': 1393843276, 'portfolio_id': 28416538}, {'photo_id': 1393843245, 'portfolio_id': 28416538}, {'photo_id': 1393843243, 'portfolio_id': 28416538}, {'photo_id': 1393843241, 'portfolio_id': 28416538}, {'photo_id': 1393843239, 'portfolio_id': 28416538}, {'photo_id': 1393843217, 'portfolio_id': 28416538}, {'photo_id': 1393843214, 'portfolio_id': 28416538}, {'photo_id': 1393843213, 'portfolio_id': 28416538}, {'photo_id': 1393843210, 'portfolio_id': 28416538}, {'photo_id': 1393843098, 'portfolio_id': 28416538}, {'photo_id': 1393843095, 'portfolio_id': 28416538}, {'photo_id': 1393843092, 'portfolio_id': 28416538}, {'photo_id': 1393843089, 'portfolio_id': 28416538}, {'photo_id': 1393843085, 'portfolio_id': 28416538}, {'photo_id': 1393843071, 'portfolio_id': 28416538}, {'photo_id': 1393843068, 'portfolio_id': 28416538}, {'photo_id': 1393843065, 'portfolio_id': 28416538}, {'photo_id': 1393843063, 'portfolio_id': 28416538}, {'photo_id': 1393843053, 'portfolio_id': 28416538}, {'photo_id': 1393843049, 'portfolio_id': 28416538}, {'photo_id': 1393843044, 'portfolio_id': 28416538}, {'photo_id': 1393843040, 'portfolio_id': 28416538}, {'photo_id': 1393843038, 'portfolio_id': 28416538}, {'photo_id': 1393843036, 'portfolio_id': 28416538}, {'photo_id': 1393843031, 'portfolio_id': 28416538}, {'photo_id': 1393843029, 'portfolio_id': 28416538}, {'photo_id': 1393843026, 'portfolio_id': 28416538}, {'photo_id': 1393843023, 'portfolio_id': 28416538}, {'photo_id': 1393843019, 'portfolio_id': 28416538}, {'photo_id': 1393843016, 'portfolio_id': 28416538}, {'photo_id': 1393843005, 'portfolio_id': 28416538}, {'photo_id': 1393843004, 'portfolio_id': 28416538}, {'photo_id': 1393843003, 'portfolio_id': 28416538}, {'photo_id': 1393843000, 'portfolio_id': 28416538}, {'photo_id': 1393842997, 'portfolio_id': 28416538}, {'photo_id': 1393842992, 'portfolio_id': 28416538}, {'photo_id': 1393842969, 'portfolio_id': 28416538}, {'photo_id': 1393842967, 'portfolio_id': 28416538}, {'photo_id': 1393842964, 'portfolio_id': 28416538}, {'photo_id': 1393842957, 'portfolio_id': 28416538}, {'photo_id': 1393842955, 'portfolio_id': 28416538}, {'photo_id': 1393842953, 'portfolio_id': 28416538}, {'photo_id': 1393842891, 'portfolio_id': 28416538}, {'photo_id': 1393842887, 'portfolio_id': 28416538}, {'photo_id': 1393842885, 'portfolio_id': 28416538}, {'photo_id': 1393842884, 'portfolio_id': 28416538}] map_portfolio_id_photo_id: {28416538: [1393843525, 1393843510, 1393843476, 1393843438, 1393843401, 1393843389, 1393843363, 1393843361, 1393843357, 1393843355, 1393843352, 1393843349, 1393843318, 1393843315, 1393843312, 1393843311, 1393843297, 1393843296, 1393843295, 1393843294, 1393843287, 1393843284, 1393843281, 1393843278, 1393843277, 1393843276, 1393843245, 1393843243, 1393843241, 1393843239, 1393843217, 1393843214, 1393843213, 1393843210, 1393843098, 1393843095, 1393843092, 1393843089, 1393843085, 1393843071, 1393843068, 1393843065, 1393843063, 1393843053, 1393843049, 1393843044, 1393843040, 1393843038, 1393843036, 1393843031, 1393843029, 1393843026, 1393843023, 1393843019, 1393843016, 1393843005, 1393843004, 1393843003, 1393843000, 1393842997, 1393842992, 1393842969, 1393842967, 1393842964, 1393842957, 1393842955, 1393842953, 1393842891, 1393842887, 1393842885, 1393842884]} ##### 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.017658233642578125 #### 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 Nov 11 01:00:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28416538) 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 : 28416538 get user id for portfolio 28416538 get sub ptf for main ptf 28416538, type 3726 and hashtags ['Carton_brun', 'environnement', 'cartonnette', 'kraft', 'plastique', 'papier', 'Carton_gris', 'metal', 'flou', 'Teint_Dans_La_Masse', 'autre_refus', 'mal_croppe'] 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`=28416538 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','environnement','cartonnette','kraft','plastique','papier','Carton_gris','metal','flou','Teint_Dans_La_Masse','autre_refus','mal_croppe')) 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`=28416538 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','environnement','cartonnette','kraft','plastique','papier','Carton_gris','metal','flou','Teint_Dans_La_Masse','autre_refus','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 28416538, 'sub_port_id': 28416545, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19245406, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 49, 28)}, 'metal': {'main_port_id': 28416538, 'sub_port_id': 28416546, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19245407, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 49, 28)}, 'environnement': {'main_port_id': 28416538, 'sub_port_id': 28416547, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19245408, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 49, 28)}, 'autre_refus': {'main_port_id': 28416538, 'sub_port_id': 28416548, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19245409, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 49, 28)}, 'cartonnette': {'main_port_id': 28416538, 'sub_port_id': 28416549, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19245410, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 49, 28)}, 'kraft': {'main_port_id': 28416538, 'sub_port_id': 28416550, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19245411, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 49, 28)}, 'mal_croppe': {'main_port_id': 28416538, 'sub_port_id': 28416551, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19245412, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 49, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 28416538, 'sub_port_id': 28416552, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19245413, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 49, 28)}, 'flou': {'main_port_id': 28416538, 'sub_port_id': 28416553, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19245414, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 49, 28)}, 'Carton_gris': {'main_port_id': 28416538, 'sub_port_id': 28416554, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19245415, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 49, 28)}, 'Carton_brun': {'main_port_id': 28416538, 'sub_port_id': 28416555, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19245416, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 49, 28)}, 'papier': {'main_port_id': 28416538, 'sub_port_id': 28416556, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19245417, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 49, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28416545 , 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=28416538 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 (28416545) result : ((1393843196,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28416538) result : ((1393842884,), (1393842885,), (1393842887,), (1393842891,), (1393842953,), (1393842955,), (1393842957,), (1393842964,), (1393842967,), (1393842969,), (1393842992,), (1393842997,), (1393843000,), (1393843003,), (1393843004,), (1393843005,), (1393843016,), (1393843019,), (1393843023,), (1393843026,), (1393843029,), (1393843031,), (1393843036,), (1393843038,), (1393843040,), (1393843044,), (1393843049,), (1393843053,), (1393843063,), (1393843065,), (1393843068,), (1393843071,), (1393843085,), (1393843089,), (1393843092,), (1393843095,), (1393843098,), (1393843210,), (1393843213,), (1393843214,), (1393843217,), (1393843239,), (1393843241,), (1393843243,), (1393843245,), (1393843276,), (1393843277,), (1393843278,), (1393843281,), (1393843284,), (1393843287,), (1393843294,), (1393843295,), (1393843296,), (1393843297,), (1393843311,), (1393843312,), (1393843315,), (1393843318,), (1393843349,), (1393843352,), (1393843355,), (1393843357,), (1393843361,), (1393843363,), (1393843389,), (1393843401,), (1393843438,), (1393843476,), (1393843510,), (1393843525,)) 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 (1393843000) 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 28416546 , 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=28416538 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 (28416546) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28416538) result : ((1393842884,), (1393842885,), (1393842887,), (1393842891,), (1393842953,), (1393842955,), (1393842957,), (1393842964,), (1393842967,), (1393842969,), (1393842992,), (1393842997,), (1393843000,), (1393843003,), (1393843004,), (1393843005,), (1393843016,), (1393843019,), (1393843023,), (1393843026,), (1393843029,), (1393843031,), (1393843036,), (1393843038,), (1393843040,), (1393843044,), (1393843049,), (1393843053,), (1393843063,), (1393843065,), (1393843068,), (1393843071,), (1393843085,), (1393843089,), (1393843092,), (1393843095,), (1393843098,), (1393843210,), (1393843213,), (1393843214,), (1393843217,), (1393843239,), (1393843241,), (1393843243,), (1393843245,), (1393843276,), (1393843277,), (1393843278,), (1393843281,), (1393843284,), (1393843287,), (1393843294,), (1393843295,), (1393843296,), (1393843297,), (1393843311,), (1393843312,), (1393843315,), (1393843318,), (1393843349,), (1393843352,), (1393843355,), (1393843357,), (1393843361,), (1393843363,), (1393843389,), (1393843401,), (1393843438,), (1393843476,), (1393843510,), (1393843525,)) 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 (1393843000) 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 28416547 , 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=28416538 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 (28416547) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28416538) result : ((1393842884,), (1393842885,), (1393842887,), (1393842891,), (1393842953,), (1393842955,), (1393842957,), (1393842964,), (1393842967,), (1393842969,), (1393842992,), (1393842997,), (1393843000,), (1393843003,), (1393843004,), (1393843005,), (1393843016,), (1393843019,), (1393843023,), (1393843026,), (1393843029,), (1393843031,), (1393843036,), (1393843038,), (1393843040,), (1393843044,), (1393843049,), (1393843053,), (1393843063,), (1393843065,), (1393843068,), (1393843071,), (1393843085,), (1393843089,), (1393843092,), (1393843095,), (1393843098,), (1393843210,), (1393843213,), (1393843214,), (1393843217,), (1393843239,), (1393843241,), (1393843243,), (1393843245,), (1393843276,), (1393843277,), (1393843278,), (1393843281,), (1393843284,), (1393843287,), (1393843294,), (1393843295,), (1393843296,), (1393843297,), (1393843311,), (1393843312,), (1393843315,), (1393843318,), (1393843349,), (1393843352,), (1393843355,), (1393843357,), (1393843361,), (1393843363,), (1393843389,), (1393843401,), (1393843438,), (1393843476,), (1393843510,), (1393843525,)) 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 (1393843000) 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 28416548 , 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=28416538 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 (28416548) result : ((1393843190,), (1393843191,), (1393843344,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28416538) result : ((1393842884,), (1393842885,), (1393842887,), (1393842891,), (1393842953,), (1393842955,), (1393842957,), (1393842964,), (1393842967,), (1393842969,), (1393842992,), (1393842997,), (1393843000,), (1393843003,), (1393843004,), (1393843005,), (1393843016,), (1393843019,), (1393843023,), (1393843026,), (1393843029,), (1393843031,), (1393843036,), (1393843038,), (1393843040,), (1393843044,), (1393843049,), (1393843053,), (1393843063,), (1393843065,), (1393843068,), (1393843071,), (1393843085,), (1393843089,), (1393843092,), (1393843095,), (1393843098,), (1393843210,), (1393843213,), (1393843214,), (1393843217,), (1393843239,), (1393843241,), (1393843243,), (1393843245,), (1393843276,), (1393843277,), (1393843278,), (1393843281,), (1393843284,), (1393843287,), (1393843294,), (1393843295,), (1393843296,), (1393843297,), (1393843311,), (1393843312,), (1393843315,), (1393843318,), (1393843349,), (1393843352,), (1393843355,), (1393843357,), (1393843361,), (1393843363,), (1393843389,), (1393843401,), (1393843438,), (1393843476,), (1393843510,), (1393843525,)) 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 (1393843000) 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 28416549 , 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=28416538 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 (28416549) result : ((1393843194,), (1393843377,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28416538) result : ((1393842884,), (1393842885,), (1393842887,), (1393842891,), (1393842953,), (1393842955,), (1393842957,), (1393842964,), (1393842967,), (1393842969,), (1393842992,), (1393842997,), (1393843000,), (1393843003,), (1393843004,), (1393843005,), (1393843016,), (1393843019,), (1393843023,), (1393843026,), (1393843029,), (1393843031,), (1393843036,), (1393843038,), (1393843040,), (1393843044,), (1393843049,), (1393843053,), (1393843063,), (1393843065,), (1393843068,), (1393843071,), (1393843085,), (1393843089,), (1393843092,), (1393843095,), (1393843098,), (1393843210,), (1393843213,), (1393843214,), (1393843217,), (1393843239,), (1393843241,), (1393843243,), (1393843245,), (1393843276,), (1393843277,), (1393843278,), (1393843281,), (1393843284,), (1393843287,), (1393843294,), (1393843295,), (1393843296,), (1393843297,), (1393843311,), (1393843312,), (1393843315,), (1393843318,), (1393843349,), (1393843352,), (1393843355,), (1393843357,), (1393843361,), (1393843363,), (1393843389,), (1393843401,), (1393843438,), (1393843476,), (1393843510,), (1393843525,)) 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 (1393843000) 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 28416550 , 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=28416538 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 (28416550) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28416538) result : ((1393842884,), (1393842885,), (1393842887,), (1393842891,), (1393842953,), (1393842955,), (1393842957,), (1393842964,), (1393842967,), (1393842969,), (1393842992,), (1393842997,), (1393843000,), (1393843003,), (1393843004,), (1393843005,), (1393843016,), (1393843019,), (1393843023,), (1393843026,), (1393843029,), (1393843031,), (1393843036,), (1393843038,), (1393843040,), (1393843044,), (1393843049,), (1393843053,), (1393843063,), (1393843065,), (1393843068,), (1393843071,), (1393843085,), (1393843089,), (1393843092,), (1393843095,), (1393843098,), (1393843210,), (1393843213,), (1393843214,), (1393843217,), (1393843239,), (1393843241,), (1393843243,), (1393843245,), (1393843276,), (1393843277,), (1393843278,), (1393843281,), (1393843284,), (1393843287,), (1393843294,), (1393843295,), (1393843296,), (1393843297,), (1393843311,), (1393843312,), (1393843315,), (1393843318,), (1393843349,), (1393843352,), (1393843355,), (1393843357,), (1393843361,), (1393843363,), (1393843389,), (1393843401,), (1393843438,), (1393843476,), (1393843510,), (1393843525,)) 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 (1393843000) 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 28416551 , 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=28416538 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 (28416551) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28416538) result : ((1393842884,), (1393842885,), (1393842887,), (1393842891,), (1393842953,), (1393842955,), (1393842957,), (1393842964,), (1393842967,), (1393842969,), (1393842992,), (1393842997,), (1393843000,), (1393843003,), (1393843004,), (1393843005,), (1393843016,), (1393843019,), (1393843023,), (1393843026,), (1393843029,), (1393843031,), (1393843036,), (1393843038,), (1393843040,), (1393843044,), (1393843049,), (1393843053,), (1393843063,), (1393843065,), (1393843068,), (1393843071,), (1393843085,), (1393843089,), (1393843092,), (1393843095,), (1393843098,), (1393843210,), (1393843213,), (1393843214,), (1393843217,), (1393843239,), (1393843241,), (1393843243,), (1393843245,), (1393843276,), (1393843277,), (1393843278,), (1393843281,), (1393843284,), (1393843287,), (1393843294,), (1393843295,), (1393843296,), (1393843297,), (1393843311,), (1393843312,), (1393843315,), (1393843318,), (1393843349,), (1393843352,), (1393843355,), (1393843357,), (1393843361,), (1393843363,), (1393843389,), (1393843401,), (1393843438,), (1393843476,), (1393843510,), (1393843525,)) 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 (1393843000) 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 28416552 , 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=28416538 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 (28416552) result : ((1393843099,), (1393843184,), (1393843185,), (1393843186,), (1393843187,), (1393843188,), (1393843189,), (1393843202,), (1393843260,), (1393843343,), (1393843374,), (1393843375,), (1393843376,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28416538) result : ((1393842884,), (1393842885,), (1393842887,), (1393842891,), (1393842953,), (1393842955,), (1393842957,), (1393842964,), (1393842967,), (1393842969,), (1393842992,), (1393842997,), (1393843000,), (1393843003,), (1393843004,), (1393843005,), (1393843016,), (1393843019,), (1393843023,), (1393843026,), (1393843029,), (1393843031,), (1393843036,), (1393843038,), (1393843040,), (1393843044,), (1393843049,), (1393843053,), (1393843063,), (1393843065,), (1393843068,), (1393843071,), (1393843085,), (1393843089,), (1393843092,), (1393843095,), (1393843098,), (1393843210,), (1393843213,), (1393843214,), (1393843217,), (1393843239,), (1393843241,), (1393843243,), (1393843245,), (1393843276,), (1393843277,), (1393843278,), (1393843281,), (1393843284,), (1393843287,), (1393843294,), (1393843295,), (1393843296,), (1393843297,), (1393843311,), (1393843312,), (1393843315,), (1393843318,), (1393843349,), (1393843352,), (1393843355,), (1393843357,), (1393843361,), (1393843363,), (1393843389,), (1393843401,), (1393843438,), (1393843476,), (1393843510,), (1393843525,)) 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 (1393843000) 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 28416553 , 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=28416538 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 (28416553) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28416538) result : ((1393842884,), (1393842885,), (1393842887,), (1393842891,), (1393842953,), (1393842955,), (1393842957,), (1393842964,), (1393842967,), (1393842969,), (1393842992,), (1393842997,), (1393843000,), (1393843003,), (1393843004,), (1393843005,), (1393843016,), (1393843019,), (1393843023,), (1393843026,), (1393843029,), (1393843031,), (1393843036,), (1393843038,), (1393843040,), (1393843044,), (1393843049,), (1393843053,), (1393843063,), (1393843065,), (1393843068,), (1393843071,), (1393843085,), (1393843089,), (1393843092,), (1393843095,), (1393843098,), (1393843210,), (1393843213,), (1393843214,), (1393843217,), (1393843239,), (1393843241,), (1393843243,), (1393843245,), (1393843276,), (1393843277,), (1393843278,), (1393843281,), (1393843284,), (1393843287,), (1393843294,), (1393843295,), (1393843296,), (1393843297,), (1393843311,), (1393843312,), (1393843315,), (1393843318,), (1393843349,), (1393843352,), (1393843355,), (1393843357,), (1393843361,), (1393843363,), (1393843389,), (1393843401,), (1393843438,), (1393843476,), (1393843510,), (1393843525,)) 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 (1393843000) 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 28416554 , 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=28416538 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 (28416554) result : ((1393843100,), (1393843101,), (1393843124,), (1393843128,), (1393843193,), (1393843203,), (1393843204,), (1393843262,), (1393843263,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28416538) result : ((1393842884,), (1393842885,), (1393842887,), (1393842891,), (1393842953,), (1393842955,), (1393842957,), (1393842964,), (1393842967,), (1393842969,), (1393842992,), (1393842997,), (1393843000,), (1393843003,), (1393843004,), (1393843005,), (1393843016,), (1393843019,), (1393843023,), (1393843026,), (1393843029,), (1393843031,), (1393843036,), (1393843038,), (1393843040,), (1393843044,), (1393843049,), (1393843053,), (1393843063,), (1393843065,), (1393843068,), (1393843071,), (1393843085,), (1393843089,), (1393843092,), (1393843095,), (1393843098,), (1393843210,), (1393843213,), (1393843214,), (1393843217,), (1393843239,), (1393843241,), (1393843243,), (1393843245,), (1393843276,), (1393843277,), (1393843278,), (1393843281,), (1393843284,), (1393843287,), (1393843294,), (1393843295,), (1393843296,), (1393843297,), (1393843311,), (1393843312,), (1393843315,), (1393843318,), (1393843349,), (1393843352,), (1393843355,), (1393843357,), (1393843361,), (1393843363,), (1393843389,), (1393843401,), (1393843438,), (1393843476,), (1393843510,), (1393843525,)) 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 (1393843000) 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 28416555 , 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=28416538 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 (28416555) result : ((1393843102,), (1393843138,), (1393843139,), (1393843140,), (1393843195,), (1393843206,), (1393843264,), (1393843265,), (1393843266,), (1393843320,), (1393843378,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28416538) result : ((1393842884,), (1393842885,), (1393842887,), (1393842891,), (1393842953,), (1393842955,), (1393842957,), (1393842964,), (1393842967,), (1393842969,), (1393842992,), (1393842997,), (1393843000,), (1393843003,), (1393843004,), (1393843005,), (1393843016,), (1393843019,), (1393843023,), (1393843026,), (1393843029,), (1393843031,), (1393843036,), (1393843038,), (1393843040,), (1393843044,), (1393843049,), (1393843053,), (1393843063,), (1393843065,), (1393843068,), (1393843071,), (1393843085,), (1393843089,), (1393843092,), (1393843095,), (1393843098,), (1393843210,), (1393843213,), (1393843214,), (1393843217,), (1393843239,), (1393843241,), (1393843243,), (1393843245,), (1393843276,), (1393843277,), (1393843278,), (1393843281,), (1393843284,), (1393843287,), (1393843294,), (1393843295,), (1393843296,), (1393843297,), (1393843311,), (1393843312,), (1393843315,), (1393843318,), (1393843349,), (1393843352,), (1393843355,), (1393843357,), (1393843361,), (1393843363,), (1393843389,), (1393843401,), (1393843438,), (1393843476,), (1393843510,), (1393843525,)) 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 (1393843000) 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 28416556 , 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=28416538 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 (28416556) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28416538) result : ((1393842884,), (1393842885,), (1393842887,), (1393842891,), (1393842953,), (1393842955,), (1393842957,), (1393842964,), (1393842967,), (1393842969,), (1393842992,), (1393842997,), (1393843000,), (1393843003,), (1393843004,), (1393843005,), (1393843016,), (1393843019,), (1393843023,), (1393843026,), (1393843029,), (1393843031,), (1393843036,), (1393843038,), (1393843040,), (1393843044,), (1393843049,), (1393843053,), (1393843063,), (1393843065,), (1393843068,), (1393843071,), (1393843085,), (1393843089,), (1393843092,), (1393843095,), (1393843098,), (1393843210,), (1393843213,), (1393843214,), (1393843217,), (1393843239,), (1393843241,), (1393843243,), (1393843245,), (1393843276,), (1393843277,), (1393843278,), (1393843281,), (1393843284,), (1393843287,), (1393843294,), (1393843295,), (1393843296,), (1393843297,), (1393843311,), (1393843312,), (1393843315,), (1393843318,), (1393843349,), (1393843352,), (1393843355,), (1393843357,), (1393843361,), (1393843363,), (1393843389,), (1393843401,), (1393843438,), (1393843476,), (1393843510,), (1393843525,)) 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 (1393843000) 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`=28416538 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','environnement','cartonnette','kraft','plastique','papier','Carton_gris','metal','flou','Teint_Dans_La_Masse','autre_refus','mal_croppe')) 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`=28416538 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','environnement','cartonnette','kraft','plastique','papier','Carton_gris','metal','flou','Teint_Dans_La_Masse','autre_refus','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 28416538, 'sub_port_id': 28416568, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19245430, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 49, 34)}, 'metal': {'main_port_id': 28416538, 'sub_port_id': 28416570, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19245431, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 49, 34)}, 'environnement': {'main_port_id': 28416538, 'sub_port_id': 28416571, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19245432, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 49, 34)}, 'autre_refus': {'main_port_id': 28416538, 'sub_port_id': 28416572, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19245433, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 49, 34)}, 'cartonnette': {'main_port_id': 28416538, 'sub_port_id': 28416573, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19245434, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 49, 34)}, 'kraft': {'main_port_id': 28416538, 'sub_port_id': 28416574, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19245435, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 49, 34)}, 'mal_croppe': {'main_port_id': 28416538, 'sub_port_id': 28416575, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19245436, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 49, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 28416538, 'sub_port_id': 28416576, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19245437, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 49, 34)}, 'flou': {'main_port_id': 28416538, 'sub_port_id': 28416577, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19245438, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 49, 34)}, 'Carton_gris': {'main_port_id': 28416538, 'sub_port_id': 28416578, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19245439, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 49, 34)}, 'Carton_brun': {'main_port_id': 28416538, 'sub_port_id': 28416580, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19245440, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 49, 34), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 49, 34), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 49, 34)}, 'papier': {'main_port_id': 28416538, 'sub_port_id': 28416581, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19245441, 'last_updated_at': datetime.datetime(2025, 11, 11, 0, 58, 57), 'last_updated_at_desc': datetime.datetime(2025, 11, 11, 0, 58, 57), 'last_updated_at_asc': datetime.datetime(2025, 11, 11, 0, 49, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28416568,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28416545 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28416570,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28416546 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28416571,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28416547 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28416572,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28416548 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28416573,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28416549 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28416574,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28416550 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28416575,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28416551 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28416576,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28416552 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28416577,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28416553 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28416578,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28416554 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28416580,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28416555 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28416581,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28416556 lien utilise dans velours : https://marlene.fotonower.com/velours/28416568,28416570,28416571,28416572,28416573,28416574,28416575,28416576,28416577,28416578,28416580,28416581?tags=plastique,metal,environnement,autre_refus,cartonnette,kraft,mal_croppe,Teint_Dans_La_Masse,flou,Carton_gris,Carton_brun,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28416538]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1393843525, 1393843510, 1393843476, 1393843438, 1393843401, 1393843389, 1393843363, 1393843361, 1393843357, 1393843355, 1393843352, 1393843349] map_info['map_portfolio_photo'] : {28416538: [1393843525, 1393843510, 1393843476, 1393843438, 1393843401, 1393843389, 1393843363, 1393843361, 1393843357, 1393843355, 1393843352, 1393843349, 1393843318, 1393843315, 1393843312, 1393843311, 1393843297, 1393843296, 1393843295, 1393843294, 1393843287, 1393843284, 1393843281, 1393843278, 1393843277, 1393843276, 1393843245, 1393843243, 1393843241, 1393843239, 1393843217, 1393843214, 1393843213, 1393843210, 1393843098, 1393843095, 1393843092, 1393843089, 1393843085, 1393843071, 1393843068, 1393843065, 1393843063, 1393843053, 1393843049, 1393843044, 1393843040, 1393843038, 1393843036, 1393843031, 1393843029, 1393843026, 1393843023, 1393843019, 1393843016, 1393843005, 1393843004, 1393843003, 1393843000, 1393842997, 1393842992, 1393842969, 1393842967, 1393842964, 1393842957, 1393842955, 1393842953, 1393842891, 1393842887, 1393842885, 1393842884]} final : False mtd_id 4302 list_pids : [1393843525, 1393843510, 1393843476, 1393843438, 1393843401, 1393843389, 1393843363, 1393843361, 1393843357, 1393843355, 1393843352, 1393843349] Looping around the photos to save general results len do output : 1 /28416538. 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, '4030242') ('4302', '28416538', '1393843525', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843510', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843476', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843438', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843401', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843389', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843363', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843361', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843357', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843355', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843352', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843349', None, None, None, None, None, '4030242') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '28416538', "{'plastique': 28416545, 'metal': 28416546, 'environnement': 28416547, 'autre_refus': 28416548, 'cartonnette': 28416549, 'kraft': 28416550, 'mal_croppe': 28416551, 'Teint_Dans_La_Masse': 28416552, 'flou': 28416553, 'Carton_gris': 28416554, 'Carton_brun': 28416555, 'papier': 28416556}", None, None, None, None, '4030242'), ('4302', '28416538', '1393843525', None, None, None, None, None, '4030242'), ('4302', '28416538', '1393843510', None, None, None, None, None, '4030242'), ('4302', '28416538', '1393843476', None, None, None, None, None, '4030242'), ('4302', '28416538', '1393843438', None, None, None, None, None, '4030242'), ('4302', '28416538', '1393843401', None, None, None, None, None, '4030242'), ('4302', '28416538', '1393843389', None, None, None, None, None, '4030242'), ('4302', '28416538', '1393843363', None, None, None, None, None, '4030242'), ('4302', '28416538', '1393843361', None, None, None, None, None, '4030242'), ('4302', '28416538', '1393843357', None, None, None, None, None, '4030242'), ('4302', '28416538', '1393843355', None, None, None, None, None, '4030242'), ('4302', '28416538', '1393843352', None, None, None, None, None, '4030242'), ('4302', '28416538', '1393843349', None, None, None, None, None, '4030242')] time used for this insertion : 0.014790058135986328 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.43288707733154297 time spend to save output : 0.015091896057128906 total time spend for step 1 : 0.4479789733886719 step2:final Tue Nov 11 01:00:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28416538) 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 28416538 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1393842891,1393842887,1393842885,1393842884,1393842969,1393843071,1393842967,1393843068,1393842964,1393843065,1393843063,1393842957,1393842955,1393843031,1393842953,1393843029,1393843005,1393843004,1393843003,1393843000,1393842997,1393842992,1393843026,1393843023,1393843019,1393843016,1393843053,1393843049,1393843044,1393843040,1393843038,1393843036,1393843098,1393843095,1393843092,1393843089,1393843085,1393843217,1393843214,1393843213,1393843210,1393843297,1393843245,1393843296,1393843243,1393843295,1393843241,1393843294,1393843239,1393843287,1393843284,1393843281,1393843278,1393843277,1393843276,1393843318,1393843315,1393843312,1393843311,1393843363,1393843361,1393843357,1393843355,1393843352,1393843349,1393843525,1393843510,1393843476,1393843438,1393843401,1393843389); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28416538]) Inside saveOutput : final : False verbose : True original output for save of step final : {1393843525: ('0.046561897558114206',), 1393843510: ('0.046561897558114206',), 1393843476: ('0.046561897558114206',), 1393843438: ('0.046561897558114206',), 1393843401: ('0.046561897558114206',), 1393843389: ('0.046561897558114206',), 1393843363: ('0.046561897558114206',), 1393843361: ('0.046561897558114206',), 1393843357: ('0.046561897558114206',), 1393843355: ('0.046561897558114206',), 1393843352: ('0.046561897558114206',), 1393843349: ('0.046561897558114206',)} new output for save of step final : {1393843525: ('0.046561897558114206',), 1393843510: ('0.046561897558114206',), 1393843476: ('0.046561897558114206',), 1393843438: ('0.046561897558114206',), 1393843401: ('0.046561897558114206',), 1393843389: ('0.046561897558114206',), 1393843363: ('0.046561897558114206',), 1393843361: ('0.046561897558114206',), 1393843357: ('0.046561897558114206',), 1393843355: ('0.046561897558114206',), 1393843352: ('0.046561897558114206',), 1393843349: ('0.046561897558114206',)} [1393843525, 1393843510, 1393843476, 1393843438, 1393843401, 1393843389, 1393843363, 1393843361, 1393843357, 1393843355, 1393843352, 1393843349] map_info['map_portfolio_photo'] : {28416538: [1393843525, 1393843510, 1393843476, 1393843438, 1393843401, 1393843389, 1393843363, 1393843361, 1393843357, 1393843355, 1393843352, 1393843349, 1393843318, 1393843315, 1393843312, 1393843311, 1393843297, 1393843296, 1393843295, 1393843294, 1393843287, 1393843284, 1393843281, 1393843278, 1393843277, 1393843276, 1393843245, 1393843243, 1393843241, 1393843239, 1393843217, 1393843214, 1393843213, 1393843210, 1393843098, 1393843095, 1393843092, 1393843089, 1393843085, 1393843071, 1393843068, 1393843065, 1393843063, 1393843053, 1393843049, 1393843044, 1393843040, 1393843038, 1393843036, 1393843031, 1393843029, 1393843026, 1393843023, 1393843019, 1393843016, 1393843005, 1393843004, 1393843003, 1393843000, 1393842997, 1393842992, 1393842969, 1393842967, 1393842964, 1393842957, 1393842955, 1393842953, 1393842891, 1393842887, 1393842885, 1393842884]} final : False mtd_id 4302 list_pids : [1393843525, 1393843510, 1393843476, 1393843438, 1393843401, 1393843389, 1393843363, 1393843361, 1393843357, 1393843355, 1393843352, 1393843349] Looping around the photos to save general results len do output : 12 /1393843525.Didn't retrieve data . /1393843510.Didn't retrieve data . /1393843476.Didn't retrieve data . /1393843438.Didn't retrieve data . /1393843401.Didn't retrieve data . /1393843389.Didn't retrieve data . /1393843363.Didn't retrieve data . /1393843361.Didn't retrieve data . /1393843357.Didn't retrieve data . /1393843355.Didn't retrieve data . /1393843352.Didn't retrieve data . /1393843349.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, '4030242') ('4302', '28416538', '1393843525', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843510', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843476', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843438', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843401', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843389', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843363', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843361', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843357', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843355', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843352', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843349', None, None, None, None, None, '4030242') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '28416538', '1393843525', '0.046561897558114206', None, None, None, None, '4030242'), ('4302', '28416538', '1393843510', '0.046561897558114206', None, None, None, None, '4030242'), ('4302', '28416538', '1393843476', '0.046561897558114206', None, None, None, None, '4030242'), ('4302', '28416538', '1393843438', '0.046561897558114206', None, None, None, None, '4030242'), ('4302', '28416538', '1393843401', '0.046561897558114206', None, None, None, None, '4030242'), ('4302', '28416538', '1393843389', '0.046561897558114206', None, None, None, None, '4030242'), ('4302', '28416538', '1393843363', '0.046561897558114206', None, None, None, None, '4030242'), ('4302', '28416538', '1393843361', '0.046561897558114206', None, None, None, None, '4030242'), ('4302', '28416538', '1393843357', '0.046561897558114206', None, None, None, None, '4030242'), ('4302', '28416538', '1393843355', '0.046561897558114206', None, None, None, None, '4030242'), ('4302', '28416538', '1393843352', '0.046561897558114206', None, None, None, None, '4030242'), ('4302', '28416538', '1393843349', '0.046561897558114206', None, None, None, None, '4030242')] time used for this insertion : 0.01346898078918457 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06291961669921875 time spend to save output : 0.014088869094848633 total time spend for step 2 : 0.07700848579406738 step3:velours_tree Tue Nov 11 01:00:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {28416538: [{'plastique': 28416545, 'metal': 28416546, 'environnement': 28416547, 'autre_refus': 28416548, 'cartonnette': 28416549, 'kraft': 28416550, 'mal_croppe': 28416551, 'Teint_Dans_La_Masse': 28416552, 'flou': 28416553, 'Carton_gris': 28416554, 'Carton_brun': 28416555, 'papier': 28416556}]} input_args_next_step : {28416538: ()} output_args : {28416538: [{'plastique': 28416545, 'metal': 28416546, 'environnement': 28416547, 'autre_refus': 28416548, 'cartonnette': 28416549, 'kraft': 28416550, 'mal_croppe': 28416551, 'Teint_Dans_La_Masse': 28416552, 'flou': 28416553, 'Carton_gris': 28416554, 'Carton_brun': 28416555, 'papier': 28416556}]} args : 28416538 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 : ({'plastique': 28416545, 'metal': 28416546, 'environnement': 28416547, 'autre_refus': 28416548, 'cartonnette': 28416549, 'kraft': 28416550, 'mal_croppe': 28416551, 'Teint_Dans_La_Masse': 28416552, 'flou': 28416553, 'Carton_gris': 28416554, 'Carton_brun': 28416555, 'papier': 28416556},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28416538) 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([28416538]) 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.30106329917907715 time spend to save output : 7.462501525878906e-05 total time spend for step 3 : 0.30113792419433594 step4:send_mail_cod Tue Nov 11 01:00:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1393843525: ('0.046561897558114206',), 1393843510: ('0.046561897558114206',), 1393843476: ('0.046561897558114206',), 1393843438: ('0.046561897558114206',), 1393843401: ('0.046561897558114206',), 1393843389: ('0.046561897558114206',), 1393843363: ('0.046561897558114206',), 1393843361: ('0.046561897558114206',), 1393843357: ('0.046561897558114206',), 1393843355: ('0.046561897558114206',), 1393843352: ('0.046561897558114206',), 1393843349: ('0.046561897558114206',)} input_args_next_step : {1393843525: ()} output_args : {1393843525: ('0.046561897558114206',), 1393843510: ('0.046561897558114206',), 1393843476: ('0.046561897558114206',), 1393843438: ('0.046561897558114206',), 1393843401: ('0.046561897558114206',), 1393843389: ('0.046561897558114206',), 1393843363: ('0.046561897558114206',), 1393843361: ('0.046561897558114206',), 1393843357: ('0.046561897558114206',), 1393843355: ('0.046561897558114206',), 1393843352: ('0.046561897558114206',), 1393843349: ('0.046561897558114206',)} args : 1393843525 depend.output_id : 0 input_args_next_step : {1393843525: ('0.046561897558114206',), 1393843510: ()} output_args : {1393843525: ('0.046561897558114206',), 1393843510: ('0.046561897558114206',), 1393843476: ('0.046561897558114206',), 1393843438: ('0.046561897558114206',), 1393843401: ('0.046561897558114206',), 1393843389: ('0.046561897558114206',), 1393843363: ('0.046561897558114206',), 1393843361: ('0.046561897558114206',), 1393843357: ('0.046561897558114206',), 1393843355: ('0.046561897558114206',), 1393843352: ('0.046561897558114206',), 1393843349: ('0.046561897558114206',)} args : 1393843510 depend.output_id : 0 input_args_next_step : {1393843525: ('0.046561897558114206',), 1393843510: ('0.046561897558114206',), 1393843476: ()} output_args : {1393843525: ('0.046561897558114206',), 1393843510: ('0.046561897558114206',), 1393843476: ('0.046561897558114206',), 1393843438: ('0.046561897558114206',), 1393843401: ('0.046561897558114206',), 1393843389: ('0.046561897558114206',), 1393843363: ('0.046561897558114206',), 1393843361: ('0.046561897558114206',), 1393843357: ('0.046561897558114206',), 1393843355: ('0.046561897558114206',), 1393843352: ('0.046561897558114206',), 1393843349: ('0.046561897558114206',)} args : 1393843476 depend.output_id : 0 input_args_next_step : {1393843525: ('0.046561897558114206',), 1393843510: ('0.046561897558114206',), 1393843476: ('0.046561897558114206',), 1393843438: ()} output_args : {1393843525: ('0.046561897558114206',), 1393843510: ('0.046561897558114206',), 1393843476: ('0.046561897558114206',), 1393843438: ('0.046561897558114206',), 1393843401: ('0.046561897558114206',), 1393843389: ('0.046561897558114206',), 1393843363: ('0.046561897558114206',), 1393843361: ('0.046561897558114206',), 1393843357: ('0.046561897558114206',), 1393843355: ('0.046561897558114206',), 1393843352: ('0.046561897558114206',), 1393843349: ('0.046561897558114206',)} args : 1393843438 depend.output_id : 0 input_args_next_step : {1393843525: ('0.046561897558114206',), 1393843510: ('0.046561897558114206',), 1393843476: ('0.046561897558114206',), 1393843438: ('0.046561897558114206',), 1393843401: ()} output_args : {1393843525: ('0.046561897558114206',), 1393843510: ('0.046561897558114206',), 1393843476: ('0.046561897558114206',), 1393843438: ('0.046561897558114206',), 1393843401: ('0.046561897558114206',), 1393843389: ('0.046561897558114206',), 1393843363: ('0.046561897558114206',), 1393843361: ('0.046561897558114206',), 1393843357: ('0.046561897558114206',), 1393843355: ('0.046561897558114206',), 1393843352: ('0.046561897558114206',), 1393843349: ('0.046561897558114206',)} args : 1393843401 depend.output_id : 0 input_args_next_step : {1393843525: ('0.046561897558114206',), 1393843510: ('0.046561897558114206',), 1393843476: ('0.046561897558114206',), 1393843438: ('0.046561897558114206',), 1393843401: ('0.046561897558114206',), 1393843389: ()} output_args : {1393843525: ('0.046561897558114206',), 1393843510: ('0.046561897558114206',), 1393843476: ('0.046561897558114206',), 1393843438: ('0.046561897558114206',), 1393843401: ('0.046561897558114206',), 1393843389: ('0.046561897558114206',), 1393843363: ('0.046561897558114206',), 1393843361: ('0.046561897558114206',), 1393843357: ('0.046561897558114206',), 1393843355: ('0.046561897558114206',), 1393843352: ('0.046561897558114206',), 1393843349: ('0.046561897558114206',)} args : 1393843389 depend.output_id : 0 input_args_next_step : {1393843525: ('0.046561897558114206',), 1393843510: ('0.046561897558114206',), 1393843476: ('0.046561897558114206',), 1393843438: ('0.046561897558114206',), 1393843401: ('0.046561897558114206',), 1393843389: ('0.046561897558114206',), 1393843363: ()} output_args : {1393843525: ('0.046561897558114206',), 1393843510: ('0.046561897558114206',), 1393843476: ('0.046561897558114206',), 1393843438: ('0.046561897558114206',), 1393843401: ('0.046561897558114206',), 1393843389: ('0.046561897558114206',), 1393843363: ('0.046561897558114206',), 1393843361: ('0.046561897558114206',), 1393843357: ('0.046561897558114206',), 1393843355: ('0.046561897558114206',), 1393843352: ('0.046561897558114206',), 1393843349: ('0.046561897558114206',)} args : 1393843363 depend.output_id : 0 input_args_next_step : {1393843525: ('0.046561897558114206',), 1393843510: ('0.046561897558114206',), 1393843476: ('0.046561897558114206',), 1393843438: ('0.046561897558114206',), 1393843401: ('0.046561897558114206',), 1393843389: ('0.046561897558114206',), 1393843363: ('0.046561897558114206',), 1393843361: ()} output_args : {1393843525: ('0.046561897558114206',), 1393843510: ('0.046561897558114206',), 1393843476: ('0.046561897558114206',), 1393843438: ('0.046561897558114206',), 1393843401: ('0.046561897558114206',), 1393843389: ('0.046561897558114206',), 1393843363: ('0.046561897558114206',), 1393843361: ('0.046561897558114206',), 1393843357: ('0.046561897558114206',), 1393843355: ('0.046561897558114206',), 1393843352: ('0.046561897558114206',), 1393843349: ('0.046561897558114206',)} args : 1393843361 depend.output_id : 0 input_args_next_step : {1393843525: ('0.046561897558114206',), 1393843510: ('0.046561897558114206',), 1393843476: ('0.046561897558114206',), 1393843438: ('0.046561897558114206',), 1393843401: ('0.046561897558114206',), 1393843389: ('0.046561897558114206',), 1393843363: ('0.046561897558114206',), 1393843361: ('0.046561897558114206',), 1393843357: ()} output_args : {1393843525: ('0.046561897558114206',), 1393843510: ('0.046561897558114206',), 1393843476: ('0.046561897558114206',), 1393843438: ('0.046561897558114206',), 1393843401: ('0.046561897558114206',), 1393843389: ('0.046561897558114206',), 1393843363: ('0.046561897558114206',), 1393843361: ('0.046561897558114206',), 1393843357: ('0.046561897558114206',), 1393843355: ('0.046561897558114206',), 1393843352: ('0.046561897558114206',), 1393843349: ('0.046561897558114206',)} args : 1393843357 depend.output_id : 0 input_args_next_step : {1393843525: ('0.046561897558114206',), 1393843510: ('0.046561897558114206',), 1393843476: ('0.046561897558114206',), 1393843438: ('0.046561897558114206',), 1393843401: ('0.046561897558114206',), 1393843389: ('0.046561897558114206',), 1393843363: ('0.046561897558114206',), 1393843361: ('0.046561897558114206',), 1393843357: ('0.046561897558114206',), 1393843355: ()} output_args : {1393843525: ('0.046561897558114206',), 1393843510: ('0.046561897558114206',), 1393843476: ('0.046561897558114206',), 1393843438: ('0.046561897558114206',), 1393843401: ('0.046561897558114206',), 1393843389: ('0.046561897558114206',), 1393843363: ('0.046561897558114206',), 1393843361: ('0.046561897558114206',), 1393843357: ('0.046561897558114206',), 1393843355: ('0.046561897558114206',), 1393843352: ('0.046561897558114206',), 1393843349: ('0.046561897558114206',)} args : 1393843355 depend.output_id : 0 input_args_next_step : {1393843525: ('0.046561897558114206',), 1393843510: ('0.046561897558114206',), 1393843476: ('0.046561897558114206',), 1393843438: ('0.046561897558114206',), 1393843401: ('0.046561897558114206',), 1393843389: ('0.046561897558114206',), 1393843363: ('0.046561897558114206',), 1393843361: ('0.046561897558114206',), 1393843357: ('0.046561897558114206',), 1393843355: ('0.046561897558114206',), 1393843352: ()} output_args : {1393843525: ('0.046561897558114206',), 1393843510: ('0.046561897558114206',), 1393843476: ('0.046561897558114206',), 1393843438: ('0.046561897558114206',), 1393843401: ('0.046561897558114206',), 1393843389: ('0.046561897558114206',), 1393843363: ('0.046561897558114206',), 1393843361: ('0.046561897558114206',), 1393843357: ('0.046561897558114206',), 1393843355: ('0.046561897558114206',), 1393843352: ('0.046561897558114206',), 1393843349: ('0.046561897558114206',)} args : 1393843352 depend.output_id : 0 input_args_next_step : {1393843525: ('0.046561897558114206',), 1393843510: ('0.046561897558114206',), 1393843476: ('0.046561897558114206',), 1393843438: ('0.046561897558114206',), 1393843401: ('0.046561897558114206',), 1393843389: ('0.046561897558114206',), 1393843363: ('0.046561897558114206',), 1393843361: ('0.046561897558114206',), 1393843357: ('0.046561897558114206',), 1393843355: ('0.046561897558114206',), 1393843352: ('0.046561897558114206',), 1393843349: ()} output_args : {1393843525: ('0.046561897558114206',), 1393843510: ('0.046561897558114206',), 1393843476: ('0.046561897558114206',), 1393843438: ('0.046561897558114206',), 1393843401: ('0.046561897558114206',), 1393843389: ('0.046561897558114206',), 1393843363: ('0.046561897558114206',), 1393843361: ('0.046561897558114206',), 1393843357: ('0.046561897558114206',), 1393843355: ('0.046561897558114206',), 1393843352: ('0.046561897558114206',), 1393843349: ('0.046561897558114206',)} args : 1393843349 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 : {28416538: [{'plastique': 28416545, 'metal': 28416546, 'environnement': 28416547, 'autre_refus': 28416548, 'cartonnette': 28416549, 'kraft': 28416550, 'mal_croppe': 28416551, 'Teint_Dans_La_Masse': 28416552, 'flou': 28416553, 'Carton_gris': 28416554, 'Carton_brun': 28416555, 'papier': 28416556}]} input_args_next_step : {1393843525: ('0.046561897558114206',), 1393843510: ('0.046561897558114206',), 1393843476: ('0.046561897558114206',), 1393843438: ('0.046561897558114206',), 1393843401: ('0.046561897558114206',), 1393843389: ('0.046561897558114206',), 1393843363: ('0.046561897558114206',), 1393843361: ('0.046561897558114206',), 1393843357: ('0.046561897558114206',), 1393843355: ('0.046561897558114206',), 1393843352: ('0.046561897558114206',), 1393843349: ('0.046561897558114206',), 28416538: ()} output_args : {28416538: [{'plastique': 28416545, 'metal': 28416546, 'environnement': 28416547, 'autre_refus': 28416548, 'cartonnette': 28416549, 'kraft': 28416550, 'mal_croppe': 28416551, 'Teint_Dans_La_Masse': 28416552, 'flou': 28416553, 'Carton_gris': 28416554, 'Carton_brun': 28416555, 'papier': 28416556}]} args : 28416538 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 :13, first value : ('0.046561897558114206',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28416538) 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 (1393843525,1393843510,1393843476,1393843438,1393843401,1393843389,1393843363,1393843361,1393843357,1393843355,1393843352,1393843349) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1393843349 begin to download photo : 1393843357 begin to download photo : 1393843389 begin to download photo : 1393843476 download finish for photo 1393843476 begin to download photo : 1393843510 download finish for photo 1393843349 begin to download photo : 1393843352 download finish for photo 1393843389 begin to download photo : 1393843401 download finish for photo 1393843357 begin to download photo : 1393843361 download finish for photo 1393843352 begin to download photo : 1393843355 download finish for photo 1393843510 begin to download photo : 1393843525 download finish for photo 1393843361 begin to download photo : 1393843363 download finish for photo 1393843401 begin to download photo : 1393843438 download finish for photo 1393843355 download finish for photo 1393843525 download finish for photo 1393843363 download finish for photo 1393843438 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P28416538_11-11-2025_01_00_59.pdf 28416545 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=28416545 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393843196: '1762818787_278948_1393843003_f71142a970c5f811e43d7b2042f50854_rle_crop_4030118595_0.png'} change filename to text .imagette284165451762819259/ imagette284165451762819259/1762818787_278948_1393843003_f71142a970c5f811e43d7b2042f50854_rle_crop_4030118595_0.png.png imagette284165461762819259/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/8d956ebd67eff8df1fc331157334b967_99974843.png imagette284165451762819259 28416546 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=28416546 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette284165461762819259 28416548 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=28416548 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393843190: '1762818787_278948_1393843004_16bbe419da9b7382f139f749e60e3464_rle_crop_4030118575_0.png', 1393843191: '1762818787_278948_1393843004_16bbe419da9b7382f139f749e60e3464_rle_crop_4030118582_0.png', 1393843344: '1762819046_292878_1393843089_c19616f26097f83d37a1cfde5c35cbe7_rle_crop_4030119485_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/4d036c179d27494da14a2105ebae7a96_67334065.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/759d6945aac116433bbf9dec3b75f441_661106.png change filename to text .imagette284165481762819259/ imagette284165481762819259/1762819046_292878_1393843089_c19616f26097f83d37a1cfde5c35cbe7_rle_crop_4030119485_0.png.png imagette284165481762819259/1762818787_278948_1393843004_16bbe419da9b7382f139f749e60e3464_rle_crop_4030118575_0.png.png imagette284165481762819259/1762818787_278948_1393843004_16bbe419da9b7382f139f749e60e3464_rle_crop_4030118582_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/eb1291526c1c6394788e83752b12528c_38374871.png imagette284165481762819259 28416549 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=28416549 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393843194: '1762818787_278948_1393843004_16bbe419da9b7382f139f749e60e3464_rle_crop_4030118587_0.png', 1393843377: '1762819106_297241_1393843243_71a2fbe5eb427625d2e0120422901c72_rle_crop_4030119563_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/c8225f0908c2235f18f50819cdf408ec_59643871.png change filename to text .imagette284165491762819259/ imagette284165491762819259/1762819106_297241_1393843243_71a2fbe5eb427625d2e0120422901c72_rle_crop_4030119563_0.png.png imagette284165491762819259/1762818787_278948_1393843004_16bbe419da9b7382f139f749e60e3464_rle_crop_4030118587_0.png.png imagette284165501762819259/ imagette284165511762819259/ imagette284165531762819259/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/c4e42a6802b23f390731df78feafd9e2_73035311.png imagette284165491762819259 28416550 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=28416550 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette284165501762819259 28416551 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=28416551 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette284165511762819259 28416553 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=28416553 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette284165531762819259 28416552 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=28416552 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393843099: '1762818666_272067_1393842884_1862533f4307b292c9e2eaa874386462_rle_crop_4030118207_0.png', 1393843184: '1762818787_278948_1393843004_16bbe419da9b7382f139f749e60e3464_rle_crop_4030118589_0.png', 1393843185: '1762818787_278948_1393843004_16bbe419da9b7382f139f749e60e3464_rle_crop_4030118579_0.png', 1393843186: '1762818787_278948_1393843003_f71142a970c5f811e43d7b2042f50854_rle_crop_4030118599_0.png', 1393843187: '1762818787_278948_1393843003_f71142a970c5f811e43d7b2042f50854_rle_crop_4030118596_0.png', 1393843188: '1762818787_278948_1393843000_40e8eb3f12679eef5fe05321fa2dfaf9_rle_crop_4030118609_0.png', 1393843189: '1762818787_278948_1393842992_52f53f3824970d244dfe5d3a5016944f_rle_crop_4030118719_0.png', 1393843202: '1762818805_281322_1393842884_1862533f4307b292c9e2eaa874386462_rle_crop_4030118207_0.png', 1393843260: '1762818906_286683_1393843005_9afcc4478da1d57c41f1599b17d8ab3b_rle_crop_4030119080_0.png', 1393843343: '1762819046_292878_1393843095_22f257f67fd51518e4b38279b553ec7f_rle_crop_4030119471_0.png', 1393843374: '1762819106_297241_1393843243_71a2fbe5eb427625d2e0120422901c72_rle_crop_4030119565_0.png', 1393843375: '1762819106_297241_1393843239_f8cbbe2d9c0064ecca533f898ff89f47_rle_crop_4030119590_0.png', 1393843376: '1762819106_297241_1393843239_f8cbbe2d9c0064ecca533f898ff89f47_rle_crop_4030119587_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/484c771180675f17a5b3ed5a7c8e17d5_11889402.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/f53bc8de1eddaf2ee759c1e4b9a11b88_33044240.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/09dc7f0bc2efed6b639380fd358071b5_7555458.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/a955729cb042280cb375fd8a6004d28c_13620360.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/fc278c4bd38c617a4442b7232d47614a_51854325.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/86a444d7602af28489bc2a8a100a9da8_18015269.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/d4e53e28372e03d6f1221e5591a292f1_91283004.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/484c771180675f17a5b3ed5a7c8e17d5_47568705.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/1fa36ad3e42d995d61d5504c63bd52ca_86856218.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/45190502beac2343ce5cfe5b18c33239_55263435.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/b2b18b0685f0db4c4dd9703ff5534cbb_40319080.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/a1f9811d0ace0de135faf72d15baf31e_86582428.png change filename to text .imagette284165521762819259/ imagette284165521762819259/1762818906_286683_1393843005_9afcc4478da1d57c41f1599b17d8ab3b_rle_crop_4030119080_0.png.png imagette284165521762819259/1762819046_292878_1393843095_22f257f67fd51518e4b38279b553ec7f_rle_crop_4030119471_0.png.png imagette284165521762819259/1762818787_278948_1393843004_16bbe419da9b7382f139f749e60e3464_rle_crop_4030118589_0.png.png imagette284165521762819259/1762818787_278948_1393843004_16bbe419da9b7382f139f749e60e3464_rle_crop_4030118579_0.png.png imagette284165521762819259/1762819106_297241_1393843239_f8cbbe2d9c0064ecca533f898ff89f47_rle_crop_4030119590_0.png.png imagette284165521762819259/1762818666_272067_1393842884_1862533f4307b292c9e2eaa874386462_rle_crop_4030118207_0.png.png imagette284165521762819259/1762818787_278948_1393843003_f71142a970c5f811e43d7b2042f50854_rle_crop_4030118596_0.png.png imagette284165521762819259/1762818805_281322_1393842884_1862533f4307b292c9e2eaa874386462_rle_crop_4030118207_0.png.png imagette284165521762819259/1762818787_278948_1393842992_52f53f3824970d244dfe5d3a5016944f_rle_crop_4030118719_0.png.png imagette284165521762819259/1762818787_278948_1393843000_40e8eb3f12679eef5fe05321fa2dfaf9_rle_crop_4030118609_0.png.png imagette284165521762819259/1762819106_297241_1393843239_f8cbbe2d9c0064ecca533f898ff89f47_rle_crop_4030119587_0.png.png imagette284165521762819259/1762818787_278948_1393843003_f71142a970c5f811e43d7b2042f50854_rle_crop_4030118599_0.png.png imagette284165521762819259/1762819106_297241_1393843243_71a2fbe5eb427625d2e0120422901c72_rle_crop_4030119565_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/7d24e1693f03e563642954a206200499_65341910.png imagette284165521762819259 28416554 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=28416554 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393843100: '1762818666_272067_1393842969_67e45e8dd9bd816561a6c970d96f6758_rle_crop_4030118166_0.png', 1393843101: '1762818666_272067_1393842885_8a23cd8d1919541730ebd9dab57963e1_rle_crop_4030118195_0.png', 1393843124: '1762818687_272638_1393842967_0cff15e49fad9e213e586a4db4dedc2b_rle_crop_4030118352_0.png', 1393843128: '1762818687_272638_1393842957_777ba9140f8a7c3aa99acd0a0a613cf5_rle_crop_4030118375_0.png', 1393843193: '1762818787_278948_1393843000_40e8eb3f12679eef5fe05321fa2dfaf9_rle_crop_4030118604_0.png', 1393843203: '1762818805_281322_1393842969_67e45e8dd9bd816561a6c970d96f6758_rle_crop_4030118166_0.png', 1393843204: '1762818805_281322_1393842885_8a23cd8d1919541730ebd9dab57963e1_rle_crop_4030118195_0.png', 1393843262: '1762818906_286683_1393842967_0cff15e49fad9e213e586a4db4dedc2b_rle_crop_4030118352_0.png', 1393843263: '1762818906_286683_1393842957_777ba9140f8a7c3aa99acd0a0a613cf5_rle_crop_4030118375_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/e9a42a9ec0d7f5bc70988e471e3c9154_62804930.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/71bee3857d9ab5ac4b2d99fb56d24c31_27613129.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/e8d567df53830faf441c9bec3c6b3000_10571397.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/413bc3e692fa4996b1f7d27be07e1e43_74131761.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/03cd8f40bf4bf47a1d12733752fbdcd3_73059397.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/e9a42a9ec0d7f5bc70988e471e3c9154_10462847.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/71bee3857d9ab5ac4b2d99fb56d24c31_69328066.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/e8d567df53830faf441c9bec3c6b3000_54119192.png change filename to text .imagette284165541762819260/ imagette284165541762819260/1762818805_281322_1393842969_67e45e8dd9bd816561a6c970d96f6758_rle_crop_4030118166_0.png.png imagette284165541762819260/1762818666_272067_1393842969_67e45e8dd9bd816561a6c970d96f6758_rle_crop_4030118166_0.png.png imagette284165541762819260/1762818906_286683_1393842967_0cff15e49fad9e213e586a4db4dedc2b_rle_crop_4030118352_0.png.png imagette284165541762819260/1762818787_278948_1393843000_40e8eb3f12679eef5fe05321fa2dfaf9_rle_crop_4030118604_0.png.png imagette284165541762819260/1762818666_272067_1393842885_8a23cd8d1919541730ebd9dab57963e1_rle_crop_4030118195_0.png.png imagette284165541762819260/1762818687_272638_1393842967_0cff15e49fad9e213e586a4db4dedc2b_rle_crop_4030118352_0.png.png imagette284165541762819260/1762818906_286683_1393842957_777ba9140f8a7c3aa99acd0a0a613cf5_rle_crop_4030118375_0.png.png imagette284165541762819260/1762818687_272638_1393842957_777ba9140f8a7c3aa99acd0a0a613cf5_rle_crop_4030118375_0.png.png imagette284165541762819260/1762818805_281322_1393842885_8a23cd8d1919541730ebd9dab57963e1_rle_crop_4030118195_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/413bc3e692fa4996b1f7d27be07e1e43_33789364.png imagette284165541762819260 28416555 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=28416555 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1393843102: '1762818666_272067_1393842969_67e45e8dd9bd816561a6c970d96f6758_rle_crop_4030118171_0.png', 1393843138: '1762818687_272638_1393842967_0cff15e49fad9e213e586a4db4dedc2b_rle_crop_4030118360_0.png', 1393843139: '1762818687_272638_1393842967_0cff15e49fad9e213e586a4db4dedc2b_rle_crop_4030118362_0.png', 1393843140: '1762818687_272638_1393842964_06bd73f28351dedfaaa22c4553b78117_rle_crop_4030118368_0.png', 1393843195: '1762818787_278948_1393843000_40e8eb3f12679eef5fe05321fa2dfaf9_rle_crop_4030118606_0.png', 1393843206: '1762818805_281322_1393842969_67e45e8dd9bd816561a6c970d96f6758_rle_crop_4030118171_0.png', 1393843264: '1762818906_286683_1393842967_0cff15e49fad9e213e586a4db4dedc2b_rle_crop_4030118360_0.png', 1393843265: '1762818906_286683_1393842967_0cff15e49fad9e213e586a4db4dedc2b_rle_crop_4030118362_0.png', 1393843266: '1762818906_286683_1393842964_06bd73f28351dedfaaa22c4553b78117_rle_crop_4030118368_0.png', 1393843320: '1762819025_292447_1393843210_49a1089ffb9dec92a508a3d73777c021_rle_crop_4030119357_0.png', 1393843378: '1762819106_297241_1393843243_71a2fbe5eb427625d2e0120422901c72_rle_crop_4030119566_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/3725ac794a40b5ed191efa462bf77738_35414179.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/ed7e586bb1a1214d83092ba061ef186e_86887304.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/cef3e44f43fd2475b6438e33ca86e589_54229456.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/85212cc35036ad637fab3792bf1c0de4_76334824.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/aae8ce7026a9ea34bcecae23f8451374_11438343.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/3725ac794a40b5ed191efa462bf77738_26896085.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/ed7e586bb1a1214d83092ba061ef186e_49839653.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/cef3e44f43fd2475b6438e33ca86e589_46141239.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/85212cc35036ad637fab3792bf1c0de4_97260382.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/7fd2c1c9476570505815ad50cd6dd4fa_41885055.png change filename to text .imagette284165551762819261/ imagette284165551762819261/1762818687_272638_1393842967_0cff15e49fad9e213e586a4db4dedc2b_rle_crop_4030118360_0.png.png imagette284165551762819261/1762818906_286683_1393842964_06bd73f28351dedfaaa22c4553b78117_rle_crop_4030118368_0.png.png imagette284165551762819261/1762818787_278948_1393843000_40e8eb3f12679eef5fe05321fa2dfaf9_rle_crop_4030118606_0.png.png imagette284165551762819261/1762818687_272638_1393842964_06bd73f28351dedfaaa22c4553b78117_rle_crop_4030118368_0.png.png imagette284165551762819261/1762818906_286683_1393842967_0cff15e49fad9e213e586a4db4dedc2b_rle_crop_4030118362_0.png.png imagette284165551762819261/1762818687_272638_1393842967_0cff15e49fad9e213e586a4db4dedc2b_rle_crop_4030118362_0.png.png imagette284165551762819261/1762819106_297241_1393843243_71a2fbe5eb427625d2e0120422901c72_rle_crop_4030119566_0.png.png imagette284165551762819261/1762818906_286683_1393842967_0cff15e49fad9e213e586a4db4dedc2b_rle_crop_4030118360_0.png.png imagette284165551762819261/1762819025_292447_1393843210_49a1089ffb9dec92a508a3d73777c021_rle_crop_4030119357_0.png.png imagette284165551762819261/1762818805_281322_1393842969_67e45e8dd9bd816561a6c970d96f6758_rle_crop_4030118171_0.png.png imagette284165551762819261/1762818666_272067_1393842969_67e45e8dd9bd816561a6c970d96f6758_rle_crop_4030118171_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/11/b00b2a1b4ea292d4948ada8062d1940a_66477666.png imagette284165551762819261 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28416538 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28416568,28416570,28416571,28416572,28416573,28416574,28416575,28416576,28416577,28416578,28416580,28416581?tags=plastique,metal,environnement,autre_refus,cartonnette,kraft,mal_croppe,Teint_Dans_La_Masse,flou,Carton_gris,Carton_brun,papier your option no_mail is active, we will not send the real mail to your client args[1393843525] : ('0.046561897558114206',) no score found for photo 1393843525 We are sending mail with results at report@fotonower.com args[1393843510] : ('0.046561897558114206',) no score found for photo 1393843510 We are sending mail with results at report@fotonower.com args[1393843476] : ('0.046561897558114206',) no score found for photo 1393843476 We are sending mail with results at report@fotonower.com args[1393843438] : ('0.046561897558114206',) no score found for photo 1393843438 We are sending mail with results at report@fotonower.com args[1393843401] : ('0.046561897558114206',) no score found for photo 1393843401 We are sending mail with results at report@fotonower.com args[1393843389] : ('0.046561897558114206',) no score found for photo 1393843389 We are sending mail with results at report@fotonower.com args[1393843363] : ('0.046561897558114206',) no score found for photo 1393843363 We are sending mail with results at report@fotonower.com args[1393843361] : ('0.046561897558114206',) no score found for photo 1393843361 We are sending mail with results at report@fotonower.com args[1393843357] : ('0.046561897558114206',) no score found for photo 1393843357 We are sending mail with results at report@fotonower.com args[1393843355] : ('0.046561897558114206',) no score found for photo 1393843355 We are sending mail with results at report@fotonower.com args[1393843352] : ('0.046561897558114206',) no score found for photo 1393843352 We are sending mail with results at report@fotonower.com args[1393843349] : ('0.046561897558114206',) no score found for photo 1393843349 We are sending mail with results at report@fotonower.com refus_total : 0.046561897558114206 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=28416538 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_P28416538_11-11-2025_01_00_59.pdf results_Auto_P28416538_11-11-2025_01_00_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28416538_11-11-2025_01_00_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','28416538','results_Auto_P28416538_11-11-2025_01_00_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28416538_11-11-2025_01_00_59.pdf','pdf','','0.19','0.046561897558114206') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28416538]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1393843525, 1393843510, 1393843476, 1393843438, 1393843401, 1393843389, 1393843363, 1393843361, 1393843357, 1393843355, 1393843352, 1393843349] map_info['map_portfolio_photo'] : {28416538: [1393843525, 1393843510, 1393843476, 1393843438, 1393843401, 1393843389, 1393843363, 1393843361, 1393843357, 1393843355, 1393843352, 1393843349, 1393843318, 1393843315, 1393843312, 1393843311, 1393843297, 1393843296, 1393843295, 1393843294, 1393843287, 1393843284, 1393843281, 1393843278, 1393843277, 1393843276, 1393843245, 1393843243, 1393843241, 1393843239, 1393843217, 1393843214, 1393843213, 1393843210, 1393843098, 1393843095, 1393843092, 1393843089, 1393843085, 1393843071, 1393843068, 1393843065, 1393843063, 1393843053, 1393843049, 1393843044, 1393843040, 1393843038, 1393843036, 1393843031, 1393843029, 1393843026, 1393843023, 1393843019, 1393843016, 1393843005, 1393843004, 1393843003, 1393843000, 1393842997, 1393842992, 1393842969, 1393842967, 1393842964, 1393842957, 1393842955, 1393842953, 1393842891, 1393842887, 1393842885, 1393842884]} final : False mtd_id 4302 list_pids : [1393843525, 1393843510, 1393843476, 1393843438, 1393843401, 1393843389, 1393843363, 1393843361, 1393843357, 1393843355, 1393843352, 1393843349] 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, '4030242') ('4302', '28416538', '1393843525', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843510', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843476', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843438', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843401', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843389', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843363', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843361', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843357', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843355', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843352', None, None, None, None, None, '4030242') ('4302', None, None, None, None, None, None, None, '4030242') ('4302', '28416538', '1393843349', None, None, None, None, None, '4030242') 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', '28416538', '1393843525', None, None, None, None, None, '4030242'), ('4302', '28416538', '1393843510', None, None, None, None, None, '4030242'), ('4302', '28416538', '1393843476', None, None, None, None, None, '4030242'), ('4302', '28416538', '1393843438', None, None, None, None, None, '4030242'), ('4302', '28416538', '1393843401', None, None, None, None, None, '4030242'), ('4302', '28416538', '1393843389', None, None, None, None, None, '4030242'), ('4302', '28416538', '1393843363', None, None, None, None, None, '4030242'), ('4302', '28416538', '1393843361', None, None, None, None, None, '4030242'), ('4302', '28416538', '1393843357', None, None, None, None, None, '4030242'), ('4302', '28416538', '1393843355', None, None, None, None, None, '4030242'), ('4302', '28416538', '1393843352', None, None, None, None, None, '4030242'), ('4302', '28416538', '1393843349', None, None, None, None, None, '4030242')] time used for this insertion : 0.014745950698852539 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.323470115661621 time spend to save output : 0.014974117279052734 total time spend for step 4 : 4.338444232940674 step5:split_time_score Tue Nov 11 01:01:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['28416538'] 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 : [('28416538',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28416538) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1393843349: {'path': 'temp/1762819259_3583175_1393843349_00a8045841b5eb815f46d84b836c8e24.jpg', 'extension': 'jpg'}, 1393843352: {'path': 'temp/1762819259_3583175_1393843352_de1e93fe30731efbb6471bd8e23ab691.jpg', 'extension': 'jpg'}, 1393843355: {'path': 'temp/1762819259_3583175_1393843355_9065a98a48e295ce29a71a3fee7bbf29.jpg', 'extension': 'jpg'}, 1393843476: {'path': 'temp/1762819259_3583175_1393843476_580845fd26b14490c4282c39479cba94.jpg', 'extension': 'jpg'}, 1393843510: {'path': 'temp/1762819259_3583175_1393843510_d9baf00b5a700a338c9cc2b1bc906bb8.jpg', 'extension': 'jpg'}, 1393843525: {'path': 'temp/1762819259_3583175_1393843525_6e2fa216ea082488f03ffee13a93f3f8.jpg', 'extension': 'jpg'}, 1393843357: {'path': 'temp/1762819259_3583175_1393843357_f9ae720cc6ed4811490c5d9c6b1312ca.jpg', 'extension': 'jpg'}, 1393843361: {'path': 'temp/1762819259_3583175_1393843361_aa128e5661945f9a2e75b9489de15582.jpg', 'extension': 'jpg'}, 1393843363: {'path': 'temp/1762819259_3583175_1393843363_f83d6f0eb5e67f3ebe23577508dcc00c.jpg', 'extension': 'jpg'}, 1393843389: {'path': 'temp/1762819259_3583175_1393843389_7ae19e5376429f8ab75b70f051242336.jpg', 'extension': 'jpg'}, 1393843401: {'path': 'temp/1762819259_3583175_1393843401_e23b74147c1f2af9ef13f7d63c158f5b.jpg', 'extension': 'jpg'}, 1393843438: {'path': 'temp/1762819259_3583175_1393843438_8bf062ad4be8f2d40ad9f3d0eed54f7e.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 = 28416538; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm_bis',)) dashboard list : (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm_bis',)) can't retrive data from the dashboard with the suffix, please check suffix After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28416538]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1393843525, 1393843510, 1393843476, 1393843438, 1393843401, 1393843389, 1393843363, 1393843361, 1393843357, 1393843355, 1393843352, 1393843349] map_info['map_portfolio_photo'] : {28416538: [1393843525, 1393843510, 1393843476, 1393843438, 1393843401, 1393843389, 1393843363, 1393843361, 1393843357, 1393843355, 1393843352, 1393843349, 1393843318, 1393843315, 1393843312, 1393843311, 1393843297, 1393843296, 1393843295, 1393843294, 1393843287, 1393843284, 1393843281, 1393843278, 1393843277, 1393843276, 1393843245, 1393843243, 1393843241, 1393843239, 1393843217, 1393843214, 1393843213, 1393843210, 1393843098, 1393843095, 1393843092, 1393843089, 1393843085, 1393843071, 1393843068, 1393843065, 1393843063, 1393843053, 1393843049, 1393843044, 1393843040, 1393843038, 1393843036, 1393843031, 1393843029, 1393843026, 1393843023, 1393843019, 1393843016, 1393843005, 1393843004, 1393843003, 1393843000, 1393842997, 1393842992, 1393842969, 1393842967, 1393842964, 1393842957, 1393842955, 1393842953, 1393842891, 1393842887, 1393842885, 1393842884]} final : True mtd_id 4302 list_pids : [1393843525, 1393843510, 1393843476, 1393843438, 1393843401, 1393843389, 1393843363, 1393843361, 1393843357, 1393843355, 1393843352, 1393843349] Looping around the photos to save general results object of type 'int' has no len() 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', '28416538', '1393843525', '0', '0', '-1.0', '501120777', '1.0', '4030242'), ('4302', '28416538', '1393843510', '0', '0', '-1.0', '501120777', '1.0', '4030242'), ('4302', '28416538', '1393843476', '0', '0', '-1.0', '501120777', '1.0', '4030242'), ('4302', '28416538', '1393843438', '0', '0', '-1.0', '501120777', '1.0', '4030242'), ('4302', '28416538', '1393843401', '0', '0', '-1.0', '501120777', '1.0', '4030242'), ('4302', '28416538', '1393843389', '0', '0', '-1.0', '501120777', '1.0', '4030242'), ('4302', '28416538', '1393843363', '0', '0', '-1.0', '501120777', '1.0', '4030242'), ('4302', '28416538', '1393843361', '0', '0', '-1.0', '501120777', '1.0', '4030242'), ('4302', '28416538', '1393843357', '0', '0', '-1.0', '501120777', '1.0', '4030242'), ('4302', '28416538', '1393843355', '0', '0', '-1.0', '501120777', '1.0', '4030242'), ('4302', '28416538', '1393843352', '0', '0', '-1.0', '501120777', '1.0', '4030242'), ('4302', '28416538', '1393843349', '0', '0', '-1.0', '501120777', '1.0', '4030242')] time used for this insertion : 0.013654947280883789 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0251467227935791 time spend to save output : 0.013821601867675781 total time spend for step 5 : 0.03896832466125488 UPDATE MTRPhoto.mtr_datou_current SET state=-11, hostname='marlene' WHERE id in (4030242) 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 (4030242) 2.19user 2.31system 0:09.05elapsed 49%CPU (0avgtext+0avgdata 159968maxresident)k 488inputs+11408outputs (15major+64204minor)pagefaults 0swaps