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 : 339685 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 (2614592) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2614592) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20822915 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2614592'] with mtr_portfolio_ids : ['20822915'] and first list_photo_ids : [] new path : /proc/339685/ Name: python3 Umask: 0002 State: R (running) Tgid: 339685 Ngid: 0 Pid: 339685 PPid: 339684 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 339685 NSpid: 339685 NSpgid: 337941 NSsid: 337941 VmPeak: 1106844 kB VmSize: 1106844 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99268 kB VmRSS: 99268 kB RssAnon: 59752 kB RssFile: 39516 kB RssShmem: 0 kB VmData: 865592 kB VmStk: 132 kB VmExe: 2644 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: 46 nonvoluntary_ctxt_switches: 90 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '339685', 'Ngid': '0', 'Pid': '339685', 'PPid': '339684', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '339685', 'NSpid': '339685', 'NSpgid': '337941', 'NSsid': '337941', 'VmPeak': '1106844 kB', 'VmSize': '1106844 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99268 kB', 'VmRSS': '99268 kB', 'RssAnon': '59752 kB', 'RssFile': '39516 kB', 'RssShmem': '0 kB', 'VmData': '865592 kB', 'VmStk': '132 kB', 'VmExe': '2644 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': '46', 'nonvoluntary_ctxt_switches': '90'} ('datou_batch_current', '339685', '1106844', '0', '1106844', '865592', '99268', b'', 'marlene', '2614592') 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 (20822915) 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 (2614592 ) ) 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 (20822915) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1339669304, 'portfolio_id': 20822915}, {'photo_id': 1339669239, 'portfolio_id': 20822915}, {'photo_id': 1339668950, 'portfolio_id': 20822915}, {'photo_id': 1339668947, 'portfolio_id': 20822915}, {'photo_id': 1339668700, 'portfolio_id': 20822915}, {'photo_id': 1339668697, 'portfolio_id': 20822915}, {'photo_id': 1339668569, 'portfolio_id': 20822915}, {'photo_id': 1339668549, 'portfolio_id': 20822915}, {'photo_id': 1339668546, 'portfolio_id': 20822915}, {'photo_id': 1339668536, 'portfolio_id': 20822915}, {'photo_id': 1339668533, 'portfolio_id': 20822915}, {'photo_id': 1339668531, 'portfolio_id': 20822915}, {'photo_id': 1339668522, 'portfolio_id': 20822915}, {'photo_id': 1339668519, 'portfolio_id': 20822915}, {'photo_id': 1339668516, 'portfolio_id': 20822915}, {'photo_id': 1339668510, 'portfolio_id': 20822915}, {'photo_id': 1339668500, 'portfolio_id': 20822915}, {'photo_id': 1339668499, 'portfolio_id': 20822915}, {'photo_id': 1339668497, 'portfolio_id': 20822915}, {'photo_id': 1339668482, 'portfolio_id': 20822915}, {'photo_id': 1339668468, 'portfolio_id': 20822915}, {'photo_id': 1339668466, 'portfolio_id': 20822915}] map_portfolio_id_photo_id: {20822915: [1339669304, 1339669239, 1339668950, 1339668947, 1339668700, 1339668697, 1339668569, 1339668549, 1339668546, 1339668536, 1339668533, 1339668531, 1339668522, 1339668519, 1339668516, 1339668510, 1339668500, 1339668499, 1339668497, 1339668482, 1339668468, 1339668466]} ##### 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.01699090003967285 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Feb 26 05:14:29 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 (20822915) 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 : 20822915 get user id for portfolio 20822915 get sub ptf for main ptf 20822915, type 3726 and hashtags ['cartonnette', 'Teint_Dans_La_Masse', 'environnement', 'mal_croppe', 'kraft', 'metal', 'Carton_brun', 'papier', 'flou', 'plastique', 'Carton_gris', 'autre_refus'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20822915 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','environnement','mal_croppe','kraft','metal','Carton_brun','papier','flou','plastique','Carton_gris','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20822915 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','environnement','mal_croppe','kraft','metal','Carton_brun','papier','flou','plastique','Carton_gris','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 20822915, 'sub_port_id': 20822942, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459067, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 10, 59)}, 'metal': {'main_port_id': 20822915, 'sub_port_id': 20822943, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459068, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 10, 59)}, 'papier': {'main_port_id': 20822915, 'sub_port_id': 20822944, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459069, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 10, 59)}, 'Carton_brun': {'main_port_id': 20822915, 'sub_port_id': 20822945, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459070, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 10, 59)}, 'Carton_gris': {'main_port_id': 20822915, 'sub_port_id': 20822946, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459071, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 10, 59)}, 'flou': {'main_port_id': 20822915, 'sub_port_id': 20822947, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459072, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 10, 59)}, 'mal_croppe': {'main_port_id': 20822915, 'sub_port_id': 20822948, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459073, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 10, 59)}, 'plastique': {'main_port_id': 20822915, 'sub_port_id': 20822949, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459074, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 10, 59)}, 'environnement': {'main_port_id': 20822915, 'sub_port_id': 20822950, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459075, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 10, 59)}, 'cartonnette': {'main_port_id': 20822915, 'sub_port_id': 20822951, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459076, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 10, 59)}, 'kraft': {'main_port_id': 20822915, 'sub_port_id': 20822952, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459077, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 10, 59)}, 'autre_refus': {'main_port_id': 20822915, 'sub_port_id': 20822953, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459078, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 10, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 20822942 , 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=20822915 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 (20822942) result : ((1339668562,), (1339668572,), (1339669642,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20822915) result : ((1339668466,), (1339668468,), (1339668482,), (1339668497,), (1339668499,), (1339668500,), (1339668510,), (1339668516,), (1339668519,), (1339668522,), (1339668531,), (1339668533,), (1339668536,), (1339668546,), (1339668549,), (1339668569,), (1339668697,), (1339668700,), (1339668947,), (1339668950,), (1339669239,), (1339669304,)) 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 (1339668500,1339668700) 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 20822943 , 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=20822915 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 (20822943) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20822915) result : ((1339668466,), (1339668468,), (1339668482,), (1339668497,), (1339668499,), (1339668500,), (1339668510,), (1339668516,), (1339668519,), (1339668522,), (1339668531,), (1339668533,), (1339668536,), (1339668546,), (1339668549,), (1339668569,), (1339668697,), (1339668700,), (1339668947,), (1339668950,), (1339669239,), (1339669304,)) 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 (1339668500,1339668700) 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 20822944 , 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=20822915 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 (20822944) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20822915) result : ((1339668466,), (1339668468,), (1339668482,), (1339668497,), (1339668499,), (1339668500,), (1339668510,), (1339668516,), (1339668519,), (1339668522,), (1339668531,), (1339668533,), (1339668536,), (1339668546,), (1339668549,), (1339668569,), (1339668697,), (1339668700,), (1339668947,), (1339668950,), (1339669239,), (1339669304,)) 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 (1339668500,1339668700) 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 20822945 , 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=20822915 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 (20822945) result : ((1339668506,), (1339668584,), (1339668879,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20822915) result : ((1339668466,), (1339668468,), (1339668482,), (1339668497,), (1339668499,), (1339668500,), (1339668510,), (1339668516,), (1339668519,), (1339668522,), (1339668531,), (1339668533,), (1339668536,), (1339668546,), (1339668549,), (1339668569,), (1339668697,), (1339668700,), (1339668947,), (1339668950,), (1339669239,), (1339669304,)) 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 (1339668500,1339668700) 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 20822946 , 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=20822915 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 (20822946) result : ((1339668583,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20822915) result : ((1339668466,), (1339668468,), (1339668482,), (1339668497,), (1339668499,), (1339668500,), (1339668510,), (1339668516,), (1339668519,), (1339668522,), (1339668531,), (1339668533,), (1339668536,), (1339668546,), (1339668549,), (1339668569,), (1339668697,), (1339668700,), (1339668947,), (1339668950,), (1339669239,), (1339669304,)) 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 (1339668500,1339668700) 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 20822947 , 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=20822915 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 (20822947) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20822915) result : ((1339668466,), (1339668468,), (1339668482,), (1339668497,), (1339668499,), (1339668500,), (1339668510,), (1339668516,), (1339668519,), (1339668522,), (1339668531,), (1339668533,), (1339668536,), (1339668546,), (1339668549,), (1339668569,), (1339668697,), (1339668700,), (1339668947,), (1339668950,), (1339669239,), (1339669304,)) 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 (1339668500,1339668700) 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 20822948 , 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=20822915 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 (20822948) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20822915) result : ((1339668466,), (1339668468,), (1339668482,), (1339668497,), (1339668499,), (1339668500,), (1339668510,), (1339668516,), (1339668519,), (1339668522,), (1339668531,), (1339668533,), (1339668536,), (1339668546,), (1339668549,), (1339668569,), (1339668697,), (1339668700,), (1339668947,), (1339668950,), (1339669239,), (1339669304,)) 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 (1339668500,1339668700) 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 20822949 , 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=20822915 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 (20822949) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20822915) result : ((1339668466,), (1339668468,), (1339668482,), (1339668497,), (1339668499,), (1339668500,), (1339668510,), (1339668516,), (1339668519,), (1339668522,), (1339668531,), (1339668533,), (1339668536,), (1339668546,), (1339668549,), (1339668569,), (1339668697,), (1339668700,), (1339668947,), (1339668950,), (1339669239,), (1339669304,)) 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 (1339668500,1339668700) 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 20822950 , 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=20822915 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 (20822950) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20822915) result : ((1339668466,), (1339668468,), (1339668482,), (1339668497,), (1339668499,), (1339668500,), (1339668510,), (1339668516,), (1339668519,), (1339668522,), (1339668531,), (1339668533,), (1339668536,), (1339668546,), (1339668549,), (1339668569,), (1339668697,), (1339668700,), (1339668947,), (1339668950,), (1339669239,), (1339669304,)) 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 (1339668500,1339668700) 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 20822951 , 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=20822915 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 (20822951) result : ((1339668563,), (1339668576,), (1339668577,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20822915) result : ((1339668466,), (1339668468,), (1339668482,), (1339668497,), (1339668499,), (1339668500,), (1339668510,), (1339668516,), (1339668519,), (1339668522,), (1339668531,), (1339668533,), (1339668536,), (1339668546,), (1339668549,), (1339668569,), (1339668697,), (1339668700,), (1339668947,), (1339668950,), (1339669239,), (1339669304,)) 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 (1339668500,1339668700) 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 20822952 , 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=20822915 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 (20822952) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20822915) result : ((1339668466,), (1339668468,), (1339668482,), (1339668497,), (1339668499,), (1339668500,), (1339668510,), (1339668516,), (1339668519,), (1339668522,), (1339668531,), (1339668533,), (1339668536,), (1339668546,), (1339668549,), (1339668569,), (1339668697,), (1339668700,), (1339668947,), (1339668950,), (1339669239,), (1339669304,)) 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 (1339668500,1339668700) 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 20822953 , 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=20822915 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 (20822953) result : ((1339668505,), (1339668573,), (1339668574,), (1339668582,), (1339668877,), (1339668878,), (1339668951,), (1339669643,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (20822915) result : ((1339668466,), (1339668468,), (1339668482,), (1339668497,), (1339668499,), (1339668500,), (1339668510,), (1339668516,), (1339668519,), (1339668522,), (1339668531,), (1339668533,), (1339668536,), (1339668546,), (1339668549,), (1339668569,), (1339668697,), (1339668700,), (1339668947,), (1339668950,), (1339669239,), (1339669304,)) 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 (1339668500,1339668700) 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`=20822915 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','environnement','mal_croppe','kraft','metal','Carton_brun','papier','flou','plastique','Carton_gris','autre_refus')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=20822915 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Teint_Dans_La_Masse','environnement','mal_croppe','kraft','metal','Carton_brun','papier','flou','plastique','Carton_gris','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 20822915, 'sub_port_id': 20822954, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459079, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 11)}, 'metal': {'main_port_id': 20822915, 'sub_port_id': 20822955, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459080, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 11)}, 'papier': {'main_port_id': 20822915, 'sub_port_id': 20822956, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459081, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 11)}, 'Carton_brun': {'main_port_id': 20822915, 'sub_port_id': 20822958, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459082, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 11)}, 'Carton_gris': {'main_port_id': 20822915, 'sub_port_id': 20822959, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459083, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 11)}, 'flou': {'main_port_id': 20822915, 'sub_port_id': 20822960, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459084, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 11)}, 'mal_croppe': {'main_port_id': 20822915, 'sub_port_id': 20822961, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459085, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 11)}, 'plastique': {'main_port_id': 20822915, 'sub_port_id': 20822962, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459086, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 11)}, 'environnement': {'main_port_id': 20822915, 'sub_port_id': 20822963, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459087, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 11)}, 'cartonnette': {'main_port_id': 20822915, 'sub_port_id': 20822964, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459088, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 11)}, 'kraft': {'main_port_id': 20822915, 'sub_port_id': 20822965, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459089, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 11)}, 'autre_refus': {'main_port_id': 20822915, 'sub_port_id': 20822966, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13459090, 'last_updated_at': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_desc': datetime.datetime(2025, 2, 26, 5, 11), 'last_updated_at_asc': datetime.datetime(2025, 2, 26, 5, 11)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20822954,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20822942 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20822955,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20822943 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20822956,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20822944 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20822958,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20822945 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20822959,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20822946 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20822960,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20822947 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20822961,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20822948 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20822962,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20822949 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20822963,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20822950 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20822964,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20822951 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20822965,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20822952 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 20822966,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 20822953 lien utilise dans velours : https://www.fotonower.com/velours/20822954,20822955,20822956,20822958,20822959,20822960,20822961,20822962,20822963,20822964,20822965,20822966?tags=Teint_Dans_La_Masse,metal,papier,Carton_brun,Carton_gris,flou,mal_croppe,plastique,environnement,cartonnette,kraft,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20822915]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1339669304, 1339669239, 1339668950, 1339668947, 1339668700, 1339668697, 1339668569] map_info['map_portfolio_photo'] : {20822915: [1339669304, 1339669239, 1339668950, 1339668947, 1339668700, 1339668697, 1339668569, 1339668549, 1339668546, 1339668536, 1339668533, 1339668531, 1339668522, 1339668519, 1339668516, 1339668510, 1339668500, 1339668499, 1339668497, 1339668482, 1339668468, 1339668466]} final : False mtd_id 4302 list_pids : [1339669304, 1339669239, 1339668950, 1339668947, 1339668700, 1339668697, 1339668569] Looping around the photos to save general results len do output : 1 /20822915. 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, '2614592') ('4302', '20822915', '1339669304', None, None, None, None, None, '2614592') ('4302', None, None, None, None, None, None, None, '2614592') ('4302', '20822915', '1339669239', None, None, None, None, None, '2614592') ('4302', None, None, None, None, None, None, None, '2614592') ('4302', '20822915', '1339668950', None, None, None, None, None, '2614592') ('4302', None, None, None, None, None, None, None, '2614592') ('4302', '20822915', '1339668947', None, None, None, None, None, '2614592') ('4302', None, None, None, None, None, None, None, '2614592') ('4302', '20822915', '1339668700', None, None, None, None, None, '2614592') ('4302', None, None, None, None, None, None, None, '2614592') ('4302', '20822915', '1339668697', None, None, None, None, None, '2614592') ('4302', None, None, None, None, None, None, None, '2614592') ('4302', '20822915', '1339668569', None, None, None, None, None, '2614592') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '20822915', "{'Teint_Dans_La_Masse': 20822942, 'metal': 20822943, 'papier': 20822944, 'Carton_brun': 20822945, 'Carton_gris': 20822946, 'flou': 20822947, 'mal_croppe': 20822948, 'plastique': 20822949, 'environnement': 20822950, 'cartonnette': 20822951, 'kraft': 20822952, 'autre_refus': 20822953}", None, None, None, None, '2614592'), ('4302', '20822915', '1339669304', None, None, None, None, None, '2614592'), ('4302', '20822915', '1339669239', None, None, None, None, None, '2614592'), ('4302', '20822915', '1339668950', None, None, None, None, None, '2614592'), ('4302', '20822915', '1339668947', None, None, None, None, None, '2614592'), ('4302', '20822915', '1339668700', None, None, None, None, None, '2614592'), ('4302', '20822915', '1339668697', None, None, None, None, None, '2614592'), ('4302', '20822915', '1339668569', None, None, None, None, None, '2614592')] time used for this insertion : 0.01450347900390625 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6048202514648438 time spend to save output : 0.014740228652954102 total time spend for step 1 : 0.6195604801177979 step2:final Wed Feb 26 05:14:30 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20822915) 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 20822915 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1339668468,1339668466,1339668482,1339668500,1339668499,1339668497,1339668522,1339668519,1339668510,1339668516,1339668536,1339668533,1339668531,1339668549,1339668546,1339668569,1339668700,1339668697,1339668950,1339668947,1339669304,1339669239); 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([20822915]) Inside saveOutput : final : False verbose : True original output for save of step final : {1339669304: ('0.06785903978892431',), 1339669239: ('0.06785903978892431',), 1339668950: ('0.06785903978892431',), 1339668947: ('0.06785903978892431',), 1339668700: ('0.06785903978892431',), 1339668697: ('0.06785903978892431',), 1339668569: ('0.06785903978892431',)} new output for save of step final : {1339669304: ('0.06785903978892431',), 1339669239: ('0.06785903978892431',), 1339668950: ('0.06785903978892431',), 1339668947: ('0.06785903978892431',), 1339668700: ('0.06785903978892431',), 1339668697: ('0.06785903978892431',), 1339668569: ('0.06785903978892431',)} [1339669304, 1339669239, 1339668950, 1339668947, 1339668700, 1339668697, 1339668569] map_info['map_portfolio_photo'] : {20822915: [1339669304, 1339669239, 1339668950, 1339668947, 1339668700, 1339668697, 1339668569, 1339668549, 1339668546, 1339668536, 1339668533, 1339668531, 1339668522, 1339668519, 1339668516, 1339668510, 1339668500, 1339668499, 1339668497, 1339668482, 1339668468, 1339668466]} final : False mtd_id 4302 list_pids : [1339669304, 1339669239, 1339668950, 1339668947, 1339668700, 1339668697, 1339668569] Looping around the photos to save general results len do output : 7 /1339669304.Didn't retrieve data . /1339669239.Didn't retrieve data . /1339668950.Didn't retrieve data . /1339668947.Didn't retrieve data . /1339668700.Didn't retrieve data . /1339668697.Didn't retrieve data . /1339668569.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, '2614592') ('4302', '20822915', '1339669304', None, None, None, None, None, '2614592') ('4302', None, None, None, None, None, None, None, '2614592') ('4302', '20822915', '1339669239', None, None, None, None, None, '2614592') ('4302', None, None, None, None, None, None, None, '2614592') ('4302', '20822915', '1339668950', None, None, None, None, None, '2614592') ('4302', None, None, None, None, None, None, None, '2614592') ('4302', '20822915', '1339668947', None, None, None, None, None, '2614592') ('4302', None, None, None, None, None, None, None, '2614592') ('4302', '20822915', '1339668700', None, None, None, None, None, '2614592') ('4302', None, None, None, None, None, None, None, '2614592') ('4302', '20822915', '1339668697', None, None, None, None, None, '2614592') ('4302', None, None, None, None, None, None, None, '2614592') ('4302', '20822915', '1339668569', None, None, None, None, None, '2614592') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '20822915', '1339669304', '0.06785903978892431', None, None, None, None, '2614592'), ('4302', '20822915', '1339669239', '0.06785903978892431', None, None, None, None, '2614592'), ('4302', '20822915', '1339668950', '0.06785903978892431', None, None, None, None, '2614592'), ('4302', '20822915', '1339668947', '0.06785903978892431', None, None, None, None, '2614592'), ('4302', '20822915', '1339668700', '0.06785903978892431', None, None, None, None, '2614592'), ('4302', '20822915', '1339668697', '0.06785903978892431', None, None, None, None, '2614592'), ('4302', '20822915', '1339668569', '0.06785903978892431', None, None, None, None, '2614592')] time used for this insertion : 0.14566397666931152 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.8329808712005615 time spend to save output : 0.14609217643737793 total time spend for step 2 : 0.9790730476379395 step3:velours_tree Wed Feb 26 05:14:31 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 : {20822915: [{'Teint_Dans_La_Masse': 20822942, 'metal': 20822943, 'papier': 20822944, 'Carton_brun': 20822945, 'Carton_gris': 20822946, 'flou': 20822947, 'mal_croppe': 20822948, 'plastique': 20822949, 'environnement': 20822950, 'cartonnette': 20822951, 'kraft': 20822952, 'autre_refus': 20822953}]} input_args_next_step : {20822915: ()} output_args : {20822915: [{'Teint_Dans_La_Masse': 20822942, 'metal': 20822943, 'papier': 20822944, 'Carton_brun': 20822945, 'Carton_gris': 20822946, 'flou': 20822947, 'mal_croppe': 20822948, 'plastique': 20822949, 'environnement': 20822950, 'cartonnette': 20822951, 'kraft': 20822952, 'autre_refus': 20822953}]} args : 20822915 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': 20822942, 'metal': 20822943, 'papier': 20822944, 'Carton_brun': 20822945, 'Carton_gris': 20822946, 'flou': 20822947, 'mal_croppe': 20822948, 'plastique': 20822949, 'environnement': 20822950, 'cartonnette': 20822951, 'kraft': 20822952, 'autre_refus': 20822953},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20822915) 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([20822915]) 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.2895047664642334 time spend to save output : 5.078315734863281e-05 total time spend for step 3 : 0.28955554962158203 step4:send_mail_cod Wed Feb 26 05:14:31 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 : {1339669304: ('0.06785903978892431',), 1339669239: ('0.06785903978892431',), 1339668950: ('0.06785903978892431',), 1339668947: ('0.06785903978892431',), 1339668700: ('0.06785903978892431',), 1339668697: ('0.06785903978892431',), 1339668569: ('0.06785903978892431',)} input_args_next_step : {1339669304: ()} output_args : {1339669304: ('0.06785903978892431',), 1339669239: ('0.06785903978892431',), 1339668950: ('0.06785903978892431',), 1339668947: ('0.06785903978892431',), 1339668700: ('0.06785903978892431',), 1339668697: ('0.06785903978892431',), 1339668569: ('0.06785903978892431',)} args : 1339669304 depend.output_id : 0 input_args_next_step : {1339669304: ('0.06785903978892431',), 1339669239: ()} output_args : {1339669304: ('0.06785903978892431',), 1339669239: ('0.06785903978892431',), 1339668950: ('0.06785903978892431',), 1339668947: ('0.06785903978892431',), 1339668700: ('0.06785903978892431',), 1339668697: ('0.06785903978892431',), 1339668569: ('0.06785903978892431',)} args : 1339669239 depend.output_id : 0 input_args_next_step : {1339669304: ('0.06785903978892431',), 1339669239: ('0.06785903978892431',), 1339668950: ()} output_args : {1339669304: ('0.06785903978892431',), 1339669239: ('0.06785903978892431',), 1339668950: ('0.06785903978892431',), 1339668947: ('0.06785903978892431',), 1339668700: ('0.06785903978892431',), 1339668697: ('0.06785903978892431',), 1339668569: ('0.06785903978892431',)} args : 1339668950 depend.output_id : 0 input_args_next_step : {1339669304: ('0.06785903978892431',), 1339669239: ('0.06785903978892431',), 1339668950: ('0.06785903978892431',), 1339668947: ()} output_args : {1339669304: ('0.06785903978892431',), 1339669239: ('0.06785903978892431',), 1339668950: ('0.06785903978892431',), 1339668947: ('0.06785903978892431',), 1339668700: ('0.06785903978892431',), 1339668697: ('0.06785903978892431',), 1339668569: ('0.06785903978892431',)} args : 1339668947 depend.output_id : 0 input_args_next_step : {1339669304: ('0.06785903978892431',), 1339669239: ('0.06785903978892431',), 1339668950: ('0.06785903978892431',), 1339668947: ('0.06785903978892431',), 1339668700: ()} output_args : {1339669304: ('0.06785903978892431',), 1339669239: ('0.06785903978892431',), 1339668950: ('0.06785903978892431',), 1339668947: ('0.06785903978892431',), 1339668700: ('0.06785903978892431',), 1339668697: ('0.06785903978892431',), 1339668569: ('0.06785903978892431',)} args : 1339668700 depend.output_id : 0 input_args_next_step : {1339669304: ('0.06785903978892431',), 1339669239: ('0.06785903978892431',), 1339668950: ('0.06785903978892431',), 1339668947: ('0.06785903978892431',), 1339668700: ('0.06785903978892431',), 1339668697: ()} output_args : {1339669304: ('0.06785903978892431',), 1339669239: ('0.06785903978892431',), 1339668950: ('0.06785903978892431',), 1339668947: ('0.06785903978892431',), 1339668700: ('0.06785903978892431',), 1339668697: ('0.06785903978892431',), 1339668569: ('0.06785903978892431',)} args : 1339668697 depend.output_id : 0 input_args_next_step : {1339669304: ('0.06785903978892431',), 1339669239: ('0.06785903978892431',), 1339668950: ('0.06785903978892431',), 1339668947: ('0.06785903978892431',), 1339668700: ('0.06785903978892431',), 1339668697: ('0.06785903978892431',), 1339668569: ()} output_args : {1339669304: ('0.06785903978892431',), 1339669239: ('0.06785903978892431',), 1339668950: ('0.06785903978892431',), 1339668947: ('0.06785903978892431',), 1339668700: ('0.06785903978892431',), 1339668697: ('0.06785903978892431',), 1339668569: ('0.06785903978892431',)} args : 1339668569 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 : {20822915: [{'Teint_Dans_La_Masse': 20822942, 'metal': 20822943, 'papier': 20822944, 'Carton_brun': 20822945, 'Carton_gris': 20822946, 'flou': 20822947, 'mal_croppe': 20822948, 'plastique': 20822949, 'environnement': 20822950, 'cartonnette': 20822951, 'kraft': 20822952, 'autre_refus': 20822953}]} input_args_next_step : {1339669304: ('0.06785903978892431',), 1339669239: ('0.06785903978892431',), 1339668950: ('0.06785903978892431',), 1339668947: ('0.06785903978892431',), 1339668700: ('0.06785903978892431',), 1339668697: ('0.06785903978892431',), 1339668569: ('0.06785903978892431',), 20822915: ()} output_args : {20822915: [{'Teint_Dans_La_Masse': 20822942, 'metal': 20822943, 'papier': 20822944, 'Carton_brun': 20822945, 'Carton_gris': 20822946, 'flou': 20822947, 'mal_croppe': 20822948, 'plastique': 20822949, 'environnement': 20822950, 'cartonnette': 20822951, 'kraft': 20822952, 'autre_refus': 20822953}]} args : 20822915 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 :8, first value : ('0.06785903978892431',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20822915) 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 (1339669304,1339669239,1339668950,1339668947,1339668700,1339668697,1339668569) Found this number of photos: 7 ##### Call download_photos : nb_thread : 5 begin to download photo : 1339668569 begin to download photo : 1339668700 begin to download photo : 1339668950 begin to download photo : 1339669304 download finish for photo 1339668569 begin to download photo : 1339668697 download finish for photo 1339668700 begin to download photo : 1339668947 download finish for photo 1339669304 download finish for photo 1339668950 begin to download photo : 1339669239 download finish for photo 1339668947 download finish for photo 1339669239 download finish for photo 1339668697 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette208229431740543271/ imagette208229471740543271/ imagette208229481740543271/ imagette208229491740543271/ length of list_filenames : 7 ; length of list_pids : 7 ; length of list_args : 7 results_Auto_P20822915_26-02-2025_05_14_31.pdf 20822943 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=20822943 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208229431740543271 20822947 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=20822947 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208229471740543271 20822948 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=20822948 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208229481740543271 20822949 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=20822949 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208229491740543271 20822951 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=20822951 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339668563: '1740542972_2296833_1339668531_3f452df8dbc1c792261b6c6ea34cc2d6_rle_crop_3687121774_0.png', 1339668576: '1740542991_2297021_1339668519_0683accc8b976286e111ee75dc4f554e_rle_crop_3687122042_0.png', 1339668577: '1740542991_2297021_1339668510_025c4602b9f27cb5028b48475fd8aa69_rle_crop_3687122073_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/c5cc28a24e350221b65cc62d49dadec9_78277883.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/208c6e476e66083c2dcb215a850cb108_94682224.png change filename to text .imagette208229511740543271/ imagette208229511740543271/1740542972_2296833_1339668531_3f452df8dbc1c792261b6c6ea34cc2d6_rle_crop_3687121774_0.png.png imagette208229511740543271/1740542991_2297021_1339668510_025c4602b9f27cb5028b48475fd8aa69_rle_crop_3687122073_0.png.png imagette208229511740543271/1740542991_2297021_1339668519_0683accc8b976286e111ee75dc4f554e_rle_crop_3687122042_0.png.png imagette208229521740543271/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/822bf3c4f1038248a7f6dd2561cd88ef_42540744.png imagette208229511740543271 20822952 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=20822952 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette208229521740543271 20822953 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=20822953 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339668505: '1740542812_2295539_1339668482_000c3c968a12d7e97a0d12b12a675ed6_rle_crop_3687120838_0.png', 1339668573: '1740542991_2297021_1339668519_0683accc8b976286e111ee75dc4f554e_rle_crop_3687122043_0.png', 1339668574: '1740542991_2297021_1339668510_025c4602b9f27cb5028b48475fd8aa69_rle_crop_3687122072_0.png', 1339668582: '1740543013_2297316_1339668522_410d3a6fefb45811170d0400a1e47939_rle_crop_3687122088_0.png', 1339668877: '1740543110_2298297_1339668569_533c0799c32f01c8ed8dd5f73834bcc4_rle_crop_3687122209_0.png', 1339668878: '1740543110_2298297_1339668546_5dfde4cbea9656d4f3c5d2a90746886d_rle_crop_3687122224_0.png', 1339668951: '1740543133_2298590_1339668549_f7890ab3d3d5fe7cf2ee7b9be948aeb2_rle_crop_3687122267_0.png', 1339669643: '1740543230_2299709_1339668697_df5ae3c79866f85acf8aa7075016eb91_rle_crop_3687122634_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/2d1d8a9635f36f70589601beda52be14_74848122.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/e20c47680b36d5ae31dd2f3eae1b8fce_34877251.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/7daf7385ddb843caa7f3838050d42775_59283504.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/4ed6d8c2588dfcdf2fa76a797eb031b7_43961674.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/052141ae6b26b1f89dfdcfabc4e42b33_37634564.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/5d410255046a9dfdc4b7d175019c6508_12519697.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/2c91942fad92da563c802b76b94967f6_95938743.png change filename to text .imagette208229531740543271/ imagette208229531740543271/1740543110_2298297_1339668546_5dfde4cbea9656d4f3c5d2a90746886d_rle_crop_3687122224_0.png.png imagette208229531740543271/1740543230_2299709_1339668697_df5ae3c79866f85acf8aa7075016eb91_rle_crop_3687122634_0.png.png imagette208229531740543271/1740543133_2298590_1339668549_f7890ab3d3d5fe7cf2ee7b9be948aeb2_rle_crop_3687122267_0.png.png imagette208229531740543271/1740542812_2295539_1339668482_000c3c968a12d7e97a0d12b12a675ed6_rle_crop_3687120838_0.png.png imagette208229531740543271/1740542991_2297021_1339668510_025c4602b9f27cb5028b48475fd8aa69_rle_crop_3687122072_0.png.png imagette208229531740543271/1740543013_2297316_1339668522_410d3a6fefb45811170d0400a1e47939_rle_crop_3687122088_0.png.png imagette208229531740543271/1740543110_2298297_1339668569_533c0799c32f01c8ed8dd5f73834bcc4_rle_crop_3687122209_0.png.png imagette208229531740543271/1740542991_2297021_1339668519_0683accc8b976286e111ee75dc4f554e_rle_crop_3687122043_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/54247ceb5da386510bf9d6c966ce31ee_8045664.png imagette208229531740543271 20822942 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=20822942 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339668562: '1740542972_2296833_1339668533_90b419ddd0443ee5fb752086a29e005f_rle_crop_3687121764_0.png', 1339668572: '1740542991_2297021_1339668536_d815125a918e7fb45a4a822f877236fe_rle_crop_3687121924_0.png', 1339669642: '1740543230_2299709_1339668950_4395a7a47824081e60f671ea5758609e_rle_crop_3687122624_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/19778019a883d0e192c456aa69740f9a_77960650.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/1a49296784ff04a85069afe6737ca37f_7103470.png change filename to text .imagette208229421740543272/ imagette208229421740543272/1740542991_2297021_1339668536_d815125a918e7fb45a4a822f877236fe_rle_crop_3687121924_0.png.png imagette208229421740543272/1740543230_2299709_1339668950_4395a7a47824081e60f671ea5758609e_rle_crop_3687122624_0.png.png imagette208229421740543272/1740542972_2296833_1339668533_90b419ddd0443ee5fb752086a29e005f_rle_crop_3687121764_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/2bbf1091e734ad7f60b8e44a6d68bc36_64822915.png imagette208229421740543272 20822945 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=20822945 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339668506: '1740542812_2295539_1339668482_000c3c968a12d7e97a0d12b12a675ed6_rle_crop_3687120835_0.png', 1339668584: '1740543013_2297316_1339668499_1e4432dc0201f4da7464a0058571f037_rle_crop_3687122105_0.png', 1339668879: '1740543110_2298297_1339668546_5dfde4cbea9656d4f3c5d2a90746886d_rle_crop_3687122234_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/ef8c0e97c971bb24e6c540c298b202d5_28903967.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/aa185e3451f18016e7fa62aa8d8a9cbb_70985196.png change filename to text .imagette208229451740543272/ imagette208229451740543272/1740542812_2295539_1339668482_000c3c968a12d7e97a0d12b12a675ed6_rle_crop_3687120835_0.png.png imagette208229451740543272/1740543013_2297316_1339668499_1e4432dc0201f4da7464a0058571f037_rle_crop_3687122105_0.png.png imagette208229451740543272/1740543110_2298297_1339668546_5dfde4cbea9656d4f3c5d2a90746886d_rle_crop_3687122234_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/890258afa8bc0a62167fcb3c1daf2997_74305995.png imagette208229451740543272 20822946 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=20822946 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1339668583: '1740543013_2297316_1339668499_1e4432dc0201f4da7464a0058571f037_rle_crop_3687122103_0.png'} change filename to text .imagette208229461740543272/ imagette208229461740543272/1740543013_2297316_1339668499_1e4432dc0201f4da7464a0058571f037_rle_crop_3687122103_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/bda714580f71994fb53e4c9b9887c6f4_96044450.png imagette208229461740543272 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=20822915 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/20822954,20822955,20822956,20822958,20822959,20822960,20822961,20822962,20822963,20822964,20822965,20822966?tags=Teint_Dans_La_Masse,metal,papier,Carton_brun,Carton_gris,flou,mal_croppe,plastique,environnement,cartonnette,kraft,autre_refus your option no_mail is active, we will not send the real mail to your client args[1339669304] : ('0.06785903978892431',) no score found for photo 1339669304 We are sending mail with results at report@fotonower.com args[1339669239] : ('0.06785903978892431',) no score found for photo 1339669239 We are sending mail with results at report@fotonower.com args[1339668950] : ('0.06785903978892431',) no score found for photo 1339668950 We are sending mail with results at report@fotonower.com args[1339668947] : ('0.06785903978892431',) no score found for photo 1339668947 We are sending mail with results at report@fotonower.com args[1339668700] : ('0.06785903978892431',) no score found for photo 1339668700 We are sending mail with results at report@fotonower.com args[1339668697] : ('0.06785903978892431',) no score found for photo 1339668697 We are sending mail with results at report@fotonower.com args[1339668569] : ('0.06785903978892431',) no score found for photo 1339668569 We are sending mail with results at report@fotonower.com refus_total : 0.06785903978892431 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=20822915 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_P20822915_26-02-2025_05_14_31.pdf results_Auto_P20822915_26-02-2025_05_14_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20822915_26-02-2025_05_14_31.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','20822915','results_Auto_P20822915_26-02-2025_05_14_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20822915_26-02-2025_05_14_31.pdf','pdf','','0.13','0.06785903978892431') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20822915]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1339669304, 1339669239, 1339668950, 1339668947, 1339668700, 1339668697, 1339668569] map_info['map_portfolio_photo'] : {20822915: [1339669304, 1339669239, 1339668950, 1339668947, 1339668700, 1339668697, 1339668569, 1339668549, 1339668546, 1339668536, 1339668533, 1339668531, 1339668522, 1339668519, 1339668516, 1339668510, 1339668500, 1339668499, 1339668497, 1339668482, 1339668468, 1339668466]} final : False mtd_id 4302 list_pids : [1339669304, 1339669239, 1339668950, 1339668947, 1339668700, 1339668697, 1339668569] 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, '2614592') ('4302', '20822915', '1339669304', None, None, None, None, None, '2614592') ('4302', None, None, None, None, None, None, None, '2614592') ('4302', '20822915', '1339669239', None, None, None, None, None, '2614592') ('4302', None, None, None, None, None, None, None, '2614592') ('4302', '20822915', '1339668950', None, None, None, None, None, '2614592') ('4302', None, None, None, None, None, None, None, '2614592') ('4302', '20822915', '1339668947', None, None, None, None, None, '2614592') ('4302', None, None, None, None, None, None, None, '2614592') ('4302', '20822915', '1339668700', None, None, None, None, None, '2614592') ('4302', None, None, None, None, None, None, None, '2614592') ('4302', '20822915', '1339668697', None, None, None, None, None, '2614592') ('4302', None, None, None, None, None, None, None, '2614592') ('4302', '20822915', '1339668569', None, None, None, None, None, '2614592') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '20822915', '1339669304', None, None, None, None, None, '2614592'), ('4302', '20822915', '1339669239', None, None, None, None, None, '2614592'), ('4302', '20822915', '1339668950', None, None, None, None, None, '2614592'), ('4302', '20822915', '1339668947', None, None, None, None, None, '2614592'), ('4302', '20822915', '1339668700', None, None, None, None, None, '2614592'), ('4302', '20822915', '1339668697', None, None, None, None, None, '2614592'), ('4302', '20822915', '1339668569', None, None, None, None, None, '2614592')] time used for this insertion : 0.013641357421875 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.3033008575439453 time spend to save output : 0.013827800750732422 total time spend for step 4 : 2.3171286582946777 step5:split_time_score Wed Feb 26 05:14:33 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['20822915'] 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 : [('20822915',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (20822915) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1339669304: {'path': 'temp/1740543271_339685_1339669304_4a1bef695f912b373b65a0698f73b225.jpg', 'extension': 'jpg'}, 1339668700: {'path': 'temp/1740543271_339685_1339668700_f367f2417a31dd10f3d28ad3c51aaef4.jpg', 'extension': 'jpg'}, 1339668947: {'path': 'temp/1740543271_339685_1339668947_2d32528a144805175733302061d44800.jpg', 'extension': 'jpg'}, 1339668950: {'path': 'temp/1740543271_339685_1339668950_4395a7a47824081e60f671ea5758609e.jpg', 'extension': 'jpg'}, 1339669239: {'path': 'temp/1740543271_339685_1339669239_2fa9537273500d74f3e860a3d0f053f4.jpg', 'extension': 'jpg'}, 1339668569: {'path': 'temp/1740543271_339685_1339668569_533c0799c32f01c8ed8dd5f73834bcc4.jpg', 'extension': 'jpg'}, 1339668697: {'path': 'temp/1740543271_339685_1339668697_df5ae3c79866f85acf8aa7075016eb91.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 = 20822915; (('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 = 20822915 group by h (('05', 22),) 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=20822915 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 (20822915) 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 (20822915) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 26022025 20822915 Nombre de photos uploadées : 22 / 23040 (0%) 26022025 20822915 Nombre de photos taguées (types de déchets): 0 / 22 (0%) 26022025 20822915 Nombre de photos taguées (volume) : 0 / 22 (0%) [{'photo_id': 1339668468, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/08df55241320be5c64d1c985f622179d.jpg', 'username': None, 'uploaded_at': 1740542675, 'text': 'image_26022025_05_01_33_10145.jpg'}, {'photo_id': 1339668466, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/ea76895efdff68d347dd5475d549cd9c.jpg', 'username': None, 'uploaded_at': 1740542675, 'text': 'image_26022025_05_03_14_010136m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339668482, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/000c3c968a12d7e97a0d12b12a675ed6.jpg', 'username': None, 'uploaded_at': 1740542734, 'text': 'image_26022025_05_03_43_009128m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1339668500, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/2/26/5b1e0ec571c9cbfb2dcb6fc48f2c85d6.jpg', 'username': None, 'uploaded_at': 1740542794, 'text': 'image_26022025_05_04_34_10138.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ?????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0011098384857177734 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 20822915, '2025-02-26' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1624425,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.042701005935668945 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= 1624425 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1624425, 'dashboard_run_id': 1632346, 'mtr_portfolio_id': 20822915, 'dashboard_result_id': 9062447, '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_P20822915_26-02-2025_05_11_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20822942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20822943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20822944, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20822945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20822946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20822947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20822948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20822949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20822950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20822951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20822952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20822953, '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 = 20822915 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': 2614592, 'mtr_portfolio_id': 20822915, 'created_at': datetime.datetime(2025, 2, 26, 5, 14, 30), 'result': '0.06785903978892431', 'result_long': None, 'result_double': None}] Qualite : 0.06785903978892431 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 20822915 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20822915_26-02-2025_05_14_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 20822915 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_P20822915_26-02-2025_05_14_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20822942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20822943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20822944, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20822945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20822946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20822947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20822948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20822949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20822950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20822951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20822952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20822953, 'pht': 3726}}" where mtr_portfolio_id = 20822915 and dashboard_run_id = 1632346 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`=20822915 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9062447, 0.06785903978892431, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P20822915_26-02-2025_05_14_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 20822942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 20822943, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 20822944, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 20822945, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 20822946, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 20822947, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 20822948, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 20822949, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 20822950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 20822951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 20822952, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 20822953, '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 (20822915) result : ((1339668466,), (1339668468,), (1339668482,), (1339668497,), (1339668499,), (1339668500,), (1339668510,), (1339668516,), (1339668519,), (1339668522,), (1339668531,), (1339668533,), (1339668536,), (1339668546,), (1339668549,), (1339668569,), (1339668697,), (1339668700,), (1339668947,), (1339668950,), (1339669239,), (1339669304,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26022025': {'nb_upload': 22, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([20822915]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1339669304, 1339669239, 1339668950, 1339668947, 1339668700, 1339668697, 1339668569] map_info['map_portfolio_photo'] : {20822915: [1339669304, 1339669239, 1339668950, 1339668947, 1339668700, 1339668697, 1339668569, 1339668549, 1339668546, 1339668536, 1339668533, 1339668531, 1339668522, 1339668519, 1339668516, 1339668510, 1339668500, 1339668499, 1339668497, 1339668482, 1339668468, 1339668466]} final : True mtd_id 4302 list_pids : [1339669304, 1339669239, 1339668950, 1339668947, 1339668700, 1339668697, 1339668569] Looping around the photos to save general results len do output : 1 /20822915Didn'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, '2614592') ('4302', '20822915', '1339669304', None, None, None, None, None, '2614592') ('4302', None, None, None, None, None, None, None, '2614592') ('4302', '20822915', '1339669239', None, None, None, None, None, '2614592') ('4302', None, None, None, None, None, None, None, '2614592') ('4302', '20822915', '1339668950', None, None, None, None, None, '2614592') ('4302', None, None, None, None, None, None, None, '2614592') ('4302', '20822915', '1339668947', None, None, None, None, None, '2614592') ('4302', None, None, None, None, None, None, None, '2614592') ('4302', '20822915', '1339668700', None, None, None, None, None, '2614592') ('4302', None, None, None, None, None, None, None, '2614592') ('4302', '20822915', '1339668697', None, None, None, None, None, '2614592') ('4302', None, None, None, None, None, None, None, '2614592') ('4302', '20822915', '1339668569', None, None, None, None, None, '2614592') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '20822915', 'None', None, None, None, None, '2614592'), ('4302', '20822915', '1339669304', None, None, None, None, None, '2614592'), ('4302', '20822915', '1339669239', None, None, None, None, None, '2614592'), ('4302', '20822915', '1339668950', None, None, None, None, None, '2614592'), ('4302', '20822915', '1339668947', None, None, None, None, None, '2614592'), ('4302', '20822915', '1339668700', None, None, None, None, None, '2614592'), ('4302', '20822915', '1339668697', None, None, None, None, None, '2614592'), ('4302', '20822915', '1339668569', None, None, None, None, None, '2614592')] time used for this insertion : 0.015608787536621094 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.20095610618591309 time spend to save output : 0.01580524444580078 total time spend for step 5 : 0.21676135063171387 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 (2614592) 2.03user 2.52system 0:08.60elapsed 53%CPU (0avgtext+0avgdata 160092maxresident)k 232inputs+6768outputs (1major+64023minor)pagefaults 0swaps