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 : 1305241 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 (2603151) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2603151) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20712011 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2603151'] with mtr_portfolio_ids : ['20712011'] and first list_photo_ids : [] new path : /proc/1305241/ Name: python3 Umask: 0002 State: R (running) Tgid: 1305241 Ngid: 0 Pid: 1305241 PPid: 1305239 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1305241 NSpid: 1305241 NSpgid: 1302868 NSsid: 1302868 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99112 kB VmRSS: 99112 kB RssAnon: 59804 kB RssFile: 39308 kB RssShmem: 0 kB VmData: 865596 kB VmStk: 132 kB VmExe: 2640 kB VmLib: 130468 kB VmPTE: 612 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 3/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: 79 nonvoluntary_ctxt_switches: 84 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1305241', 'Ngid': '0', 'Pid': '1305241', 'PPid': '1305239', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1305241', 'NSpid': '1305241', 'NSpgid': '1302868', 'NSsid': '1302868', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99112 kB', 'VmRSS': '99112 kB', 'RssAnon': '59804 kB', 'RssFile': '39308 kB', 'RssShmem': '0 kB', 'VmData': '865596 kB', 'VmStk': '132 kB', 'VmExe': '2640 kB', 'VmLib': '130468 kB', 'VmPTE': '612 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '3/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': '79', 'nonvoluntary_ctxt_switches': '84'} ('datou_batch_current', '1305241', '1106844', '0', '1106844', '865596', '99112', b'', 'marlene', '2603151') 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 (20712011) 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 (2603151 ) ) 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 (20712011) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1338761167, 'portfolio_id': 20712011}, {'photo_id': 1338761165, 'portfolio_id': 20712011}, {'photo_id': 1338761161, 'portfolio_id': 20712011}, {'photo_id': 1338761158, 'portfolio_id': 20712011}, {'photo_id': 1338761151, 'portfolio_id': 20712011}, {'photo_id': 1338761148, 'portfolio_id': 20712011}, {'photo_id': 1338761107, 'portfolio_id': 20712011}, {'photo_id': 1338761104, 'portfolio_id': 20712011}, {'photo_id': 1338761102, 'portfolio_id': 20712011}, {'photo_id': 1338761100, 'portfolio_id': 20712011}, {'photo_id': 1338761098, 'portfolio_id': 20712011}, {'photo_id': 1338761082, 'portfolio_id': 20712011}, {'photo_id': 1338761075, 'portfolio_id': 20712011}, {'photo_id': 1338761070, 'portfolio_id': 20712011}, {'photo_id': 1338761066, 'portfolio_id': 20712011}, {'photo_id': 1338761061, 'portfolio_id': 20712011}, {'photo_id': 1338761057, 'portfolio_id': 20712011}, {'photo_id': 1338761018, 'portfolio_id': 20712011}, {'photo_id': 1338761016, 'portfolio_id': 20712011}, {'photo_id': 1338761015, 'portfolio_id': 20712011}, {'photo_id': 1338760989, 'portfolio_id': 20712011}, {'photo_id': 1338760987, 'portfolio_id': 20712011}, {'photo_id': 1338760979, 'portfolio_id': 20712011}, {'photo_id': 1338760973, 'portfolio_id': 20712011}, {'photo_id': 1338760971, 'portfolio_id': 20712011}, {'photo_id': 1338760969, 'portfolio_id': 20712011}, {'photo_id': 1338760948, 'portfolio_id': 20712011}, {'photo_id': 1338760946, 'portfolio_id': 20712011}, {'photo_id': 1338760943, 'portfolio_id': 20712011}, {'photo_id': 1338760942, 'portfolio_id': 20712011}, {'photo_id': 1338760940, 'portfolio_id': 20712011}, {'photo_id': 1338760899, 'portfolio_id': 20712011}, {'photo_id': 1338760887, 'portfolio_id': 20712011}, {'photo_id': 1338760883, 'portfolio_id': 20712011}, {'photo_id': 1338760879, 'portfolio_id': 20712011}, {'photo_id': 1338760876, 'portfolio_id': 20712011}, {'photo_id': 1338760846, 'portfolio_id': 20712011}, {'photo_id': 1338760842, 'portfolio_id': 20712011}, {'photo_id': 1338760841, 'portfolio_id': 20712011}] map_portfolio_id_photo_id: {20712011: [1338761167, 1338761165, 1338761161, 1338761158, 1338761151, 1338761148, 1338761107, 1338761104, 1338761102, 1338761100, 1338761098, 1338761082, 1338761075, 1338761070, 1338761066, 1338761061, 1338761057, 1338761018, 1338761016, 1338761015, 1338760989, 1338760987, 1338760979, 1338760973, 1338760971, 1338760969, 1338760948, 1338760946, 1338760943, 1338760942, 1338760940, 1338760899, 1338760887, 1338760883, 1338760879, 1338760876, 1338760846, 1338760842, 1338760841]} ##### 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.014144182205200195 #### 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 Fri Feb 21 06:24:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20712011) 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 : 20712011 get user id for portfolio 20712011 get sub ptf for main ptf 20712011, type 3726 and hashtags ['flou', 'Carton_gris', 'mal_croppe', 'environnement', 'kraft', 'cartonnette', 'Carton_brun', 'Teint_Dans_La_Masse', 'autre_refus', 'plastique', 'papier', 'metal'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20712011 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_gris','mal_croppe','environnement','kraft','cartonnette','Carton_brun','Teint_Dans_La_Masse','autre_refus','plastique','papier','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20712011 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_gris','mal_croppe','environnement','kraft','cartonnette','Carton_brun','Teint_Dans_La_Masse','autre_refus','plastique','papier','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 20712011, 'sub_port_id': 20712065, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13359176, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 23), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 23), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 19, 28)}, 'mal_croppe': {'main_port_id': 20712011, 'sub_port_id': 20712066, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13359177, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 23), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 23), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 19, 28)}, 'cartonnette': {'main_port_id': 20712011, 'sub_port_id': 20712067, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13359178, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 23), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 23), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 19, 28)}, 'plastique': {'main_port_id': 20712011, 'sub_port_id': 20712068, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13359179, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 23), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 23), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 19, 28)}, 'flou': {'main_port_id': 20712011, 'sub_port_id': 20712069, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13359180, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 23), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 23), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 19, 28)}, 'papier': {'main_port_id': 20712011, 'sub_port_id': 20712070, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13359181, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 23), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 23), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 19, 28)}, 'metal': {'main_port_id': 20712011, 'sub_port_id': 20712071, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13359182, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 23), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 23), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 19, 28)}, 'environnement': {'main_port_id': 20712011, 'sub_port_id': 20712072, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13359183, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 23), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 23), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 19, 28)}, 'Carton_brun': {'main_port_id': 20712011, 'sub_port_id': 20712073, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13359184, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 23), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 23), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 19, 28)}, 'Carton_gris': {'main_port_id': 20712011, 'sub_port_id': 20712074, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13359185, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 23), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 23), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 19, 28)}, 'autre_refus': {'main_port_id': 20712011, 'sub_port_id': 20712075, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13359186, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 23), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 23), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 19, 28)}, 'kraft': {'main_port_id': 20712011, 'sub_port_id': 20712076, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13359187, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 23), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 23), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 19, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20712065 , 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=20712011 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 (20712065) result : ((1338761076,), (1338761094,), (1338761095,), (1338761111,), (1338761112,), (1338761113,), (1338761114,), (1338761115,), (1338761153,), (1338761154,), (1338761155,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20712011) result : ((1338760841,), (1338760842,), (1338760846,), (1338760876,), (1338760879,), (1338760883,), (1338760887,), (1338760899,), (1338760940,), (1338760942,), (1338760943,), (1338760946,), (1338760948,), (1338760969,), (1338760971,), (1338760973,), (1338760979,), (1338760987,), (1338760989,), (1338761015,), (1338761016,), (1338761018,), (1338761057,), (1338761061,), (1338761066,), (1338761070,), (1338761075,), (1338761082,), (1338761098,), (1338761100,), (1338761102,), (1338761104,), (1338761107,), (1338761148,), (1338761151,), (1338761158,), (1338761161,), (1338761165,), (1338761167,)) 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 (1338761100) 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 20712066 , 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=20712011 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 (20712066) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20712011) result : ((1338760841,), (1338760842,), (1338760846,), (1338760876,), (1338760879,), (1338760883,), (1338760887,), (1338760899,), (1338760940,), (1338760942,), (1338760943,), (1338760946,), (1338760948,), (1338760969,), (1338760971,), (1338760973,), (1338760979,), (1338760987,), (1338760989,), (1338761015,), (1338761016,), (1338761018,), (1338761057,), (1338761061,), (1338761066,), (1338761070,), (1338761075,), (1338761082,), (1338761098,), (1338761100,), (1338761102,), (1338761104,), (1338761107,), (1338761148,), (1338761151,), (1338761158,), (1338761161,), (1338761165,), (1338761167,)) 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 (1338761100) 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 20712067 , 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=20712011 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 (20712067) result : ((1338761079,), (1338761080,), (1338761081,), (1338761121,), (1338761122,), (1338761141,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20712011) result : ((1338760841,), (1338760842,), (1338760846,), (1338760876,), (1338760879,), (1338760883,), (1338760887,), (1338760899,), (1338760940,), (1338760942,), (1338760943,), (1338760946,), (1338760948,), (1338760969,), (1338760971,), (1338760973,), (1338760979,), (1338760987,), (1338760989,), (1338761015,), (1338761016,), (1338761018,), (1338761057,), (1338761061,), (1338761066,), (1338761070,), (1338761075,), (1338761082,), (1338761098,), (1338761100,), (1338761102,), (1338761104,), (1338761107,), (1338761148,), (1338761151,), (1338761158,), (1338761161,), (1338761165,), (1338761167,)) 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 (1338761100) 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 20712068 , 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=20712011 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 (20712068) result : ((1338761092,), (1338761126,), (1338761145,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20712011) result : ((1338760841,), (1338760842,), (1338760846,), (1338760876,), (1338760879,), (1338760883,), (1338760887,), (1338760899,), (1338760940,), (1338760942,), (1338760943,), (1338760946,), (1338760948,), (1338760969,), (1338760971,), (1338760973,), (1338760979,), (1338760987,), (1338760989,), (1338761015,), (1338761016,), (1338761018,), (1338761057,), (1338761061,), (1338761066,), (1338761070,), (1338761075,), (1338761082,), (1338761098,), (1338761100,), (1338761102,), (1338761104,), (1338761107,), (1338761148,), (1338761151,), (1338761158,), (1338761161,), (1338761165,), (1338761167,)) 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 (1338761100) 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 20712069 , 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=20712011 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 (20712069) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20712011) result : ((1338760841,), (1338760842,), (1338760846,), (1338760876,), (1338760879,), (1338760883,), (1338760887,), (1338760899,), (1338760940,), (1338760942,), (1338760943,), (1338760946,), (1338760948,), (1338760969,), (1338760971,), (1338760973,), (1338760979,), (1338760987,), (1338760989,), (1338761015,), (1338761016,), (1338761018,), (1338761057,), (1338761061,), (1338761066,), (1338761070,), (1338761075,), (1338761082,), (1338761098,), (1338761100,), (1338761102,), (1338761104,), (1338761107,), (1338761148,), (1338761151,), (1338761158,), (1338761161,), (1338761165,), (1338761167,)) 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 (1338761100) 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 20712070 , 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=20712011 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 (20712070) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20712011) result : ((1338760841,), (1338760842,), (1338760846,), (1338760876,), (1338760879,), (1338760883,), (1338760887,), (1338760899,), (1338760940,), (1338760942,), (1338760943,), (1338760946,), (1338760948,), (1338760969,), (1338760971,), (1338760973,), (1338760979,), (1338760987,), (1338760989,), (1338761015,), (1338761016,), (1338761018,), (1338761057,), (1338761061,), (1338761066,), (1338761070,), (1338761075,), (1338761082,), (1338761098,), (1338761100,), (1338761102,), (1338761104,), (1338761107,), (1338761148,), (1338761151,), (1338761158,), (1338761161,), (1338761165,), (1338761167,)) 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 (1338761100) 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 20712071 , 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=20712011 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 (20712071) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20712011) result : ((1338760841,), (1338760842,), (1338760846,), (1338760876,), (1338760879,), (1338760883,), (1338760887,), (1338760899,), (1338760940,), (1338760942,), (1338760943,), (1338760946,), (1338760948,), (1338760969,), (1338760971,), (1338760973,), (1338760979,), (1338760987,), (1338760989,), (1338761015,), (1338761016,), (1338761018,), (1338761057,), (1338761061,), (1338761066,), (1338761070,), (1338761075,), (1338761082,), (1338761098,), (1338761100,), (1338761102,), (1338761104,), (1338761107,), (1338761148,), (1338761151,), (1338761158,), (1338761161,), (1338761165,), (1338761167,)) 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 (1338761100) 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 20712072 , 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=20712011 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 (20712072) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20712011) result : ((1338760841,), (1338760842,), (1338760846,), (1338760876,), (1338760879,), (1338760883,), (1338760887,), (1338760899,), (1338760940,), (1338760942,), (1338760943,), (1338760946,), (1338760948,), (1338760969,), (1338760971,), (1338760973,), (1338760979,), (1338760987,), (1338760989,), (1338761015,), (1338761016,), (1338761018,), (1338761057,), (1338761061,), (1338761066,), (1338761070,), (1338761075,), (1338761082,), (1338761098,), (1338761100,), (1338761102,), (1338761104,), (1338761107,), (1338761148,), (1338761151,), (1338761158,), (1338761161,), (1338761165,), (1338761167,)) 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 (1338761100) 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 20712073 , 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=20712011 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 (20712073) result : ((1338761083,), (1338761084,), (1338761088,), (1338761124,), (1338761125,), (1338761144,), (1338761156,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20712011) result : ((1338760841,), (1338760842,), (1338760846,), (1338760876,), (1338760879,), (1338760883,), (1338760887,), (1338760899,), (1338760940,), (1338760942,), (1338760943,), (1338760946,), (1338760948,), (1338760969,), (1338760971,), (1338760973,), (1338760979,), (1338760987,), (1338760989,), (1338761015,), (1338761016,), (1338761018,), (1338761057,), (1338761061,), (1338761066,), (1338761070,), (1338761075,), (1338761082,), (1338761098,), (1338761100,), (1338761102,), (1338761104,), (1338761107,), (1338761148,), (1338761151,), (1338761158,), (1338761161,), (1338761165,), (1338761167,)) 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 (1338761100) 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 20712074 , 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=20712011 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 (20712074) result : ((1338761077,), (1338761118,), (1338761119,), (1338761120,), (1338761140,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20712011) result : ((1338760841,), (1338760842,), (1338760846,), (1338760876,), (1338760879,), (1338760883,), (1338760887,), (1338760899,), (1338760940,), (1338760942,), (1338760943,), (1338760946,), (1338760948,), (1338760969,), (1338760971,), (1338760973,), (1338760979,), (1338760987,), (1338760989,), (1338761015,), (1338761016,), (1338761018,), (1338761057,), (1338761061,), (1338761066,), (1338761070,), (1338761075,), (1338761082,), (1338761098,), (1338761100,), (1338761102,), (1338761104,), (1338761107,), (1338761148,), (1338761151,), (1338761158,), (1338761161,), (1338761165,), (1338761167,)) 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 (1338761100) 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 20712075 , 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=20712011 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 (20712075) result : ((1338761117,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20712011) result : ((1338760841,), (1338760842,), (1338760846,), (1338760876,), (1338760879,), (1338760883,), (1338760887,), (1338760899,), (1338760940,), (1338760942,), (1338760943,), (1338760946,), (1338760948,), (1338760969,), (1338760971,), (1338760973,), (1338760979,), (1338760987,), (1338760989,), (1338761015,), (1338761016,), (1338761018,), (1338761057,), (1338761061,), (1338761066,), (1338761070,), (1338761075,), (1338761082,), (1338761098,), (1338761100,), (1338761102,), (1338761104,), (1338761107,), (1338761148,), (1338761151,), (1338761158,), (1338761161,), (1338761165,), (1338761167,)) 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 (1338761100) 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 20712076 , 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=20712011 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 (20712076) result : ((1338761127,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20712011) result : ((1338760841,), (1338760842,), (1338760846,), (1338760876,), (1338760879,), (1338760883,), (1338760887,), (1338760899,), (1338760940,), (1338760942,), (1338760943,), (1338760946,), (1338760948,), (1338760969,), (1338760971,), (1338760973,), (1338760979,), (1338760987,), (1338760989,), (1338761015,), (1338761016,), (1338761018,), (1338761057,), (1338761061,), (1338761066,), (1338761070,), (1338761075,), (1338761082,), (1338761098,), (1338761100,), (1338761102,), (1338761104,), (1338761107,), (1338761148,), (1338761151,), (1338761158,), (1338761161,), (1338761165,), (1338761167,)) 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 (1338761100) 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`=20712011 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_gris','mal_croppe','environnement','kraft','cartonnette','Carton_brun','Teint_Dans_La_Masse','autre_refus','plastique','papier','metal')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20712011 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_gris','mal_croppe','environnement','kraft','cartonnette','Carton_brun','Teint_Dans_La_Masse','autre_refus','plastique','papier','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 20712011, 'sub_port_id': 20712077, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13359188, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 19, 30)}, 'mal_croppe': {'main_port_id': 20712011, 'sub_port_id': 20712078, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13359189, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 19, 30)}, 'cartonnette': {'main_port_id': 20712011, 'sub_port_id': 20712079, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13359190, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 19, 30)}, 'plastique': {'main_port_id': 20712011, 'sub_port_id': 20712080, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13359191, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 19, 30)}, 'flou': {'main_port_id': 20712011, 'sub_port_id': 20712081, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13359192, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 19, 30)}, 'papier': {'main_port_id': 20712011, 'sub_port_id': 20712082, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13359193, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 19, 30)}, 'metal': {'main_port_id': 20712011, 'sub_port_id': 20712083, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13359194, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 19, 30)}, 'environnement': {'main_port_id': 20712011, 'sub_port_id': 20712084, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13359195, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 19, 30)}, 'Carton_brun': {'main_port_id': 20712011, 'sub_port_id': 20712085, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13359196, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 19, 30)}, 'Carton_gris': {'main_port_id': 20712011, 'sub_port_id': 20712086, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13359197, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 19, 30)}, 'autre_refus': {'main_port_id': 20712011, 'sub_port_id': 20712087, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13359198, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 19, 30)}, 'kraft': {'main_port_id': 20712011, 'sub_port_id': 20712088, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13359199, 'last_updated_at': datetime.datetime(2025, 2, 21, 6, 23), 'last_updated_at_desc': datetime.datetime(2025, 2, 21, 6, 23), 'last_updated_at_asc': datetime.datetime(2025, 2, 21, 6, 19, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20712077,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20712065 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20712078,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20712066 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20712079,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20712067 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20712080,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20712068 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20712081,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20712069 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20712082,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20712070 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20712083,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20712071 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20712084,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20712072 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20712085,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20712073 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20712086,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20712074 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20712087,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20712075 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20712088,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20712076 lien utilise dans velours : https://www.fotonower.com/velours/20712077,20712078,20712079,20712080,20712081,20712082,20712083,20712084,20712085,20712086,20712087,20712088?tags=Teint_Dans_La_Masse,mal_croppe,cartonnette,plastique,flou,papier,metal,environnement,Carton_brun,Carton_gris,autre_refus,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20712011]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1338761167, 1338761165, 1338761161, 1338761158, 1338761151, 1338761148, 1338761107, 1338761104, 1338761102, 1338761100, 1338761098] map_info['map_portfolio_photo'] : {20712011: [1338761167, 1338761165, 1338761161, 1338761158, 1338761151, 1338761148, 1338761107, 1338761104, 1338761102, 1338761100, 1338761098, 1338761082, 1338761075, 1338761070, 1338761066, 1338761061, 1338761057, 1338761018, 1338761016, 1338761015, 1338760989, 1338760987, 1338760979, 1338760973, 1338760971, 1338760969, 1338760948, 1338760946, 1338760943, 1338760942, 1338760940, 1338760899, 1338760887, 1338760883, 1338760879, 1338760876, 1338760846, 1338760842, 1338760841]} final : False mtd_id 4302 list_pids : [1338761167, 1338761165, 1338761161, 1338761158, 1338761151, 1338761148, 1338761107, 1338761104, 1338761102, 1338761100, 1338761098] Looping around the photos to save general results len do output : 1 /20712011. 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, '2603151') ('4302', '20712011', '1338761167', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761165', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761161', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761158', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761151', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761148', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761107', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761104', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761102', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761100', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761098', None, None, None, None, None, '2603151') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20712011', "{'Teint_Dans_La_Masse': 20712065, 'mal_croppe': 20712066, 'cartonnette': 20712067, 'plastique': 20712068, 'flou': 20712069, 'papier': 20712070, 'metal': 20712071, 'environnement': 20712072, 'Carton_brun': 20712073, 'Carton_gris': 20712074, 'autre_refus': 20712075, 'kraft': 20712076}", None, None, None, None, '2603151'), ('4302', '20712011', '1338761167', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761165', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761161', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761158', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761151', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761148', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761107', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761104', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761102', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761100', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761098', None, None, None, None, None, '2603151')] time used for this insertion : 0.05658602714538574 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5193910598754883 time spend to save output : 0.05689406394958496 total time spend for step 1 : 0.5762851238250732 step2:final Fri Feb 21 06:24:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20712011) 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 20712011 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1338760846,1338760842,1338760841,1338760899,1338760887,1338760883,1338760879,1338760876,1338760948,1338760946,1338760943,1338760942,1338760940,1338760989,1338760987,1338760979,1338760973,1338760971,1338760969,1338761018,1338761016,1338761015,1338761082,1338761075,1338761070,1338761066,1338761061,1338761057,1338761107,1338761104,1338761102,1338761100,1338761098,1338761167,1338761165,1338761161,1338761158,1338761151,1338761148); 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([20712011]) Inside saveOutput : final : False verbose : True original output for save of step final : {1338761167: ('0.04194441793638459',), 1338761165: ('0.04194441793638459',), 1338761161: ('0.04194441793638459',), 1338761158: ('0.04194441793638459',), 1338761151: ('0.04194441793638459',), 1338761148: ('0.04194441793638459',), 1338761107: ('0.04194441793638459',), 1338761104: ('0.04194441793638459',), 1338761102: ('0.04194441793638459',), 1338761100: ('0.04194441793638459',), 1338761098: ('0.04194441793638459',)} new output for save of step final : {1338761167: ('0.04194441793638459',), 1338761165: ('0.04194441793638459',), 1338761161: ('0.04194441793638459',), 1338761158: ('0.04194441793638459',), 1338761151: ('0.04194441793638459',), 1338761148: ('0.04194441793638459',), 1338761107: ('0.04194441793638459',), 1338761104: ('0.04194441793638459',), 1338761102: ('0.04194441793638459',), 1338761100: ('0.04194441793638459',), 1338761098: ('0.04194441793638459',)} [1338761167, 1338761165, 1338761161, 1338761158, 1338761151, 1338761148, 1338761107, 1338761104, 1338761102, 1338761100, 1338761098] map_info['map_portfolio_photo'] : {20712011: [1338761167, 1338761165, 1338761161, 1338761158, 1338761151, 1338761148, 1338761107, 1338761104, 1338761102, 1338761100, 1338761098, 1338761082, 1338761075, 1338761070, 1338761066, 1338761061, 1338761057, 1338761018, 1338761016, 1338761015, 1338760989, 1338760987, 1338760979, 1338760973, 1338760971, 1338760969, 1338760948, 1338760946, 1338760943, 1338760942, 1338760940, 1338760899, 1338760887, 1338760883, 1338760879, 1338760876, 1338760846, 1338760842, 1338760841]} final : False mtd_id 4302 list_pids : [1338761167, 1338761165, 1338761161, 1338761158, 1338761151, 1338761148, 1338761107, 1338761104, 1338761102, 1338761100, 1338761098] Looping around the photos to save general results len do output : 11 /1338761167.Didn't retrieve data . /1338761165.Didn't retrieve data . /1338761161.Didn't retrieve data . /1338761158.Didn't retrieve data . /1338761151.Didn't retrieve data . /1338761148.Didn't retrieve data . /1338761107.Didn't retrieve data . /1338761104.Didn't retrieve data . /1338761102.Didn't retrieve data . /1338761100.Didn't retrieve data . /1338761098.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, '2603151') ('4302', '20712011', '1338761167', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761165', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761161', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761158', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761151', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761148', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761107', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761104', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761102', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761100', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761098', None, None, None, None, None, '2603151') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20712011', '1338761167', '0.04194441793638459', None, None, None, None, '2603151'), ('4302', '20712011', '1338761165', '0.04194441793638459', None, None, None, None, '2603151'), ('4302', '20712011', '1338761161', '0.04194441793638459', None, None, None, None, '2603151'), ('4302', '20712011', '1338761158', '0.04194441793638459', None, None, None, None, '2603151'), ('4302', '20712011', '1338761151', '0.04194441793638459', None, None, None, None, '2603151'), ('4302', '20712011', '1338761148', '0.04194441793638459', None, None, None, None, '2603151'), ('4302', '20712011', '1338761107', '0.04194441793638459', None, None, None, None, '2603151'), ('4302', '20712011', '1338761104', '0.04194441793638459', None, None, None, None, '2603151'), ('4302', '20712011', '1338761102', '0.04194441793638459', None, None, None, None, '2603151'), ('4302', '20712011', '1338761100', '0.04194441793638459', None, None, None, None, '2603151'), ('4302', '20712011', '1338761098', '0.04194441793638459', None, None, None, None, '2603151')] time used for this insertion : 0.0164797306060791 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07293033599853516 time spend to save output : 0.01708197593688965 total time spend for step 2 : 0.0900123119354248 step3:velours_tree Fri Feb 21 06:24:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {20712011: [{'Teint_Dans_La_Masse': 20712065, 'mal_croppe': 20712066, 'cartonnette': 20712067, 'plastique': 20712068, 'flou': 20712069, 'papier': 20712070, 'metal': 20712071, 'environnement': 20712072, 'Carton_brun': 20712073, 'Carton_gris': 20712074, 'autre_refus': 20712075, 'kraft': 20712076}]} input_args_next_step : {20712011: ()} output_args : {20712011: [{'Teint_Dans_La_Masse': 20712065, 'mal_croppe': 20712066, 'cartonnette': 20712067, 'plastique': 20712068, 'flou': 20712069, 'papier': 20712070, 'metal': 20712071, 'environnement': 20712072, 'Carton_brun': 20712073, 'Carton_gris': 20712074, 'autre_refus': 20712075, 'kraft': 20712076}]} args : 20712011 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Teint_Dans_La_Masse': 20712065, 'mal_croppe': 20712066, 'cartonnette': 20712067, 'plastique': 20712068, 'flou': 20712069, 'papier': 20712070, 'metal': 20712071, 'environnement': 20712072, 'Carton_brun': 20712073, 'Carton_gris': 20712074, 'autre_refus': 20712075, 'kraft': 20712076},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20712011) 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([20712011]) 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.2970612049102783 time spend to save output : 5.888938903808594e-05 total time spend for step 3 : 0.2971200942993164 step4:send_mail_cod Fri Feb 21 06:24:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1338761167: ('0.04194441793638459',), 1338761165: ('0.04194441793638459',), 1338761161: ('0.04194441793638459',), 1338761158: ('0.04194441793638459',), 1338761151: ('0.04194441793638459',), 1338761148: ('0.04194441793638459',), 1338761107: ('0.04194441793638459',), 1338761104: ('0.04194441793638459',), 1338761102: ('0.04194441793638459',), 1338761100: ('0.04194441793638459',), 1338761098: ('0.04194441793638459',)} input_args_next_step : {1338761167: ()} output_args : {1338761167: ('0.04194441793638459',), 1338761165: ('0.04194441793638459',), 1338761161: ('0.04194441793638459',), 1338761158: ('0.04194441793638459',), 1338761151: ('0.04194441793638459',), 1338761148: ('0.04194441793638459',), 1338761107: ('0.04194441793638459',), 1338761104: ('0.04194441793638459',), 1338761102: ('0.04194441793638459',), 1338761100: ('0.04194441793638459',), 1338761098: ('0.04194441793638459',)} args : 1338761167 depend.output_id : 0 input_args_next_step : {1338761167: ('0.04194441793638459',), 1338761165: ()} output_args : {1338761167: ('0.04194441793638459',), 1338761165: ('0.04194441793638459',), 1338761161: ('0.04194441793638459',), 1338761158: ('0.04194441793638459',), 1338761151: ('0.04194441793638459',), 1338761148: ('0.04194441793638459',), 1338761107: ('0.04194441793638459',), 1338761104: ('0.04194441793638459',), 1338761102: ('0.04194441793638459',), 1338761100: ('0.04194441793638459',), 1338761098: ('0.04194441793638459',)} args : 1338761165 depend.output_id : 0 input_args_next_step : {1338761167: ('0.04194441793638459',), 1338761165: ('0.04194441793638459',), 1338761161: ()} output_args : {1338761167: ('0.04194441793638459',), 1338761165: ('0.04194441793638459',), 1338761161: ('0.04194441793638459',), 1338761158: ('0.04194441793638459',), 1338761151: ('0.04194441793638459',), 1338761148: ('0.04194441793638459',), 1338761107: ('0.04194441793638459',), 1338761104: ('0.04194441793638459',), 1338761102: ('0.04194441793638459',), 1338761100: ('0.04194441793638459',), 1338761098: ('0.04194441793638459',)} args : 1338761161 depend.output_id : 0 input_args_next_step : {1338761167: ('0.04194441793638459',), 1338761165: ('0.04194441793638459',), 1338761161: ('0.04194441793638459',), 1338761158: ()} output_args : {1338761167: ('0.04194441793638459',), 1338761165: ('0.04194441793638459',), 1338761161: ('0.04194441793638459',), 1338761158: ('0.04194441793638459',), 1338761151: ('0.04194441793638459',), 1338761148: ('0.04194441793638459',), 1338761107: ('0.04194441793638459',), 1338761104: ('0.04194441793638459',), 1338761102: ('0.04194441793638459',), 1338761100: ('0.04194441793638459',), 1338761098: ('0.04194441793638459',)} args : 1338761158 depend.output_id : 0 input_args_next_step : {1338761167: ('0.04194441793638459',), 1338761165: ('0.04194441793638459',), 1338761161: ('0.04194441793638459',), 1338761158: ('0.04194441793638459',), 1338761151: ()} output_args : {1338761167: ('0.04194441793638459',), 1338761165: ('0.04194441793638459',), 1338761161: ('0.04194441793638459',), 1338761158: ('0.04194441793638459',), 1338761151: ('0.04194441793638459',), 1338761148: ('0.04194441793638459',), 1338761107: ('0.04194441793638459',), 1338761104: ('0.04194441793638459',), 1338761102: ('0.04194441793638459',), 1338761100: ('0.04194441793638459',), 1338761098: ('0.04194441793638459',)} args : 1338761151 depend.output_id : 0 input_args_next_step : {1338761167: ('0.04194441793638459',), 1338761165: ('0.04194441793638459',), 1338761161: ('0.04194441793638459',), 1338761158: ('0.04194441793638459',), 1338761151: ('0.04194441793638459',), 1338761148: ()} output_args : {1338761167: ('0.04194441793638459',), 1338761165: ('0.04194441793638459',), 1338761161: ('0.04194441793638459',), 1338761158: ('0.04194441793638459',), 1338761151: ('0.04194441793638459',), 1338761148: ('0.04194441793638459',), 1338761107: ('0.04194441793638459',), 1338761104: ('0.04194441793638459',), 1338761102: ('0.04194441793638459',), 1338761100: ('0.04194441793638459',), 1338761098: ('0.04194441793638459',)} args : 1338761148 depend.output_id : 0 input_args_next_step : {1338761167: ('0.04194441793638459',), 1338761165: ('0.04194441793638459',), 1338761161: ('0.04194441793638459',), 1338761158: ('0.04194441793638459',), 1338761151: ('0.04194441793638459',), 1338761148: ('0.04194441793638459',), 1338761107: ()} output_args : {1338761167: ('0.04194441793638459',), 1338761165: ('0.04194441793638459',), 1338761161: ('0.04194441793638459',), 1338761158: ('0.04194441793638459',), 1338761151: ('0.04194441793638459',), 1338761148: ('0.04194441793638459',), 1338761107: ('0.04194441793638459',), 1338761104: ('0.04194441793638459',), 1338761102: ('0.04194441793638459',), 1338761100: ('0.04194441793638459',), 1338761098: ('0.04194441793638459',)} args : 1338761107 depend.output_id : 0 input_args_next_step : {1338761167: ('0.04194441793638459',), 1338761165: ('0.04194441793638459',), 1338761161: ('0.04194441793638459',), 1338761158: ('0.04194441793638459',), 1338761151: ('0.04194441793638459',), 1338761148: ('0.04194441793638459',), 1338761107: ('0.04194441793638459',), 1338761104: ()} output_args : {1338761167: ('0.04194441793638459',), 1338761165: ('0.04194441793638459',), 1338761161: ('0.04194441793638459',), 1338761158: ('0.04194441793638459',), 1338761151: ('0.04194441793638459',), 1338761148: ('0.04194441793638459',), 1338761107: ('0.04194441793638459',), 1338761104: ('0.04194441793638459',), 1338761102: ('0.04194441793638459',), 1338761100: ('0.04194441793638459',), 1338761098: ('0.04194441793638459',)} args : 1338761104 depend.output_id : 0 input_args_next_step : {1338761167: ('0.04194441793638459',), 1338761165: ('0.04194441793638459',), 1338761161: ('0.04194441793638459',), 1338761158: ('0.04194441793638459',), 1338761151: ('0.04194441793638459',), 1338761148: ('0.04194441793638459',), 1338761107: ('0.04194441793638459',), 1338761104: ('0.04194441793638459',), 1338761102: ()} output_args : {1338761167: ('0.04194441793638459',), 1338761165: ('0.04194441793638459',), 1338761161: ('0.04194441793638459',), 1338761158: ('0.04194441793638459',), 1338761151: ('0.04194441793638459',), 1338761148: ('0.04194441793638459',), 1338761107: ('0.04194441793638459',), 1338761104: ('0.04194441793638459',), 1338761102: ('0.04194441793638459',), 1338761100: ('0.04194441793638459',), 1338761098: ('0.04194441793638459',)} args : 1338761102 depend.output_id : 0 input_args_next_step : {1338761167: ('0.04194441793638459',), 1338761165: ('0.04194441793638459',), 1338761161: ('0.04194441793638459',), 1338761158: ('0.04194441793638459',), 1338761151: ('0.04194441793638459',), 1338761148: ('0.04194441793638459',), 1338761107: ('0.04194441793638459',), 1338761104: ('0.04194441793638459',), 1338761102: ('0.04194441793638459',), 1338761100: ()} output_args : {1338761167: ('0.04194441793638459',), 1338761165: ('0.04194441793638459',), 1338761161: ('0.04194441793638459',), 1338761158: ('0.04194441793638459',), 1338761151: ('0.04194441793638459',), 1338761148: ('0.04194441793638459',), 1338761107: ('0.04194441793638459',), 1338761104: ('0.04194441793638459',), 1338761102: ('0.04194441793638459',), 1338761100: ('0.04194441793638459',), 1338761098: ('0.04194441793638459',)} args : 1338761100 depend.output_id : 0 input_args_next_step : {1338761167: ('0.04194441793638459',), 1338761165: ('0.04194441793638459',), 1338761161: ('0.04194441793638459',), 1338761158: ('0.04194441793638459',), 1338761151: ('0.04194441793638459',), 1338761148: ('0.04194441793638459',), 1338761107: ('0.04194441793638459',), 1338761104: ('0.04194441793638459',), 1338761102: ('0.04194441793638459',), 1338761100: ('0.04194441793638459',), 1338761098: ()} output_args : {1338761167: ('0.04194441793638459',), 1338761165: ('0.04194441793638459',), 1338761161: ('0.04194441793638459',), 1338761158: ('0.04194441793638459',), 1338761151: ('0.04194441793638459',), 1338761148: ('0.04194441793638459',), 1338761107: ('0.04194441793638459',), 1338761104: ('0.04194441793638459',), 1338761102: ('0.04194441793638459',), 1338761100: ('0.04194441793638459',), 1338761098: ('0.04194441793638459',)} args : 1338761098 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 : {20712011: [{'Teint_Dans_La_Masse': 20712065, 'mal_croppe': 20712066, 'cartonnette': 20712067, 'plastique': 20712068, 'flou': 20712069, 'papier': 20712070, 'metal': 20712071, 'environnement': 20712072, 'Carton_brun': 20712073, 'Carton_gris': 20712074, 'autre_refus': 20712075, 'kraft': 20712076}]} input_args_next_step : {1338761167: ('0.04194441793638459',), 1338761165: ('0.04194441793638459',), 1338761161: ('0.04194441793638459',), 1338761158: ('0.04194441793638459',), 1338761151: ('0.04194441793638459',), 1338761148: ('0.04194441793638459',), 1338761107: ('0.04194441793638459',), 1338761104: ('0.04194441793638459',), 1338761102: ('0.04194441793638459',), 1338761100: ('0.04194441793638459',), 1338761098: ('0.04194441793638459',), 20712011: ()} output_args : {20712011: [{'Teint_Dans_La_Masse': 20712065, 'mal_croppe': 20712066, 'cartonnette': 20712067, 'plastique': 20712068, 'flou': 20712069, 'papier': 20712070, 'metal': 20712071, 'environnement': 20712072, 'Carton_brun': 20712073, 'Carton_gris': 20712074, 'autre_refus': 20712075, 'kraft': 20712076}]} args : 20712011 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :12, first value : ('0.04194441793638459',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20712011) 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 (1338761167,1338761165,1338761161,1338761158,1338761151,1338761148,1338761107,1338761104,1338761102,1338761100,1338761098) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1338761098 begin to download photo : 1338761104 begin to download photo : 1338761151 begin to download photo : 1338761165 download finish for photo 1338761151 begin to download photo : 1338761158 download finish for photo 1338761104 begin to download photo : 1338761107 download finish for photo 1338761098 begin to download photo : 1338761100 download finish for photo 1338761165 begin to download photo : 1338761167 download finish for photo 1338761158 begin to download photo : 1338761161 download finish for photo 1338761167 download finish for photo 1338761107 begin to download photo : 1338761148 download finish for photo 1338761100 begin to download photo : 1338761102 download finish for photo 1338761161 download finish for photo 1338761102 download finish for photo 1338761148 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette207120661740115499/ length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P20712011_21-02-2025_06_24_59.pdf 20712066 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=20712066 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207120661740115499 20712067 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=20712067 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338761079: '1740115232_3764874_1338760899_f1e976d2dbace9d414c4cf756259b2a3_rle_crop_3681629936_0.png', 1338761080: '1740115232_3764874_1338760899_f1e976d2dbace9d414c4cf756259b2a3_rle_crop_3681629937_0.png', 1338761081: '1740115232_3764874_1338760899_f1e976d2dbace9d414c4cf756259b2a3_rle_crop_3681629944_0.png', 1338761121: '1740115293_3765908_1338760946_6582325c84a0c72032728c937cae05d4_rle_crop_3681630566_0.png', 1338761122: '1740115293_3765908_1338760940_26db0e50111eaf86fbe9e30ee21bdf6c_rle_crop_3681630756_0.png', 1338761141: '1740115314_3766278_1338760971_881546fd4499067fef6a97ebe5ba7cc2_rle_crop_3681630999_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/313f61c9f2f629cae4a950a32acf6418_73237686.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/68a368da5522d2d62e2e9dded4f3d34c_79496128.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/5e961da463d89819876c466027e7511e_60068824.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/96033a75458aeaa530e4d866a1a7bade_3599713.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/83ad06721963a0b94cb97b7c08c8bf3d_89191558.png change filename to text .imagette207120671740115499/ imagette207120671740115499/1740115232_3764874_1338760899_f1e976d2dbace9d414c4cf756259b2a3_rle_crop_3681629936_0.png.png imagette207120671740115499/1740115232_3764874_1338760899_f1e976d2dbace9d414c4cf756259b2a3_rle_crop_3681629944_0.png.png imagette207120671740115499/1740115232_3764874_1338760899_f1e976d2dbace9d414c4cf756259b2a3_rle_crop_3681629937_0.png.png imagette207120671740115499/1740115314_3766278_1338760971_881546fd4499067fef6a97ebe5ba7cc2_rle_crop_3681630999_0.png.png imagette207120671740115499/1740115293_3765908_1338760940_26db0e50111eaf86fbe9e30ee21bdf6c_rle_crop_3681630756_0.png.png imagette207120671740115499/1740115293_3765908_1338760946_6582325c84a0c72032728c937cae05d4_rle_crop_3681630566_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/90eee335a9dddfce4372c2a3c9b090ce_46523106.png imagette207120671740115499 20712068 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=20712068 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338761092: '1740115232_3764874_1338760842_4a6032888d70cd17c50756613b93cb50_rle_crop_3681630004_0.png', 1338761126: '1740115293_3765908_1338760943_efa7fbabbbba7b16a6947de3a1a9d05d_rle_crop_3681630588_0.png', 1338761145: '1740115314_3766278_1338760973_fe28cf3ef893f42e22863db385ee656c_rle_crop_3681630949_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/ac996264c2728336ae08605fdfc1f101_56819603.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/176f7e38aa10e7cdb8a8d365507af110_72400997.png change filename to text .imagette207120681740115499/ imagette207120681740115499/1740115293_3765908_1338760943_efa7fbabbbba7b16a6947de3a1a9d05d_rle_crop_3681630588_0.png.png imagette207120681740115499/1740115314_3766278_1338760973_fe28cf3ef893f42e22863db385ee656c_rle_crop_3681630949_0.png.png imagette207120681740115499/1740115232_3764874_1338760842_4a6032888d70cd17c50756613b93cb50_rle_crop_3681630004_0.png.png imagette207120691740115499/ imagette207120711740115499/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/88c031fabb0732d8023404377b6a04b2_52004164.png imagette207120681740115499 20712069 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=20712069 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207120691740115499 20712071 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=20712071 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette207120711740115499 20712075 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=20712075 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338761117: '1740115293_3765908_1338760943_efa7fbabbbba7b16a6947de3a1a9d05d_rle_crop_3681630584_0.png'} change filename to text .imagette207120751740115499/ imagette207120751740115499/1740115293_3765908_1338760943_efa7fbabbbba7b16a6947de3a1a9d05d_rle_crop_3681630584_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/33ba9bc82cbea9390ee481545ca4b1f7_27516043.png imagette207120751740115499 20712076 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=20712076 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338761127: '1740115293_3765908_1338760946_6582325c84a0c72032728c937cae05d4_rle_crop_3681630563_0.png'} change filename to text .imagette207120761740115499/ imagette207120761740115499/1740115293_3765908_1338760946_6582325c84a0c72032728c937cae05d4_rle_crop_3681630563_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/9694f88de0d3e4016089c1467bc8b983_43680467.png imagette207120761740115499 20712065 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=20712065 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338761076: '1740115232_3764874_1338760841_f24ecf15a0c1709a5c2ad461c2b1cc24_rle_crop_3681630010_0.png', 1338761094: '1740115252_3765120_1338760887_b7b37a20ad0890e13e09170a4012619d_rle_crop_3681630041_0.png', 1338761095: '1740115252_3765120_1338760876_46b812e000fae450fd81c156370f166d_rle_crop_3681630266_0.png', 1338761111: '1740115293_3765908_1338760942_b6291c324e04a18f411686b45b3c4d61_rle_crop_3681630714_0.png', 1338761112: '1740115293_3765908_1338760942_b6291c324e04a18f411686b45b3c4d61_rle_crop_3681630720_0.png', 1338761113: '1740115293_3765908_1338760942_b6291c324e04a18f411686b45b3c4d61_rle_crop_3681630713_0.png', 1338761114: '1740115293_3765908_1338760942_b6291c324e04a18f411686b45b3c4d61_rle_crop_3681630722_0.png', 1338761115: '1740115293_3765908_1338760940_26db0e50111eaf86fbe9e30ee21bdf6c_rle_crop_3681630763_0.png', 1338761153: '1740115332_3766546_1338760948_b111f2db233ac6edd018485a29888444_rle_crop_3681630991_0.png', 1338761154: '1740115332_3766546_1338760887_b7b37a20ad0890e13e09170a4012619d_rle_crop_3681630041_0.png', 1338761155: '1740115332_3766546_1338760876_46b812e000fae450fd81c156370f166d_rle_crop_3681630266_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/a34a9cdb8b6702dffb1ecef278806a4f_27361601.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/4435673f573202dbeb668c37be41d1d1_470844.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/53f4e324bac78a91f18d12ddea854c84_92215635.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/5774ee138ce9792fdf6be6cc9a9a6057_20445548.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/15b5bdb1b5dce06067ba2fbf87cd115a_71561145.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/511dcc8742604962de3439e8ec154fea_35391183.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/565be968fabd490a8e1c35d74c320c90_96809501.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/d40f10dd8c116da54f6d019cc480fa8d_34294132.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/f2c3462056548c707e0c84834f5448e1_84358563.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/4435673f573202dbeb668c37be41d1d1_71323606.png change filename to text .imagette207120651740115499/ imagette207120651740115499/1740115252_3765120_1338760876_46b812e000fae450fd81c156370f166d_rle_crop_3681630266_0.png.png imagette207120651740115499/1740115252_3765120_1338760887_b7b37a20ad0890e13e09170a4012619d_rle_crop_3681630041_0.png.png imagette207120651740115499/1740115293_3765908_1338760940_26db0e50111eaf86fbe9e30ee21bdf6c_rle_crop_3681630763_0.png.png imagette207120651740115499/1740115293_3765908_1338760942_b6291c324e04a18f411686b45b3c4d61_rle_crop_3681630714_0.png.png imagette207120651740115499/1740115332_3766546_1338760887_b7b37a20ad0890e13e09170a4012619d_rle_crop_3681630041_0.png.png imagette207120651740115499/1740115232_3764874_1338760841_f24ecf15a0c1709a5c2ad461c2b1cc24_rle_crop_3681630010_0.png.png imagette207120651740115499/1740115332_3766546_1338760948_b111f2db233ac6edd018485a29888444_rle_crop_3681630991_0.png.png imagette207120651740115499/1740115293_3765908_1338760942_b6291c324e04a18f411686b45b3c4d61_rle_crop_3681630722_0.png.png imagette207120651740115499/1740115293_3765908_1338760942_b6291c324e04a18f411686b45b3c4d61_rle_crop_3681630720_0.png.png imagette207120651740115499/1740115332_3766546_1338760876_46b812e000fae450fd81c156370f166d_rle_crop_3681630266_0.png.png imagette207120651740115499/1740115293_3765908_1338760942_b6291c324e04a18f411686b45b3c4d61_rle_crop_3681630713_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/53f4e324bac78a91f18d12ddea854c84_92283851.png imagette207120651740115499 20712073 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=20712073 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338761083: '1740115232_3764874_1338760899_f1e976d2dbace9d414c4cf756259b2a3_rle_crop_3681629948_0.png', 1338761084: '1740115232_3764874_1338760846_78be60c34f72a9d115dd194a31d4be65_rle_crop_3681629990_0.png', 1338761088: '1740115232_3764874_1338760842_4a6032888d70cd17c50756613b93cb50_rle_crop_3681630001_0.png', 1338761124: '1740115293_3765908_1338760942_b6291c324e04a18f411686b45b3c4d61_rle_crop_3681630716_0.png', 1338761125: '1740115293_3765908_1338760940_26db0e50111eaf86fbe9e30ee21bdf6c_rle_crop_3681630760_0.png', 1338761144: '1740115314_3766278_1338760973_fe28cf3ef893f42e22863db385ee656c_rle_crop_3681630947_0.png', 1338761156: '1740115332_3766546_1338760948_b111f2db233ac6edd018485a29888444_rle_crop_3681630988_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/9140eeaf1ae591890003f76d610082ef_87859967.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/1c629c98a1e7fe8fa14c88a97945778a_39106720.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/5b69a3af55a4c391279117b5f3f11796_92621327.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/f2dde08eef896694741fd3fe534bab25_85689470.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/c3fe6607f6e2342dc39944ff9e00474a_90181575.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/fc33598cf2fabc0efd120d500788a700_63767900.png change filename to text .imagette207120731740115500/ imagette207120731740115500/1740115314_3766278_1338760973_fe28cf3ef893f42e22863db385ee656c_rle_crop_3681630947_0.png.png imagette207120731740115500/1740115293_3765908_1338760942_b6291c324e04a18f411686b45b3c4d61_rle_crop_3681630716_0.png.png imagette207120731740115500/1740115232_3764874_1338760846_78be60c34f72a9d115dd194a31d4be65_rle_crop_3681629990_0.png.png imagette207120731740115500/1740115332_3766546_1338760948_b111f2db233ac6edd018485a29888444_rle_crop_3681630988_0.png.png imagette207120731740115500/1740115293_3765908_1338760940_26db0e50111eaf86fbe9e30ee21bdf6c_rle_crop_3681630760_0.png.png imagette207120731740115500/1740115232_3764874_1338760842_4a6032888d70cd17c50756613b93cb50_rle_crop_3681630001_0.png.png imagette207120731740115500/1740115232_3764874_1338760899_f1e976d2dbace9d414c4cf756259b2a3_rle_crop_3681629948_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/16b6c2311e56213404a270c691ab8a60_62261091.png imagette207120731740115500 20712074 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=20712074 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1338761077: '1740115232_3764874_1338760841_f24ecf15a0c1709a5c2ad461c2b1cc24_rle_crop_3681630009_0.png', 1338761118: '1740115293_3765908_1338760946_6582325c84a0c72032728c937cae05d4_rle_crop_3681630559_0.png', 1338761119: '1740115293_3765908_1338760943_efa7fbabbbba7b16a6947de3a1a9d05d_rle_crop_3681630587_0.png', 1338761120: '1740115293_3765908_1338760942_b6291c324e04a18f411686b45b3c4d61_rle_crop_3681630708_0.png', 1338761140: '1740115314_3766278_1338760969_5f6b5ce82f84ed318c8f6574806c1b34_rle_crop_3681631010_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/28b17ed17fc1af9712929bf16c83d190_23062891.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/8c87be0de46d449ffb0324e8f7624200_14293042.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/b5cee41e7dcbcb5d44ebd140e7b72066_92769670.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/f2b1ff63fdca95ad3ebad8e09100116d_34182444.png change filename to text .imagette207120741740115500/ imagette207120741740115500/1740115232_3764874_1338760841_f24ecf15a0c1709a5c2ad461c2b1cc24_rle_crop_3681630009_0.png.png imagette207120741740115500/1740115293_3765908_1338760942_b6291c324e04a18f411686b45b3c4d61_rle_crop_3681630708_0.png.png imagette207120741740115500/1740115314_3766278_1338760969_5f6b5ce82f84ed318c8f6574806c1b34_rle_crop_3681631010_0.png.png imagette207120741740115500/1740115293_3765908_1338760943_efa7fbabbbba7b16a6947de3a1a9d05d_rle_crop_3681630587_0.png.png imagette207120741740115500/1740115293_3765908_1338760946_6582325c84a0c72032728c937cae05d4_rle_crop_3681630559_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/9e156bc473f576d6015d6d163152b032_25564674.png imagette207120741740115500 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20712011 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20712077,20712078,20712079,20712080,20712081,20712082,20712083,20712084,20712085,20712086,20712087,20712088?tags=Teint_Dans_La_Masse,mal_croppe,cartonnette,plastique,flou,papier,metal,environnement,Carton_brun,Carton_gris,autre_refus,kraft your option no_mail is active, we will not send the real mail to your client args[1338761167] : ('0.04194441793638459',) no score found for photo 1338761167 We are sending mail with results at report@fotonower.com args[1338761165] : ('0.04194441793638459',) no score found for photo 1338761165 We are sending mail with results at report@fotonower.com args[1338761161] : ('0.04194441793638459',) no score found for photo 1338761161 We are sending mail with results at report@fotonower.com args[1338761158] : ('0.04194441793638459',) no score found for photo 1338761158 We are sending mail with results at report@fotonower.com args[1338761151] : ('0.04194441793638459',) no score found for photo 1338761151 We are sending mail with results at report@fotonower.com args[1338761148] : ('0.04194441793638459',) no score found for photo 1338761148 We are sending mail with results at report@fotonower.com args[1338761107] : ('0.04194441793638459',) no score found for photo 1338761107 We are sending mail with results at report@fotonower.com args[1338761104] : ('0.04194441793638459',) no score found for photo 1338761104 We are sending mail with results at report@fotonower.com args[1338761102] : ('0.04194441793638459',) no score found for photo 1338761102 We are sending mail with results at report@fotonower.com args[1338761100] : ('0.04194441793638459',) no score found for photo 1338761100 We are sending mail with results at report@fotonower.com args[1338761098] : ('0.04194441793638459',) no score found for photo 1338761098 We are sending mail with results at report@fotonower.com refus_total : 0.04194441793638459 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=20712011 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_P20712011_21-02-2025_06_24_59.pdf results_Auto_P20712011_21-02-2025_06_24_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20712011_21-02-2025_06_24_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20712011','results_Auto_P20712011_21-02-2025_06_24_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20712011_21-02-2025_06_24_59.pdf','pdf','','0.2','0.04194441793638459') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20712011]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1338761167, 1338761165, 1338761161, 1338761158, 1338761151, 1338761148, 1338761107, 1338761104, 1338761102, 1338761100, 1338761098] map_info['map_portfolio_photo'] : {20712011: [1338761167, 1338761165, 1338761161, 1338761158, 1338761151, 1338761148, 1338761107, 1338761104, 1338761102, 1338761100, 1338761098, 1338761082, 1338761075, 1338761070, 1338761066, 1338761061, 1338761057, 1338761018, 1338761016, 1338761015, 1338760989, 1338760987, 1338760979, 1338760973, 1338760971, 1338760969, 1338760948, 1338760946, 1338760943, 1338760942, 1338760940, 1338760899, 1338760887, 1338760883, 1338760879, 1338760876, 1338760846, 1338760842, 1338760841]} final : False mtd_id 4302 list_pids : [1338761167, 1338761165, 1338761161, 1338761158, 1338761151, 1338761148, 1338761107, 1338761104, 1338761102, 1338761100, 1338761098] 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, '2603151') ('4302', '20712011', '1338761167', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761165', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761161', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761158', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761151', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761148', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761107', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761104', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761102', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761100', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761098', None, None, None, None, None, '2603151') 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', '20712011', '1338761167', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761165', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761161', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761158', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761151', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761148', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761107', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761104', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761102', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761100', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761098', None, None, None, None, None, '2603151')] time used for this insertion : 0.012783050537109375 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.567526340484619 time spend to save output : 0.013005971908569336 total time spend for step 4 : 3.5805323123931885 step5:split_time_score Fri Feb 21 06:25: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 complete output_args for input 0 : ['20712011'] 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 : [('20712011',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20712011) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1338761165: {'path': 'temp/1740115498_1305241_1338761165_f4cc41e74c9489e003216f94c1086d0f.jpg', 'extension': 'jpg'}, 1338761167: {'path': 'temp/1740115498_1305241_1338761167_d56931d8aa527f6f2f25ad012e47f551.jpg', 'extension': 'jpg'}, 1338761151: {'path': 'temp/1740115498_1305241_1338761151_2568bbc0ae8a0d6394ce52712177864e.jpg', 'extension': 'jpg'}, 1338761158: {'path': 'temp/1740115498_1305241_1338761158_3cbac4aaaed1676bb6510de9f7775aa1.jpg', 'extension': 'jpg'}, 1338761161: {'path': 'temp/1740115498_1305241_1338761161_5dfa3ade0d33f87124cad745e5c759d6.jpg', 'extension': 'jpg'}, 1338761098: {'path': 'temp/1740115498_1305241_1338761098_86ab81f3f44b4fdb90e89476dff538ec.jpg', 'extension': 'jpg'}, 1338761100: {'path': 'temp/1740115498_1305241_1338761100_cac9e9974ba41b390010dac9a899deb8.jpg', 'extension': 'jpg'}, 1338761102: {'path': 'temp/1740115498_1305241_1338761102_fb8ba3f2964a666ff5a16e72248423c1.jpg', 'extension': 'jpg'}, 1338761104: {'path': 'temp/1740115498_1305241_1338761104_5c83b2156165606ac5ab7be8003c8172.jpg', 'extension': 'jpg'}, 1338761107: {'path': 'temp/1740115498_1305241_1338761107_24bc8dd599958b1906058928e457910c.jpg', 'extension': 'jpg'}, 1338761148: {'path': 'temp/1740115498_1305241_1338761148_933065ef92f78c2878b575306400badf.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 = 20712011; (('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 = 20712011 group by h (('06', 39),) 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=20712011 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 (20712011) 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 (20712011) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 21022025 20712011 Nombre de photos uploadées : 39 / 23040 (0%) 21022025 20712011 Nombre de photos taguées (types de déchets): 0 / 39 (0%) 21022025 20712011 Nombre de photos taguées (volume) : 0 / 39 (0%) [{'photo_id': 1338760846, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/78be60c34f72a9d115dd194a31d4be65.jpg', 'username': None, 'uploaded_at': 1740114982, 'text': 'image_21022025_06_15_24_10140.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1338760842, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/4a6032888d70cd17c50756613b93cb50.jpg', 'username': None, 'uploaded_at': 1740114982, 'text': 'image_21022025_06_15_34_10136.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1338760841, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/f24ecf15a0c1709a5c2ad461c2b1cc24.jpg', 'username': None, 'uploaded_at': 1740114982, 'text': 'image_21022025_06_15_44_10136.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1338760899, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/21/f1e976d2dbace9d414c4cf756259b2a3.jpg', 'username': None, 'uploaded_at': 1740115047, 'text': 'image_21022025_06_15_54_10138.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 4.5299530029296875e-06 ??????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0026803016662597656 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20712011, '2025-02-21' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1615145,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022491455078125 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= 1615145 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1615145, 'dashboard_run_id': 1623444, 'mtr_portfolio_id': 20710337, 'dashboard_result_id': 8997662, '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_P20710337_21-02-2025_05_49_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20710339, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20710340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20710341, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20710342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20710343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20710344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20710345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20710346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20710347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20710348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20710349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20710350, 'pht': 3726}}"}, {'dashboat_entry_day': 1615145, 'dashboard_run_id': 1623444, 'mtr_portfolio_id': 20710851, 'dashboard_result_id': 8997663, '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_P20710851_21-02-2025_06_03_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20710853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20710854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20710855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20710856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20710857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20710858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20710859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20710860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20710861, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20710862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20710863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20710864, 'pht': 3726}}"}, {'dashboat_entry_day': 1615145, 'dashboard_run_id': 1623444, 'mtr_portfolio_id': 20711349, 'dashboard_result_id': 8997664, '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_P20711349_21-02-2025_06_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20711378, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20711379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20711380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20711381, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20711382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20711383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20711384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20711385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20711386, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20711387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20711388, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20711389, 'pht': 3726}}"}, {'dashboat_entry_day': 1615145, 'dashboard_run_id': 1623444, 'mtr_portfolio_id': 20712011, 'dashboard_result_id': 8997665, '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_P20712011_21-02-2025_06_23_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20712065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20712066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20712067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20712068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20712069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20712070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20712071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20712072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20712073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20712074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20712075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20712076, '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 = 20710337 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': 2603028, 'mtr_portfolio_id': 20710337, 'created_at': datetime.datetime(2025, 2, 21, 5, 49, 27), 'result': '0.039246491791450545', 'result_long': None, 'result_double': None}] Qualite : 0.039246491791450545 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20710337 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20710337_21-02-2025_05_49_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20710337 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_P20710337_21-02-2025_05_49_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20710339, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20710340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20710341, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20710342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20710343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20710344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20710345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20710346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20710347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20710348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20710349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20710350, 'pht': 3726}}" where mtr_portfolio_id = 20710337 and dashboard_run_id = 1623444 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`=20710337 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8997662, 0.039246491791450545, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20710337_21-02-2025_05_49_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 20710339, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20710340, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20710341, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20710342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20710343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20710344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20710345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20710346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20710347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20710348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20710349, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20710350, '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 = 20710851 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': 2603058, 'mtr_portfolio_id': 20710851, 'created_at': datetime.datetime(2025, 2, 21, 6, 3, 1), 'result': '0.04291334710113117', 'result_long': None, 'result_double': None}] Qualite : 0.04291334710113117 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20710851 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20710851_21-02-2025_06_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20710851 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_P20710851_21-02-2025_06_03_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20710853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20710854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20710855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20710856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20710857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20710858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20710859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20710860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20710861, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20710862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20710863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20710864, 'pht': 3726}}" where mtr_portfolio_id = 20710851 and dashboard_run_id = 1623444 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`=20710851 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8997663, 0.04291334710113117, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20710851_21-02-2025_06_03_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20710853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20710854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20710855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20710856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20710857, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20710858, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20710859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20710860, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20710861, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20710862, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20710863, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20710864, '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 = 20711349 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': 2603107, 'mtr_portfolio_id': 20711349, 'created_at': datetime.datetime(2025, 2, 21, 6, 19), 'result': '0.047325270697138315', 'result_long': None, 'result_double': None}] Qualite : 0.047325270697138315 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20711349 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20711349_21-02-2025_06_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20711349 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_P20711349_21-02-2025_06_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20711378, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20711379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20711380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20711381, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20711382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20711383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20711384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20711385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20711386, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20711387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20711388, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20711389, 'pht': 3726}}" where mtr_portfolio_id = 20711349 and dashboard_run_id = 1623444 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`=20711349 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8997664, 0.047325270697138315, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20711349_21-02-2025_06_19_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20711378, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20711379, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20711380, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20711381, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20711382, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20711383, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20711384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20711385, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20711386, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20711387, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20711388, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20711389, '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 = 20712011 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': 2603151, 'mtr_portfolio_id': 20712011, 'created_at': datetime.datetime(2025, 2, 21, 6, 24, 58), 'result': '0.04194441793638459', 'result_long': None, 'result_double': None}] Qualite : 0.04194441793638459 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20712011 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20712011_21-02-2025_06_24_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20712011 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_P20712011_21-02-2025_06_24_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20712065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20712066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20712067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20712068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20712069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20712070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20712071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20712072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20712073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20712074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20712075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20712076, 'pht': 3726}}" where mtr_portfolio_id = 20712011 and dashboard_run_id = 1623444 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`=20712011 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (8997665, 0.04194441793638459, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20712011_21-02-2025_06_24_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20712065, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20712066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20712067, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20712068, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20712069, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20712070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20712071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20712072, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20712073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20712074, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20712075, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20712076, '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 (20710337,20710851,20711349,20712011) result : ((1338755576,), (1338755578,), (1338755581,), (1338755592,), (1338755599,), (1338755626,), (1338755629,), (1338755632,), (1338755677,), (1338755678,), (1338755680,), (1338755684,), (1338755686,), (1338755782,), (1338755791,), (1338755796,), (1338755798,), (1338755800,), (1338755806,), (1338755893,), (1338755895,), (1338755898,), (1338755901,), (1338755913,), (1338755916,), (1338755927,), (1338755936,), (1338755942,), (1338755971,), (1338755975,), (1338756041,), (1338756050,), (1338756052,), (1338756053,), (1338756060,), (1338756062,), (1338756071,), (1338756073,), (1338756089,), (1338756091,), (1338756093,), (1338756095,), (1338756097,), (1338756108,), (1338756110,), (1338756112,), (1338756115,), (1338756118,), (1338756121,), (1338756152,), (1338756155,), (1338756159,), (1338756160,), (1338756163,), (1338756208,), (1338756254,), (1338756260,), (1338756269,), (1338756272,), (1338756310,), (1338756312,), (1338756315,), (1338756317,), (1338756320,), (1338756322,), (1338756346,), (1338756396,), (1338756402,), (1338756405,), (1338756409,), (1338756447,), (1338756436,), (1338756438,), (1338756441,), (1338756445,), (1338756548,), (1338756627,), (1338756630,), (1338756655,), (1338756734,), (1338757004,), (1338757009,), (1338757011,), (1338757033,), (1338757036,), (1338757058,), (1338757060,), (1338757063,), (1338757064,), (1338757066,), (1338757076,), (1338757085,), (1338757088,), (1338757094,), (1338757099,), (1338757102,), (1338757111,), (1338757114,), (1338757116,), (1338757118,), (1338757120,), (1338757122,), (1338757411,), (1338757429,), (1338757434,), (1338757461,), (1338757513,), (1338757936,), (1338758005,), (1338758083,), (1338758219,), (1338758309,), (1338758583,), (1338758598,), (1338758609,), (1338758618,), (1338758623,), (1338758629,), (1338758644,), (1338758650,), (1338758659,), (1338758661,), (1338758773,), (1338758776,), (1338758781,), (1338758782,), (1338758784,), (1338758787,), (1338758798,), (1338758802,), (1338758806,), (1338758810,), (1338758813,), (1338758844,), (1338758850,), (1338758854,), (1338758856,), (1338758995,), (1338758998,), (1338759001,), (1338759004,), (1338759005,), (1338759006,), (1338759100,), (1338759110,), (1338759112,), (1338759114,), (1338759136,), (1338759118,), (1338759125,), (1338759128,), (1338759131,), (1338759133,), (1338759153,), (1338759155,), (1338759157,), (1338759159,), (1338759161,), (1338759194,), (1338759196,), (1338759198,), (1338759201,), (1338759204,), (1338759206,), (1338759220,), (1338759222,), (1338759224,), (1338759226,), (1338759249,), (1338759251,), (1338759256,), (1338759262,), (1338759264,), (1338759267,), (1338759279,), (1338759293,), (1338759301,), (1338759309,), (1338759342,), (1338759344,), (1338759486,), (1338759632,), (1338759725,), (1338759852,), (1338760231,), (1338760233,), (1338760236,), (1338760245,), (1338760253,), (1338760488,), (1338760490,), (1338760531,), (1338760534,), (1338760611,), (1338760613,), (1338760615,), (1338760651,), (1338760681,), (1338760683,), (1338760694,), (1338760703,), (1338760732,), (1338760733,), (1338760736,), (1338760738,), (1338760747,), (1338760749,), (1338760756,), (1338760759,), (1338760761,), (1338760764,), (1338760769,), (1338760788,), (1338760795,), (1338760797,), (1338760799,), (1338760801,), (1338760817,), (1338760819,), (1338760820,), (1338760822,), (1338760824,), (1338760827,), (1338760851,), (1338760841,), (1338760842,), (1338760846,), (1338760876,), (1338760879,), (1338760883,), (1338760887,), (1338760899,), (1338760940,), (1338760942,), (1338760943,), (1338760946,), (1338760948,), (1338760969,), (1338760971,), (1338760973,), (1338760979,), (1338760987,), (1338760989,), (1338761015,), (1338761016,), (1338761018,), (1338761057,), (1338761061,), (1338761066,), (1338761070,), (1338761075,), (1338761082,), (1338761098,), (1338761100,), (1338761102,), (1338761104,), (1338761107,), (1338761148,), (1338761151,), (1338761158,), (1338761161,), (1338761165,), (1338761167,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'21022025': {'nb_upload': 39, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20712011]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1338761167, 1338761165, 1338761161, 1338761158, 1338761151, 1338761148, 1338761107, 1338761104, 1338761102, 1338761100, 1338761098] map_info['map_portfolio_photo'] : {20712011: [1338761167, 1338761165, 1338761161, 1338761158, 1338761151, 1338761148, 1338761107, 1338761104, 1338761102, 1338761100, 1338761098, 1338761082, 1338761075, 1338761070, 1338761066, 1338761061, 1338761057, 1338761018, 1338761016, 1338761015, 1338760989, 1338760987, 1338760979, 1338760973, 1338760971, 1338760969, 1338760948, 1338760946, 1338760943, 1338760942, 1338760940, 1338760899, 1338760887, 1338760883, 1338760879, 1338760876, 1338760846, 1338760842, 1338760841]} final : True mtd_id 4302 list_pids : [1338761167, 1338761165, 1338761161, 1338761158, 1338761151, 1338761148, 1338761107, 1338761104, 1338761102, 1338761100, 1338761098] Looping around the photos to save general results len do output : 1 /20712011Didn'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, '2603151') ('4302', '20712011', '1338761167', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761165', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761161', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761158', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761151', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761148', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761107', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761104', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761102', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761100', None, None, None, None, None, '2603151') ('4302', None, None, None, None, None, None, None, '2603151') ('4302', '20712011', '1338761098', None, None, None, None, None, '2603151') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '20712011', 'None', None, None, None, None, '2603151'), ('4302', '20712011', '1338761167', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761165', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761161', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761158', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761151', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761148', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761107', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761104', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761102', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761100', None, None, None, None, None, '2603151'), ('4302', '20712011', '1338761098', None, None, None, None, None, '2603151')] time used for this insertion : 0.013077497482299805 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3566317558288574 time spend to save output : 0.013299942016601562 total time spend for step 5 : 0.369931697845459 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 (2603151) 2.12user 2.53system 0:08.34elapsed 55%CPU (0avgtext+0avgdata 160232maxresident)k 376inputs+11144outputs (13major+64434minor)pagefaults 0swaps