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 : 46514 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 (2722468) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2722468) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22038581 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2722468'] with mtr_portfolio_ids : ['22038581'] and first list_photo_ids : [] new path : /proc/46514/ Name: python3 Umask: 0002 State: R (running) Tgid: 46514 Ngid: 0 Pid: 46514 PPid: 46513 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 46514 NSpid: 46514 NSpgid: 45409 NSsid: 45409 VmPeak: 1106828 kB VmSize: 1106828 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98780 kB VmRSS: 98780 kB RssAnon: 59768 kB RssFile: 39012 kB RssShmem: 0 kB VmData: 865576 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 564 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: 66 nonvoluntary_ctxt_switches: 360 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '46514', 'Ngid': '0', 'Pid': '46514', 'PPid': '46513', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '46514', 'NSpid': '46514', 'NSpgid': '45409', 'NSsid': '45409', 'VmPeak': '1106828 kB', 'VmSize': '1106828 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98780 kB', 'VmRSS': '98780 kB', 'RssAnon': '59768 kB', 'RssFile': '39012 kB', 'RssShmem': '0 kB', 'VmData': '865576 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '564 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': '66', 'nonvoluntary_ctxt_switches': '360'} ('datou_batch_current', '46514', '1106828', '0', '1106828', '865576', '98780', b'', 'marlene', '2722468') 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 (22038581) 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 (2722468 ) ) 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 (22038581) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1349930322, 'portfolio_id': 22038581}, {'photo_id': 1349930297, 'portfolio_id': 22038581}, {'photo_id': 1349930272, 'portfolio_id': 22038581}, {'photo_id': 1349930238, 'portfolio_id': 22038581}, {'photo_id': 1349930193, 'portfolio_id': 22038581}, {'photo_id': 1349930162, 'portfolio_id': 22038581}, {'photo_id': 1349930023, 'portfolio_id': 22038581}, {'photo_id': 1349929990, 'portfolio_id': 22038581}, {'photo_id': 1349929942, 'portfolio_id': 22038581}, {'photo_id': 1349929903, 'portfolio_id': 22038581}, {'photo_id': 1349929883, 'portfolio_id': 22038581}, {'photo_id': 1349929059, 'portfolio_id': 22038581}, {'photo_id': 1349929030, 'portfolio_id': 22038581}, {'photo_id': 1349929003, 'portfolio_id': 22038581}, {'photo_id': 1349928874, 'portfolio_id': 22038581}, {'photo_id': 1349928870, 'portfolio_id': 22038581}, {'photo_id': 1349928844, 'portfolio_id': 22038581}, {'photo_id': 1349928839, 'portfolio_id': 22038581}, {'photo_id': 1349928814, 'portfolio_id': 22038581}, {'photo_id': 1349928808, 'portfolio_id': 22038581}, {'photo_id': 1349928784, 'portfolio_id': 22038581}, {'photo_id': 1349928781, 'portfolio_id': 22038581}, {'photo_id': 1349928748, 'portfolio_id': 22038581}, {'photo_id': 1349928742, 'portfolio_id': 22038581}, {'photo_id': 1349928080, 'portfolio_id': 22038581}, {'photo_id': 1349928073, 'portfolio_id': 22038581}, {'photo_id': 1349928047, 'portfolio_id': 22038581}, {'photo_id': 1349928042, 'portfolio_id': 22038581}, {'photo_id': 1349928014, 'portfolio_id': 22038581}, {'photo_id': 1349928013, 'portfolio_id': 22038581}] map_portfolio_id_photo_id: {22038581: [1349930322, 1349930297, 1349930272, 1349930238, 1349930193, 1349930162, 1349930023, 1349929990, 1349929942, 1349929903, 1349929883, 1349929059, 1349929030, 1349929003, 1349928874, 1349928870, 1349928844, 1349928839, 1349928814, 1349928808, 1349928784, 1349928781, 1349928748, 1349928742, 1349928080, 1349928073, 1349928047, 1349928042, 1349928014, 1349928013]} ##### 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.015764713287353516 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Tue Apr 15 17:06:28 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 (22038581) 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 : 22038581 get user id for portfolio 22038581 get sub ptf for main ptf 22038581, type 3726 and hashtags ['environnement', 'flou', 'kraft', 'autre_refus', 'Carton_gris', 'cartonnette', 'Teint_Dans_La_Masse', 'metal', 'plastique', 'Carton_brun', 'papier', 'mal_croppe'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22038581 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','flou','kraft','autre_refus','Carton_gris','cartonnette','Teint_Dans_La_Masse','metal','plastique','Carton_brun','papier','mal_croppe')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22038581 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','flou','kraft','autre_refus','Carton_gris','cartonnette','Teint_Dans_La_Masse','metal','plastique','Carton_brun','papier','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 22038581, 'sub_port_id': 22038588, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530586, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 58)}, 'mal_croppe': {'main_port_id': 22038581, 'sub_port_id': 22038589, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530587, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 58)}, 'cartonnette': {'main_port_id': 22038581, 'sub_port_id': 22038590, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530588, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 22038581, 'sub_port_id': 22038591, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530589, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 58)}, 'environnement': {'main_port_id': 22038581, 'sub_port_id': 22038592, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530590, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 58)}, 'flou': {'main_port_id': 22038581, 'sub_port_id': 22038593, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530591, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 58)}, 'kraft': {'main_port_id': 22038581, 'sub_port_id': 22038594, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530592, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 58)}, 'Carton_brun': {'main_port_id': 22038581, 'sub_port_id': 22038595, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530593, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 58)}, 'Carton_gris': {'main_port_id': 22038581, 'sub_port_id': 22038596, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530594, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 58)}, 'plastique': {'main_port_id': 22038581, 'sub_port_id': 22038597, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530595, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 58)}, 'papier': {'main_port_id': 22038581, 'sub_port_id': 22038598, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530596, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 58)}, 'autre_refus': {'main_port_id': 22038581, 'sub_port_id': 22038599, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530597, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22038588 , 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=22038581 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 (22038588) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038581) result : ((1349928013,), (1349928014,), (1349928042,), (1349928047,), (1349928073,), (1349928080,), (1349928742,), (1349928748,), (1349928781,), (1349928784,), (1349928808,), (1349928814,), (1349928839,), (1349928844,), (1349928870,), (1349928874,), (1349929003,), (1349929030,), (1349929059,), (1349929883,), (1349929903,), (1349929942,), (1349929990,), (1349930023,), (1349930162,), (1349930193,), (1349930238,), (1349930272,), (1349930297,), (1349930322,)) 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 22038589 , 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=22038581 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 (22038589) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038581) result : ((1349928013,), (1349928014,), (1349928042,), (1349928047,), (1349928073,), (1349928080,), (1349928742,), (1349928748,), (1349928781,), (1349928784,), (1349928808,), (1349928814,), (1349928839,), (1349928844,), (1349928870,), (1349928874,), (1349929003,), (1349929030,), (1349929059,), (1349929883,), (1349929903,), (1349929942,), (1349929990,), (1349930023,), (1349930162,), (1349930193,), (1349930238,), (1349930272,), (1349930297,), (1349930322,)) 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 22038590 , 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=22038581 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 (22038590) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038581) result : ((1349928013,), (1349928014,), (1349928042,), (1349928047,), (1349928073,), (1349928080,), (1349928742,), (1349928748,), (1349928781,), (1349928784,), (1349928808,), (1349928814,), (1349928839,), (1349928844,), (1349928870,), (1349928874,), (1349929003,), (1349929030,), (1349929059,), (1349929883,), (1349929903,), (1349929942,), (1349929990,), (1349930023,), (1349930162,), (1349930193,), (1349930238,), (1349930272,), (1349930297,), (1349930322,)) 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 22038591 , 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=22038581 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 (22038591) result : ((1349930359,), (1349930360,), (1349930362,), (1349930363,), (1349930364,), (1349930365,), (1349930366,), (1349930367,), (1349930475,), (1349930477,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038581) result : ((1349928013,), (1349928014,), (1349928042,), (1349928047,), (1349928073,), (1349928080,), (1349928742,), (1349928748,), (1349928781,), (1349928784,), (1349928808,), (1349928814,), (1349928839,), (1349928844,), (1349928870,), (1349928874,), (1349929003,), (1349929030,), (1349929059,), (1349929883,), (1349929903,), (1349929942,), (1349929990,), (1349930023,), (1349930162,), (1349930193,), (1349930238,), (1349930272,), (1349930297,), (1349930322,)) 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 22038592 , 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=22038581 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 (22038592) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038581) result : ((1349928013,), (1349928014,), (1349928042,), (1349928047,), (1349928073,), (1349928080,), (1349928742,), (1349928748,), (1349928781,), (1349928784,), (1349928808,), (1349928814,), (1349928839,), (1349928844,), (1349928870,), (1349928874,), (1349929003,), (1349929030,), (1349929059,), (1349929883,), (1349929903,), (1349929942,), (1349929990,), (1349930023,), (1349930162,), (1349930193,), (1349930238,), (1349930272,), (1349930297,), (1349930322,)) 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 22038593 , 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=22038581 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 (22038593) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038581) result : ((1349928013,), (1349928014,), (1349928042,), (1349928047,), (1349928073,), (1349928080,), (1349928742,), (1349928748,), (1349928781,), (1349928784,), (1349928808,), (1349928814,), (1349928839,), (1349928844,), (1349928870,), (1349928874,), (1349929003,), (1349929030,), (1349929059,), (1349929883,), (1349929903,), (1349929942,), (1349929990,), (1349930023,), (1349930162,), (1349930193,), (1349930238,), (1349930272,), (1349930297,), (1349930322,)) 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 22038594 , 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=22038581 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 (22038594) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038581) result : ((1349928013,), (1349928014,), (1349928042,), (1349928047,), (1349928073,), (1349928080,), (1349928742,), (1349928748,), (1349928781,), (1349928784,), (1349928808,), (1349928814,), (1349928839,), (1349928844,), (1349928870,), (1349928874,), (1349929003,), (1349929030,), (1349929059,), (1349929883,), (1349929903,), (1349929942,), (1349929990,), (1349930023,), (1349930162,), (1349930193,), (1349930238,), (1349930272,), (1349930297,), (1349930322,)) 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 22038595 , 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=22038581 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 (22038595) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038581) result : ((1349928013,), (1349928014,), (1349928042,), (1349928047,), (1349928073,), (1349928080,), (1349928742,), (1349928748,), (1349928781,), (1349928784,), (1349928808,), (1349928814,), (1349928839,), (1349928844,), (1349928870,), (1349928874,), (1349929003,), (1349929030,), (1349929059,), (1349929883,), (1349929903,), (1349929942,), (1349929990,), (1349930023,), (1349930162,), (1349930193,), (1349930238,), (1349930272,), (1349930297,), (1349930322,)) 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 22038596 , 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=22038581 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 (22038596) result : ((1349930486,), (1349930488,), (1349930491,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038581) result : ((1349928013,), (1349928014,), (1349928042,), (1349928047,), (1349928073,), (1349928080,), (1349928742,), (1349928748,), (1349928781,), (1349928784,), (1349928808,), (1349928814,), (1349928839,), (1349928844,), (1349928870,), (1349928874,), (1349929003,), (1349929030,), (1349929059,), (1349929883,), (1349929903,), (1349929942,), (1349929990,), (1349930023,), (1349930162,), (1349930193,), (1349930238,), (1349930272,), (1349930297,), (1349930322,)) 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 22038597 , 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=22038581 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 (22038597) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038581) result : ((1349928013,), (1349928014,), (1349928042,), (1349928047,), (1349928073,), (1349928080,), (1349928742,), (1349928748,), (1349928781,), (1349928784,), (1349928808,), (1349928814,), (1349928839,), (1349928844,), (1349928870,), (1349928874,), (1349929003,), (1349929030,), (1349929059,), (1349929883,), (1349929903,), (1349929942,), (1349929990,), (1349930023,), (1349930162,), (1349930193,), (1349930238,), (1349930272,), (1349930297,), (1349930322,)) 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 22038598 , 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=22038581 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 (22038598) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038581) result : ((1349928013,), (1349928014,), (1349928042,), (1349928047,), (1349928073,), (1349928080,), (1349928742,), (1349928748,), (1349928781,), (1349928784,), (1349928808,), (1349928814,), (1349928839,), (1349928844,), (1349928870,), (1349928874,), (1349929003,), (1349929030,), (1349929059,), (1349929883,), (1349929903,), (1349929942,), (1349929990,), (1349930023,), (1349930162,), (1349930193,), (1349930238,), (1349930272,), (1349930297,), (1349930322,)) 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 22038599 , 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=22038581 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 (22038599) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038581) result : ((1349928013,), (1349928014,), (1349928042,), (1349928047,), (1349928073,), (1349928080,), (1349928742,), (1349928748,), (1349928781,), (1349928784,), (1349928808,), (1349928814,), (1349928839,), (1349928844,), (1349928870,), (1349928874,), (1349929003,), (1349929030,), (1349929059,), (1349929883,), (1349929903,), (1349929942,), (1349929990,), (1349930023,), (1349930162,), (1349930193,), (1349930238,), (1349930272,), (1349930297,), (1349930322,)) 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`=22038581 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','flou','kraft','autre_refus','Carton_gris','cartonnette','Teint_Dans_La_Masse','metal','plastique','Carton_brun','papier','mal_croppe')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22038581 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','flou','kraft','autre_refus','Carton_gris','cartonnette','Teint_Dans_La_Masse','metal','plastique','Carton_brun','papier','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 22038581, 'sub_port_id': 22038600, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530598, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 59)}, 'mal_croppe': {'main_port_id': 22038581, 'sub_port_id': 22038601, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530599, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 59)}, 'cartonnette': {'main_port_id': 22038581, 'sub_port_id': 22038602, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530600, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22038581, 'sub_port_id': 22038603, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530601, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 59)}, 'environnement': {'main_port_id': 22038581, 'sub_port_id': 22038604, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530602, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 59)}, 'flou': {'main_port_id': 22038581, 'sub_port_id': 22038605, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530603, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 59)}, 'kraft': {'main_port_id': 22038581, 'sub_port_id': 22038606, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530604, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 59)}, 'Carton_brun': {'main_port_id': 22038581, 'sub_port_id': 22038607, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530605, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 59)}, 'Carton_gris': {'main_port_id': 22038581, 'sub_port_id': 22038608, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530606, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 59)}, 'plastique': {'main_port_id': 22038581, 'sub_port_id': 22038609, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530607, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 59)}, 'papier': {'main_port_id': 22038581, 'sub_port_id': 22038610, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530608, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 59)}, 'autre_refus': {'main_port_id': 22038581, 'sub_port_id': 22038611, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530609, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22038600,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22038588 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22038601,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22038589 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22038602,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22038590 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22038603,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22038591 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22038604,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22038592 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22038605,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22038593 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22038606,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22038594 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22038607,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22038595 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22038608,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22038596 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22038609,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22038597 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22038610,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22038598 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22038611,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22038599 lien utilise dans velours : https://www.fotonower.com/velours/22038600,22038601,22038602,22038603,22038604,22038605,22038606,22038607,22038608,22038609,22038610,22038611?tags=metal,mal_croppe,cartonnette,Teint_Dans_La_Masse,environnement,flou,kraft,Carton_brun,Carton_gris,plastique,papier,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22038581]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349930322, 1349930297, 1349930272, 1349930238, 1349930193, 1349930162, 1349930023, 1349929990, 1349929942, 1349929903, 1349929883] map_info['map_portfolio_photo'] : {22038581: [1349930322, 1349930297, 1349930272, 1349930238, 1349930193, 1349930162, 1349930023, 1349929990, 1349929942, 1349929903, 1349929883, 1349929059, 1349929030, 1349929003, 1349928874, 1349928870, 1349928844, 1349928839, 1349928814, 1349928808, 1349928784, 1349928781, 1349928748, 1349928742, 1349928080, 1349928073, 1349928047, 1349928042, 1349928014, 1349928013]} final : False mtd_id 4302 list_pids : [1349930322, 1349930297, 1349930272, 1349930238, 1349930193, 1349930162, 1349930023, 1349929990, 1349929942, 1349929903, 1349929883] Looping around the photos to save general results len do output : 1 /22038581. 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, '2722468') ('4302', '22038581', '1349930322', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349930297', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349930272', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349930238', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349930193', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349930162', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349930023', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349929990', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349929942', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349929903', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349929883', None, None, None, None, None, '2722468') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22038581', "{'metal': 22038588, 'mal_croppe': 22038589, 'cartonnette': 22038590, 'Teint_Dans_La_Masse': 22038591, 'environnement': 22038592, 'flou': 22038593, 'kraft': 22038594, 'Carton_brun': 22038595, 'Carton_gris': 22038596, 'plastique': 22038597, 'papier': 22038598, 'autre_refus': 22038599}", None, None, None, None, '2722468'), ('4302', '22038581', '1349930322', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349930297', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349930272', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349930238', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349930193', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349930162', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349930023', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349929990', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349929942', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349929903', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349929883', None, None, None, None, None, '2722468')] time used for this insertion : 0.019242048263549805 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.380152940750122 time spend to save output : 0.01963520050048828 total time spend for step 1 : 1.3997881412506104 step2:final Tue Apr 15 17:06:30 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 (22038581) 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 22038581 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349928073,1349928080,1349928042,1349928047,1349928014,1349928013,1349928874,1349928870,1349928839,1349928844,1349928808,1349928814,1349928784,1349928781,1349928748,1349928742,1349929059,1349929030,1349929003,1349930023,1349929990,1349929942,1349929903,1349929883,1349930322,1349930297,1349930272,1349930238,1349930193,1349930162); 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([22038581]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349930322: ('0.03714674984147658',), 1349930297: ('0.03714674984147658',), 1349930272: ('0.03714674984147658',), 1349930238: ('0.03714674984147658',), 1349930193: ('0.03714674984147658',), 1349930162: ('0.03714674984147658',), 1349930023: ('0.03714674984147658',), 1349929990: ('0.03714674984147658',), 1349929942: ('0.03714674984147658',), 1349929903: ('0.03714674984147658',), 1349929883: ('0.03714674984147658',)} new output for save of step final : {1349930322: ('0.03714674984147658',), 1349930297: ('0.03714674984147658',), 1349930272: ('0.03714674984147658',), 1349930238: ('0.03714674984147658',), 1349930193: ('0.03714674984147658',), 1349930162: ('0.03714674984147658',), 1349930023: ('0.03714674984147658',), 1349929990: ('0.03714674984147658',), 1349929942: ('0.03714674984147658',), 1349929903: ('0.03714674984147658',), 1349929883: ('0.03714674984147658',)} [1349930322, 1349930297, 1349930272, 1349930238, 1349930193, 1349930162, 1349930023, 1349929990, 1349929942, 1349929903, 1349929883] map_info['map_portfolio_photo'] : {22038581: [1349930322, 1349930297, 1349930272, 1349930238, 1349930193, 1349930162, 1349930023, 1349929990, 1349929942, 1349929903, 1349929883, 1349929059, 1349929030, 1349929003, 1349928874, 1349928870, 1349928844, 1349928839, 1349928814, 1349928808, 1349928784, 1349928781, 1349928748, 1349928742, 1349928080, 1349928073, 1349928047, 1349928042, 1349928014, 1349928013]} final : False mtd_id 4302 list_pids : [1349930322, 1349930297, 1349930272, 1349930238, 1349930193, 1349930162, 1349930023, 1349929990, 1349929942, 1349929903, 1349929883] Looping around the photos to save general results len do output : 11 /1349930322.Didn't retrieve data . /1349930297.Didn't retrieve data . /1349930272.Didn't retrieve data . /1349930238.Didn't retrieve data . /1349930193.Didn't retrieve data . /1349930162.Didn't retrieve data . /1349930023.Didn't retrieve data . /1349929990.Didn't retrieve data . /1349929942.Didn't retrieve data . /1349929903.Didn't retrieve data . /1349929883.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, '2722468') ('4302', '22038581', '1349930322', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349930297', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349930272', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349930238', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349930193', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349930162', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349930023', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349929990', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349929942', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349929903', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349929883', None, None, None, None, None, '2722468') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '22038581', '1349930322', '0.03714674984147658', None, None, None, None, '2722468'), ('4302', '22038581', '1349930297', '0.03714674984147658', None, None, None, None, '2722468'), ('4302', '22038581', '1349930272', '0.03714674984147658', None, None, None, None, '2722468'), ('4302', '22038581', '1349930238', '0.03714674984147658', None, None, None, None, '2722468'), ('4302', '22038581', '1349930193', '0.03714674984147658', None, None, None, None, '2722468'), ('4302', '22038581', '1349930162', '0.03714674984147658', None, None, None, None, '2722468'), ('4302', '22038581', '1349930023', '0.03714674984147658', None, None, None, None, '2722468'), ('4302', '22038581', '1349929990', '0.03714674984147658', None, None, None, None, '2722468'), ('4302', '22038581', '1349929942', '0.03714674984147658', None, None, None, None, '2722468'), ('4302', '22038581', '1349929903', '0.03714674984147658', None, None, None, None, '2722468'), ('4302', '22038581', '1349929883', '0.03714674984147658', None, None, None, None, '2722468')] time used for this insertion : 0.015493392944335938 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06559419631958008 time spend to save output : 0.016140222549438477 total time spend for step 2 : 0.08173441886901855 step3:velours_tree Tue Apr 15 17:06:30 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 : {22038581: [{'metal': 22038588, 'mal_croppe': 22038589, 'cartonnette': 22038590, 'Teint_Dans_La_Masse': 22038591, 'environnement': 22038592, 'flou': 22038593, 'kraft': 22038594, 'Carton_brun': 22038595, 'Carton_gris': 22038596, 'plastique': 22038597, 'papier': 22038598, 'autre_refus': 22038599}]} input_args_next_step : {22038581: ()} output_args : {22038581: [{'metal': 22038588, 'mal_croppe': 22038589, 'cartonnette': 22038590, 'Teint_Dans_La_Masse': 22038591, 'environnement': 22038592, 'flou': 22038593, 'kraft': 22038594, 'Carton_brun': 22038595, 'Carton_gris': 22038596, 'plastique': 22038597, 'papier': 22038598, 'autre_refus': 22038599}]} args : 22038581 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 : ({'metal': 22038588, 'mal_croppe': 22038589, 'cartonnette': 22038590, 'Teint_Dans_La_Masse': 22038591, 'environnement': 22038592, 'flou': 22038593, 'kraft': 22038594, 'Carton_brun': 22038595, 'Carton_gris': 22038596, 'plastique': 22038597, 'papier': 22038598, 'autre_refus': 22038599},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22038581) 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([22038581]) 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.45985960960388184 time spend to save output : 4.696846008300781e-05 total time spend for step 3 : 0.45990657806396484 step4:send_mail_cod Tue Apr 15 17:06:30 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 : {1349930322: ('0.03714674984147658',), 1349930297: ('0.03714674984147658',), 1349930272: ('0.03714674984147658',), 1349930238: ('0.03714674984147658',), 1349930193: ('0.03714674984147658',), 1349930162: ('0.03714674984147658',), 1349930023: ('0.03714674984147658',), 1349929990: ('0.03714674984147658',), 1349929942: ('0.03714674984147658',), 1349929903: ('0.03714674984147658',), 1349929883: ('0.03714674984147658',)} input_args_next_step : {1349930322: ()} output_args : {1349930322: ('0.03714674984147658',), 1349930297: ('0.03714674984147658',), 1349930272: ('0.03714674984147658',), 1349930238: ('0.03714674984147658',), 1349930193: ('0.03714674984147658',), 1349930162: ('0.03714674984147658',), 1349930023: ('0.03714674984147658',), 1349929990: ('0.03714674984147658',), 1349929942: ('0.03714674984147658',), 1349929903: ('0.03714674984147658',), 1349929883: ('0.03714674984147658',)} args : 1349930322 depend.output_id : 0 input_args_next_step : {1349930322: ('0.03714674984147658',), 1349930297: ()} output_args : {1349930322: ('0.03714674984147658',), 1349930297: ('0.03714674984147658',), 1349930272: ('0.03714674984147658',), 1349930238: ('0.03714674984147658',), 1349930193: ('0.03714674984147658',), 1349930162: ('0.03714674984147658',), 1349930023: ('0.03714674984147658',), 1349929990: ('0.03714674984147658',), 1349929942: ('0.03714674984147658',), 1349929903: ('0.03714674984147658',), 1349929883: ('0.03714674984147658',)} args : 1349930297 depend.output_id : 0 input_args_next_step : {1349930322: ('0.03714674984147658',), 1349930297: ('0.03714674984147658',), 1349930272: ()} output_args : {1349930322: ('0.03714674984147658',), 1349930297: ('0.03714674984147658',), 1349930272: ('0.03714674984147658',), 1349930238: ('0.03714674984147658',), 1349930193: ('0.03714674984147658',), 1349930162: ('0.03714674984147658',), 1349930023: ('0.03714674984147658',), 1349929990: ('0.03714674984147658',), 1349929942: ('0.03714674984147658',), 1349929903: ('0.03714674984147658',), 1349929883: ('0.03714674984147658',)} args : 1349930272 depend.output_id : 0 input_args_next_step : {1349930322: ('0.03714674984147658',), 1349930297: ('0.03714674984147658',), 1349930272: ('0.03714674984147658',), 1349930238: ()} output_args : {1349930322: ('0.03714674984147658',), 1349930297: ('0.03714674984147658',), 1349930272: ('0.03714674984147658',), 1349930238: ('0.03714674984147658',), 1349930193: ('0.03714674984147658',), 1349930162: ('0.03714674984147658',), 1349930023: ('0.03714674984147658',), 1349929990: ('0.03714674984147658',), 1349929942: ('0.03714674984147658',), 1349929903: ('0.03714674984147658',), 1349929883: ('0.03714674984147658',)} args : 1349930238 depend.output_id : 0 input_args_next_step : {1349930322: ('0.03714674984147658',), 1349930297: ('0.03714674984147658',), 1349930272: ('0.03714674984147658',), 1349930238: ('0.03714674984147658',), 1349930193: ()} output_args : {1349930322: ('0.03714674984147658',), 1349930297: ('0.03714674984147658',), 1349930272: ('0.03714674984147658',), 1349930238: ('0.03714674984147658',), 1349930193: ('0.03714674984147658',), 1349930162: ('0.03714674984147658',), 1349930023: ('0.03714674984147658',), 1349929990: ('0.03714674984147658',), 1349929942: ('0.03714674984147658',), 1349929903: ('0.03714674984147658',), 1349929883: ('0.03714674984147658',)} args : 1349930193 depend.output_id : 0 input_args_next_step : {1349930322: ('0.03714674984147658',), 1349930297: ('0.03714674984147658',), 1349930272: ('0.03714674984147658',), 1349930238: ('0.03714674984147658',), 1349930193: ('0.03714674984147658',), 1349930162: ()} output_args : {1349930322: ('0.03714674984147658',), 1349930297: ('0.03714674984147658',), 1349930272: ('0.03714674984147658',), 1349930238: ('0.03714674984147658',), 1349930193: ('0.03714674984147658',), 1349930162: ('0.03714674984147658',), 1349930023: ('0.03714674984147658',), 1349929990: ('0.03714674984147658',), 1349929942: ('0.03714674984147658',), 1349929903: ('0.03714674984147658',), 1349929883: ('0.03714674984147658',)} args : 1349930162 depend.output_id : 0 input_args_next_step : {1349930322: ('0.03714674984147658',), 1349930297: ('0.03714674984147658',), 1349930272: ('0.03714674984147658',), 1349930238: ('0.03714674984147658',), 1349930193: ('0.03714674984147658',), 1349930162: ('0.03714674984147658',), 1349930023: ()} output_args : {1349930322: ('0.03714674984147658',), 1349930297: ('0.03714674984147658',), 1349930272: ('0.03714674984147658',), 1349930238: ('0.03714674984147658',), 1349930193: ('0.03714674984147658',), 1349930162: ('0.03714674984147658',), 1349930023: ('0.03714674984147658',), 1349929990: ('0.03714674984147658',), 1349929942: ('0.03714674984147658',), 1349929903: ('0.03714674984147658',), 1349929883: ('0.03714674984147658',)} args : 1349930023 depend.output_id : 0 input_args_next_step : {1349930322: ('0.03714674984147658',), 1349930297: ('0.03714674984147658',), 1349930272: ('0.03714674984147658',), 1349930238: ('0.03714674984147658',), 1349930193: ('0.03714674984147658',), 1349930162: ('0.03714674984147658',), 1349930023: ('0.03714674984147658',), 1349929990: ()} output_args : {1349930322: ('0.03714674984147658',), 1349930297: ('0.03714674984147658',), 1349930272: ('0.03714674984147658',), 1349930238: ('0.03714674984147658',), 1349930193: ('0.03714674984147658',), 1349930162: ('0.03714674984147658',), 1349930023: ('0.03714674984147658',), 1349929990: ('0.03714674984147658',), 1349929942: ('0.03714674984147658',), 1349929903: ('0.03714674984147658',), 1349929883: ('0.03714674984147658',)} args : 1349929990 depend.output_id : 0 input_args_next_step : {1349930322: ('0.03714674984147658',), 1349930297: ('0.03714674984147658',), 1349930272: ('0.03714674984147658',), 1349930238: ('0.03714674984147658',), 1349930193: ('0.03714674984147658',), 1349930162: ('0.03714674984147658',), 1349930023: ('0.03714674984147658',), 1349929990: ('0.03714674984147658',), 1349929942: ()} output_args : {1349930322: ('0.03714674984147658',), 1349930297: ('0.03714674984147658',), 1349930272: ('0.03714674984147658',), 1349930238: ('0.03714674984147658',), 1349930193: ('0.03714674984147658',), 1349930162: ('0.03714674984147658',), 1349930023: ('0.03714674984147658',), 1349929990: ('0.03714674984147658',), 1349929942: ('0.03714674984147658',), 1349929903: ('0.03714674984147658',), 1349929883: ('0.03714674984147658',)} args : 1349929942 depend.output_id : 0 input_args_next_step : {1349930322: ('0.03714674984147658',), 1349930297: ('0.03714674984147658',), 1349930272: ('0.03714674984147658',), 1349930238: ('0.03714674984147658',), 1349930193: ('0.03714674984147658',), 1349930162: ('0.03714674984147658',), 1349930023: ('0.03714674984147658',), 1349929990: ('0.03714674984147658',), 1349929942: ('0.03714674984147658',), 1349929903: ()} output_args : {1349930322: ('0.03714674984147658',), 1349930297: ('0.03714674984147658',), 1349930272: ('0.03714674984147658',), 1349930238: ('0.03714674984147658',), 1349930193: ('0.03714674984147658',), 1349930162: ('0.03714674984147658',), 1349930023: ('0.03714674984147658',), 1349929990: ('0.03714674984147658',), 1349929942: ('0.03714674984147658',), 1349929903: ('0.03714674984147658',), 1349929883: ('0.03714674984147658',)} args : 1349929903 depend.output_id : 0 input_args_next_step : {1349930322: ('0.03714674984147658',), 1349930297: ('0.03714674984147658',), 1349930272: ('0.03714674984147658',), 1349930238: ('0.03714674984147658',), 1349930193: ('0.03714674984147658',), 1349930162: ('0.03714674984147658',), 1349930023: ('0.03714674984147658',), 1349929990: ('0.03714674984147658',), 1349929942: ('0.03714674984147658',), 1349929903: ('0.03714674984147658',), 1349929883: ()} output_args : {1349930322: ('0.03714674984147658',), 1349930297: ('0.03714674984147658',), 1349930272: ('0.03714674984147658',), 1349930238: ('0.03714674984147658',), 1349930193: ('0.03714674984147658',), 1349930162: ('0.03714674984147658',), 1349930023: ('0.03714674984147658',), 1349929990: ('0.03714674984147658',), 1349929942: ('0.03714674984147658',), 1349929903: ('0.03714674984147658',), 1349929883: ('0.03714674984147658',)} args : 1349929883 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 : {22038581: [{'metal': 22038588, 'mal_croppe': 22038589, 'cartonnette': 22038590, 'Teint_Dans_La_Masse': 22038591, 'environnement': 22038592, 'flou': 22038593, 'kraft': 22038594, 'Carton_brun': 22038595, 'Carton_gris': 22038596, 'plastique': 22038597, 'papier': 22038598, 'autre_refus': 22038599}]} input_args_next_step : {1349930322: ('0.03714674984147658',), 1349930297: ('0.03714674984147658',), 1349930272: ('0.03714674984147658',), 1349930238: ('0.03714674984147658',), 1349930193: ('0.03714674984147658',), 1349930162: ('0.03714674984147658',), 1349930023: ('0.03714674984147658',), 1349929990: ('0.03714674984147658',), 1349929942: ('0.03714674984147658',), 1349929903: ('0.03714674984147658',), 1349929883: ('0.03714674984147658',), 22038581: ()} output_args : {22038581: [{'metal': 22038588, 'mal_croppe': 22038589, 'cartonnette': 22038590, 'Teint_Dans_La_Masse': 22038591, 'environnement': 22038592, 'flou': 22038593, 'kraft': 22038594, 'Carton_brun': 22038595, 'Carton_gris': 22038596, 'plastique': 22038597, 'papier': 22038598, 'autre_refus': 22038599}]} args : 22038581 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 :12, first value : ('0.03714674984147658',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22038581) 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 (1349930322,1349930297,1349930272,1349930238,1349930193,1349930162,1349930023,1349929990,1349929942,1349929903,1349929883) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349929883 begin to download photo : 1349929990 begin to download photo : 1349930193 begin to download photo : 1349930297 download finish for photo 1349929883 begin to download photo : 1349929903 download finish for photo 1349930297 begin to download photo : 1349930322 download finish for photo 1349929990 begin to download photo : 1349930023 download finish for photo 1349930193 begin to download photo : 1349930238 download finish for photo 1349929903 begin to download photo : 1349929942 download finish for photo 1349930322 download finish for photo 1349930023 begin to download photo : 1349930162 download finish for photo 1349930238 begin to download photo : 1349930272 download finish for photo 1349929942 download finish for photo 1349930162 download finish for photo 1349930272 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette220385881744729591/ imagette220385891744729591/ imagette220385901744729591/ imagette220385931744729591/ imagette220385941744729591/ imagette220385971744729591/ imagette220385991744729591/ length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P22038581_15-04-2025_17_06_31.pdf 22038588 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=22038588 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220385881744729591 22038589 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=22038589 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220385891744729591 22038590 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=22038590 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220385901744729591 22038593 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=22038593 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220385931744729591 22038594 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=22038594 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220385941744729591 22038597 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=22038597 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220385971744729591 22038599 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=22038599 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220385991744729591 22038591 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=22038591 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349930359: '1744729421_1090578_1349928080_9c244cbba62715f732236b4ece1317f8_rle_crop_3746876562_0.png', 1349930360: '1744729421_1090578_1349928073_a1257d48d4c50135359ca0dd4c26df09_rle_crop_3746876577_0.png', 1349930362: '1744729421_1090578_1349928047_d7819214ad583cf84aaf83cfffc10d9b_rle_crop_3746876586_0.png', 1349930363: '1744729421_1090578_1349928042_a8f7ca2c49d05d99e08a97bdb0452c2f_rle_crop_3746876595_0.png', 1349930364: '1744729421_1090578_1349928014_c53ce608beb3373f1ed2ccdc89c5f8a6_rle_crop_3746876605_0.png', 1349930365: '1744729421_1090578_1349928014_c53ce608beb3373f1ed2ccdc89c5f8a6_rle_crop_3746876604_0.png', 1349930366: '1744729421_1090578_1349928013_49ffb0e777fed1b66bcfec72b1f68715_rle_crop_3746876622_0.png', 1349930367: '1744729421_1090578_1349928013_49ffb0e777fed1b66bcfec72b1f68715_rle_crop_3746876621_0.png', 1349930475: '1744729543_1092505_1349929030_d9c29682a13808922492e24d7e97dbc4_rle_crop_3746877277_0.png', 1349930477: '1744729543_1092505_1349929003_dfa10b8971a703f5950069f344a2bdbd_rle_crop_3746877295_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/af2e6b18cb961964a88963d17d784810_72090593.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/af2e6b18cb961964a88963d17d784810_58380570.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/6ecd2dbcd2019776d0a62fe5c68bef4a_78113734.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/6ecd2dbcd2019776d0a62fe5c68bef4a_44470662.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/b87ae2c3b628e82ee130d44c95d92056_40137469.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/79b14750c671fc02b0adf877402d0aff_82084030.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/b87ae2c3b628e82ee130d44c95d92056_48682325.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/79b14750c671fc02b0adf877402d0aff_38073035.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/5cef5a29e8ff1bf542e9fb28b805f21c_4285506.png change filename to text .imagette220385911744729591/ imagette220385911744729591/1744729421_1090578_1349928042_a8f7ca2c49d05d99e08a97bdb0452c2f_rle_crop_3746876595_0.png.png imagette220385911744729591/1744729421_1090578_1349928013_49ffb0e777fed1b66bcfec72b1f68715_rle_crop_3746876621_0.png.png imagette220385911744729591/1744729421_1090578_1349928013_49ffb0e777fed1b66bcfec72b1f68715_rle_crop_3746876622_0.png.png imagette220385911744729591/1744729543_1092505_1349929003_dfa10b8971a703f5950069f344a2bdbd_rle_crop_3746877295_0.png.png imagette220385911744729591/1744729421_1090578_1349928014_c53ce608beb3373f1ed2ccdc89c5f8a6_rle_crop_3746876604_0.png.png imagette220385911744729591/1744729421_1090578_1349928073_a1257d48d4c50135359ca0dd4c26df09_rle_crop_3746876577_0.png.png imagette220385911744729591/1744729421_1090578_1349928047_d7819214ad583cf84aaf83cfffc10d9b_rle_crop_3746876586_0.png.png imagette220385911744729591/1744729421_1090578_1349928014_c53ce608beb3373f1ed2ccdc89c5f8a6_rle_crop_3746876605_0.png.png imagette220385911744729591/1744729421_1090578_1349928080_9c244cbba62715f732236b4ece1317f8_rle_crop_3746876562_0.png.png imagette220385911744729591/1744729543_1092505_1349929030_d9c29682a13808922492e24d7e97dbc4_rle_crop_3746877277_0.png.png imagette220385951744729592/ wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/d1e1b2b8abd8fb20a89be45b5fd8125f_10203194.png imagette220385911744729591 22038595 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=22038595 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220385951744729592 22038596 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=22038596 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349930486: '1744729543_1092505_1349929030_d9c29682a13808922492e24d7e97dbc4_rle_crop_3746877274_0.png', 1349930488: '1744729543_1092505_1349929030_d9c29682a13808922492e24d7e97dbc4_rle_crop_3746877278_0.png', 1349930491: '1744729543_1092505_1349929003_dfa10b8971a703f5950069f344a2bdbd_rle_crop_3746877288_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/0d37f67d2e3d6858e4a9f30a588f91bc_34852947.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/cf98750c26221a8bf17c4f104b7d1669_89393194.png change filename to text .imagette220385961744729592/ imagette220385961744729592/1744729543_1092505_1349929030_d9c29682a13808922492e24d7e97dbc4_rle_crop_3746877274_0.png.png imagette220385961744729592/1744729543_1092505_1349929003_dfa10b8971a703f5950069f344a2bdbd_rle_crop_3746877288_0.png.png imagette220385961744729592/1744729543_1092505_1349929030_d9c29682a13808922492e24d7e97dbc4_rle_crop_3746877278_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/e7804ee7e3d0cf067413995dabfd67f8_50279019.png imagette220385961744729592 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22038581 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22038600,22038601,22038602,22038603,22038604,22038605,22038606,22038607,22038608,22038609,22038610,22038611?tags=metal,mal_croppe,cartonnette,Teint_Dans_La_Masse,environnement,flou,kraft,Carton_brun,Carton_gris,plastique,papier,autre_refus your option no_mail is active, we will not send the real mail to your client args[1349930322] : ('0.03714674984147658',) no score found for photo 1349930322 We are sending mail with results at report@fotonower.com args[1349930297] : ('0.03714674984147658',) no score found for photo 1349930297 We are sending mail with results at report@fotonower.com args[1349930272] : ('0.03714674984147658',) no score found for photo 1349930272 We are sending mail with results at report@fotonower.com args[1349930238] : ('0.03714674984147658',) no score found for photo 1349930238 We are sending mail with results at report@fotonower.com args[1349930193] : ('0.03714674984147658',) no score found for photo 1349930193 We are sending mail with results at report@fotonower.com args[1349930162] : ('0.03714674984147658',) no score found for photo 1349930162 We are sending mail with results at report@fotonower.com args[1349930023] : ('0.03714674984147658',) no score found for photo 1349930023 We are sending mail with results at report@fotonower.com args[1349929990] : ('0.03714674984147658',) no score found for photo 1349929990 We are sending mail with results at report@fotonower.com args[1349929942] : ('0.03714674984147658',) no score found for photo 1349929942 We are sending mail with results at report@fotonower.com args[1349929903] : ('0.03714674984147658',) no score found for photo 1349929903 We are sending mail with results at report@fotonower.com args[1349929883] : ('0.03714674984147658',) no score found for photo 1349929883 We are sending mail with results at report@fotonower.com refus_total : 0.03714674984147658 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=22038581 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_P22038581_15-04-2025_17_06_31.pdf results_Auto_P22038581_15-04-2025_17_06_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22038581_15-04-2025_17_06_31.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','22038581','results_Auto_P22038581_15-04-2025_17_06_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22038581_15-04-2025_17_06_31.pdf','pdf','','0.13','0.03714674984147658') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22038581]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349930322, 1349930297, 1349930272, 1349930238, 1349930193, 1349930162, 1349930023, 1349929990, 1349929942, 1349929903, 1349929883] map_info['map_portfolio_photo'] : {22038581: [1349930322, 1349930297, 1349930272, 1349930238, 1349930193, 1349930162, 1349930023, 1349929990, 1349929942, 1349929903, 1349929883, 1349929059, 1349929030, 1349929003, 1349928874, 1349928870, 1349928844, 1349928839, 1349928814, 1349928808, 1349928784, 1349928781, 1349928748, 1349928742, 1349928080, 1349928073, 1349928047, 1349928042, 1349928014, 1349928013]} final : False mtd_id 4302 list_pids : [1349930322, 1349930297, 1349930272, 1349930238, 1349930193, 1349930162, 1349930023, 1349929990, 1349929942, 1349929903, 1349929883] 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, '2722468') ('4302', '22038581', '1349930322', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349930297', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349930272', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349930238', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349930193', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349930162', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349930023', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349929990', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349929942', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349929903', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349929883', None, None, None, None, None, '2722468') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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', '22038581', '1349930322', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349930297', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349930272', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349930238', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349930193', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349930162', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349930023', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349929990', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349929942', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349929903', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349929883', None, None, None, None, None, '2722468')] time used for this insertion : 0.013682842254638672 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.8589158058166504 time spend to save output : 0.01400136947631836 total time spend for step 4 : 2.8729171752929688 step5:split_time_score Tue Apr 15 17:06:33 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 : ['22038581'] 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 : [('22038581',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22038581) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349930297: {'path': 'temp/1744729590_46514_1349930297_3186cb9ab3a0ade44fb87afbee1bd24c.jpg', 'extension': 'jpg'}, 1349930322: {'path': 'temp/1744729590_46514_1349930322_f688a241035943992d4a9b0a191a286c.jpg', 'extension': 'jpg'}, 1349929883: {'path': 'temp/1744729590_46514_1349929883_bf22daf72b2d50daa9f69e73a5b47ac4.jpg', 'extension': 'jpg'}, 1349929903: {'path': 'temp/1744729590_46514_1349929903_6d000ed7b52111e2e1abe608ef4a0f85.jpg', 'extension': 'jpg'}, 1349929942: {'path': 'temp/1744729590_46514_1349929942_2a907850775ad27db5e9a1fef727dbc4.jpg', 'extension': 'jpg'}, 1349929990: {'path': 'temp/1744729590_46514_1349929990_3df521433dc13b7d0b3f60623f7288df.jpg', 'extension': 'jpg'}, 1349930023: {'path': 'temp/1744729590_46514_1349930023_dfb2914d4a9d7613bdb9d6843ad523f2.jpg', 'extension': 'jpg'}, 1349930162: {'path': 'temp/1744729590_46514_1349930162_08ff8728ff4c616b866349c4e9efef97.jpg', 'extension': 'jpg'}, 1349930193: {'path': 'temp/1744729590_46514_1349930193_4593269afbe1c22af654c7b86f19001e.jpg', 'extension': 'jpg'}, 1349930238: {'path': 'temp/1744729590_46514_1349930238_d0066befb32e7b76b443c4fc9e5a60e4.jpg', 'extension': 'jpg'}, 1349930272: {'path': 'temp/1744729590_46514_1349930272_767d75f8cb000c9fe6db5d8b8452c4ba.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 = 22038581; (('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 = 22038581 group by h (('17', 30),) 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=22038581 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 (22038581) 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 (22038581) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 15042025 22038581 Nombre de photos uploadées : 30 / 23040 (0%) 15042025 22038581 Nombre de photos taguées (types de déchets): 0 / 30 (0%) 15042025 22038581 Nombre de photos taguées (volume) : 0 / 30 (0%) [{'photo_id': 1349928073, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/a1257d48d4c50135359ca0dd4c26df09.jpg', 'username': None, 'uploaded_at': 1744729292, 'text': 'image_15042025_17_00_24_10134.jpg'}, {'photo_id': 1349928080, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/9c244cbba62715f732236b4ece1317f8.jpg', 'username': None, 'uploaded_at': 1744729293, 'text': 'image_15042025_17_00_24_10134.jpg'}, {'photo_id': 1349928042, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/a8f7ca2c49d05d99e08a97bdb0452c2f.jpg', 'username': None, 'uploaded_at': 1744729292, 'text': 'image_15042025_17_00_33_9132.jpg'}, {'photo_id': 1349928047, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/d7819214ad583cf84aaf83cfffc10d9b.jpg', 'username': None, 'uploaded_at': 1744729293, 'text': 'image_15042025_17_00_33_9132.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 1.1682510375976562e-05 ?????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0015184879302978516 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22038581, '2025-04-15' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1714503,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.033516645431518555 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= 1714503 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1714503, 'dashboard_run_id': 1723404, 'mtr_portfolio_id': 22036374, 'dashboard_result_id': 9856479, '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_P22036374_15-04-2025_16_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22036379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22036380, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22036381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22036382, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22036383, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22036384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22036385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22036386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22036387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22036388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22036389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22036390, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1723404, 'mtr_portfolio_id': 22037077, 'dashboard_result_id': 9856480, '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_P22037077_15-04-2025_16_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22037084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037090, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1723404, 'mtr_portfolio_id': 22037809, 'dashboard_result_id': 9856481, '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_P22037809_15-04-2025_17_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037817, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037822, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22037823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037825, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037828, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1723404, 'mtr_portfolio_id': 22038581, 'dashboard_result_id': 9856482, '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_P22038581_15-04-2025_17_05_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22038588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22038589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22038590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22038591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22038592, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22038593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22038594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22038595, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22038596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22038597, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22038598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22038599, '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 = 22036374 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': 2722261, 'mtr_portfolio_id': 22036374, 'created_at': datetime.datetime(2025, 4, 15, 16, 32, 59), 'result': '0.050489303939343734', 'result_long': None, 'result_double': None}] Qualite : 0.050489303939343734 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22036374 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22036374_15-04-2025_16_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22036374 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_P22036374_15-04-2025_16_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22036379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22036380, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22036381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22036382, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22036383, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22036384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22036385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22036386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22036387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22036388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22036389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22036390, 'pht': 3726}}" where mtr_portfolio_id = 22036374 and dashboard_run_id = 1723404 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`=22036374 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9856479, 0.050489303939343734, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22036374_15-04-2025_16_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22036379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22036380, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22036381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22036382, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22036383, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22036384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22036385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22036386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22036387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22036388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22036389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22036390, '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 = 22037077 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': 2722323, 'mtr_portfolio_id': 22037077, 'created_at': datetime.datetime(2025, 4, 15, 16, 49), 'result': '0.047122326309306566', 'result_long': None, 'result_double': None}] Qualite : 0.047122326309306566 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22037077 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22037077_15-04-2025_16_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22037077 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_P22037077_15-04-2025_16_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22037084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037090, 'pht': 3726}}" where mtr_portfolio_id = 22037077 and dashboard_run_id = 1723404 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`=22037077 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9856480, 0.047122326309306566, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22037077_15-04-2025_16_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22037084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037090, '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 = 22037809 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': 2722381, 'mtr_portfolio_id': 22037809, 'created_at': datetime.datetime(2025, 4, 15, 17, 2, 59), 'result': '0.036453943759106364', 'result_long': None, 'result_double': None}] Qualite : 0.036453943759106364 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22037809 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22037809_15-04-2025_17_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22037809 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_P22037809_15-04-2025_17_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037817, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037822, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22037823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037825, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037828, 'pht': 3726}}" where mtr_portfolio_id = 22037809 and dashboard_run_id = 1723404 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`=22037809 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9856481, 0.036453943759106364, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22037809_15-04-2025_17_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037817, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037822, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22037823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037825, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037828, '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 = 22038581 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': 2722468, 'mtr_portfolio_id': 22038581, 'created_at': datetime.datetime(2025, 4, 15, 17, 6, 30), 'result': '0.03714674984147658', 'result_long': None, 'result_double': None}] Qualite : 0.03714674984147658 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22038581 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22038581_15-04-2025_17_06_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22038581 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_P22038581_15-04-2025_17_06_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22038588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22038589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22038590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22038591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22038592, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22038593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22038594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22038595, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22038596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22038597, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22038598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22038599, 'pht': 3726}}" where mtr_portfolio_id = 22038581 and dashboard_run_id = 1723404 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`=22038581 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9856482, 0.03714674984147658, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22038581_15-04-2025_17_06_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22038588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22038589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22038590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22038591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22038592, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22038593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22038594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22038595, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22038596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22038597, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22038598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22038599, '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 (22036374,22037077,22037809,22038581) result : ((1349920892,), (1349920896,), (1349920902,), (1349921401,), (1349921425,), (1349921591,), (1349921596,), (1349921623,), (1349921649,), (1349921680,), (1349921932,), (1349921934,), (1349921940,), (1349921967,), (1349921995,), (1349922069,), (1349922072,), (1349922092,), (1349922116,), (1349922469,), (1349922488,), (1349922503,), (1349922557,), (1349922558,), (1349922560,), (1349922567,), (1349922636,), (1349922639,), (1349922642,), (1349922645,), (1349922662,), (1349922667,), (1349922717,), (1349922720,), (1349922724,), (1349922768,), (1349922770,), (1349922773,), (1349922776,), (1349922782,), (1349922789,), (1349922877,), (1349922880,), (1349922899,), (1349922918,), (1349922985,), (1349922987,), (1349922990,), (1349922994,), (1349923000,), (1349923012,), (1349923065,), (1349923071,), (1349923078,), (1349923084,), (1349923090,), (1349923097,), (1349923099,), (1349923102,), (1349923105,), (1349923177,), (1349923181,), (1349923191,), (1349923203,), (1349923215,), (1349923294,), (1349923275,), (1349923278,), (1349923281,), (1349923285,), (1349923487,), (1349923499,), (1349923516,), (1349923521,), (1349923546,), (1349923725,), (1349923751,), (1349923782,), (1349923804,), (1349924170,), (1349924174,), (1349924185,), (1349924187,), (1349924195,), (1349924200,), (1349924243,), (1349924248,), (1349924269,), (1349924271,), (1349924276,), (1349924277,), (1349924288,), (1349924290,), (1349924293,), (1349924295,), (1349924512,), (1349924531,), (1349924534,), (1349924541,), (1349924567,), (1349924783,), (1349924802,), (1349924804,), (1349924816,), (1349924826,), (1349924927,), (1349924952,), (1349924975,), (1349925013,), (1349925045,), (1349925073,), (1349925100,), (1349925123,), (1349925140,), (1349925240,), (1349925245,), (1349925253,), (1349925262,), (1349925270,), (1349925276,), (1349925309,), (1349925313,), (1349925315,), (1349925340,), (1349925344,), (1349925347,), (1349925421,), (1349925423,), (1349925427,), (1349925434,), (1349925441,), (1349925520,), (1349925524,), (1349925529,), (1349925535,), (1349925541,), (1349925619,), (1349925621,), (1349925623,), (1349925625,), (1349925627,), (1349925629,), (1349925634,), (1349925636,), (1349925639,), (1349925643,), (1349925646,), (1349925648,), (1349925669,), (1349925673,), (1349925675,), (1349925816,), (1349925796,), (1349925799,), (1349925804,), (1349925810,), (1349925830,), (1349925833,), (1349925836,), (1349925838,), (1349925896,), (1349925899,), (1349925902,), (1349925905,), (1349925908,), (1349925911,), (1349925965,), (1349925973,), (1349925986,), (1349926111,), (1349926130,), (1349926133,), (1349926136,), (1349926138,), (1349926199,), (1349926202,), (1349926206,), (1349926212,), (1349926344,), (1349926348,), (1349926352,), (1349926357,), (1349926441,), (1349926541,), (1349926547,), (1349926554,), (1349926608,), (1349926614,), (1349926620,), (1349926630,), (1349926636,), (1349926642,), (1349926653,), (1349926667,), (1349926670,), (1349926673,), (1349926733,), (1349926753,), (1349926758,), (1349926761,), (1349926765,), (1349926844,), (1349926854,), (1349926866,), (1349926883,), (1349927302,), (1349927329,), (1349927359,), (1349927374,), (1349927385,), (1349927418,), (1349927445,), (1349927466,), (1349927492,), (1349928105,), (1349928109,), (1349928013,), (1349928014,), (1349928042,), (1349928047,), (1349928073,), (1349928080,), (1349928742,), (1349928748,), (1349928781,), (1349928784,), (1349928808,), (1349928814,), (1349928839,), (1349928844,), (1349928870,), (1349928874,), (1349929003,), (1349929030,), (1349929059,), (1349929883,), (1349929903,), (1349929942,), (1349929990,), (1349930023,), (1349930162,), (1349930193,), (1349930238,), (1349930272,), (1349930297,), (1349930322,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'15042025': {'nb_upload': 30, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22038581]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349930322, 1349930297, 1349930272, 1349930238, 1349930193, 1349930162, 1349930023, 1349929990, 1349929942, 1349929903, 1349929883] map_info['map_portfolio_photo'] : {22038581: [1349930322, 1349930297, 1349930272, 1349930238, 1349930193, 1349930162, 1349930023, 1349929990, 1349929942, 1349929903, 1349929883, 1349929059, 1349929030, 1349929003, 1349928874, 1349928870, 1349928844, 1349928839, 1349928814, 1349928808, 1349928784, 1349928781, 1349928748, 1349928742, 1349928080, 1349928073, 1349928047, 1349928042, 1349928014, 1349928013]} final : True mtd_id 4302 list_pids : [1349930322, 1349930297, 1349930272, 1349930238, 1349930193, 1349930162, 1349930023, 1349929990, 1349929942, 1349929903, 1349929883] Looping around the photos to save general results len do output : 1 /22038581Didn'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, '2722468') ('4302', '22038581', '1349930322', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349930297', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349930272', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349930238', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349930193', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349930162', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349930023', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349929990', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349929942', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349929903', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349929883', None, None, None, None, None, '2722468') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22038581', 'None', None, None, None, None, '2722468'), ('4302', '22038581', '1349930322', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349930297', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349930272', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349930238', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349930193', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349930162', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349930023', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349929990', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349929942', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349929903', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349929883', None, None, None, None, None, '2722468')] time used for this insertion : 0.01669454574584961 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.33663105964660645 time spend to save output : 0.016996145248413086 total time spend for step 5 : 0.35362720489501953 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 (2722468) 2.56user 2.11system 0:08.42elapsed 55%CPU (0avgtext+0avgdata 160144maxresident)k 36664inputs+7912outputs (214major+78258minor)pagefaults 0swaps