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 : 2212893 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 (2689712) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2689712) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21696146 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2689712'] with mtr_portfolio_ids : ['21696146'] and first list_photo_ids : [] new path : /proc/2212893/ Name: python3 Umask: 0002 State: R (running) Tgid: 2212893 Ngid: 0 Pid: 2212893 PPid: 2212891 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2212893 NSpid: 2212893 NSpgid: 2208273 NSsid: 2208273 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97716 kB VmRSS: 97716 kB RssAnon: 59764 kB RssFile: 37952 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 580 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: 53 nonvoluntary_ctxt_switches: 93 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2212893', 'Ngid': '0', 'Pid': '2212893', 'PPid': '2212891', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2212893', 'NSpid': '2212893', 'NSpgid': '2208273', 'NSsid': '2208273', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97716 kB', 'VmRSS': '97716 kB', 'RssAnon': '59764 kB', 'RssFile': '37952 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '580 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': '53', 'nonvoluntary_ctxt_switches': '93'} ('datou_batch_current', '2212893', '1106844', '0', '1106844', '865592', '97716', b'', 'marlene', '2689712') 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 (21696146) 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 (2689712 ) ) 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 (21696146) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1347218154, 'portfolio_id': 21696146}, {'photo_id': 1347218099, 'portfolio_id': 21696146}, {'photo_id': 1347218077, 'portfolio_id': 21696146}, {'photo_id': 1347218057, 'portfolio_id': 21696146}, {'photo_id': 1347217737, 'portfolio_id': 21696146}, {'photo_id': 1347217718, 'portfolio_id': 21696146}, {'photo_id': 1347217699, 'portfolio_id': 21696146}, {'photo_id': 1347217647, 'portfolio_id': 21696146}, {'photo_id': 1347217624, 'portfolio_id': 21696146}, {'photo_id': 1347217600, 'portfolio_id': 21696146}, {'photo_id': 1347217265, 'portfolio_id': 21696146}, {'photo_id': 1347217236, 'portfolio_id': 21696146}, {'photo_id': 1347217187, 'portfolio_id': 21696146}, {'photo_id': 1347217165, 'portfolio_id': 21696146}, {'photo_id': 1347217148, 'portfolio_id': 21696146}, {'photo_id': 1347217011, 'portfolio_id': 21696146}, {'photo_id': 1347216983, 'portfolio_id': 21696146}, {'photo_id': 1347216956, 'portfolio_id': 21696146}, {'photo_id': 1347216929, 'portfolio_id': 21696146}, {'photo_id': 1347216777, 'portfolio_id': 21696146}, {'photo_id': 1347216772, 'portfolio_id': 21696146}, {'photo_id': 1347216767, 'portfolio_id': 21696146}, {'photo_id': 1347216759, 'portfolio_id': 21696146}, {'photo_id': 1347216749, 'portfolio_id': 21696146}, {'photo_id': 1347216746, 'portfolio_id': 21696146}, {'photo_id': 1347216659, 'portfolio_id': 21696146}, {'photo_id': 1347216645, 'portfolio_id': 21696146}, {'photo_id': 1347216640, 'portfolio_id': 21696146}, {'photo_id': 1347216637, 'portfolio_id': 21696146}, {'photo_id': 1347216629, 'portfolio_id': 21696146}, {'photo_id': 1347216514, 'portfolio_id': 21696146}, {'photo_id': 1347216483, 'portfolio_id': 21696146}, {'photo_id': 1347216441, 'portfolio_id': 21696146}, {'photo_id': 1347216406, 'portfolio_id': 21696146}, {'photo_id': 1347216354, 'portfolio_id': 21696146}, {'photo_id': 1347216333, 'portfolio_id': 21696146}, {'photo_id': 1347216150, 'portfolio_id': 21696146}, {'photo_id': 1347216125, 'portfolio_id': 21696146}, {'photo_id': 1347216097, 'portfolio_id': 21696146}, {'photo_id': 1347216079, 'portfolio_id': 21696146}, {'photo_id': 1347216059, 'portfolio_id': 21696146}, {'photo_id': 1347215783, 'portfolio_id': 21696146}, {'photo_id': 1347215733, 'portfolio_id': 21696146}, {'photo_id': 1347215701, 'portfolio_id': 21696146}, {'photo_id': 1347215677, 'portfolio_id': 21696146}, {'photo_id': 1347215653, 'portfolio_id': 21696146}, {'photo_id': 1347215621, 'portfolio_id': 21696146}, {'photo_id': 1347215617, 'portfolio_id': 21696146}, {'photo_id': 1347215613, 'portfolio_id': 21696146}, {'photo_id': 1347215609, 'portfolio_id': 21696146}] map_portfolio_id_photo_id: {21696146: [1347218154, 1347218099, 1347218077, 1347218057, 1347217737, 1347217718, 1347217699, 1347217647, 1347217624, 1347217600, 1347217265, 1347217236, 1347217187, 1347217165, 1347217148, 1347217011, 1347216983, 1347216956, 1347216929, 1347216777, 1347216772, 1347216767, 1347216759, 1347216749, 1347216746, 1347216659, 1347216645, 1347216640, 1347216637, 1347216629, 1347216514, 1347216483, 1347216441, 1347216406, 1347216354, 1347216333, 1347216150, 1347216125, 1347216097, 1347216079, 1347216059, 1347215783, 1347215733, 1347215701, 1347215677, 1347215653, 1347215621, 1347215617, 1347215613, 1347215609]} ##### 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.09114551544189453 #### 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 Mar 25 15:43:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21696146) 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 : 21696146 get user id for portfolio 21696146 get sub ptf for main ptf 21696146, type 3726 and hashtags ['papier', 'plastique', 'metal', 'autre_refus', 'flou', 'cartonnette', 'Carton_gris', 'Teint_Dans_La_Masse', 'kraft', 'environnement', 'mal_croppe', 'Carton_brun'] 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`=21696146 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','metal','autre_refus','flou','cartonnette','Carton_gris','Teint_Dans_La_Masse','kraft','environnement','mal_croppe','Carton_brun')) 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`=21696146 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','metal','autre_refus','flou','cartonnette','Carton_gris','Teint_Dans_La_Masse','kraft','environnement','mal_croppe','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 21696146, 'sub_port_id': 21696171, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14226621, 'last_updated_at': datetime.datetime(2025, 3, 25, 15, 40), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 15, 40), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 15, 35, 58)}, 'kraft': {'main_port_id': 21696146, 'sub_port_id': 21696172, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14226622, 'last_updated_at': datetime.datetime(2025, 3, 25, 15, 40), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 15, 40), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 15, 35, 58)}, 'metal': {'main_port_id': 21696146, 'sub_port_id': 21696173, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14226623, 'last_updated_at': datetime.datetime(2025, 3, 25, 15, 40), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 15, 40), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 15, 35, 58)}, 'flou': {'main_port_id': 21696146, 'sub_port_id': 21696174, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14226624, 'last_updated_at': datetime.datetime(2025, 3, 25, 15, 40), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 15, 40), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 15, 35, 58)}, 'Carton_gris': {'main_port_id': 21696146, 'sub_port_id': 21696175, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14226625, 'last_updated_at': datetime.datetime(2025, 3, 25, 15, 40), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 15, 40), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 15, 35, 58)}, 'Carton_brun': {'main_port_id': 21696146, 'sub_port_id': 21696176, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14226626, 'last_updated_at': datetime.datetime(2025, 3, 25, 15, 40), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 15, 40), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 15, 35, 58)}, 'cartonnette': {'main_port_id': 21696146, 'sub_port_id': 21696177, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14226627, 'last_updated_at': datetime.datetime(2025, 3, 25, 15, 40), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 15, 40), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 15, 35, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21696146, 'sub_port_id': 21696178, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14226628, 'last_updated_at': datetime.datetime(2025, 3, 25, 15, 40), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 15, 40), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 15, 35, 58)}, 'plastique': {'main_port_id': 21696146, 'sub_port_id': 21696179, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14226629, 'last_updated_at': datetime.datetime(2025, 3, 25, 15, 40), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 15, 40), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 15, 35, 58)}, 'mal_croppe': {'main_port_id': 21696146, 'sub_port_id': 21696180, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14226630, 'last_updated_at': datetime.datetime(2025, 3, 25, 15, 40), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 15, 40), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 15, 35, 58)}, 'autre_refus': {'main_port_id': 21696146, 'sub_port_id': 21696181, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14226631, 'last_updated_at': datetime.datetime(2025, 3, 25, 15, 40), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 15, 40), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 15, 35, 58)}, 'papier': {'main_port_id': 21696146, 'sub_port_id': 21696182, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14226632, 'last_updated_at': datetime.datetime(2025, 3, 25, 15, 40), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 15, 40), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 15, 35, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21696171 , 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=21696146 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 (21696171) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21696146) result : ((1347215609,), (1347215613,), (1347215617,), (1347215621,), (1347215653,), (1347215677,), (1347215701,), (1347215733,), (1347215783,), (1347216059,), (1347216079,), (1347216097,), (1347216125,), (1347216150,), (1347216333,), (1347216354,), (1347216406,), (1347216441,), (1347216483,), (1347216514,), (1347216629,), (1347216637,), (1347216640,), (1347216645,), (1347216659,), (1347216746,), (1347216749,), (1347216759,), (1347216767,), (1347216772,), (1347216777,), (1347216929,), (1347216956,), (1347216983,), (1347217011,), (1347217148,), (1347217165,), (1347217187,), (1347217236,), (1347217265,), (1347217600,), (1347217624,), (1347217647,), (1347217699,), (1347217718,), (1347217737,), (1347218057,), (1347218077,), (1347218099,), (1347218154,)) 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 (1347217600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21696172 , 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=21696146 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 (21696172) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21696146) result : ((1347215609,), (1347215613,), (1347215617,), (1347215621,), (1347215653,), (1347215677,), (1347215701,), (1347215733,), (1347215783,), (1347216059,), (1347216079,), (1347216097,), (1347216125,), (1347216150,), (1347216333,), (1347216354,), (1347216406,), (1347216441,), (1347216483,), (1347216514,), (1347216629,), (1347216637,), (1347216640,), (1347216645,), (1347216659,), (1347216746,), (1347216749,), (1347216759,), (1347216767,), (1347216772,), (1347216777,), (1347216929,), (1347216956,), (1347216983,), (1347217011,), (1347217148,), (1347217165,), (1347217187,), (1347217236,), (1347217265,), (1347217600,), (1347217624,), (1347217647,), (1347217699,), (1347217718,), (1347217737,), (1347218057,), (1347218077,), (1347218099,), (1347218154,)) 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 (1347217600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21696173 , 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=21696146 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 (21696173) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21696146) result : ((1347215609,), (1347215613,), (1347215617,), (1347215621,), (1347215653,), (1347215677,), (1347215701,), (1347215733,), (1347215783,), (1347216059,), (1347216079,), (1347216097,), (1347216125,), (1347216150,), (1347216333,), (1347216354,), (1347216406,), (1347216441,), (1347216483,), (1347216514,), (1347216629,), (1347216637,), (1347216640,), (1347216645,), (1347216659,), (1347216746,), (1347216749,), (1347216759,), (1347216767,), (1347216772,), (1347216777,), (1347216929,), (1347216956,), (1347216983,), (1347217011,), (1347217148,), (1347217165,), (1347217187,), (1347217236,), (1347217265,), (1347217600,), (1347217624,), (1347217647,), (1347217699,), (1347217718,), (1347217737,), (1347218057,), (1347218077,), (1347218099,), (1347218154,)) 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 (1347217600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21696174 , 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=21696146 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 (21696174) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21696146) result : ((1347215609,), (1347215613,), (1347215617,), (1347215621,), (1347215653,), (1347215677,), (1347215701,), (1347215733,), (1347215783,), (1347216059,), (1347216079,), (1347216097,), (1347216125,), (1347216150,), (1347216333,), (1347216354,), (1347216406,), (1347216441,), (1347216483,), (1347216514,), (1347216629,), (1347216637,), (1347216640,), (1347216645,), (1347216659,), (1347216746,), (1347216749,), (1347216759,), (1347216767,), (1347216772,), (1347216777,), (1347216929,), (1347216956,), (1347216983,), (1347217011,), (1347217148,), (1347217165,), (1347217187,), (1347217236,), (1347217265,), (1347217600,), (1347217624,), (1347217647,), (1347217699,), (1347217718,), (1347217737,), (1347218057,), (1347218077,), (1347218099,), (1347218154,)) 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 (1347217600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21696175 , 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=21696146 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 (21696175) result : ((1347216357,), (1347216358,), (1347216755,), (1347216756,), (1347217204,), (1347218255,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21696146) result : ((1347215609,), (1347215613,), (1347215617,), (1347215621,), (1347215653,), (1347215677,), (1347215701,), (1347215733,), (1347215783,), (1347216059,), (1347216079,), (1347216097,), (1347216125,), (1347216150,), (1347216333,), (1347216354,), (1347216406,), (1347216441,), (1347216483,), (1347216514,), (1347216629,), (1347216637,), (1347216640,), (1347216645,), (1347216659,), (1347216746,), (1347216749,), (1347216759,), (1347216767,), (1347216772,), (1347216777,), (1347216929,), (1347216956,), (1347216983,), (1347217011,), (1347217148,), (1347217165,), (1347217187,), (1347217236,), (1347217265,), (1347217600,), (1347217624,), (1347217647,), (1347217699,), (1347217718,), (1347217737,), (1347218057,), (1347218077,), (1347218099,), (1347218154,)) 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 (1347217600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21696176 , 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=21696146 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 (21696176) result : ((1347216760,), (1347216761,), (1347217238,), (1347217240,), (1347218263,), (1347218264,), (1347218265,), (1347218266,), (1347218267,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21696146) result : ((1347215609,), (1347215613,), (1347215617,), (1347215621,), (1347215653,), (1347215677,), (1347215701,), (1347215733,), (1347215783,), (1347216059,), (1347216079,), (1347216097,), (1347216125,), (1347216150,), (1347216333,), (1347216354,), (1347216406,), (1347216441,), (1347216483,), (1347216514,), (1347216629,), (1347216637,), (1347216640,), (1347216645,), (1347216659,), (1347216746,), (1347216749,), (1347216759,), (1347216767,), (1347216772,), (1347216777,), (1347216929,), (1347216956,), (1347216983,), (1347217011,), (1347217148,), (1347217165,), (1347217187,), (1347217236,), (1347217265,), (1347217600,), (1347217624,), (1347217647,), (1347217699,), (1347217718,), (1347217737,), (1347218057,), (1347218077,), (1347218099,), (1347218154,)) 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 (1347217600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21696177 , 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=21696146 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 (21696177) result : ((1347216758,), (1347217233,), (1347217234,), (1347218257,), (1347218258,), (1347218259,), (1347218261,), (1347218262,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21696146) result : ((1347215609,), (1347215613,), (1347215617,), (1347215621,), (1347215653,), (1347215677,), (1347215701,), (1347215733,), (1347215783,), (1347216059,), (1347216079,), (1347216097,), (1347216125,), (1347216150,), (1347216333,), (1347216354,), (1347216406,), (1347216441,), (1347216483,), (1347216514,), (1347216629,), (1347216637,), (1347216640,), (1347216645,), (1347216659,), (1347216746,), (1347216749,), (1347216759,), (1347216767,), (1347216772,), (1347216777,), (1347216929,), (1347216956,), (1347216983,), (1347217011,), (1347217148,), (1347217165,), (1347217187,), (1347217236,), (1347217265,), (1347217600,), (1347217624,), (1347217647,), (1347217699,), (1347217718,), (1347217737,), (1347218057,), (1347218077,), (1347218099,), (1347218154,)) 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 (1347217600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21696178 , 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=21696146 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 (21696178) result : ((1347216335,), (1347216336,), (1347216753,), (1347217191,), (1347217193,), (1347217197,), (1347217198,), (1347217929,), (1347218253,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21696146) result : ((1347215609,), (1347215613,), (1347215617,), (1347215621,), (1347215653,), (1347215677,), (1347215701,), (1347215733,), (1347215783,), (1347216059,), (1347216079,), (1347216097,), (1347216125,), (1347216150,), (1347216333,), (1347216354,), (1347216406,), (1347216441,), (1347216483,), (1347216514,), (1347216629,), (1347216637,), (1347216640,), (1347216645,), (1347216659,), (1347216746,), (1347216749,), (1347216759,), (1347216767,), (1347216772,), (1347216777,), (1347216929,), (1347216956,), (1347216983,), (1347217011,), (1347217148,), (1347217165,), (1347217187,), (1347217236,), (1347217265,), (1347217600,), (1347217624,), (1347217647,), (1347217699,), (1347217718,), (1347217737,), (1347218057,), (1347218077,), (1347218099,), (1347218154,)) 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 (1347217600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21696179 , 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=21696146 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 (21696179) result : ((1347216367,), (1347216754,), (1347217247,), (1347218268,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21696146) result : ((1347215609,), (1347215613,), (1347215617,), (1347215621,), (1347215653,), (1347215677,), (1347215701,), (1347215733,), (1347215783,), (1347216059,), (1347216079,), (1347216097,), (1347216125,), (1347216150,), (1347216333,), (1347216354,), (1347216406,), (1347216441,), (1347216483,), (1347216514,), (1347216629,), (1347216637,), (1347216640,), (1347216645,), (1347216659,), (1347216746,), (1347216749,), (1347216759,), (1347216767,), (1347216772,), (1347216777,), (1347216929,), (1347216956,), (1347216983,), (1347217011,), (1347217148,), (1347217165,), (1347217187,), (1347217236,), (1347217265,), (1347217600,), (1347217624,), (1347217647,), (1347217699,), (1347217718,), (1347217737,), (1347218057,), (1347218077,), (1347218099,), (1347218154,)) 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 (1347217600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21696180 , 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=21696146 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 (21696180) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21696146) result : ((1347215609,), (1347215613,), (1347215617,), (1347215621,), (1347215653,), (1347215677,), (1347215701,), (1347215733,), (1347215783,), (1347216059,), (1347216079,), (1347216097,), (1347216125,), (1347216150,), (1347216333,), (1347216354,), (1347216406,), (1347216441,), (1347216483,), (1347216514,), (1347216629,), (1347216637,), (1347216640,), (1347216645,), (1347216659,), (1347216746,), (1347216749,), (1347216759,), (1347216767,), (1347216772,), (1347216777,), (1347216929,), (1347216956,), (1347216983,), (1347217011,), (1347217148,), (1347217165,), (1347217187,), (1347217236,), (1347217265,), (1347217600,), (1347217624,), (1347217647,), (1347217699,), (1347217718,), (1347217737,), (1347218057,), (1347218077,), (1347218099,), (1347218154,)) 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 (1347217600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21696181 , 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=21696146 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 (21696181) result : ((1347216344,), (1347216751,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21696146) result : ((1347215609,), (1347215613,), (1347215617,), (1347215621,), (1347215653,), (1347215677,), (1347215701,), (1347215733,), (1347215783,), (1347216059,), (1347216079,), (1347216097,), (1347216125,), (1347216150,), (1347216333,), (1347216354,), (1347216406,), (1347216441,), (1347216483,), (1347216514,), (1347216629,), (1347216637,), (1347216640,), (1347216645,), (1347216659,), (1347216746,), (1347216749,), (1347216759,), (1347216767,), (1347216772,), (1347216777,), (1347216929,), (1347216956,), (1347216983,), (1347217011,), (1347217148,), (1347217165,), (1347217187,), (1347217236,), (1347217265,), (1347217600,), (1347217624,), (1347217647,), (1347217699,), (1347217718,), (1347217737,), (1347218057,), (1347218077,), (1347218099,), (1347218154,)) 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 (1347217600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21696182 , 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=21696146 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 (21696182) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21696146) result : ((1347215609,), (1347215613,), (1347215617,), (1347215621,), (1347215653,), (1347215677,), (1347215701,), (1347215733,), (1347215783,), (1347216059,), (1347216079,), (1347216097,), (1347216125,), (1347216150,), (1347216333,), (1347216354,), (1347216406,), (1347216441,), (1347216483,), (1347216514,), (1347216629,), (1347216637,), (1347216640,), (1347216645,), (1347216659,), (1347216746,), (1347216749,), (1347216759,), (1347216767,), (1347216772,), (1347216777,), (1347216929,), (1347216956,), (1347216983,), (1347217011,), (1347217148,), (1347217165,), (1347217187,), (1347217236,), (1347217265,), (1347217600,), (1347217624,), (1347217647,), (1347217699,), (1347217718,), (1347217737,), (1347218057,), (1347218077,), (1347218099,), (1347218154,)) 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 (1347217600) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21696146 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','metal','autre_refus','flou','cartonnette','Carton_gris','Teint_Dans_La_Masse','kraft','environnement','mal_croppe','Carton_brun')) 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`=21696146 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','plastique','metal','autre_refus','flou','cartonnette','Carton_gris','Teint_Dans_La_Masse','kraft','environnement','mal_croppe','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 21696146, 'sub_port_id': 21696183, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14226633, 'last_updated_at': datetime.datetime(2025, 3, 25, 15, 36, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 15, 36, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 15, 36, 1)}, 'kraft': {'main_port_id': 21696146, 'sub_port_id': 21696184, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14226634, 'last_updated_at': datetime.datetime(2025, 3, 25, 15, 36, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 15, 36, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 15, 36, 1)}, 'metal': {'main_port_id': 21696146, 'sub_port_id': 21696185, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14226635, 'last_updated_at': datetime.datetime(2025, 3, 25, 15, 36, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 15, 36, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 15, 36, 1)}, 'flou': {'main_port_id': 21696146, 'sub_port_id': 21696186, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14226636, 'last_updated_at': datetime.datetime(2025, 3, 25, 15, 36, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 15, 36, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 15, 36, 1)}, 'Carton_gris': {'main_port_id': 21696146, 'sub_port_id': 21696187, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14226637, 'last_updated_at': datetime.datetime(2025, 3, 25, 15, 36, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 15, 36, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 15, 36, 1)}, 'Carton_brun': {'main_port_id': 21696146, 'sub_port_id': 21696188, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14226638, 'last_updated_at': datetime.datetime(2025, 3, 25, 15, 36, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 15, 36, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 15, 36, 1)}, 'cartonnette': {'main_port_id': 21696146, 'sub_port_id': 21696189, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14226639, 'last_updated_at': datetime.datetime(2025, 3, 25, 15, 36, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 15, 36, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 15, 36, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 21696146, 'sub_port_id': 21696190, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14226640, 'last_updated_at': datetime.datetime(2025, 3, 25, 15, 36, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 15, 36, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 15, 36, 1)}, 'plastique': {'main_port_id': 21696146, 'sub_port_id': 21696191, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14226641, 'last_updated_at': datetime.datetime(2025, 3, 25, 15, 36, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 15, 36, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 15, 36, 1)}, 'mal_croppe': {'main_port_id': 21696146, 'sub_port_id': 21696192, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14226642, 'last_updated_at': datetime.datetime(2025, 3, 25, 15, 36, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 15, 36, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 15, 36, 1)}, 'autre_refus': {'main_port_id': 21696146, 'sub_port_id': 21696193, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14226643, 'last_updated_at': datetime.datetime(2025, 3, 25, 15, 36, 1), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 15, 36, 1), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 15, 36, 1)}, 'papier': {'main_port_id': 21696146, 'sub_port_id': 21696194, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14226644, 'last_updated_at': datetime.datetime(2025, 3, 25, 15, 40), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 15, 40), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 15, 36, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21696183,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21696171 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21696184,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21696172 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21696185,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21696173 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21696186,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21696174 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21696187,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21696175 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21696188,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21696176 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21696189,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21696177 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21696190,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21696178 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21696191,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21696179 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21696192,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21696180 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21696193,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21696181 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21696194,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21696182 lien utilise dans velours : https://www.fotonower.com/velours/21696183,21696184,21696185,21696186,21696187,21696188,21696189,21696190,21696191,21696192,21696193,21696194?tags=environnement,kraft,metal,flou,Carton_gris,Carton_brun,cartonnette,Teint_Dans_La_Masse,plastique,mal_croppe,autre_refus,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21696146]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1347218154, 1347218099, 1347218077, 1347218057, 1347217737, 1347217718, 1347217699, 1347217647, 1347217624, 1347217600] map_info['map_portfolio_photo'] : {21696146: [1347218154, 1347218099, 1347218077, 1347218057, 1347217737, 1347217718, 1347217699, 1347217647, 1347217624, 1347217600, 1347217265, 1347217236, 1347217187, 1347217165, 1347217148, 1347217011, 1347216983, 1347216956, 1347216929, 1347216777, 1347216772, 1347216767, 1347216759, 1347216749, 1347216746, 1347216659, 1347216645, 1347216640, 1347216637, 1347216629, 1347216514, 1347216483, 1347216441, 1347216406, 1347216354, 1347216333, 1347216150, 1347216125, 1347216097, 1347216079, 1347216059, 1347215783, 1347215733, 1347215701, 1347215677, 1347215653, 1347215621, 1347215617, 1347215613, 1347215609]} final : False mtd_id 4302 list_pids : [1347218154, 1347218099, 1347218077, 1347218057, 1347217737, 1347217718, 1347217699, 1347217647, 1347217624, 1347217600] Looping around the photos to save general results len do output : 1 /21696146. 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, '2689712') ('4302', '21696146', '1347218154', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347218099', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347218077', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347218057', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347217737', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347217718', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347217699', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347217647', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347217624', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347217600', None, None, None, None, None, '2689712') 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', None, '21696146', "{'environnement': 21696171, 'kraft': 21696172, 'metal': 21696173, 'flou': 21696174, 'Carton_gris': 21696175, 'Carton_brun': 21696176, 'cartonnette': 21696177, 'Teint_Dans_La_Masse': 21696178, 'plastique': 21696179, 'mal_croppe': 21696180, 'autre_refus': 21696181, 'papier': 21696182}", None, None, None, None, '2689712'), ('4302', '21696146', '1347218154', None, None, None, None, None, '2689712'), ('4302', '21696146', '1347218099', None, None, None, None, None, '2689712'), ('4302', '21696146', '1347218077', None, None, None, None, None, '2689712'), ('4302', '21696146', '1347218057', None, None, None, None, None, '2689712'), ('4302', '21696146', '1347217737', None, None, None, None, None, '2689712'), ('4302', '21696146', '1347217718', None, None, None, None, None, '2689712'), ('4302', '21696146', '1347217699', None, None, None, None, None, '2689712'), ('4302', '21696146', '1347217647', None, None, None, None, None, '2689712'), ('4302', '21696146', '1347217624', None, None, None, None, None, '2689712'), ('4302', '21696146', '1347217600', None, None, None, None, None, '2689712')] time used for this insertion : 0.014949798583984375 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.7180666923522949 time spend to save output : 0.015444278717041016 total time spend for step 1 : 0.7335109710693359 step2:final Tue Mar 25 15:43:01 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 (21696146) 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 21696146 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1347215621,1347215617,1347215613,1347215609,1347215783,1347215733,1347215701,1347215677,1347215653,1347216150,1347216125,1347216097,1347216079,1347216059,1347216514,1347216483,1347216441,1347216406,1347216354,1347216333,1347216659,1347216645,1347216640,1347216637,1347216629,1347216777,1347216772,1347216767,1347216759,1347216749,1347216746,1347217011,1347216983,1347216956,1347216929,1347217265,1347217236,1347217187,1347217165,1347217148,1347217737,1347217718,1347217699,1347217647,1347217624,1347217600,1347218154,1347218099,1347218077,1347218057); 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([21696146]) Inside saveOutput : final : False verbose : True original output for save of step final : {1347218154: ('0.0266178393037155',), 1347218099: ('0.0266178393037155',), 1347218077: ('0.0266178393037155',), 1347218057: ('0.0266178393037155',), 1347217737: ('0.0266178393037155',), 1347217718: ('0.0266178393037155',), 1347217699: ('0.0266178393037155',), 1347217647: ('0.0266178393037155',), 1347217624: ('0.0266178393037155',), 1347217600: ('0.0266178393037155',)} new output for save of step final : {1347218154: ('0.0266178393037155',), 1347218099: ('0.0266178393037155',), 1347218077: ('0.0266178393037155',), 1347218057: ('0.0266178393037155',), 1347217737: ('0.0266178393037155',), 1347217718: ('0.0266178393037155',), 1347217699: ('0.0266178393037155',), 1347217647: ('0.0266178393037155',), 1347217624: ('0.0266178393037155',), 1347217600: ('0.0266178393037155',)} [1347218154, 1347218099, 1347218077, 1347218057, 1347217737, 1347217718, 1347217699, 1347217647, 1347217624, 1347217600] map_info['map_portfolio_photo'] : {21696146: [1347218154, 1347218099, 1347218077, 1347218057, 1347217737, 1347217718, 1347217699, 1347217647, 1347217624, 1347217600, 1347217265, 1347217236, 1347217187, 1347217165, 1347217148, 1347217011, 1347216983, 1347216956, 1347216929, 1347216777, 1347216772, 1347216767, 1347216759, 1347216749, 1347216746, 1347216659, 1347216645, 1347216640, 1347216637, 1347216629, 1347216514, 1347216483, 1347216441, 1347216406, 1347216354, 1347216333, 1347216150, 1347216125, 1347216097, 1347216079, 1347216059, 1347215783, 1347215733, 1347215701, 1347215677, 1347215653, 1347215621, 1347215617, 1347215613, 1347215609]} final : False mtd_id 4302 list_pids : [1347218154, 1347218099, 1347218077, 1347218057, 1347217737, 1347217718, 1347217699, 1347217647, 1347217624, 1347217600] Looping around the photos to save general results len do output : 10 /1347218154.Didn't retrieve data . /1347218099.Didn't retrieve data . /1347218077.Didn't retrieve data . /1347218057.Didn't retrieve data . /1347217737.Didn't retrieve data . /1347217718.Didn't retrieve data . /1347217699.Didn't retrieve data . /1347217647.Didn't retrieve data . /1347217624.Didn't retrieve data . /1347217600.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, '2689712') ('4302', '21696146', '1347218154', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347218099', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347218077', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347218057', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347217737', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347217718', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347217699', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347217647', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347217624', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347217600', None, None, None, None, None, '2689712') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '21696146', '1347218154', '0.0266178393037155', None, None, None, None, '2689712'), ('4302', '21696146', '1347218099', '0.0266178393037155', None, None, None, None, '2689712'), ('4302', '21696146', '1347218077', '0.0266178393037155', None, None, None, None, '2689712'), ('4302', '21696146', '1347218057', '0.0266178393037155', None, None, None, None, '2689712'), ('4302', '21696146', '1347217737', '0.0266178393037155', None, None, None, None, '2689712'), ('4302', '21696146', '1347217718', '0.0266178393037155', None, None, None, None, '2689712'), ('4302', '21696146', '1347217699', '0.0266178393037155', None, None, None, None, '2689712'), ('4302', '21696146', '1347217647', '0.0266178393037155', None, None, None, None, '2689712'), ('4302', '21696146', '1347217624', '0.0266178393037155', None, None, None, None, '2689712'), ('4302', '21696146', '1347217600', '0.0266178393037155', None, None, None, None, '2689712')] time used for this insertion : 0.01572585105895996 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07357215881347656 time spend to save output : 0.01630258560180664 total time spend for step 2 : 0.0898747444152832 step3:velours_tree Tue Mar 25 15:43:01 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 : {21696146: [{'environnement': 21696171, 'kraft': 21696172, 'metal': 21696173, 'flou': 21696174, 'Carton_gris': 21696175, 'Carton_brun': 21696176, 'cartonnette': 21696177, 'Teint_Dans_La_Masse': 21696178, 'plastique': 21696179, 'mal_croppe': 21696180, 'autre_refus': 21696181, 'papier': 21696182}]} input_args_next_step : {21696146: ()} output_args : {21696146: [{'environnement': 21696171, 'kraft': 21696172, 'metal': 21696173, 'flou': 21696174, 'Carton_gris': 21696175, 'Carton_brun': 21696176, 'cartonnette': 21696177, 'Teint_Dans_La_Masse': 21696178, 'plastique': 21696179, 'mal_croppe': 21696180, 'autre_refus': 21696181, 'papier': 21696182}]} args : 21696146 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 : ({'environnement': 21696171, 'kraft': 21696172, 'metal': 21696173, 'flou': 21696174, 'Carton_gris': 21696175, 'Carton_brun': 21696176, 'cartonnette': 21696177, 'Teint_Dans_La_Masse': 21696178, 'plastique': 21696179, 'mal_croppe': 21696180, 'autre_refus': 21696181, 'papier': 21696182},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21696146) 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([21696146]) 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.4771699905395508 time spend to save output : 5.3882598876953125e-05 total time spend for step 3 : 0.47722387313842773 step4:send_mail_cod Tue Mar 25 15:43:02 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 : {1347218154: ('0.0266178393037155',), 1347218099: ('0.0266178393037155',), 1347218077: ('0.0266178393037155',), 1347218057: ('0.0266178393037155',), 1347217737: ('0.0266178393037155',), 1347217718: ('0.0266178393037155',), 1347217699: ('0.0266178393037155',), 1347217647: ('0.0266178393037155',), 1347217624: ('0.0266178393037155',), 1347217600: ('0.0266178393037155',)} input_args_next_step : {1347218154: ()} output_args : {1347218154: ('0.0266178393037155',), 1347218099: ('0.0266178393037155',), 1347218077: ('0.0266178393037155',), 1347218057: ('0.0266178393037155',), 1347217737: ('0.0266178393037155',), 1347217718: ('0.0266178393037155',), 1347217699: ('0.0266178393037155',), 1347217647: ('0.0266178393037155',), 1347217624: ('0.0266178393037155',), 1347217600: ('0.0266178393037155',)} args : 1347218154 depend.output_id : 0 input_args_next_step : {1347218154: ('0.0266178393037155',), 1347218099: ()} output_args : {1347218154: ('0.0266178393037155',), 1347218099: ('0.0266178393037155',), 1347218077: ('0.0266178393037155',), 1347218057: ('0.0266178393037155',), 1347217737: ('0.0266178393037155',), 1347217718: ('0.0266178393037155',), 1347217699: ('0.0266178393037155',), 1347217647: ('0.0266178393037155',), 1347217624: ('0.0266178393037155',), 1347217600: ('0.0266178393037155',)} args : 1347218099 depend.output_id : 0 input_args_next_step : {1347218154: ('0.0266178393037155',), 1347218099: ('0.0266178393037155',), 1347218077: ()} output_args : {1347218154: ('0.0266178393037155',), 1347218099: ('0.0266178393037155',), 1347218077: ('0.0266178393037155',), 1347218057: ('0.0266178393037155',), 1347217737: ('0.0266178393037155',), 1347217718: ('0.0266178393037155',), 1347217699: ('0.0266178393037155',), 1347217647: ('0.0266178393037155',), 1347217624: ('0.0266178393037155',), 1347217600: ('0.0266178393037155',)} args : 1347218077 depend.output_id : 0 input_args_next_step : {1347218154: ('0.0266178393037155',), 1347218099: ('0.0266178393037155',), 1347218077: ('0.0266178393037155',), 1347218057: ()} output_args : {1347218154: ('0.0266178393037155',), 1347218099: ('0.0266178393037155',), 1347218077: ('0.0266178393037155',), 1347218057: ('0.0266178393037155',), 1347217737: ('0.0266178393037155',), 1347217718: ('0.0266178393037155',), 1347217699: ('0.0266178393037155',), 1347217647: ('0.0266178393037155',), 1347217624: ('0.0266178393037155',), 1347217600: ('0.0266178393037155',)} args : 1347218057 depend.output_id : 0 input_args_next_step : {1347218154: ('0.0266178393037155',), 1347218099: ('0.0266178393037155',), 1347218077: ('0.0266178393037155',), 1347218057: ('0.0266178393037155',), 1347217737: ()} output_args : {1347218154: ('0.0266178393037155',), 1347218099: ('0.0266178393037155',), 1347218077: ('0.0266178393037155',), 1347218057: ('0.0266178393037155',), 1347217737: ('0.0266178393037155',), 1347217718: ('0.0266178393037155',), 1347217699: ('0.0266178393037155',), 1347217647: ('0.0266178393037155',), 1347217624: ('0.0266178393037155',), 1347217600: ('0.0266178393037155',)} args : 1347217737 depend.output_id : 0 input_args_next_step : {1347218154: ('0.0266178393037155',), 1347218099: ('0.0266178393037155',), 1347218077: ('0.0266178393037155',), 1347218057: ('0.0266178393037155',), 1347217737: ('0.0266178393037155',), 1347217718: ()} output_args : {1347218154: ('0.0266178393037155',), 1347218099: ('0.0266178393037155',), 1347218077: ('0.0266178393037155',), 1347218057: ('0.0266178393037155',), 1347217737: ('0.0266178393037155',), 1347217718: ('0.0266178393037155',), 1347217699: ('0.0266178393037155',), 1347217647: ('0.0266178393037155',), 1347217624: ('0.0266178393037155',), 1347217600: ('0.0266178393037155',)} args : 1347217718 depend.output_id : 0 input_args_next_step : {1347218154: ('0.0266178393037155',), 1347218099: ('0.0266178393037155',), 1347218077: ('0.0266178393037155',), 1347218057: ('0.0266178393037155',), 1347217737: ('0.0266178393037155',), 1347217718: ('0.0266178393037155',), 1347217699: ()} output_args : {1347218154: ('0.0266178393037155',), 1347218099: ('0.0266178393037155',), 1347218077: ('0.0266178393037155',), 1347218057: ('0.0266178393037155',), 1347217737: ('0.0266178393037155',), 1347217718: ('0.0266178393037155',), 1347217699: ('0.0266178393037155',), 1347217647: ('0.0266178393037155',), 1347217624: ('0.0266178393037155',), 1347217600: ('0.0266178393037155',)} args : 1347217699 depend.output_id : 0 input_args_next_step : {1347218154: ('0.0266178393037155',), 1347218099: ('0.0266178393037155',), 1347218077: ('0.0266178393037155',), 1347218057: ('0.0266178393037155',), 1347217737: ('0.0266178393037155',), 1347217718: ('0.0266178393037155',), 1347217699: ('0.0266178393037155',), 1347217647: ()} output_args : {1347218154: ('0.0266178393037155',), 1347218099: ('0.0266178393037155',), 1347218077: ('0.0266178393037155',), 1347218057: ('0.0266178393037155',), 1347217737: ('0.0266178393037155',), 1347217718: ('0.0266178393037155',), 1347217699: ('0.0266178393037155',), 1347217647: ('0.0266178393037155',), 1347217624: ('0.0266178393037155',), 1347217600: ('0.0266178393037155',)} args : 1347217647 depend.output_id : 0 input_args_next_step : {1347218154: ('0.0266178393037155',), 1347218099: ('0.0266178393037155',), 1347218077: ('0.0266178393037155',), 1347218057: ('0.0266178393037155',), 1347217737: ('0.0266178393037155',), 1347217718: ('0.0266178393037155',), 1347217699: ('0.0266178393037155',), 1347217647: ('0.0266178393037155',), 1347217624: ()} output_args : {1347218154: ('0.0266178393037155',), 1347218099: ('0.0266178393037155',), 1347218077: ('0.0266178393037155',), 1347218057: ('0.0266178393037155',), 1347217737: ('0.0266178393037155',), 1347217718: ('0.0266178393037155',), 1347217699: ('0.0266178393037155',), 1347217647: ('0.0266178393037155',), 1347217624: ('0.0266178393037155',), 1347217600: ('0.0266178393037155',)} args : 1347217624 depend.output_id : 0 input_args_next_step : {1347218154: ('0.0266178393037155',), 1347218099: ('0.0266178393037155',), 1347218077: ('0.0266178393037155',), 1347218057: ('0.0266178393037155',), 1347217737: ('0.0266178393037155',), 1347217718: ('0.0266178393037155',), 1347217699: ('0.0266178393037155',), 1347217647: ('0.0266178393037155',), 1347217624: ('0.0266178393037155',), 1347217600: ()} output_args : {1347218154: ('0.0266178393037155',), 1347218099: ('0.0266178393037155',), 1347218077: ('0.0266178393037155',), 1347218057: ('0.0266178393037155',), 1347217737: ('0.0266178393037155',), 1347217718: ('0.0266178393037155',), 1347217699: ('0.0266178393037155',), 1347217647: ('0.0266178393037155',), 1347217624: ('0.0266178393037155',), 1347217600: ('0.0266178393037155',)} args : 1347217600 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 : {21696146: [{'environnement': 21696171, 'kraft': 21696172, 'metal': 21696173, 'flou': 21696174, 'Carton_gris': 21696175, 'Carton_brun': 21696176, 'cartonnette': 21696177, 'Teint_Dans_La_Masse': 21696178, 'plastique': 21696179, 'mal_croppe': 21696180, 'autre_refus': 21696181, 'papier': 21696182}]} input_args_next_step : {1347218154: ('0.0266178393037155',), 1347218099: ('0.0266178393037155',), 1347218077: ('0.0266178393037155',), 1347218057: ('0.0266178393037155',), 1347217737: ('0.0266178393037155',), 1347217718: ('0.0266178393037155',), 1347217699: ('0.0266178393037155',), 1347217647: ('0.0266178393037155',), 1347217624: ('0.0266178393037155',), 1347217600: ('0.0266178393037155',), 21696146: ()} output_args : {21696146: [{'environnement': 21696171, 'kraft': 21696172, 'metal': 21696173, 'flou': 21696174, 'Carton_gris': 21696175, 'Carton_brun': 21696176, 'cartonnette': 21696177, 'Teint_Dans_La_Masse': 21696178, 'plastique': 21696179, 'mal_croppe': 21696180, 'autre_refus': 21696181, 'papier': 21696182}]} args : 21696146 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 :11, first value : ('0.0266178393037155',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21696146) 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 (1347218154,1347218099,1347218077,1347218057,1347217737,1347217718,1347217699,1347217647,1347217624,1347217600) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1347217600 begin to download photo : 1347217699 begin to download photo : 1347218057 begin to download photo : 1347218154 download finish for photo 1347218154 download finish for photo 1347217699 begin to download photo : 1347217718 download finish for photo 1347217600 begin to download photo : 1347217624 download finish for photo 1347218057 begin to download photo : 1347218077 download finish for photo 1347217718 begin to download photo : 1347217737 download finish for photo 1347218077 begin to download photo : 1347218099 download finish for photo 1347217624 begin to download photo : 1347217647 download finish for photo 1347217737 download finish for photo 1347218099 download finish for photo 1347217647 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette216961721742913782/ imagette216961731742913782/ imagette216961741742913782/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P21696146_25-03-2025_15_43_02.pdf 21696172 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=21696172 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216961721742913782 21696173 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=21696173 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216961731742913782 21696174 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=21696174 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216961741742913782 21696177 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=21696177 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347216758: '1742913403_2376870_1347215701_e2e10f7ebab7b13499ba8f3aa828fbf7_rle_crop_3729292212_0.png', 1347217233: '1742913523_2380636_1347216659_8b63526c0a99be0d734d92978ad07091_rle_crop_3729297208_0.png', 1347217234: '1742913523_2380636_1347216333_233c40c9b31942da679e1e87a87b20f4_rle_crop_3729297309_0.png', 1347218257: '1742913649_2384047_1347217011_74a6f75dddeb7498f72368effaf8ae94_rle_crop_3729301868_0.png', 1347218258: '1742913649_2384047_1347217011_74a6f75dddeb7498f72368effaf8ae94_rle_crop_3729301865_0.png', 1347218259: '1742913649_2384047_1347217011_74a6f75dddeb7498f72368effaf8ae94_rle_crop_3729301876_0.png', 1347218261: '1742913649_2384047_1347216772_7556a480105b8652b16fe754b9ae4f26_rle_crop_3729301885_0.png', 1347218262: '1742913649_2384047_1347216749_e8647baabaebd3b1512f0ff26c20722b_rle_crop_3729302356_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/bbb181d9e659b7cad05e48db4aaa343e_40110223.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/3dcf4a23a8892cc9529ec051c0e2787c_66232268.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/0b924480c541e697c3a4121c040d0b63_75098158.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/ef7126fe0962f7290263a0bc44443857_27945446.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/6da41bd26cb830e7964eefac8cfd9826_93304128.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/4dc7a34fe8e8ebefcf98d262458e7d3d_74019727.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/2e46283762555cf76ec5e9d8f1267300_99194070.png change filename to text .imagette216961771742913782/ imagette216961771742913782/1742913649_2384047_1347217011_74a6f75dddeb7498f72368effaf8ae94_rle_crop_3729301876_0.png.png imagette216961771742913782/1742913523_2380636_1347216333_233c40c9b31942da679e1e87a87b20f4_rle_crop_3729297309_0.png.png imagette216961771742913782/1742913403_2376870_1347215701_e2e10f7ebab7b13499ba8f3aa828fbf7_rle_crop_3729292212_0.png.png imagette216961771742913782/1742913649_2384047_1347217011_74a6f75dddeb7498f72368effaf8ae94_rle_crop_3729301865_0.png.png imagette216961771742913782/1742913649_2384047_1347216749_e8647baabaebd3b1512f0ff26c20722b_rle_crop_3729302356_0.png.png imagette216961771742913782/1742913649_2384047_1347216772_7556a480105b8652b16fe754b9ae4f26_rle_crop_3729301885_0.png.png imagette216961771742913782/1742913523_2380636_1347216659_8b63526c0a99be0d734d92978ad07091_rle_crop_3729297208_0.png.png imagette216961771742913782/1742913649_2384047_1347217011_74a6f75dddeb7498f72368effaf8ae94_rle_crop_3729301868_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/6a18f3f78358c99176d6fc3fd9e6cb14_73918603.png imagette216961771742913782 21696179 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=21696179 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347216367: '1742913271_647035_1347215609_4e1184d3c0dfaff98500f04ecd8d9310_rle_crop_3729287329_0.png', 1347216754: '1742913374_648414_1347216079_9bf4a176ac9be8e7bfaafba65981e889_rle_crop_3729292263_0.png', 1347217247: '1742913523_2380636_1347216333_233c40c9b31942da679e1e87a87b20f4_rle_crop_3729297313_0.png', 1347218268: '1742913649_2384047_1347217011_74a6f75dddeb7498f72368effaf8ae94_rle_crop_3729301877_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/5fae9267cd592c2ca149cce2bb648ea0_40047025.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/4bfb8054a0ffa57f8c4018157ff93c97_73355864.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/76a7185f377e769c0780da15fcf3c0c0_52282811.png change filename to text .imagette216961791742913783/ imagette216961791742913783/1742913271_647035_1347215609_4e1184d3c0dfaff98500f04ecd8d9310_rle_crop_3729287329_0.png.png imagette216961791742913783/1742913649_2384047_1347217011_74a6f75dddeb7498f72368effaf8ae94_rle_crop_3729301877_0.png.png imagette216961791742913783/1742913374_648414_1347216079_9bf4a176ac9be8e7bfaafba65981e889_rle_crop_3729292263_0.png.png imagette216961791742913783/1742913523_2380636_1347216333_233c40c9b31942da679e1e87a87b20f4_rle_crop_3729297313_0.png.png imagette216961801742913783/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/dfcf26bf60305acd5bd2e2f09ef45663_7225833.png imagette216961791742913783 21696180 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=21696180 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216961801742913783 21696181 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=21696181 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347216344: '1742913271_647035_1347215617_9b23d2203db5606da496d3158e1c4b7d_rle_crop_3729287235_0.png', 1347216751: '1742913403_2376870_1347215653_8b2f47c774fc02057a8b10c9372a69a5_rle_crop_3729292252_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/e88c8a64bdc8c8d75532af5d74fc4ec6_63448289.png change filename to text .imagette216961811742913783/ imagette216961811742913783/1742913271_647035_1347215617_9b23d2203db5606da496d3158e1c4b7d_rle_crop_3729287235_0.png.png imagette216961811742913783/1742913403_2376870_1347215653_8b2f47c774fc02057a8b10c9372a69a5_rle_crop_3729292252_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/45c1b0e460af98921d36304b4bec3beb_93199773.png imagette216961811742913783 21696175 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=21696175 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347216357: '1742913271_647035_1347215613_b24dc399d84026b095034e9b3f47e4b5_rle_crop_3729287305_0.png', 1347216358: '1742913271_647035_1347215609_4e1184d3c0dfaff98500f04ecd8d9310_rle_crop_3729287322_0.png', 1347216755: '1742913403_2376870_1347216150_bbe16c904f38c91e4b7fceda8821c92f_rle_crop_3729292071_0.png', 1347216756: '1742913403_2376870_1347215701_e2e10f7ebab7b13499ba8f3aa828fbf7_rle_crop_3729292211_0.png', 1347217204: '1742913523_2380636_1347216659_8b63526c0a99be0d734d92978ad07091_rle_crop_3729297210_0.png', 1347218255: '1742913649_2384047_1347216772_7556a480105b8652b16fe754b9ae4f26_rle_crop_3729301884_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/d9657ba08c0d44d24e6eae22583f40f1_28097925.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/41db5aa77a49179352d51532f35a61d2_89467103.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/5a1c8a5f98a362305af3fd5a975918c2_59568779.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/4ceba690856fdbc5f52fcc5f0bca7612_87986071.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/2504834217e3d488a9f0d4fa02fcb3e1_74100917.png change filename to text .imagette216961751742913783/ imagette216961751742913783/1742913649_2384047_1347216772_7556a480105b8652b16fe754b9ae4f26_rle_crop_3729301884_0.png.png imagette216961751742913783/1742913271_647035_1347215609_4e1184d3c0dfaff98500f04ecd8d9310_rle_crop_3729287322_0.png.png imagette216961751742913783/1742913403_2376870_1347216150_bbe16c904f38c91e4b7fceda8821c92f_rle_crop_3729292071_0.png.png imagette216961751742913783/1742913523_2380636_1347216659_8b63526c0a99be0d734d92978ad07091_rle_crop_3729297210_0.png.png imagette216961751742913783/1742913403_2376870_1347215701_e2e10f7ebab7b13499ba8f3aa828fbf7_rle_crop_3729292211_0.png.png imagette216961751742913783/1742913271_647035_1347215613_b24dc399d84026b095034e9b3f47e4b5_rle_crop_3729287305_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/c798218c595f7f004799547d6dbbdc59_44914759.png imagette216961751742913783 21696176 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=21696176 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347216760: '1742913403_2376870_1347215677_60749f5f8894d0b78423255f66d4b0f1_rle_crop_3729292226_0.png', 1347216761: '1742913403_2376870_1347215653_8b2f47c774fc02057a8b10c9372a69a5_rle_crop_3729292255_0.png', 1347217238: '1742913523_2380636_1347216333_233c40c9b31942da679e1e87a87b20f4_rle_crop_3729297310_0.png', 1347217240: '1742913523_2380636_1347216333_233c40c9b31942da679e1e87a87b20f4_rle_crop_3729297306_0.png', 1347218263: '1742913649_2384047_1347216772_7556a480105b8652b16fe754b9ae4f26_rle_crop_3729301889_0.png', 1347218264: '1742913649_2384047_1347216767_cec77362c559d3c4fe4835eff2159bb9_rle_crop_3729301905_0.png', 1347218265: '1742913649_2384047_1347216767_cec77362c559d3c4fe4835eff2159bb9_rle_crop_3729301906_0.png', 1347218266: '1742913649_2384047_1347216749_e8647baabaebd3b1512f0ff26c20722b_rle_crop_3729302355_0.png', 1347218267: '1742913649_2384047_1347216746_f9376229d59be892a1a185d80b468cf8_rle_crop_3729302375_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/1ccb5e7618dc0188af287c5fe92452af_67226318.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/e714ba46b55f1b5ea2095a18ef20dc35_84616124.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/ac5f62ba7314727e6a3716ffa9b70c1c_9560160.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/98b86ef9ec25ce3105b9eb8bcc1d5b1b_88477540.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/d73e43f3824dff74ebf0fb0ddab7e7db_59111957.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/4647d3b83b2cb0a7fe215a6a192ce5a2_10530305.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/22e2a880f33e574e40c6db58205ef110_98104600.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/49a1565b1d826df882339e338489ceaa_30201918.png change filename to text .imagette216961761742913784/ imagette216961761742913784/1742913403_2376870_1347215653_8b2f47c774fc02057a8b10c9372a69a5_rle_crop_3729292255_0.png.png imagette216961761742913784/1742913649_2384047_1347216767_cec77362c559d3c4fe4835eff2159bb9_rle_crop_3729301905_0.png.png imagette216961761742913784/1742913649_2384047_1347216749_e8647baabaebd3b1512f0ff26c20722b_rle_crop_3729302355_0.png.png imagette216961761742913784/1742913649_2384047_1347216767_cec77362c559d3c4fe4835eff2159bb9_rle_crop_3729301906_0.png.png imagette216961761742913784/1742913649_2384047_1347216746_f9376229d59be892a1a185d80b468cf8_rle_crop_3729302375_0.png.png imagette216961761742913784/1742913523_2380636_1347216333_233c40c9b31942da679e1e87a87b20f4_rle_crop_3729297306_0.png.png imagette216961761742913784/1742913523_2380636_1347216333_233c40c9b31942da679e1e87a87b20f4_rle_crop_3729297310_0.png.png imagette216961761742913784/1742913649_2384047_1347216772_7556a480105b8652b16fe754b9ae4f26_rle_crop_3729301889_0.png.png imagette216961761742913784/1742913403_2376870_1347215677_60749f5f8894d0b78423255f66d4b0f1_rle_crop_3729292226_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/9f1e6bc38bc0e69b189b08a1f45af4d5_11893750.png imagette216961761742913784 21696178 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=21696178 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347216335: '1742913271_647035_1347215621_7cbe653b16cfa2f8e7e20c20b30386f7_rle_crop_3729287216_0.png', 1347216336: '1742913271_647035_1347215613_b24dc399d84026b095034e9b3f47e4b5_rle_crop_3729287312_0.png', 1347216753: '1742913374_648414_1347216079_9bf4a176ac9be8e7bfaafba65981e889_rle_crop_3729292270_0.png', 1347217191: '1742913523_2380636_1347216441_f4a10abde320be4548545c92d7bcbf44_rle_crop_3729297233_0.png', 1347217193: '1742913523_2380636_1347216406_27474d6aafcf5ecd3386ff555955fc60_rle_crop_3729297247_0.png', 1347217197: '1742913511_649935_1347216645_4a344f57821a88b1e86e3eac96493999_rle_crop_3729297254_0.png', 1347217198: '1742913511_649935_1347216640_3f67d9091ea6095b78806a2d9b4b16f8_rle_crop_3729297322_0.png', 1347217929: '1742913613_650805_1347216929_ca9430c3b0f3176c593502d3191bb206_rle_crop_3729297665_0.png', 1347218253: '1742913649_2384047_1347216749_e8647baabaebd3b1512f0ff26c20722b_rle_crop_3729302358_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/7771f3df72b07350255a8193e94d446d_9652530.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/cad8c510d654f336424e5b461e47301b_99057463.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/8967e6e1ca47d50bb2f7afdf56a0020c_94861292.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/bfdca5575e48e78ae74ce840fe1ae987_90258627.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/47bb537a826d0bc9e561ebe68fcb659a_7841336.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/7ecd18886e0703ca840538865779426a_65314739.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/f42fb9b3b3ab3d35b579f529f06801ed_47391082.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/8aab46f4cccaf7ff3aa93f5d6ff5071e_20104132.png change filename to text .imagette216961781742913784/ imagette216961781742913784/1742913374_648414_1347216079_9bf4a176ac9be8e7bfaafba65981e889_rle_crop_3729292270_0.png.png imagette216961781742913784/1742913523_2380636_1347216406_27474d6aafcf5ecd3386ff555955fc60_rle_crop_3729297247_0.png.png imagette216961781742913784/1742913613_650805_1347216929_ca9430c3b0f3176c593502d3191bb206_rle_crop_3729297665_0.png.png imagette216961781742913784/1742913523_2380636_1347216441_f4a10abde320be4548545c92d7bcbf44_rle_crop_3729297233_0.png.png imagette216961781742913784/1742913511_649935_1347216645_4a344f57821a88b1e86e3eac96493999_rle_crop_3729297254_0.png.png imagette216961781742913784/1742913649_2384047_1347216749_e8647baabaebd3b1512f0ff26c20722b_rle_crop_3729302358_0.png.png imagette216961781742913784/1742913511_649935_1347216640_3f67d9091ea6095b78806a2d9b4b16f8_rle_crop_3729297322_0.png.png imagette216961781742913784/1742913271_647035_1347215621_7cbe653b16cfa2f8e7e20c20b30386f7_rle_crop_3729287216_0.png.png imagette216961781742913784/1742913271_647035_1347215613_b24dc399d84026b095034e9b3f47e4b5_rle_crop_3729287312_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/b61b230ffa8da6cfc6fb0ccc1011f52d_91944346.png imagette216961781742913784 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21696146 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21696183,21696184,21696185,21696186,21696187,21696188,21696189,21696190,21696191,21696192,21696193,21696194?tags=environnement,kraft,metal,flou,Carton_gris,Carton_brun,cartonnette,Teint_Dans_La_Masse,plastique,mal_croppe,autre_refus,papier your option no_mail is active, we will not send the real mail to your client args[1347218154] : ('0.0266178393037155',) no score found for photo 1347218154 We are sending mail with results at report@fotonower.com args[1347218099] : ('0.0266178393037155',) no score found for photo 1347218099 We are sending mail with results at report@fotonower.com args[1347218077] : ('0.0266178393037155',) no score found for photo 1347218077 We are sending mail with results at report@fotonower.com args[1347218057] : ('0.0266178393037155',) no score found for photo 1347218057 We are sending mail with results at report@fotonower.com args[1347217737] : ('0.0266178393037155',) no score found for photo 1347217737 We are sending mail with results at report@fotonower.com args[1347217718] : ('0.0266178393037155',) no score found for photo 1347217718 We are sending mail with results at report@fotonower.com args[1347217699] : ('0.0266178393037155',) no score found for photo 1347217699 We are sending mail with results at report@fotonower.com args[1347217647] : ('0.0266178393037155',) no score found for photo 1347217647 We are sending mail with results at report@fotonower.com args[1347217624] : ('0.0266178393037155',) no score found for photo 1347217624 We are sending mail with results at report@fotonower.com args[1347217600] : ('0.0266178393037155',) no score found for photo 1347217600 We are sending mail with results at report@fotonower.com refus_total : 0.0266178393037155 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=21696146 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_P21696146_25-03-2025_15_43_02.pdf results_Auto_P21696146_25-03-2025_15_43_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21696146_25-03-2025_15_43_02.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21696146','results_Auto_P21696146_25-03-2025_15_43_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21696146_25-03-2025_15_43_02.pdf','pdf','','0.2','0.0266178393037155') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21696146]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1347218154, 1347218099, 1347218077, 1347218057, 1347217737, 1347217718, 1347217699, 1347217647, 1347217624, 1347217600] map_info['map_portfolio_photo'] : {21696146: [1347218154, 1347218099, 1347218077, 1347218057, 1347217737, 1347217718, 1347217699, 1347217647, 1347217624, 1347217600, 1347217265, 1347217236, 1347217187, 1347217165, 1347217148, 1347217011, 1347216983, 1347216956, 1347216929, 1347216777, 1347216772, 1347216767, 1347216759, 1347216749, 1347216746, 1347216659, 1347216645, 1347216640, 1347216637, 1347216629, 1347216514, 1347216483, 1347216441, 1347216406, 1347216354, 1347216333, 1347216150, 1347216125, 1347216097, 1347216079, 1347216059, 1347215783, 1347215733, 1347215701, 1347215677, 1347215653, 1347215621, 1347215617, 1347215613, 1347215609]} final : False mtd_id 4302 list_pids : [1347218154, 1347218099, 1347218077, 1347218057, 1347217737, 1347217718, 1347217699, 1347217647, 1347217624, 1347217600] 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, '2689712') ('4302', '21696146', '1347218154', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347218099', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347218077', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347218057', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347217737', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347217718', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347217699', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347217647', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347217624', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347217600', None, None, None, None, None, '2689712') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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', '21696146', '1347218154', None, None, None, None, None, '2689712'), ('4302', '21696146', '1347218099', None, None, None, None, None, '2689712'), ('4302', '21696146', '1347218077', None, None, None, None, None, '2689712'), ('4302', '21696146', '1347218057', None, None, None, None, None, '2689712'), ('4302', '21696146', '1347217737', None, None, None, None, None, '2689712'), ('4302', '21696146', '1347217718', None, None, None, None, None, '2689712'), ('4302', '21696146', '1347217699', None, None, None, None, None, '2689712'), ('4302', '21696146', '1347217647', None, None, None, None, None, '2689712'), ('4302', '21696146', '1347217624', None, None, None, None, None, '2689712'), ('4302', '21696146', '1347217600', None, None, None, None, None, '2689712')] time used for this insertion : 0.016703367233276367 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.171973466873169 time spend to save output : 0.0169675350189209 total time spend for step 4 : 4.18894100189209 step5:split_time_score Tue Mar 25 15:43:06 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 : ['21696146'] 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 : [('21696146',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21696146) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1347218154: {'path': 'temp/1742913782_2212893_1347218154_0cf63386418667a9f1b69579739110ce.jpg', 'extension': 'jpg'}, 1347217699: {'path': 'temp/1742913782_2212893_1347217699_d88452ba6b6169a67086a7af9b957e02.jpg', 'extension': 'jpg'}, 1347217718: {'path': 'temp/1742913782_2212893_1347217718_645bd749e5155c19688c3d584174ab8c.jpg', 'extension': 'jpg'}, 1347217737: {'path': 'temp/1742913782_2212893_1347217737_c3e16cda275a34c6911640febd240339.jpg', 'extension': 'jpg'}, 1347218057: {'path': 'temp/1742913782_2212893_1347218057_59a4274c7866942fceb15969a24603a0.jpg', 'extension': 'jpg'}, 1347218077: {'path': 'temp/1742913782_2212893_1347218077_31aaddf3605356d0aba2538a4e02c5f4.jpg', 'extension': 'jpg'}, 1347218099: {'path': 'temp/1742913782_2212893_1347218099_76102c76c04a9577a47455a3ca5d32cf.jpg', 'extension': 'jpg'}, 1347217600: {'path': 'temp/1742913782_2212893_1347217600_8beb0999006e6f16bdf2e926b9f3186f.jpg', 'extension': 'jpg'}, 1347217624: {'path': 'temp/1742913782_2212893_1347217624_2ff301e7c4f6efe50b5038a46841ba3d.jpg', 'extension': 'jpg'}, 1347217647: {'path': 'temp/1742913782_2212893_1347217647_2b59fd112b5dd3dcb7684fcc59629a01.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 = 21696146; (('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 = 21696146 group by h (('15', 50),) 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=21696146 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 (21696146) 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 (21696146) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25032025 21696146 Nombre de photos uploadées : 50 / 23040 (0%) 25032025 21696146 Nombre de photos taguées (types de déchets): 0 / 50 (0%) 25032025 21696146 Nombre de photos taguées (volume) : 0 / 50 (0%) [{'photo_id': 1347215621, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/7cbe653b16cfa2f8e7e20c20b30386f7.jpg', 'username': None, 'uploaded_at': 1742913132, 'text': 'image_25032025_15_30_05_10154.jpg'}, {'photo_id': 1347215617, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/9b23d2203db5606da496d3158e1c4b7d.jpg', 'username': None, 'uploaded_at': 1742913132, 'text': 'image_25032025_15_30_14_9125.jpg'}, {'photo_id': 1347215613, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/b24dc399d84026b095034e9b3f47e4b5.jpg', 'username': None, 'uploaded_at': 1742913132, 'text': 'image_25032025_15_30_24_10134.jpg'}, {'photo_id': 1347215609, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/4e1184d3c0dfaff98500f04ecd8d9310.jpg', 'username': None, 'uploaded_at': 1742913132, 'text': 'image_25032025_15_30_34_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 4.5299530029296875e-06 elapsed_time : order_list_meta_photo_and_scores 9.5367431640625e-06 ?????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0023415088653564453 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21696146, '2025-03-25' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1685799,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02861618995666504 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= 1685799 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1685799, 'dashboard_run_id': 1695417, 'mtr_portfolio_id': 21693948, 'dashboard_result_id': 9613322, '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_P21693948_25-03-2025_15_05_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21693953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21693954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21693955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21693956, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21693957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21693958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21693959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21693960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21693961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21693962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21693963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21693964, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1695417, 'mtr_portfolio_id': 21694587, 'dashboard_result_id': 9613323, '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_P21694587_25-03-2025_15_18_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21694588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21694589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21694590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21694591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21694592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21694593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21694594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21694595, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21694596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21694597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21694598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21694599, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1695417, 'mtr_portfolio_id': 21695129, 'dashboard_result_id': 9613324, '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_P21695129_25-03-2025_15_33_48.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21695134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21695135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21695136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21695137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21695138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21695139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21695140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21695141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21695142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21695143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21695144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21695145, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1695417, 'mtr_portfolio_id': 21696146, 'dashboard_result_id': 9613325, '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_P21696146_25-03-2025_15_40_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21696171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21696172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21696173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21696174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21696175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21696176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21696177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21696178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21696179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21696180, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21696181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21696182, '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 = 21693948 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': 2689520, 'mtr_portfolio_id': 21693948, 'created_at': datetime.datetime(2025, 3, 25, 15, 5, 2), 'result': '0.030763039521575417', 'result_long': None, 'result_double': None}] Qualite : 0.030763039521575417 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21693948 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21693948_25-03-2025_15_05_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21693948 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_P21693948_25-03-2025_15_05_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21693953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21693954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21693955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21693956, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21693957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21693958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21693959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21693960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21693961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21693962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21693963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21693964, 'pht': 3726}}" where mtr_portfolio_id = 21693948 and dashboard_run_id = 1695417 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`=21693948 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9613322, 0.030763039521575417, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21693948_25-03-2025_15_05_02.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21693953, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21693954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21693955, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21693956, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21693957, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21693958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21693959, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21693960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21693961, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21693962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21693963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21693964, '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 = 21694587 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': 2689585, 'mtr_portfolio_id': 21694587, 'created_at': datetime.datetime(2025, 3, 25, 15, 18), 'result': '0.028907160095087463', 'result_long': None, 'result_double': None}] Qualite : 0.028907160095087463 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21694587 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21694587_25-03-2025_15_18_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21694587 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_P21694587_25-03-2025_15_18_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21694588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21694589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21694590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21694591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21694592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21694593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21694594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21694595, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21694596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21694597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21694598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21694599, 'pht': 3726}}" where mtr_portfolio_id = 21694587 and dashboard_run_id = 1695417 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`=21694587 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9613323, 0.028907160095087463, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21694587_25-03-2025_15_18_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21694588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21694589, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21694590, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21694591, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21694592, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21694593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21694594, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21694595, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21694596, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21694597, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21694598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21694599, '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 = 21695129 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': 2689625, 'mtr_portfolio_id': 21695129, 'created_at': datetime.datetime(2025, 3, 25, 15, 33, 48), 'result': '0.02786714646111607', 'result_long': None, 'result_double': None}] Qualite : 0.02786714646111607 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21695129 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21695129_25-03-2025_15_33_48.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21695129 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_P21695129_25-03-2025_15_33_48.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21695134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21695135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21695136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21695137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21695138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21695139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21695140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21695141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21695142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21695143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21695144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21695145, 'pht': 3726}}" where mtr_portfolio_id = 21695129 and dashboard_run_id = 1695417 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`=21695129 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9613324, 0.02786714646111607, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21695129_25-03-2025_15_33_48.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21695134, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21695135, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21695136, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21695137, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21695138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21695139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21695140, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21695141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21695142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21695143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21695144, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21695145, '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 = 21696146 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': 2689712, 'mtr_portfolio_id': 21696146, 'created_at': datetime.datetime(2025, 3, 25, 15, 43, 1), 'result': '0.0266178393037155', 'result_long': None, 'result_double': None}] Qualite : 0.0266178393037155 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21696146 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21696146_25-03-2025_15_43_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21696146 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_P21696146_25-03-2025_15_43_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21696171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21696172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21696173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21696174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21696175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21696176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21696177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21696178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21696179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21696180, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21696181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21696182, 'pht': 3726}}" where mtr_portfolio_id = 21696146 and dashboard_run_id = 1695417 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`=21696146 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9613325, 0.0266178393037155, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21696146_25-03-2025_15_43_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21696171, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21696172, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21696173, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21696174, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21696175, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21696176, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21696177, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21696178, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21696179, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21696180, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21696181, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21696182, '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 (21693948,21694587,21695129,21696146) result : ((1347207502,), (1347207504,), (1347207506,), (1347207509,), (1347207750,), (1347207860,), (1347207871,), (1347207876,), (1347207889,), (1347207954,), (1347207962,), (1347207965,), (1347207969,), (1347207996,), (1347208002,), (1347208005,), (1347208007,), (1347208013,), (1347208020,), (1347208099,), (1347208105,), (1347208113,), (1347208198,), (1347208201,), (1347208204,), (1347208209,), (1347208219,), (1347208231,), (1347208292,), (1347208309,), (1347208318,), (1347208325,), (1347208373,), (1347208377,), (1347208380,), (1347208385,), (1347208390,), (1347208452,), (1347208539,), (1347208578,), (1347208585,), (1347208856,), (1347208859,), (1347208893,), (1347208901,), (1347208905,), (1347208965,), (1347208968,), (1347208976,), (1347208983,), (1347209028,), (1347209030,), (1347209033,), (1347209038,), (1347209044,), (1347209049,), (1347209080,), (1347209167,), (1347209195,), (1347209216,), (1347209242,), (1347210248,), (1347210313,), (1347210358,), (1347210384,), (1347210909,), (1347210751,), (1347210784,), (1347210835,), (1347210871,), (1347211453,), (1347211506,), (1347211524,), (1347211569,), (1347211667,), (1347211670,), (1347211673,), (1347211676,), (1347211683,), (1347211690,), (1347211733,), (1347211735,), (1347211749,), (1347211755,), (1347211937,), (1347211938,), (1347212011,), (1347212028,), (1347212033,), (1347212040,), (1347212047,), (1347212053,), (1347212082,), (1347212085,), (1347212179,), (1347212181,), (1347212237,), (1347212242,), (1347212246,), (1347212250,), (1347212255,), (1347212328,), (1347212330,), (1347212332,), (1347212335,), (1347212342,), (1347212507,), (1347212535,), (1347212567,), (1347212627,), (1347212633,), (1347212636,), (1347212642,), (1347212647,), (1347212652,), (1347212688,), (1347212695,), (1347212701,), (1347212706,), (1347212764,), (1347212747,), (1347212749,), (1347212751,), (1347212754,), (1347212759,), (1347212915,), (1347212959,), (1347212962,), (1347212965,), (1347212972,), (1347213005,), (1347213011,), (1347213018,), (1347213023,), (1347213027,), (1347213031,), (1347213073,), (1347213077,), (1347213240,), (1347213336,), (1347213476,), (1347213498,), (1347213505,), (1347213514,), (1347213519,), (1347213542,), (1347213704,), (1347213705,), (1347213711,), (1347213715,), (1347213773,), (1347213777,), (1347213780,), (1347213812,), (1347213841,), (1347213845,), (1347214091,), (1347214104,), (1347214112,), (1347214121,), (1347214128,), (1347214560,), (1347214564,), (1347214572,), (1347214581,), (1347214629,), (1347214655,), (1347214674,), (1347214691,), (1347214783,), (1347214831,), (1347214879,), (1347214881,), (1347214885,), (1347214896,), (1347214904,), (1347214985,), (1347215006,), (1347215010,), (1347215031,), (1347215040,), (1347215137,), (1347215140,), (1347215142,), (1347215147,), (1347215151,), (1347215193,), (1347215197,), (1347215201,), (1347215206,), (1347215507,), (1347215510,), (1347215538,), (1347215561,), (1347215566,), (1347215624,), (1347215609,), (1347215613,), (1347215617,), (1347215621,), (1347215653,), (1347215677,), (1347215701,), (1347215733,), (1347215783,), (1347216059,), (1347216079,), (1347216097,), (1347216125,), (1347216150,), (1347216333,), (1347216354,), (1347216406,), (1347216441,), (1347216483,), (1347216514,), (1347216629,), (1347216637,), (1347216640,), (1347216645,), (1347216659,), (1347216746,), (1347216749,), (1347216759,), (1347216767,), (1347216772,), (1347216777,), (1347216929,), (1347216956,), (1347216983,), (1347217011,), (1347217148,), (1347217165,), (1347217187,), (1347217236,), (1347217265,), (1347217600,), (1347217624,), (1347217647,), (1347217699,), (1347217718,), (1347217737,), (1347218057,), (1347218077,), (1347218099,), (1347218154,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25032025': {'nb_upload': 50, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21696146]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1347218154, 1347218099, 1347218077, 1347218057, 1347217737, 1347217718, 1347217699, 1347217647, 1347217624, 1347217600] map_info['map_portfolio_photo'] : {21696146: [1347218154, 1347218099, 1347218077, 1347218057, 1347217737, 1347217718, 1347217699, 1347217647, 1347217624, 1347217600, 1347217265, 1347217236, 1347217187, 1347217165, 1347217148, 1347217011, 1347216983, 1347216956, 1347216929, 1347216777, 1347216772, 1347216767, 1347216759, 1347216749, 1347216746, 1347216659, 1347216645, 1347216640, 1347216637, 1347216629, 1347216514, 1347216483, 1347216441, 1347216406, 1347216354, 1347216333, 1347216150, 1347216125, 1347216097, 1347216079, 1347216059, 1347215783, 1347215733, 1347215701, 1347215677, 1347215653, 1347215621, 1347215617, 1347215613, 1347215609]} final : True mtd_id 4302 list_pids : [1347218154, 1347218099, 1347218077, 1347218057, 1347217737, 1347217718, 1347217699, 1347217647, 1347217624, 1347217600] Looping around the photos to save general results len do output : 1 /21696146Didn'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, '2689712') ('4302', '21696146', '1347218154', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347218099', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347218077', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347218057', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347217737', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347217718', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347217699', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347217647', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347217624', None, None, None, None, None, '2689712') ('4302', None, None, None, None, None, None, None, '2689712') ('4302', '21696146', '1347217600', None, None, None, None, None, '2689712') 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', None, '21696146', 'None', None, None, None, None, '2689712'), ('4302', '21696146', '1347218154', None, None, None, None, None, '2689712'), ('4302', '21696146', '1347218099', None, None, None, None, None, '2689712'), ('4302', '21696146', '1347218077', None, None, None, None, None, '2689712'), ('4302', '21696146', '1347218057', None, None, None, None, None, '2689712'), ('4302', '21696146', '1347217737', None, None, None, None, None, '2689712'), ('4302', '21696146', '1347217718', None, None, None, None, None, '2689712'), ('4302', '21696146', '1347217699', None, None, None, None, None, '2689712'), ('4302', '21696146', '1347217647', None, None, None, None, None, '2689712'), ('4302', '21696146', '1347217624', None, None, None, None, None, '2689712'), ('4302', '21696146', '1347217600', None, None, None, None, None, '2689712')] time used for this insertion : 0.016701221466064453 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.43410372734069824 time spend to save output : 0.016878604888916016 total time spend for step 5 : 0.45098233222961426 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 (2689712) 2.04user 2.40system 0:09.56elapsed 46%CPU (0avgtext+0avgdata 159168maxresident)k 45432inputs+10120outputs (237major+63732minor)pagefaults 0swaps