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 : 2794910 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 (3365908) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3365908) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25385661 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3365908'] with mtr_portfolio_ids : ['25385661'] and first list_photo_ids : [] new path : /proc/2794910/ Name: python3 Umask: 0002 State: R (running) Tgid: 2794910 Ngid: 0 Pid: 2794910 PPid: 2794907 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2794910 NSpid: 2794910 NSpgid: 2794634 NSsid: 2794634 VmPeak: 1106884 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98408 kB VmRSS: 98408 kB RssAnon: 59832 kB RssFile: 38576 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 604 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: 54 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2794910', 'Ngid': '0', 'Pid': '2794910', 'PPid': '2794907', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2794910', 'NSpid': '2794910', 'NSpgid': '2794634', 'NSsid': '2794634', 'VmPeak': '1106884 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98408 kB', 'VmRSS': '98408 kB', 'RssAnon': '59832 kB', 'RssFile': '38576 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '604 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': '54', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '2794910', '1106884', '0', '1106884', '865636', '98408', b'', 'marlene', '3365908') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25385661) 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 (3365908 ) ) 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 (25385661) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1374089671, 'portfolio_id': 25385661}, {'photo_id': 1374089670, 'portfolio_id': 25385661}, {'photo_id': 1374089669, 'portfolio_id': 25385661}, {'photo_id': 1374089668, 'portfolio_id': 25385661}, {'photo_id': 1374089667, 'portfolio_id': 25385661}, {'photo_id': 1374089665, 'portfolio_id': 25385661}, {'photo_id': 1374089628, 'portfolio_id': 25385661}, {'photo_id': 1374089613, 'portfolio_id': 25385661}, {'photo_id': 1374089611, 'portfolio_id': 25385661}, {'photo_id': 1374089610, 'portfolio_id': 25385661}, {'photo_id': 1374089608, 'portfolio_id': 25385661}, {'photo_id': 1374089606, 'portfolio_id': 25385661}, {'photo_id': 1374089604, 'portfolio_id': 25385661}, {'photo_id': 1374089593, 'portfolio_id': 25385661}, {'photo_id': 1374089592, 'portfolio_id': 25385661}, {'photo_id': 1374089590, 'portfolio_id': 25385661}, {'photo_id': 1374089588, 'portfolio_id': 25385661}, {'photo_id': 1374089586, 'portfolio_id': 25385661}, {'photo_id': 1374089585, 'portfolio_id': 25385661}, {'photo_id': 1374089574, 'portfolio_id': 25385661}, {'photo_id': 1374089569, 'portfolio_id': 25385661}, {'photo_id': 1374089561, 'portfolio_id': 25385661}, {'photo_id': 1374089554, 'portfolio_id': 25385661}, {'photo_id': 1374089552, 'portfolio_id': 25385661}, {'photo_id': 1374089551, 'portfolio_id': 25385661}, {'photo_id': 1374089543, 'portfolio_id': 25385661}, {'photo_id': 1374089541, 'portfolio_id': 25385661}, {'photo_id': 1374089539, 'portfolio_id': 25385661}, {'photo_id': 1374089538, 'portfolio_id': 25385661}, {'photo_id': 1374089536, 'portfolio_id': 25385661}, {'photo_id': 1374089534, 'portfolio_id': 25385661}, {'photo_id': 1374089531, 'portfolio_id': 25385661}, {'photo_id': 1374089529, 'portfolio_id': 25385661}, {'photo_id': 1374089526, 'portfolio_id': 25385661}, {'photo_id': 1374089519, 'portfolio_id': 25385661}, {'photo_id': 1374089514, 'portfolio_id': 25385661}, {'photo_id': 1374089510, 'portfolio_id': 25385661}, {'photo_id': 1374089502, 'portfolio_id': 25385661}, {'photo_id': 1374089500, 'portfolio_id': 25385661}, {'photo_id': 1374089499, 'portfolio_id': 25385661}, {'photo_id': 1374089498, 'portfolio_id': 25385661}, {'photo_id': 1374089496, 'portfolio_id': 25385661}, {'photo_id': 1374089493, 'portfolio_id': 25385661}, {'photo_id': 1374089482, 'portfolio_id': 25385661}, {'photo_id': 1374089480, 'portfolio_id': 25385661}, {'photo_id': 1374089477, 'portfolio_id': 25385661}, {'photo_id': 1374089475, 'portfolio_id': 25385661}, {'photo_id': 1374089472, 'portfolio_id': 25385661}, {'photo_id': 1374089466, 'portfolio_id': 25385661}, {'photo_id': 1374089455, 'portfolio_id': 25385661}, {'photo_id': 1374089454, 'portfolio_id': 25385661}, {'photo_id': 1374089453, 'portfolio_id': 25385661}, {'photo_id': 1374089452, 'portfolio_id': 25385661}, {'photo_id': 1374089450, 'portfolio_id': 25385661}, {'photo_id': 1374089448, 'portfolio_id': 25385661}, {'photo_id': 1374089435, 'portfolio_id': 25385661}, {'photo_id': 1374089420, 'portfolio_id': 25385661}, {'photo_id': 1374089404, 'portfolio_id': 25385661}, {'photo_id': 1374089402, 'portfolio_id': 25385661}, {'photo_id': 1374089395, 'portfolio_id': 25385661}, {'photo_id': 1374089385, 'portfolio_id': 25385661}, {'photo_id': 1374089374, 'portfolio_id': 25385661}, {'photo_id': 1374089372, 'portfolio_id': 25385661}] map_portfolio_id_photo_id: {25385661: [1374089671, 1374089670, 1374089669, 1374089668, 1374089667, 1374089665, 1374089628, 1374089613, 1374089611, 1374089610, 1374089608, 1374089606, 1374089604, 1374089593, 1374089592, 1374089590, 1374089588, 1374089586, 1374089585, 1374089574, 1374089569, 1374089561, 1374089554, 1374089552, 1374089551, 1374089543, 1374089541, 1374089539, 1374089538, 1374089536, 1374089534, 1374089531, 1374089529, 1374089526, 1374089519, 1374089514, 1374089510, 1374089502, 1374089500, 1374089499, 1374089498, 1374089496, 1374089493, 1374089482, 1374089480, 1374089477, 1374089475, 1374089472, 1374089466, 1374089455, 1374089454, 1374089453, 1374089452, 1374089450, 1374089448, 1374089435, 1374089420, 1374089404, 1374089402, 1374089395, 1374089385, 1374089374, 1374089372]} ##### 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.014340877532958984 #### 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 Mon Jul 28 05:59:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25385661) 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 : 25385661 get user id for portfolio 25385661 get sub ptf for main ptf 25385661, type 3726 and hashtags ['cartonnette', 'Carton_gris', 'plastique', 'Teint_Dans_La_Masse', 'papier', 'environnement', 'Carton_brun', 'autre_refus', 'mal_croppe', 'flou', 'kraft', 'metal'] 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`=25385661 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_gris','plastique','Teint_Dans_La_Masse','papier','environnement','Carton_brun','autre_refus','mal_croppe','flou','kraft','metal')) 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`=25385661 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_gris','plastique','Teint_Dans_La_Masse','papier','environnement','Carton_brun','autre_refus','mal_croppe','flou','kraft','metal')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 25385661, 'sub_port_id': 25385666, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17122366, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 46, 58)}, 'environnement': {'main_port_id': 25385661, 'sub_port_id': 25385667, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17122367, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 46, 58)}, 'Carton_brun': {'main_port_id': 25385661, 'sub_port_id': 25385668, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17122368, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 46, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 25385661, 'sub_port_id': 25385669, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17122369, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 46, 58)}, 'cartonnette': {'main_port_id': 25385661, 'sub_port_id': 25385670, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17122370, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 46, 58)}, 'autre_refus': {'main_port_id': 25385661, 'sub_port_id': 25385671, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17122371, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 46, 58)}, 'flou': {'main_port_id': 25385661, 'sub_port_id': 25385672, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17122372, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 46, 58)}, 'plastique': {'main_port_id': 25385661, 'sub_port_id': 25385673, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17122373, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 46, 58)}, 'metal': {'main_port_id': 25385661, 'sub_port_id': 25385674, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17122374, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 46, 58)}, 'papier': {'main_port_id': 25385661, 'sub_port_id': 25385675, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17122375, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 46, 58)}, 'Carton_gris': {'main_port_id': 25385661, 'sub_port_id': 25385676, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17122376, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 46, 58)}, 'mal_croppe': {'main_port_id': 25385661, 'sub_port_id': 25385677, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17122377, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 58, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 58, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 46, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25385666 , 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=25385661 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 (25385666) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25385661) result : ((1374089372,), (1374089374,), (1374089385,), (1374089395,), (1374089402,), (1374089404,), (1374089420,), (1374089435,), (1374089448,), (1374089450,), (1374089452,), (1374089453,), (1374089454,), (1374089455,), (1374089466,), (1374089472,), (1374089475,), (1374089477,), (1374089480,), (1374089482,), (1374089493,), (1374089496,), (1374089498,), (1374089499,), (1374089500,), (1374089502,), (1374089510,), (1374089514,), (1374089519,), (1374089526,), (1374089529,), (1374089531,), (1374089534,), (1374089536,), (1374089538,), (1374089539,), (1374089541,), (1374089543,), (1374089551,), (1374089552,), (1374089554,), (1374089561,), (1374089569,), (1374089574,), (1374089585,), (1374089586,), (1374089588,), (1374089590,), (1374089592,), (1374089593,), (1374089604,), (1374089606,), (1374089608,), (1374089610,), (1374089611,), (1374089613,), (1374089628,), (1374089665,), (1374089667,), (1374089668,), (1374089669,), (1374089670,), (1374089671,)) 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 (1374089500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25385667 , 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=25385661 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 (25385667) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25385661) result : ((1374089372,), (1374089374,), (1374089385,), (1374089395,), (1374089402,), (1374089404,), (1374089420,), (1374089435,), (1374089448,), (1374089450,), (1374089452,), (1374089453,), (1374089454,), (1374089455,), (1374089466,), (1374089472,), (1374089475,), (1374089477,), (1374089480,), (1374089482,), (1374089493,), (1374089496,), (1374089498,), (1374089499,), (1374089500,), (1374089502,), (1374089510,), (1374089514,), (1374089519,), (1374089526,), (1374089529,), (1374089531,), (1374089534,), (1374089536,), (1374089538,), (1374089539,), (1374089541,), (1374089543,), (1374089551,), (1374089552,), (1374089554,), (1374089561,), (1374089569,), (1374089574,), (1374089585,), (1374089586,), (1374089588,), (1374089590,), (1374089592,), (1374089593,), (1374089604,), (1374089606,), (1374089608,), (1374089610,), (1374089611,), (1374089613,), (1374089628,), (1374089665,), (1374089667,), (1374089668,), (1374089669,), (1374089670,), (1374089671,)) 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 (1374089500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25385668 , 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=25385661 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 (25385668) result : ((1374089568,), (1374089570,), (1374089571,), (1374089572,), (1374089573,), (1374089639,), (1374089666,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25385661) result : ((1374089372,), (1374089374,), (1374089385,), (1374089395,), (1374089402,), (1374089404,), (1374089420,), (1374089435,), (1374089448,), (1374089450,), (1374089452,), (1374089453,), (1374089454,), (1374089455,), (1374089466,), (1374089472,), (1374089475,), (1374089477,), (1374089480,), (1374089482,), (1374089493,), (1374089496,), (1374089498,), (1374089499,), (1374089500,), (1374089502,), (1374089510,), (1374089514,), (1374089519,), (1374089526,), (1374089529,), (1374089531,), (1374089534,), (1374089536,), (1374089538,), (1374089539,), (1374089541,), (1374089543,), (1374089551,), (1374089552,), (1374089554,), (1374089561,), (1374089569,), (1374089574,), (1374089585,), (1374089586,), (1374089588,), (1374089590,), (1374089592,), (1374089593,), (1374089604,), (1374089606,), (1374089608,), (1374089610,), (1374089611,), (1374089613,), (1374089628,), (1374089665,), (1374089667,), (1374089668,), (1374089669,), (1374089670,), (1374089671,)) 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 (1374089500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25385669 , 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=25385661 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 (25385669) result : ((1374089515,), (1374089555,), (1374089626,), (1374089627,), (1374089629,), (1374089630,), (1374089631,), (1374089632,), (1374089660,), (1374089661,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25385661) result : ((1374089372,), (1374089374,), (1374089385,), (1374089395,), (1374089402,), (1374089404,), (1374089420,), (1374089435,), (1374089448,), (1374089450,), (1374089452,), (1374089453,), (1374089454,), (1374089455,), (1374089466,), (1374089472,), (1374089475,), (1374089477,), (1374089480,), (1374089482,), (1374089493,), (1374089496,), (1374089498,), (1374089499,), (1374089500,), (1374089502,), (1374089510,), (1374089514,), (1374089519,), (1374089526,), (1374089529,), (1374089531,), (1374089534,), (1374089536,), (1374089538,), (1374089539,), (1374089541,), (1374089543,), (1374089551,), (1374089552,), (1374089554,), (1374089561,), (1374089569,), (1374089574,), (1374089585,), (1374089586,), (1374089588,), (1374089590,), (1374089592,), (1374089593,), (1374089604,), (1374089606,), (1374089608,), (1374089610,), (1374089611,), (1374089613,), (1374089628,), (1374089665,), (1374089667,), (1374089668,), (1374089669,), (1374089670,), (1374089671,)) 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 (1374089500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25385670 , 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=25385661 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 (25385670) result : ((1374089522,), (1374089523,), (1374089524,), (1374089525,), (1374089564,), (1374089565,), (1374089566,), (1374089636,), (1374089637,), (1374089663,), (1374089664,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25385661) result : ((1374089372,), (1374089374,), (1374089385,), (1374089395,), (1374089402,), (1374089404,), (1374089420,), (1374089435,), (1374089448,), (1374089450,), (1374089452,), (1374089453,), (1374089454,), (1374089455,), (1374089466,), (1374089472,), (1374089475,), (1374089477,), (1374089480,), (1374089482,), (1374089493,), (1374089496,), (1374089498,), (1374089499,), (1374089500,), (1374089502,), (1374089510,), (1374089514,), (1374089519,), (1374089526,), (1374089529,), (1374089531,), (1374089534,), (1374089536,), (1374089538,), (1374089539,), (1374089541,), (1374089543,), (1374089551,), (1374089552,), (1374089554,), (1374089561,), (1374089569,), (1374089574,), (1374089585,), (1374089586,), (1374089588,), (1374089590,), (1374089592,), (1374089593,), (1374089604,), (1374089606,), (1374089608,), (1374089610,), (1374089611,), (1374089613,), (1374089628,), (1374089665,), (1374089667,), (1374089668,), (1374089669,), (1374089670,), (1374089671,)) 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 (1374089500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25385671 , 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=25385661 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 (25385671) result : ((1374089517,), (1374089518,), (1374089557,), (1374089558,), (1374089559,), (1374089560,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25385661) result : ((1374089372,), (1374089374,), (1374089385,), (1374089395,), (1374089402,), (1374089404,), (1374089420,), (1374089435,), (1374089448,), (1374089450,), (1374089452,), (1374089453,), (1374089454,), (1374089455,), (1374089466,), (1374089472,), (1374089475,), (1374089477,), (1374089480,), (1374089482,), (1374089493,), (1374089496,), (1374089498,), (1374089499,), (1374089500,), (1374089502,), (1374089510,), (1374089514,), (1374089519,), (1374089526,), (1374089529,), (1374089531,), (1374089534,), (1374089536,), (1374089538,), (1374089539,), (1374089541,), (1374089543,), (1374089551,), (1374089552,), (1374089554,), (1374089561,), (1374089569,), (1374089574,), (1374089585,), (1374089586,), (1374089588,), (1374089590,), (1374089592,), (1374089593,), (1374089604,), (1374089606,), (1374089608,), (1374089610,), (1374089611,), (1374089613,), (1374089628,), (1374089665,), (1374089667,), (1374089668,), (1374089669,), (1374089670,), (1374089671,)) 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 (1374089500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25385672 , 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=25385661 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 (25385672) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25385661) result : ((1374089372,), (1374089374,), (1374089385,), (1374089395,), (1374089402,), (1374089404,), (1374089420,), (1374089435,), (1374089448,), (1374089450,), (1374089452,), (1374089453,), (1374089454,), (1374089455,), (1374089466,), (1374089472,), (1374089475,), (1374089477,), (1374089480,), (1374089482,), (1374089493,), (1374089496,), (1374089498,), (1374089499,), (1374089500,), (1374089502,), (1374089510,), (1374089514,), (1374089519,), (1374089526,), (1374089529,), (1374089531,), (1374089534,), (1374089536,), (1374089538,), (1374089539,), (1374089541,), (1374089543,), (1374089551,), (1374089552,), (1374089554,), (1374089561,), (1374089569,), (1374089574,), (1374089585,), (1374089586,), (1374089588,), (1374089590,), (1374089592,), (1374089593,), (1374089604,), (1374089606,), (1374089608,), (1374089610,), (1374089611,), (1374089613,), (1374089628,), (1374089665,), (1374089667,), (1374089668,), (1374089669,), (1374089670,), (1374089671,)) 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 (1374089500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25385673 , 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=25385661 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 (25385673) result : ((1374089527,), (1374089640,), (1374089641,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25385661) result : ((1374089372,), (1374089374,), (1374089385,), (1374089395,), (1374089402,), (1374089404,), (1374089420,), (1374089435,), (1374089448,), (1374089450,), (1374089452,), (1374089453,), (1374089454,), (1374089455,), (1374089466,), (1374089472,), (1374089475,), (1374089477,), (1374089480,), (1374089482,), (1374089493,), (1374089496,), (1374089498,), (1374089499,), (1374089500,), (1374089502,), (1374089510,), (1374089514,), (1374089519,), (1374089526,), (1374089529,), (1374089531,), (1374089534,), (1374089536,), (1374089538,), (1374089539,), (1374089541,), (1374089543,), (1374089551,), (1374089552,), (1374089554,), (1374089561,), (1374089569,), (1374089574,), (1374089585,), (1374089586,), (1374089588,), (1374089590,), (1374089592,), (1374089593,), (1374089604,), (1374089606,), (1374089608,), (1374089610,), (1374089611,), (1374089613,), (1374089628,), (1374089665,), (1374089667,), (1374089668,), (1374089669,), (1374089670,), (1374089671,)) 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 (1374089500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25385674 , 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=25385661 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 (25385674) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25385661) result : ((1374089372,), (1374089374,), (1374089385,), (1374089395,), (1374089402,), (1374089404,), (1374089420,), (1374089435,), (1374089448,), (1374089450,), (1374089452,), (1374089453,), (1374089454,), (1374089455,), (1374089466,), (1374089472,), (1374089475,), (1374089477,), (1374089480,), (1374089482,), (1374089493,), (1374089496,), (1374089498,), (1374089499,), (1374089500,), (1374089502,), (1374089510,), (1374089514,), (1374089519,), (1374089526,), (1374089529,), (1374089531,), (1374089534,), (1374089536,), (1374089538,), (1374089539,), (1374089541,), (1374089543,), (1374089551,), (1374089552,), (1374089554,), (1374089561,), (1374089569,), (1374089574,), (1374089585,), (1374089586,), (1374089588,), (1374089590,), (1374089592,), (1374089593,), (1374089604,), (1374089606,), (1374089608,), (1374089610,), (1374089611,), (1374089613,), (1374089628,), (1374089665,), (1374089667,), (1374089668,), (1374089669,), (1374089670,), (1374089671,)) 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 (1374089500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25385675 , 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=25385661 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 (25385675) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25385661) result : ((1374089372,), (1374089374,), (1374089385,), (1374089395,), (1374089402,), (1374089404,), (1374089420,), (1374089435,), (1374089448,), (1374089450,), (1374089452,), (1374089453,), (1374089454,), (1374089455,), (1374089466,), (1374089472,), (1374089475,), (1374089477,), (1374089480,), (1374089482,), (1374089493,), (1374089496,), (1374089498,), (1374089499,), (1374089500,), (1374089502,), (1374089510,), (1374089514,), (1374089519,), (1374089526,), (1374089529,), (1374089531,), (1374089534,), (1374089536,), (1374089538,), (1374089539,), (1374089541,), (1374089543,), (1374089551,), (1374089552,), (1374089554,), (1374089561,), (1374089569,), (1374089574,), (1374089585,), (1374089586,), (1374089588,), (1374089590,), (1374089592,), (1374089593,), (1374089604,), (1374089606,), (1374089608,), (1374089610,), (1374089611,), (1374089613,), (1374089628,), (1374089665,), (1374089667,), (1374089668,), (1374089669,), (1374089670,), (1374089671,)) 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 (1374089500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25385676 , 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=25385661 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 (25385676) result : ((1374089521,), (1374089562,), (1374089563,), (1374089633,), (1374089634,), (1374089662,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25385661) result : ((1374089372,), (1374089374,), (1374089385,), (1374089395,), (1374089402,), (1374089404,), (1374089420,), (1374089435,), (1374089448,), (1374089450,), (1374089452,), (1374089453,), (1374089454,), (1374089455,), (1374089466,), (1374089472,), (1374089475,), (1374089477,), (1374089480,), (1374089482,), (1374089493,), (1374089496,), (1374089498,), (1374089499,), (1374089500,), (1374089502,), (1374089510,), (1374089514,), (1374089519,), (1374089526,), (1374089529,), (1374089531,), (1374089534,), (1374089536,), (1374089538,), (1374089539,), (1374089541,), (1374089543,), (1374089551,), (1374089552,), (1374089554,), (1374089561,), (1374089569,), (1374089574,), (1374089585,), (1374089586,), (1374089588,), (1374089590,), (1374089592,), (1374089593,), (1374089604,), (1374089606,), (1374089608,), (1374089610,), (1374089611,), (1374089613,), (1374089628,), (1374089665,), (1374089667,), (1374089668,), (1374089669,), (1374089670,), (1374089671,)) 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 (1374089500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25385677 , 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=25385661 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 (25385677) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25385661) result : ((1374089372,), (1374089374,), (1374089385,), (1374089395,), (1374089402,), (1374089404,), (1374089420,), (1374089435,), (1374089448,), (1374089450,), (1374089452,), (1374089453,), (1374089454,), (1374089455,), (1374089466,), (1374089472,), (1374089475,), (1374089477,), (1374089480,), (1374089482,), (1374089493,), (1374089496,), (1374089498,), (1374089499,), (1374089500,), (1374089502,), (1374089510,), (1374089514,), (1374089519,), (1374089526,), (1374089529,), (1374089531,), (1374089534,), (1374089536,), (1374089538,), (1374089539,), (1374089541,), (1374089543,), (1374089551,), (1374089552,), (1374089554,), (1374089561,), (1374089569,), (1374089574,), (1374089585,), (1374089586,), (1374089588,), (1374089590,), (1374089592,), (1374089593,), (1374089604,), (1374089606,), (1374089608,), (1374089610,), (1374089611,), (1374089613,), (1374089628,), (1374089665,), (1374089667,), (1374089668,), (1374089669,), (1374089670,), (1374089671,)) 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 (1374089500) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25385661 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_gris','plastique','Teint_Dans_La_Masse','papier','environnement','Carton_brun','autre_refus','mal_croppe','flou','kraft','metal')) 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`=25385661 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_gris','plastique','Teint_Dans_La_Masse','papier','environnement','Carton_brun','autre_refus','mal_croppe','flou','kraft','metal')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 25385661, 'sub_port_id': 25385678, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17122378, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 47), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 47), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 47)}, 'environnement': {'main_port_id': 25385661, 'sub_port_id': 25385679, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17122379, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 47), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 47), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 47)}, 'Carton_brun': {'main_port_id': 25385661, 'sub_port_id': 25385680, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17122380, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 47), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 47), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 47)}, 'Teint_Dans_La_Masse': {'main_port_id': 25385661, 'sub_port_id': 25385681, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17122381, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 47), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 47), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 47)}, 'cartonnette': {'main_port_id': 25385661, 'sub_port_id': 25385682, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17122382, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 47), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 47), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 47)}, 'autre_refus': {'main_port_id': 25385661, 'sub_port_id': 25385683, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17122383, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 47), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 47), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 47)}, 'flou': {'main_port_id': 25385661, 'sub_port_id': 25385684, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17122384, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 47), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 47), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 47)}, 'plastique': {'main_port_id': 25385661, 'sub_port_id': 25385685, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17122385, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 47), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 47), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 47)}, 'metal': {'main_port_id': 25385661, 'sub_port_id': 25385686, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17122386, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 47), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 47), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 47)}, 'papier': {'main_port_id': 25385661, 'sub_port_id': 25385687, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17122387, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 47), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 47), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 47)}, 'Carton_gris': {'main_port_id': 25385661, 'sub_port_id': 25385688, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17122388, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 47), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 47), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 47)}, 'mal_croppe': {'main_port_id': 25385661, 'sub_port_id': 25385689, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17122389, 'last_updated_at': datetime.datetime(2025, 7, 28, 5, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 28, 5, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 28, 5, 47)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25385678,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25385666 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25385679,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25385667 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25385680,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25385668 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25385681,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25385669 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25385682,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25385670 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25385683,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25385671 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25385684,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25385672 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25385685,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25385673 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25385686,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25385674 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25385687,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25385675 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25385688,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25385676 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25385689,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25385677 lien utilise dans velours : https://www.fotonower.com/velours/25385678,25385679,25385680,25385681,25385682,25385683,25385684,25385685,25385686,25385687,25385688,25385689?tags=kraft,environnement,Carton_brun,Teint_Dans_La_Masse,cartonnette,autre_refus,flou,plastique,metal,papier,Carton_gris,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25385661]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1374089671, 1374089670, 1374089669, 1374089668, 1374089667, 1374089665] map_info['map_portfolio_photo'] : {25385661: [1374089671, 1374089670, 1374089669, 1374089668, 1374089667, 1374089665, 1374089628, 1374089613, 1374089611, 1374089610, 1374089608, 1374089606, 1374089604, 1374089593, 1374089592, 1374089590, 1374089588, 1374089586, 1374089585, 1374089574, 1374089569, 1374089561, 1374089554, 1374089552, 1374089551, 1374089543, 1374089541, 1374089539, 1374089538, 1374089536, 1374089534, 1374089531, 1374089529, 1374089526, 1374089519, 1374089514, 1374089510, 1374089502, 1374089500, 1374089499, 1374089498, 1374089496, 1374089493, 1374089482, 1374089480, 1374089477, 1374089475, 1374089472, 1374089466, 1374089455, 1374089454, 1374089453, 1374089452, 1374089450, 1374089448, 1374089435, 1374089420, 1374089404, 1374089402, 1374089395, 1374089385, 1374089374, 1374089372]} final : False mtd_id 4302 list_pids : [1374089671, 1374089670, 1374089669, 1374089668, 1374089667, 1374089665] Looping around the photos to save general results len do output : 1 /25385661. 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, '3365908') ('4302', '25385661', '1374089671', None, None, None, None, None, '3365908') ('4302', None, None, None, None, None, None, None, '3365908') ('4302', '25385661', '1374089670', None, None, None, None, None, '3365908') ('4302', None, None, None, None, None, None, None, '3365908') ('4302', '25385661', '1374089669', None, None, None, None, None, '3365908') ('4302', None, None, None, None, None, None, None, '3365908') ('4302', '25385661', '1374089668', None, None, None, None, None, '3365908') ('4302', None, None, None, None, None, None, None, '3365908') ('4302', '25385661', '1374089667', None, None, None, None, None, '3365908') ('4302', None, None, None, None, None, None, None, '3365908') ('4302', '25385661', '1374089665', None, None, None, None, None, '3365908') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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, '25385661', "{'kraft': 25385666, 'environnement': 25385667, 'Carton_brun': 25385668, 'Teint_Dans_La_Masse': 25385669, 'cartonnette': 25385670, 'autre_refus': 25385671, 'flou': 25385672, 'plastique': 25385673, 'metal': 25385674, 'papier': 25385675, 'Carton_gris': 25385676, 'mal_croppe': 25385677}", None, None, None, None, '3365908'), ('4302', '25385661', '1374089671', None, None, None, None, None, '3365908'), ('4302', '25385661', '1374089670', None, None, None, None, None, '3365908'), ('4302', '25385661', '1374089669', None, None, None, None, None, '3365908'), ('4302', '25385661', '1374089668', None, None, None, None, None, '3365908'), ('4302', '25385661', '1374089667', None, None, None, None, None, '3365908'), ('4302', '25385661', '1374089665', None, None, None, None, None, '3365908')] time used for this insertion : 0.014851093292236328 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.41343092918395996 time spend to save output : 0.015069007873535156 total time spend for step 1 : 0.4284999370574951 step2:final Mon Jul 28 05:59:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25385661) 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 25385661 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1374089404,1374089402,1374089395,1374089385,1374089374,1374089372,1374089420,1374089435,1374089455,1374089454,1374089453,1374089452,1374089450,1374089448,1374089482,1374089480,1374089477,1374089475,1374089472,1374089466,1374089502,1374089500,1374089499,1374089498,1374089496,1374089493,1374089531,1374089529,1374089526,1374089519,1374089514,1374089510,1374089543,1374089541,1374089539,1374089538,1374089536,1374089534,1374089574,1374089569,1374089561,1374089554,1374089552,1374089551,1374089593,1374089592,1374089590,1374089588,1374089586,1374089585,1374089613,1374089611,1374089610,1374089608,1374089606,1374089604,1374089628,1374089671,1374089670,1374089669,1374089668,1374089667,1374089665); 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([25385661]) Inside saveOutput : final : False verbose : True original output for save of step final : {1374089671: ('0.090633587082022',), 1374089670: ('0.090633587082022',), 1374089669: ('0.090633587082022',), 1374089668: ('0.090633587082022',), 1374089667: ('0.090633587082022',), 1374089665: ('0.090633587082022',)} new output for save of step final : {1374089671: ('0.090633587082022',), 1374089670: ('0.090633587082022',), 1374089669: ('0.090633587082022',), 1374089668: ('0.090633587082022',), 1374089667: ('0.090633587082022',), 1374089665: ('0.090633587082022',)} [1374089671, 1374089670, 1374089669, 1374089668, 1374089667, 1374089665] map_info['map_portfolio_photo'] : {25385661: [1374089671, 1374089670, 1374089669, 1374089668, 1374089667, 1374089665, 1374089628, 1374089613, 1374089611, 1374089610, 1374089608, 1374089606, 1374089604, 1374089593, 1374089592, 1374089590, 1374089588, 1374089586, 1374089585, 1374089574, 1374089569, 1374089561, 1374089554, 1374089552, 1374089551, 1374089543, 1374089541, 1374089539, 1374089538, 1374089536, 1374089534, 1374089531, 1374089529, 1374089526, 1374089519, 1374089514, 1374089510, 1374089502, 1374089500, 1374089499, 1374089498, 1374089496, 1374089493, 1374089482, 1374089480, 1374089477, 1374089475, 1374089472, 1374089466, 1374089455, 1374089454, 1374089453, 1374089452, 1374089450, 1374089448, 1374089435, 1374089420, 1374089404, 1374089402, 1374089395, 1374089385, 1374089374, 1374089372]} final : False mtd_id 4302 list_pids : [1374089671, 1374089670, 1374089669, 1374089668, 1374089667, 1374089665] Looping around the photos to save general results len do output : 6 /1374089671.Didn't retrieve data . /1374089670.Didn't retrieve data . /1374089669.Didn't retrieve data . /1374089668.Didn't retrieve data . /1374089667.Didn't retrieve data . /1374089665.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, '3365908') ('4302', '25385661', '1374089671', None, None, None, None, None, '3365908') ('4302', None, None, None, None, None, None, None, '3365908') ('4302', '25385661', '1374089670', None, None, None, None, None, '3365908') ('4302', None, None, None, None, None, None, None, '3365908') ('4302', '25385661', '1374089669', None, None, None, None, None, '3365908') ('4302', None, None, None, None, None, None, None, '3365908') ('4302', '25385661', '1374089668', None, None, None, None, None, '3365908') ('4302', None, None, None, None, None, None, None, '3365908') ('4302', '25385661', '1374089667', None, None, None, None, None, '3365908') ('4302', None, None, None, None, None, None, None, '3365908') ('4302', '25385661', '1374089665', None, None, None, None, None, '3365908') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '25385661', '1374089671', '0.090633587082022', None, None, None, None, '3365908'), ('4302', '25385661', '1374089670', '0.090633587082022', None, None, None, None, '3365908'), ('4302', '25385661', '1374089669', '0.090633587082022', None, None, None, None, '3365908'), ('4302', '25385661', '1374089668', '0.090633587082022', None, None, None, None, '3365908'), ('4302', '25385661', '1374089667', '0.090633587082022', None, None, None, None, '3365908'), ('4302', '25385661', '1374089665', '0.090633587082022', None, None, None, None, '3365908')] time used for this insertion : 0.013633012771606445 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0639798641204834 time spend to save output : 0.013979673385620117 total time spend for step 2 : 0.07795953750610352 step3:velours_tree Mon Jul 28 05:59:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {25385661: [{'kraft': 25385666, 'environnement': 25385667, 'Carton_brun': 25385668, 'Teint_Dans_La_Masse': 25385669, 'cartonnette': 25385670, 'autre_refus': 25385671, 'flou': 25385672, 'plastique': 25385673, 'metal': 25385674, 'papier': 25385675, 'Carton_gris': 25385676, 'mal_croppe': 25385677}]} input_args_next_step : {25385661: ()} output_args : {25385661: [{'kraft': 25385666, 'environnement': 25385667, 'Carton_brun': 25385668, 'Teint_Dans_La_Masse': 25385669, 'cartonnette': 25385670, 'autre_refus': 25385671, 'flou': 25385672, 'plastique': 25385673, 'metal': 25385674, 'papier': 25385675, 'Carton_gris': 25385676, 'mal_croppe': 25385677}]} args : 25385661 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 : ({'kraft': 25385666, 'environnement': 25385667, 'Carton_brun': 25385668, 'Teint_Dans_La_Masse': 25385669, 'cartonnette': 25385670, 'autre_refus': 25385671, 'flou': 25385672, 'plastique': 25385673, 'metal': 25385674, 'papier': 25385675, 'Carton_gris': 25385676, 'mal_croppe': 25385677},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25385661) 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([25385661]) 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.26622867584228516 time spend to save output : 4.3392181396484375e-05 total time spend for step 3 : 0.26627206802368164 step4:send_mail_cod Mon Jul 28 05:59:29 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1374089671: ('0.090633587082022',), 1374089670: ('0.090633587082022',), 1374089669: ('0.090633587082022',), 1374089668: ('0.090633587082022',), 1374089667: ('0.090633587082022',), 1374089665: ('0.090633587082022',)} input_args_next_step : {1374089671: ()} output_args : {1374089671: ('0.090633587082022',), 1374089670: ('0.090633587082022',), 1374089669: ('0.090633587082022',), 1374089668: ('0.090633587082022',), 1374089667: ('0.090633587082022',), 1374089665: ('0.090633587082022',)} args : 1374089671 depend.output_id : 0 input_args_next_step : {1374089671: ('0.090633587082022',), 1374089670: ()} output_args : {1374089671: ('0.090633587082022',), 1374089670: ('0.090633587082022',), 1374089669: ('0.090633587082022',), 1374089668: ('0.090633587082022',), 1374089667: ('0.090633587082022',), 1374089665: ('0.090633587082022',)} args : 1374089670 depend.output_id : 0 input_args_next_step : {1374089671: ('0.090633587082022',), 1374089670: ('0.090633587082022',), 1374089669: ()} output_args : {1374089671: ('0.090633587082022',), 1374089670: ('0.090633587082022',), 1374089669: ('0.090633587082022',), 1374089668: ('0.090633587082022',), 1374089667: ('0.090633587082022',), 1374089665: ('0.090633587082022',)} args : 1374089669 depend.output_id : 0 input_args_next_step : {1374089671: ('0.090633587082022',), 1374089670: ('0.090633587082022',), 1374089669: ('0.090633587082022',), 1374089668: ()} output_args : {1374089671: ('0.090633587082022',), 1374089670: ('0.090633587082022',), 1374089669: ('0.090633587082022',), 1374089668: ('0.090633587082022',), 1374089667: ('0.090633587082022',), 1374089665: ('0.090633587082022',)} args : 1374089668 depend.output_id : 0 input_args_next_step : {1374089671: ('0.090633587082022',), 1374089670: ('0.090633587082022',), 1374089669: ('0.090633587082022',), 1374089668: ('0.090633587082022',), 1374089667: ()} output_args : {1374089671: ('0.090633587082022',), 1374089670: ('0.090633587082022',), 1374089669: ('0.090633587082022',), 1374089668: ('0.090633587082022',), 1374089667: ('0.090633587082022',), 1374089665: ('0.090633587082022',)} args : 1374089667 depend.output_id : 0 input_args_next_step : {1374089671: ('0.090633587082022',), 1374089670: ('0.090633587082022',), 1374089669: ('0.090633587082022',), 1374089668: ('0.090633587082022',), 1374089667: ('0.090633587082022',), 1374089665: ()} output_args : {1374089671: ('0.090633587082022',), 1374089670: ('0.090633587082022',), 1374089669: ('0.090633587082022',), 1374089668: ('0.090633587082022',), 1374089667: ('0.090633587082022',), 1374089665: ('0.090633587082022',)} args : 1374089665 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 : {25385661: [{'kraft': 25385666, 'environnement': 25385667, 'Carton_brun': 25385668, 'Teint_Dans_La_Masse': 25385669, 'cartonnette': 25385670, 'autre_refus': 25385671, 'flou': 25385672, 'plastique': 25385673, 'metal': 25385674, 'papier': 25385675, 'Carton_gris': 25385676, 'mal_croppe': 25385677}]} input_args_next_step : {1374089671: ('0.090633587082022',), 1374089670: ('0.090633587082022',), 1374089669: ('0.090633587082022',), 1374089668: ('0.090633587082022',), 1374089667: ('0.090633587082022',), 1374089665: ('0.090633587082022',), 25385661: ()} output_args : {25385661: [{'kraft': 25385666, 'environnement': 25385667, 'Carton_brun': 25385668, 'Teint_Dans_La_Masse': 25385669, 'cartonnette': 25385670, 'autre_refus': 25385671, 'flou': 25385672, 'plastique': 25385673, 'metal': 25385674, 'papier': 25385675, 'Carton_gris': 25385676, 'mal_croppe': 25385677}]} args : 25385661 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 :7, first value : ('0.090633587082022',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25385661) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1374089671,1374089670,1374089669,1374089668,1374089667,1374089665) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1374089665 begin to download photo : 1374089668 begin to download photo : 1374089670 download finish for photo 1374089668 begin to download photo : 1374089669 download finish for photo 1374089665 begin to download photo : 1374089667 download finish for photo 1374089670 begin to download photo : 1374089671 download finish for photo 1374089667 download finish for photo 1374089669 download finish for photo 1374089671 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette253856661753675170/ length of list_filenames : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P25385661_28-07-2025_05_59_30.pdf 25385666 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25385666 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253856661753675170 25385670 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25385670 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374089522: '1753674684_4097870_1374089404_4c4cbaa4b5654f6b51b544d7742f3dde_rle_crop_3896018582_0.png', 1374089523: '1753674684_4097870_1374089402_7dc5338c4788264833ae8c0f6893aaec_rle_crop_3896018591_0.png', 1374089524: '1753674684_4097870_1374089395_d6a2a0f10511d4bcab31de135ec4cfeb_rle_crop_3896018605_0.png', 1374089525: '1753674684_4097870_1374089395_d6a2a0f10511d4bcab31de135ec4cfeb_rle_crop_3896018607_0.png', 1374089564: '1753674805_4100747_1374089452_50cdb8eaaeb24fa4e1afd5cb597ca1d6_rle_crop_3896018928_0.png', 1374089565: '1753674805_4100747_1374089450_b78a82861bf745dde07b305c6fc1cb56_rle_crop_3896018943_0.png', 1374089566: '1753674805_4100747_1374089448_d37cc608ff9ea5f21e5ae08f94a38bb3_rle_crop_3896018957_0.png', 1374089636: '1753674986_4105288_1374089569_537bdc83c1e154d293ea2b41cd2ef11c_rle_crop_3896019145_0.png', 1374089637: '1753674986_4105288_1374089552_d8addf457f1e68d04e6ae5573b7f4101_rle_crop_3896019174_0.png', 1374089663: '1753675045_4106531_1374089529_10388f265cb78ec19ee4685e340cd7fc_rle_crop_3896019326_0.png', 1374089664: '1753675045_4106531_1374089526_65282c780775acbea7cb571a6e3b2377_rle_crop_3896019335_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/676453b527fd3011a62c051f7d461ba0_12177444.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/a89e989bbb996b6f16a1890da235fef5_9566281.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/6f25251ec132937c33c1b241f0dfb1c1_9414746.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/45bbe1c87c68b38f7878ac81e0d31e86_43240098.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/0508c4e7dbdd8d9326685923df193c0a_75057351.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/7fc3eb4eaa7e0d80f3ef67f19ba206ea_44064285.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/8cbb3e8af2d90e52156d8e40c9614480_95495036.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/654a0c1fd1b3bf2b7266e05eafc79c11_36803009.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/03d47ff50c99dfc40edb65f691f7c5fb_45828292.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/13df5f2cc79d160e2373ac29ec428e71_14155825.png change filename to text .imagette253856701753675170/ imagette253856701753675170/1753674805_4100747_1374089448_d37cc608ff9ea5f21e5ae08f94a38bb3_rle_crop_3896018957_0.png.png imagette253856701753675170/1753674805_4100747_1374089452_50cdb8eaaeb24fa4e1afd5cb597ca1d6_rle_crop_3896018928_0.png.png imagette253856701753675170/1753675045_4106531_1374089529_10388f265cb78ec19ee4685e340cd7fc_rle_crop_3896019326_0.png.png imagette253856701753675170/1753674684_4097870_1374089395_d6a2a0f10511d4bcab31de135ec4cfeb_rle_crop_3896018607_0.png.png imagette253856701753675170/1753674805_4100747_1374089450_b78a82861bf745dde07b305c6fc1cb56_rle_crop_3896018943_0.png.png imagette253856701753675170/1753675045_4106531_1374089526_65282c780775acbea7cb571a6e3b2377_rle_crop_3896019335_0.png.png imagette253856701753675170/1753674684_4097870_1374089395_d6a2a0f10511d4bcab31de135ec4cfeb_rle_crop_3896018605_0.png.png imagette253856701753675170/1753674684_4097870_1374089402_7dc5338c4788264833ae8c0f6893aaec_rle_crop_3896018591_0.png.png imagette253856701753675170/1753674684_4097870_1374089404_4c4cbaa4b5654f6b51b544d7742f3dde_rle_crop_3896018582_0.png.png imagette253856701753675170/1753674986_4105288_1374089552_d8addf457f1e68d04e6ae5573b7f4101_rle_crop_3896019174_0.png.png imagette253856701753675170/1753674986_4105288_1374089569_537bdc83c1e154d293ea2b41cd2ef11c_rle_crop_3896019145_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/31f47fa63d6321aba26e4ec17fb65f0c_78760560.png imagette253856701753675170 25385671 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25385671 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374089517: '1753674684_4097870_1374089385_b58dec704b36eb21754db114f4be4139_rle_crop_3896018622_0.png', 1374089518: '1753674684_4097870_1374089372_a0cd8dc7c27b1da85e335e5f494f1a7a_rle_crop_3896018658_0.png', 1374089557: '1753674805_4100747_1374089455_677c787c8f19b46e82bd2ef7a4f72c54_rle_crop_3896018878_0.png', 1374089558: '1753674805_4100747_1374089454_3328a4021e58b98c4c0dc20e319bb6f5_rle_crop_3896018898_0.png', 1374089559: '1753674805_4100747_1374089453_ec747049439b5ad8d1ae26fac2711312_rle_crop_3896018912_0.png', 1374089560: '1753674805_4100747_1374089452_50cdb8eaaeb24fa4e1afd5cb597ca1d6_rle_crop_3896018932_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/9287dd615fbbee32f28d5ef691796e97_17134579.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/65f4cd91b16fc5bb5e361a664f431ad5_28244087.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/5197e40e3c0cf64f8b49def2510f2cbb_52828593.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/a1c079455efaf7d55dbdf4ebad65344d_2148461.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/e51ceff3322ec620f294f53449b8a41d_47566003.png change filename to text .imagette253856711753675171/ imagette253856711753675171/1753674805_4100747_1374089455_677c787c8f19b46e82bd2ef7a4f72c54_rle_crop_3896018878_0.png.png imagette253856711753675171/1753674684_4097870_1374089385_b58dec704b36eb21754db114f4be4139_rle_crop_3896018622_0.png.png imagette253856711753675171/1753674805_4100747_1374089454_3328a4021e58b98c4c0dc20e319bb6f5_rle_crop_3896018898_0.png.png imagette253856711753675171/1753674684_4097870_1374089372_a0cd8dc7c27b1da85e335e5f494f1a7a_rle_crop_3896018658_0.png.png imagette253856711753675171/1753674805_4100747_1374089453_ec747049439b5ad8d1ae26fac2711312_rle_crop_3896018912_0.png.png imagette253856711753675171/1753674805_4100747_1374089452_50cdb8eaaeb24fa4e1afd5cb597ca1d6_rle_crop_3896018932_0.png.png imagette253856721753675171/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/c337033c0e53b8064783e8795a4ceaf3_78753730.png imagette253856711753675171 25385672 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25385672 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253856721753675171 25385673 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25385673 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374089527: '1753674684_4097870_1374089404_4c4cbaa4b5654f6b51b544d7742f3dde_rle_crop_3896018581_0.png', 1374089640: '1753674986_4105288_1374089574_5e2787a512f2b40bd40981bf268cdc27_rle_crop_3896019129_0.png', 1374089641: '1753674986_4105288_1374089574_5e2787a512f2b40bd40981bf268cdc27_rle_crop_3896019126_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/040df8112afed25b65b895f0cae3250c_26690608.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/f4318deeb2b6c8aad7c3196666376f4b_39874663.png change filename to text .imagette253856731753675171/ imagette253856731753675171/1753674986_4105288_1374089574_5e2787a512f2b40bd40981bf268cdc27_rle_crop_3896019129_0.png.png imagette253856731753675171/1753674684_4097870_1374089404_4c4cbaa4b5654f6b51b544d7742f3dde_rle_crop_3896018581_0.png.png imagette253856731753675171/1753674986_4105288_1374089574_5e2787a512f2b40bd40981bf268cdc27_rle_crop_3896019126_0.png.png imagette253856741753675171/ imagette253856771753675171/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/a268d331f4af0de3054751e00af993ed_93417339.png imagette253856731753675171 25385674 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25385674 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253856741753675171 25385677 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25385677 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette253856771753675171 25385668 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25385668 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374089568: '1753674805_4100747_1374089455_677c787c8f19b46e82bd2ef7a4f72c54_rle_crop_3896018877_0.png', 1374089570: '1753674805_4100747_1374089454_3328a4021e58b98c4c0dc20e319bb6f5_rle_crop_3896018897_0.png', 1374089571: '1753674805_4100747_1374089453_ec747049439b5ad8d1ae26fac2711312_rle_crop_3896018914_0.png', 1374089572: '1753674805_4100747_1374089452_50cdb8eaaeb24fa4e1afd5cb597ca1d6_rle_crop_3896018931_0.png', 1374089573: '1753674805_4100747_1374089450_b78a82861bf745dde07b305c6fc1cb56_rle_crop_3896018947_0.png', 1374089639: '1753674986_4105288_1374089552_d8addf457f1e68d04e6ae5573b7f4101_rle_crop_3896019178_0.png', 1374089666: '1753675045_4106531_1374089531_0b8b734c81f09570e2c4aaf6952d0ab1_rle_crop_3896019319_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/fb1e0a4feffd5159b733b48e20b76cd9_62349308.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/71eada4a35276294574c8b607c745ca1_54319410.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/ad0ceb9d5e6ab02eeae12af7cd3b2c5f_94308604.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/449edf18b2c929cfe44ec39e295ee8e4_92397836.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/94e97d788bc0c1b59aa971f91ad42d19_43025936.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/9f640c75ca812ebcb3a0d56cad6938ad_37090993.png change filename to text .imagette253856681753675171/ imagette253856681753675171/1753674805_4100747_1374089450_b78a82861bf745dde07b305c6fc1cb56_rle_crop_3896018947_0.png.png imagette253856681753675171/1753674805_4100747_1374089454_3328a4021e58b98c4c0dc20e319bb6f5_rle_crop_3896018897_0.png.png imagette253856681753675171/1753674805_4100747_1374089452_50cdb8eaaeb24fa4e1afd5cb597ca1d6_rle_crop_3896018931_0.png.png imagette253856681753675171/1753674805_4100747_1374089455_677c787c8f19b46e82bd2ef7a4f72c54_rle_crop_3896018877_0.png.png imagette253856681753675171/1753674805_4100747_1374089453_ec747049439b5ad8d1ae26fac2711312_rle_crop_3896018914_0.png.png imagette253856681753675171/1753675045_4106531_1374089531_0b8b734c81f09570e2c4aaf6952d0ab1_rle_crop_3896019319_0.png.png imagette253856681753675171/1753674986_4105288_1374089552_d8addf457f1e68d04e6ae5573b7f4101_rle_crop_3896019178_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/14bd11531afa577eb12dea76e66c902b_52302736.png imagette253856681753675171 25385669 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25385669 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374089515: '1753674684_4097870_1374089372_a0cd8dc7c27b1da85e335e5f494f1a7a_rle_crop_3896018659_0.png', 1374089555: '1753674805_4100747_1374089452_50cdb8eaaeb24fa4e1afd5cb597ca1d6_rle_crop_3896018934_0.png', 1374089626: '1753674986_4105288_1374089561_4d32c67025ce5e9537f69875a85859f7_rle_crop_3896019159_0.png', 1374089627: '1753674986_4105288_1374089561_4d32c67025ce5e9537f69875a85859f7_rle_crop_3896019157_0.png', 1374089629: '1753674986_4105288_1374089554_99054554b7b2709acb61b3f6894e504e_rle_crop_3896019170_0.png', 1374089630: '1753674986_4105288_1374089554_99054554b7b2709acb61b3f6894e504e_rle_crop_3896019168_0.png', 1374089631: '1753674986_4105288_1374089552_d8addf457f1e68d04e6ae5573b7f4101_rle_crop_3896019180_0.png', 1374089632: '1753674986_4105288_1374089552_d8addf457f1e68d04e6ae5573b7f4101_rle_crop_3896019177_0.png', 1374089660: '1753675045_4106531_1374089531_0b8b734c81f09570e2c4aaf6952d0ab1_rle_crop_3896019321_0.png', 1374089661: '1753675045_4106531_1374089529_10388f265cb78ec19ee4685e340cd7fc_rle_crop_3896019329_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/5f67b0fd38166a3262ef5f703b814022_51867992.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/4d1af79262aef7acc976cb8f4a3c2cf5_48355589.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/7a80c800969c60d78c9d65e11bbf20c3_42842870.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/e848a947199d3b602a9da19f0615a219_11989730.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/16187ba178eb7d56200ce6f7de290424_54767852.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/9892ea2175cc283cb6bbd380dc485f37_81081285.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/fe86f21d85e323ec329d3e47eeb5df06_58790555.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/1c5c46bdf91b163ccc9605f7df1b1400_83159726.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/2d895d83d8eb3cc7b1db4ef39ca4c262_7524464.png change filename to text .imagette253856691753675172/ imagette253856691753675172/1753675045_4106531_1374089531_0b8b734c81f09570e2c4aaf6952d0ab1_rle_crop_3896019321_0.png.png imagette253856691753675172/1753674986_4105288_1374089561_4d32c67025ce5e9537f69875a85859f7_rle_crop_3896019157_0.png.png imagette253856691753675172/1753674986_4105288_1374089561_4d32c67025ce5e9537f69875a85859f7_rle_crop_3896019159_0.png.png imagette253856691753675172/1753674986_4105288_1374089552_d8addf457f1e68d04e6ae5573b7f4101_rle_crop_3896019177_0.png.png imagette253856691753675172/1753674986_4105288_1374089552_d8addf457f1e68d04e6ae5573b7f4101_rle_crop_3896019180_0.png.png imagette253856691753675172/1753675045_4106531_1374089529_10388f265cb78ec19ee4685e340cd7fc_rle_crop_3896019329_0.png.png imagette253856691753675172/1753674986_4105288_1374089554_99054554b7b2709acb61b3f6894e504e_rle_crop_3896019168_0.png.png imagette253856691753675172/1753674805_4100747_1374089452_50cdb8eaaeb24fa4e1afd5cb597ca1d6_rle_crop_3896018934_0.png.png imagette253856691753675172/1753674986_4105288_1374089554_99054554b7b2709acb61b3f6894e504e_rle_crop_3896019170_0.png.png imagette253856691753675172/1753674684_4097870_1374089372_a0cd8dc7c27b1da85e335e5f494f1a7a_rle_crop_3896018659_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/104c005710913fc421a627894ea738e7_73866806.png imagette253856691753675172 25385676 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25385676 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374089521: '1753674684_4097870_1374089385_b58dec704b36eb21754db114f4be4139_rle_crop_3896018618_0.png', 1374089562: '1753674805_4100747_1374089454_3328a4021e58b98c4c0dc20e319bb6f5_rle_crop_3896018891_0.png', 1374089563: '1753674805_4100747_1374089453_ec747049439b5ad8d1ae26fac2711312_rle_crop_3896018907_0.png', 1374089633: '1753674986_4105288_1374089574_5e2787a512f2b40bd40981bf268cdc27_rle_crop_3896019127_0.png', 1374089634: '1753674986_4105288_1374089554_99054554b7b2709acb61b3f6894e504e_rle_crop_3896019163_0.png', 1374089662: '1753675045_4106531_1374089531_0b8b734c81f09570e2c4aaf6952d0ab1_rle_crop_3896019311_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/94eba568ab3f0f420e30c0af0971ff9c_83398953.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/5d7d942ea6c8dc9c8fbb08043a04f62c_52991831.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/6ea5a90ce9ec8c5597bf32a30fd8fdbb_85138614.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/038d8fa9932125989e5a988e951ac1be_89699475.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/872fcb706ef62ff12c25e20b75c1c255_90916960.png change filename to text .imagette253856761753675172/ imagette253856761753675172/1753674805_4100747_1374089454_3328a4021e58b98c4c0dc20e319bb6f5_rle_crop_3896018891_0.png.png imagette253856761753675172/1753674684_4097870_1374089385_b58dec704b36eb21754db114f4be4139_rle_crop_3896018618_0.png.png imagette253856761753675172/1753674986_4105288_1374089574_5e2787a512f2b40bd40981bf268cdc27_rle_crop_3896019127_0.png.png imagette253856761753675172/1753674805_4100747_1374089453_ec747049439b5ad8d1ae26fac2711312_rle_crop_3896018907_0.png.png imagette253856761753675172/1753674986_4105288_1374089554_99054554b7b2709acb61b3f6894e504e_rle_crop_3896019163_0.png.png imagette253856761753675172/1753675045_4106531_1374089531_0b8b734c81f09570e2c4aaf6952d0ab1_rle_crop_3896019311_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/28/c8939cf25dcecc5d59637ea1d93e5ee0_57597662.png imagette253856761753675172 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25385661 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25385678,25385679,25385680,25385681,25385682,25385683,25385684,25385685,25385686,25385687,25385688,25385689?tags=kraft,environnement,Carton_brun,Teint_Dans_La_Masse,cartonnette,autre_refus,flou,plastique,metal,papier,Carton_gris,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1374089671] : ('0.090633587082022',) no score found for photo 1374089671 We are sending mail with results at report@fotonower.com args[1374089670] : ('0.090633587082022',) no score found for photo 1374089670 We are sending mail with results at report@fotonower.com args[1374089669] : ('0.090633587082022',) no score found for photo 1374089669 We are sending mail with results at report@fotonower.com args[1374089668] : ('0.090633587082022',) no score found for photo 1374089668 We are sending mail with results at report@fotonower.com args[1374089667] : ('0.090633587082022',) no score found for photo 1374089667 We are sending mail with results at report@fotonower.com args[1374089665] : ('0.090633587082022',) no score found for photo 1374089665 We are sending mail with results at report@fotonower.com refus_total : 0.090633587082022 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25385661 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_P25385661_28-07-2025_05_59_30.pdf results_Auto_P25385661_28-07-2025_05_59_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25385661_28-07-2025_05_59_30.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','25385661','results_Auto_P25385661_28-07-2025_05_59_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25385661_28-07-2025_05_59_30.pdf','pdf','','0.25','0.090633587082022') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25385661]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1374089671, 1374089670, 1374089669, 1374089668, 1374089667, 1374089665] map_info['map_portfolio_photo'] : {25385661: [1374089671, 1374089670, 1374089669, 1374089668, 1374089667, 1374089665, 1374089628, 1374089613, 1374089611, 1374089610, 1374089608, 1374089606, 1374089604, 1374089593, 1374089592, 1374089590, 1374089588, 1374089586, 1374089585, 1374089574, 1374089569, 1374089561, 1374089554, 1374089552, 1374089551, 1374089543, 1374089541, 1374089539, 1374089538, 1374089536, 1374089534, 1374089531, 1374089529, 1374089526, 1374089519, 1374089514, 1374089510, 1374089502, 1374089500, 1374089499, 1374089498, 1374089496, 1374089493, 1374089482, 1374089480, 1374089477, 1374089475, 1374089472, 1374089466, 1374089455, 1374089454, 1374089453, 1374089452, 1374089450, 1374089448, 1374089435, 1374089420, 1374089404, 1374089402, 1374089395, 1374089385, 1374089374, 1374089372]} final : False mtd_id 4302 list_pids : [1374089671, 1374089670, 1374089669, 1374089668, 1374089667, 1374089665] 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, '3365908') ('4302', '25385661', '1374089671', None, None, None, None, None, '3365908') ('4302', None, None, None, None, None, None, None, '3365908') ('4302', '25385661', '1374089670', None, None, None, None, None, '3365908') ('4302', None, None, None, None, None, None, None, '3365908') ('4302', '25385661', '1374089669', None, None, None, None, None, '3365908') ('4302', None, None, None, None, None, None, None, '3365908') ('4302', '25385661', '1374089668', None, None, None, None, None, '3365908') ('4302', None, None, None, None, None, None, None, '3365908') ('4302', '25385661', '1374089667', None, None, None, None, None, '3365908') ('4302', None, None, None, None, None, None, None, '3365908') ('4302', '25385661', '1374089665', None, None, None, None, None, '3365908') 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', '25385661', '1374089671', None, None, None, None, None, '3365908'), ('4302', '25385661', '1374089670', None, None, None, None, None, '3365908'), ('4302', '25385661', '1374089669', None, None, None, None, None, '3365908'), ('4302', '25385661', '1374089668', None, None, None, None, None, '3365908'), ('4302', '25385661', '1374089667', None, None, None, None, None, '3365908'), ('4302', '25385661', '1374089665', None, None, None, None, None, '3365908')] time used for this insertion : 0.013810157775878906 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.603585958480835 time spend to save output : 0.014003515243530273 total time spend for step 4 : 4.617589473724365 step5:split_time_score Mon Jul 28 05:59:34 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['25385661'] 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 : [('25385661',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25385661) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1374089665: {'path': 'temp/1753675169_2794910_1374089665_518e03a82744f047a47f82de66e5b281.jpg', 'extension': 'jpg'}, 1374089667: {'path': 'temp/1753675169_2794910_1374089667_8421c48c0b563deacc7e82b2490c6a5c.jpg', 'extension': 'jpg'}, 1374089668: {'path': 'temp/1753675169_2794910_1374089668_05fcbce1edb8a51ce9b7b3d0827f1c1f.jpg', 'extension': 'jpg'}, 1374089669: {'path': 'temp/1753675169_2794910_1374089669_74f157d63cd4b3b87b5d7559f97d6791.jpg', 'extension': 'jpg'}, 1374089670: {'path': 'temp/1753675169_2794910_1374089670_eba7c8cd8ca3387d480fffdf765aee6e.jpg', 'extension': 'jpg'}, 1374089671: {'path': 'temp/1753675169_2794910_1374089671_0ba55ca4789725364bfb3ca4028539b5.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 = 25385661; (('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([25385661]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1374089671, 1374089670, 1374089669, 1374089668, 1374089667, 1374089665] map_info['map_portfolio_photo'] : {25385661: [1374089671, 1374089670, 1374089669, 1374089668, 1374089667, 1374089665, 1374089628, 1374089613, 1374089611, 1374089610, 1374089608, 1374089606, 1374089604, 1374089593, 1374089592, 1374089590, 1374089588, 1374089586, 1374089585, 1374089574, 1374089569, 1374089561, 1374089554, 1374089552, 1374089551, 1374089543, 1374089541, 1374089539, 1374089538, 1374089536, 1374089534, 1374089531, 1374089529, 1374089526, 1374089519, 1374089514, 1374089510, 1374089502, 1374089500, 1374089499, 1374089498, 1374089496, 1374089493, 1374089482, 1374089480, 1374089477, 1374089475, 1374089472, 1374089466, 1374089455, 1374089454, 1374089453, 1374089452, 1374089450, 1374089448, 1374089435, 1374089420, 1374089404, 1374089402, 1374089395, 1374089385, 1374089374, 1374089372]} final : True mtd_id 4302 list_pids : [1374089671, 1374089670, 1374089669, 1374089668, 1374089667, 1374089665] 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 : 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', '25385661', '1374089671', '0', '0', '-1.0', '501120777', '1.0', '3365908'), ('4302', '25385661', '1374089670', '0', '0', '-1.0', '501120777', '1.0', '3365908'), ('4302', '25385661', '1374089669', '0', '0', '-1.0', '501120777', '1.0', '3365908'), ('4302', '25385661', '1374089668', '0', '0', '-1.0', '501120777', '1.0', '3365908'), ('4302', '25385661', '1374089667', '0', '0', '-1.0', '501120777', '1.0', '3365908'), ('4302', '25385661', '1374089665', '0', '0', '-1.0', '501120777', '1.0', '3365908')] time used for this insertion : 0.014005422592163086 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.02381110191345215 time spend to save output : 0.014145851135253906 total time spend for step 5 : 0.037956953048706055 UPDATE MTRPhoto.mtr_datou_current SET state=-11, hostname='marlene' WHERE id in (3365908) 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 (3365908) 1.84user 2.26system 0:09.42elapsed 43%CPU (0avgtext+0avgdata 163472maxresident)k 280inputs+13384outputs (3major+65034minor)pagefaults 0swaps