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 : 1902683 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 (4319352) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4319352) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30000381 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4319352'] with mtr_portfolio_ids : ['30000381'] and first list_photo_ids : [] new path : /proc/1902683/ Name: python3 Umask: 0002 State: R (running) Tgid: 1902683 Ngid: 0 Pid: 1902683 PPid: 1902682 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1902683 NSpid: 1902683 NSpgid: 1902330 NSsid: 1902330 VmPeak: 1113368 kB VmSize: 1113368 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105412 kB VmRSS: 105412 kB RssAnon: 66300 kB RssFile: 39112 kB RssShmem: 0 kB VmData: 872096 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 616 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 43 nonvoluntary_ctxt_switches: 92 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1902683', 'Ngid': '0', 'Pid': '1902683', 'PPid': '1902682', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1902683', 'NSpid': '1902683', 'NSpgid': '1902330', 'NSsid': '1902330', 'VmPeak': '1113368 kB', 'VmSize': '1113368 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105412 kB', 'VmRSS': '105412 kB', 'RssAnon': '66300 kB', 'RssFile': '39112 kB', 'RssShmem': '0 kB', 'VmData': '872096 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '616 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '43', 'nonvoluntary_ctxt_switches': '92'} ('datou_batch_current', '1902683', '1113368', '0', '1113368', '872096', '105412', b'', 'marlene', '4319352') 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 (30000381) 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 (4319352 ) ) 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 (30000381) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1402728529, 'portfolio_id': 30000381}, {'photo_id': 1402728526, 'portfolio_id': 30000381}, {'photo_id': 1402728525, 'portfolio_id': 30000381}, {'photo_id': 1402728524, 'portfolio_id': 30000381}, {'photo_id': 1402728523, 'portfolio_id': 30000381}, {'photo_id': 1402728509, 'portfolio_id': 30000381}, {'photo_id': 1402728508, 'portfolio_id': 30000381}, {'photo_id': 1402728507, 'portfolio_id': 30000381}, {'photo_id': 1402728506, 'portfolio_id': 30000381}, {'photo_id': 1402728498, 'portfolio_id': 30000381}, {'photo_id': 1402728497, 'portfolio_id': 30000381}, {'photo_id': 1402728496, 'portfolio_id': 30000381}, {'photo_id': 1402728484, 'portfolio_id': 30000381}, {'photo_id': 1402728482, 'portfolio_id': 30000381}, {'photo_id': 1402728478, 'portfolio_id': 30000381}, {'photo_id': 1402728475, 'portfolio_id': 30000381}, {'photo_id': 1402728473, 'portfolio_id': 30000381}, {'photo_id': 1402728470, 'portfolio_id': 30000381}, {'photo_id': 1402728456, 'portfolio_id': 30000381}, {'photo_id': 1402728454, 'portfolio_id': 30000381}, {'photo_id': 1402728453, 'portfolio_id': 30000381}, {'photo_id': 1402728452, 'portfolio_id': 30000381}, {'photo_id': 1402728433, 'portfolio_id': 30000381}, {'photo_id': 1402728431, 'portfolio_id': 30000381}, {'photo_id': 1402728428, 'portfolio_id': 30000381}, {'photo_id': 1402728427, 'portfolio_id': 30000381}, {'photo_id': 1402728426, 'portfolio_id': 30000381}, {'photo_id': 1402728425, 'portfolio_id': 30000381}, {'photo_id': 1402728415, 'portfolio_id': 30000381}, {'photo_id': 1402728413, 'portfolio_id': 30000381}, {'photo_id': 1402728412, 'portfolio_id': 30000381}, {'photo_id': 1402728398, 'portfolio_id': 30000381}, {'photo_id': 1402728394, 'portfolio_id': 30000381}, {'photo_id': 1402728393, 'portfolio_id': 30000381}, {'photo_id': 1402728392, 'portfolio_id': 30000381}, {'photo_id': 1402728391, 'portfolio_id': 30000381}, {'photo_id': 1402728363, 'portfolio_id': 30000381}, {'photo_id': 1402728340, 'portfolio_id': 30000381}, {'photo_id': 1402728338, 'portfolio_id': 30000381}, {'photo_id': 1402728320, 'portfolio_id': 30000381}, {'photo_id': 1402728287, 'portfolio_id': 30000381}, {'photo_id': 1402728144, 'portfolio_id': 30000381}, {'photo_id': 1402728140, 'portfolio_id': 30000381}, {'photo_id': 1402728127, 'portfolio_id': 30000381}, {'photo_id': 1402728094, 'portfolio_id': 30000381}, {'photo_id': 1402728061, 'portfolio_id': 30000381}, {'photo_id': 1402727716, 'portfolio_id': 30000381}, {'photo_id': 1402727713, 'portfolio_id': 30000381}, {'photo_id': 1402727712, 'portfolio_id': 30000381}, {'photo_id': 1402727696, 'portfolio_id': 30000381}, {'photo_id': 1402727693, 'portfolio_id': 30000381}, {'photo_id': 1402727690, 'portfolio_id': 30000381}, {'photo_id': 1402727688, 'portfolio_id': 30000381}, {'photo_id': 1402727687, 'portfolio_id': 30000381}, {'photo_id': 1402727674, 'portfolio_id': 30000381}, {'photo_id': 1402727673, 'portfolio_id': 30000381}, {'photo_id': 1402727671, 'portfolio_id': 30000381}, {'photo_id': 1402727670, 'portfolio_id': 30000381}] map_portfolio_id_photo_id: {30000381: [1402728529, 1402728526, 1402728525, 1402728524, 1402728523, 1402728509, 1402728508, 1402728507, 1402728506, 1402728498, 1402728497, 1402728496, 1402728484, 1402728482, 1402728478, 1402728475, 1402728473, 1402728470, 1402728456, 1402728454, 1402728453, 1402728452, 1402728433, 1402728431, 1402728428, 1402728427, 1402728426, 1402728425, 1402728415, 1402728413, 1402728412, 1402728398, 1402728394, 1402728393, 1402728392, 1402728391, 1402728363, 1402728340, 1402728338, 1402728320, 1402728287, 1402728144, 1402728140, 1402728127, 1402728094, 1402728061, 1402727716, 1402727713, 1402727712, 1402727696, 1402727693, 1402727690, 1402727688, 1402727687, 1402727674, 1402727673, 1402727671, 1402727670]} ##### 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.01729583740234375 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Jan 7 00:59:59 2026 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 (30000381) 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 : 30000381 get user id for portfolio 30000381 get sub ptf for main ptf 30000381, type 3726 and hashtags ['kraft', 'Carton_gris', 'environnement', 'Carton_brun', 'mal_croppe', 'flou', 'autre_refus', 'metal', 'cartonnette', 'plastique', 'Teint_Dans_La_Masse', 'papier'] 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`=30000381 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','environnement','Carton_brun','mal_croppe','flou','autre_refus','metal','cartonnette','plastique','Teint_Dans_La_Masse','papier')) 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`=30000381 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','environnement','Carton_brun','mal_croppe','flou','autre_refus','metal','cartonnette','plastique','Teint_Dans_La_Masse','papier')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 30000381, 'sub_port_id': 30000389, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531533, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 58, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 58, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 26)}, 'plastique': {'main_port_id': 30000381, 'sub_port_id': 30000390, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531534, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 58, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 58, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 26)}, 'Carton_brun': {'main_port_id': 30000381, 'sub_port_id': 30000391, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531535, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 58, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 58, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 26)}, 'flou': {'main_port_id': 30000381, 'sub_port_id': 30000392, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531536, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 58, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 58, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 26)}, 'kraft': {'main_port_id': 30000381, 'sub_port_id': 30000393, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531537, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 58, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 58, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 26)}, 'Carton_gris': {'main_port_id': 30000381, 'sub_port_id': 30000394, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531538, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 58, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 58, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 26)}, 'mal_croppe': {'main_port_id': 30000381, 'sub_port_id': 30000395, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531539, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 58, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 58, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 26)}, 'papier': {'main_port_id': 30000381, 'sub_port_id': 30000396, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531540, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 58, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 58, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 30000381, 'sub_port_id': 30000397, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531541, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 58, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 58, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 26)}, 'metal': {'main_port_id': 30000381, 'sub_port_id': 30000398, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531542, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 58, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 58, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 26)}, 'environnement': {'main_port_id': 30000381, 'sub_port_id': 30000399, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531543, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 58, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 58, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 26)}, 'autre_refus': {'main_port_id': 30000381, 'sub_port_id': 30000400, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531544, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 58, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 58, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30000389 , 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=30000381 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 (30000389) result : ((1402728439,), (1402728440,), (1402728489,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30000381) result : ((1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,), (1402728506,), (1402728507,), (1402728508,), (1402728509,), (1402728523,), (1402728524,), (1402728525,), (1402728526,), (1402728529,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30000390 , 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=30000381 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 (30000390) result : ((1402728442,), (1402728443,), (1402728494,), (1402728495,), (1402728518,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30000381) result : ((1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,), (1402728506,), (1402728507,), (1402728508,), (1402728509,), (1402728523,), (1402728524,), (1402728525,), (1402728526,), (1402728529,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30000391 , 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=30000381 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 (30000391) result : ((1402728405,), (1402728406,), (1402728407,), (1402728408,), (1402728441,), (1402728448,), (1402728449,), (1402728450,), (1402728451,), (1402728493,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30000381) result : ((1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,), (1402728506,), (1402728507,), (1402728508,), (1402728509,), (1402728523,), (1402728524,), (1402728525,), (1402728526,), (1402728529,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30000392 , 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=30000381 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 (30000392) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30000381) result : ((1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,), (1402728506,), (1402728507,), (1402728508,), (1402728509,), (1402728523,), (1402728524,), (1402728525,), (1402728526,), (1402728529,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30000393 , 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=30000381 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 (30000393) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30000381) result : ((1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,), (1402728506,), (1402728507,), (1402728508,), (1402728509,), (1402728523,), (1402728524,), (1402728525,), (1402728526,), (1402728529,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30000394 , 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=30000381 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 (30000394) result : ((1402728404,), (1402728447,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30000381) result : ((1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,), (1402728506,), (1402728507,), (1402728508,), (1402728509,), (1402728523,), (1402728524,), (1402728525,), (1402728526,), (1402728529,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30000395 , 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=30000381 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 (30000395) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30000381) result : ((1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,), (1402728506,), (1402728507,), (1402728508,), (1402728509,), (1402728523,), (1402728524,), (1402728525,), (1402728526,), (1402728529,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30000396 , 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=30000381 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 (30000396) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30000381) result : ((1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,), (1402728506,), (1402728507,), (1402728508,), (1402728509,), (1402728523,), (1402728524,), (1402728525,), (1402728526,), (1402728529,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30000397 , 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=30000381 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 (30000397) result : ((1402728402,), (1402728437,), (1402728446,), (1402728486,), (1402728487,), (1402728515,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30000381) result : ((1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,), (1402728506,), (1402728507,), (1402728508,), (1402728509,), (1402728523,), (1402728524,), (1402728525,), (1402728526,), (1402728529,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30000398 , 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=30000381 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 (30000398) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30000381) result : ((1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,), (1402728506,), (1402728507,), (1402728508,), (1402728509,), (1402728523,), (1402728524,), (1402728525,), (1402728526,), (1402728529,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30000399 , 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=30000381 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 (30000399) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30000381) result : ((1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,), (1402728506,), (1402728507,), (1402728508,), (1402728509,), (1402728523,), (1402728524,), (1402728525,), (1402728526,), (1402728529,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 30000400 , 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=30000381 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 (30000400) result : ((1402728488,), (1402728492,), (1402728516,), (1402728517,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (30000381) result : ((1402727670,), (1402727671,), (1402727673,), (1402727674,), (1402727687,), (1402727688,), (1402727690,), (1402727693,), (1402727696,), (1402727712,), (1402727713,), (1402727716,), (1402728061,), (1402728094,), (1402728127,), (1402728140,), (1402728144,), (1402728287,), (1402728320,), (1402728338,), (1402728340,), (1402728363,), (1402728391,), (1402728392,), (1402728393,), (1402728394,), (1402728398,), (1402728412,), (1402728413,), (1402728415,), (1402728425,), (1402728426,), (1402728427,), (1402728428,), (1402728431,), (1402728433,), (1402728452,), (1402728453,), (1402728454,), (1402728456,), (1402728470,), (1402728473,), (1402728475,), (1402728478,), (1402728482,), (1402728484,), (1402728496,), (1402728497,), (1402728498,), (1402728506,), (1402728507,), (1402728508,), (1402728509,), (1402728523,), (1402728524,), (1402728525,), (1402728526,), (1402728529,)) 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 () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") 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`=30000381 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','environnement','Carton_brun','mal_croppe','flou','autre_refus','metal','cartonnette','plastique','Teint_Dans_La_Masse','papier')) 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`=30000381 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','Carton_gris','environnement','Carton_brun','mal_croppe','flou','autre_refus','metal','cartonnette','plastique','Teint_Dans_La_Masse','papier')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 30000381, 'sub_port_id': 30000401, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531545, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 33)}, 'plastique': {'main_port_id': 30000381, 'sub_port_id': 30000402, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531546, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 33)}, 'Carton_brun': {'main_port_id': 30000381, 'sub_port_id': 30000403, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531547, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 33)}, 'flou': {'main_port_id': 30000381, 'sub_port_id': 30000404, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531548, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 33)}, 'kraft': {'main_port_id': 30000381, 'sub_port_id': 30000405, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531549, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 33)}, 'Carton_gris': {'main_port_id': 30000381, 'sub_port_id': 30000406, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531550, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 33)}, 'mal_croppe': {'main_port_id': 30000381, 'sub_port_id': 30000407, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531551, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 33)}, 'papier': {'main_port_id': 30000381, 'sub_port_id': 30000408, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531552, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 33)}, 'Teint_Dans_La_Masse': {'main_port_id': 30000381, 'sub_port_id': 30000409, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531553, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 33)}, 'metal': {'main_port_id': 30000381, 'sub_port_id': 30000410, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531554, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 33)}, 'environnement': {'main_port_id': 30000381, 'sub_port_id': 30000411, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531555, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 49, 33), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 33)}, 'autre_refus': {'main_port_id': 30000381, 'sub_port_id': 30000412, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20531556, 'last_updated_at': datetime.datetime(2026, 1, 7, 0, 58, 29), 'last_updated_at_desc': datetime.datetime(2026, 1, 7, 0, 58, 29), 'last_updated_at_asc': datetime.datetime(2026, 1, 7, 0, 49, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30000401,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30000389 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30000402,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30000390 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30000403,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30000391 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30000404,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30000392 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30000405,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30000393 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30000406,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30000394 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30000407,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30000395 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30000408,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30000396 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30000409,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30000397 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30000410,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30000398 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30000411,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30000399 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 30000412,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 30000400 lien utilise dans velours : https://marlene.fotonower.com/velours/30000401,30000402,30000403,30000404,30000405,30000406,30000407,30000408,30000409,30000410,30000411,30000412?tags=cartonnette,plastique,Carton_brun,flou,kraft,Carton_gris,mal_croppe,papier,Teint_Dans_La_Masse,metal,environnement,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([30000381]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1402728529, 1402728526, 1402728525, 1402728524, 1402728523] map_info['map_portfolio_photo'] : {30000381: [1402728529, 1402728526, 1402728525, 1402728524, 1402728523, 1402728509, 1402728508, 1402728507, 1402728506, 1402728498, 1402728497, 1402728496, 1402728484, 1402728482, 1402728478, 1402728475, 1402728473, 1402728470, 1402728456, 1402728454, 1402728453, 1402728452, 1402728433, 1402728431, 1402728428, 1402728427, 1402728426, 1402728425, 1402728415, 1402728413, 1402728412, 1402728398, 1402728394, 1402728393, 1402728392, 1402728391, 1402728363, 1402728340, 1402728338, 1402728320, 1402728287, 1402728144, 1402728140, 1402728127, 1402728094, 1402728061, 1402727716, 1402727713, 1402727712, 1402727696, 1402727693, 1402727690, 1402727688, 1402727687, 1402727674, 1402727673, 1402727671, 1402727670]} final : False mtd_id 4302 list_pids : [1402728529, 1402728526, 1402728525, 1402728524, 1402728523] Looping around the photos to save general results len do output : 1 /30000381. 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, '4319352') ('4302', '30000381', '1402728529', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728526', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728525', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728524', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728523', None, None, None, None, None, '4319352') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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, '30000381', "{'cartonnette': 30000389, 'plastique': 30000390, 'Carton_brun': 30000391, 'flou': 30000392, 'kraft': 30000393, 'Carton_gris': 30000394, 'mal_croppe': 30000395, 'papier': 30000396, 'Teint_Dans_La_Masse': 30000397, 'metal': 30000398, 'environnement': 30000399, 'autre_refus': 30000400}", None, None, None, None, '4319352'), ('4302', '30000381', '1402728529', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728526', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728525', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728524', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728523', None, None, None, None, None, '4319352')] time used for this insertion : 0.01437520980834961 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8002595901489258 time spend to save output : 0.014608144760131836 total time spend for step 1 : 1.8148677349090576 step2:final Wed Jan 7 01:00:01 2026 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 (30000381) 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 30000381 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1402727674,1402727673,1402727671,1402727670,1402727696,1402727693,1402727690,1402727688,1402727687,1402727716,1402727713,1402727712,1402728144,1402728140,1402728127,1402728094,1402728061,1402728363,1402728340,1402728338,1402728320,1402728287,1402728398,1402728394,1402728393,1402728392,1402728391,1402728415,1402728413,1402728412,1402728433,1402728431,1402728428,1402728427,1402728426,1402728425,1402728456,1402728454,1402728453,1402728452,1402728484,1402728482,1402728478,1402728475,1402728473,1402728470,1402728498,1402728497,1402728496,1402728509,1402728508,1402728507,1402728506,1402728529,1402728526,1402728525,1402728524,1402728523); 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([30000381]) Inside saveOutput : final : False verbose : True original output for save of step final : {1402728529: ('0.032900732270290875',), 1402728526: ('0.032900732270290875',), 1402728525: ('0.032900732270290875',), 1402728524: ('0.032900732270290875',), 1402728523: ('0.032900732270290875',)} new output for save of step final : {1402728529: ('0.032900732270290875',), 1402728526: ('0.032900732270290875',), 1402728525: ('0.032900732270290875',), 1402728524: ('0.032900732270290875',), 1402728523: ('0.032900732270290875',)} [1402728529, 1402728526, 1402728525, 1402728524, 1402728523] map_info['map_portfolio_photo'] : {30000381: [1402728529, 1402728526, 1402728525, 1402728524, 1402728523, 1402728509, 1402728508, 1402728507, 1402728506, 1402728498, 1402728497, 1402728496, 1402728484, 1402728482, 1402728478, 1402728475, 1402728473, 1402728470, 1402728456, 1402728454, 1402728453, 1402728452, 1402728433, 1402728431, 1402728428, 1402728427, 1402728426, 1402728425, 1402728415, 1402728413, 1402728412, 1402728398, 1402728394, 1402728393, 1402728392, 1402728391, 1402728363, 1402728340, 1402728338, 1402728320, 1402728287, 1402728144, 1402728140, 1402728127, 1402728094, 1402728061, 1402727716, 1402727713, 1402727712, 1402727696, 1402727693, 1402727690, 1402727688, 1402727687, 1402727674, 1402727673, 1402727671, 1402727670]} final : False mtd_id 4302 list_pids : [1402728529, 1402728526, 1402728525, 1402728524, 1402728523] Looping around the photos to save general results len do output : 5 /1402728529.Didn't retrieve data . /1402728526.Didn't retrieve data . /1402728525.Didn't retrieve data . /1402728524.Didn't retrieve data . /1402728523.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, '4319352') ('4302', '30000381', '1402728529', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728526', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728525', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728524', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728523', None, None, None, None, None, '4319352') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '30000381', '1402728529', '0.032900732270290875', None, None, None, None, '4319352'), ('4302', '30000381', '1402728526', '0.032900732270290875', None, None, None, None, '4319352'), ('4302', '30000381', '1402728525', '0.032900732270290875', None, None, None, None, '4319352'), ('4302', '30000381', '1402728524', '0.032900732270290875', None, None, None, None, '4319352'), ('4302', '30000381', '1402728523', '0.032900732270290875', None, None, None, None, '4319352')] time used for this insertion : 0.014304399490356445 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08131933212280273 time spend to save output : 0.014633893966674805 total time spend for step 2 : 0.09595322608947754 step3:velours_tree Wed Jan 7 01:00:01 2026 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 : {30000381: [{'cartonnette': 30000389, 'plastique': 30000390, 'Carton_brun': 30000391, 'flou': 30000392, 'kraft': 30000393, 'Carton_gris': 30000394, 'mal_croppe': 30000395, 'papier': 30000396, 'Teint_Dans_La_Masse': 30000397, 'metal': 30000398, 'environnement': 30000399, 'autre_refus': 30000400}]} input_args_next_step : {30000381: ()} output_args : {30000381: [{'cartonnette': 30000389, 'plastique': 30000390, 'Carton_brun': 30000391, 'flou': 30000392, 'kraft': 30000393, 'Carton_gris': 30000394, 'mal_croppe': 30000395, 'papier': 30000396, 'Teint_Dans_La_Masse': 30000397, 'metal': 30000398, 'environnement': 30000399, 'autre_refus': 30000400}]} args : 30000381 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 : ({'cartonnette': 30000389, 'plastique': 30000390, 'Carton_brun': 30000391, 'flou': 30000392, 'kraft': 30000393, 'Carton_gris': 30000394, 'mal_croppe': 30000395, 'papier': 30000396, 'Teint_Dans_La_Masse': 30000397, 'metal': 30000398, 'environnement': 30000399, 'autre_refus': 30000400},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (30000381) 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([30000381]) 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.6801407337188721 time spend to save output : 0.00010943412780761719 total time spend for step 3 : 0.6802501678466797 step4:send_mail_cod Wed Jan 7 01:00:02 2026 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 : {1402728529: ('0.032900732270290875',), 1402728526: ('0.032900732270290875',), 1402728525: ('0.032900732270290875',), 1402728524: ('0.032900732270290875',), 1402728523: ('0.032900732270290875',)} input_args_next_step : {1402728529: ()} output_args : {1402728529: ('0.032900732270290875',), 1402728526: ('0.032900732270290875',), 1402728525: ('0.032900732270290875',), 1402728524: ('0.032900732270290875',), 1402728523: ('0.032900732270290875',)} args : 1402728529 depend.output_id : 0 input_args_next_step : {1402728529: ('0.032900732270290875',), 1402728526: ()} output_args : {1402728529: ('0.032900732270290875',), 1402728526: ('0.032900732270290875',), 1402728525: ('0.032900732270290875',), 1402728524: ('0.032900732270290875',), 1402728523: ('0.032900732270290875',)} args : 1402728526 depend.output_id : 0 input_args_next_step : {1402728529: ('0.032900732270290875',), 1402728526: ('0.032900732270290875',), 1402728525: ()} output_args : {1402728529: ('0.032900732270290875',), 1402728526: ('0.032900732270290875',), 1402728525: ('0.032900732270290875',), 1402728524: ('0.032900732270290875',), 1402728523: ('0.032900732270290875',)} args : 1402728525 depend.output_id : 0 input_args_next_step : {1402728529: ('0.032900732270290875',), 1402728526: ('0.032900732270290875',), 1402728525: ('0.032900732270290875',), 1402728524: ()} output_args : {1402728529: ('0.032900732270290875',), 1402728526: ('0.032900732270290875',), 1402728525: ('0.032900732270290875',), 1402728524: ('0.032900732270290875',), 1402728523: ('0.032900732270290875',)} args : 1402728524 depend.output_id : 0 input_args_next_step : {1402728529: ('0.032900732270290875',), 1402728526: ('0.032900732270290875',), 1402728525: ('0.032900732270290875',), 1402728524: ('0.032900732270290875',), 1402728523: ()} output_args : {1402728529: ('0.032900732270290875',), 1402728526: ('0.032900732270290875',), 1402728525: ('0.032900732270290875',), 1402728524: ('0.032900732270290875',), 1402728523: ('0.032900732270290875',)} args : 1402728523 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 : {30000381: [{'cartonnette': 30000389, 'plastique': 30000390, 'Carton_brun': 30000391, 'flou': 30000392, 'kraft': 30000393, 'Carton_gris': 30000394, 'mal_croppe': 30000395, 'papier': 30000396, 'Teint_Dans_La_Masse': 30000397, 'metal': 30000398, 'environnement': 30000399, 'autre_refus': 30000400}]} input_args_next_step : {1402728529: ('0.032900732270290875',), 1402728526: ('0.032900732270290875',), 1402728525: ('0.032900732270290875',), 1402728524: ('0.032900732270290875',), 1402728523: ('0.032900732270290875',), 30000381: ()} output_args : {30000381: [{'cartonnette': 30000389, 'plastique': 30000390, 'Carton_brun': 30000391, 'flou': 30000392, 'kraft': 30000393, 'Carton_gris': 30000394, 'mal_croppe': 30000395, 'papier': 30000396, 'Teint_Dans_La_Masse': 30000397, 'metal': 30000398, 'environnement': 30000399, 'autre_refus': 30000400}]} args : 30000381 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 :6, first value : ('0.032900732270290875',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (30000381) 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 (1402728529,1402728526,1402728525,1402728524,1402728523) Found this number of photos: 5 ##### Call download_photos : nb_thread : 5 begin to download photo : 1402728523 begin to download photo : 1402728525 begin to download photo : 1402728529 download finish for photo 1402728523 begin to download photo : 1402728524 download finish for photo 1402728525 begin to download photo : 1402728526 download finish for photo 1402728529 download finish for photo 1402728526 download finish for photo 1402728524 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 : 5 ; length of list_pids : 5 ; length of list_args : 5 results_Auto_P30000381_07-01-2026_01_00_02.pdf 30000389 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=30000389 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402728439: '1767743587_1556113_1402728127_1c99f1b76a0c54c24dc7b26a53724fde_rle_crop_4092230781_0.png', 1402728440: '1767743587_1556113_1402728094_ceb865738ea36fca52af485898db07d2_rle_crop_4092230788_0.png', 1402728489: '1767743707_1561618_1402728392_81d81dcdee07c26b567046a352d9ca6b_rle_crop_4092231065_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/8afe92179b2dae4e5a43c2a8f3e33c3e_58584686.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/11a57628fab442afa9c77138dd01c056_11652995.png change filename to text .imagette300003891767744002/ imagette300003891767744002/1767743707_1561618_1402728392_81d81dcdee07c26b567046a352d9ca6b_rle_crop_4092231065_0.png.png imagette300003891767744002/1767743587_1556113_1402728127_1c99f1b76a0c54c24dc7b26a53724fde_rle_crop_4092230781_0.png.png imagette300003891767744002/1767743587_1556113_1402728094_ceb865738ea36fca52af485898db07d2_rle_crop_4092230788_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/0f9df9433280644852b0e04da8d83b41_55206459.png imagette300003891767744002 30000390 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=30000390 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402728442: '1767743587_1556113_1402728127_1c99f1b76a0c54c24dc7b26a53724fde_rle_crop_4092230783_0.png', 1402728443: '1767743587_1556113_1402728094_ceb865738ea36fca52af485898db07d2_rle_crop_4092230793_0.png', 1402728494: '1767743727_1562024_1402728413_2132947347f11c45b37324f1d71538c7_rle_crop_4092231126_0.png', 1402728495: '1767743727_1562024_1402728412_f01f99459e2bb3e0563a7311e8852140_rle_crop_4092231131_0.png', 1402728518: '1767743827_1567115_1402728454_1182cee8b53bbe9016e94bc01a6d2191_rle_crop_4092231219_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/a866a0fa868dd146cc1d52931bee2c9d_48003749.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/236ce31e2b2326c6419c1e0b40358fa5_87874606.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/5ded00ed900b4480e72629b020ac86c7_51634700.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/c320bda86b7260efe7a5550297842186_40019407.png change filename to text .imagette300003901767744002/ imagette300003901767744002/1767743587_1556113_1402728127_1c99f1b76a0c54c24dc7b26a53724fde_rle_crop_4092230783_0.png.png imagette300003901767744002/1767743727_1562024_1402728412_f01f99459e2bb3e0563a7311e8852140_rle_crop_4092231131_0.png.png imagette300003901767744002/1767743727_1562024_1402728413_2132947347f11c45b37324f1d71538c7_rle_crop_4092231126_0.png.png imagette300003901767744002/1767743587_1556113_1402728094_ceb865738ea36fca52af485898db07d2_rle_crop_4092230793_0.png.png imagette300003901767744002/1767743827_1567115_1402728454_1182cee8b53bbe9016e94bc01a6d2191_rle_crop_4092231219_0.png.png imagette300003921767744003/ imagette300003931767744003/ imagette300003951767744003/ imagette300003981767744003/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/1cdf4f6600278d2030df88af05f60957_72271910.png imagette300003901767744002 30000392 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=30000392 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette300003921767744003 30000393 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=30000393 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette300003931767744003 30000395 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=30000395 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette300003951767744003 30000398 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=30000398 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette300003981767744003 30000400 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=30000400 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402728488: '1767743707_1561618_1402728393_974d7ca4f1f3101e0f2c387877b1726e_rle_crop_4092231055_0.png', 1402728492: '1767743727_1562024_1402728413_2132947347f11c45b37324f1d71538c7_rle_crop_4092231120_0.png', 1402728516: '1767743827_1567115_1402728454_1182cee8b53bbe9016e94bc01a6d2191_rle_crop_4092231217_0.png', 1402728517: '1767743827_1567115_1402728453_9406755b29e0011a42c03204af0e24e1_rle_crop_4092231227_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/6321932d434cd6ae3ea9575e58b86494_67574140.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/f1a91a8f58b9da92a5694e6eda01c4eb_18390212.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/511f581c6b5f064f662f0fd68a506b5b_46340246.png change filename to text .imagette300004001767744003/ imagette300004001767744003/1767743827_1567115_1402728454_1182cee8b53bbe9016e94bc01a6d2191_rle_crop_4092231217_0.png.png imagette300004001767744003/1767743707_1561618_1402728393_974d7ca4f1f3101e0f2c387877b1726e_rle_crop_4092231055_0.png.png imagette300004001767744003/1767743827_1567115_1402728453_9406755b29e0011a42c03204af0e24e1_rle_crop_4092231227_0.png.png imagette300004001767744003/1767743727_1562024_1402728413_2132947347f11c45b37324f1d71538c7_rle_crop_4092231120_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/74060a3b4cba778c56f863dad5423842_37723424.png imagette300004001767744003 30000391 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=30000391 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402728405: '1767743466_1551514_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230646_0.png', 1402728406: '1767743466_1551514_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230645_0.png', 1402728407: '1767743466_1551514_1402727712_9e9e9f734b834d07f8e8b01442da48d8_rle_crop_4092230661_0.png', 1402728408: '1767743466_1551514_1402727712_9e9e9f734b834d07f8e8b01442da48d8_rle_crop_4092230660_0.png', 1402728441: '1767743587_1556113_1402728061_935e0ad475162cd2d4c01ca697013cb1_rle_crop_4092230801_0.png', 1402728448: '1767743605_1556470_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230646_0.png', 1402728449: '1767743605_1556470_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230645_0.png', 1402728450: '1767743605_1556470_1402727712_9e9e9f734b834d07f8e8b01442da48d8_rle_crop_4092230661_0.png', 1402728451: '1767743605_1556470_1402727712_9e9e9f734b834d07f8e8b01442da48d8_rle_crop_4092230660_0.png', 1402728493: '1767743727_1562024_1402728413_2132947347f11c45b37324f1d71538c7_rle_crop_4092231124_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/053f7d08f5839d48c6aedaa577cdbb6f_96456151.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/bad77884fe32801288f26ddf53f9842d_30236427.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/09d0101cf4669957dcf87b00da32350b_56818096.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/3f8292db9d84aed7ba94608e3c9beb6a_4122157.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/cc634ce1980a9bdcf82e7ceca47907e5_77152677.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/053f7d08f5839d48c6aedaa577cdbb6f_34608852.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/bad77884fe32801288f26ddf53f9842d_76741971.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/09d0101cf4669957dcf87b00da32350b_47307127.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/3f8292db9d84aed7ba94608e3c9beb6a_91971206.png change filename to text .imagette300003911767744003/ imagette300003911767744003/1767743466_1551514_1402727712_9e9e9f734b834d07f8e8b01442da48d8_rle_crop_4092230660_0.png.png imagette300003911767744003/1767743587_1556113_1402728061_935e0ad475162cd2d4c01ca697013cb1_rle_crop_4092230801_0.png.png imagette300003911767744003/1767743605_1556470_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230645_0.png.png imagette300003911767744003/1767743605_1556470_1402727712_9e9e9f734b834d07f8e8b01442da48d8_rle_crop_4092230660_0.png.png imagette300003911767744003/1767743466_1551514_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230645_0.png.png imagette300003911767744003/1767743605_1556470_1402727712_9e9e9f734b834d07f8e8b01442da48d8_rle_crop_4092230661_0.png.png imagette300003911767744003/1767743466_1551514_1402727712_9e9e9f734b834d07f8e8b01442da48d8_rle_crop_4092230661_0.png.png imagette300003911767744003/1767743727_1562024_1402728413_2132947347f11c45b37324f1d71538c7_rle_crop_4092231124_0.png.png imagette300003911767744003/1767743605_1556470_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230646_0.png.png imagette300003911767744003/1767743466_1551514_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230646_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/ad7c1ef03b73db437f3de476a85d40ee_12143467.png imagette300003911767744003 30000394 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=30000394 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402728404: '1767743466_1551514_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230650_0.png', 1402728447: '1767743605_1556470_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230650_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/7ddebf4189bacec7689c68a80463b4bf_90466682.png change filename to text .imagette300003941767744004/ imagette300003941767744004/1767743605_1556470_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230650_0.png.png imagette300003941767744004/1767743466_1551514_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230650_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/7ddebf4189bacec7689c68a80463b4bf_54287109.png imagette300003941767744004 30000397 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=30000397 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1402728402: '1767743466_1551514_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230643_0.png', 1402728437: '1767743587_1556113_1402728061_935e0ad475162cd2d4c01ca697013cb1_rle_crop_4092230800_0.png', 1402728446: '1767743605_1556470_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230643_0.png', 1402728486: '1767743707_1561618_1402728393_974d7ca4f1f3101e0f2c387877b1726e_rle_crop_4092231054_0.png', 1402728487: '1767743707_1561618_1402728391_86f45fac849ebe7d0dd06fb9f3a97c34_rle_crop_4092231075_0.png', 1402728515: '1767743827_1567115_1402728453_9406755b29e0011a42c03204af0e24e1_rle_crop_4092231226_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/8e33b0a49ff1a10e786d2dad8b85e458_98945999.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/895e91046c47c4a5d5908ebb9290efe8_259008.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/8e33b0a49ff1a10e786d2dad8b85e458_44420443.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/8b144694b6617b55c1d7e84761283f90_79840504.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/aaf36e84ea00e201e2cab640eec9e3c6_63189171.png change filename to text .imagette300003971767744004/ imagette300003971767744004/1767743827_1567115_1402728453_9406755b29e0011a42c03204af0e24e1_rle_crop_4092231226_0.png.png imagette300003971767744004/1767743707_1561618_1402728393_974d7ca4f1f3101e0f2c387877b1726e_rle_crop_4092231054_0.png.png imagette300003971767744004/1767743605_1556470_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230643_0.png.png imagette300003971767744004/1767743466_1551514_1402727713_28fe04969d447d3ece568b2ea5d9cd23_rle_crop_4092230643_0.png.png imagette300003971767744004/1767743707_1561618_1402728391_86f45fac849ebe7d0dd06fb9f3a97c34_rle_crop_4092231075_0.png.png imagette300003971767744004/1767743587_1556113_1402728061_935e0ad475162cd2d4c01ca697013cb1_rle_crop_4092230800_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2026/1/7/3bc4331f0b40223d2ac9fa2f208f8e6f_53262762.png imagette300003971767744004 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=30000381 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/30000401,30000402,30000403,30000404,30000405,30000406,30000407,30000408,30000409,30000410,30000411,30000412?tags=cartonnette,plastique,Carton_brun,flou,kraft,Carton_gris,mal_croppe,papier,Teint_Dans_La_Masse,metal,environnement,autre_refus your option no_mail is active, we will not send the real mail to your client args[1402728529] : ('0.032900732270290875',) no score found for photo 1402728529 We are sending mail with results at report@fotonower.com args[1402728526] : ('0.032900732270290875',) no score found for photo 1402728526 We are sending mail with results at report@fotonower.com args[1402728525] : ('0.032900732270290875',) no score found for photo 1402728525 We are sending mail with results at report@fotonower.com args[1402728524] : ('0.032900732270290875',) no score found for photo 1402728524 We are sending mail with results at report@fotonower.com args[1402728523] : ('0.032900732270290875',) no score found for photo 1402728523 We are sending mail with results at report@fotonower.com refus_total : 0.032900732270290875 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=30000381 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_P30000381_07-01-2026_01_00_02.pdf results_Auto_P30000381_07-01-2026_01_00_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30000381_07-01-2026_01_00_02.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','30000381','results_Auto_P30000381_07-01-2026_01_00_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P30000381_07-01-2026_01_00_02.pdf','pdf','','0.13','0.032900732270290875') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([30000381]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1402728529, 1402728526, 1402728525, 1402728524, 1402728523] map_info['map_portfolio_photo'] : {30000381: [1402728529, 1402728526, 1402728525, 1402728524, 1402728523, 1402728509, 1402728508, 1402728507, 1402728506, 1402728498, 1402728497, 1402728496, 1402728484, 1402728482, 1402728478, 1402728475, 1402728473, 1402728470, 1402728456, 1402728454, 1402728453, 1402728452, 1402728433, 1402728431, 1402728428, 1402728427, 1402728426, 1402728425, 1402728415, 1402728413, 1402728412, 1402728398, 1402728394, 1402728393, 1402728392, 1402728391, 1402728363, 1402728340, 1402728338, 1402728320, 1402728287, 1402728144, 1402728140, 1402728127, 1402728094, 1402728061, 1402727716, 1402727713, 1402727712, 1402727696, 1402727693, 1402727690, 1402727688, 1402727687, 1402727674, 1402727673, 1402727671, 1402727670]} final : False mtd_id 4302 list_pids : [1402728529, 1402728526, 1402728525, 1402728524, 1402728523] 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, '4319352') ('4302', '30000381', '1402728529', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728526', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728525', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728524', None, None, None, None, None, '4319352') ('4302', None, None, None, None, None, None, None, '4319352') ('4302', '30000381', '1402728523', None, None, None, None, None, '4319352') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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', '30000381', '1402728529', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728526', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728525', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728524', None, None, None, None, None, '4319352'), ('4302', '30000381', '1402728523', None, None, None, None, None, '4319352')] time used for this insertion : 0.014899969100952148 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.7666172981262207 time spend to save output : 0.015186071395874023 total time spend for step 4 : 3.7818033695220947 step5:split_time_score Wed Jan 7 01:00:05 2026 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 : ['30000381'] 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 : [('30000381',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (30000381) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1402728529: {'path': 'temp/1767744002_1902683_1402728529_03dd86cf2e4e2e14887cbc4d68fcf955.jpg', 'extension': 'jpg'}, 1402728525: {'path': 'temp/1767744002_1902683_1402728525_3475c5771562a9dfe3bf7cb13869bc35.jpg', 'extension': 'jpg'}, 1402728526: {'path': 'temp/1767744002_1902683_1402728526_c692c2cfabae7fb50f23605734195155.jpg', 'extension': 'jpg'}, 1402728523: {'path': 'temp/1767744002_1902683_1402728523_b8ecf1c132605bffffe99f9903f2a979.jpg', 'extension': 'jpg'}, 1402728524: {'path': 'temp/1767744002_1902683_1402728524_6c6330cea4cd9bce2895d438efbfe9da.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 = 30000381; (('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([30000381]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1402728529, 1402728526, 1402728525, 1402728524, 1402728523] map_info['map_portfolio_photo'] : {30000381: [1402728529, 1402728526, 1402728525, 1402728524, 1402728523, 1402728509, 1402728508, 1402728507, 1402728506, 1402728498, 1402728497, 1402728496, 1402728484, 1402728482, 1402728478, 1402728475, 1402728473, 1402728470, 1402728456, 1402728454, 1402728453, 1402728452, 1402728433, 1402728431, 1402728428, 1402728427, 1402728426, 1402728425, 1402728415, 1402728413, 1402728412, 1402728398, 1402728394, 1402728393, 1402728392, 1402728391, 1402728363, 1402728340, 1402728338, 1402728320, 1402728287, 1402728144, 1402728140, 1402728127, 1402728094, 1402728061, 1402727716, 1402727713, 1402727712, 1402727696, 1402727693, 1402727690, 1402727688, 1402727687, 1402727674, 1402727673, 1402727671, 1402727670]} final : True mtd_id 4302 list_pids : [1402728529, 1402728526, 1402728525, 1402728524, 1402728523] 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 : 5 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', '30000381', '1402728529', '0', '0', '-1.0', '501120777', '1.0', '4319352'), ('4302', '30000381', '1402728526', '0', '0', '-1.0', '501120777', '1.0', '4319352'), ('4302', '30000381', '1402728525', '0', '0', '-1.0', '501120777', '1.0', '4319352'), ('4302', '30000381', '1402728524', '0', '0', '-1.0', '501120777', '1.0', '4319352'), ('4302', '30000381', '1402728523', '0', '0', '-1.0', '501120777', '1.0', '4319352')] time used for this insertion : 0.014301300048828125 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.026107311248779297 time spend to save output : 0.014511346817016602 total time spend for step 5 : 0.0406186580657959 UPDATE MTRPhoto.mtr_datou_current SET state=-11, hostname='marlene' WHERE id in (4319352) 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 (4319352) 1.84user 1.28system 0:09.95elapsed 31%CPU (0avgtext+0avgdata 166032maxresident)k 152inputs+7440outputs (1major+67121minor)pagefaults 0swaps