save_final save missing photos in datou_result : time spend for datou_step_exec : 2.1924848556518555 time spend to save output : 0.6426570415496826 total time spend for step 1 : 2.835141897201538 step2:final Thu Apr 10 09:52:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22216157) 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 22216157 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1351092943,1351092922,1351092919,1351093511,1351093498,1351094036,1351094002,1351093912,1351093903,1351093835,1351094141,1351094139,1351094135); 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([22216157]) Inside saveOutput : final : False verbose : True original output for save of step final : {1351094141: ('0.04546089253520328',), 1351094139: ('0.04546089253520328',), 1351094135: ('0.04546089253520328',), 1351094036: ('0.04546089253520328',), 1351094002: ('0.04546089253520328',), 1351093912: ('0.04546089253520328',), 1351093903: ('0.04546089253520328',), 1351093835: ('0.04546089253520328',), 1351093511: ('0.04546089253520328',), 1351093498: ('0.04546089253520328',), 1351092943: ('0.04546089253520328',), 1351092922: ('0.04546089253520328',), 1351092919: ('0.04546089253520328',)} new output for save of step final : {1351094141: ('0.04546089253520328',), 1351094139: ('0.04546089253520328',), 1351094135: ('0.04546089253520328',), 1351094036: ('0.04546089253520328',), 1351094002: ('0.04546089253520328',), 1351093912: ('0.04546089253520328',), 1351093903: ('0.04546089253520328',), 1351093835: ('0.04546089253520328',), 1351093511: ('0.04546089253520328',), 1351093498: ('0.04546089253520328',), 1351092943: ('0.04546089253520328',), 1351092922: ('0.04546089253520328',), 1351092919: ('0.04546089253520328',)} [1351094141, 1351094139, 1351094135, 1351094036, 1351094002, 1351093912, 1351093903, 1351093835, 1351093511, 1351093498, 1351092943, 1351092922, 1351092919] map_info['map_portfolio_photo'] : {22216157: [1351094141, 1351094139, 1351094135, 1351094036, 1351094002, 1351093912, 1351093903, 1351093835, 1351093511, 1351093498, 1351092943, 1351092922, 1351092919]} final : False mtd_id 4302 list_pids : [1351094141, 1351094139, 1351094135, 1351094036, 1351094002, 1351093912, 1351093903, 1351093835, 1351093511, 1351093498, 1351092943, 1351092922, 1351092919] Looping around the photos to save general results len do output : 13 /1351094141.Didn't retrieve data . /1351094139.Didn't retrieve data . /1351094135.Didn't retrieve data . /1351094036.Didn't retrieve data . /1351094002.Didn't retrieve data . /1351093912.Didn't retrieve data . /1351093903.Didn't retrieve data . /1351093835.Didn't retrieve data . /1351093511.Didn't retrieve data . /1351093498.Didn't retrieve data . /1351092943.Didn't retrieve data . /1351092922.Didn't retrieve data . /1351092919.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, '2738917') ('4302', '22216157', '1351094141', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351094139', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351094135', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351094036', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351094002', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351093912', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351093903', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351093835', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351093511', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351093498', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351092943', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351092922', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351092919', None, None, None, None, None, '2738917') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '22216157', '1351094141', '0.04546089253520328', None, None, None, None, '2738917'), ('4302', '22216157', '1351094139', '0.04546089253520328', None, None, None, None, '2738917'), ('4302', '22216157', '1351094135', '0.04546089253520328', None, None, None, None, '2738917'), ('4302', '22216157', '1351094036', '0.04546089253520328', None, None, None, None, '2738917'), ('4302', '22216157', '1351094002', '0.04546089253520328', None, None, None, None, '2738917'), ('4302', '22216157', '1351093912', '0.04546089253520328', None, None, None, None, '2738917'), ('4302', '22216157', '1351093903', '0.04546089253520328', None, None, None, None, '2738917'), ('4302', '22216157', '1351093835', '0.04546089253520328', None, None, None, None, '2738917'), ('4302', '22216157', '1351093511', '0.04546089253520328', None, None, None, None, '2738917'), ('4302', '22216157', '1351093498', '0.04546089253520328', None, None, None, None, '2738917'), ('4302', '22216157', '1351092943', '0.04546089253520328', None, None, None, None, '2738917'), ('4302', '22216157', '1351092922', '0.04546089253520328', None, None, None, None, '2738917'), ('4302', '22216157', '1351092919', '0.04546089253520328', None, None, None, None, '2738917')] time used for this insertion : 0.016826152801513672 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5285980701446533 time spend to save output : 0.017478466033935547 total time spend for step 2 : 1.5460765361785889 step3:velours_tree Thu Apr 10 09:53:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {22216157: [{'plastique': 22216160, 'cartonnette': 22216161, 'papier': 22216162, 'kraft': 22216163, 'flou': 22216164, 'metal': 22216165, 'Teint_Dans_La_Masse': 22216166, 'Carton_brun': 22216167, 'environnement': 22216168, 'mal_croppe': 22216169, 'Carton_gris': 22216170, 'autre_refus': 22216171}]} input_args_next_step : {22216157: ()} output_args : {22216157: [{'plastique': 22216160, 'cartonnette': 22216161, 'papier': 22216162, 'kraft': 22216163, 'flou': 22216164, 'metal': 22216165, 'Teint_Dans_La_Masse': 22216166, 'Carton_brun': 22216167, 'environnement': 22216168, 'mal_croppe': 22216169, 'Carton_gris': 22216170, 'autre_refus': 22216171}]} args : 22216157 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 : ({'plastique': 22216160, 'cartonnette': 22216161, 'papier': 22216162, 'kraft': 22216163, 'flou': 22216164, 'metal': 22216165, 'Teint_Dans_La_Masse': 22216166, 'Carton_brun': 22216167, 'environnement': 22216168, 'mal_croppe': 22216169, 'Carton_gris': 22216170, 'autre_refus': 22216171},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22216157) 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([22216157]) 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.2910757064819336 time spend to save output : 5.125999450683594e-05 total time spend for step 3 : 0.29112696647644043 step4:send_mail_cod Thu Apr 10 09:53:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1351094141: ('0.04546089253520328',), 1351094139: ('0.04546089253520328',), 1351094135: ('0.04546089253520328',), 1351094036: ('0.04546089253520328',), 1351094002: ('0.04546089253520328',), 1351093912: ('0.04546089253520328',), 1351093903: ('0.04546089253520328',), 1351093835: ('0.04546089253520328',), 1351093511: ('0.04546089253520328',), 1351093498: ('0.04546089253520328',), 1351092943: ('0.04546089253520328',), 1351092922: ('0.04546089253520328',), 1351092919: ('0.04546089253520328',)} input_args_next_step : {1351094141: ()} output_args : {1351094141: ('0.04546089253520328',), 1351094139: ('0.04546089253520328',), 1351094135: ('0.04546089253520328',), 1351094036: ('0.04546089253520328',), 1351094002: ('0.04546089253520328',), 1351093912: ('0.04546089253520328',), 1351093903: ('0.04546089253520328',), 1351093835: ('0.04546089253520328',), 1351093511: ('0.04546089253520328',), 1351093498: ('0.04546089253520328',), 1351092943: ('0.04546089253520328',), 1351092922: ('0.04546089253520328',), 1351092919: ('0.04546089253520328',)} args : 1351094141 depend.output_id : 0 input_args_next_step : {1351094141: ('0.04546089253520328',), 1351094139: ()} output_args : {1351094141: ('0.04546089253520328',), 1351094139: ('0.04546089253520328',), 1351094135: ('0.04546089253520328',), 1351094036: ('0.04546089253520328',), 1351094002: ('0.04546089253520328',), 1351093912: ('0.04546089253520328',), 1351093903: ('0.04546089253520328',), 1351093835: ('0.04546089253520328',), 1351093511: ('0.04546089253520328',), 1351093498: ('0.04546089253520328',), 1351092943: ('0.04546089253520328',), 1351092922: ('0.04546089253520328',), 1351092919: ('0.04546089253520328',)} args : 1351094139 depend.output_id : 0 input_args_next_step : {1351094141: ('0.04546089253520328',), 1351094139: ('0.04546089253520328',), 1351094135: ()} output_args : {1351094141: ('0.04546089253520328',), 1351094139: ('0.04546089253520328',), 1351094135: ('0.04546089253520328',), 1351094036: ('0.04546089253520328',), 1351094002: ('0.04546089253520328',), 1351093912: ('0.04546089253520328',), 1351093903: ('0.04546089253520328',), 1351093835: ('0.04546089253520328',), 1351093511: ('0.04546089253520328',), 1351093498: ('0.04546089253520328',), 1351092943: ('0.04546089253520328',), 1351092922: ('0.04546089253520328',), 1351092919: ('0.04546089253520328',)} args : 1351094135 depend.output_id : 0 input_args_next_step : {1351094141: ('0.04546089253520328',), 1351094139: ('0.04546089253520328',), 1351094135: ('0.04546089253520328',), 1351094036: ()} output_args : {1351094141: ('0.04546089253520328',), 1351094139: ('0.04546089253520328',), 1351094135: ('0.04546089253520328',), 1351094036: ('0.04546089253520328',), 1351094002: ('0.04546089253520328',), 1351093912: ('0.04546089253520328',), 1351093903: ('0.04546089253520328',), 1351093835: ('0.04546089253520328',), 1351093511: ('0.04546089253520328',), 1351093498: ('0.04546089253520328',), 1351092943: ('0.04546089253520328',), 1351092922: ('0.04546089253520328',), 1351092919: ('0.04546089253520328',)} args : 1351094036 depend.output_id : 0 input_args_next_step : {1351094141: ('0.04546089253520328',), 1351094139: ('0.04546089253520328',), 1351094135: ('0.04546089253520328',), 1351094036: ('0.04546089253520328',), 1351094002: ()} output_args : {1351094141: ('0.04546089253520328',), 1351094139: ('0.04546089253520328',), 1351094135: ('0.04546089253520328',), 1351094036: ('0.04546089253520328',), 1351094002: ('0.04546089253520328',), 1351093912: ('0.04546089253520328',), 1351093903: ('0.04546089253520328',), 1351093835: ('0.04546089253520328',), 1351093511: ('0.04546089253520328',), 1351093498: ('0.04546089253520328',), 1351092943: ('0.04546089253520328',), 1351092922: ('0.04546089253520328',), 1351092919: ('0.04546089253520328',)} args : 1351094002 depend.output_id : 0 input_args_next_step : {1351094141: ('0.04546089253520328',), 1351094139: ('0.04546089253520328',), 1351094135: ('0.04546089253520328',), 1351094036: ('0.04546089253520328',), 1351094002: ('0.04546089253520328',), 1351093912: ()} output_args : {1351094141: ('0.04546089253520328',), 1351094139: ('0.04546089253520328',), 1351094135: ('0.04546089253520328',), 1351094036: ('0.04546089253520328',), 1351094002: ('0.04546089253520328',), 1351093912: ('0.04546089253520328',), 1351093903: ('0.04546089253520328',), 1351093835: ('0.04546089253520328',), 1351093511: ('0.04546089253520328',), 1351093498: ('0.04546089253520328',), 1351092943: ('0.04546089253520328',), 1351092922: ('0.04546089253520328',), 1351092919: ('0.04546089253520328',)} args : 1351093912 depend.output_id : 0 input_args_next_step : {1351094141: ('0.04546089253520328',), 1351094139: ('0.04546089253520328',), 1351094135: ('0.04546089253520328',), 1351094036: ('0.04546089253520328',), 1351094002: ('0.04546089253520328',), 1351093912: ('0.04546089253520328',), 1351093903: ()} output_args : {1351094141: ('0.04546089253520328',), 1351094139: ('0.04546089253520328',), 1351094135: ('0.04546089253520328',), 1351094036: ('0.04546089253520328',), 1351094002: ('0.04546089253520328',), 1351093912: ('0.04546089253520328',), 1351093903: ('0.04546089253520328',), 1351093835: ('0.04546089253520328',), 1351093511: ('0.04546089253520328',), 1351093498: ('0.04546089253520328',), 1351092943: ('0.04546089253520328',), 1351092922: ('0.04546089253520328',), 1351092919: ('0.04546089253520328',)} args : 1351093903 depend.output_id : 0 input_args_next_step : {1351094141: ('0.04546089253520328',), 1351094139: ('0.04546089253520328',), 1351094135: ('0.04546089253520328',), 1351094036: ('0.04546089253520328',), 1351094002: ('0.04546089253520328',), 1351093912: ('0.04546089253520328',), 1351093903: ('0.04546089253520328',), 1351093835: ()} output_args : {1351094141: ('0.04546089253520328',), 1351094139: ('0.04546089253520328',), 1351094135: ('0.04546089253520328',), 1351094036: ('0.04546089253520328',), 1351094002: ('0.04546089253520328',), 1351093912: ('0.04546089253520328',), 1351093903: ('0.04546089253520328',), 1351093835: ('0.04546089253520328',), 1351093511: ('0.04546089253520328',), 1351093498: ('0.04546089253520328',), 1351092943: ('0.04546089253520328',), 1351092922: ('0.04546089253520328',), 1351092919: ('0.04546089253520328',)} args : 1351093835 depend.output_id : 0 input_args_next_step : {1351094141: ('0.04546089253520328',), 1351094139: ('0.04546089253520328',), 1351094135: ('0.04546089253520328',), 1351094036: ('0.04546089253520328',), 1351094002: ('0.04546089253520328',), 1351093912: ('0.04546089253520328',), 1351093903: ('0.04546089253520328',), 1351093835: ('0.04546089253520328',), 1351093511: ()} output_args : {1351094141: ('0.04546089253520328',), 1351094139: ('0.04546089253520328',), 1351094135: ('0.04546089253520328',), 1351094036: ('0.04546089253520328',), 1351094002: ('0.04546089253520328',), 1351093912: ('0.04546089253520328',), 1351093903: ('0.04546089253520328',), 1351093835: ('0.04546089253520328',), 1351093511: ('0.04546089253520328',), 1351093498: ('0.04546089253520328',), 1351092943: ('0.04546089253520328',), 1351092922: ('0.04546089253520328',), 1351092919: ('0.04546089253520328',)} args : 1351093511 depend.output_id : 0 input_args_next_step : {1351094141: ('0.04546089253520328',), 1351094139: ('0.04546089253520328',), 1351094135: ('0.04546089253520328',), 1351094036: ('0.04546089253520328',), 1351094002: ('0.04546089253520328',), 1351093912: ('0.04546089253520328',), 1351093903: ('0.04546089253520328',), 1351093835: ('0.04546089253520328',), 1351093511: ('0.04546089253520328',), 1351093498: ()} output_args : {1351094141: ('0.04546089253520328',), 1351094139: ('0.04546089253520328',), 1351094135: ('0.04546089253520328',), 1351094036: ('0.04546089253520328',), 1351094002: ('0.04546089253520328',), 1351093912: ('0.04546089253520328',), 1351093903: ('0.04546089253520328',), 1351093835: ('0.04546089253520328',), 1351093511: ('0.04546089253520328',), 1351093498: ('0.04546089253520328',), 1351092943: ('0.04546089253520328',), 1351092922: ('0.04546089253520328',), 1351092919: ('0.04546089253520328',)} args : 1351093498 depend.output_id : 0 input_args_next_step : {1351094141: ('0.04546089253520328',), 1351094139: ('0.04546089253520328',), 1351094135: ('0.04546089253520328',), 1351094036: ('0.04546089253520328',), 1351094002: ('0.04546089253520328',), 1351093912: ('0.04546089253520328',), 1351093903: ('0.04546089253520328',), 1351093835: ('0.04546089253520328',), 1351093511: ('0.04546089253520328',), 1351093498: ('0.04546089253520328',), 1351092943: ()} output_args : {1351094141: ('0.04546089253520328',), 1351094139: ('0.04546089253520328',), 1351094135: ('0.04546089253520328',), 1351094036: ('0.04546089253520328',), 1351094002: ('0.04546089253520328',), 1351093912: ('0.04546089253520328',), 1351093903: ('0.04546089253520328',), 1351093835: ('0.04546089253520328',), 1351093511: ('0.04546089253520328',), 1351093498: ('0.04546089253520328',), 1351092943: ('0.04546089253520328',), 1351092922: ('0.04546089253520328',), 1351092919: ('0.04546089253520328',)} args : 1351092943 depend.output_id : 0 input_args_next_step : {1351094141: ('0.04546089253520328',), 1351094139: ('0.04546089253520328',), 1351094135: ('0.04546089253520328',), 1351094036: ('0.04546089253520328',), 1351094002: ('0.04546089253520328',), 1351093912: ('0.04546089253520328',), 1351093903: ('0.04546089253520328',), 1351093835: ('0.04546089253520328',), 1351093511: ('0.04546089253520328',), 1351093498: ('0.04546089253520328',), 1351092943: ('0.04546089253520328',), 1351092922: ()} output_args : {1351094141: ('0.04546089253520328',), 1351094139: ('0.04546089253520328',), 1351094135: ('0.04546089253520328',), 1351094036: ('0.04546089253520328',), 1351094002: ('0.04546089253520328',), 1351093912: ('0.04546089253520328',), 1351093903: ('0.04546089253520328',), 1351093835: ('0.04546089253520328',), 1351093511: ('0.04546089253520328',), 1351093498: ('0.04546089253520328',), 1351092943: ('0.04546089253520328',), 1351092922: ('0.04546089253520328',), 1351092919: ('0.04546089253520328',)} args : 1351092922 depend.output_id : 0 input_args_next_step : {1351094141: ('0.04546089253520328',), 1351094139: ('0.04546089253520328',), 1351094135: ('0.04546089253520328',), 1351094036: ('0.04546089253520328',), 1351094002: ('0.04546089253520328',), 1351093912: ('0.04546089253520328',), 1351093903: ('0.04546089253520328',), 1351093835: ('0.04546089253520328',), 1351093511: ('0.04546089253520328',), 1351093498: ('0.04546089253520328',), 1351092943: ('0.04546089253520328',), 1351092922: ('0.04546089253520328',), 1351092919: ()} output_args : {1351094141: ('0.04546089253520328',), 1351094139: ('0.04546089253520328',), 1351094135: ('0.04546089253520328',), 1351094036: ('0.04546089253520328',), 1351094002: ('0.04546089253520328',), 1351093912: ('0.04546089253520328',), 1351093903: ('0.04546089253520328',), 1351093835: ('0.04546089253520328',), 1351093511: ('0.04546089253520328',), 1351093498: ('0.04546089253520328',), 1351092943: ('0.04546089253520328',), 1351092922: ('0.04546089253520328',), 1351092919: ('0.04546089253520328',)} args : 1351092919 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 : {22216157: [{'plastique': 22216160, 'cartonnette': 22216161, 'papier': 22216162, 'kraft': 22216163, 'flou': 22216164, 'metal': 22216165, 'Teint_Dans_La_Masse': 22216166, 'Carton_brun': 22216167, 'environnement': 22216168, 'mal_croppe': 22216169, 'Carton_gris': 22216170, 'autre_refus': 22216171}]} input_args_next_step : {1351094141: ('0.04546089253520328',), 1351094139: ('0.04546089253520328',), 1351094135: ('0.04546089253520328',), 1351094036: ('0.04546089253520328',), 1351094002: ('0.04546089253520328',), 1351093912: ('0.04546089253520328',), 1351093903: ('0.04546089253520328',), 1351093835: ('0.04546089253520328',), 1351093511: ('0.04546089253520328',), 1351093498: ('0.04546089253520328',), 1351092943: ('0.04546089253520328',), 1351092922: ('0.04546089253520328',), 1351092919: ('0.04546089253520328',), 22216157: ()} output_args : {22216157: [{'plastique': 22216160, 'cartonnette': 22216161, 'papier': 22216162, 'kraft': 22216163, 'flou': 22216164, 'metal': 22216165, 'Teint_Dans_La_Masse': 22216166, 'Carton_brun': 22216167, 'environnement': 22216168, 'mal_croppe': 22216169, 'Carton_gris': 22216170, 'autre_refus': 22216171}]} args : 22216157 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 :14, first value : ('0.04546089253520328',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22216157) 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 (1351094141,1351094139,1351094135,1351094036,1351094002,1351093912,1351093903,1351093835,1351093511,1351093498,1351092943,1351092922,1351092919) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1351092919 begin to download photo : 1351093498 begin to download photo : 1351093903 begin to download photo : 1351094036 begin to download photo : 1351094141 download finish for photo 1351092919 begin to download photo : 1351092922 download finish for photo 1351093903 begin to download photo : 1351093912 download finish for photo 1351094036 begin to download photo : 1351094135 download finish for photo 1351094141 download finish for photo 1351093498 begin to download photo : 1351093511 download finish for photo 1351094135 begin to download photo : 1351094139 download finish for photo 1351093912 begin to download photo : 1351094002 download finish for photo 1351092922 begin to download photo : 1351092943 download finish for photo 1351093511 begin to download photo : 1351093835 download finish for photo 1351094002 download finish for photo 1351092943 download finish for photo 1351094139 download finish for photo 1351093835 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette222161601744271580/ length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P22216157_10-04-2025_09_53_00.pdf 22216160 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=22216160 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222161601744271580 22216161 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=22216161 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351094186: '1744271471_4078286_1351093511_361f20cdd99a25621233f438919d33a9_rle_crop_3753586782_0.png'} change filename to text .imagette222161611744271580/ imagette222161611744271580/1744271471_4078286_1351093511_361f20cdd99a25621233f438919d33a9_rle_crop_3753586782_0.png.png imagette222161631744271580/ imagette222161641744271580/ imagette222161651744271580/ imagette222161691744271580/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/5b5d529890e45a512e7c144c0a33817b_16374318.png imagette222161611744271580 22216163 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=22216163 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222161631744271580 22216164 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=22216164 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222161641744271580 22216165 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=22216165 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222161651744271580 22216169 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=22216169 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222161691744271580 22216171 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=22216171 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351094184: '1744271471_4078286_1351093511_361f20cdd99a25621233f438919d33a9_rle_crop_3753586781_0.png'} change filename to text .imagette222161711744271580/ imagette222161711744271580/1744271471_4078286_1351093511_361f20cdd99a25621233f438919d33a9_rle_crop_3753586781_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/4ec4b8f36d70cf8892ac53e2d8e7ba50_24907490.png imagette222161711744271580 22216166 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=22216166 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351093303: '1744271245_4005329_1351092943_58acafc1dd9363bda2282f3a0b87a0ba_rle_crop_3753585114_0.png', 1351093304: '1744271245_4005329_1351092922_fb459a41b0ca9b68d3583a5a6aa90646_rle_crop_3753585146_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/35616efaebaaeadb9811541425cdba75_37024953.png change filename to text .imagette222161661744271580/ imagette222161661744271580/1744271245_4005329_1351092922_fb459a41b0ca9b68d3583a5a6aa90646_rle_crop_3753585146_0.png.png imagette222161661744271580/1744271245_4005329_1351092943_58acafc1dd9363bda2282f3a0b87a0ba_rle_crop_3753585114_0.png.png imagette222161671744271581/ imagette222161701744271581/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/d5fb19753edb2a3ae2acdc563c648ad3_95322024.png imagette222161661744271580 22216167 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=22216167 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222161671744271581 22216170 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=22216170 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222161701744271581 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22216157 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22216172,22216173,22216174,22216175,22216176,22216177,22216178,22216179,22216180,22216181,22216182,22216183?tags=plastique,cartonnette,papier,kraft,flou,metal,Teint_Dans_La_Masse,Carton_brun,environnement,mal_croppe,Carton_gris,autre_refus your option no_mail is active, we will not send the real mail to your client args[1351094141] : ('0.04546089253520328',) no score found for photo 1351094141 We are sending mail with results at report@fotonower.com args[1351094139] : ('0.04546089253520328',) no score found for photo 1351094139 We are sending mail with results at report@fotonower.com args[1351094135] : ('0.04546089253520328',) no score found for photo 1351094135 We are sending mail with results at report@fotonower.com args[1351094036] : ('0.04546089253520328',) no score found for photo 1351094036 We are sending mail with results at report@fotonower.com args[1351094002] : ('0.04546089253520328',) no score found for photo 1351094002 We are sending mail with results at report@fotonower.com args[1351093912] : ('0.04546089253520328',) no score found for photo 1351093912 We are sending mail with results at report@fotonower.com args[1351093903] : ('0.04546089253520328',) no score found for photo 1351093903 We are sending mail with results at report@fotonower.com args[1351093835] : ('0.04546089253520328',) no score found for photo 1351093835 We are sending mail with results at report@fotonower.com args[1351093511] : ('0.04546089253520328',) no score found for photo 1351093511 We are sending mail with results at report@fotonower.com args[1351093498] : ('0.04546089253520328',) no score found for photo 1351093498 We are sending mail with results at report@fotonower.com args[1351092943] : ('0.04546089253520328',) no score found for photo 1351092943 We are sending mail with results at report@fotonower.com args[1351092922] : ('0.04546089253520328',) no score found for photo 1351092922 We are sending mail with results at report@fotonower.com args[1351092919] : ('0.04546089253520328',) no score found for photo 1351092919 We are sending mail with results at report@fotonower.com refus_total : 0.04546089253520328 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=22216157 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_P22216157_10-04-2025_09_53_00.pdf results_Auto_P22216157_10-04-2025_09_53_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22216157_10-04-2025_09_53_00.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','22216157','results_Auto_P22216157_10-04-2025_09_53_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22216157_10-04-2025_09_53_00.pdf','pdf','','0.13','0.04546089253520328') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22216157]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1351094141, 1351094139, 1351094135, 1351094036, 1351094002, 1351093912, 1351093903, 1351093835, 1351093511, 1351093498, 1351092943, 1351092922, 1351092919] map_info['map_portfolio_photo'] : {22216157: [1351094141, 1351094139, 1351094135, 1351094036, 1351094002, 1351093912, 1351093903, 1351093835, 1351093511, 1351093498, 1351092943, 1351092922, 1351092919]} final : False mtd_id 4302 list_pids : [1351094141, 1351094139, 1351094135, 1351094036, 1351094002, 1351093912, 1351093903, 1351093835, 1351093511, 1351093498, 1351092943, 1351092922, 1351092919] 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, '2738917') ('4302', '22216157', '1351094141', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351094139', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351094135', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351094036', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351094002', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351093912', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351093903', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351093835', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351093511', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351093498', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351092943', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351092922', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351092919', None, None, None, None, None, '2738917') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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', '22216157', '1351094141', None, None, None, None, None, '2738917'), ('4302', '22216157', '1351094139', None, None, None, None, None, '2738917'), ('4302', '22216157', '1351094135', None, None, None, None, None, '2738917'), ('4302', '22216157', '1351094036', None, None, None, None, None, '2738917'), ('4302', '22216157', '1351094002', None, None, None, None, None, '2738917'), ('4302', '22216157', '1351093912', None, None, None, None, None, '2738917'), ('4302', '22216157', '1351093903', None, None, None, None, None, '2738917'), ('4302', '22216157', '1351093835', None, None, None, None, None, '2738917'), ('4302', '22216157', '1351093511', None, None, None, None, None, '2738917'), ('4302', '22216157', '1351093498', None, None, None, None, None, '2738917'), ('4302', '22216157', '1351092943', None, None, None, None, None, '2738917'), ('4302', '22216157', '1351092922', None, None, None, None, None, '2738917'), ('4302', '22216157', '1351092919', None, None, None, None, None, '2738917')] time used for this insertion : 0.018193483352661133 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7775673866271973 time spend to save output : 0.018369197845458984 total time spend for step 4 : 1.7959365844726562 step5:split_time_score Thu Apr 10 09:53:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22216157'] 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 : [('22216157',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22216157) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1351094141: {'path': 'temp/1744271580_1736628_1351094141_70b19894aacc70ffdfbce559f07d6d3a.jpg', 'extension': 'jpg'}, 1351093903: {'path': 'temp/1744271580_1736628_1351093903_88087763563b5b089c9bb643faef90b1.jpg', 'extension': 'jpg'}, 1351093912: {'path': 'temp/1744271580_1736628_1351093912_d1a26fa79da6164d04de3e0fe5793dc5.jpg', 'extension': 'jpg'}, 1351094002: {'path': 'temp/1744271580_1736628_1351094002_24172e0658408c89cfa12beb866a8be5.jpg', 'extension': 'jpg'}, 1351092919: {'path': 'temp/1744271580_1736628_1351092919_8a358c4885be8fcd0be78dd28dabb598.jpg', 'extension': 'jpg'}, 1351092922: {'path': 'temp/1744271580_1736628_1351092922_fb459a41b0ca9b68d3583a5a6aa90646.jpg', 'extension': 'jpg'}, 1351092943: {'path': 'temp/1744271580_1736628_1351092943_58acafc1dd9363bda2282f3a0b87a0ba.jpg', 'extension': 'jpg'}, 1351094036: {'path': 'temp/1744271580_1736628_1351094036_6877ef8e1b08644331116c9257ed159f.jpg', 'extension': 'jpg'}, 1351094135: {'path': 'temp/1744271580_1736628_1351094135_b3788da4eccb29099eb3b3806a211e47.jpg', 'extension': 'jpg'}, 1351094139: {'path': 'temp/1744271580_1736628_1351094139_faa1298bf85fa2762cd68c1fb2d9fbfb.jpg', 'extension': 'jpg'}, 1351093498: {'path': 'temp/1744271580_1736628_1351093498_17ac75141ca8a74f5bcb4548aaf2658b.jpg', 'extension': 'jpg'}, 1351093511: {'path': 'temp/1744271580_1736628_1351093511_361f20cdd99a25621233f438919d33a9.jpg', 'extension': 'jpg'}, 1351093835: {'path': 'temp/1744271580_1736628_1351093835_08839152db50de5eb4fc9f00388914e0.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 = 22216157; (('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 = 22216157 group by h (('09', 13),) 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=22216157 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 (22216157) 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 (22216157) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10042025 22216157 Nombre de photos uploadées : 13 / 23040 (0%) 10042025 22216157 Nombre de photos taguées (types de déchets): 0 / 13 (0%) 10042025 22216157 Nombre de photos taguées (volume) : 0 / 13 (0%) [{'photo_id': 1351092943, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/58acafc1dd9363bda2282f3a0b87a0ba.jpg', 'username': None, 'uploaded_at': 1744271167, 'text': 'image_10042025_09_45_04_10151.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351092922, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/fb459a41b0ca9b68d3583a5a6aa90646.jpg', 'username': None, 'uploaded_at': 1744271167, 'text': 'image_10042025_09_45_13_9124.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351092919, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/8a358c4885be8fcd0be78dd28dabb598.jpg', 'username': None, 'uploaded_at': 1744271167, 'text': 'image_10042025_09_45_34_10134.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1351093511, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/361f20cdd99a25621233f438919d33a9.jpg', 'username': None, 'uploaded_at': 1744271347, 'text': 'image_10042025_09_45_54_10136.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0007197856903076172 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22216157, '2025-04-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1728450,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02516961097717285 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= 1728450 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1728450, 'dashboard_run_id': 1737836, 'mtr_portfolio_id': 22215335, 'dashboard_result_id': 9983015, '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_P22215335_10-04-2025_09_47_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22215361, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22215362, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22215363, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22215364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22215365, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22215366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22215367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22215368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22215369, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22215370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22215371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22215372, 'pht': 3726}}"}, {'dashboat_entry_day': 1728450, 'dashboard_run_id': 1737836, 'mtr_portfolio_id': 22216157, 'dashboard_result_id': 9983016, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}] 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 = 22215335 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': 2738863, 'mtr_portfolio_id': 22215335, 'created_at': datetime.datetime(2025, 4, 10, 9, 47, 5), 'result': '0.05666926739538353', 'result_long': None, 'result_double': None}] Qualite : 0.05666926739538353 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22215335 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22215335_10-04-2025_09_47_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22215335 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_P22215335_10-04-2025_09_47_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22215361, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22215362, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22215363, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22215364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22215365, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22215366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22215367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22215368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22215369, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22215370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22215371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22215372, 'pht': 3726}}" where mtr_portfolio_id = 22215335 and dashboard_run_id = 1737836 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`=22215335 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9983015, 0.05666926739538353, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22215335_10-04-2025_09_47_06.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22215361, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22215362, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22215363, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22215364, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22215365, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22215366, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22215367, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22215368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22215369, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22215370, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22215371, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22215372, '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 = 22216157 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': 2738917, 'mtr_portfolio_id': 22216157, 'created_at': datetime.datetime(2025, 4, 10, 9, 53), 'result': '0.04546089253520328', 'result_long': None, 'result_double': None}] Qualite : 0.04546089253520328 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22216157 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22216157_10-04-2025_09_53_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22216157 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_P22216157_10-04-2025_09_53_00.pdf'}" where mtr_portfolio_id = 22216157 and dashboard_run_id = 1737836 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`=22216157 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9983016, 0.04546089253520328, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22216157_10-04-2025_09_53_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22216160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22216161, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22216162, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22216163, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22216164, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22216165, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22216166, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22216167, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22216168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22216169, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22216170, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22216171, '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 (22215335,22216157) result : ((1351089878,), (1351089930,), (1351090095,), (1351090120,), (1351090149,), (1351090172,), (1351090179,), (1351090184,), (1351090304,), (1351090308,), (1351090353,), (1351090356,), (1351090358,), (1351090360,), (1351090438,), (1351090446,), (1351090449,), (1351090458,), (1351090492,), (1351090502,), (1351090550,), (1351090556,), (1351090558,), (1351090559,), (1351090564,), (1351090570,), (1351090624,), (1351090631,), (1351090632,), (1351090635,), (1351090641,), (1351090938,), (1351090944,), (1351090946,), (1351090949,), (1351091306,), (1351091319,), (1351091335,), (1351091816,), (1351091824,), (1351091840,), (1351091847,), (1351092016,), (1351092037,), (1351092060,), (1351092097,), (1351092102,), (1351092111,), (1351092347,), (1351092377,), (1351092753,), (1351092830,), (1351092855,), (1351092858,), (1351092861,), (1351092976,), (1351092919,), (1351092922,), (1351092943,), (1351093498,), (1351093511,), (1351093835,), (1351093903,), (1351093912,), (1351094002,), (1351094036,), (1351094135,), (1351094139,), (1351094141,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10042025': {'nb_upload': 13, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22216157]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1351094141, 1351094139, 1351094135, 1351094036, 1351094002, 1351093912, 1351093903, 1351093835, 1351093511, 1351093498, 1351092943, 1351092922, 1351092919] map_info['map_portfolio_photo'] : {22216157: [1351094141, 1351094139, 1351094135, 1351094036, 1351094002, 1351093912, 1351093903, 1351093835, 1351093511, 1351093498, 1351092943, 1351092922, 1351092919]} final : True mtd_id 4302 list_pids : [1351094141, 1351094139, 1351094135, 1351094036, 1351094002, 1351093912, 1351093903, 1351093835, 1351093511, 1351093498, 1351092943, 1351092922, 1351092919] Looping around the photos to save general results len do output : 1 /22216157Didn'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, '2738917') ('4302', '22216157', '1351094141', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351094139', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351094135', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351094036', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351094002', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351093912', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351093903', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351093835', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351093511', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351093498', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351092943', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351092922', None, None, None, None, None, '2738917') ('4302', None, None, None, None, None, None, None, '2738917') ('4302', '22216157', '1351092919', None, None, None, None, None, '2738917') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '22216157', 'None', None, None, None, None, '2738917'), ('4302', '22216157', '1351094141', None, None, None, None, None, '2738917'), ('4302', '22216157', '1351094139', None, None, None, None, None, '2738917'), ('4302', '22216157', '1351094135', None, None, None, None, None, '2738917'), ('4302', '22216157', '1351094036', None, None, None, None, None, '2738917'), ('4302', '22216157', '1351094002', None, None, None, None, None, '2738917'), ('4302', '22216157', '1351093912', None, None, None, None, None, '2738917'), ('4302', '22216157', '1351093903', None, None, None, None, None, '2738917'), ('4302', '22216157', '1351093835', None, None, None, None, None, '2738917'), ('4302', '22216157', '1351093511', None, None, None, None, None, '2738917'), ('4302', '22216157', '1351093498', None, None, None, None, None, '2738917'), ('4302', '22216157', '1351092943', None, None, None, None, None, '2738917'), ('4302', '22216157', '1351092922', None, None, None, None, None, '2738917'), ('4302', '22216157', '1351092919', None, None, None, None, None, '2738917')] time used for this insertion : 0.03770303726196289 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3269808292388916 time spend to save output : 0.03798961639404297 total time spend for step 5 : 0.36497044563293457 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 (2738917) 2.13user 2.34system 0:08.28elapsed 54%CPU (0avgtext+0avgdata 160916maxresident)k 912inputs+8416outputs (14major+64337minor)pagefaults 0swaps