save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5165205001831055 time spend to save output : 0.014216423034667969 total time spend for step 1 : 1.5307369232177734 step2:final Fri Apr 4 05:21: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 ! 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 (22053544) 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 22053544 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349973897,1349973871,1349973847,1349973813,1349973785,1349974152,1349974128,1349974097,1349974073,1349974340,1349974323,1349974305,1349974295,1349974282,1349974541,1349974524,1349974522,1349974511); 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([22053544]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349974541: ('0.03046781228550075',), 1349974524: ('0.03046781228550075',), 1349974522: ('0.03046781228550075',), 1349974511: ('0.03046781228550075',), 1349974340: ('0.03046781228550075',), 1349974323: ('0.03046781228550075',), 1349974305: ('0.03046781228550075',), 1349974295: ('0.03046781228550075',), 1349974282: ('0.03046781228550075',)} new output for save of step final : {1349974541: ('0.03046781228550075',), 1349974524: ('0.03046781228550075',), 1349974522: ('0.03046781228550075',), 1349974511: ('0.03046781228550075',), 1349974340: ('0.03046781228550075',), 1349974323: ('0.03046781228550075',), 1349974305: ('0.03046781228550075',), 1349974295: ('0.03046781228550075',), 1349974282: ('0.03046781228550075',)} [1349974541, 1349974524, 1349974522, 1349974511, 1349974340, 1349974323, 1349974305, 1349974295, 1349974282] map_info['map_portfolio_photo'] : {22053544: [1349974541, 1349974524, 1349974522, 1349974511, 1349974340, 1349974323, 1349974305, 1349974295, 1349974282, 1349974152, 1349974128, 1349974097, 1349974073, 1349973897, 1349973871, 1349973847, 1349973813, 1349973785]} final : False mtd_id 4302 list_pids : [1349974541, 1349974524, 1349974522, 1349974511, 1349974340, 1349974323, 1349974305, 1349974295, 1349974282] Looping around the photos to save general results len do output : 9 /1349974541.Didn't retrieve data . /1349974524.Didn't retrieve data . /1349974522.Didn't retrieve data . /1349974511.Didn't retrieve data . /1349974340.Didn't retrieve data . /1349974323.Didn't retrieve data . /1349974305.Didn't retrieve data . /1349974295.Didn't retrieve data . /1349974282.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, '2723134') ('4302', '22053544', '1349974541', None, None, None, None, None, '2723134') ('4302', None, None, None, None, None, None, None, '2723134') ('4302', '22053544', '1349974524', None, None, None, None, None, '2723134') ('4302', None, None, None, None, None, None, None, '2723134') ('4302', '22053544', '1349974522', None, None, None, None, None, '2723134') ('4302', None, None, None, None, None, None, None, '2723134') ('4302', '22053544', '1349974511', None, None, None, None, None, '2723134') ('4302', None, None, None, None, None, None, None, '2723134') ('4302', '22053544', '1349974340', None, None, None, None, None, '2723134') ('4302', None, None, None, None, None, None, None, '2723134') ('4302', '22053544', '1349974323', None, None, None, None, None, '2723134') ('4302', None, None, None, None, None, None, None, '2723134') ('4302', '22053544', '1349974305', None, None, None, None, None, '2723134') ('4302', None, None, None, None, None, None, None, '2723134') ('4302', '22053544', '1349974295', None, None, None, None, None, '2723134') ('4302', None, None, None, None, None, None, None, '2723134') ('4302', '22053544', '1349974282', None, None, None, None, None, '2723134') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '22053544', '1349974541', '0.03046781228550075', None, None, None, None, '2723134'), ('4302', '22053544', '1349974524', '0.03046781228550075', None, None, None, None, '2723134'), ('4302', '22053544', '1349974522', '0.03046781228550075', None, None, None, None, '2723134'), ('4302', '22053544', '1349974511', '0.03046781228550075', None, None, None, None, '2723134'), ('4302', '22053544', '1349974340', '0.03046781228550075', None, None, None, None, '2723134'), ('4302', '22053544', '1349974323', '0.03046781228550075', None, None, None, None, '2723134'), ('4302', '22053544', '1349974305', '0.03046781228550075', None, None, None, None, '2723134'), ('4302', '22053544', '1349974295', '0.03046781228550075', None, None, None, None, '2723134'), ('4302', '22053544', '1349974282', '0.03046781228550075', None, None, None, None, '2723134')] time used for this insertion : 0.016391277313232422 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.16244745254516602 time spend to save output : 0.017152786254882812 total time spend for step 2 : 0.17960023880004883 step3:velours_tree Fri Apr 4 05:21: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 : {22053544: [{'cartonnette': 22053578, 'metal': 22053579, 'papier': 22053580, 'mal_croppe': 22053581, 'autre_refus': 22053582, 'flou': 22053583, 'kraft': 22053584, 'plastique': 22053585, 'Carton_gris': 22053586, 'Teint_Dans_La_Masse': 22053587, 'environnement': 22053588, 'Carton_brun': 22053589}]} input_args_next_step : {22053544: ()} output_args : {22053544: [{'cartonnette': 22053578, 'metal': 22053579, 'papier': 22053580, 'mal_croppe': 22053581, 'autre_refus': 22053582, 'flou': 22053583, 'kraft': 22053584, 'plastique': 22053585, 'Carton_gris': 22053586, 'Teint_Dans_La_Masse': 22053587, 'environnement': 22053588, 'Carton_brun': 22053589}]} args : 22053544 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 : ({'cartonnette': 22053578, 'metal': 22053579, 'papier': 22053580, 'mal_croppe': 22053581, 'autre_refus': 22053582, 'flou': 22053583, 'kraft': 22053584, 'plastique': 22053585, 'Carton_gris': 22053586, 'Teint_Dans_La_Masse': 22053587, 'environnement': 22053588, 'Carton_brun': 22053589},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22053544) 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([22053544]) 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.6519820690155029 time spend to save output : 8.96453857421875e-05 total time spend for step 3 : 0.6520717144012451 step4:send_mail_cod Fri Apr 4 05:21:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1349974541: ('0.03046781228550075',), 1349974524: ('0.03046781228550075',), 1349974522: ('0.03046781228550075',), 1349974511: ('0.03046781228550075',), 1349974340: ('0.03046781228550075',), 1349974323: ('0.03046781228550075',), 1349974305: ('0.03046781228550075',), 1349974295: ('0.03046781228550075',), 1349974282: ('0.03046781228550075',)} input_args_next_step : {1349974541: ()} output_args : {1349974541: ('0.03046781228550075',), 1349974524: ('0.03046781228550075',), 1349974522: ('0.03046781228550075',), 1349974511: ('0.03046781228550075',), 1349974340: ('0.03046781228550075',), 1349974323: ('0.03046781228550075',), 1349974305: ('0.03046781228550075',), 1349974295: ('0.03046781228550075',), 1349974282: ('0.03046781228550075',)} args : 1349974541 depend.output_id : 0 input_args_next_step : {1349974541: ('0.03046781228550075',), 1349974524: ()} output_args : {1349974541: ('0.03046781228550075',), 1349974524: ('0.03046781228550075',), 1349974522: ('0.03046781228550075',), 1349974511: ('0.03046781228550075',), 1349974340: ('0.03046781228550075',), 1349974323: ('0.03046781228550075',), 1349974305: ('0.03046781228550075',), 1349974295: ('0.03046781228550075',), 1349974282: ('0.03046781228550075',)} args : 1349974524 depend.output_id : 0 input_args_next_step : {1349974541: ('0.03046781228550075',), 1349974524: ('0.03046781228550075',), 1349974522: ()} output_args : {1349974541: ('0.03046781228550075',), 1349974524: ('0.03046781228550075',), 1349974522: ('0.03046781228550075',), 1349974511: ('0.03046781228550075',), 1349974340: ('0.03046781228550075',), 1349974323: ('0.03046781228550075',), 1349974305: ('0.03046781228550075',), 1349974295: ('0.03046781228550075',), 1349974282: ('0.03046781228550075',)} args : 1349974522 depend.output_id : 0 input_args_next_step : {1349974541: ('0.03046781228550075',), 1349974524: ('0.03046781228550075',), 1349974522: ('0.03046781228550075',), 1349974511: ()} output_args : {1349974541: ('0.03046781228550075',), 1349974524: ('0.03046781228550075',), 1349974522: ('0.03046781228550075',), 1349974511: ('0.03046781228550075',), 1349974340: ('0.03046781228550075',), 1349974323: ('0.03046781228550075',), 1349974305: ('0.03046781228550075',), 1349974295: ('0.03046781228550075',), 1349974282: ('0.03046781228550075',)} args : 1349974511 depend.output_id : 0 input_args_next_step : {1349974541: ('0.03046781228550075',), 1349974524: ('0.03046781228550075',), 1349974522: ('0.03046781228550075',), 1349974511: ('0.03046781228550075',), 1349974340: ()} output_args : {1349974541: ('0.03046781228550075',), 1349974524: ('0.03046781228550075',), 1349974522: ('0.03046781228550075',), 1349974511: ('0.03046781228550075',), 1349974340: ('0.03046781228550075',), 1349974323: ('0.03046781228550075',), 1349974305: ('0.03046781228550075',), 1349974295: ('0.03046781228550075',), 1349974282: ('0.03046781228550075',)} args : 1349974340 depend.output_id : 0 input_args_next_step : {1349974541: ('0.03046781228550075',), 1349974524: ('0.03046781228550075',), 1349974522: ('0.03046781228550075',), 1349974511: ('0.03046781228550075',), 1349974340: ('0.03046781228550075',), 1349974323: ()} output_args : {1349974541: ('0.03046781228550075',), 1349974524: ('0.03046781228550075',), 1349974522: ('0.03046781228550075',), 1349974511: ('0.03046781228550075',), 1349974340: ('0.03046781228550075',), 1349974323: ('0.03046781228550075',), 1349974305: ('0.03046781228550075',), 1349974295: ('0.03046781228550075',), 1349974282: ('0.03046781228550075',)} args : 1349974323 depend.output_id : 0 input_args_next_step : {1349974541: ('0.03046781228550075',), 1349974524: ('0.03046781228550075',), 1349974522: ('0.03046781228550075',), 1349974511: ('0.03046781228550075',), 1349974340: ('0.03046781228550075',), 1349974323: ('0.03046781228550075',), 1349974305: ()} output_args : {1349974541: ('0.03046781228550075',), 1349974524: ('0.03046781228550075',), 1349974522: ('0.03046781228550075',), 1349974511: ('0.03046781228550075',), 1349974340: ('0.03046781228550075',), 1349974323: ('0.03046781228550075',), 1349974305: ('0.03046781228550075',), 1349974295: ('0.03046781228550075',), 1349974282: ('0.03046781228550075',)} args : 1349974305 depend.output_id : 0 input_args_next_step : {1349974541: ('0.03046781228550075',), 1349974524: ('0.03046781228550075',), 1349974522: ('0.03046781228550075',), 1349974511: ('0.03046781228550075',), 1349974340: ('0.03046781228550075',), 1349974323: ('0.03046781228550075',), 1349974305: ('0.03046781228550075',), 1349974295: ()} output_args : {1349974541: ('0.03046781228550075',), 1349974524: ('0.03046781228550075',), 1349974522: ('0.03046781228550075',), 1349974511: ('0.03046781228550075',), 1349974340: ('0.03046781228550075',), 1349974323: ('0.03046781228550075',), 1349974305: ('0.03046781228550075',), 1349974295: ('0.03046781228550075',), 1349974282: ('0.03046781228550075',)} args : 1349974295 depend.output_id : 0 input_args_next_step : {1349974541: ('0.03046781228550075',), 1349974524: ('0.03046781228550075',), 1349974522: ('0.03046781228550075',), 1349974511: ('0.03046781228550075',), 1349974340: ('0.03046781228550075',), 1349974323: ('0.03046781228550075',), 1349974305: ('0.03046781228550075',), 1349974295: ('0.03046781228550075',), 1349974282: ()} output_args : {1349974541: ('0.03046781228550075',), 1349974524: ('0.03046781228550075',), 1349974522: ('0.03046781228550075',), 1349974511: ('0.03046781228550075',), 1349974340: ('0.03046781228550075',), 1349974323: ('0.03046781228550075',), 1349974305: ('0.03046781228550075',), 1349974295: ('0.03046781228550075',), 1349974282: ('0.03046781228550075',)} args : 1349974282 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 : {22053544: [{'cartonnette': 22053578, 'metal': 22053579, 'papier': 22053580, 'mal_croppe': 22053581, 'autre_refus': 22053582, 'flou': 22053583, 'kraft': 22053584, 'plastique': 22053585, 'Carton_gris': 22053586, 'Teint_Dans_La_Masse': 22053587, 'environnement': 22053588, 'Carton_brun': 22053589}]} input_args_next_step : {1349974541: ('0.03046781228550075',), 1349974524: ('0.03046781228550075',), 1349974522: ('0.03046781228550075',), 1349974511: ('0.03046781228550075',), 1349974340: ('0.03046781228550075',), 1349974323: ('0.03046781228550075',), 1349974305: ('0.03046781228550075',), 1349974295: ('0.03046781228550075',), 1349974282: ('0.03046781228550075',), 22053544: ()} output_args : {22053544: [{'cartonnette': 22053578, 'metal': 22053579, 'papier': 22053580, 'mal_croppe': 22053581, 'autre_refus': 22053582, 'flou': 22053583, 'kraft': 22053584, 'plastique': 22053585, 'Carton_gris': 22053586, 'Teint_Dans_La_Masse': 22053587, 'environnement': 22053588, 'Carton_brun': 22053589}]} args : 22053544 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 :10, first value : ('0.03046781228550075',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22053544) 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 (1349974541,1349974524,1349974522,1349974511,1349974340,1349974323,1349974305,1349974295,1349974282) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349974282 begin to download photo : 1349974305 begin to download photo : 1349974340 begin to download photo : 1349974522 begin to download photo : 1349974541 download finish for photo 1349974282 begin to download photo : 1349974295 download finish for photo 1349974305 begin to download photo : 1349974323 download finish for photo 1349974522 begin to download photo : 1349974524 download finish for photo 1349974340 begin to download photo : 1349974511 download finish for photo 1349974541 download finish for photo 1349974524 download finish for photo 1349974295 download finish for photo 1349974323 download finish for photo 1349974511 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette220535781743736861/ imagette220535791743736861/ imagette220535811743736861/ imagette220535821743736861/ imagette220535831743736861/ imagette220535841743736861/ imagette220535851743736861/ imagette220535861743736861/ imagette220535871743736861/ imagette220535891743736861/ length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P22053544_04-04-2025_05_21_01.pdf 22053578 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=22053578 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220535781743736861 22053579 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=22053579 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220535791743736861 22053581 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=22053581 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220535811743736861 22053582 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=22053582 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220535821743736861 22053583 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=22053583 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220535831743736861 22053584 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=22053584 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220535841743736861 22053585 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=22053585 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220535851743736861 22053586 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=22053586 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220535861743736861 22053587 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=22053587 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220535871743736861 22053589 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=22053589 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220535891743736861 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22053544 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22053590,22053591,22053592,22053593,22053594,22053595,22053596,22053597,22053598,22053599,22053600,22053601?tags=cartonnette,metal,papier,mal_croppe,autre_refus,flou,kraft,plastique,Carton_gris,Teint_Dans_La_Masse,environnement,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1349974541] : ('0.03046781228550075',) no score found for photo 1349974541 We are sending mail with results at report@fotonower.com args[1349974524] : ('0.03046781228550075',) no score found for photo 1349974524 We are sending mail with results at report@fotonower.com args[1349974522] : ('0.03046781228550075',) no score found for photo 1349974522 We are sending mail with results at report@fotonower.com args[1349974511] : ('0.03046781228550075',) no score found for photo 1349974511 We are sending mail with results at report@fotonower.com args[1349974340] : ('0.03046781228550075',) no score found for photo 1349974340 We are sending mail with results at report@fotonower.com args[1349974323] : ('0.03046781228550075',) no score found for photo 1349974323 We are sending mail with results at report@fotonower.com args[1349974305] : ('0.03046781228550075',) no score found for photo 1349974305 We are sending mail with results at report@fotonower.com args[1349974295] : ('0.03046781228550075',) no score found for photo 1349974295 We are sending mail with results at report@fotonower.com args[1349974282] : ('0.03046781228550075',) no score found for photo 1349974282 We are sending mail with results at report@fotonower.com refus_total : 0.03046781228550075 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=22053544 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_P22053544_04-04-2025_05_21_01.pdf results_Auto_P22053544_04-04-2025_05_21_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22053544_04-04-2025_05_21_01.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','22053544','results_Auto_P22053544_04-04-2025_05_21_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22053544_04-04-2025_05_21_01.pdf','pdf','','0.09','0.03046781228550075') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22053544]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349974541, 1349974524, 1349974522, 1349974511, 1349974340, 1349974323, 1349974305, 1349974295, 1349974282] map_info['map_portfolio_photo'] : {22053544: [1349974541, 1349974524, 1349974522, 1349974511, 1349974340, 1349974323, 1349974305, 1349974295, 1349974282, 1349974152, 1349974128, 1349974097, 1349974073, 1349973897, 1349973871, 1349973847, 1349973813, 1349973785]} final : False mtd_id 4302 list_pids : [1349974541, 1349974524, 1349974522, 1349974511, 1349974340, 1349974323, 1349974305, 1349974295, 1349974282] 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, '2723134') ('4302', '22053544', '1349974541', None, None, None, None, None, '2723134') ('4302', None, None, None, None, None, None, None, '2723134') ('4302', '22053544', '1349974524', None, None, None, None, None, '2723134') ('4302', None, None, None, None, None, None, None, '2723134') ('4302', '22053544', '1349974522', None, None, None, None, None, '2723134') ('4302', None, None, None, None, None, None, None, '2723134') ('4302', '22053544', '1349974511', None, None, None, None, None, '2723134') ('4302', None, None, None, None, None, None, None, '2723134') ('4302', '22053544', '1349974340', None, None, None, None, None, '2723134') ('4302', None, None, None, None, None, None, None, '2723134') ('4302', '22053544', '1349974323', None, None, None, None, None, '2723134') ('4302', None, None, None, None, None, None, None, '2723134') ('4302', '22053544', '1349974305', None, None, None, None, None, '2723134') ('4302', None, None, None, None, None, None, None, '2723134') ('4302', '22053544', '1349974295', None, None, None, None, None, '2723134') ('4302', None, None, None, None, None, None, None, '2723134') ('4302', '22053544', '1349974282', None, None, None, None, None, '2723134') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '22053544', '1349974541', None, None, None, None, None, '2723134'), ('4302', '22053544', '1349974524', None, None, None, None, None, '2723134'), ('4302', '22053544', '1349974522', None, None, None, None, None, '2723134'), ('4302', '22053544', '1349974511', None, None, None, None, None, '2723134'), ('4302', '22053544', '1349974340', None, None, None, None, None, '2723134'), ('4302', '22053544', '1349974323', None, None, None, None, None, '2723134'), ('4302', '22053544', '1349974305', None, None, None, None, None, '2723134'), ('4302', '22053544', '1349974295', None, None, None, None, None, '2723134'), ('4302', '22053544', '1349974282', None, None, None, None, None, '2723134')] time used for this insertion : 0.017569541931152344 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.589547872543335 time spend to save output : 0.017910003662109375 total time spend for step 4 : 1.6074578762054443 step5:split_time_score Fri Apr 4 05:21: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 : ['22053544'] 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 : [('22053544',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22053544) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349974541: {'path': 'temp/1743736861_2637548_1349974541_708b4536c1448154c0e731d56ada0412.jpg', 'extension': 'jpg'}, 1349974522: {'path': 'temp/1743736861_2637548_1349974522_d2db9ea3a5e31bb7424ec7e81b701057.jpg', 'extension': 'jpg'}, 1349974524: {'path': 'temp/1743736861_2637548_1349974524_82baee7c63a18f9fdebdff3b2763c805.jpg', 'extension': 'jpg'}, 1349974282: {'path': 'temp/1743736861_2637548_1349974282_09a2b7ff7beace26b35375c672e9dc83.jpg', 'extension': 'jpg'}, 1349974295: {'path': 'temp/1743736861_2637548_1349974295_7365f40c1defb30cf520fd36310e43e7.jpg', 'extension': 'jpg'}, 1349974305: {'path': 'temp/1743736861_2637548_1349974305_cfb95c536eb8b791bcf309127fcd29b8.jpg', 'extension': 'jpg'}, 1349974323: {'path': 'temp/1743736861_2637548_1349974323_7f1b377799d613c7212d7f9bb930030c.jpg', 'extension': 'jpg'}, 1349974340: {'path': 'temp/1743736861_2637548_1349974340_07090ff6f4278a67184ba04187c080d2.jpg', 'extension': 'jpg'}, 1349974511: {'path': 'temp/1743736861_2637548_1349974511_624928f4aec9f0d0fe7de14ee28b5cb7.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 = 22053544; (('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 = 22053544 group by h (('05', 18),) 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=22053544 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 (22053544) 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 (22053544) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04042025 22053544 Nombre de photos uploadées : 18 / 23040 (0%) 04042025 22053544 Nombre de photos taguées (types de déchets): 0 / 18 (0%) 04042025 22053544 Nombre de photos taguées (volume) : 0 / 18 (0%) [{'photo_id': 1349973897, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/e628b464b0a6e01214528d8fc1f2fe20.jpg', 'username': None, 'uploaded_at': 1743736568, 'text': 'image_04042025_05_15_04_10146.jpg'}, {'photo_id': 1349973871, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/494713151575f6ec64843ad99c8fb981.jpg', 'username': None, 'uploaded_at': 1743736568, 'text': 'image_04042025_05_15_14_9125.jpg'}, {'photo_id': 1349973847, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/b9dc6fb2e17d5175f577493301cf7ff8.jpg', 'username': None, 'uploaded_at': 1743736568, 'text': 'image_04042025_05_15_24_10140.jpg'}, {'photo_id': 1349973813, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/42a21de0c0dd407a7d827a945e8e9576.jpg', 'username': None, 'uploaded_at': 1743736568, 'text': 'image_04042025_05_15_34_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 9.775161743164062e-06 ?????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0011279582977294922 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22053544, '2025-04-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1715710,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.028969287872314453 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= 1715710 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1715710, 'dashboard_run_id': 1723838, 'mtr_portfolio_id': 22053273, 'dashboard_result_id': 9872172, '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_P22053273_04-04-2025_05_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22053281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22053282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22053283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22053284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22053285, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22053286, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22053287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22053288, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22053289, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22053290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22053291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22053292, 'pht': 3726}}"}, {'dashboat_entry_day': 1715710, 'dashboard_run_id': 1723838, 'mtr_portfolio_id': 22053544, 'dashboard_result_id': 9872173, '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_P22053544_04-04-2025_05_19_35.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22053578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22053579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22053580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22053581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22053582, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22053583, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22053584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22053585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22053586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22053587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22053588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22053589, '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 = 22053273 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': 2723104, 'mtr_portfolio_id': 22053273, 'created_at': datetime.datetime(2025, 4, 4, 5, 18, 58), 'result': '0.05221135477062764', 'result_long': None, 'result_double': None}] Qualite : 0.05221135477062764 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22053273 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22053273_04-04-2025_05_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22053273 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_P22053273_04-04-2025_05_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22053281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22053282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22053283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22053284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22053285, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22053286, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22053287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22053288, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22053289, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22053290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22053291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22053292, 'pht': 3726}}" where mtr_portfolio_id = 22053273 and dashboard_run_id = 1723838 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`=22053273 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9872172, 0.05221135477062764, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22053273_04-04-2025_05_18_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22053281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22053282, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22053283, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22053284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22053285, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22053286, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22053287, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22053288, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22053289, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22053290, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22053291, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22053292, '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 = 22053544 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': 2723134, 'mtr_portfolio_id': 22053544, 'created_at': datetime.datetime(2025, 4, 4, 5, 21), 'result': '0.03046781228550075', 'result_long': None, 'result_double': None}] Qualite : 0.03046781228550075 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22053544 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22053544_04-04-2025_05_21_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22053544 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_P22053544_04-04-2025_05_21_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22053578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22053579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22053580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22053581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22053582, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22053583, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22053584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22053585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22053586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22053587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22053588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22053589, 'pht': 3726}}" where mtr_portfolio_id = 22053544 and dashboard_run_id = 1723838 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`=22053544 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9872173, 0.03046781228550075, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22053544_04-04-2025_05_21_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22053578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22053579, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22053580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22053581, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22053582, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22053583, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22053584, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22053585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22053586, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22053587, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22053588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22053589, '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 (22053273,22053544) result : ((1349972011,), (1349972563,), (1349972566,), (1349972599,), (1349972632,), (1349972636,), (1349972692,), (1349972693,), (1349972695,), (1349972795,), (1349972818,), (1349972843,), (1349972871,), (1349972897,), (1349972923,), (1349973173,), (1349973204,), (1349973216,), (1349973238,), (1349973264,), (1349973412,), (1349973417,), (1349973441,), (1349973454,), (1349973489,), (1349973511,), (1349973541,), (1349973544,), (1349973554,), (1349973560,), (1349973586,), (1349973589,), (1349973591,), (1349973592,), (1349973595,), (1349973925,), (1349973785,), (1349973813,), (1349973847,), (1349973871,), (1349973897,), (1349974073,), (1349974097,), (1349974128,), (1349974152,), (1349974282,), (1349974295,), (1349974305,), (1349974323,), (1349974340,), (1349974511,), (1349974522,), (1349974524,), (1349974541,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04042025': {'nb_upload': 18, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22053544]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349974541, 1349974524, 1349974522, 1349974511, 1349974340, 1349974323, 1349974305, 1349974295, 1349974282] map_info['map_portfolio_photo'] : {22053544: [1349974541, 1349974524, 1349974522, 1349974511, 1349974340, 1349974323, 1349974305, 1349974295, 1349974282, 1349974152, 1349974128, 1349974097, 1349974073, 1349973897, 1349973871, 1349973847, 1349973813, 1349973785]} final : True mtd_id 4302 list_pids : [1349974541, 1349974524, 1349974522, 1349974511, 1349974340, 1349974323, 1349974305, 1349974295, 1349974282] Looping around the photos to save general results len do output : 1 /22053544Didn'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, '2723134') ('4302', '22053544', '1349974541', None, None, None, None, None, '2723134') ('4302', None, None, None, None, None, None, None, '2723134') ('4302', '22053544', '1349974524', None, None, None, None, None, '2723134') ('4302', None, None, None, None, None, None, None, '2723134') ('4302', '22053544', '1349974522', None, None, None, None, None, '2723134') ('4302', None, None, None, None, None, None, None, '2723134') ('4302', '22053544', '1349974511', None, None, None, None, None, '2723134') ('4302', None, None, None, None, None, None, None, '2723134') ('4302', '22053544', '1349974340', None, None, None, None, None, '2723134') ('4302', None, None, None, None, None, None, None, '2723134') ('4302', '22053544', '1349974323', None, None, None, None, None, '2723134') ('4302', None, None, None, None, None, None, None, '2723134') ('4302', '22053544', '1349974305', None, None, None, None, None, '2723134') ('4302', None, None, None, None, None, None, None, '2723134') ('4302', '22053544', '1349974295', None, None, None, None, None, '2723134') ('4302', None, None, None, None, None, None, None, '2723134') ('4302', '22053544', '1349974282', None, None, None, None, None, '2723134') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22053544', 'None', None, None, None, None, '2723134'), ('4302', '22053544', '1349974541', None, None, None, None, None, '2723134'), ('4302', '22053544', '1349974524', None, None, None, None, None, '2723134'), ('4302', '22053544', '1349974522', None, None, None, None, None, '2723134'), ('4302', '22053544', '1349974511', None, None, None, None, None, '2723134'), ('4302', '22053544', '1349974340', None, None, None, None, None, '2723134'), ('4302', '22053544', '1349974323', None, None, None, None, None, '2723134'), ('4302', '22053544', '1349974305', None, None, None, None, None, '2723134'), ('4302', '22053544', '1349974295', None, None, None, None, None, '2723134'), ('4302', '22053544', '1349974282', None, None, None, None, None, '2723134')] time used for this insertion : 0.01981377601623535 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.28357768058776855 time spend to save output : 0.020055055618286133 total time spend for step 5 : 0.3036327362060547 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 (2723134) 2.24user 2.32system 0:08.18elapsed 55%CPU (0avgtext+0avgdata 158920maxresident)k 53680inputs+5112outputs (173major+76254minor)pagefaults 0swaps