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 : 1609692 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 (2701637) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2701637) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21842308 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2701637'] with mtr_portfolio_ids : ['21842308'] and first list_photo_ids : [] new path : /proc/1609692/ Name: python3 Umask: 0002 State: R (running) Tgid: 1609692 Ngid: 0 Pid: 1609692 PPid: 1609691 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1609692 NSpid: 1609692 NSpgid: 1607495 NSsid: 1607495 VmPeak: 1106928 kB VmSize: 1106928 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97444 kB VmRSS: 97444 kB RssAnon: 59748 kB RssFile: 37696 kB RssShmem: 0 kB VmData: 865676 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 58 nonvoluntary_ctxt_switches: 90 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1609692', 'Ngid': '0', 'Pid': '1609692', 'PPid': '1609691', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1609692', 'NSpid': '1609692', 'NSpgid': '1607495', 'NSsid': '1607495', 'VmPeak': '1106928 kB', 'VmSize': '1106928 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97444 kB', 'VmRSS': '97444 kB', 'RssAnon': '59748 kB', 'RssFile': '37696 kB', 'RssShmem': '0 kB', 'VmData': '865676 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '58', 'nonvoluntary_ctxt_switches': '90'} ('datou_batch_current', '1609692', '1106928', '0', '1106928', '865676', '97444', b'', 'marlene', '2701637') 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 (21842308) 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 (2701637 ) ) 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 (21842308) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1348250918, 'portfolio_id': 21842308}, {'photo_id': 1348250888, 'portfolio_id': 21842308}, {'photo_id': 1348250860, 'portfolio_id': 21842308}, {'photo_id': 1348250853, 'portfolio_id': 21842308}, {'photo_id': 1348250849, 'portfolio_id': 21842308}, {'photo_id': 1348250570, 'portfolio_id': 21842308}, {'photo_id': 1348250549, 'portfolio_id': 21842308}, {'photo_id': 1348250461, 'portfolio_id': 21842308}, {'photo_id': 1348250405, 'portfolio_id': 21842308}, {'photo_id': 1348250352, 'portfolio_id': 21842308}, {'photo_id': 1348249585, 'portfolio_id': 21842308}, {'photo_id': 1348249564, 'portfolio_id': 21842308}, {'photo_id': 1348249560, 'portfolio_id': 21842308}, {'photo_id': 1348249488, 'portfolio_id': 21842308}, {'photo_id': 1348249415, 'portfolio_id': 21842308}, {'photo_id': 1348249371, 'portfolio_id': 21842308}, {'photo_id': 1348248938, 'portfolio_id': 21842308}, {'photo_id': 1348248872, 'portfolio_id': 21842308}, {'photo_id': 1348248800, 'portfolio_id': 21842308}, {'photo_id': 1348248750, 'portfolio_id': 21842308}, {'photo_id': 1348248492, 'portfolio_id': 21842308}, {'photo_id': 1348248455, 'portfolio_id': 21842308}, {'photo_id': 1348248404, 'portfolio_id': 21842308}, {'photo_id': 1348248343, 'portfolio_id': 21842308}, {'photo_id': 1348248284, 'portfolio_id': 21842308}, {'photo_id': 1348248159, 'portfolio_id': 21842308}, {'photo_id': 1348246709, 'portfolio_id': 21842308}, {'photo_id': 1348246657, 'portfolio_id': 21842308}, {'photo_id': 1348246583, 'portfolio_id': 21842308}, {'photo_id': 1348246524, 'portfolio_id': 21842308}, {'photo_id': 1348246427, 'portfolio_id': 21842308}, {'photo_id': 1348245442, 'portfolio_id': 21842308}, {'photo_id': 1348245358, 'portfolio_id': 21842308}, {'photo_id': 1348245268, 'portfolio_id': 21842308}, {'photo_id': 1348244478, 'portfolio_id': 21842308}, {'photo_id': 1348244440, 'portfolio_id': 21842308}, {'photo_id': 1348244345, 'portfolio_id': 21842308}, {'photo_id': 1348244269, 'portfolio_id': 21842308}, {'photo_id': 1348244210, 'portfolio_id': 21842308}, {'photo_id': 1348243476, 'portfolio_id': 21842308}, {'photo_id': 1348243444, 'portfolio_id': 21842308}, {'photo_id': 1348243407, 'portfolio_id': 21842308}, {'photo_id': 1348243304, 'portfolio_id': 21842308}, {'photo_id': 1348242395, 'portfolio_id': 21842308}] map_portfolio_id_photo_id: {21842308: [1348250918, 1348250888, 1348250860, 1348250853, 1348250849, 1348250570, 1348250549, 1348250461, 1348250405, 1348250352, 1348249585, 1348249564, 1348249560, 1348249488, 1348249415, 1348249371, 1348248938, 1348248872, 1348248800, 1348248750, 1348248492, 1348248455, 1348248404, 1348248343, 1348248284, 1348248159, 1348246709, 1348246657, 1348246583, 1348246524, 1348246427, 1348245442, 1348245358, 1348245268, 1348244478, 1348244440, 1348244345, 1348244269, 1348244210, 1348243476, 1348243444, 1348243407, 1348243304, 1348242395]} ##### 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.016000032424926758 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Fri Mar 28 12:13:56 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 (21842308) 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 : 21842308 get user id for portfolio 21842308 get sub ptf for main ptf 21842308, type 3726 and hashtags ['mal_croppe', 'Carton_brun', 'Teint_Dans_La_Masse', 'environnement', 'plastique', 'cartonnette', 'autre_refus', 'metal', 'flou', 'kraft', 'Carton_gris', 'papier'] 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`=21842308 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_brun','Teint_Dans_La_Masse','environnement','plastique','cartonnette','autre_refus','metal','flou','kraft','Carton_gris','papier')) 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`=21842308 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_brun','Teint_Dans_La_Masse','environnement','plastique','cartonnette','autre_refus','metal','flou','kraft','Carton_gris','papier')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 21842308, 'sub_port_id': 21842315, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14357643, 'last_updated_at': datetime.datetime(2025, 3, 28, 12, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 12, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 12, 5, 56)}, 'mal_croppe': {'main_port_id': 21842308, 'sub_port_id': 21842316, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14357644, 'last_updated_at': datetime.datetime(2025, 3, 28, 12, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 12, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 12, 5, 56)}, 'flou': {'main_port_id': 21842308, 'sub_port_id': 21842317, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14357645, 'last_updated_at': datetime.datetime(2025, 3, 28, 12, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 12, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 12, 5, 56)}, 'kraft': {'main_port_id': 21842308, 'sub_port_id': 21842318, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14357646, 'last_updated_at': datetime.datetime(2025, 3, 28, 12, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 12, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 12, 5, 56)}, 'Carton_gris': {'main_port_id': 21842308, 'sub_port_id': 21842319, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14357647, 'last_updated_at': datetime.datetime(2025, 3, 28, 12, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 12, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 12, 5, 56)}, 'Carton_brun': {'main_port_id': 21842308, 'sub_port_id': 21842320, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14357648, 'last_updated_at': datetime.datetime(2025, 3, 28, 12, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 12, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 12, 5, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 21842308, 'sub_port_id': 21842321, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14357649, 'last_updated_at': datetime.datetime(2025, 3, 28, 12, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 12, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 12, 5, 56)}, 'metal': {'main_port_id': 21842308, 'sub_port_id': 21842322, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14357650, 'last_updated_at': datetime.datetime(2025, 3, 28, 12, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 12, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 12, 5, 56)}, 'papier': {'main_port_id': 21842308, 'sub_port_id': 21842323, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14357651, 'last_updated_at': datetime.datetime(2025, 3, 28, 12, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 12, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 12, 5, 56)}, 'autre_refus': {'main_port_id': 21842308, 'sub_port_id': 21842324, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14357652, 'last_updated_at': datetime.datetime(2025, 3, 28, 12, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 12, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 12, 5, 56)}, 'plastique': {'main_port_id': 21842308, 'sub_port_id': 21842325, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14357653, 'last_updated_at': datetime.datetime(2025, 3, 28, 12, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 12, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 12, 5, 56)}, 'cartonnette': {'main_port_id': 21842308, 'sub_port_id': 21842326, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14357654, 'last_updated_at': datetime.datetime(2025, 3, 28, 12, 10, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 12, 10, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 12, 5, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21842315 , 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=21842308 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 (21842315) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21842308) result : ((1348242395,), (1348243304,), (1348243407,), (1348243444,), (1348243476,), (1348244210,), (1348244269,), (1348244345,), (1348244440,), (1348244478,), (1348245268,), (1348245358,), (1348245442,), (1348246427,), (1348246524,), (1348246583,), (1348246657,), (1348246709,), (1348248159,), (1348248284,), (1348248343,), (1348248404,), (1348248455,), (1348248492,), (1348248750,), (1348248800,), (1348248872,), (1348248938,), (1348249371,), (1348249415,), (1348249488,), (1348249560,), (1348249564,), (1348249585,), (1348250352,), (1348250405,), (1348250461,), (1348250549,), (1348250570,), (1348250849,), (1348250853,), (1348250860,), (1348250888,), (1348250918,)) 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 (1348248800) 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 21842316 , 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=21842308 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 (21842316) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21842308) result : ((1348242395,), (1348243304,), (1348243407,), (1348243444,), (1348243476,), (1348244210,), (1348244269,), (1348244345,), (1348244440,), (1348244478,), (1348245268,), (1348245358,), (1348245442,), (1348246427,), (1348246524,), (1348246583,), (1348246657,), (1348246709,), (1348248159,), (1348248284,), (1348248343,), (1348248404,), (1348248455,), (1348248492,), (1348248750,), (1348248800,), (1348248872,), (1348248938,), (1348249371,), (1348249415,), (1348249488,), (1348249560,), (1348249564,), (1348249585,), (1348250352,), (1348250405,), (1348250461,), (1348250549,), (1348250570,), (1348250849,), (1348250853,), (1348250860,), (1348250888,), (1348250918,)) 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 (1348248800) 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 21842317 , 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=21842308 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 (21842317) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21842308) result : ((1348242395,), (1348243304,), (1348243407,), (1348243444,), (1348243476,), (1348244210,), (1348244269,), (1348244345,), (1348244440,), (1348244478,), (1348245268,), (1348245358,), (1348245442,), (1348246427,), (1348246524,), (1348246583,), (1348246657,), (1348246709,), (1348248159,), (1348248284,), (1348248343,), (1348248404,), (1348248455,), (1348248492,), (1348248750,), (1348248800,), (1348248872,), (1348248938,), (1348249371,), (1348249415,), (1348249488,), (1348249560,), (1348249564,), (1348249585,), (1348250352,), (1348250405,), (1348250461,), (1348250549,), (1348250570,), (1348250849,), (1348250853,), (1348250860,), (1348250888,), (1348250918,)) 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 (1348248800) 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 21842318 , 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=21842308 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 (21842318) result : ((1348250108,), (1348250207,), (1348250208,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21842308) result : ((1348242395,), (1348243304,), (1348243407,), (1348243444,), (1348243476,), (1348244210,), (1348244269,), (1348244345,), (1348244440,), (1348244478,), (1348245268,), (1348245358,), (1348245442,), (1348246427,), (1348246524,), (1348246583,), (1348246657,), (1348246709,), (1348248159,), (1348248284,), (1348248343,), (1348248404,), (1348248455,), (1348248492,), (1348248750,), (1348248800,), (1348248872,), (1348248938,), (1348249371,), (1348249415,), (1348249488,), (1348249560,), (1348249564,), (1348249585,), (1348250352,), (1348250405,), (1348250461,), (1348250549,), (1348250570,), (1348250849,), (1348250853,), (1348250860,), (1348250888,), (1348250918,)) 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 (1348248800) 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 21842319 , 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=21842308 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 (21842319) result : ((1348246881,), (1348246883,), (1348246885,), (1348246888,), (1348248501,), (1348250170,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21842308) result : ((1348242395,), (1348243304,), (1348243407,), (1348243444,), (1348243476,), (1348244210,), (1348244269,), (1348244345,), (1348244440,), (1348244478,), (1348245268,), (1348245358,), (1348245442,), (1348246427,), (1348246524,), (1348246583,), (1348246657,), (1348246709,), (1348248159,), (1348248284,), (1348248343,), (1348248404,), (1348248455,), (1348248492,), (1348248750,), (1348248800,), (1348248872,), (1348248938,), (1348249371,), (1348249415,), (1348249488,), (1348249560,), (1348249564,), (1348249585,), (1348250352,), (1348250405,), (1348250461,), (1348250549,), (1348250570,), (1348250849,), (1348250853,), (1348250860,), (1348250888,), (1348250918,)) 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 (1348248800) 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 21842320 , 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=21842308 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 (21842320) result : ((1348250096,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21842308) result : ((1348242395,), (1348243304,), (1348243407,), (1348243444,), (1348243476,), (1348244210,), (1348244269,), (1348244345,), (1348244440,), (1348244478,), (1348245268,), (1348245358,), (1348245442,), (1348246427,), (1348246524,), (1348246583,), (1348246657,), (1348246709,), (1348248159,), (1348248284,), (1348248343,), (1348248404,), (1348248455,), (1348248492,), (1348248750,), (1348248800,), (1348248872,), (1348248938,), (1348249371,), (1348249415,), (1348249488,), (1348249560,), (1348249564,), (1348249585,), (1348250352,), (1348250405,), (1348250461,), (1348250549,), (1348250570,), (1348250849,), (1348250853,), (1348250860,), (1348250888,), (1348250918,)) 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 (1348248800) 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 21842321 , 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=21842308 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 (21842321) result : ((1348246860,), (1348250087,), (1348250154,), (1348250155,), (1348250156,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21842308) result : ((1348242395,), (1348243304,), (1348243407,), (1348243444,), (1348243476,), (1348244210,), (1348244269,), (1348244345,), (1348244440,), (1348244478,), (1348245268,), (1348245358,), (1348245442,), (1348246427,), (1348246524,), (1348246583,), (1348246657,), (1348246709,), (1348248159,), (1348248284,), (1348248343,), (1348248404,), (1348248455,), (1348248492,), (1348248750,), (1348248800,), (1348248872,), (1348248938,), (1348249371,), (1348249415,), (1348249488,), (1348249560,), (1348249564,), (1348249585,), (1348250352,), (1348250405,), (1348250461,), (1348250549,), (1348250570,), (1348250849,), (1348250853,), (1348250860,), (1348250888,), (1348250918,)) 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 (1348248800) 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 21842322 , 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=21842308 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 (21842322) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21842308) result : ((1348242395,), (1348243304,), (1348243407,), (1348243444,), (1348243476,), (1348244210,), (1348244269,), (1348244345,), (1348244440,), (1348244478,), (1348245268,), (1348245358,), (1348245442,), (1348246427,), (1348246524,), (1348246583,), (1348246657,), (1348246709,), (1348248159,), (1348248284,), (1348248343,), (1348248404,), (1348248455,), (1348248492,), (1348248750,), (1348248800,), (1348248872,), (1348248938,), (1348249371,), (1348249415,), (1348249488,), (1348249560,), (1348249564,), (1348249585,), (1348250352,), (1348250405,), (1348250461,), (1348250549,), (1348250570,), (1348250849,), (1348250853,), (1348250860,), (1348250888,), (1348250918,)) 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 (1348248800) 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 21842323 , 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=21842308 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 (21842323) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21842308) result : ((1348242395,), (1348243304,), (1348243407,), (1348243444,), (1348243476,), (1348244210,), (1348244269,), (1348244345,), (1348244440,), (1348244478,), (1348245268,), (1348245358,), (1348245442,), (1348246427,), (1348246524,), (1348246583,), (1348246657,), (1348246709,), (1348248159,), (1348248284,), (1348248343,), (1348248404,), (1348248455,), (1348248492,), (1348248750,), (1348248800,), (1348248872,), (1348248938,), (1348249371,), (1348249415,), (1348249488,), (1348249560,), (1348249564,), (1348249585,), (1348250352,), (1348250405,), (1348250461,), (1348250549,), (1348250570,), (1348250849,), (1348250853,), (1348250860,), (1348250888,), (1348250918,)) 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 (1348248800) 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 21842324 , 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=21842308 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 (21842324) result : ((1348246866,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21842308) result : ((1348242395,), (1348243304,), (1348243407,), (1348243444,), (1348243476,), (1348244210,), (1348244269,), (1348244345,), (1348244440,), (1348244478,), (1348245268,), (1348245358,), (1348245442,), (1348246427,), (1348246524,), (1348246583,), (1348246657,), (1348246709,), (1348248159,), (1348248284,), (1348248343,), (1348248404,), (1348248455,), (1348248492,), (1348248750,), (1348248800,), (1348248872,), (1348248938,), (1348249371,), (1348249415,), (1348249488,), (1348249560,), (1348249564,), (1348249585,), (1348250352,), (1348250405,), (1348250461,), (1348250549,), (1348250570,), (1348250849,), (1348250853,), (1348250860,), (1348250888,), (1348250918,)) 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 (1348248800) 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 21842325 , 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=21842308 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 (21842325) result : ((1348248525,), (1348250187,), (1348250188,), (1348250189,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21842308) result : ((1348242395,), (1348243304,), (1348243407,), (1348243444,), (1348243476,), (1348244210,), (1348244269,), (1348244345,), (1348244440,), (1348244478,), (1348245268,), (1348245358,), (1348245442,), (1348246427,), (1348246524,), (1348246583,), (1348246657,), (1348246709,), (1348248159,), (1348248284,), (1348248343,), (1348248404,), (1348248455,), (1348248492,), (1348248750,), (1348248800,), (1348248872,), (1348248938,), (1348249371,), (1348249415,), (1348249488,), (1348249560,), (1348249564,), (1348249585,), (1348250352,), (1348250405,), (1348250461,), (1348250549,), (1348250570,), (1348250849,), (1348250853,), (1348250860,), (1348250888,), (1348250918,)) 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 (1348248800) 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 21842326 , 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=21842308 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 (21842326) result : ((1348246941,), (1348248516,), (1348250176,), (1348251089,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21842308) result : ((1348242395,), (1348243304,), (1348243407,), (1348243444,), (1348243476,), (1348244210,), (1348244269,), (1348244345,), (1348244440,), (1348244478,), (1348245268,), (1348245358,), (1348245442,), (1348246427,), (1348246524,), (1348246583,), (1348246657,), (1348246709,), (1348248159,), (1348248284,), (1348248343,), (1348248404,), (1348248455,), (1348248492,), (1348248750,), (1348248800,), (1348248872,), (1348248938,), (1348249371,), (1348249415,), (1348249488,), (1348249560,), (1348249564,), (1348249585,), (1348250352,), (1348250405,), (1348250461,), (1348250549,), (1348250570,), (1348250849,), (1348250853,), (1348250860,), (1348250888,), (1348250918,)) 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 (1348248800) 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`=21842308 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_brun','Teint_Dans_La_Masse','environnement','plastique','cartonnette','autre_refus','metal','flou','kraft','Carton_gris','papier')) 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`=21842308 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Carton_brun','Teint_Dans_La_Masse','environnement','plastique','cartonnette','autre_refus','metal','flou','kraft','Carton_gris','papier')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 21842308, 'sub_port_id': 21842333, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14357655, 'last_updated_at': datetime.datetime(2025, 3, 28, 12, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 12, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 12, 5, 58)}, 'mal_croppe': {'main_port_id': 21842308, 'sub_port_id': 21842334, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14357656, 'last_updated_at': datetime.datetime(2025, 3, 28, 12, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 12, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 12, 5, 58)}, 'flou': {'main_port_id': 21842308, 'sub_port_id': 21842336, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14357657, 'last_updated_at': datetime.datetime(2025, 3, 28, 12, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 12, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 12, 5, 58)}, 'kraft': {'main_port_id': 21842308, 'sub_port_id': 21842337, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14357658, 'last_updated_at': datetime.datetime(2025, 3, 28, 12, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 12, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 12, 5, 58)}, 'Carton_gris': {'main_port_id': 21842308, 'sub_port_id': 21842338, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14357659, 'last_updated_at': datetime.datetime(2025, 3, 28, 12, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 12, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 12, 5, 58)}, 'Carton_brun': {'main_port_id': 21842308, 'sub_port_id': 21842339, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14357660, 'last_updated_at': datetime.datetime(2025, 3, 28, 12, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 12, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 12, 5, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 21842308, 'sub_port_id': 21842341, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14357661, 'last_updated_at': datetime.datetime(2025, 3, 28, 12, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 12, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 12, 5, 58)}, 'metal': {'main_port_id': 21842308, 'sub_port_id': 21842342, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14357662, 'last_updated_at': datetime.datetime(2025, 3, 28, 12, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 12, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 12, 5, 58)}, 'papier': {'main_port_id': 21842308, 'sub_port_id': 21842343, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14357663, 'last_updated_at': datetime.datetime(2025, 3, 28, 12, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 12, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 12, 5, 58)}, 'autre_refus': {'main_port_id': 21842308, 'sub_port_id': 21842344, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14357664, 'last_updated_at': datetime.datetime(2025, 3, 28, 12, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 12, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 12, 5, 58)}, 'plastique': {'main_port_id': 21842308, 'sub_port_id': 21842346, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14357665, 'last_updated_at': datetime.datetime(2025, 3, 28, 12, 5, 58), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 12, 5, 58), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 12, 5, 58)}, 'cartonnette': {'main_port_id': 21842308, 'sub_port_id': 21842347, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14357666, 'last_updated_at': datetime.datetime(2025, 3, 28, 12, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 12, 10, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 12, 5, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21842333,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21842315 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21842334,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21842316 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21842336,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21842317 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21842337,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21842318 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21842338,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21842319 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21842339,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21842320 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21842341,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21842321 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21842342,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21842322 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21842343,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21842323 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21842344,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21842324 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21842346,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21842325 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21842347,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21842326 lien utilise dans velours : https://www.fotonower.com/velours/21842333,21842334,21842336,21842337,21842338,21842339,21842341,21842342,21842343,21842344,21842346,21842347?tags=environnement,mal_croppe,flou,kraft,Carton_gris,Carton_brun,Teint_Dans_La_Masse,metal,papier,autre_refus,plastique,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21842308]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1348250918, 1348250888, 1348250860, 1348250853, 1348250849, 1348250570, 1348250549, 1348250461, 1348250405, 1348250352, 1348249585, 1348249564, 1348249560, 1348249488, 1348249415, 1348249371] map_info['map_portfolio_photo'] : {21842308: [1348250918, 1348250888, 1348250860, 1348250853, 1348250849, 1348250570, 1348250549, 1348250461, 1348250405, 1348250352, 1348249585, 1348249564, 1348249560, 1348249488, 1348249415, 1348249371, 1348248938, 1348248872, 1348248800, 1348248750, 1348248492, 1348248455, 1348248404, 1348248343, 1348248284, 1348248159, 1348246709, 1348246657, 1348246583, 1348246524, 1348246427, 1348245442, 1348245358, 1348245268, 1348244478, 1348244440, 1348244345, 1348244269, 1348244210, 1348243476, 1348243444, 1348243407, 1348243304, 1348242395]} final : False mtd_id 4302 list_pids : [1348250918, 1348250888, 1348250860, 1348250853, 1348250849, 1348250570, 1348250549, 1348250461, 1348250405, 1348250352, 1348249585, 1348249564, 1348249560, 1348249488, 1348249415, 1348249371] Looping around the photos to save general results len do output : 1 /21842308. 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, '2701637') ('4302', '21842308', '1348250918', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250888', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250860', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250853', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250849', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250570', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250549', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250461', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250405', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250352', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348249585', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348249564', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348249560', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348249488', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348249415', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348249371', None, None, None, None, None, '2701637') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '21842308', "{'environnement': 21842315, 'mal_croppe': 21842316, 'flou': 21842317, 'kraft': 21842318, 'Carton_gris': 21842319, 'Carton_brun': 21842320, 'Teint_Dans_La_Masse': 21842321, 'metal': 21842322, 'papier': 21842323, 'autre_refus': 21842324, 'plastique': 21842325, 'cartonnette': 21842326}", None, None, None, None, '2701637'), ('4302', '21842308', '1348250918', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348250888', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348250860', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348250853', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348250849', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348250570', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348250549', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348250461', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348250405', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348250352', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348249585', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348249564', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348249560', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348249488', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348249415', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348249371', None, None, None, None, None, '2701637')] time used for this insertion : 0.017528057098388672 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.43364453315734863 time spend to save output : 0.017829179763793945 total time spend for step 1 : 0.4514737129211426 step2:final Fri Mar 28 12:13:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (21842308) 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 21842308 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1348242395,1348243476,1348243444,1348243407,1348243304,1348244478,1348244440,1348244345,1348244269,1348244210,1348245442,1348245358,1348245268,1348246709,1348246657,1348246583,1348246524,1348246427,1348248492,1348248455,1348248404,1348248343,1348248284,1348248159,1348248938,1348248872,1348248800,1348248750,1348249585,1348249564,1348249560,1348249488,1348249415,1348249371,1348250570,1348250549,1348250461,1348250405,1348250352,1348250918,1348250888,1348250860,1348250853,1348250849); 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([21842308]) Inside saveOutput : final : False verbose : True original output for save of step final : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ('0.05953931487163745',), 1348250405: ('0.05953931487163745',), 1348250352: ('0.05953931487163745',), 1348249585: ('0.05953931487163745',), 1348249564: ('0.05953931487163745',), 1348249560: ('0.05953931487163745',), 1348249488: ('0.05953931487163745',), 1348249415: ('0.05953931487163745',), 1348249371: ('0.05953931487163745',)} new output for save of step final : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ('0.05953931487163745',), 1348250405: ('0.05953931487163745',), 1348250352: ('0.05953931487163745',), 1348249585: ('0.05953931487163745',), 1348249564: ('0.05953931487163745',), 1348249560: ('0.05953931487163745',), 1348249488: ('0.05953931487163745',), 1348249415: ('0.05953931487163745',), 1348249371: ('0.05953931487163745',)} [1348250918, 1348250888, 1348250860, 1348250853, 1348250849, 1348250570, 1348250549, 1348250461, 1348250405, 1348250352, 1348249585, 1348249564, 1348249560, 1348249488, 1348249415, 1348249371] map_info['map_portfolio_photo'] : {21842308: [1348250918, 1348250888, 1348250860, 1348250853, 1348250849, 1348250570, 1348250549, 1348250461, 1348250405, 1348250352, 1348249585, 1348249564, 1348249560, 1348249488, 1348249415, 1348249371, 1348248938, 1348248872, 1348248800, 1348248750, 1348248492, 1348248455, 1348248404, 1348248343, 1348248284, 1348248159, 1348246709, 1348246657, 1348246583, 1348246524, 1348246427, 1348245442, 1348245358, 1348245268, 1348244478, 1348244440, 1348244345, 1348244269, 1348244210, 1348243476, 1348243444, 1348243407, 1348243304, 1348242395]} final : False mtd_id 4302 list_pids : [1348250918, 1348250888, 1348250860, 1348250853, 1348250849, 1348250570, 1348250549, 1348250461, 1348250405, 1348250352, 1348249585, 1348249564, 1348249560, 1348249488, 1348249415, 1348249371] Looping around the photos to save general results len do output : 16 /1348250918.Didn't retrieve data . /1348250888.Didn't retrieve data . /1348250860.Didn't retrieve data . /1348250853.Didn't retrieve data . /1348250849.Didn't retrieve data . /1348250570.Didn't retrieve data . /1348250549.Didn't retrieve data . /1348250461.Didn't retrieve data . /1348250405.Didn't retrieve data . /1348250352.Didn't retrieve data . /1348249585.Didn't retrieve data . /1348249564.Didn't retrieve data . /1348249560.Didn't retrieve data . /1348249488.Didn't retrieve data . /1348249415.Didn't retrieve data . /1348249371.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, '2701637') ('4302', '21842308', '1348250918', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250888', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250860', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250853', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250849', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250570', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250549', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250461', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250405', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250352', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348249585', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348249564', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348249560', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348249488', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348249415', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348249371', None, None, None, None, None, '2701637') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 48 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', '21842308', '1348250918', '0.05953931487163745', None, None, None, None, '2701637'), ('4302', '21842308', '1348250888', '0.05953931487163745', None, None, None, None, '2701637'), ('4302', '21842308', '1348250860', '0.05953931487163745', None, None, None, None, '2701637'), ('4302', '21842308', '1348250853', '0.05953931487163745', None, None, None, None, '2701637'), ('4302', '21842308', '1348250849', '0.05953931487163745', None, None, None, None, '2701637'), ('4302', '21842308', '1348250570', '0.05953931487163745', None, None, None, None, '2701637'), ('4302', '21842308', '1348250549', '0.05953931487163745', None, None, None, None, '2701637'), ('4302', '21842308', '1348250461', '0.05953931487163745', None, None, None, None, '2701637'), ('4302', '21842308', '1348250405', '0.05953931487163745', None, None, None, None, '2701637'), ('4302', '21842308', '1348250352', '0.05953931487163745', None, None, None, None, '2701637'), ('4302', '21842308', '1348249585', '0.05953931487163745', None, None, None, None, '2701637'), ('4302', '21842308', '1348249564', '0.05953931487163745', None, None, None, None, '2701637'), ('4302', '21842308', '1348249560', '0.05953931487163745', None, None, None, None, '2701637'), ('4302', '21842308', '1348249488', '0.05953931487163745', None, None, None, None, '2701637'), ('4302', '21842308', '1348249415', '0.05953931487163745', None, None, None, None, '2701637'), ('4302', '21842308', '1348249371', '0.05953931487163745', None, None, None, None, '2701637')] time used for this insertion : 0.015372514724731445 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06890296936035156 time spend to save output : 0.016072988510131836 total time spend for step 2 : 0.0849759578704834 step3:velours_tree Fri Mar 28 12:13:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {21842308: [{'environnement': 21842315, 'mal_croppe': 21842316, 'flou': 21842317, 'kraft': 21842318, 'Carton_gris': 21842319, 'Carton_brun': 21842320, 'Teint_Dans_La_Masse': 21842321, 'metal': 21842322, 'papier': 21842323, 'autre_refus': 21842324, 'plastique': 21842325, 'cartonnette': 21842326}]} input_args_next_step : {21842308: ()} output_args : {21842308: [{'environnement': 21842315, 'mal_croppe': 21842316, 'flou': 21842317, 'kraft': 21842318, 'Carton_gris': 21842319, 'Carton_brun': 21842320, 'Teint_Dans_La_Masse': 21842321, 'metal': 21842322, 'papier': 21842323, 'autre_refus': 21842324, 'plastique': 21842325, 'cartonnette': 21842326}]} args : 21842308 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'environnement': 21842315, 'mal_croppe': 21842316, 'flou': 21842317, 'kraft': 21842318, 'Carton_gris': 21842319, 'Carton_brun': 21842320, 'Teint_Dans_La_Masse': 21842321, 'metal': 21842322, 'papier': 21842323, 'autre_refus': 21842324, 'plastique': 21842325, 'cartonnette': 21842326},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21842308) 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([21842308]) 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.5256192684173584 time spend to save output : 4.5299530029296875e-05 total time spend for step 3 : 0.5256645679473877 step4:send_mail_cod Fri Mar 28 12:13:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ('0.05953931487163745',), 1348250405: ('0.05953931487163745',), 1348250352: ('0.05953931487163745',), 1348249585: ('0.05953931487163745',), 1348249564: ('0.05953931487163745',), 1348249560: ('0.05953931487163745',), 1348249488: ('0.05953931487163745',), 1348249415: ('0.05953931487163745',), 1348249371: ('0.05953931487163745',)} input_args_next_step : {1348250918: ()} output_args : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ('0.05953931487163745',), 1348250405: ('0.05953931487163745',), 1348250352: ('0.05953931487163745',), 1348249585: ('0.05953931487163745',), 1348249564: ('0.05953931487163745',), 1348249560: ('0.05953931487163745',), 1348249488: ('0.05953931487163745',), 1348249415: ('0.05953931487163745',), 1348249371: ('0.05953931487163745',)} args : 1348250918 depend.output_id : 0 input_args_next_step : {1348250918: ('0.05953931487163745',), 1348250888: ()} output_args : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ('0.05953931487163745',), 1348250405: ('0.05953931487163745',), 1348250352: ('0.05953931487163745',), 1348249585: ('0.05953931487163745',), 1348249564: ('0.05953931487163745',), 1348249560: ('0.05953931487163745',), 1348249488: ('0.05953931487163745',), 1348249415: ('0.05953931487163745',), 1348249371: ('0.05953931487163745',)} args : 1348250888 depend.output_id : 0 input_args_next_step : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ()} output_args : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ('0.05953931487163745',), 1348250405: ('0.05953931487163745',), 1348250352: ('0.05953931487163745',), 1348249585: ('0.05953931487163745',), 1348249564: ('0.05953931487163745',), 1348249560: ('0.05953931487163745',), 1348249488: ('0.05953931487163745',), 1348249415: ('0.05953931487163745',), 1348249371: ('0.05953931487163745',)} args : 1348250860 depend.output_id : 0 input_args_next_step : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ()} output_args : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ('0.05953931487163745',), 1348250405: ('0.05953931487163745',), 1348250352: ('0.05953931487163745',), 1348249585: ('0.05953931487163745',), 1348249564: ('0.05953931487163745',), 1348249560: ('0.05953931487163745',), 1348249488: ('0.05953931487163745',), 1348249415: ('0.05953931487163745',), 1348249371: ('0.05953931487163745',)} args : 1348250853 depend.output_id : 0 input_args_next_step : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ()} output_args : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ('0.05953931487163745',), 1348250405: ('0.05953931487163745',), 1348250352: ('0.05953931487163745',), 1348249585: ('0.05953931487163745',), 1348249564: ('0.05953931487163745',), 1348249560: ('0.05953931487163745',), 1348249488: ('0.05953931487163745',), 1348249415: ('0.05953931487163745',), 1348249371: ('0.05953931487163745',)} args : 1348250849 depend.output_id : 0 input_args_next_step : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ()} output_args : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ('0.05953931487163745',), 1348250405: ('0.05953931487163745',), 1348250352: ('0.05953931487163745',), 1348249585: ('0.05953931487163745',), 1348249564: ('0.05953931487163745',), 1348249560: ('0.05953931487163745',), 1348249488: ('0.05953931487163745',), 1348249415: ('0.05953931487163745',), 1348249371: ('0.05953931487163745',)} args : 1348250570 depend.output_id : 0 input_args_next_step : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ()} output_args : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ('0.05953931487163745',), 1348250405: ('0.05953931487163745',), 1348250352: ('0.05953931487163745',), 1348249585: ('0.05953931487163745',), 1348249564: ('0.05953931487163745',), 1348249560: ('0.05953931487163745',), 1348249488: ('0.05953931487163745',), 1348249415: ('0.05953931487163745',), 1348249371: ('0.05953931487163745',)} args : 1348250549 depend.output_id : 0 input_args_next_step : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ()} output_args : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ('0.05953931487163745',), 1348250405: ('0.05953931487163745',), 1348250352: ('0.05953931487163745',), 1348249585: ('0.05953931487163745',), 1348249564: ('0.05953931487163745',), 1348249560: ('0.05953931487163745',), 1348249488: ('0.05953931487163745',), 1348249415: ('0.05953931487163745',), 1348249371: ('0.05953931487163745',)} args : 1348250461 depend.output_id : 0 input_args_next_step : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ('0.05953931487163745',), 1348250405: ()} output_args : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ('0.05953931487163745',), 1348250405: ('0.05953931487163745',), 1348250352: ('0.05953931487163745',), 1348249585: ('0.05953931487163745',), 1348249564: ('0.05953931487163745',), 1348249560: ('0.05953931487163745',), 1348249488: ('0.05953931487163745',), 1348249415: ('0.05953931487163745',), 1348249371: ('0.05953931487163745',)} args : 1348250405 depend.output_id : 0 input_args_next_step : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ('0.05953931487163745',), 1348250405: ('0.05953931487163745',), 1348250352: ()} output_args : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ('0.05953931487163745',), 1348250405: ('0.05953931487163745',), 1348250352: ('0.05953931487163745',), 1348249585: ('0.05953931487163745',), 1348249564: ('0.05953931487163745',), 1348249560: ('0.05953931487163745',), 1348249488: ('0.05953931487163745',), 1348249415: ('0.05953931487163745',), 1348249371: ('0.05953931487163745',)} args : 1348250352 depend.output_id : 0 input_args_next_step : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ('0.05953931487163745',), 1348250405: ('0.05953931487163745',), 1348250352: ('0.05953931487163745',), 1348249585: ()} output_args : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ('0.05953931487163745',), 1348250405: ('0.05953931487163745',), 1348250352: ('0.05953931487163745',), 1348249585: ('0.05953931487163745',), 1348249564: ('0.05953931487163745',), 1348249560: ('0.05953931487163745',), 1348249488: ('0.05953931487163745',), 1348249415: ('0.05953931487163745',), 1348249371: ('0.05953931487163745',)} args : 1348249585 depend.output_id : 0 input_args_next_step : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ('0.05953931487163745',), 1348250405: ('0.05953931487163745',), 1348250352: ('0.05953931487163745',), 1348249585: ('0.05953931487163745',), 1348249564: ()} output_args : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ('0.05953931487163745',), 1348250405: ('0.05953931487163745',), 1348250352: ('0.05953931487163745',), 1348249585: ('0.05953931487163745',), 1348249564: ('0.05953931487163745',), 1348249560: ('0.05953931487163745',), 1348249488: ('0.05953931487163745',), 1348249415: ('0.05953931487163745',), 1348249371: ('0.05953931487163745',)} args : 1348249564 depend.output_id : 0 input_args_next_step : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ('0.05953931487163745',), 1348250405: ('0.05953931487163745',), 1348250352: ('0.05953931487163745',), 1348249585: ('0.05953931487163745',), 1348249564: ('0.05953931487163745',), 1348249560: ()} output_args : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ('0.05953931487163745',), 1348250405: ('0.05953931487163745',), 1348250352: ('0.05953931487163745',), 1348249585: ('0.05953931487163745',), 1348249564: ('0.05953931487163745',), 1348249560: ('0.05953931487163745',), 1348249488: ('0.05953931487163745',), 1348249415: ('0.05953931487163745',), 1348249371: ('0.05953931487163745',)} args : 1348249560 depend.output_id : 0 input_args_next_step : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ('0.05953931487163745',), 1348250405: ('0.05953931487163745',), 1348250352: ('0.05953931487163745',), 1348249585: ('0.05953931487163745',), 1348249564: ('0.05953931487163745',), 1348249560: ('0.05953931487163745',), 1348249488: ()} output_args : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ('0.05953931487163745',), 1348250405: ('0.05953931487163745',), 1348250352: ('0.05953931487163745',), 1348249585: ('0.05953931487163745',), 1348249564: ('0.05953931487163745',), 1348249560: ('0.05953931487163745',), 1348249488: ('0.05953931487163745',), 1348249415: ('0.05953931487163745',), 1348249371: ('0.05953931487163745',)} args : 1348249488 depend.output_id : 0 input_args_next_step : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ('0.05953931487163745',), 1348250405: ('0.05953931487163745',), 1348250352: ('0.05953931487163745',), 1348249585: ('0.05953931487163745',), 1348249564: ('0.05953931487163745',), 1348249560: ('0.05953931487163745',), 1348249488: ('0.05953931487163745',), 1348249415: ()} output_args : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ('0.05953931487163745',), 1348250405: ('0.05953931487163745',), 1348250352: ('0.05953931487163745',), 1348249585: ('0.05953931487163745',), 1348249564: ('0.05953931487163745',), 1348249560: ('0.05953931487163745',), 1348249488: ('0.05953931487163745',), 1348249415: ('0.05953931487163745',), 1348249371: ('0.05953931487163745',)} args : 1348249415 depend.output_id : 0 input_args_next_step : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ('0.05953931487163745',), 1348250405: ('0.05953931487163745',), 1348250352: ('0.05953931487163745',), 1348249585: ('0.05953931487163745',), 1348249564: ('0.05953931487163745',), 1348249560: ('0.05953931487163745',), 1348249488: ('0.05953931487163745',), 1348249415: ('0.05953931487163745',), 1348249371: ()} output_args : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ('0.05953931487163745',), 1348250405: ('0.05953931487163745',), 1348250352: ('0.05953931487163745',), 1348249585: ('0.05953931487163745',), 1348249564: ('0.05953931487163745',), 1348249560: ('0.05953931487163745',), 1348249488: ('0.05953931487163745',), 1348249415: ('0.05953931487163745',), 1348249371: ('0.05953931487163745',)} args : 1348249371 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 : {21842308: [{'environnement': 21842315, 'mal_croppe': 21842316, 'flou': 21842317, 'kraft': 21842318, 'Carton_gris': 21842319, 'Carton_brun': 21842320, 'Teint_Dans_La_Masse': 21842321, 'metal': 21842322, 'papier': 21842323, 'autre_refus': 21842324, 'plastique': 21842325, 'cartonnette': 21842326}]} input_args_next_step : {1348250918: ('0.05953931487163745',), 1348250888: ('0.05953931487163745',), 1348250860: ('0.05953931487163745',), 1348250853: ('0.05953931487163745',), 1348250849: ('0.05953931487163745',), 1348250570: ('0.05953931487163745',), 1348250549: ('0.05953931487163745',), 1348250461: ('0.05953931487163745',), 1348250405: ('0.05953931487163745',), 1348250352: ('0.05953931487163745',), 1348249585: ('0.05953931487163745',), 1348249564: ('0.05953931487163745',), 1348249560: ('0.05953931487163745',), 1348249488: ('0.05953931487163745',), 1348249415: ('0.05953931487163745',), 1348249371: ('0.05953931487163745',), 21842308: ()} output_args : {21842308: [{'environnement': 21842315, 'mal_croppe': 21842316, 'flou': 21842317, 'kraft': 21842318, 'Carton_gris': 21842319, 'Carton_brun': 21842320, 'Teint_Dans_La_Masse': 21842321, 'metal': 21842322, 'papier': 21842323, 'autre_refus': 21842324, 'plastique': 21842325, 'cartonnette': 21842326}]} args : 21842308 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 :17, first value : ('0.05953931487163745',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21842308) 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 (1348250918,1348250888,1348250860,1348250853,1348250849,1348250570,1348250549,1348250461,1348250405,1348250352,1348249585,1348249564,1348249560,1348249488,1348249415,1348249371) Found this number of photos: 16 ##### Call download_photos : nb_thread : 5 begin to download photo : 1348249371 begin to download photo : 1348249564 begin to download photo : 1348250461 begin to download photo : 1348250853 download finish for photo 1348249371 begin to download photo : 1348249415 download finish for photo 1348250853 begin to download photo : 1348250860 download finish for photo 1348250461 begin to download photo : 1348250549 download finish for photo 1348249564 begin to download photo : 1348249585 download finish for photo 1348250549 begin to download photo : 1348250570 download finish for photo 1348249415 begin to download photo : 1348249488 download finish for photo 1348249585 begin to download photo : 1348250352 download finish for photo 1348250860 begin to download photo : 1348250888 download finish for photo 1348250570 begin to download photo : 1348250849 download finish for photo 1348249488 begin to download photo : 1348249560 download finish for photo 1348250352 begin to download photo : 1348250405 download finish for photo 1348250888 begin to download photo : 1348250918 download finish for photo 1348250849 download finish for photo 1348249560 download finish for photo 1348250405 download finish for photo 1348250918 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette218423161743160438/ imagette218423171743160438/ length of list_filenames : 16 ; length of list_pids : 16 ; length of list_args : 16 results_Auto_P21842308_28-03-2025_12_13_58.pdf 21842316 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=21842316 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218423161743160438 21842317 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=21842317 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218423171743160438 21842318 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=21842318 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348250108: '1743160153_1120129_1348246709_74c53e298f0de24e080db4de9f2b0a80_rle_crop_3736190913_0.png', 1348250207: '1743160141_1119978_1348246657_a8426ee94e585e9096dc6f4f6cf78403_rle_crop_3736190922_0.png', 1348250208: '1743160141_1119978_1348246583_7ef49234c6e0d1f6927f6e972edcded9_rle_crop_3736190961_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/5a0e9e9c0109c34bcb3f47dba2d4a7d2_29234066.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/77a3022529ce84c932fe8b2ecc28281a_10184502.png change filename to text .imagette218423181743160438/ imagette218423181743160438/1743160153_1120129_1348246709_74c53e298f0de24e080db4de9f2b0a80_rle_crop_3736190913_0.png.png imagette218423181743160438/1743160141_1119978_1348246583_7ef49234c6e0d1f6927f6e972edcded9_rle_crop_3736190961_0.png.png imagette218423181743160438/1743160141_1119978_1348246657_a8426ee94e585e9096dc6f4f6cf78403_rle_crop_3736190922_0.png.png imagette218423221743160438/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/6c3d2a9d667a573e22584c7bbf575751_48228148.png imagette218423181743160438 21842322 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=21842322 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218423221743160438 21842324 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=21842324 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348246866: '1743159987_1443977_1348243304_2f98ca422702d9008d9fc52b4c6352a4_rle_crop_3736188030_0.png'} change filename to text .imagette218423241743160438/ imagette218423241743160438/1743159987_1443977_1348243304_2f98ca422702d9008d9fc52b4c6352a4_rle_crop_3736188030_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/02823fe5dea4442886145f569ff44bb0_64378490.png imagette218423241743160438 21842325 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=21842325 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348248525: '1743159994_1113794_1348242395_92f6d5d9475b366d14ce884856b01fe1_rle_crop_3736190519_0.png', 1348250187: '1743160141_1119978_1348246657_a8426ee94e585e9096dc6f4f6cf78403_rle_crop_3736190916_0.png', 1348250188: '1743160141_1119978_1348246524_79cd84e74ff4b44679fb6d10abb784a0_rle_crop_3736190991_0.png', 1348250189: '1743160141_1119978_1348246427_7bb9dc5236109c96a43b972424eb99b6_rle_crop_3736191007_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/e36e035f3bc192fff6f100786204c903_50742671.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/7720836d66f908d2ebdd4a82a8534c1b_20725580.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/e64f04eb4f4eade1c869005ebaa4a504_96326938.png change filename to text .imagette218423251743160438/ imagette218423251743160438/1743160141_1119978_1348246427_7bb9dc5236109c96a43b972424eb99b6_rle_crop_3736191007_0.png.png imagette218423251743160438/1743159994_1113794_1348242395_92f6d5d9475b366d14ce884856b01fe1_rle_crop_3736190519_0.png.png imagette218423251743160438/1743160141_1119978_1348246657_a8426ee94e585e9096dc6f4f6cf78403_rle_crop_3736190916_0.png.png imagette218423251743160438/1743160141_1119978_1348246524_79cd84e74ff4b44679fb6d10abb784a0_rle_crop_3736190991_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/72fe812708142eba6ca8556b600dc617_80220980.png imagette218423251743160438 21842326 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=21842326 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348246941: '1743159987_1443977_1348243304_2f98ca422702d9008d9fc52b4c6352a4_rle_crop_3736188033_0.png', 1348248516: '1743159994_1113794_1348243476_41f6a0e54fdd2652b15609932782403a_rle_crop_3736190169_0.png', 1348250176: '1743160141_1119978_1348246427_7bb9dc5236109c96a43b972424eb99b6_rle_crop_3736190999_0.png', 1348251089: '1743160353_1123622_1348248492_bd06d135c4c1dd2ef4db7a214399249b_rle_crop_3736191726_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/fb293549c2c6dddd6ad72ca3e1fd3a8a_67929088.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/98de8c7bd2724a0f5126385ec28c53a8_56591716.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/1425f0c9777b294e392875ac6c312132_88047838.png change filename to text .imagette218423261743160439/ imagette218423261743160439/1743159987_1443977_1348243304_2f98ca422702d9008d9fc52b4c6352a4_rle_crop_3736188033_0.png.png imagette218423261743160439/1743159994_1113794_1348243476_41f6a0e54fdd2652b15609932782403a_rle_crop_3736190169_0.png.png imagette218423261743160439/1743160141_1119978_1348246427_7bb9dc5236109c96a43b972424eb99b6_rle_crop_3736190999_0.png.png imagette218423261743160439/1743160353_1123622_1348248492_bd06d135c4c1dd2ef4db7a214399249b_rle_crop_3736191726_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/ef437b213a1a527234cde838f0c19a4a_10612816.png imagette218423261743160439 21842319 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=21842319 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348246881: '1743159987_1443977_1348244478_b9e30e391f8375894a981245f0b06fb4_rle_crop_3736187987_0.png', 1348246883: '1743159987_1443977_1348243444_2c64b2588ef3b990cae660430a6b5687_rle_crop_3736188002_0.png', 1348246885: '1743159987_1443977_1348243444_2c64b2588ef3b990cae660430a6b5687_rle_crop_3736188004_0.png', 1348246888: '1743159987_1443977_1348243407_510a06288dac727fe20ae8e207034e1e_rle_crop_3736188015_0.png', 1348248501: '1743159994_1113794_1348243476_41f6a0e54fdd2652b15609932782403a_rle_crop_3736190167_0.png', 1348250170: '1743160141_1119978_1348246524_79cd84e74ff4b44679fb6d10abb784a0_rle_crop_3736190985_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/fdd0f8ba62dd6f3da44f3b093172d50b_46087898.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/3e389def41f0414b74a4b21c1e43f34a_37684551.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/75b8ecac62b6803e8717f0aaf539addc_62579185.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/53447be37a07400c2ac4adb3dde94bdc_32610932.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/9b67f34413e08404b416e0b964f80f28_21660608.png change filename to text .imagette218423191743160439/ imagette218423191743160439/1743159987_1443977_1348244478_b9e30e391f8375894a981245f0b06fb4_rle_crop_3736187987_0.png.png imagette218423191743160439/1743159987_1443977_1348243407_510a06288dac727fe20ae8e207034e1e_rle_crop_3736188015_0.png.png imagette218423191743160439/1743159994_1113794_1348243476_41f6a0e54fdd2652b15609932782403a_rle_crop_3736190167_0.png.png imagette218423191743160439/1743159987_1443977_1348243444_2c64b2588ef3b990cae660430a6b5687_rle_crop_3736188002_0.png.png imagette218423191743160439/1743160141_1119978_1348246524_79cd84e74ff4b44679fb6d10abb784a0_rle_crop_3736190985_0.png.png imagette218423191743160439/1743159987_1443977_1348243444_2c64b2588ef3b990cae660430a6b5687_rle_crop_3736188004_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/f7a1f603aaf05cd3be5bd40f4ab86705_59179613.png imagette218423191743160439 21842320 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=21842320 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348250096: '1743160153_1120129_1348245358_a7edfca700a1849532b18de0fbe5b7c4_rle_crop_3736190940_0.png'} change filename to text .imagette218423201743160439/ imagette218423201743160439/1743160153_1120129_1348245358_a7edfca700a1849532b18de0fbe5b7c4_rle_crop_3736190940_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/37ae78f2be472fda867bccda24df915b_63492303.png imagette218423201743160439 21842321 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=21842321 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348246860: '1743159987_1443977_1348243407_510a06288dac727fe20ae8e207034e1e_rle_crop_3736188018_0.png', 1348250087: '1743160153_1120129_1348246709_74c53e298f0de24e080db4de9f2b0a80_rle_crop_3736190912_0.png', 1348250154: '1743160141_1119978_1348246657_a8426ee94e585e9096dc6f4f6cf78403_rle_crop_3736190924_0.png', 1348250155: '1743160141_1119978_1348246583_7ef49234c6e0d1f6927f6e972edcded9_rle_crop_3736190964_0.png', 1348250156: '1743160141_1119978_1348246524_79cd84e74ff4b44679fb6d10abb784a0_rle_crop_3736190992_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/d098bd98f9ddcf130cff8c4840c34c3d_73898777.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/aa80ea1423058dfdeacc5c431e44b82b_65031002.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/4c58212599093c425c3135b37bf86d92_73198996.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/abbb21a4f66be6d18a29de956e8cb623_84400667.png change filename to text .imagette218423211743160439/ imagette218423211743160439/1743160153_1120129_1348246709_74c53e298f0de24e080db4de9f2b0a80_rle_crop_3736190912_0.png.png imagette218423211743160439/1743160141_1119978_1348246657_a8426ee94e585e9096dc6f4f6cf78403_rle_crop_3736190924_0.png.png imagette218423211743160439/1743159987_1443977_1348243407_510a06288dac727fe20ae8e207034e1e_rle_crop_3736188018_0.png.png imagette218423211743160439/1743160141_1119978_1348246524_79cd84e74ff4b44679fb6d10abb784a0_rle_crop_3736190992_0.png.png imagette218423211743160439/1743160141_1119978_1348246583_7ef49234c6e0d1f6927f6e972edcded9_rle_crop_3736190964_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/ae4c9baf033cf21310f8ef3e187b246d_1923295.png imagette218423211743160439 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21842308 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21842333,21842334,21842336,21842337,21842338,21842339,21842341,21842342,21842343,21842344,21842346,21842347?tags=environnement,mal_croppe,flou,kraft,Carton_gris,Carton_brun,Teint_Dans_La_Masse,metal,papier,autre_refus,plastique,cartonnette your option no_mail is active, we will not send the real mail to your client args[1348250918] : ('0.05953931487163745',) no score found for photo 1348250918 We are sending mail with results at report@fotonower.com args[1348250888] : ('0.05953931487163745',) no score found for photo 1348250888 We are sending mail with results at report@fotonower.com args[1348250860] : ('0.05953931487163745',) no score found for photo 1348250860 We are sending mail with results at report@fotonower.com args[1348250853] : ('0.05953931487163745',) no score found for photo 1348250853 We are sending mail with results at report@fotonower.com args[1348250849] : ('0.05953931487163745',) no score found for photo 1348250849 We are sending mail with results at report@fotonower.com args[1348250570] : ('0.05953931487163745',) no score found for photo 1348250570 We are sending mail with results at report@fotonower.com args[1348250549] : ('0.05953931487163745',) no score found for photo 1348250549 We are sending mail with results at report@fotonower.com args[1348250461] : ('0.05953931487163745',) no score found for photo 1348250461 We are sending mail with results at report@fotonower.com args[1348250405] : ('0.05953931487163745',) no score found for photo 1348250405 We are sending mail with results at report@fotonower.com args[1348250352] : ('0.05953931487163745',) no score found for photo 1348250352 We are sending mail with results at report@fotonower.com args[1348249585] : ('0.05953931487163745',) no score found for photo 1348249585 We are sending mail with results at report@fotonower.com args[1348249564] : ('0.05953931487163745',) no score found for photo 1348249564 We are sending mail with results at report@fotonower.com args[1348249560] : ('0.05953931487163745',) no score found for photo 1348249560 We are sending mail with results at report@fotonower.com args[1348249488] : ('0.05953931487163745',) no score found for photo 1348249488 We are sending mail with results at report@fotonower.com args[1348249415] : ('0.05953931487163745',) no score found for photo 1348249415 We are sending mail with results at report@fotonower.com args[1348249371] : ('0.05953931487163745',) no score found for photo 1348249371 We are sending mail with results at report@fotonower.com refus_total : 0.05953931487163745 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=21842308 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_P21842308_28-03-2025_12_13_58.pdf results_Auto_P21842308_28-03-2025_12_13_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21842308_28-03-2025_12_13_58.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','21842308','results_Auto_P21842308_28-03-2025_12_13_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21842308_28-03-2025_12_13_58.pdf','pdf','','0.2','0.05953931487163745') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21842308]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1348250918, 1348250888, 1348250860, 1348250853, 1348250849, 1348250570, 1348250549, 1348250461, 1348250405, 1348250352, 1348249585, 1348249564, 1348249560, 1348249488, 1348249415, 1348249371] map_info['map_portfolio_photo'] : {21842308: [1348250918, 1348250888, 1348250860, 1348250853, 1348250849, 1348250570, 1348250549, 1348250461, 1348250405, 1348250352, 1348249585, 1348249564, 1348249560, 1348249488, 1348249415, 1348249371, 1348248938, 1348248872, 1348248800, 1348248750, 1348248492, 1348248455, 1348248404, 1348248343, 1348248284, 1348248159, 1348246709, 1348246657, 1348246583, 1348246524, 1348246427, 1348245442, 1348245358, 1348245268, 1348244478, 1348244440, 1348244345, 1348244269, 1348244210, 1348243476, 1348243444, 1348243407, 1348243304, 1348242395]} final : False mtd_id 4302 list_pids : [1348250918, 1348250888, 1348250860, 1348250853, 1348250849, 1348250570, 1348250549, 1348250461, 1348250405, 1348250352, 1348249585, 1348249564, 1348249560, 1348249488, 1348249415, 1348249371] 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, '2701637') ('4302', '21842308', '1348250918', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250888', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250860', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250853', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250849', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250570', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250549', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250461', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250405', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250352', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348249585', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348249564', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348249560', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348249488', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348249415', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348249371', None, None, None, None, None, '2701637') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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', '21842308', '1348250918', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348250888', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348250860', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348250853', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348250849', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348250570', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348250549', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348250461', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348250405', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348250352', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348249585', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348249564', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348249560', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348249488', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348249415', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348249371', None, None, None, None, None, '2701637')] time used for this insertion : 0.017882585525512695 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.2532029151916504 time spend to save output : 0.01815485954284668 total time spend for step 4 : 3.271357774734497 step5:split_time_score Fri Mar 28 12:14:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21842308'] 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 : [('21842308',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21842308) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1348250461: {'path': 'temp/1743160438_1609692_1348250461_3e05325074945418450266aebbcb2e9b.jpg', 'extension': 'jpg'}, 1348250549: {'path': 'temp/1743160438_1609692_1348250549_a24ff7f8050bc62af1e82a3e6abf27f2.jpg', 'extension': 'jpg'}, 1348250570: {'path': 'temp/1743160438_1609692_1348250570_7985c206963962b45c912b31c7742eca.jpg', 'extension': 'jpg'}, 1348250849: {'path': 'temp/1743160438_1609692_1348250849_79d6c322be6d812c58b41068e7ea7b0b.jpg', 'extension': 'jpg'}, 1348249371: {'path': 'temp/1743160438_1609692_1348249371_b566fc8eb2d8f4b465e509e653fb5d8a.jpg', 'extension': 'jpg'}, 1348249415: {'path': 'temp/1743160438_1609692_1348249415_b74cfa3ded826fe7614f43c1e9a35027.jpg', 'extension': 'jpg'}, 1348249488: {'path': 'temp/1743160438_1609692_1348249488_96561514f577ed3d193784be385dce83.jpg', 'extension': 'jpg'}, 1348249560: {'path': 'temp/1743160438_1609692_1348249560_a316bfb725e1b01a9e4cd1d7fb2bf9a4.jpg', 'extension': 'jpg'}, 1348249564: {'path': 'temp/1743160438_1609692_1348249564_15f2318ac8fc6bf22192737d4709a319.jpg', 'extension': 'jpg'}, 1348249585: {'path': 'temp/1743160438_1609692_1348249585_3ca60d6d56a652dfc1f40e7ae3957bea.jpg', 'extension': 'jpg'}, 1348250352: {'path': 'temp/1743160438_1609692_1348250352_0ccb3eb44b38e5a53cbd94275b1cd09f.jpg', 'extension': 'jpg'}, 1348250405: {'path': 'temp/1743160438_1609692_1348250405_3c061ff462ec5b71d87cf102f9340d80.jpg', 'extension': 'jpg'}, 1348250853: {'path': 'temp/1743160438_1609692_1348250853_c8d3b4cb9ea4cf75ee62ba4e893967ce.jpg', 'extension': 'jpg'}, 1348250860: {'path': 'temp/1743160438_1609692_1348250860_a88b9bf052c7aaaa308e3bf094c1c91c.jpg', 'extension': 'jpg'}, 1348250888: {'path': 'temp/1743160438_1609692_1348250888_f1f2ebfe260e1de81baa52cfb6bdc846.jpg', 'extension': 'jpg'}, 1348250918: {'path': 'temp/1743160438_1609692_1348250918_75d9c69e6138a1aaf354fa29c20a14e4.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 = 21842308; (('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 = 21842308 group by h (('12', 44),) 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=21842308 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 (21842308) 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 (21842308) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28032025 21842308 Nombre de photos uploadées : 44 / 23040 (0%) 28032025 21842308 Nombre de photos taguées (types de déchets): 0 / 44 (0%) 28032025 21842308 Nombre de photos taguées (volume) : 0 / 44 (0%) [{'photo_id': 1348242395, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/92f6d5d9475b366d14ce884856b01fe1.jpg', 'username': None, 'uploaded_at': 1743159739, 'text': 'image_28032025_12_00_23_010137m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1348243476, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/41f6a0e54fdd2652b15609932782403a.jpg', 'username': None, 'uploaded_at': 1743159799, 'text': 'image_28032025_12_00_44_010137m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1348243444, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/2c64b2588ef3b990cae660430a6b5687.jpg', 'username': None, 'uploaded_at': 1743159799, 'text': 'image_28032025_12_01_14_010139m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1348243407, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/510a06288dac727fe20ae8e207034e1e.jpg', 'username': None, 'uploaded_at': 1743159799, 'text': 'image_28032025_12_01_24_010136m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ???????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002886056900024414 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21842308, '2025-03-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1696037,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024045467376708984 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= 1696037 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1696037, 'dashboard_run_id': 1705264, 'mtr_portfolio_id': 21840138, 'dashboard_result_id': 9717019, '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_P21840138_28-03-2025_11_33_28.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21840252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21840253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21840254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21840255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21840256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21840257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21840258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21840259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21840260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21840261, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21840262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21840263, 'pht': 3726}}"}, {'dashboat_entry_day': 1696037, 'dashboard_run_id': 1705264, 'mtr_portfolio_id': 21840944, 'dashboard_result_id': 9717020, '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_P21840944_28-03-2025_11_50_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21840945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21840946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21840947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21840948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21840949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21840950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21840951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21840952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21840953, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21840954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21840955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21840956, 'pht': 3726}}"}, {'dashboat_entry_day': 1696037, 'dashboard_run_id': 1705264, 'mtr_portfolio_id': 21841582, 'dashboard_result_id': 9717021, '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_P21841582_28-03-2025_12_05_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21841609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21841610, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21841611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21841612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21841613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21841614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21841615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21841616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21841617, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21841618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21841619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21841620, 'pht': 3726}}"}, {'dashboat_entry_day': 1696037, 'dashboard_run_id': 1705264, 'mtr_portfolio_id': 21842308, 'dashboard_result_id': 9717022, '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_P21842308_28-03-2025_12_11_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21842315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21842316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21842317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21842318, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21842319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21842320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21842321, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21842322, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21842323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21842324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21842325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21842326, '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 = 21840138 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': 2701463, 'mtr_portfolio_id': 21840138, 'created_at': datetime.datetime(2025, 3, 28, 11, 33, 27), 'result': '0.05185217229605837', 'result_long': None, 'result_double': None}] Qualite : 0.05185217229605837 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21840138 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21840138_28-03-2025_11_33_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21840138 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_P21840138_28-03-2025_11_33_28.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21840252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21840253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21840254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21840255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21840256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21840257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21840258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21840259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21840260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21840261, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21840262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21840263, 'pht': 3726}}" where mtr_portfolio_id = 21840138 and dashboard_run_id = 1705264 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`=21840138 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9717019, 0.05185217229605837, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21840138_28-03-2025_11_33_28.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21840252, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21840253, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21840254, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21840255, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21840256, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21840257, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21840258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21840259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21840260, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21840261, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21840262, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21840263, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21840944 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': 2701529, 'mtr_portfolio_id': 21840944, 'created_at': datetime.datetime(2025, 3, 28, 11, 50, 30), 'result': '0.03621633057195716', 'result_long': None, 'result_double': None}] Qualite : 0.03621633057195716 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21840944 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21840944_28-03-2025_11_50_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21840944 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_P21840944_28-03-2025_11_50_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21840945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21840946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21840947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21840948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21840949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21840950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21840951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21840952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21840953, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21840954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21840955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21840956, 'pht': 3726}}" where mtr_portfolio_id = 21840944 and dashboard_run_id = 1705264 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`=21840944 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9717020, 0.03621633057195716, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21840944_28-03-2025_11_50_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21840945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21840946, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21840947, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21840948, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21840949, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21840950, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21840951, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21840952, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21840953, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21840954, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21840955, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21840956, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21841582 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': 2701567, 'mtr_portfolio_id': 21841582, 'created_at': datetime.datetime(2025, 3, 28, 12, 4, 59), 'result': '0.04528516208332745', 'result_long': None, 'result_double': None}] Qualite : 0.04528516208332745 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21841582 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21841582_28-03-2025_12_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21841582 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_P21841582_28-03-2025_12_05_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21841609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21841610, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21841611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21841612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21841613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21841614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21841615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21841616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21841617, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21841618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21841619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21841620, 'pht': 3726}}" where mtr_portfolio_id = 21841582 and dashboard_run_id = 1705264 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`=21841582 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9717021, 0.04528516208332745, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21841582_28-03-2025_12_05_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21841609, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21841610, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21841611, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21841612, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21841613, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21841614, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21841615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21841616, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21841617, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21841618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21841619, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21841620, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21842308 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': 2701637, 'mtr_portfolio_id': 21842308, 'created_at': datetime.datetime(2025, 3, 28, 12, 13, 57), 'result': '0.05953931487163745', 'result_long': None, 'result_double': None}] Qualite : 0.05953931487163745 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21842308 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21842308_28-03-2025_12_13_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21842308 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_P21842308_28-03-2025_12_13_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21842315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21842316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21842317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21842318, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21842319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21842320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21842321, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21842322, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21842323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21842324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21842325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21842326, 'pht': 3726}}" where mtr_portfolio_id = 21842308 and dashboard_run_id = 1705264 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`=21842308 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9717022, 0.05953931487163745, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21842308_28-03-2025_12_13_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21842315, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21842316, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21842317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21842318, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21842319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21842320, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21842321, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21842322, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21842323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21842324, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21842325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21842326, '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 (21840138,21840944,21841582,21842308) result : ((1348233955,), (1348233958,), (1348233965,), (1348234214,), (1348234219,), (1348234225,), (1348234245,), (1348234249,), (1348234385,), (1348234388,), (1348234397,), (1348234406,), (1348234409,), (1348234674,), (1348234686,), (1348234691,), (1348234707,), (1348234721,), (1348234742,), (1348234818,), (1348234821,), (1348234827,), (1348234854,), (1348234939,), (1348234942,), (1348234947,), (1348234951,), (1348234955,), (1348235180,), (1348235191,), (1348235206,), (1348235278,), (1348235286,), (1348235291,), (1348235344,), (1348235351,), (1348235358,), (1348235449,), (1348235454,), (1348235463,), (1348235469,), (1348235473,), (1348235477,), (1348235509,), (1348235514,), (1348235529,), (1348235557,), (1348235562,), (1348235567,), (1348235591,), (1348235595,), (1348235597,), (1348235603,), (1348235700,), (1348235703,), (1348235715,), (1348235727,), (1348235801,), (1348235813,), (1348235825,), (1348235836,), (1348235858,), (1348235881,), (1348235898,), (1348235900,), (1348235905,), (1348235910,), (1348235917,), (1348235969,), (1348235971,), (1348235983,), (1348235999,), (1348236045,), (1348236019,), (1348236023,), (1348236034,), (1348236149,), (1348236154,), (1348236158,), (1348236162,), (1348236172,), (1348236176,), (1348236206,), (1348236216,), (1348236257,), (1348236266,), (1348236277,), (1348236387,), (1348236399,), (1348236453,), (1348236457,), (1348236463,), (1348236468,), (1348236475,), (1348236538,), (1348236544,), (1348236575,), (1348236701,), (1348236704,), (1348236995,), (1348237021,), (1348237046,), (1348237120,), (1348237132,), (1348237411,), (1348237439,), (1348237468,), (1348237503,), (1348237673,), (1348237695,), (1348237701,), (1348237711,), (1348237786,), (1348237906,), (1348238036,), (1348238039,), (1348238043,), (1348238048,), (1348238114,), (1348238130,), (1348238151,), (1348238159,), (1348238188,), (1348238217,), (1348238456,), (1348238458,), (1348238462,), (1348238468,), (1348238614,), (1348238575,), (1348238597,), (1348238599,), (1348238607,), (1348238612,), (1348238679,), (1348238696,), (1348238716,), (1348238725,), (1348238729,), (1348238923,), (1348238928,), (1348238935,), (1348238938,), (1348238946,), (1348238959,), (1348238983,), (1348238987,), (1348238992,), (1348239000,), (1348239005,), (1348239010,), (1348239050,), (1348239063,), (1348239071,), (1348239075,), (1348239489,), (1348239510,), (1348239537,), (1348239560,), (1348239579,), (1348239618,), (1348239832,), (1348239845,), (1348239851,), (1348239973,), (1348239976,), (1348239982,), (1348240179,), (1348240190,), (1348240195,), (1348240327,), (1348240387,), (1348240399,), (1348240402,), (1348240420,), (1348240476,), (1348240507,), (1348240511,), (1348240600,), (1348240603,), (1348240609,), (1348240635,), (1348240648,), (1348240654,), (1348240801,), (1348240817,), (1348240844,), (1348240867,), (1348241562,), (1348241626,), (1348241687,), (1348241726,), (1348241759,), (1348241837,), (1348241927,), (1348241980,), (1348242066,), (1348242146,), (1348242196,), (1348242501,), (1348242395,), (1348243304,), (1348243407,), (1348243444,), (1348243476,), (1348244210,), (1348244269,), (1348244345,), (1348244440,), (1348244478,), (1348245268,), (1348245358,), (1348245442,), (1348246427,), (1348246524,), (1348246583,), (1348246657,), (1348246709,), (1348248159,), (1348248284,), (1348248343,), (1348248404,), (1348248455,), (1348248492,), (1348248750,), (1348248800,), (1348248872,), (1348248938,), (1348249371,), (1348249415,), (1348249488,), (1348249560,), (1348249564,), (1348249585,), (1348250352,), (1348250405,), (1348250461,), (1348250549,), (1348250570,), (1348250849,), (1348250853,), (1348250860,), (1348250888,), (1348250918,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28032025': {'nb_upload': 44, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21842308]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1348250918, 1348250888, 1348250860, 1348250853, 1348250849, 1348250570, 1348250549, 1348250461, 1348250405, 1348250352, 1348249585, 1348249564, 1348249560, 1348249488, 1348249415, 1348249371] map_info['map_portfolio_photo'] : {21842308: [1348250918, 1348250888, 1348250860, 1348250853, 1348250849, 1348250570, 1348250549, 1348250461, 1348250405, 1348250352, 1348249585, 1348249564, 1348249560, 1348249488, 1348249415, 1348249371, 1348248938, 1348248872, 1348248800, 1348248750, 1348248492, 1348248455, 1348248404, 1348248343, 1348248284, 1348248159, 1348246709, 1348246657, 1348246583, 1348246524, 1348246427, 1348245442, 1348245358, 1348245268, 1348244478, 1348244440, 1348244345, 1348244269, 1348244210, 1348243476, 1348243444, 1348243407, 1348243304, 1348242395]} final : True mtd_id 4302 list_pids : [1348250918, 1348250888, 1348250860, 1348250853, 1348250849, 1348250570, 1348250549, 1348250461, 1348250405, 1348250352, 1348249585, 1348249564, 1348249560, 1348249488, 1348249415, 1348249371] Looping around the photos to save general results len do output : 1 /21842308Didn'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, '2701637') ('4302', '21842308', '1348250918', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250888', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250860', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250853', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250849', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250570', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250549', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250461', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250405', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348250352', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348249585', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348249564', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348249560', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348249488', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348249415', None, None, None, None, None, '2701637') ('4302', None, None, None, None, None, None, None, '2701637') ('4302', '21842308', '1348249371', None, None, None, None, None, '2701637') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '21842308', 'None', None, None, None, None, '2701637'), ('4302', '21842308', '1348250918', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348250888', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348250860', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348250853', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348250849', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348250570', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348250549', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348250461', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348250405', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348250352', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348249585', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348249564', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348249560', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348249488', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348249415', None, None, None, None, None, '2701637'), ('4302', '21842308', '1348249371', None, None, None, None, None, '2701637')] time used for this insertion : 0.014113903045654297 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3383638858795166 time spend to save output : 0.014275789260864258 total time spend for step 5 : 0.35263967514038086 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 (2701637) 2.30user 2.41system 0:06.69elapsed 70%CPU (0avgtext+0avgdata 159940maxresident)k 83992inputs+12568outputs (296major+76481minor)pagefaults 0swaps