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 : 668103 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 (2718605) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2718605) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22001272 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2718605'] with mtr_portfolio_ids : ['22001272'] and first list_photo_ids : [] new path : /proc/668103/ Name: python3 Umask: 0002 State: R (running) Tgid: 668103 Ngid: 0 Pid: 668103 PPid: 668102 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 668103 NSpid: 668103 NSpgid: 665756 NSsid: 665756 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97016 kB VmRSS: 97016 kB RssAnon: 59760 kB RssFile: 37256 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 51 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '668103', 'Ngid': '0', 'Pid': '668103', 'PPid': '668102', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '668103', 'NSpid': '668103', 'NSpgid': '665756', 'NSsid': '665756', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97016 kB', 'VmRSS': '97016 kB', 'RssAnon': '59760 kB', 'RssFile': '37256 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '51', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '668103', '1106932', '0', '1106932', '865680', '97016', b'', 'marlene', '2718605') 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 (22001272) 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 (2718605 ) ) 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 (22001272) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349703334, 'portfolio_id': 22001272}, {'photo_id': 1349703272, 'portfolio_id': 22001272}, {'photo_id': 1349703267, 'portfolio_id': 22001272}, {'photo_id': 1349703264, 'portfolio_id': 22001272}, {'photo_id': 1349703260, 'portfolio_id': 22001272}, {'photo_id': 1349703259, 'portfolio_id': 22001272}, {'photo_id': 1349703218, 'portfolio_id': 22001272}, {'photo_id': 1349703215, 'portfolio_id': 22001272}, {'photo_id': 1349703199, 'portfolio_id': 22001272}, {'photo_id': 1349703198, 'portfolio_id': 22001272}, {'photo_id': 1349703172, 'portfolio_id': 22001272}, {'photo_id': 1349702801, 'portfolio_id': 22001272}, {'photo_id': 1349702718, 'portfolio_id': 22001272}, {'photo_id': 1349702699, 'portfolio_id': 22001272}, {'photo_id': 1349702684, 'portfolio_id': 22001272}, {'photo_id': 1349702679, 'portfolio_id': 22001272}, {'photo_id': 1349702675, 'portfolio_id': 22001272}, {'photo_id': 1349702621, 'portfolio_id': 22001272}, {'photo_id': 1349702563, 'portfolio_id': 22001272}, {'photo_id': 1349702562, 'portfolio_id': 22001272}, {'photo_id': 1349702558, 'portfolio_id': 22001272}, {'photo_id': 1349702409, 'portfolio_id': 22001272}, {'photo_id': 1349702402, 'portfolio_id': 22001272}, {'photo_id': 1349702380, 'portfolio_id': 22001272}, {'photo_id': 1349702379, 'portfolio_id': 22001272}, {'photo_id': 1349702368, 'portfolio_id': 22001272}, {'photo_id': 1349702365, 'portfolio_id': 22001272}, {'photo_id': 1349701968, 'portfolio_id': 22001272}, {'photo_id': 1349701966, 'portfolio_id': 22001272}, {'photo_id': 1349701963, 'portfolio_id': 22001272}, {'photo_id': 1349701862, 'portfolio_id': 22001272}, {'photo_id': 1349701858, 'portfolio_id': 22001272}, {'photo_id': 1349701726, 'portfolio_id': 22001272}, {'photo_id': 1349701725, 'portfolio_id': 22001272}, {'photo_id': 1349701722, 'portfolio_id': 22001272}, {'photo_id': 1349701702, 'portfolio_id': 22001272}, {'photo_id': 1349701700, 'portfolio_id': 22001272}, {'photo_id': 1349701697, 'portfolio_id': 22001272}, {'photo_id': 1349701695, 'portfolio_id': 22001272}, {'photo_id': 1349701633, 'portfolio_id': 22001272}, {'photo_id': 1349701630, 'portfolio_id': 22001272}, {'photo_id': 1349701628, 'portfolio_id': 22001272}, {'photo_id': 1349701620, 'portfolio_id': 22001272}, {'photo_id': 1349701612, 'portfolio_id': 22001272}, {'photo_id': 1349701609, 'portfolio_id': 22001272}, {'photo_id': 1349701434, 'portfolio_id': 22001272}, {'photo_id': 1349701422, 'portfolio_id': 22001272}, {'photo_id': 1349701414, 'portfolio_id': 22001272}, {'photo_id': 1349701407, 'portfolio_id': 22001272}, {'photo_id': 1349701314, 'portfolio_id': 22001272}, {'photo_id': 1349701281, 'portfolio_id': 22001272}, {'photo_id': 1349701263, 'portfolio_id': 22001272}, {'photo_id': 1349701260, 'portfolio_id': 22001272}, {'photo_id': 1349701178, 'portfolio_id': 22001272}, {'photo_id': 1349701170, 'portfolio_id': 22001272}, {'photo_id': 1349701141, 'portfolio_id': 22001272}, {'photo_id': 1349701134, 'portfolio_id': 22001272}, {'photo_id': 1349701129, 'portfolio_id': 22001272}, {'photo_id': 1349701126, 'portfolio_id': 22001272}, {'photo_id': 1349701106, 'portfolio_id': 22001272}, {'photo_id': 1349701105, 'portfolio_id': 22001272}, {'photo_id': 1349701100, 'portfolio_id': 22001272}, {'photo_id': 1349701093, 'portfolio_id': 22001272}] map_portfolio_id_photo_id: {22001272: [1349703334, 1349703272, 1349703267, 1349703264, 1349703260, 1349703259, 1349703218, 1349703215, 1349703199, 1349703198, 1349703172, 1349702801, 1349702718, 1349702699, 1349702684, 1349702679, 1349702675, 1349702621, 1349702563, 1349702562, 1349702558, 1349702409, 1349702402, 1349702380, 1349702379, 1349702368, 1349702365, 1349701968, 1349701966, 1349701963, 1349701862, 1349701858, 1349701726, 1349701725, 1349701722, 1349701702, 1349701700, 1349701697, 1349701695, 1349701633, 1349701630, 1349701628, 1349701620, 1349701612, 1349701609, 1349701434, 1349701422, 1349701414, 1349701407, 1349701314, 1349701281, 1349701263, 1349701260, 1349701178, 1349701170, 1349701141, 1349701134, 1349701129, 1349701126, 1349701106, 1349701105, 1349701100, 1349701093]} ##### 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.01638197898864746 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Thu Apr 3 02:32:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22001272) 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 : 22001272 get user id for portfolio 22001272 get sub ptf for main ptf 22001272, type 3726 and hashtags ['cartonnette', 'Teint_Dans_La_Masse', 'environnement', 'Carton_brun', 'Carton_gris', 'metal', 'plastique', 'kraft', 'mal_croppe', 'papier', 'flou', 'autre_refus'] 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`=22001272 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','environnement','Carton_brun','Carton_gris','metal','plastique','kraft','mal_croppe','papier','flou','autre_refus')) 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`=22001272 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','environnement','Carton_brun','Carton_gris','metal','plastique','kraft','mal_croppe','papier','flou','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22001272, 'sub_port_id': 22001276, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14497452, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 19, 30)}, 'cartonnette': {'main_port_id': 22001272, 'sub_port_id': 22001277, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14497453, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 19, 30)}, 'environnement': {'main_port_id': 22001272, 'sub_port_id': 22001278, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14497454, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 19, 30)}, 'plastique': {'main_port_id': 22001272, 'sub_port_id': 22001279, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14497455, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 19, 30)}, 'Carton_gris': {'main_port_id': 22001272, 'sub_port_id': 22001280, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14497456, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 19, 30)}, 'Carton_brun': {'main_port_id': 22001272, 'sub_port_id': 22001281, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14497457, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 19, 30)}, 'kraft': {'main_port_id': 22001272, 'sub_port_id': 22001282, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14497458, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 19, 30)}, 'mal_croppe': {'main_port_id': 22001272, 'sub_port_id': 22001283, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14497459, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 19, 30)}, 'autre_refus': {'main_port_id': 22001272, 'sub_port_id': 22001284, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14497460, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 19, 30)}, 'papier': {'main_port_id': 22001272, 'sub_port_id': 22001285, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14497461, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 19, 30)}, 'flou': {'main_port_id': 22001272, 'sub_port_id': 22001286, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14497462, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 19, 30)}, 'metal': {'main_port_id': 22001272, 'sub_port_id': 22001287, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14497463, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 19, 30)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22001276 , 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=22001272 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 (22001276) result : ((1349701610,), (1349701615,), (1349701710,), (1349701908,), (1349701953,), (1349701977,), (1349701978,), (1349702447,), (1349702448,), (1349702466,), (1349702553,), (1349702554,), (1349702555,), (1349702556,), (1349703348,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22001272) result : ((1349701093,), (1349701100,), (1349701105,), (1349701106,), (1349701126,), (1349701129,), (1349701134,), (1349701141,), (1349701170,), (1349701178,), (1349701260,), (1349701263,), (1349701281,), (1349701314,), (1349701407,), (1349701414,), (1349701422,), (1349701434,), (1349701609,), (1349701612,), (1349701620,), (1349701628,), (1349701630,), (1349701633,), (1349701695,), (1349701697,), (1349701700,), (1349701702,), (1349701722,), (1349701725,), (1349701726,), (1349701858,), (1349701862,), (1349701963,), (1349701966,), (1349701968,), (1349702365,), (1349702368,), (1349702379,), (1349702380,), (1349702402,), (1349702409,), (1349702558,), (1349702562,), (1349702563,), (1349702621,), (1349702675,), (1349702679,), (1349702684,), (1349702699,), (1349702718,), (1349702801,), (1349703172,), (1349703198,), (1349703199,), (1349703215,), (1349703218,), (1349703259,), (1349703260,), (1349703264,), (1349703267,), (1349703272,), (1349703334,)) 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 (1349701700,1349701100) 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 22001277 , 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=22001272 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 (22001277) result : ((1349701603,), (1349701616,), (1349701910,), (1349701911,), (1349701982,), (1349702473,), (1349702476,), (1349702557,), (1349702658,), (1349702669,), (1349703247,), (1349703357,), (1349703358,), (1349703375,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22001272) result : ((1349701093,), (1349701100,), (1349701105,), (1349701106,), (1349701126,), (1349701129,), (1349701134,), (1349701141,), (1349701170,), (1349701178,), (1349701260,), (1349701263,), (1349701281,), (1349701314,), (1349701407,), (1349701414,), (1349701422,), (1349701434,), (1349701609,), (1349701612,), (1349701620,), (1349701628,), (1349701630,), (1349701633,), (1349701695,), (1349701697,), (1349701700,), (1349701702,), (1349701722,), (1349701725,), (1349701726,), (1349701858,), (1349701862,), (1349701963,), (1349701966,), (1349701968,), (1349702365,), (1349702368,), (1349702379,), (1349702380,), (1349702402,), (1349702409,), (1349702558,), (1349702562,), (1349702563,), (1349702621,), (1349702675,), (1349702679,), (1349702684,), (1349702699,), (1349702718,), (1349702801,), (1349703172,), (1349703198,), (1349703199,), (1349703215,), (1349703218,), (1349703259,), (1349703260,), (1349703264,), (1349703267,), (1349703272,), (1349703334,)) 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 (1349701700,1349701100) 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 22001278 , 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=22001272 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 (22001278) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22001272) result : ((1349701093,), (1349701100,), (1349701105,), (1349701106,), (1349701126,), (1349701129,), (1349701134,), (1349701141,), (1349701170,), (1349701178,), (1349701260,), (1349701263,), (1349701281,), (1349701314,), (1349701407,), (1349701414,), (1349701422,), (1349701434,), (1349701609,), (1349701612,), (1349701620,), (1349701628,), (1349701630,), (1349701633,), (1349701695,), (1349701697,), (1349701700,), (1349701702,), (1349701722,), (1349701725,), (1349701726,), (1349701858,), (1349701862,), (1349701963,), (1349701966,), (1349701968,), (1349702365,), (1349702368,), (1349702379,), (1349702380,), (1349702402,), (1349702409,), (1349702558,), (1349702562,), (1349702563,), (1349702621,), (1349702675,), (1349702679,), (1349702684,), (1349702699,), (1349702718,), (1349702801,), (1349703172,), (1349703198,), (1349703199,), (1349703215,), (1349703218,), (1349703259,), (1349703260,), (1349703264,), (1349703267,), (1349703272,), (1349703334,)) 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 (1349701700,1349701100) 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 22001279 , 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=22001272 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 (22001279) result : ((1349701617,), (1349701618,), (1349701957,), (1349701958,), (1349701985,), (1349702662,), (1349702663,), (1349703369,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22001272) result : ((1349701093,), (1349701100,), (1349701105,), (1349701106,), (1349701126,), (1349701129,), (1349701134,), (1349701141,), (1349701170,), (1349701178,), (1349701260,), (1349701263,), (1349701281,), (1349701314,), (1349701407,), (1349701414,), (1349701422,), (1349701434,), (1349701609,), (1349701612,), (1349701620,), (1349701628,), (1349701630,), (1349701633,), (1349701695,), (1349701697,), (1349701700,), (1349701702,), (1349701722,), (1349701725,), (1349701726,), (1349701858,), (1349701862,), (1349701963,), (1349701966,), (1349701968,), (1349702365,), (1349702368,), (1349702379,), (1349702380,), (1349702402,), (1349702409,), (1349702558,), (1349702562,), (1349702563,), (1349702621,), (1349702675,), (1349702679,), (1349702684,), (1349702699,), (1349702718,), (1349702801,), (1349703172,), (1349703198,), (1349703199,), (1349703215,), (1349703218,), (1349703259,), (1349703260,), (1349703264,), (1349703267,), (1349703272,), (1349703334,)) 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 (1349701700,1349701100) 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 22001280 , 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=22001272 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 (22001280) result : ((1349701602,), (1349701613,), (1349701614,), (1349701711,), (1349701909,), (1349701956,), (1349701980,), (1349701981,), (1349702671,), (1349702672,), (1349703244,), (1349703352,), (1349703353,), (1349703354,), (1349703372,), (1349703373,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22001272) result : ((1349701093,), (1349701100,), (1349701105,), (1349701106,), (1349701126,), (1349701129,), (1349701134,), (1349701141,), (1349701170,), (1349701178,), (1349701260,), (1349701263,), (1349701281,), (1349701314,), (1349701407,), (1349701414,), (1349701422,), (1349701434,), (1349701609,), (1349701612,), (1349701620,), (1349701628,), (1349701630,), (1349701633,), (1349701695,), (1349701697,), (1349701700,), (1349701702,), (1349701722,), (1349701725,), (1349701726,), (1349701858,), (1349701862,), (1349701963,), (1349701966,), (1349701968,), (1349702365,), (1349702368,), (1349702379,), (1349702380,), (1349702402,), (1349702409,), (1349702558,), (1349702562,), (1349702563,), (1349702621,), (1349702675,), (1349702679,), (1349702684,), (1349702699,), (1349702718,), (1349702801,), (1349703172,), (1349703198,), (1349703199,), (1349703215,), (1349703218,), (1349703259,), (1349703260,), (1349703264,), (1349703267,), (1349703272,), (1349703334,)) 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 (1349701700,1349701100) 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 22001281 , 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=22001272 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 (22001281) result : ((1349701619,), (1349701621,), (1349701622,), (1349701623,), (1349701624,), (1349701625,), (1349701713,), (1349701714,), (1349701715,), (1349701983,), (1349701984,), (1349702559,), (1349702660,), (1349703248,), (1349703360,), (1349703361,), (1349703362,), (1349703363,), (1349703378,), (1349703379,), (1349703380,), (1349703385,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22001272) result : ((1349701093,), (1349701100,), (1349701105,), (1349701106,), (1349701126,), (1349701129,), (1349701134,), (1349701141,), (1349701170,), (1349701178,), (1349701260,), (1349701263,), (1349701281,), (1349701314,), (1349701407,), (1349701414,), (1349701422,), (1349701434,), (1349701609,), (1349701612,), (1349701620,), (1349701628,), (1349701630,), (1349701633,), (1349701695,), (1349701697,), (1349701700,), (1349701702,), (1349701722,), (1349701725,), (1349701726,), (1349701858,), (1349701862,), (1349701963,), (1349701966,), (1349701968,), (1349702365,), (1349702368,), (1349702379,), (1349702380,), (1349702402,), (1349702409,), (1349702558,), (1349702562,), (1349702563,), (1349702621,), (1349702675,), (1349702679,), (1349702684,), (1349702699,), (1349702718,), (1349702801,), (1349703172,), (1349703198,), (1349703199,), (1349703215,), (1349703218,), (1349703259,), (1349703260,), (1349703264,), (1349703267,), (1349703272,), (1349703334,)) 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 (1349701700,1349701100) 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 22001282 , 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=22001272 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 (22001282) result : ((1349701959,), (1349701986,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22001272) result : ((1349701093,), (1349701100,), (1349701105,), (1349701106,), (1349701126,), (1349701129,), (1349701134,), (1349701141,), (1349701170,), (1349701178,), (1349701260,), (1349701263,), (1349701281,), (1349701314,), (1349701407,), (1349701414,), (1349701422,), (1349701434,), (1349701609,), (1349701612,), (1349701620,), (1349701628,), (1349701630,), (1349701633,), (1349701695,), (1349701697,), (1349701700,), (1349701702,), (1349701722,), (1349701725,), (1349701726,), (1349701858,), (1349701862,), (1349701963,), (1349701966,), (1349701968,), (1349702365,), (1349702368,), (1349702379,), (1349702380,), (1349702402,), (1349702409,), (1349702558,), (1349702562,), (1349702563,), (1349702621,), (1349702675,), (1349702679,), (1349702684,), (1349702699,), (1349702718,), (1349702801,), (1349703172,), (1349703198,), (1349703199,), (1349703215,), (1349703218,), (1349703259,), (1349703260,), (1349703264,), (1349703267,), (1349703272,), (1349703334,)) 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 (1349701700,1349701100) 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 22001283 , 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=22001272 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 (22001283) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22001272) result : ((1349701093,), (1349701100,), (1349701105,), (1349701106,), (1349701126,), (1349701129,), (1349701134,), (1349701141,), (1349701170,), (1349701178,), (1349701260,), (1349701263,), (1349701281,), (1349701314,), (1349701407,), (1349701414,), (1349701422,), (1349701434,), (1349701609,), (1349701612,), (1349701620,), (1349701628,), (1349701630,), (1349701633,), (1349701695,), (1349701697,), (1349701700,), (1349701702,), (1349701722,), (1349701725,), (1349701726,), (1349701858,), (1349701862,), (1349701963,), (1349701966,), (1349701968,), (1349702365,), (1349702368,), (1349702379,), (1349702380,), (1349702402,), (1349702409,), (1349702558,), (1349702562,), (1349702563,), (1349702621,), (1349702675,), (1349702679,), (1349702684,), (1349702699,), (1349702718,), (1349702801,), (1349703172,), (1349703198,), (1349703199,), (1349703215,), (1349703218,), (1349703259,), (1349703260,), (1349703264,), (1349703267,), (1349703272,), (1349703334,)) 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 (1349701700,1349701100) 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 22001284 , 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=22001272 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 (22001284) result : ((1349701600,), (1349701955,), (1349703349,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22001272) result : ((1349701093,), (1349701100,), (1349701105,), (1349701106,), (1349701126,), (1349701129,), (1349701134,), (1349701141,), (1349701170,), (1349701178,), (1349701260,), (1349701263,), (1349701281,), (1349701314,), (1349701407,), (1349701414,), (1349701422,), (1349701434,), (1349701609,), (1349701612,), (1349701620,), (1349701628,), (1349701630,), (1349701633,), (1349701695,), (1349701697,), (1349701700,), (1349701702,), (1349701722,), (1349701725,), (1349701726,), (1349701858,), (1349701862,), (1349701963,), (1349701966,), (1349701968,), (1349702365,), (1349702368,), (1349702379,), (1349702380,), (1349702402,), (1349702409,), (1349702558,), (1349702562,), (1349702563,), (1349702621,), (1349702675,), (1349702679,), (1349702684,), (1349702699,), (1349702718,), (1349702801,), (1349703172,), (1349703198,), (1349703199,), (1349703215,), (1349703218,), (1349703259,), (1349703260,), (1349703264,), (1349703267,), (1349703272,), (1349703334,)) 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 (1349701700,1349701100) 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 22001285 , 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=22001272 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 (22001285) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22001272) result : ((1349701093,), (1349701100,), (1349701105,), (1349701106,), (1349701126,), (1349701129,), (1349701134,), (1349701141,), (1349701170,), (1349701178,), (1349701260,), (1349701263,), (1349701281,), (1349701314,), (1349701407,), (1349701414,), (1349701422,), (1349701434,), (1349701609,), (1349701612,), (1349701620,), (1349701628,), (1349701630,), (1349701633,), (1349701695,), (1349701697,), (1349701700,), (1349701702,), (1349701722,), (1349701725,), (1349701726,), (1349701858,), (1349701862,), (1349701963,), (1349701966,), (1349701968,), (1349702365,), (1349702368,), (1349702379,), (1349702380,), (1349702402,), (1349702409,), (1349702558,), (1349702562,), (1349702563,), (1349702621,), (1349702675,), (1349702679,), (1349702684,), (1349702699,), (1349702718,), (1349702801,), (1349703172,), (1349703198,), (1349703199,), (1349703215,), (1349703218,), (1349703259,), (1349703260,), (1349703264,), (1349703267,), (1349703272,), (1349703334,)) 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 (1349701700,1349701100) 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 22001286 , 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=22001272 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 (22001286) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22001272) result : ((1349701093,), (1349701100,), (1349701105,), (1349701106,), (1349701126,), (1349701129,), (1349701134,), (1349701141,), (1349701170,), (1349701178,), (1349701260,), (1349701263,), (1349701281,), (1349701314,), (1349701407,), (1349701414,), (1349701422,), (1349701434,), (1349701609,), (1349701612,), (1349701620,), (1349701628,), (1349701630,), (1349701633,), (1349701695,), (1349701697,), (1349701700,), (1349701702,), (1349701722,), (1349701725,), (1349701726,), (1349701858,), (1349701862,), (1349701963,), (1349701966,), (1349701968,), (1349702365,), (1349702368,), (1349702379,), (1349702380,), (1349702402,), (1349702409,), (1349702558,), (1349702562,), (1349702563,), (1349702621,), (1349702675,), (1349702679,), (1349702684,), (1349702699,), (1349702718,), (1349702801,), (1349703172,), (1349703198,), (1349703199,), (1349703215,), (1349703218,), (1349703259,), (1349703260,), (1349703264,), (1349703267,), (1349703272,), (1349703334,)) 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 (1349701700,1349701100) 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 22001287 , 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=22001272 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 (22001287) result : ((1349702664,), (1349703386,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22001272) result : ((1349701093,), (1349701100,), (1349701105,), (1349701106,), (1349701126,), (1349701129,), (1349701134,), (1349701141,), (1349701170,), (1349701178,), (1349701260,), (1349701263,), (1349701281,), (1349701314,), (1349701407,), (1349701414,), (1349701422,), (1349701434,), (1349701609,), (1349701612,), (1349701620,), (1349701628,), (1349701630,), (1349701633,), (1349701695,), (1349701697,), (1349701700,), (1349701702,), (1349701722,), (1349701725,), (1349701726,), (1349701858,), (1349701862,), (1349701963,), (1349701966,), (1349701968,), (1349702365,), (1349702368,), (1349702379,), (1349702380,), (1349702402,), (1349702409,), (1349702558,), (1349702562,), (1349702563,), (1349702621,), (1349702675,), (1349702679,), (1349702684,), (1349702699,), (1349702718,), (1349702801,), (1349703172,), (1349703198,), (1349703199,), (1349703215,), (1349703218,), (1349703259,), (1349703260,), (1349703264,), (1349703267,), (1349703272,), (1349703334,)) 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 (1349701700,1349701100) 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`=22001272 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','environnement','Carton_brun','Carton_gris','metal','plastique','kraft','mal_croppe','papier','flou','autre_refus')) 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`=22001272 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','environnement','Carton_brun','Carton_gris','metal','plastique','kraft','mal_croppe','papier','flou','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22001272, 'sub_port_id': 22001288, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14497464, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 19, 31)}, 'cartonnette': {'main_port_id': 22001272, 'sub_port_id': 22001289, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14497465, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 19, 31)}, 'environnement': {'main_port_id': 22001272, 'sub_port_id': 22001290, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14497466, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 19, 31)}, 'plastique': {'main_port_id': 22001272, 'sub_port_id': 22001291, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14497467, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 19, 31)}, 'Carton_gris': {'main_port_id': 22001272, 'sub_port_id': 22001292, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14497468, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 19, 31)}, 'Carton_brun': {'main_port_id': 22001272, 'sub_port_id': 22001293, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14497469, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 19, 31)}, 'kraft': {'main_port_id': 22001272, 'sub_port_id': 22001294, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14497470, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 19, 31)}, 'mal_croppe': {'main_port_id': 22001272, 'sub_port_id': 22001295, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14497471, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 19, 31)}, 'autre_refus': {'main_port_id': 22001272, 'sub_port_id': 22001296, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14497472, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 19, 31)}, 'papier': {'main_port_id': 22001272, 'sub_port_id': 22001297, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14497473, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 19, 31)}, 'flou': {'main_port_id': 22001272, 'sub_port_id': 22001298, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14497474, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 19, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 19, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 19, 31)}, 'metal': {'main_port_id': 22001272, 'sub_port_id': 22001299, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14497475, 'last_updated_at': datetime.datetime(2025, 4, 3, 2, 30, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 3, 2, 30, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 3, 2, 19, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22001288,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22001276 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22001289,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22001277 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22001290,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22001278 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22001291,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22001279 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22001292,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22001280 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22001293,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22001281 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22001294,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22001282 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22001295,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22001283 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22001296,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22001284 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22001297,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22001285 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22001298,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22001286 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22001299,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22001287 lien utilise dans velours : https://www.fotonower.com/velours/22001288,22001289,22001290,22001291,22001292,22001293,22001294,22001295,22001296,22001297,22001298,22001299?tags=Teint_Dans_La_Masse,cartonnette,environnement,plastique,Carton_gris,Carton_brun,kraft,mal_croppe,autre_refus,papier,flou,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22001272]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349703334, 1349703272, 1349703267, 1349703264, 1349703260, 1349703259] map_info['map_portfolio_photo'] : {22001272: [1349703334, 1349703272, 1349703267, 1349703264, 1349703260, 1349703259, 1349703218, 1349703215, 1349703199, 1349703198, 1349703172, 1349702801, 1349702718, 1349702699, 1349702684, 1349702679, 1349702675, 1349702621, 1349702563, 1349702562, 1349702558, 1349702409, 1349702402, 1349702380, 1349702379, 1349702368, 1349702365, 1349701968, 1349701966, 1349701963, 1349701862, 1349701858, 1349701726, 1349701725, 1349701722, 1349701702, 1349701700, 1349701697, 1349701695, 1349701633, 1349701630, 1349701628, 1349701620, 1349701612, 1349701609, 1349701434, 1349701422, 1349701414, 1349701407, 1349701314, 1349701281, 1349701263, 1349701260, 1349701178, 1349701170, 1349701141, 1349701134, 1349701129, 1349701126, 1349701106, 1349701105, 1349701100, 1349701093]} final : False mtd_id 4302 list_pids : [1349703334, 1349703272, 1349703267, 1349703264, 1349703260, 1349703259] Looping around the photos to save general results len do output : 1 /22001272. 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, '2718605') ('4302', '22001272', '1349703334', None, None, None, None, None, '2718605') ('4302', None, None, None, None, None, None, None, '2718605') ('4302', '22001272', '1349703272', None, None, None, None, None, '2718605') ('4302', None, None, None, None, None, None, None, '2718605') ('4302', '22001272', '1349703267', None, None, None, None, None, '2718605') ('4302', None, None, None, None, None, None, None, '2718605') ('4302', '22001272', '1349703264', None, None, None, None, None, '2718605') ('4302', None, None, None, None, None, None, None, '2718605') ('4302', '22001272', '1349703260', None, None, None, None, None, '2718605') ('4302', None, None, None, None, None, None, None, '2718605') ('4302', '22001272', '1349703259', None, None, None, None, None, '2718605') 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, '22001272', "{'Teint_Dans_La_Masse': 22001276, 'cartonnette': 22001277, 'environnement': 22001278, 'plastique': 22001279, 'Carton_gris': 22001280, 'Carton_brun': 22001281, 'kraft': 22001282, 'mal_croppe': 22001283, 'autre_refus': 22001284, 'papier': 22001285, 'flou': 22001286, 'metal': 22001287}", None, None, None, None, '2718605'), ('4302', '22001272', '1349703334', None, None, None, None, None, '2718605'), ('4302', '22001272', '1349703272', None, None, None, None, None, '2718605'), ('4302', '22001272', '1349703267', None, None, None, None, None, '2718605'), ('4302', '22001272', '1349703264', None, None, None, None, None, '2718605'), ('4302', '22001272', '1349703260', None, None, None, None, None, '2718605'), ('4302', '22001272', '1349703259', None, None, None, None, None, '2718605')] time used for this insertion : 0.019450902938842773 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5214102268218994 time spend to save output : 0.019742250442504883 total time spend for step 1 : 0.5411524772644043 step2:final Thu Apr 3 02:32:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22001272) 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 22001272 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349701106,1349701105,1349701100,1349701093,1349701178,1349701170,1349701141,1349701134,1349701129,1349701126,1349701314,1349701281,1349701263,1349701260,1349701434,1349701422,1349701414,1349701407,1349701633,1349701630,1349701628,1349701620,1349701612,1349701609,1349701702,1349701700,1349701697,1349701695,1349701726,1349701725,1349701722,1349701862,1349701858,1349701968,1349701966,1349702409,1349701963,1349702402,1349702380,1349702379,1349702368,1349702365,1349702563,1349702562,1349702558,1349702621,1349702801,1349702718,1349702699,1349702684,1349702679,1349702675,1349703218,1349703215,1349703199,1349703198,1349703172,1349703272,1349703267,1349703264,1349703260,1349703259,1349703334); 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([22001272]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349703334: ('0.06405369561910192',), 1349703272: ('0.06405369561910192',), 1349703267: ('0.06405369561910192',), 1349703264: ('0.06405369561910192',), 1349703260: ('0.06405369561910192',), 1349703259: ('0.06405369561910192',)} new output for save of step final : {1349703334: ('0.06405369561910192',), 1349703272: ('0.06405369561910192',), 1349703267: ('0.06405369561910192',), 1349703264: ('0.06405369561910192',), 1349703260: ('0.06405369561910192',), 1349703259: ('0.06405369561910192',)} [1349703334, 1349703272, 1349703267, 1349703264, 1349703260, 1349703259] map_info['map_portfolio_photo'] : {22001272: [1349703334, 1349703272, 1349703267, 1349703264, 1349703260, 1349703259, 1349703218, 1349703215, 1349703199, 1349703198, 1349703172, 1349702801, 1349702718, 1349702699, 1349702684, 1349702679, 1349702675, 1349702621, 1349702563, 1349702562, 1349702558, 1349702409, 1349702402, 1349702380, 1349702379, 1349702368, 1349702365, 1349701968, 1349701966, 1349701963, 1349701862, 1349701858, 1349701726, 1349701725, 1349701722, 1349701702, 1349701700, 1349701697, 1349701695, 1349701633, 1349701630, 1349701628, 1349701620, 1349701612, 1349701609, 1349701434, 1349701422, 1349701414, 1349701407, 1349701314, 1349701281, 1349701263, 1349701260, 1349701178, 1349701170, 1349701141, 1349701134, 1349701129, 1349701126, 1349701106, 1349701105, 1349701100, 1349701093]} final : False mtd_id 4302 list_pids : [1349703334, 1349703272, 1349703267, 1349703264, 1349703260, 1349703259] Looping around the photos to save general results len do output : 6 /1349703334.Didn't retrieve data . /1349703272.Didn't retrieve data . /1349703267.Didn't retrieve data . /1349703264.Didn't retrieve data . /1349703260.Didn't retrieve data . /1349703259.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, '2718605') ('4302', '22001272', '1349703334', None, None, None, None, None, '2718605') ('4302', None, None, None, None, None, None, None, '2718605') ('4302', '22001272', '1349703272', None, None, None, None, None, '2718605') ('4302', None, None, None, None, None, None, None, '2718605') ('4302', '22001272', '1349703267', None, None, None, None, None, '2718605') ('4302', None, None, None, None, None, None, None, '2718605') ('4302', '22001272', '1349703264', None, None, None, None, None, '2718605') ('4302', None, None, None, None, None, None, None, '2718605') ('4302', '22001272', '1349703260', None, None, None, None, None, '2718605') ('4302', None, None, None, None, None, None, None, '2718605') ('4302', '22001272', '1349703259', None, None, None, None, None, '2718605') 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', '22001272', '1349703334', '0.06405369561910192', None, None, None, None, '2718605'), ('4302', '22001272', '1349703272', '0.06405369561910192', None, None, None, None, '2718605'), ('4302', '22001272', '1349703267', '0.06405369561910192', None, None, None, None, '2718605'), ('4302', '22001272', '1349703264', '0.06405369561910192', None, None, None, None, '2718605'), ('4302', '22001272', '1349703260', '0.06405369561910192', None, None, None, None, '2718605'), ('4302', '22001272', '1349703259', '0.06405369561910192', None, None, None, None, '2718605')] time used for this insertion : 0.01334071159362793 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07730913162231445 time spend to save output : 0.013783693313598633 total time spend for step 2 : 0.09109282493591309 step3:velours_tree Thu Apr 3 02:32:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22001272: [{'Teint_Dans_La_Masse': 22001276, 'cartonnette': 22001277, 'environnement': 22001278, 'plastique': 22001279, 'Carton_gris': 22001280, 'Carton_brun': 22001281, 'kraft': 22001282, 'mal_croppe': 22001283, 'autre_refus': 22001284, 'papier': 22001285, 'flou': 22001286, 'metal': 22001287}]} input_args_next_step : {22001272: ()} output_args : {22001272: [{'Teint_Dans_La_Masse': 22001276, 'cartonnette': 22001277, 'environnement': 22001278, 'plastique': 22001279, 'Carton_gris': 22001280, 'Carton_brun': 22001281, 'kraft': 22001282, 'mal_croppe': 22001283, 'autre_refus': 22001284, 'papier': 22001285, 'flou': 22001286, 'metal': 22001287}]} args : 22001272 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 : ({'Teint_Dans_La_Masse': 22001276, 'cartonnette': 22001277, 'environnement': 22001278, 'plastique': 22001279, 'Carton_gris': 22001280, 'Carton_brun': 22001281, 'kraft': 22001282, 'mal_croppe': 22001283, 'autre_refus': 22001284, 'papier': 22001285, 'flou': 22001286, 'metal': 22001287},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22001272) 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([22001272]) 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.27616214752197266 time spend to save output : 3.4809112548828125e-05 total time spend for step 3 : 0.2761969566345215 step4:send_mail_cod Thu Apr 3 02:32:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1349703334: ('0.06405369561910192',), 1349703272: ('0.06405369561910192',), 1349703267: ('0.06405369561910192',), 1349703264: ('0.06405369561910192',), 1349703260: ('0.06405369561910192',), 1349703259: ('0.06405369561910192',)} input_args_next_step : {1349703334: ()} output_args : {1349703334: ('0.06405369561910192',), 1349703272: ('0.06405369561910192',), 1349703267: ('0.06405369561910192',), 1349703264: ('0.06405369561910192',), 1349703260: ('0.06405369561910192',), 1349703259: ('0.06405369561910192',)} args : 1349703334 depend.output_id : 0 input_args_next_step : {1349703334: ('0.06405369561910192',), 1349703272: ()} output_args : {1349703334: ('0.06405369561910192',), 1349703272: ('0.06405369561910192',), 1349703267: ('0.06405369561910192',), 1349703264: ('0.06405369561910192',), 1349703260: ('0.06405369561910192',), 1349703259: ('0.06405369561910192',)} args : 1349703272 depend.output_id : 0 input_args_next_step : {1349703334: ('0.06405369561910192',), 1349703272: ('0.06405369561910192',), 1349703267: ()} output_args : {1349703334: ('0.06405369561910192',), 1349703272: ('0.06405369561910192',), 1349703267: ('0.06405369561910192',), 1349703264: ('0.06405369561910192',), 1349703260: ('0.06405369561910192',), 1349703259: ('0.06405369561910192',)} args : 1349703267 depend.output_id : 0 input_args_next_step : {1349703334: ('0.06405369561910192',), 1349703272: ('0.06405369561910192',), 1349703267: ('0.06405369561910192',), 1349703264: ()} output_args : {1349703334: ('0.06405369561910192',), 1349703272: ('0.06405369561910192',), 1349703267: ('0.06405369561910192',), 1349703264: ('0.06405369561910192',), 1349703260: ('0.06405369561910192',), 1349703259: ('0.06405369561910192',)} args : 1349703264 depend.output_id : 0 input_args_next_step : {1349703334: ('0.06405369561910192',), 1349703272: ('0.06405369561910192',), 1349703267: ('0.06405369561910192',), 1349703264: ('0.06405369561910192',), 1349703260: ()} output_args : {1349703334: ('0.06405369561910192',), 1349703272: ('0.06405369561910192',), 1349703267: ('0.06405369561910192',), 1349703264: ('0.06405369561910192',), 1349703260: ('0.06405369561910192',), 1349703259: ('0.06405369561910192',)} args : 1349703260 depend.output_id : 0 input_args_next_step : {1349703334: ('0.06405369561910192',), 1349703272: ('0.06405369561910192',), 1349703267: ('0.06405369561910192',), 1349703264: ('0.06405369561910192',), 1349703260: ('0.06405369561910192',), 1349703259: ()} output_args : {1349703334: ('0.06405369561910192',), 1349703272: ('0.06405369561910192',), 1349703267: ('0.06405369561910192',), 1349703264: ('0.06405369561910192',), 1349703260: ('0.06405369561910192',), 1349703259: ('0.06405369561910192',)} args : 1349703259 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 : {22001272: [{'Teint_Dans_La_Masse': 22001276, 'cartonnette': 22001277, 'environnement': 22001278, 'plastique': 22001279, 'Carton_gris': 22001280, 'Carton_brun': 22001281, 'kraft': 22001282, 'mal_croppe': 22001283, 'autre_refus': 22001284, 'papier': 22001285, 'flou': 22001286, 'metal': 22001287}]} input_args_next_step : {1349703334: ('0.06405369561910192',), 1349703272: ('0.06405369561910192',), 1349703267: ('0.06405369561910192',), 1349703264: ('0.06405369561910192',), 1349703260: ('0.06405369561910192',), 1349703259: ('0.06405369561910192',), 22001272: ()} output_args : {22001272: [{'Teint_Dans_La_Masse': 22001276, 'cartonnette': 22001277, 'environnement': 22001278, 'plastique': 22001279, 'Carton_gris': 22001280, 'Carton_brun': 22001281, 'kraft': 22001282, 'mal_croppe': 22001283, 'autre_refus': 22001284, 'papier': 22001285, 'flou': 22001286, 'metal': 22001287}]} args : 22001272 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.06405369561910192',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22001272) 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 (1349703334,1349703272,1349703267,1349703264,1349703260,1349703259) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349703259 begin to download photo : 1349703264 begin to download photo : 1349703272 download finish for photo 1349703272 begin to download photo : 1349703334 download finish for photo 1349703259 begin to download photo : 1349703260 download finish for photo 1349703264 begin to download photo : 1349703267 download finish for photo 1349703334 download finish for photo 1349703267 download finish for photo 1349703260 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 6 ; length of list_pids : 6 ; length of list_args : 6 results_Auto_P22001272_03-04-2025_02_32_59.pdf 22001277 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=22001277 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349701603: '1743639566_1322664_1349701263_8f37c9632cbe99cb488d3dfac96cec8e_rle_crop_3745533645_0.png', 1349701616: '1743639572_4162133_1349701170_85869d34630f577e3ea362ca14c23b98_rle_crop_3745533690_0.png', 1349701910: '1743639793_1733587_1349701722_504fdcc19978144556c7f501c41e1379_rle_crop_3745536292_0.png', 1349701911: '1743639793_1733587_1349701722_504fdcc19978144556c7f501c41e1379_rle_crop_3745536291_0.png', 1349701982: '1743639830_1734033_1349701702_f1fa6cc65fe6d82f27829276d5c0868a_rle_crop_3745536837_0.png', 1349702473: '1743639927_4171931_1349701862_4e3c4ea339f32b32f8337d86378092e8_rle_crop_3745537703_0.png', 1349702476: '1743639927_4171931_1349701862_4e3c4ea339f32b32f8337d86378092e8_rle_crop_3745537701_0.png', 1349702557: '1743639933_1735411_1349701858_a185c02c6dd20208dce7ffe191a39062_rle_crop_3745537766_0.png', 1349702658: '1743640031_1736348_1349702558_eb9f458e3fa5d6e6ca4f3e2166ee9437_rle_crop_3745539119_0.png', 1349702669: '1743640052_1736606_1349702409_c6d6f537aed7dbbfbb9fe1ae22e50221_rle_crop_3745539265_0.png', 1349703247: '1743640153_1737451_1349702621_c83b5f497b0ebf8cffdd66db7a2fe6d5_rle_crop_3745540231_0.png', 1349703357: '1743640273_1738998_1349703215_aae5e0189604954db0e0f0b0747bd456_rle_crop_3745543054_0.png', 1349703358: '1743640273_1738998_1349703198_aee3c5afcb20ff5079f481e9c163a68b_rle_crop_3745543166_0.png', 1349703375: '1743640285_4179666_1349702718_95488df81c44a50485a0c63cbbfbdc0c_rle_crop_3745543151_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/30df8a048cf2da6c6111c4068691d8ff_5442514.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/c81d84c5214ddae465f2c2cf786a6f2e_63763072.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/8ec611fac872f3cf7f6a1ff9d31a1378_20814943.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/5fd1ccda6144f0156f8f09bf1e073e1b_65766670.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f3a585194ed6581a723e2023fb9eb4ff_40623268.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/db4972ee0b6ee3b092f6a098e561e31c_16510260.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ec635c1c531be995d67e549e09b393d9_30237330.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b67786a101f1b8940cf9e5d2a2c37768_53217568.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/5ff6d8ce184a36da355d242614b8ed9f_96105265.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/1117e43b1d85a6dc0e61f1203ae849f3_70059105.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/19ee1c7b29bc67fb04e3079e318a0a7a_13029142.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/cee47d58aaf14151089531dce87a5e58_6117342.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/d955d7d1d80cd24e6a316b71451da8b9_22267741.png change filename to text .imagette220012771743640379/ imagette220012771743640379/1743639927_4171931_1349701862_4e3c4ea339f32b32f8337d86378092e8_rle_crop_3745537703_0.png.png imagette220012771743640379/1743639572_4162133_1349701170_85869d34630f577e3ea362ca14c23b98_rle_crop_3745533690_0.png.png imagette220012771743640379/1743639830_1734033_1349701702_f1fa6cc65fe6d82f27829276d5c0868a_rle_crop_3745536837_0.png.png imagette220012771743640379/1743640052_1736606_1349702409_c6d6f537aed7dbbfbb9fe1ae22e50221_rle_crop_3745539265_0.png.png imagette220012771743640379/1743640285_4179666_1349702718_95488df81c44a50485a0c63cbbfbdc0c_rle_crop_3745543151_0.png.png imagette220012771743640379/1743639793_1733587_1349701722_504fdcc19978144556c7f501c41e1379_rle_crop_3745536292_0.png.png imagette220012771743640379/1743639566_1322664_1349701263_8f37c9632cbe99cb488d3dfac96cec8e_rle_crop_3745533645_0.png.png imagette220012771743640379/1743639793_1733587_1349701722_504fdcc19978144556c7f501c41e1379_rle_crop_3745536291_0.png.png imagette220012771743640379/1743639927_4171931_1349701862_4e3c4ea339f32b32f8337d86378092e8_rle_crop_3745537701_0.png.png imagette220012771743640379/1743640273_1738998_1349703215_aae5e0189604954db0e0f0b0747bd456_rle_crop_3745543054_0.png.png imagette220012771743640379/1743640031_1736348_1349702558_eb9f458e3fa5d6e6ca4f3e2166ee9437_rle_crop_3745539119_0.png.png imagette220012771743640379/1743640273_1738998_1349703198_aee3c5afcb20ff5079f481e9c163a68b_rle_crop_3745543166_0.png.png imagette220012771743640379/1743640153_1737451_1349702621_c83b5f497b0ebf8cffdd66db7a2fe6d5_rle_crop_3745540231_0.png.png imagette220012771743640379/1743639933_1735411_1349701858_a185c02c6dd20208dce7ffe191a39062_rle_crop_3745537766_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b31e9d220849e41835da3fd3aedfed51_93611258.png imagette220012771743640379 22001279 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=22001279 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349701617: '1743639573_1731759_1349701178_c5a09886db09a45bb73e9a8733ea4553_rle_crop_3745533781_0.png', 1349701618: '1743639573_1731759_1349701093_5d218819f34ac82a1d922db11f294cb0_rle_crop_3745533982_0.png', 1349701957: '1743639806_4169125_1349701700_db95ec71023cebc9321a48d1c6df169e_rle_crop_3745536447_0.png', 1349701958: '1743639806_4169125_1349701697_73c81acaaa0020f69b2bad263429a307_rle_crop_3745536457_0.png', 1349701985: '1743639830_1734033_1349701630_3e3d37ecaa6a5ab14d98532f28586403_rle_crop_3745536847_0.png', 1349702662: '1743640031_1736348_1349702562_fc5da9c006eed2a3ff1b1bb88ac7f658_rle_crop_3745539110_0.png', 1349702663: '1743640031_1736348_1349702558_eb9f458e3fa5d6e6ca4f3e2166ee9437_rle_crop_3745539130_0.png', 1349703369: '1743640273_1738998_1349703199_57ed16076eeea9d6ff89831d6ea4893d_rle_crop_3745543082_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a798d8e516ea819946868601f8dd8de4_11437398.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a53f2e666a28345585b0f64f0fc0de50_19937784.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/3def69738ee25662f3724ca5df20c772_58877822.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/5b0c77ce5fae8161365a989c9fda75d6_81916768.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f622764529913d6ad2bf5823cea103ce_37575902.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/0fc8a14caa0ed63f984edc42350df83e_91572656.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/04a8ee55c5a5d00ea94d2588681b1c23_55206006.png change filename to text .imagette220012791743640380/ imagette220012791743640380/1743639573_1731759_1349701093_5d218819f34ac82a1d922db11f294cb0_rle_crop_3745533982_0.png.png imagette220012791743640380/1743640031_1736348_1349702558_eb9f458e3fa5d6e6ca4f3e2166ee9437_rle_crop_3745539130_0.png.png imagette220012791743640380/1743640031_1736348_1349702562_fc5da9c006eed2a3ff1b1bb88ac7f658_rle_crop_3745539110_0.png.png imagette220012791743640380/1743639806_4169125_1349701697_73c81acaaa0020f69b2bad263429a307_rle_crop_3745536457_0.png.png imagette220012791743640380/1743639830_1734033_1349701630_3e3d37ecaa6a5ab14d98532f28586403_rle_crop_3745536847_0.png.png imagette220012791743640380/1743639806_4169125_1349701700_db95ec71023cebc9321a48d1c6df169e_rle_crop_3745536447_0.png.png imagette220012791743640380/1743640273_1738998_1349703199_57ed16076eeea9d6ff89831d6ea4893d_rle_crop_3745543082_0.png.png imagette220012791743640380/1743639573_1731759_1349701178_c5a09886db09a45bb73e9a8733ea4553_rle_crop_3745533781_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/7e92579d4bd3595c7e8aa57ec2356802_96679258.png imagette220012791743640380 22001282 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=22001282 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349701959: '1743639806_4169125_1349701697_73c81acaaa0020f69b2bad263429a307_rle_crop_3745536452_0.png', 1349701986: '1743639830_1734033_1349701702_f1fa6cc65fe6d82f27829276d5c0868a_rle_crop_3745536839_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/35d150723c43add9cfce6ec81d4d171d_24650496.png change filename to text .imagette220012821743640380/ imagette220012821743640380/1743639830_1734033_1349701702_f1fa6cc65fe6d82f27829276d5c0868a_rle_crop_3745536839_0.png.png imagette220012821743640380/1743639806_4169125_1349701697_73c81acaaa0020f69b2bad263429a307_rle_crop_3745536452_0.png.png imagette220012831743640380/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/cbdf725d4709e776a4ded055b5b2dab6_73602521.png imagette220012821743640380 22001283 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=22001283 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220012831743640380 22001284 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=22001284 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349701600: '1743639566_1322664_1349701263_8f37c9632cbe99cb488d3dfac96cec8e_rle_crop_3745533647_0.png', 1349701955: '1743639806_4169125_1349701695_5df815ed90b58dc6f3fcf116e8fc11bb_rle_crop_3745536484_0.png', 1349703349: '1743640273_1738998_1349703198_aee3c5afcb20ff5079f481e9c163a68b_rle_crop_3745543163_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/848b911dfdbded9c97139d9882a22bf4_68032687.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/335a3056460a12eaf78b2071b55e6cdb_55374121.png change filename to text .imagette220012841743640380/ imagette220012841743640380/1743640273_1738998_1349703198_aee3c5afcb20ff5079f481e9c163a68b_rle_crop_3745543163_0.png.png imagette220012841743640380/1743639566_1322664_1349701263_8f37c9632cbe99cb488d3dfac96cec8e_rle_crop_3745533647_0.png.png imagette220012841743640380/1743639806_4169125_1349701695_5df815ed90b58dc6f3fcf116e8fc11bb_rle_crop_3745536484_0.png.png imagette220012861743640381/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/da9e53f3451fd77c1f7ce0ea500146dc_15859296.png imagette220012841743640380 22001286 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=22001286 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220012861743640381 22001287 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=22001287 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349702664: '1743640031_1736348_1349702558_eb9f458e3fa5d6e6ca4f3e2166ee9437_rle_crop_3745539126_0.png', 1349703386: '1743640285_4179666_1349703218_2326e1b6c8506642834b3eab1dbc8877_rle_crop_3745543126_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/1561fdd28e281001b829cce69c3b24b0_39056582.png change filename to text .imagette220012871743640381/ imagette220012871743640381/1743640031_1736348_1349702558_eb9f458e3fa5d6e6ca4f3e2166ee9437_rle_crop_3745539126_0.png.png imagette220012871743640381/1743640285_4179666_1349703218_2326e1b6c8506642834b3eab1dbc8877_rle_crop_3745543126_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/50b051a1c66a61b811213e5862e82c6d_22596131.png imagette220012871743640381 22001276 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=22001276 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349701610: '1743639572_4162133_1349701134_40797e0642bb905cd857b45c42f941c6_rle_crop_3745533769_0.png', 1349701615: '1743639573_1731759_1349701106_9fe26f1cf7485db9aa0c556cb14db33f_rle_crop_3745533830_0.png', 1349701710: '1743639672_1732727_1349701407_dd45024384bed82fc1dfe8afa53b31ec_rle_crop_3745535298_0.png', 1349701908: '1743639793_1733587_1349701722_504fdcc19978144556c7f501c41e1379_rle_crop_3745536296_0.png', 1349701953: '1743639806_4169125_1349701695_5df815ed90b58dc6f3fcf116e8fc11bb_rle_crop_3745536489_0.png', 1349701977: '1743639830_1734033_1349701702_f1fa6cc65fe6d82f27829276d5c0868a_rle_crop_3745536840_0.png', 1349701978: '1743639830_1734033_1349701630_3e3d37ecaa6a5ab14d98532f28586403_rle_crop_3745536856_0.png', 1349702447: '1743639913_1735183_1349701966_c1e397fde17584d18a2d3f73ba3adfb3_rle_crop_3745537676_0.png', 1349702448: '1743639913_1735183_1349701966_c1e397fde17584d18a2d3f73ba3adfb3_rle_crop_3745537677_0.png', 1349702466: '1743639927_4171931_1349701862_4e3c4ea339f32b32f8337d86378092e8_rle_crop_3745537709_0.png', 1349702553: '1743639933_1735411_1349701968_e32eacff4ab0728b7a918e6b58ec8483_rle_crop_3745537760_0.png', 1349702554: '1743639933_1735411_1349701858_a185c02c6dd20208dce7ffe191a39062_rle_crop_3745537774_0.png', 1349702555: '1743639933_1735411_1349701858_a185c02c6dd20208dce7ffe191a39062_rle_crop_3745537772_0.png', 1349702556: '1743639933_1735411_1349701858_a185c02c6dd20208dce7ffe191a39062_rle_crop_3745537770_0.png', 1349703348: '1743640273_1738998_1349703199_57ed16076eeea9d6ff89831d6ea4893d_rle_crop_3745543083_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/868789d919b5e4446bf27c441f6d4570_76714931.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/a52039c53d6aea25b88f99fb1f3ed2fb_54710331.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/9d0b717fe8017d193e3b758cf8c16f33_9177109.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/870f3d82cd3a448f9ddc4d2dd03d3cc9_81013936.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/7cf5ba073bf73c7c740a4dab35932e4a_11654564.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/c781316de13696d9f578b85f473ca146_68726291.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/110195f5171e2f55a90cdccfd9032d24_22760088.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/89284d49dd84870f428e987d1484869e_75327288.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/0498f33825f201f48259bd5622f0b4f6_396245.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/86362dbe682f138280d8b9182e55e3e1_16851984.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/fca60f816efe105fafc7a58186b8dde6_70227282.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/5cd61337958fd5e185fee803d354f632_54211268.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ce3ffd3f7e74c07f7436f838aa0dcfc5_19454443.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/d07d737905dc2ab947f3196447b5fdf4_73103673.png change filename to text .imagette220012761743640381/ imagette220012761743640381/1743639573_1731759_1349701106_9fe26f1cf7485db9aa0c556cb14db33f_rle_crop_3745533830_0.png.png imagette220012761743640381/1743639933_1735411_1349701858_a185c02c6dd20208dce7ffe191a39062_rle_crop_3745537774_0.png.png imagette220012761743640381/1743639830_1734033_1349701702_f1fa6cc65fe6d82f27829276d5c0868a_rle_crop_3745536840_0.png.png imagette220012761743640381/1743639927_4171931_1349701862_4e3c4ea339f32b32f8337d86378092e8_rle_crop_3745537709_0.png.png imagette220012761743640381/1743639806_4169125_1349701695_5df815ed90b58dc6f3fcf116e8fc11bb_rle_crop_3745536489_0.png.png imagette220012761743640381/1743639672_1732727_1349701407_dd45024384bed82fc1dfe8afa53b31ec_rle_crop_3745535298_0.png.png imagette220012761743640381/1743639933_1735411_1349701858_a185c02c6dd20208dce7ffe191a39062_rle_crop_3745537772_0.png.png imagette220012761743640381/1743640273_1738998_1349703199_57ed16076eeea9d6ff89831d6ea4893d_rle_crop_3745543083_0.png.png imagette220012761743640381/1743639572_4162133_1349701134_40797e0642bb905cd857b45c42f941c6_rle_crop_3745533769_0.png.png imagette220012761743640381/1743639913_1735183_1349701966_c1e397fde17584d18a2d3f73ba3adfb3_rle_crop_3745537676_0.png.png imagette220012761743640381/1743639793_1733587_1349701722_504fdcc19978144556c7f501c41e1379_rle_crop_3745536296_0.png.png imagette220012761743640381/1743639933_1735411_1349701858_a185c02c6dd20208dce7ffe191a39062_rle_crop_3745537770_0.png.png imagette220012761743640381/1743639830_1734033_1349701630_3e3d37ecaa6a5ab14d98532f28586403_rle_crop_3745536856_0.png.png imagette220012761743640381/1743639933_1735411_1349701968_e32eacff4ab0728b7a918e6b58ec8483_rle_crop_3745537760_0.png.png imagette220012761743640381/1743639913_1735183_1349701966_c1e397fde17584d18a2d3f73ba3adfb3_rle_crop_3745537677_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/22ba1e0adda627c1300ae8bb2f2944dd_44510875.png imagette220012761743640381 22001280 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=22001280 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349701602: '1743639566_1322664_1349701263_8f37c9632cbe99cb488d3dfac96cec8e_rle_crop_3745533649_0.png', 1349701613: '1743639572_4162133_1349701129_33e6862ca143545845351d2dbe36df62_rle_crop_3745533795_0.png', 1349701614: '1743639572_4162133_1349701126_ea92607fa578370fe3c233c33bad99a6_rle_crop_3745533811_0.png', 1349701711: '1743639672_1732727_1349701407_dd45024384bed82fc1dfe8afa53b31ec_rle_crop_3745535296_0.png', 1349701909: '1743639793_1733587_1349701725_98434336c6f9b4417e1c625fdcd7e028_rle_crop_3745536207_0.png', 1349701956: '1743639806_4169125_1349701697_73c81acaaa0020f69b2bad263429a307_rle_crop_3745536454_0.png', 1349701980: '1743639830_1734033_1349701628_29f41e566ef0316e103a2a4a0b2e2d4c_rle_crop_3745536865_0.png', 1349701981: '1743639830_1734033_1349701612_7aff5563ccbf2b9bd2c4c60d62dce242_rle_crop_3745536896_0.png', 1349702671: '1743640046_4174585_1349702379_3337834ea1b0a60e920800b800e3b6ff_rle_crop_3745539240_0.png', 1349702672: '1743640046_4174585_1349702365_77c6a8c3733d0b8df25fdf2db5884d8c_rle_crop_3745539289_0.png', 1349703244: '1743640153_1737451_1349702621_c83b5f497b0ebf8cffdd66db7a2fe6d5_rle_crop_3745540224_0.png', 1349703352: '1743640273_1738998_1349703215_aae5e0189604954db0e0f0b0747bd456_rle_crop_3745543049_0.png', 1349703353: '1743640273_1738998_1349703215_aae5e0189604954db0e0f0b0747bd456_rle_crop_3745543048_0.png', 1349703354: '1743640273_1738998_1349703198_aee3c5afcb20ff5079f481e9c163a68b_rle_crop_3745543165_0.png', 1349703372: '1743640285_4179666_1349702684_5822c3cd3bf497d1e007933469315d78_rle_crop_3745543258_0.png', 1349703373: '1743640285_4179666_1349702675_5fee497fa2e5f23f656d04c5653a02c0_rle_crop_3745543318_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/9651580b2da272217eb1e1cf8c8aab55_67152462.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/e27e989d029a63c1731dfe9a75e356a3_8719896.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/0640a4f981cd04be0da48586a8f68491_39721807.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/0a029307c8822c10864e84fad2b94af3_44059734.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/38d7c787db06a4d4584476d8b8fd0041_89987265.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b462e48a24df67ee55d8205fba3e5058_76067982.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b1070f051e819c3d7e2cf4a1011b4311_79720685.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/abb8480fdce20b61a71fcd1f0e36721e_77855105.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/0a1c77036d719b5d501f60476895899e_48345038.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/fcdc3387f42809585fc553d4c6e3808d_8755112.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/3876c23aac536c034e2fe3059007017c_39584024.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/3c544fb6ab037e1126b8b85433114452_50046471.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/03668448e42f0941a16366ea0958103b_5277323.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/2f12b31f20863b7a8075784515be9d27_61381763.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/4a6b1ce2998be7e2bf3a9c729a3d877d_51126379.png change filename to text .imagette220012801743640382/ imagette220012801743640382/1743640285_4179666_1349702675_5fee497fa2e5f23f656d04c5653a02c0_rle_crop_3745543318_0.png.png imagette220012801743640382/1743640273_1738998_1349703198_aee3c5afcb20ff5079f481e9c163a68b_rle_crop_3745543165_0.png.png imagette220012801743640382/1743639806_4169125_1349701697_73c81acaaa0020f69b2bad263429a307_rle_crop_3745536454_0.png.png imagette220012801743640382/1743640285_4179666_1349702684_5822c3cd3bf497d1e007933469315d78_rle_crop_3745543258_0.png.png imagette220012801743640382/1743640046_4174585_1349702365_77c6a8c3733d0b8df25fdf2db5884d8c_rle_crop_3745539289_0.png.png imagette220012801743640382/1743640153_1737451_1349702621_c83b5f497b0ebf8cffdd66db7a2fe6d5_rle_crop_3745540224_0.png.png imagette220012801743640382/1743639566_1322664_1349701263_8f37c9632cbe99cb488d3dfac96cec8e_rle_crop_3745533649_0.png.png imagette220012801743640382/1743639572_4162133_1349701126_ea92607fa578370fe3c233c33bad99a6_rle_crop_3745533811_0.png.png imagette220012801743640382/1743639830_1734033_1349701628_29f41e566ef0316e103a2a4a0b2e2d4c_rle_crop_3745536865_0.png.png imagette220012801743640382/1743639672_1732727_1349701407_dd45024384bed82fc1dfe8afa53b31ec_rle_crop_3745535296_0.png.png imagette220012801743640382/1743640046_4174585_1349702379_3337834ea1b0a60e920800b800e3b6ff_rle_crop_3745539240_0.png.png imagette220012801743640382/1743640273_1738998_1349703215_aae5e0189604954db0e0f0b0747bd456_rle_crop_3745543049_0.png.png imagette220012801743640382/1743640273_1738998_1349703215_aae5e0189604954db0e0f0b0747bd456_rle_crop_3745543048_0.png.png imagette220012801743640382/1743639572_4162133_1349701129_33e6862ca143545845351d2dbe36df62_rle_crop_3745533795_0.png.png imagette220012801743640382/1743639830_1734033_1349701612_7aff5563ccbf2b9bd2c4c60d62dce242_rle_crop_3745536896_0.png.png imagette220012801743640382/1743639793_1733587_1349701725_98434336c6f9b4417e1c625fdcd7e028_rle_crop_3745536207_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/8ca68da76241bbc215b2aafa1295f839_59114155.png imagette220012801743640382 22001281 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=22001281 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349702559: '1743639933_1735411_1349701968_e32eacff4ab0728b7a918e6b58ec8483_rle_crop_3745537759_0.png', 1349703385: '1743640285_4179666_1349702675_5fee497fa2e5f23f656d04c5653a02c0_rle_crop_3745543323_0.png', 1349703380: '1743640285_4179666_1349702675_5fee497fa2e5f23f656d04c5653a02c0_rle_crop_3745543325_0.png', 1349703379: '1743640285_4179666_1349702679_fa4b64492ea698f7eae1aa618fb11597_rle_crop_3745543291_0.png', 1349703378: '1743640285_4179666_1349703218_2326e1b6c8506642834b3eab1dbc8877_rle_crop_3745543119_0.png', 1349703363: '1743640273_1738998_1349703172_49a9e2aaa2cb5502b598a99ea451409a_rle_crop_3745543217_0.png', 1349703362: '1743640273_1738998_1349703172_49a9e2aaa2cb5502b598a99ea451409a_rle_crop_3745543218_0.png', 1349703361: '1743640273_1738998_1349703215_aae5e0189604954db0e0f0b0747bd456_rle_crop_3745543055_0.png', 1349703360: '1743640273_1738998_1349703215_aae5e0189604954db0e0f0b0747bd456_rle_crop_3745543053_0.png', 1349703248: '1743640153_1737451_1349702621_c83b5f497b0ebf8cffdd66db7a2fe6d5_rle_crop_3745540230_0.png', 1349702660: '1743640031_1736348_1349702562_fc5da9c006eed2a3ff1b1bb88ac7f658_rle_crop_3745539113_0.png', 1349701619: '1743639572_4162133_1349701314_6f23cf06979f298b2c232680082d1e4f_rle_crop_3745533675_0.png', 1349701984: '1743639830_1734033_1349701612_7aff5563ccbf2b9bd2c4c60d62dce242_rle_crop_3745536898_0.png', 1349701983: '1743639830_1734033_1349701702_f1fa6cc65fe6d82f27829276d5c0868a_rle_crop_3745536842_0.png', 1349701715: '1743639672_1732727_1349701414_4567b79dd307dbfe1e1781bfb5cba6df_rle_crop_3745535270_0.png', 1349701714: '1743639672_1732727_1349701422_b7035fb8cb5dc43abc9b0328a3c65589_rle_crop_3745535255_0.png', 1349701713: '1743639672_1732727_1349701422_b7035fb8cb5dc43abc9b0328a3c65589_rle_crop_3745535254_0.png', 1349701625: '1743639572_4162133_1349701129_33e6862ca143545845351d2dbe36df62_rle_crop_3745533799_0.png', 1349701624: '1743639572_4162133_1349701129_33e6862ca143545845351d2dbe36df62_rle_crop_3745533798_0.png', 1349701623: '1743639572_4162133_1349701134_40797e0642bb905cd857b45c42f941c6_rle_crop_3745533766_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/385be14c5b494add1ca465bd730a9d54_98976731.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/2cd8d5c471dddbcbacc21bbb81a89d52_80785203.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/729c6dd24fb049c89328e3b5170632e7_25405334.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/d3a6875354a486e3185f6b0b63abe8c1_91278743.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/8f4cd943e74dd8c14d259c1027bc69da_97776979.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/4523df145b84a1f77ec6a2d9bdee258f_16029184.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/314e222f3a480b3bb247db676b1253cb_23856756.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/effc2a3d921c82769c33d1fb29937c1e_51806256.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/ef55e9b9a8d7e14fdf5c5d647cffa374_20553534.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b28048d0712aac1f8c2a09647c0d5c22_5977844.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b7a517202d00200415fbf912b8989419_30801541.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b5fc5262b39ae42c2b737ad4b2102016_79151164.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/49898b743d924e8e0f9250fdf6a66450_35321292.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/f24e860ab730dc0e4b27610190ca16a0_30338760.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b470108b39168e23b01d1f97c305b64f_82190471.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/fc9edd3e26bfd3984c5ae50ac1a3b05f_64521425.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/0653ba4162d7711f9b6851b3fa739ea9_94912007.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/353ce2e2ad752a1f8f702698d68adb4c_68510605.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/e67e7734c70f13494814d6f53f44a6ff_45102288.png change filename to text .imagette220012811743640383/ imagette220012811743640383/1743639572_4162133_1349701129_33e6862ca143545845351d2dbe36df62_rle_crop_3745533799_0.png.png imagette220012811743640383/1743640273_1738998_1349703172_49a9e2aaa2cb5502b598a99ea451409a_rle_crop_3745543217_0.png.png imagette220012811743640383/1743639672_1732727_1349701414_4567b79dd307dbfe1e1781bfb5cba6df_rle_crop_3745535270_0.png.png imagette220012811743640383/1743639830_1734033_1349701702_f1fa6cc65fe6d82f27829276d5c0868a_rle_crop_3745536842_0.png.png imagette220012811743640383/1743640285_4179666_1349702679_fa4b64492ea698f7eae1aa618fb11597_rle_crop_3745543291_0.png.png imagette220012811743640383/1743639830_1734033_1349701612_7aff5563ccbf2b9bd2c4c60d62dce242_rle_crop_3745536898_0.png.png imagette220012811743640383/1743640153_1737451_1349702621_c83b5f497b0ebf8cffdd66db7a2fe6d5_rle_crop_3745540230_0.png.png imagette220012811743640383/1743639572_4162133_1349701134_40797e0642bb905cd857b45c42f941c6_rle_crop_3745533766_0.png.png imagette220012811743640383/1743640285_4179666_1349703218_2326e1b6c8506642834b3eab1dbc8877_rle_crop_3745543119_0.png.png imagette220012811743640383/1743640273_1738998_1349703215_aae5e0189604954db0e0f0b0747bd456_rle_crop_3745543053_0.png.png imagette220012811743640383/1743639933_1735411_1349701968_e32eacff4ab0728b7a918e6b58ec8483_rle_crop_3745537759_0.png.png imagette220012811743640383/1743640285_4179666_1349702675_5fee497fa2e5f23f656d04c5653a02c0_rle_crop_3745543323_0.png.png imagette220012811743640383/1743639672_1732727_1349701422_b7035fb8cb5dc43abc9b0328a3c65589_rle_crop_3745535255_0.png.png imagette220012811743640383/1743639572_4162133_1349701129_33e6862ca143545845351d2dbe36df62_rle_crop_3745533798_0.png.png imagette220012811743640383/1743639572_4162133_1349701314_6f23cf06979f298b2c232680082d1e4f_rle_crop_3745533675_0.png.png imagette220012811743640383/1743640285_4179666_1349702675_5fee497fa2e5f23f656d04c5653a02c0_rle_crop_3745543325_0.png.png imagette220012811743640383/1743639672_1732727_1349701422_b7035fb8cb5dc43abc9b0328a3c65589_rle_crop_3745535254_0.png.png imagette220012811743640383/1743640031_1736348_1349702562_fc5da9c006eed2a3ff1b1bb88ac7f658_rle_crop_3745539113_0.png.png imagette220012811743640383/1743640273_1738998_1349703215_aae5e0189604954db0e0f0b0747bd456_rle_crop_3745543055_0.png.png imagette220012811743640383/1743640273_1738998_1349703172_49a9e2aaa2cb5502b598a99ea451409a_rle_crop_3745543218_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/239001ac955bfa476888f639ecb496ff_66783121.png imagette220012811743640383 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22001272 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22001288,22001289,22001290,22001291,22001292,22001293,22001294,22001295,22001296,22001297,22001298,22001299?tags=Teint_Dans_La_Masse,cartonnette,environnement,plastique,Carton_gris,Carton_brun,kraft,mal_croppe,autre_refus,papier,flou,metal your option no_mail is active, we will not send the real mail to your client args[1349703334] : ('0.06405369561910192',) no score found for photo 1349703334 We are sending mail with results at report@fotonower.com args[1349703272] : ('0.06405369561910192',) no score found for photo 1349703272 We are sending mail with results at report@fotonower.com args[1349703267] : ('0.06405369561910192',) no score found for photo 1349703267 We are sending mail with results at report@fotonower.com args[1349703264] : ('0.06405369561910192',) no score found for photo 1349703264 We are sending mail with results at report@fotonower.com args[1349703260] : ('0.06405369561910192',) no score found for photo 1349703260 We are sending mail with results at report@fotonower.com args[1349703259] : ('0.06405369561910192',) no score found for photo 1349703259 We are sending mail with results at report@fotonower.com refus_total : 0.06405369561910192 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=22001272 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_P22001272_03-04-2025_02_32_59.pdf results_Auto_P22001272_03-04-2025_02_32_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22001272_03-04-2025_02_32_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22001272','results_Auto_P22001272_03-04-2025_02_32_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22001272_03-04-2025_02_32_59.pdf','pdf','','0.35','0.06405369561910192') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22001272]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349703334, 1349703272, 1349703267, 1349703264, 1349703260, 1349703259] map_info['map_portfolio_photo'] : {22001272: [1349703334, 1349703272, 1349703267, 1349703264, 1349703260, 1349703259, 1349703218, 1349703215, 1349703199, 1349703198, 1349703172, 1349702801, 1349702718, 1349702699, 1349702684, 1349702679, 1349702675, 1349702621, 1349702563, 1349702562, 1349702558, 1349702409, 1349702402, 1349702380, 1349702379, 1349702368, 1349702365, 1349701968, 1349701966, 1349701963, 1349701862, 1349701858, 1349701726, 1349701725, 1349701722, 1349701702, 1349701700, 1349701697, 1349701695, 1349701633, 1349701630, 1349701628, 1349701620, 1349701612, 1349701609, 1349701434, 1349701422, 1349701414, 1349701407, 1349701314, 1349701281, 1349701263, 1349701260, 1349701178, 1349701170, 1349701141, 1349701134, 1349701129, 1349701126, 1349701106, 1349701105, 1349701100, 1349701093]} final : False mtd_id 4302 list_pids : [1349703334, 1349703272, 1349703267, 1349703264, 1349703260, 1349703259] 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, '2718605') ('4302', '22001272', '1349703334', None, None, None, None, None, '2718605') ('4302', None, None, None, None, None, None, None, '2718605') ('4302', '22001272', '1349703272', None, None, None, None, None, '2718605') ('4302', None, None, None, None, None, None, None, '2718605') ('4302', '22001272', '1349703267', None, None, None, None, None, '2718605') ('4302', None, None, None, None, None, None, None, '2718605') ('4302', '22001272', '1349703264', None, None, None, None, None, '2718605') ('4302', None, None, None, None, None, None, None, '2718605') ('4302', '22001272', '1349703260', None, None, None, None, None, '2718605') ('4302', None, None, None, None, None, None, None, '2718605') ('4302', '22001272', '1349703259', None, None, None, None, None, '2718605') 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', '22001272', '1349703334', None, None, None, None, None, '2718605'), ('4302', '22001272', '1349703272', None, None, None, None, None, '2718605'), ('4302', '22001272', '1349703267', None, None, None, None, None, '2718605'), ('4302', '22001272', '1349703264', None, None, None, None, None, '2718605'), ('4302', '22001272', '1349703260', None, None, None, None, None, '2718605'), ('4302', '22001272', '1349703259', None, None, None, None, None, '2718605')] time used for this insertion : 0.01541590690612793 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.319978475570679 time spend to save output : 0.015616178512573242 total time spend for step 4 : 6.335594654083252 step5:split_time_score Thu Apr 3 02:33:05 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 : ['22001272'] 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 : [('22001272',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22001272) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349703272: {'path': 'temp/1743640379_668103_1349703272_51c4e3357df873e2037403e7b2cf7720.jpg', 'extension': 'jpg'}, 1349703334: {'path': 'temp/1743640379_668103_1349703334_28d3e83b8640d9a633b6c15d82eed8aa.jpg', 'extension': 'jpg'}, 1349703264: {'path': 'temp/1743640379_668103_1349703264_5616430e524be45a3ca629cfd132faf6.jpg', 'extension': 'jpg'}, 1349703267: {'path': 'temp/1743640379_668103_1349703267_16c6117425f69604f524042787eda01b.jpg', 'extension': 'jpg'}, 1349703259: {'path': 'temp/1743640379_668103_1349703259_7a1faad6f87f0b5f1925583b4e47e1d4.jpg', 'extension': 'jpg'}, 1349703260: {'path': 'temp/1743640379_668103_1349703260_1758a9822741a671e73452d290417e6d.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 = 22001272; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22001272 group by h (('02', 63),) 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=22001272 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (22001272) AND cps.thcl in (861) order by cps.score desc LIMIT 0, 100000 SELECT cps.photo_id, cps.score, h.hashtag, cps.hashtag_id, mpp1.mtr_portfolio_id FROM MTRPhoto.class_photo_score cps, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp1 where mpp1.mtr_photo_id=cps.photo_id AND h.hashtag_id=cps.hashtag_id AND mpp1.hide_status=0 AND mpp1.mtr_portfolio_id in (22001272) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 03042025 22001272 Nombre de photos uploadées : 63 / 23040 (0%) 03042025 22001272 Nombre de photos taguées (types de déchets): 0 / 63 (0%) 03042025 22001272 Nombre de photos taguées (volume) : 0 / 63 (0%) [{'photo_id': 1349701106, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/9fe26f1cf7485db9aa0c556cb14db33f.jpg', 'username': None, 'uploaded_at': 1743639367, 'text': 'image_03042025_02_15_05_010152m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349701105, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/6ce1640bad72266d8ec877cf5b1ea5d9.jpg', 'username': None, 'uploaded_at': 1743639367, 'text': 'image_03042025_02_15_15_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349701100, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/b99116e25296fee04034d7cd53fb956c.jpg', 'username': None, 'uploaded_at': 1743639367, 'text': 'image_03042025_02_15_35_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349701093, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/3/5d218819f34ac82a1d922db11f294cb0.jpg', 'username': None, 'uploaded_at': 1743639367, 'text': 'image_03042025_02_15_44_009125m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ??????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0028083324432373047 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22001272, '2025-04-03' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1712161,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.029598474502563477 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1712161 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1712161, 'dashboard_run_id': 1720005, 'mtr_portfolio_id': 22000337, 'dashboard_result_id': 9829605, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22000337_03-04-2025_02_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22000338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22000339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22000340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22000341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22000342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22000343, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22000344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22000345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22000346, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22000347, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22000348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22000349, 'pht': 3726}}"}, {'dashboat_entry_day': 1712161, 'dashboard_run_id': 1720005, 'mtr_portfolio_id': 22000728, 'dashboard_result_id': 9829606, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22000728_03-04-2025_02_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22000734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22000735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22000736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22000737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22000738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22000739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22000740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22000741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22000742, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22000743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22000744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22000745, 'pht': 3726}}"}, {'dashboat_entry_day': 1712161, 'dashboard_run_id': 1720005, 'mtr_portfolio_id': 22001272, 'dashboard_result_id': 9829607, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22001272_03-04-2025_02_31_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22001276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22001277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22001278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22001279, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22001280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22001281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22001282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22001283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22001284, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22001285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22001286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22001287, 'pht': 3726}}"}, {'dashboat_entry_day': 1712161, 'dashboard_run_id': 1720005, 'mtr_portfolio_id': 22001740, 'dashboard_result_id': 9829608, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22001740_03-04-2025_02_33_02.pdf'}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22000337 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2718552, 'mtr_portfolio_id': 22000337, 'created_at': datetime.datetime(2025, 4, 3, 2, 2, 59), 'result': '0.026519627169939112', 'result_long': None, 'result_double': None}] Qualite : 0.026519627169939112 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22000337 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22000337_03-04-2025_02_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22000337 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22000337_03-04-2025_02_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22000338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22000339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22000340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22000341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22000342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22000343, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22000344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22000345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22000346, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22000347, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22000348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22000349, 'pht': 3726}}" where mtr_portfolio_id = 22000337 and dashboard_run_id = 1720005 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22000337 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9829605, 0.026519627169939112, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22000337_03-04-2025_02_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22000338, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22000339, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22000340, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22000341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22000342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22000343, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22000344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22000345, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22000346, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22000347, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22000348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22000349, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22000728 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2718576, 'mtr_portfolio_id': 22000728, 'created_at': datetime.datetime(2025, 4, 3, 2, 18, 58), 'result': '0.05552648152370348', 'result_long': None, 'result_double': None}] Qualite : 0.05552648152370348 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22000728 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22000728_03-04-2025_02_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22000728 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22000728_03-04-2025_02_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22000734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22000735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22000736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22000737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22000738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22000739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22000740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22000741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22000742, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22000743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22000744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22000745, 'pht': 3726}}" where mtr_portfolio_id = 22000728 and dashboard_run_id = 1720005 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22000728 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9829606, 0.05552648152370348, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22000728_03-04-2025_02_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22000734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22000735, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22000736, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22000737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22000738, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22000739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22000740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22000741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22000742, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22000743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22000744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22000745, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22001272 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2718605, 'mtr_portfolio_id': 22001272, 'created_at': datetime.datetime(2025, 4, 3, 2, 32, 58), 'result': '0.06405369561910192', 'result_long': None, 'result_double': None}] Qualite : 0.06405369561910192 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22001272 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22001272_03-04-2025_02_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22001272 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22001272_03-04-2025_02_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22001276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22001277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22001278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22001279, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22001280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22001281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22001282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22001283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22001284, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22001285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22001286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22001287, 'pht': 3726}}" where mtr_portfolio_id = 22001272 and dashboard_run_id = 1720005 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22001272 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9829607, 0.06405369561910192, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22001272_03-04-2025_02_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22001276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22001277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22001278, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22001279, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22001280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22001281, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22001282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22001283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22001284, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22001285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22001286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22001287, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22001740 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22001740 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 22001740 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22001740 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22001740 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22001740 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22001740_03-04-2025_02_33_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22001740 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22001740_03-04-2025_02_33_02.pdf'}" where mtr_portfolio_id = 22001740 and dashboard_run_id = 1720005 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22000337,22000728,22001272,22001740) result : ((1349693077,), (1349694011,), (1349694592,), (1349694615,), (1349694635,), (1349694689,), (1349694962,), (1349695007,), (1349695023,), (1349695027,), (1349695251,), (1349695291,), (1349695311,), (1349695312,), (1349695426,), (1349695455,), (1349695496,), (1349695533,), (1349695703,), (1349695727,), (1349695756,), (1349695782,), (1349695809,), (1349695830,), (1349696381,), (1349696390,), (1349696394,), (1349696399,), (1349696419,), (1349696921,), (1349696646,), (1349696698,), (1349696770,), (1349696806,), (1349697355,), (1349697412,), (1349697460,), (1349697513,), (1349697560,), (1349698076,), (1349698162,), (1349698229,), (1349698310,), (1349698423,), (1349698488,), (1349698975,), (1349699053,), (1349699102,), (1349699756,), (1349699829,), (1349699874,), (1349699956,), (1349700044,), (1349700094,), (1349700479,), (1349700529,), (1349700563,), (1349700615,), (1349700630,), (1349700652,), (1349700811,), (1349700824,), (1349700828,), (1349700829,), (1349700853,), (1349700860,), (1349700863,), (1349700868,), (1349700870,), (1349700875,), (1349700893,), (1349700896,), (1349700898,), (1349700900,), (1349700928,), (1349700931,), (1349700933,), (1349700935,), (1349700938,), (1349700960,), (1349700971,), (1349700972,), (1349700974,), (1349700990,), (1349700993,), (1349700996,), (1349700999,), (1349701003,), (1349701035,), (1349701037,), (1349701038,), (1349701040,), (1349701055,), (1349701063,), (1349701065,), (1349701072,), (1349701074,), (1349701076,), (1349701109,), (1349701093,), (1349701100,), (1349701105,), (1349701106,), (1349701126,), (1349701129,), (1349701134,), (1349701141,), (1349701170,), (1349701178,), (1349701260,), (1349701263,), (1349701281,), (1349701314,), (1349701407,), (1349701414,), (1349701422,), (1349701434,), (1349701609,), (1349701612,), (1349701620,), (1349701628,), (1349701630,), (1349701633,), (1349701695,), (1349701697,), (1349701700,), (1349701702,), (1349701722,), (1349701725,), (1349701726,), (1349701858,), (1349701862,), (1349701963,), (1349701966,), (1349701968,), (1349702365,), (1349702368,), (1349702379,), (1349702380,), (1349702402,), (1349702409,), (1349702558,), (1349702562,), (1349702563,), (1349702621,), (1349702675,), (1349702679,), (1349702684,), (1349702699,), (1349702718,), (1349702801,), (1349703172,), (1349703198,), (1349703199,), (1349703215,), (1349703218,), (1349703259,), (1349703260,), (1349703264,), (1349703267,), (1349703272,), (1349703334,), (1349703303,), (1349703307,), (1349703312,), (1349703325,), (1349703331,), (1349703355,), (1349703368,), (1349703381,), (1349703387,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'03042025': {'nb_upload': 63, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22001272]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349703334, 1349703272, 1349703267, 1349703264, 1349703260, 1349703259] map_info['map_portfolio_photo'] : {22001272: [1349703334, 1349703272, 1349703267, 1349703264, 1349703260, 1349703259, 1349703218, 1349703215, 1349703199, 1349703198, 1349703172, 1349702801, 1349702718, 1349702699, 1349702684, 1349702679, 1349702675, 1349702621, 1349702563, 1349702562, 1349702558, 1349702409, 1349702402, 1349702380, 1349702379, 1349702368, 1349702365, 1349701968, 1349701966, 1349701963, 1349701862, 1349701858, 1349701726, 1349701725, 1349701722, 1349701702, 1349701700, 1349701697, 1349701695, 1349701633, 1349701630, 1349701628, 1349701620, 1349701612, 1349701609, 1349701434, 1349701422, 1349701414, 1349701407, 1349701314, 1349701281, 1349701263, 1349701260, 1349701178, 1349701170, 1349701141, 1349701134, 1349701129, 1349701126, 1349701106, 1349701105, 1349701100, 1349701093]} final : True mtd_id 4302 list_pids : [1349703334, 1349703272, 1349703267, 1349703264, 1349703260, 1349703259] Looping around the photos to save general results len do output : 1 /22001272Didn't retrieve data . before output type Here is an output not treated by saveGeneral : Managing all output in save final without adding information in the mtr_datou_result ('4302', None, None, None, None, None, None, None, '2718605') ('4302', '22001272', '1349703334', None, None, None, None, None, '2718605') ('4302', None, None, None, None, None, None, None, '2718605') ('4302', '22001272', '1349703272', None, None, None, None, None, '2718605') ('4302', None, None, None, None, None, None, None, '2718605') ('4302', '22001272', '1349703267', None, None, None, None, None, '2718605') ('4302', None, None, None, None, None, None, None, '2718605') ('4302', '22001272', '1349703264', None, None, None, None, None, '2718605') ('4302', None, None, None, None, None, None, None, '2718605') ('4302', '22001272', '1349703260', None, None, None, None, None, '2718605') ('4302', None, None, None, None, None, None, None, '2718605') ('4302', '22001272', '1349703259', None, None, None, None, None, '2718605') 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, '22001272', 'None', None, None, None, None, '2718605'), ('4302', '22001272', '1349703334', None, None, None, None, None, '2718605'), ('4302', '22001272', '1349703272', None, None, None, None, None, '2718605'), ('4302', '22001272', '1349703267', None, None, None, None, None, '2718605'), ('4302', '22001272', '1349703264', None, None, None, None, None, '2718605'), ('4302', '22001272', '1349703260', None, None, None, None, None, '2718605'), ('4302', '22001272', '1349703259', None, None, None, None, None, '2718605')] time used for this insertion : 0.013756990432739258 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5030455589294434 time spend to save output : 0.013969182968139648 total time spend for step 5 : 0.517014741897583 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 (2718605) 2.14user 2.38system 0:11.11elapsed 40%CPU (0avgtext+0avgdata 157352maxresident)k 264inputs+17728outputs (3major+63899minor)pagefaults 0swaps