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 : 4005233 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 (2725143) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2725143) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22067534 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2725143'] with mtr_portfolio_ids : ['22067534'] and first list_photo_ids : [] new path : /proc/4005233/ Name: python3 Umask: 0002 State: R (running) Tgid: 4005233 Ngid: 0 Pid: 4005233 PPid: 4005232 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 4005233 NSpid: 4005233 NSpgid: 3999676 NSsid: 3999676 VmPeak: 1106836 kB VmSize: 1106836 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98124 kB VmRSS: 98124 kB RssAnon: 59808 kB RssFile: 38316 kB RssShmem: 0 kB VmData: 865584 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 616 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: 62 nonvoluntary_ctxt_switches: 151 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '4005233', 'Ngid': '0', 'Pid': '4005233', 'PPid': '4005232', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '4005233', 'NSpid': '4005233', 'NSpgid': '3999676', 'NSsid': '3999676', 'VmPeak': '1106836 kB', 'VmSize': '1106836 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98124 kB', 'VmRSS': '98124 kB', 'RssAnon': '59808 kB', 'RssFile': '38316 kB', 'RssShmem': '0 kB', 'VmData': '865584 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '616 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': '62', 'nonvoluntary_ctxt_switches': '151'} ('datou_batch_current', '4005233', '1106836', '0', '1106836', '865584', '98124', b'', 'marlene', '2725143') 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 (22067534) 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 (2725143 ) ) 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 (22067534) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1350196058, 'portfolio_id': 22067534}, {'photo_id': 1350195965, 'portfolio_id': 22067534}, {'photo_id': 1350195891, 'portfolio_id': 22067534}, {'photo_id': 1350195814, 'portfolio_id': 22067534}, {'photo_id': 1350195730, 'portfolio_id': 22067534}, {'photo_id': 1350195660, 'portfolio_id': 22067534}, {'photo_id': 1350195112, 'portfolio_id': 22067534}, {'photo_id': 1350195108, 'portfolio_id': 22067534}, {'photo_id': 1350195099, 'portfolio_id': 22067534}, {'photo_id': 1350195092, 'portfolio_id': 22067534}, {'photo_id': 1350195043, 'portfolio_id': 22067534}, {'photo_id': 1350195039, 'portfolio_id': 22067534}, {'photo_id': 1350195033, 'portfolio_id': 22067534}, {'photo_id': 1350194926, 'portfolio_id': 22067534}, {'photo_id': 1350194921, 'portfolio_id': 22067534}, {'photo_id': 1350194908, 'portfolio_id': 22067534}, {'photo_id': 1350194891, 'portfolio_id': 22067534}, {'photo_id': 1350194878, 'portfolio_id': 22067534}, {'photo_id': 1350194854, 'portfolio_id': 22067534}, {'photo_id': 1350194783, 'portfolio_id': 22067534}, {'photo_id': 1350194749, 'portfolio_id': 22067534}, {'photo_id': 1350194722, 'portfolio_id': 22067534}, {'photo_id': 1350194697, 'portfolio_id': 22067534}, {'photo_id': 1350194415, 'portfolio_id': 22067534}, {'photo_id': 1350194388, 'portfolio_id': 22067534}, {'photo_id': 1350194361, 'portfolio_id': 22067534}, {'photo_id': 1350194330, 'portfolio_id': 22067534}, {'photo_id': 1350194301, 'portfolio_id': 22067534}, {'photo_id': 1350194273, 'portfolio_id': 22067534}, {'photo_id': 1350193969, 'portfolio_id': 22067534}, {'photo_id': 1350193942, 'portfolio_id': 22067534}, {'photo_id': 1350193929, 'portfolio_id': 22067534}, {'photo_id': 1350193926, 'portfolio_id': 22067534}, {'photo_id': 1350193783, 'portfolio_id': 22067534}, {'photo_id': 1350193629, 'portfolio_id': 22067534}, {'photo_id': 1350193615, 'portfolio_id': 22067534}, {'photo_id': 1350193587, 'portfolio_id': 22067534}, {'photo_id': 1350193565, 'portfolio_id': 22067534}, {'photo_id': 1350193542, 'portfolio_id': 22067534}, {'photo_id': 1350193512, 'portfolio_id': 22067534}, {'photo_id': 1350193082, 'portfolio_id': 22067534}] map_portfolio_id_photo_id: {22067534: [1350196058, 1350195965, 1350195891, 1350195814, 1350195730, 1350195660, 1350195112, 1350195108, 1350195099, 1350195092, 1350195043, 1350195039, 1350195033, 1350194926, 1350194921, 1350194908, 1350194891, 1350194878, 1350194854, 1350194783, 1350194749, 1350194722, 1350194697, 1350194415, 1350194388, 1350194361, 1350194330, 1350194301, 1350194273, 1350193969, 1350193942, 1350193929, 1350193926, 1350193783, 1350193629, 1350193615, 1350193587, 1350193565, 1350193542, 1350193512, 1350193082]} ##### 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.014416933059692383 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Apr 16 09:00:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22067534) 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 : 22067534 get user id for portfolio 22067534 get sub ptf for main ptf 22067534, type 3726 and hashtags ['metal', 'papier', 'flou', 'Carton_gris', 'cartonnette', 'kraft', 'Carton_brun', 'environnement', 'Teint_Dans_La_Masse', 'plastique', 'mal_croppe', '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`=22067534 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','papier','flou','Carton_gris','cartonnette','kraft','Carton_brun','environnement','Teint_Dans_La_Masse','plastique','mal_croppe','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`=22067534 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','papier','flou','Carton_gris','cartonnette','kraft','Carton_brun','environnement','Teint_Dans_La_Masse','plastique','mal_croppe','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22067534, 'sub_port_id': 22067535, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14556233, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 54, 58)}, 'plastique': {'main_port_id': 22067534, 'sub_port_id': 22067536, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14556234, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 54, 58)}, 'kraft': {'main_port_id': 22067534, 'sub_port_id': 22067537, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14556235, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 54, 58)}, 'environnement': {'main_port_id': 22067534, 'sub_port_id': 22067538, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14556236, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 54, 58)}, 'cartonnette': {'main_port_id': 22067534, 'sub_port_id': 22067539, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14556237, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 54, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22067534, 'sub_port_id': 22067540, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14556238, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 54, 58)}, 'metal': {'main_port_id': 22067534, 'sub_port_id': 22067541, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14556239, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 54, 58)}, 'papier': {'main_port_id': 22067534, 'sub_port_id': 22067542, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14556240, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 54, 58)}, 'Carton_gris': {'main_port_id': 22067534, 'sub_port_id': 22067543, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14556241, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 54, 58)}, 'flou': {'main_port_id': 22067534, 'sub_port_id': 22067544, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14556242, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 54, 58)}, 'mal_croppe': {'main_port_id': 22067534, 'sub_port_id': 22067545, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14556243, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 54, 58)}, 'autre_refus': {'main_port_id': 22067534, 'sub_port_id': 22067546, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14556244, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 54, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22067535 , 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=22067534 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 (22067535) result : ((1350195133,), (1350195134,), (1350195135,), (1350195136,), (1350195421,), (1350195619,), (1350195898,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22067534) result : ((1350193082,), (1350193512,), (1350193542,), (1350193565,), (1350193587,), (1350193615,), (1350193629,), (1350193783,), (1350193926,), (1350193929,), (1350193942,), (1350193969,), (1350194273,), (1350194301,), (1350194330,), (1350194361,), (1350194388,), (1350194415,), (1350194697,), (1350194722,), (1350194749,), (1350194783,), (1350194854,), (1350194878,), (1350194891,), (1350194908,), (1350194921,), (1350194926,), (1350195033,), (1350195039,), (1350195043,), (1350195092,), (1350195099,), (1350195108,), (1350195112,), (1350195660,), (1350195730,), (1350195814,), (1350195891,), (1350195965,), (1350196058,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22067536 , 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=22067534 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 (22067536) result : ((1350195036,), (1350195074,), (1350195137,), (1350195138,), (1350195139,), (1350195140,), (1350195141,), (1350195423,), (1350195424,), (1350195627,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22067534) result : ((1350193082,), (1350193512,), (1350193542,), (1350193565,), (1350193587,), (1350193615,), (1350193629,), (1350193783,), (1350193926,), (1350193929,), (1350193942,), (1350193969,), (1350194273,), (1350194301,), (1350194330,), (1350194361,), (1350194388,), (1350194415,), (1350194697,), (1350194722,), (1350194749,), (1350194783,), (1350194854,), (1350194878,), (1350194891,), (1350194908,), (1350194921,), (1350194926,), (1350195033,), (1350195039,), (1350195043,), (1350195092,), (1350195099,), (1350195108,), (1350195112,), (1350195660,), (1350195730,), (1350195814,), (1350195891,), (1350195965,), (1350196058,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22067537 , 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=22067534 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 (22067537) result : ((1350195107,), (1350195142,), (1350195143,), (1350195425,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22067534) result : ((1350193082,), (1350193512,), (1350193542,), (1350193565,), (1350193587,), (1350193615,), (1350193629,), (1350193783,), (1350193926,), (1350193929,), (1350193942,), (1350193969,), (1350194273,), (1350194301,), (1350194330,), (1350194361,), (1350194388,), (1350194415,), (1350194697,), (1350194722,), (1350194749,), (1350194783,), (1350194854,), (1350194878,), (1350194891,), (1350194908,), (1350194921,), (1350194926,), (1350195033,), (1350195039,), (1350195043,), (1350195092,), (1350195099,), (1350195108,), (1350195112,), (1350195660,), (1350195730,), (1350195814,), (1350195891,), (1350195965,), (1350196058,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22067538 , 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=22067534 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 (22067538) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22067534) result : ((1350193082,), (1350193512,), (1350193542,), (1350193565,), (1350193587,), (1350193615,), (1350193629,), (1350193783,), (1350193926,), (1350193929,), (1350193942,), (1350193969,), (1350194273,), (1350194301,), (1350194330,), (1350194361,), (1350194388,), (1350194415,), (1350194697,), (1350194722,), (1350194749,), (1350194783,), (1350194854,), (1350194878,), (1350194891,), (1350194908,), (1350194921,), (1350194926,), (1350195033,), (1350195039,), (1350195043,), (1350195092,), (1350195099,), (1350195108,), (1350195112,), (1350195660,), (1350195730,), (1350195814,), (1350195891,), (1350195965,), (1350196058,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22067539 , 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=22067534 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 (22067539) result : ((1350195034,), (1350195419,), (1350195420,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22067534) result : ((1350193082,), (1350193512,), (1350193542,), (1350193565,), (1350193587,), (1350193615,), (1350193629,), (1350193783,), (1350193926,), (1350193929,), (1350193942,), (1350193969,), (1350194273,), (1350194301,), (1350194330,), (1350194361,), (1350194388,), (1350194415,), (1350194697,), (1350194722,), (1350194749,), (1350194783,), (1350194854,), (1350194878,), (1350194891,), (1350194908,), (1350194921,), (1350194926,), (1350195033,), (1350195039,), (1350195043,), (1350195092,), (1350195099,), (1350195108,), (1350195112,), (1350195660,), (1350195730,), (1350195814,), (1350195891,), (1350195965,), (1350196058,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22067540 , 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=22067534 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 (22067540) result : ((1350195024,), (1350195114,), (1350195401,), (1350195606,), (1350195861,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22067534) result : ((1350193082,), (1350193512,), (1350193542,), (1350193565,), (1350193587,), (1350193615,), (1350193629,), (1350193783,), (1350193926,), (1350193929,), (1350193942,), (1350193969,), (1350194273,), (1350194301,), (1350194330,), (1350194361,), (1350194388,), (1350194415,), (1350194697,), (1350194722,), (1350194749,), (1350194783,), (1350194854,), (1350194878,), (1350194891,), (1350194908,), (1350194921,), (1350194926,), (1350195033,), (1350195039,), (1350195043,), (1350195092,), (1350195099,), (1350195108,), (1350195112,), (1350195660,), (1350195730,), (1350195814,), (1350195891,), (1350195965,), (1350196058,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22067541 , 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=22067534 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 (22067541) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22067534) result : ((1350193082,), (1350193512,), (1350193542,), (1350193565,), (1350193587,), (1350193615,), (1350193629,), (1350193783,), (1350193926,), (1350193929,), (1350193942,), (1350193969,), (1350194273,), (1350194301,), (1350194330,), (1350194361,), (1350194388,), (1350194415,), (1350194697,), (1350194722,), (1350194749,), (1350194783,), (1350194854,), (1350194878,), (1350194891,), (1350194908,), (1350194921,), (1350194926,), (1350195033,), (1350195039,), (1350195043,), (1350195092,), (1350195099,), (1350195108,), (1350195112,), (1350195660,), (1350195730,), (1350195814,), (1350195891,), (1350195965,), (1350196058,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22067542 , 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=22067534 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 (22067542) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22067534) result : ((1350193082,), (1350193512,), (1350193542,), (1350193565,), (1350193587,), (1350193615,), (1350193629,), (1350193783,), (1350193926,), (1350193929,), (1350193942,), (1350193969,), (1350194273,), (1350194301,), (1350194330,), (1350194361,), (1350194388,), (1350194415,), (1350194697,), (1350194722,), (1350194749,), (1350194783,), (1350194854,), (1350194878,), (1350194891,), (1350194908,), (1350194921,), (1350194926,), (1350195033,), (1350195039,), (1350195043,), (1350195092,), (1350195099,), (1350195108,), (1350195112,), (1350195660,), (1350195730,), (1350195814,), (1350195891,), (1350195965,), (1350196058,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22067543 , 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=22067534 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 (22067543) result : ((1350195104,), (1350195128,), (1350195129,), (1350195130,), (1350195131,), (1350195612,), (1350195613,), (1350195614,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22067534) result : ((1350193082,), (1350193512,), (1350193542,), (1350193565,), (1350193587,), (1350193615,), (1350193629,), (1350193783,), (1350193926,), (1350193929,), (1350193942,), (1350193969,), (1350194273,), (1350194301,), (1350194330,), (1350194361,), (1350194388,), (1350194415,), (1350194697,), (1350194722,), (1350194749,), (1350194783,), (1350194854,), (1350194878,), (1350194891,), (1350194908,), (1350194921,), (1350194926,), (1350195033,), (1350195039,), (1350195043,), (1350195092,), (1350195099,), (1350195108,), (1350195112,), (1350195660,), (1350195730,), (1350195814,), (1350195891,), (1350195965,), (1350196058,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22067544 , 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=22067534 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 (22067544) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22067534) result : ((1350193082,), (1350193512,), (1350193542,), (1350193565,), (1350193587,), (1350193615,), (1350193629,), (1350193783,), (1350193926,), (1350193929,), (1350193942,), (1350193969,), (1350194273,), (1350194301,), (1350194330,), (1350194361,), (1350194388,), (1350194415,), (1350194697,), (1350194722,), (1350194749,), (1350194783,), (1350194854,), (1350194878,), (1350194891,), (1350194908,), (1350194921,), (1350194926,), (1350195033,), (1350195039,), (1350195043,), (1350195092,), (1350195099,), (1350195108,), (1350195112,), (1350195660,), (1350195730,), (1350195814,), (1350195891,), (1350195965,), (1350196058,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22067545 , 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=22067534 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 (22067545) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22067534) result : ((1350193082,), (1350193512,), (1350193542,), (1350193565,), (1350193587,), (1350193615,), (1350193629,), (1350193783,), (1350193926,), (1350193929,), (1350193942,), (1350193969,), (1350194273,), (1350194301,), (1350194330,), (1350194361,), (1350194388,), (1350194415,), (1350194697,), (1350194722,), (1350194749,), (1350194783,), (1350194854,), (1350194878,), (1350194891,), (1350194908,), (1350194921,), (1350194926,), (1350195033,), (1350195039,), (1350195043,), (1350195092,), (1350195099,), (1350195108,), (1350195112,), (1350195660,), (1350195730,), (1350195814,), (1350195891,), (1350195965,), (1350196058,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22067546 , 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=22067534 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 (22067546) result : ((1350195028,), (1350195029,), (1350195030,), (1350195031,), (1350195032,), (1350195103,), (1350195117,), (1350195118,), (1350195119,), (1350195120,), (1350195121,), (1350195122,), (1350195123,), (1350195414,), (1350195415,), (1350195880,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22067534) result : ((1350193082,), (1350193512,), (1350193542,), (1350193565,), (1350193587,), (1350193615,), (1350193629,), (1350193783,), (1350193926,), (1350193929,), (1350193942,), (1350193969,), (1350194273,), (1350194301,), (1350194330,), (1350194361,), (1350194388,), (1350194415,), (1350194697,), (1350194722,), (1350194749,), (1350194783,), (1350194854,), (1350194878,), (1350194891,), (1350194908,), (1350194921,), (1350194926,), (1350195033,), (1350195039,), (1350195043,), (1350195092,), (1350195099,), (1350195108,), (1350195112,), (1350195660,), (1350195730,), (1350195814,), (1350195891,), (1350195965,), (1350196058,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22067534 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','papier','flou','Carton_gris','cartonnette','kraft','Carton_brun','environnement','Teint_Dans_La_Masse','plastique','mal_croppe','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`=22067534 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','papier','flou','Carton_gris','cartonnette','kraft','Carton_brun','environnement','Teint_Dans_La_Masse','plastique','mal_croppe','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22067534, 'sub_port_id': 22067548, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14556245, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 55)}, 'plastique': {'main_port_id': 22067534, 'sub_port_id': 22067549, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14556246, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 55)}, 'kraft': {'main_port_id': 22067534, 'sub_port_id': 22067550, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14556247, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 55)}, 'environnement': {'main_port_id': 22067534, 'sub_port_id': 22067551, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14556248, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 55)}, 'cartonnette': {'main_port_id': 22067534, 'sub_port_id': 22067552, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14556249, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 55)}, 'Teint_Dans_La_Masse': {'main_port_id': 22067534, 'sub_port_id': 22067553, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14556250, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 55)}, 'metal': {'main_port_id': 22067534, 'sub_port_id': 22067554, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14556251, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 55)}, 'papier': {'main_port_id': 22067534, 'sub_port_id': 22067555, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14556252, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 55)}, 'Carton_gris': {'main_port_id': 22067534, 'sub_port_id': 22067556, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14556253, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 55)}, 'flou': {'main_port_id': 22067534, 'sub_port_id': 22067557, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14556254, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 55)}, 'mal_croppe': {'main_port_id': 22067534, 'sub_port_id': 22067558, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14556255, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 55), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 55), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 55)}, 'autre_refus': {'main_port_id': 22067534, 'sub_port_id': 22067559, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14556256, 'last_updated_at': datetime.datetime(2025, 4, 16, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 8, 55)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22067548,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22067535 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22067549,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22067536 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22067550,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22067537 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22067551,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22067538 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22067552,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22067539 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22067553,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22067540 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22067554,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22067541 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22067555,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22067542 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22067556,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22067543 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22067557,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22067544 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22067558,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22067545 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22067559,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22067546 lien utilise dans velours : https://www.fotonower.com/velours/22067548,22067549,22067550,22067551,22067552,22067553,22067554,22067555,22067556,22067557,22067558,22067559?tags=Carton_brun,plastique,kraft,environnement,cartonnette,Teint_Dans_La_Masse,metal,papier,Carton_gris,flou,mal_croppe,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22067534]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350196058, 1350195965, 1350195891, 1350195814, 1350195730, 1350195660] map_info['map_portfolio_photo'] : {22067534: [1350196058, 1350195965, 1350195891, 1350195814, 1350195730, 1350195660, 1350195112, 1350195108, 1350195099, 1350195092, 1350195043, 1350195039, 1350195033, 1350194926, 1350194921, 1350194908, 1350194891, 1350194878, 1350194854, 1350194783, 1350194749, 1350194722, 1350194697, 1350194415, 1350194388, 1350194361, 1350194330, 1350194301, 1350194273, 1350193969, 1350193942, 1350193929, 1350193926, 1350193783, 1350193629, 1350193615, 1350193587, 1350193565, 1350193542, 1350193512, 1350193082]} final : False mtd_id 4302 list_pids : [1350196058, 1350195965, 1350195891, 1350195814, 1350195730, 1350195660] Looping around the photos to save general results len do output : 1 /22067534. 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, '2725143') ('4302', '22067534', '1350196058', None, None, None, None, None, '2725143') ('4302', None, None, None, None, None, None, None, '2725143') ('4302', '22067534', '1350195965', None, None, None, None, None, '2725143') ('4302', None, None, None, None, None, None, None, '2725143') ('4302', '22067534', '1350195891', None, None, None, None, None, '2725143') ('4302', None, None, None, None, None, None, None, '2725143') ('4302', '22067534', '1350195814', None, None, None, None, None, '2725143') ('4302', None, None, None, None, None, None, None, '2725143') ('4302', '22067534', '1350195730', None, None, None, None, None, '2725143') ('4302', None, None, None, None, None, None, None, '2725143') ('4302', '22067534', '1350195660', None, None, None, None, None, '2725143') 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, '22067534', "{'Carton_brun': 22067535, 'plastique': 22067536, 'kraft': 22067537, 'environnement': 22067538, 'cartonnette': 22067539, 'Teint_Dans_La_Masse': 22067540, 'metal': 22067541, 'papier': 22067542, 'Carton_gris': 22067543, 'flou': 22067544, 'mal_croppe': 22067545, 'autre_refus': 22067546}", None, None, None, None, '2725143'), ('4302', '22067534', '1350196058', None, None, None, None, None, '2725143'), ('4302', '22067534', '1350195965', None, None, None, None, None, '2725143'), ('4302', '22067534', '1350195891', None, None, None, None, None, '2725143'), ('4302', '22067534', '1350195814', None, None, None, None, None, '2725143'), ('4302', '22067534', '1350195730', None, None, None, None, None, '2725143'), ('4302', '22067534', '1350195660', None, None, None, None, None, '2725143')] time used for this insertion : 0.07050132751464844 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7784900665283203 time spend to save output : 0.07079458236694336 total time spend for step 1 : 1.8492846488952637 step2:final Wed Apr 16 09:00:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (22067534) 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 22067534 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350193082,1350193629,1350193615,1350193587,1350193565,1350193542,1350193512,1350193969,1350193942,1350193783,1350193929,1350193926,1350194415,1350194388,1350194361,1350194330,1350194301,1350194273,1350194783,1350194749,1350194722,1350194697,1350194926,1350194921,1350194908,1350194891,1350194878,1350194854,1350195043,1350195039,1350195033,1350195112,1350195108,1350195099,1350195092,1350196058,1350195965,1350195891,1350195814,1350195730,1350195660); 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([22067534]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350196058: ('0.05430460917370182',), 1350195965: ('0.05430460917370182',), 1350195891: ('0.05430460917370182',), 1350195814: ('0.05430460917370182',), 1350195730: ('0.05430460917370182',), 1350195660: ('0.05430460917370182',)} new output for save of step final : {1350196058: ('0.05430460917370182',), 1350195965: ('0.05430460917370182',), 1350195891: ('0.05430460917370182',), 1350195814: ('0.05430460917370182',), 1350195730: ('0.05430460917370182',), 1350195660: ('0.05430460917370182',)} [1350196058, 1350195965, 1350195891, 1350195814, 1350195730, 1350195660] map_info['map_portfolio_photo'] : {22067534: [1350196058, 1350195965, 1350195891, 1350195814, 1350195730, 1350195660, 1350195112, 1350195108, 1350195099, 1350195092, 1350195043, 1350195039, 1350195033, 1350194926, 1350194921, 1350194908, 1350194891, 1350194878, 1350194854, 1350194783, 1350194749, 1350194722, 1350194697, 1350194415, 1350194388, 1350194361, 1350194330, 1350194301, 1350194273, 1350193969, 1350193942, 1350193929, 1350193926, 1350193783, 1350193629, 1350193615, 1350193587, 1350193565, 1350193542, 1350193512, 1350193082]} final : False mtd_id 4302 list_pids : [1350196058, 1350195965, 1350195891, 1350195814, 1350195730, 1350195660] Looping around the photos to save general results len do output : 6 /1350196058.Didn't retrieve data . /1350195965.Didn't retrieve data . /1350195891.Didn't retrieve data . /1350195814.Didn't retrieve data . /1350195730.Didn't retrieve data . /1350195660.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, '2725143') ('4302', '22067534', '1350196058', None, None, None, None, None, '2725143') ('4302', None, None, None, None, None, None, None, '2725143') ('4302', '22067534', '1350195965', None, None, None, None, None, '2725143') ('4302', None, None, None, None, None, None, None, '2725143') ('4302', '22067534', '1350195891', None, None, None, None, None, '2725143') ('4302', None, None, None, None, None, None, None, '2725143') ('4302', '22067534', '1350195814', None, None, None, None, None, '2725143') ('4302', None, None, None, None, None, None, None, '2725143') ('4302', '22067534', '1350195730', None, None, None, None, None, '2725143') ('4302', None, None, None, None, None, None, None, '2725143') ('4302', '22067534', '1350195660', None, None, None, None, None, '2725143') 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', '22067534', '1350196058', '0.05430460917370182', None, None, None, None, '2725143'), ('4302', '22067534', '1350195965', '0.05430460917370182', None, None, None, None, '2725143'), ('4302', '22067534', '1350195891', '0.05430460917370182', None, None, None, None, '2725143'), ('4302', '22067534', '1350195814', '0.05430460917370182', None, None, None, None, '2725143'), ('4302', '22067534', '1350195730', '0.05430460917370182', None, None, None, None, '2725143'), ('4302', '22067534', '1350195660', '0.05430460917370182', None, None, None, None, '2725143')] time used for this insertion : 0.04386615753173828 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.13767504692077637 time spend to save output : 0.04432272911071777 total time spend for step 2 : 0.18199777603149414 step3:velours_tree Wed Apr 16 09:00:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22067534: [{'Carton_brun': 22067535, 'plastique': 22067536, 'kraft': 22067537, 'environnement': 22067538, 'cartonnette': 22067539, 'Teint_Dans_La_Masse': 22067540, 'metal': 22067541, 'papier': 22067542, 'Carton_gris': 22067543, 'flou': 22067544, 'mal_croppe': 22067545, 'autre_refus': 22067546}]} input_args_next_step : {22067534: ()} output_args : {22067534: [{'Carton_brun': 22067535, 'plastique': 22067536, 'kraft': 22067537, 'environnement': 22067538, 'cartonnette': 22067539, 'Teint_Dans_La_Masse': 22067540, 'metal': 22067541, 'papier': 22067542, 'Carton_gris': 22067543, 'flou': 22067544, 'mal_croppe': 22067545, 'autre_refus': 22067546}]} args : 22067534 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 : ({'Carton_brun': 22067535, 'plastique': 22067536, 'kraft': 22067537, 'environnement': 22067538, 'cartonnette': 22067539, 'Teint_Dans_La_Masse': 22067540, 'metal': 22067541, 'papier': 22067542, 'Carton_gris': 22067543, 'flou': 22067544, 'mal_croppe': 22067545, 'autre_refus': 22067546},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22067534) 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([22067534]) 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.408083438873291 time spend to save output : 8.440017700195312e-05 total time spend for step 3 : 0.40816783905029297 step4:send_mail_cod Wed Apr 16 09:01:00 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 : {1350196058: ('0.05430460917370182',), 1350195965: ('0.05430460917370182',), 1350195891: ('0.05430460917370182',), 1350195814: ('0.05430460917370182',), 1350195730: ('0.05430460917370182',), 1350195660: ('0.05430460917370182',)} input_args_next_step : {1350196058: ()} output_args : {1350196058: ('0.05430460917370182',), 1350195965: ('0.05430460917370182',), 1350195891: ('0.05430460917370182',), 1350195814: ('0.05430460917370182',), 1350195730: ('0.05430460917370182',), 1350195660: ('0.05430460917370182',)} args : 1350196058 depend.output_id : 0 input_args_next_step : {1350196058: ('0.05430460917370182',), 1350195965: ()} output_args : {1350196058: ('0.05430460917370182',), 1350195965: ('0.05430460917370182',), 1350195891: ('0.05430460917370182',), 1350195814: ('0.05430460917370182',), 1350195730: ('0.05430460917370182',), 1350195660: ('0.05430460917370182',)} args : 1350195965 depend.output_id : 0 input_args_next_step : {1350196058: ('0.05430460917370182',), 1350195965: ('0.05430460917370182',), 1350195891: ()} output_args : {1350196058: ('0.05430460917370182',), 1350195965: ('0.05430460917370182',), 1350195891: ('0.05430460917370182',), 1350195814: ('0.05430460917370182',), 1350195730: ('0.05430460917370182',), 1350195660: ('0.05430460917370182',)} args : 1350195891 depend.output_id : 0 input_args_next_step : {1350196058: ('0.05430460917370182',), 1350195965: ('0.05430460917370182',), 1350195891: ('0.05430460917370182',), 1350195814: ()} output_args : {1350196058: ('0.05430460917370182',), 1350195965: ('0.05430460917370182',), 1350195891: ('0.05430460917370182',), 1350195814: ('0.05430460917370182',), 1350195730: ('0.05430460917370182',), 1350195660: ('0.05430460917370182',)} args : 1350195814 depend.output_id : 0 input_args_next_step : {1350196058: ('0.05430460917370182',), 1350195965: ('0.05430460917370182',), 1350195891: ('0.05430460917370182',), 1350195814: ('0.05430460917370182',), 1350195730: ()} output_args : {1350196058: ('0.05430460917370182',), 1350195965: ('0.05430460917370182',), 1350195891: ('0.05430460917370182',), 1350195814: ('0.05430460917370182',), 1350195730: ('0.05430460917370182',), 1350195660: ('0.05430460917370182',)} args : 1350195730 depend.output_id : 0 input_args_next_step : {1350196058: ('0.05430460917370182',), 1350195965: ('0.05430460917370182',), 1350195891: ('0.05430460917370182',), 1350195814: ('0.05430460917370182',), 1350195730: ('0.05430460917370182',), 1350195660: ()} output_args : {1350196058: ('0.05430460917370182',), 1350195965: ('0.05430460917370182',), 1350195891: ('0.05430460917370182',), 1350195814: ('0.05430460917370182',), 1350195730: ('0.05430460917370182',), 1350195660: ('0.05430460917370182',)} args : 1350195660 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 : {22067534: [{'Carton_brun': 22067535, 'plastique': 22067536, 'kraft': 22067537, 'environnement': 22067538, 'cartonnette': 22067539, 'Teint_Dans_La_Masse': 22067540, 'metal': 22067541, 'papier': 22067542, 'Carton_gris': 22067543, 'flou': 22067544, 'mal_croppe': 22067545, 'autre_refus': 22067546}]} input_args_next_step : {1350196058: ('0.05430460917370182',), 1350195965: ('0.05430460917370182',), 1350195891: ('0.05430460917370182',), 1350195814: ('0.05430460917370182',), 1350195730: ('0.05430460917370182',), 1350195660: ('0.05430460917370182',), 22067534: ()} output_args : {22067534: [{'Carton_brun': 22067535, 'plastique': 22067536, 'kraft': 22067537, 'environnement': 22067538, 'cartonnette': 22067539, 'Teint_Dans_La_Masse': 22067540, 'metal': 22067541, 'papier': 22067542, 'Carton_gris': 22067543, 'flou': 22067544, 'mal_croppe': 22067545, 'autre_refus': 22067546}]} args : 22067534 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.05430460917370182',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22067534) 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 (1350196058,1350195965,1350195891,1350195814,1350195730,1350195660) Found this number of photos: 6 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350195660 begin to download photo : 1350195814 begin to download photo : 1350195965 download finish for photo 1350195660 begin to download photo : 1350195730 download finish for photo 1350195965 begin to download photo : 1350196058 download finish for photo 1350195814 begin to download photo : 1350195891 download finish for photo 1350195730 download finish for photo 1350196058 download finish for photo 1350195891 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_P22067534_16-04-2025_09_01_00.pdf 22067536 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=22067536 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350195036: '1744786572_1592193_1350194361_4570961d62526220394950d88c0ed98e_rle_crop_3748574238_0.png', 1350195074: '1744786621_1592751_1350193942_578220f7db870da6f44b232d3f5ff49d_rle_crop_3748579272_0.png', 1350195137: '1744786632_1592898_1350193587_34b63a4b877755441c0aa8015474603b_rle_crop_3748580406_0.png', 1350195138: '1744786632_1592898_1350193587_34b63a4b877755441c0aa8015474603b_rle_crop_3748580397_0.png', 1350195139: '1744786632_1592898_1350193565_ca88f6663f9a034467e1fd58eccbb5f1_rle_crop_3748580424_0.png', 1350195140: '1744786632_1592898_1350193542_acc37ac2fb1817156a967dfefe6c13bb_rle_crop_3748580446_0.png', 1350195141: '1744786632_1592898_1350193512_6569ac06d573eec43af7c1a56678d758_rle_crop_3748580467_0.png', 1350195423: '1744786691_1593690_1350194891_35a88f146e4a5182fcaf235f6ac3d5bc_rle_crop_3748580683_0.png', 1350195424: '1744786691_1593690_1350194878_287ae6248dfeb688aa6b4680e3cee9df_rle_crop_3748580694_0.png', 1350195627: '1744786753_1594316_1350195092_bdf84dd92cc720616142aaf8649d2c9f_rle_crop_3748581010_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/e5be7bcebac0b37b9e3afc67cb8bb8a1_9102853.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c71d9e08d9c9d868fbdadc3f3a410aed_75398347.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/1700d3b124a9d9319a57d9c164cc25f2_99520224.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/db529b6bc9a91e4eee2ecf037df703c2_98878284.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/edb898581e947f8db7e5e298f36f2e71_67937388.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/02e167cbf815828187ff52e7f163c88e_51041725.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/905361c90c5eb10aba8483f7cdd73c68_14484390.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/7fe981866a182999a10e022b54d8c282_99328250.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/d37dfee44a0c37174f53450652eea13f_33849046.png change filename to text .imagette220675361744786860/ imagette220675361744786860/1744786572_1592193_1350194361_4570961d62526220394950d88c0ed98e_rle_crop_3748574238_0.png.png imagette220675361744786860/1744786632_1592898_1350193542_acc37ac2fb1817156a967dfefe6c13bb_rle_crop_3748580446_0.png.png imagette220675361744786860/1744786632_1592898_1350193565_ca88f6663f9a034467e1fd58eccbb5f1_rle_crop_3748580424_0.png.png imagette220675361744786860/1744786621_1592751_1350193942_578220f7db870da6f44b232d3f5ff49d_rle_crop_3748579272_0.png.png imagette220675361744786860/1744786691_1593690_1350194891_35a88f146e4a5182fcaf235f6ac3d5bc_rle_crop_3748580683_0.png.png imagette220675361744786860/1744786632_1592898_1350193587_34b63a4b877755441c0aa8015474603b_rle_crop_3748580397_0.png.png imagette220675361744786860/1744786691_1593690_1350194878_287ae6248dfeb688aa6b4680e3cee9df_rle_crop_3748580694_0.png.png imagette220675361744786860/1744786632_1592898_1350193587_34b63a4b877755441c0aa8015474603b_rle_crop_3748580406_0.png.png imagette220675361744786860/1744786632_1592898_1350193512_6569ac06d573eec43af7c1a56678d758_rle_crop_3748580467_0.png.png imagette220675361744786860/1744786753_1594316_1350195092_bdf84dd92cc720616142aaf8649d2c9f_rle_crop_3748581010_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/f93829f86260fe9209df87f8179ffe7f_52810054.png imagette220675361744786860 22067537 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=22067537 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350195107: '1744786663_2355878_1350193629_6a4f0870132cb62af0993918009821ea_rle_crop_3748580301_0.png', 1350195142: '1744786632_1592898_1350193565_ca88f6663f9a034467e1fd58eccbb5f1_rle_crop_3748580426_0.png', 1350195143: '1744786632_1592898_1350193542_acc37ac2fb1817156a967dfefe6c13bb_rle_crop_3748580441_0.png', 1350195425: '1744786691_1593690_1350194854_b784d3979dcbd65ee8db098aca474e0a_rle_crop_3748580792_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/0d3b69a8ceba610dd145317f4ab16167_20970190.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c9e16fb0040cf0851362e7aea770bf16_84938718.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/7c3100c79327b196391b626b90ecdffb_45838186.png change filename to text .imagette220675371744786861/ imagette220675371744786861/1744786691_1593690_1350194854_b784d3979dcbd65ee8db098aca474e0a_rle_crop_3748580792_0.png.png imagette220675371744786861/1744786632_1592898_1350193565_ca88f6663f9a034467e1fd58eccbb5f1_rle_crop_3748580426_0.png.png imagette220675371744786861/1744786663_2355878_1350193629_6a4f0870132cb62af0993918009821ea_rle_crop_3748580301_0.png.png imagette220675371744786861/1744786632_1592898_1350193542_acc37ac2fb1817156a967dfefe6c13bb_rle_crop_3748580441_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/af072a36138f24d54eb8d707cf6884b6_68032051.png imagette220675371744786861 22067539 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=22067539 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350195034: '1744786572_1592193_1350194273_49518458060dea4680e0962d52847f54_rle_crop_3748574472_0.png', 1350195419: '1744786691_1593690_1350194908_de4558a753ab345aa9fac841e0b1919c_rle_crop_3748580680_0.png', 1350195420: '1744786691_1593690_1350194854_b784d3979dcbd65ee8db098aca474e0a_rle_crop_3748580794_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/73cd3c3be518ec856dd23030af7deb06_98781630.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/2f308411a1ca6670e121e1551bd76346_40270860.png change filename to text .imagette220675391744786861/ imagette220675391744786861/1744786691_1593690_1350194908_de4558a753ab345aa9fac841e0b1919c_rle_crop_3748580680_0.png.png imagette220675391744786861/1744786572_1592193_1350194273_49518458060dea4680e0962d52847f54_rle_crop_3748574472_0.png.png imagette220675391744786861/1744786691_1593690_1350194854_b784d3979dcbd65ee8db098aca474e0a_rle_crop_3748580794_0.png.png imagette220675411744786861/ imagette220675441744786861/ imagette220675451744786861/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/851e07e5cee80f84b48bca9df6eda8d0_56197185.png imagette220675391744786861 22067541 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=22067541 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220675411744786861 22067544 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=22067544 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220675441744786861 22067545 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=22067545 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220675451744786861 22067546 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=22067546 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350195028: '1744786572_1592193_1350194361_4570961d62526220394950d88c0ed98e_rle_crop_3748574233_0.png', 1350195029: '1744786572_1592193_1350194330_1b4750556ee6047701ebf2b80ce18f75_rle_crop_3748574242_0.png', 1350195030: '1744786572_1592193_1350194301_672d7901f29bbdff22813570e0261b9c_rle_crop_3748574371_0.png', 1350195031: '1744786572_1592193_1350194273_49518458060dea4680e0962d52847f54_rle_crop_3748574478_0.png', 1350195032: '1744786572_1592193_1350194273_49518458060dea4680e0962d52847f54_rle_crop_3748574475_0.png', 1350195103: '1744786663_2355878_1350193629_6a4f0870132cb62af0993918009821ea_rle_crop_3748580298_0.png', 1350195117: '1744786632_1592898_1350193969_b5c828a921bd4ba5d1658012119afde0_rle_crop_3748580260_0.png', 1350195118: '1744786632_1592898_1350193615_1d14e106676ecc943723cee2cb779dfa_rle_crop_3748580284_0.png', 1350195119: '1744786632_1592898_1350193615_1d14e106676ecc943723cee2cb779dfa_rle_crop_3748580291_0.png', 1350195120: '1744786632_1592898_1350193615_1d14e106676ecc943723cee2cb779dfa_rle_crop_3748580286_0.png', 1350195121: '1744786632_1592898_1350193615_1d14e106676ecc943723cee2cb779dfa_rle_crop_3748580279_0.png', 1350195122: '1744786632_1592898_1350193587_34b63a4b877755441c0aa8015474603b_rle_crop_3748580403_0.png', 1350195123: '1744786632_1592898_1350193565_ca88f6663f9a034467e1fd58eccbb5f1_rle_crop_3748580428_0.png', 1350195414: '1744786691_1593690_1350194908_de4558a753ab345aa9fac841e0b1919c_rle_crop_3748580675_0.png', 1350195415: '1744786691_1593690_1350194878_287ae6248dfeb688aa6b4680e3cee9df_rle_crop_3748580697_0.png', 1350195880: '1744786784_2358590_1350195039_ec95799ee9aba16ace49fb4c73a25e91_rle_crop_3748581030_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/302d7b326abe96271b62dc252965fad2_44346971.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/10d14f3610cca71bc3bea9531102052c_69760021.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/62024dd1a8c67876fb269ea959f4750d_96366504.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/5603551995c0c4e835a7de863299a753_98862277.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/863742b3d91e0b4ccc802f3c37ce8e35_56822893.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/261f3227ba70f7af089ea466b0c910f7_53690055.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/535ed3bb4cad2e8fe25037cd9f82c1b6_36354822.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/25f85da88cc215d5b57a1275e127c686_60808564.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/b27f693c9c10f36d868d4f9e7e237497_28768636.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/9c5545901b2114d68b9821a3cf71b913_42550205.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/91beebcbd5aa4d09c2de5cccd9fa5d3e_71673194.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/d395760de67944a7a0a04bf081436a6f_14493316.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c2a30fa53c2f8097a2b1a2fe00d45da5_63726831.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c444d1477b04ce3c2bd35f0ee444cc7d_60710664.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/143f52080983ddf9c6362e2b4499e8c6_89349732.png change filename to text .imagette220675461744786861/ imagette220675461744786861/1744786572_1592193_1350194273_49518458060dea4680e0962d52847f54_rle_crop_3748574478_0.png.png imagette220675461744786861/1744786691_1593690_1350194908_de4558a753ab345aa9fac841e0b1919c_rle_crop_3748580675_0.png.png imagette220675461744786861/1744786572_1592193_1350194301_672d7901f29bbdff22813570e0261b9c_rle_crop_3748574371_0.png.png imagette220675461744786861/1744786632_1592898_1350193615_1d14e106676ecc943723cee2cb779dfa_rle_crop_3748580279_0.png.png imagette220675461744786861/1744786632_1592898_1350193615_1d14e106676ecc943723cee2cb779dfa_rle_crop_3748580291_0.png.png imagette220675461744786861/1744786784_2358590_1350195039_ec95799ee9aba16ace49fb4c73a25e91_rle_crop_3748581030_0.png.png imagette220675461744786861/1744786691_1593690_1350194878_287ae6248dfeb688aa6b4680e3cee9df_rle_crop_3748580697_0.png.png imagette220675461744786861/1744786572_1592193_1350194361_4570961d62526220394950d88c0ed98e_rle_crop_3748574233_0.png.png imagette220675461744786861/1744786572_1592193_1350194273_49518458060dea4680e0962d52847f54_rle_crop_3748574475_0.png.png imagette220675461744786861/1744786632_1592898_1350193969_b5c828a921bd4ba5d1658012119afde0_rle_crop_3748580260_0.png.png imagette220675461744786861/1744786632_1592898_1350193565_ca88f6663f9a034467e1fd58eccbb5f1_rle_crop_3748580428_0.png.png imagette220675461744786861/1744786572_1592193_1350194330_1b4750556ee6047701ebf2b80ce18f75_rle_crop_3748574242_0.png.png imagette220675461744786861/1744786632_1592898_1350193615_1d14e106676ecc943723cee2cb779dfa_rle_crop_3748580286_0.png.png imagette220675461744786861/1744786663_2355878_1350193629_6a4f0870132cb62af0993918009821ea_rle_crop_3748580298_0.png.png imagette220675461744786861/1744786632_1592898_1350193587_34b63a4b877755441c0aa8015474603b_rle_crop_3748580403_0.png.png imagette220675461744786861/1744786632_1592898_1350193615_1d14e106676ecc943723cee2cb779dfa_rle_crop_3748580284_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/7419406d883206e146cb3a945b69f308_53054674.png imagette220675461744786861 22067535 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=22067535 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350195133: '1744786632_1592898_1350193969_b5c828a921bd4ba5d1658012119afde0_rle_crop_3748580257_0.png', 1350195134: '1744786632_1592898_1350193969_b5c828a921bd4ba5d1658012119afde0_rle_crop_3748580259_0.png', 1350195135: '1744786632_1592898_1350193615_1d14e106676ecc943723cee2cb779dfa_rle_crop_3748580287_0.png', 1350195136: '1744786632_1592898_1350193565_ca88f6663f9a034467e1fd58eccbb5f1_rle_crop_3748580425_0.png', 1350195421: '1744786691_1593690_1350194854_b784d3979dcbd65ee8db098aca474e0a_rle_crop_3748580797_0.png', 1350195619: '1744786753_1594316_1350195108_6c73afa33e78fa7663c91889da5189d1_rle_crop_3748580908_0.png', 1350195898: '1744786784_2358590_1350195039_ec95799ee9aba16ace49fb4c73a25e91_rle_crop_3748581038_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/5520f3d00effdb5531b02991153333a5_78735448.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/b7c5052f7e5062011fcdab0424323264_73223972.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/35b36b0e99b715d0d10ffbb3ed0787b4_4825586.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/681be952c71a5e2a8b95be3b76dc6510_69603834.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/4b679907e24a7c594b7f09fe9009ee71_22703021.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/799fc1ebe57c9ee0ccf06004a40faf64_26154612.png change filename to text .imagette220675351744786862/ imagette220675351744786862/1744786784_2358590_1350195039_ec95799ee9aba16ace49fb4c73a25e91_rle_crop_3748581038_0.png.png imagette220675351744786862/1744786632_1592898_1350193969_b5c828a921bd4ba5d1658012119afde0_rle_crop_3748580257_0.png.png imagette220675351744786862/1744786691_1593690_1350194854_b784d3979dcbd65ee8db098aca474e0a_rle_crop_3748580797_0.png.png imagette220675351744786862/1744786632_1592898_1350193615_1d14e106676ecc943723cee2cb779dfa_rle_crop_3748580287_0.png.png imagette220675351744786862/1744786632_1592898_1350193565_ca88f6663f9a034467e1fd58eccbb5f1_rle_crop_3748580425_0.png.png imagette220675351744786862/1744786753_1594316_1350195108_6c73afa33e78fa7663c91889da5189d1_rle_crop_3748580908_0.png.png imagette220675351744786862/1744786632_1592898_1350193969_b5c828a921bd4ba5d1658012119afde0_rle_crop_3748580259_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/c434410fc742070f75a3716fe90313a1_82463450.png imagette220675351744786862 22067540 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=22067540 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350195024: '1744786572_1592193_1350194301_672d7901f29bbdff22813570e0261b9c_rle_crop_3748574375_0.png', 1350195114: '1744786632_1592898_1350193565_ca88f6663f9a034467e1fd58eccbb5f1_rle_crop_3748580427_0.png', 1350195401: '1744786691_1593690_1350194891_35a88f146e4a5182fcaf235f6ac3d5bc_rle_crop_3748580684_0.png', 1350195606: '1744786753_1594316_1350195092_bdf84dd92cc720616142aaf8649d2c9f_rle_crop_3748581015_0.png', 1350195861: '1744786784_2358590_1350195039_ec95799ee9aba16ace49fb4c73a25e91_rle_crop_3748581032_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/3af2256c7dc30cd679696e4b9b6139cb_71957018.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/8cc08050440f5059a2fd2ad7d8f53929_91810458.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/b4a6487966cef9dde4b95d173d25e2d8_19625750.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/83da4a58f697c904e2224ff94e0d4876_79786420.png change filename to text .imagette220675401744786862/ imagette220675401744786862/1744786784_2358590_1350195039_ec95799ee9aba16ace49fb4c73a25e91_rle_crop_3748581032_0.png.png imagette220675401744786862/1744786572_1592193_1350194301_672d7901f29bbdff22813570e0261b9c_rle_crop_3748574375_0.png.png imagette220675401744786862/1744786691_1593690_1350194891_35a88f146e4a5182fcaf235f6ac3d5bc_rle_crop_3748580684_0.png.png imagette220675401744786862/1744786632_1592898_1350193565_ca88f6663f9a034467e1fd58eccbb5f1_rle_crop_3748580427_0.png.png imagette220675401744786862/1744786753_1594316_1350195092_bdf84dd92cc720616142aaf8649d2c9f_rle_crop_3748581015_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/1d268379b26c0277125ab5e09d03c31b_55900441.png imagette220675401744786862 22067543 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=22067543 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350195104: '1744786663_2355878_1350193629_6a4f0870132cb62af0993918009821ea_rle_crop_3748580293_0.png', 1350195128: '1744786632_1592898_1350193615_1d14e106676ecc943723cee2cb779dfa_rle_crop_3748580283_0.png', 1350195129: '1744786632_1592898_1350193587_34b63a4b877755441c0aa8015474603b_rle_crop_3748580401_0.png', 1350195130: '1744786632_1592898_1350193512_6569ac06d573eec43af7c1a56678d758_rle_crop_3748580463_0.png', 1350195131: '1744786632_1592898_1350193512_6569ac06d573eec43af7c1a56678d758_rle_crop_3748580466_0.png', 1350195612: '1744786753_1594316_1350195099_fdfdf8b3e201d1ba0cc16fdb141261dc_rle_crop_3748580990_0.png', 1350195613: '1744786753_1594316_1350195099_fdfdf8b3e201d1ba0cc16fdb141261dc_rle_crop_3748580993_0.png', 1350195614: '1744786753_1594316_1350195092_bdf84dd92cc720616142aaf8649d2c9f_rle_crop_3748581012_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/59e244d6520d0fc47a7edd0ff26c4d68_66828126.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/4219496027fa2282e3b2e9f194336f13_35524757.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/eec5c9fa12acbeeeee59e87066fdfce3_10932919.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/0500c2977180e5db6e89463b7c85138f_70869825.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/484b95fb6cc1ed8d08bcc78b45809a5c_30328064.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/2f3b574dd0136df640f72312e6bd320d_67742606.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/3a9db3b31ba648dcabc20f0ea79ebe7a_19923575.png change filename to text .imagette220675431744786863/ imagette220675431744786863/1744786663_2355878_1350193629_6a4f0870132cb62af0993918009821ea_rle_crop_3748580293_0.png.png imagette220675431744786863/1744786753_1594316_1350195099_fdfdf8b3e201d1ba0cc16fdb141261dc_rle_crop_3748580993_0.png.png imagette220675431744786863/1744786632_1592898_1350193512_6569ac06d573eec43af7c1a56678d758_rle_crop_3748580466_0.png.png imagette220675431744786863/1744786632_1592898_1350193587_34b63a4b877755441c0aa8015474603b_rle_crop_3748580401_0.png.png imagette220675431744786863/1744786632_1592898_1350193512_6569ac06d573eec43af7c1a56678d758_rle_crop_3748580463_0.png.png imagette220675431744786863/1744786632_1592898_1350193615_1d14e106676ecc943723cee2cb779dfa_rle_crop_3748580283_0.png.png imagette220675431744786863/1744786753_1594316_1350195099_fdfdf8b3e201d1ba0cc16fdb141261dc_rle_crop_3748580990_0.png.png imagette220675431744786863/1744786753_1594316_1350195092_bdf84dd92cc720616142aaf8649d2c9f_rle_crop_3748581012_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/908f022bf1f85b6af5dad73406602c66_79425615.png imagette220675431744786863 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22067534 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22067548,22067549,22067550,22067551,22067552,22067553,22067554,22067555,22067556,22067557,22067558,22067559?tags=Carton_brun,plastique,kraft,environnement,cartonnette,Teint_Dans_La_Masse,metal,papier,Carton_gris,flou,mal_croppe,autre_refus your option no_mail is active, we will not send the real mail to your client args[1350196058] : ('0.05430460917370182',) no score found for photo 1350196058 We are sending mail with results at report@fotonower.com args[1350195965] : ('0.05430460917370182',) no score found for photo 1350195965 We are sending mail with results at report@fotonower.com args[1350195891] : ('0.05430460917370182',) no score found for photo 1350195891 We are sending mail with results at report@fotonower.com args[1350195814] : ('0.05430460917370182',) no score found for photo 1350195814 We are sending mail with results at report@fotonower.com args[1350195730] : ('0.05430460917370182',) no score found for photo 1350195730 We are sending mail with results at report@fotonower.com args[1350195660] : ('0.05430460917370182',) no score found for photo 1350195660 We are sending mail with results at report@fotonower.com refus_total : 0.05430460917370182 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=22067534 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_P22067534_16-04-2025_09_01_00.pdf results_Auto_P22067534_16-04-2025_09_01_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22067534_16-04-2025_09_01_00.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','22067534','results_Auto_P22067534_16-04-2025_09_01_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22067534_16-04-2025_09_01_00.pdf','pdf','','0.21','0.05430460917370182') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22067534]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350196058, 1350195965, 1350195891, 1350195814, 1350195730, 1350195660] map_info['map_portfolio_photo'] : {22067534: [1350196058, 1350195965, 1350195891, 1350195814, 1350195730, 1350195660, 1350195112, 1350195108, 1350195099, 1350195092, 1350195043, 1350195039, 1350195033, 1350194926, 1350194921, 1350194908, 1350194891, 1350194878, 1350194854, 1350194783, 1350194749, 1350194722, 1350194697, 1350194415, 1350194388, 1350194361, 1350194330, 1350194301, 1350194273, 1350193969, 1350193942, 1350193929, 1350193926, 1350193783, 1350193629, 1350193615, 1350193587, 1350193565, 1350193542, 1350193512, 1350193082]} final : False mtd_id 4302 list_pids : [1350196058, 1350195965, 1350195891, 1350195814, 1350195730, 1350195660] 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, '2725143') ('4302', '22067534', '1350196058', None, None, None, None, None, '2725143') ('4302', None, None, None, None, None, None, None, '2725143') ('4302', '22067534', '1350195965', None, None, None, None, None, '2725143') ('4302', None, None, None, None, None, None, None, '2725143') ('4302', '22067534', '1350195891', None, None, None, None, None, '2725143') ('4302', None, None, None, None, None, None, None, '2725143') ('4302', '22067534', '1350195814', None, None, None, None, None, '2725143') ('4302', None, None, None, None, None, None, None, '2725143') ('4302', '22067534', '1350195730', None, None, None, None, None, '2725143') ('4302', None, None, None, None, None, None, None, '2725143') ('4302', '22067534', '1350195660', None, None, None, None, None, '2725143') 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', '22067534', '1350196058', None, None, None, None, None, '2725143'), ('4302', '22067534', '1350195965', None, None, None, None, None, '2725143'), ('4302', '22067534', '1350195891', None, None, None, None, None, '2725143'), ('4302', '22067534', '1350195814', None, None, None, None, None, '2725143'), ('4302', '22067534', '1350195730', None, None, None, None, None, '2725143'), ('4302', '22067534', '1350195660', None, None, None, None, None, '2725143')] time used for this insertion : 0.07032275199890137 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.28228235244751 time spend to save output : 0.07065153121948242 total time spend for step 4 : 4.352933883666992 step5:split_time_score Wed Apr 16 09:01:04 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 : ['22067534'] 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 : [('22067534',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22067534) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350195660: {'path': 'temp/1744786860_4005233_1350195660_7e5fbf8d012ecd107ae602f5671c886c.jpg', 'extension': 'jpg'}, 1350195730: {'path': 'temp/1744786860_4005233_1350195730_4f096ea504d852599fb71ee59cddfa74.jpg', 'extension': 'jpg'}, 1350195965: {'path': 'temp/1744786860_4005233_1350195965_213aea352277fafa66b3f30f3e56b018.jpg', 'extension': 'jpg'}, 1350196058: {'path': 'temp/1744786860_4005233_1350196058_7578f1c157310bb295d136243f4074cf.jpg', 'extension': 'jpg'}, 1350195814: {'path': 'temp/1744786860_4005233_1350195814_839719920165edb69c35187c827972a9.jpg', 'extension': 'jpg'}, 1350195891: {'path': 'temp/1744786860_4005233_1350195891_e10c1c494abf07f69eb436a067164319.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 = 22067534; (('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 = 22067534 group by h (('08', 41),) 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=22067534 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 (22067534) 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 (22067534) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 16042025 22067534 Nombre de photos uploadées : 41 / 23040 (0%) 16042025 22067534 Nombre de photos taguées (types de déchets): 0 / 41 (0%) 16042025 22067534 Nombre de photos taguées (volume) : 0 / 41 (0%) [{'photo_id': 1350193082, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/9c9b583e13ec01557f731e2349e9e5f9.jpg', 'username': None, 'uploaded_at': 1744786267, 'text': 'image_16042025_08_50_45_010135m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350193629, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/6a4f0870132cb62af0993918009821ea.jpg', 'username': None, 'uploaded_at': 1744786328, 'text': 'image_16042025_08_50_55_010134m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350193615, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/1d14e106676ecc943723cee2cb779dfa.jpg', 'username': None, 'uploaded_at': 1744786328, 'text': 'image_16042025_08_51_05_010151m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1350193587, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/34b63a4b877755441c0aa8015474603b.jpg', 'username': None, 'uploaded_at': 1744786328, 'text': 'image_16042025_08_51_15_010136m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.384185791015625e-06 elapsed_time : order_list_meta_photo_and_scores 1.1205673217773438e-05 ????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002263784408569336 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22067534, '2025-04-16' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1717339,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024435758590698242 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= 1717339 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1717339, 'dashboard_run_id': 1725985, 'mtr_portfolio_id': 22066281, 'dashboard_result_id': 9876901, '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_P22066281_16-04-2025_08_32_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22066364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22066365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22066366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22066367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22066368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22066369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22066370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22066371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22066372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22066373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22066374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22066375, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1725985, 'mtr_portfolio_id': 22066861, 'dashboard_result_id': 9876902, '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_P22066861_16-04-2025_08_52_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22066862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22066863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22066864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22066865, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22066866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22066867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22066868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22066869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22066870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22066871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22066872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22066873, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1725985, 'mtr_portfolio_id': 22067534, 'dashboard_result_id': 9876903, '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_P22067534_16-04-2025_08_59_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22067535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22067536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22067537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22067538, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22067539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22067540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22067541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22067542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22067543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22067544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22067545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22067546, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22066281 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': 2725037, 'mtr_portfolio_id': 22066281, 'created_at': datetime.datetime(2025, 4, 16, 8, 32, 29), 'result': '0.050985913068590946', 'result_long': None, 'result_double': None}] Qualite : 0.050985913068590946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22066281 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22066281_16-04-2025_08_32_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22066281 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_P22066281_16-04-2025_08_32_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22066364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22066365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22066366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22066367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22066368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22066369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22066370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22066371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22066372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22066373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22066374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22066375, 'pht': 3726}}" where mtr_portfolio_id = 22066281 and dashboard_run_id = 1725985 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`=22066281 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9876901, 0.050985913068590946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22066281_16-04-2025_08_32_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22066364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22066365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22066366, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22066367, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22066368, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22066369, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22066370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22066371, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22066372, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22066373, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22066374, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22066375, '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 = 22066861 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': 2725093, 'mtr_portfolio_id': 22066861, 'created_at': datetime.datetime(2025, 4, 16, 8, 52, 57), 'result': '0.04992531875810852', 'result_long': None, 'result_double': None}] Qualite : 0.04992531875810852 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22066861 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22066861_16-04-2025_08_52_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22066861 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_P22066861_16-04-2025_08_52_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22066862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22066863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22066864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22066865, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22066866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22066867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22066868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22066869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22066870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22066871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22066872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22066873, 'pht': 3726}}" where mtr_portfolio_id = 22066861 and dashboard_run_id = 1725985 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`=22066861 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9876902, 0.04992531875810852, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22066861_16-04-2025_08_52_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22066862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22066863, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22066864, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22066865, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22066866, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22066867, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22066868, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22066869, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22066870, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22066871, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22066872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22066873, '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 = 22067534 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': 2725143, 'mtr_portfolio_id': 22067534, 'created_at': datetime.datetime(2025, 4, 16, 9, 0, 59), 'result': '0.05430460917370182', 'result_long': None, 'result_double': None}] Qualite : 0.05430460917370182 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22067534 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22067534_16-04-2025_09_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22067534 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_P22067534_16-04-2025_09_01_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22067535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22067536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22067537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22067538, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22067539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22067540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22067541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22067542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22067543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22067544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22067545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22067546, 'pht': 3726}}" where mtr_portfolio_id = 22067534 and dashboard_run_id = 1725985 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`=22067534 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9876903, 0.05430460917370182, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22067534_16-04-2025_09_01_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22067535, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22067536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22067537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22067538, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22067539, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22067540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22067541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22067542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22067543, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22067544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22067545, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22067546, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22066281,22066861,22067534) result : ((1350186548,), (1350186552,), (1350186555,), (1350186570,), (1350186596,), (1350186753,), (1350187208,), (1350187238,), (1350187472,), (1350187474,), (1350187489,), (1350187647,), (1350187674,), (1350187677,), (1350187721,), (1350187732,), (1350187740,), (1350187751,), (1350187754,), (1350187759,), (1350187793,), (1350187798,), (1350187803,), (1350187809,), (1350187815,), (1350187822,), (1350187906,), (1350187909,), (1350187912,), (1350187916,), (1350187957,), (1350187961,), (1350187966,), (1350187969,), (1350187974,), (1350188046,), (1350188051,), (1350188055,), (1350188060,), (1350188299,), (1350188315,), (1350188320,), (1350188322,), (1350188326,), (1350188329,), (1350188360,), (1350188366,), (1350188372,), (1350188378,), (1350188432,), (1350188443,), (1350188523,), (1350188625,), (1350189000,), (1350189029,), (1350189034,), (1350189043,), (1350189047,), (1350189056,), (1350189207,), (1350189135,), (1350189168,), (1350189181,), (1350189287,), (1350189292,), (1350189296,), (1350189299,), (1350189302,), (1350189308,), (1350189350,), (1350189355,), (1350189360,), (1350189366,), (1350189370,), (1350189436,), (1350189440,), (1350189444,), (1350189449,), (1350189454,), (1350189490,), (1350189496,), (1350189500,), (1350189504,), (1350189599,), (1350189612,), (1350189625,), (1350189633,), (1350189639,), (1350189640,), (1350189748,), (1350189751,), (1350190780,), (1350193111,), (1350193082,), (1350193512,), (1350193542,), (1350193565,), (1350193587,), (1350193615,), (1350193629,), (1350193783,), (1350193926,), (1350193929,), (1350193942,), (1350193969,), (1350194273,), (1350194301,), (1350194330,), (1350194361,), (1350194388,), (1350194415,), (1350194697,), (1350194722,), (1350194749,), (1350194783,), (1350194854,), (1350194878,), (1350194891,), (1350194908,), (1350194921,), (1350194926,), (1350195033,), (1350195039,), (1350195043,), (1350195092,), (1350195099,), (1350195108,), (1350195112,), (1350195660,), (1350195730,), (1350195814,), (1350195891,), (1350195965,), (1350196058,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'16042025': {'nb_upload': 41, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22067534]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350196058, 1350195965, 1350195891, 1350195814, 1350195730, 1350195660] map_info['map_portfolio_photo'] : {22067534: [1350196058, 1350195965, 1350195891, 1350195814, 1350195730, 1350195660, 1350195112, 1350195108, 1350195099, 1350195092, 1350195043, 1350195039, 1350195033, 1350194926, 1350194921, 1350194908, 1350194891, 1350194878, 1350194854, 1350194783, 1350194749, 1350194722, 1350194697, 1350194415, 1350194388, 1350194361, 1350194330, 1350194301, 1350194273, 1350193969, 1350193942, 1350193929, 1350193926, 1350193783, 1350193629, 1350193615, 1350193587, 1350193565, 1350193542, 1350193512, 1350193082]} final : True mtd_id 4302 list_pids : [1350196058, 1350195965, 1350195891, 1350195814, 1350195730, 1350195660] Looping around the photos to save general results len do output : 1 /22067534Didn'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, '2725143') ('4302', '22067534', '1350196058', None, None, None, None, None, '2725143') ('4302', None, None, None, None, None, None, None, '2725143') ('4302', '22067534', '1350195965', None, None, None, None, None, '2725143') ('4302', None, None, None, None, None, None, None, '2725143') ('4302', '22067534', '1350195891', None, None, None, None, None, '2725143') ('4302', None, None, None, None, None, None, None, '2725143') ('4302', '22067534', '1350195814', None, None, None, None, None, '2725143') ('4302', None, None, None, None, None, None, None, '2725143') ('4302', '22067534', '1350195730', None, None, None, None, None, '2725143') ('4302', None, None, None, None, None, None, None, '2725143') ('4302', '22067534', '1350195660', None, None, None, None, None, '2725143') 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, '22067534', 'None', None, None, None, None, '2725143'), ('4302', '22067534', '1350196058', None, None, None, None, None, '2725143'), ('4302', '22067534', '1350195965', None, None, None, None, None, '2725143'), ('4302', '22067534', '1350195891', None, None, None, None, None, '2725143'), ('4302', '22067534', '1350195814', None, None, None, None, None, '2725143'), ('4302', '22067534', '1350195730', None, None, None, None, None, '2725143'), ('4302', '22067534', '1350195660', None, None, None, None, None, '2725143')] time used for this insertion : 0.144667387008667 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.31592607498168945 time spend to save output : 0.1449437141418457 total time spend for step 5 : 0.46086978912353516 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 (2725143) 2.34user 2.37system 0:09.63elapsed 48%CPU (0avgtext+0avgdata 158912maxresident)k 17544inputs+10920outputs (159major+74623minor)pagefaults 0swaps