save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5002572536468506 time spend to save output : 0.013918161392211914 total time spend for step 1 : 1.5141754150390625 step2:final Tue Apr 8 08:22: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 (22137237) 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 22137237 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350554973,1350555695,1350555692,1350555689,1350555676,1350555666,1350555836,1350555787,1350555777,1350555774,1350556119,1350556096,1350556072,1350556064,1350556062,1350556222,1350556218,1350556216); 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([22137237]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350556222: ('0.027131543381731172',), 1350556218: ('0.027131543381731172',), 1350556216: ('0.027131543381731172',), 1350556119: ('0.027131543381731172',), 1350556096: ('0.027131543381731172',), 1350556072: ('0.027131543381731172',), 1350556064: ('0.027131543381731172',), 1350556062: ('0.027131543381731172',)} new output for save of step final : {1350556222: ('0.027131543381731172',), 1350556218: ('0.027131543381731172',), 1350556216: ('0.027131543381731172',), 1350556119: ('0.027131543381731172',), 1350556096: ('0.027131543381731172',), 1350556072: ('0.027131543381731172',), 1350556064: ('0.027131543381731172',), 1350556062: ('0.027131543381731172',)} [1350556222, 1350556218, 1350556216, 1350556119, 1350556096, 1350556072, 1350556064, 1350556062] map_info['map_portfolio_photo'] : {22137237: [1350556222, 1350556218, 1350556216, 1350556119, 1350556096, 1350556072, 1350556064, 1350556062, 1350555836, 1350555787, 1350555777, 1350555774, 1350555695, 1350555692, 1350555689, 1350555676, 1350555666, 1350554973]} final : False mtd_id 4302 list_pids : [1350556222, 1350556218, 1350556216, 1350556119, 1350556096, 1350556072, 1350556064, 1350556062] Looping around the photos to save general results len do output : 8 /1350556222.Didn't retrieve data . /1350556218.Didn't retrieve data . /1350556216.Didn't retrieve data . /1350556119.Didn't retrieve data . /1350556096.Didn't retrieve data . /1350556072.Didn't retrieve data . /1350556064.Didn't retrieve data . /1350556062.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, '2731792') ('4302', '22137237', '1350556222', None, None, None, None, None, '2731792') ('4302', None, None, None, None, None, None, None, '2731792') ('4302', '22137237', '1350556218', None, None, None, None, None, '2731792') ('4302', None, None, None, None, None, None, None, '2731792') ('4302', '22137237', '1350556216', None, None, None, None, None, '2731792') ('4302', None, None, None, None, None, None, None, '2731792') ('4302', '22137237', '1350556119', None, None, None, None, None, '2731792') ('4302', None, None, None, None, None, None, None, '2731792') ('4302', '22137237', '1350556096', None, None, None, None, None, '2731792') ('4302', None, None, None, None, None, None, None, '2731792') ('4302', '22137237', '1350556072', None, None, None, None, None, '2731792') ('4302', None, None, None, None, None, None, None, '2731792') ('4302', '22137237', '1350556064', None, None, None, None, None, '2731792') ('4302', None, None, None, None, None, None, None, '2731792') ('4302', '22137237', '1350556062', None, None, None, None, None, '2731792') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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', '22137237', '1350556222', '0.027131543381731172', None, None, None, None, '2731792'), ('4302', '22137237', '1350556218', '0.027131543381731172', None, None, None, None, '2731792'), ('4302', '22137237', '1350556216', '0.027131543381731172', None, None, None, None, '2731792'), ('4302', '22137237', '1350556119', '0.027131543381731172', None, None, None, None, '2731792'), ('4302', '22137237', '1350556096', '0.027131543381731172', None, None, None, None, '2731792'), ('4302', '22137237', '1350556072', '0.027131543381731172', None, None, None, None, '2731792'), ('4302', '22137237', '1350556064', '0.027131543381731172', None, None, None, None, '2731792'), ('4302', '22137237', '1350556062', '0.027131543381731172', None, None, None, None, '2731792')] time used for this insertion : 0.013332366943359375 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.448631048202515 time spend to save output : 0.0138092041015625 total time spend for step 2 : 4.462440252304077 step3:velours_tree Tue Apr 8 08:23:03 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 : {22137237: [{'kraft': 22137274, 'environnement': 22137275, 'mal_croppe': 22137276, 'plastique': 22137277, 'flou': 22137278, 'papier': 22137279, 'cartonnette': 22137280, 'Carton_gris': 22137281, 'autre_refus': 22137282, 'Teint_Dans_La_Masse': 22137283, 'metal': 22137284, 'Carton_brun': 22137285}]} input_args_next_step : {22137237: ()} output_args : {22137237: [{'kraft': 22137274, 'environnement': 22137275, 'mal_croppe': 22137276, 'plastique': 22137277, 'flou': 22137278, 'papier': 22137279, 'cartonnette': 22137280, 'Carton_gris': 22137281, 'autre_refus': 22137282, 'Teint_Dans_La_Masse': 22137283, 'metal': 22137284, 'Carton_brun': 22137285}]} args : 22137237 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 : ({'kraft': 22137274, 'environnement': 22137275, 'mal_croppe': 22137276, 'plastique': 22137277, 'flou': 22137278, 'papier': 22137279, 'cartonnette': 22137280, 'Carton_gris': 22137281, 'autre_refus': 22137282, 'Teint_Dans_La_Masse': 22137283, 'metal': 22137284, 'Carton_brun': 22137285},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22137237) 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([22137237]) 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.34557175636291504 time spend to save output : 5.125999450683594e-05 total time spend for step 3 : 0.3456230163574219 step4:send_mail_cod Tue Apr 8 08:23:03 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 : {1350556222: ('0.027131543381731172',), 1350556218: ('0.027131543381731172',), 1350556216: ('0.027131543381731172',), 1350556119: ('0.027131543381731172',), 1350556096: ('0.027131543381731172',), 1350556072: ('0.027131543381731172',), 1350556064: ('0.027131543381731172',), 1350556062: ('0.027131543381731172',)} input_args_next_step : {1350556222: ()} output_args : {1350556222: ('0.027131543381731172',), 1350556218: ('0.027131543381731172',), 1350556216: ('0.027131543381731172',), 1350556119: ('0.027131543381731172',), 1350556096: ('0.027131543381731172',), 1350556072: ('0.027131543381731172',), 1350556064: ('0.027131543381731172',), 1350556062: ('0.027131543381731172',)} args : 1350556222 depend.output_id : 0 input_args_next_step : {1350556222: ('0.027131543381731172',), 1350556218: ()} output_args : {1350556222: ('0.027131543381731172',), 1350556218: ('0.027131543381731172',), 1350556216: ('0.027131543381731172',), 1350556119: ('0.027131543381731172',), 1350556096: ('0.027131543381731172',), 1350556072: ('0.027131543381731172',), 1350556064: ('0.027131543381731172',), 1350556062: ('0.027131543381731172',)} args : 1350556218 depend.output_id : 0 input_args_next_step : {1350556222: ('0.027131543381731172',), 1350556218: ('0.027131543381731172',), 1350556216: ()} output_args : {1350556222: ('0.027131543381731172',), 1350556218: ('0.027131543381731172',), 1350556216: ('0.027131543381731172',), 1350556119: ('0.027131543381731172',), 1350556096: ('0.027131543381731172',), 1350556072: ('0.027131543381731172',), 1350556064: ('0.027131543381731172',), 1350556062: ('0.027131543381731172',)} args : 1350556216 depend.output_id : 0 input_args_next_step : {1350556222: ('0.027131543381731172',), 1350556218: ('0.027131543381731172',), 1350556216: ('0.027131543381731172',), 1350556119: ()} output_args : {1350556222: ('0.027131543381731172',), 1350556218: ('0.027131543381731172',), 1350556216: ('0.027131543381731172',), 1350556119: ('0.027131543381731172',), 1350556096: ('0.027131543381731172',), 1350556072: ('0.027131543381731172',), 1350556064: ('0.027131543381731172',), 1350556062: ('0.027131543381731172',)} args : 1350556119 depend.output_id : 0 input_args_next_step : {1350556222: ('0.027131543381731172',), 1350556218: ('0.027131543381731172',), 1350556216: ('0.027131543381731172',), 1350556119: ('0.027131543381731172',), 1350556096: ()} output_args : {1350556222: ('0.027131543381731172',), 1350556218: ('0.027131543381731172',), 1350556216: ('0.027131543381731172',), 1350556119: ('0.027131543381731172',), 1350556096: ('0.027131543381731172',), 1350556072: ('0.027131543381731172',), 1350556064: ('0.027131543381731172',), 1350556062: ('0.027131543381731172',)} args : 1350556096 depend.output_id : 0 input_args_next_step : {1350556222: ('0.027131543381731172',), 1350556218: ('0.027131543381731172',), 1350556216: ('0.027131543381731172',), 1350556119: ('0.027131543381731172',), 1350556096: ('0.027131543381731172',), 1350556072: ()} output_args : {1350556222: ('0.027131543381731172',), 1350556218: ('0.027131543381731172',), 1350556216: ('0.027131543381731172',), 1350556119: ('0.027131543381731172',), 1350556096: ('0.027131543381731172',), 1350556072: ('0.027131543381731172',), 1350556064: ('0.027131543381731172',), 1350556062: ('0.027131543381731172',)} args : 1350556072 depend.output_id : 0 input_args_next_step : {1350556222: ('0.027131543381731172',), 1350556218: ('0.027131543381731172',), 1350556216: ('0.027131543381731172',), 1350556119: ('0.027131543381731172',), 1350556096: ('0.027131543381731172',), 1350556072: ('0.027131543381731172',), 1350556064: ()} output_args : {1350556222: ('0.027131543381731172',), 1350556218: ('0.027131543381731172',), 1350556216: ('0.027131543381731172',), 1350556119: ('0.027131543381731172',), 1350556096: ('0.027131543381731172',), 1350556072: ('0.027131543381731172',), 1350556064: ('0.027131543381731172',), 1350556062: ('0.027131543381731172',)} args : 1350556064 depend.output_id : 0 input_args_next_step : {1350556222: ('0.027131543381731172',), 1350556218: ('0.027131543381731172',), 1350556216: ('0.027131543381731172',), 1350556119: ('0.027131543381731172',), 1350556096: ('0.027131543381731172',), 1350556072: ('0.027131543381731172',), 1350556064: ('0.027131543381731172',), 1350556062: ()} output_args : {1350556222: ('0.027131543381731172',), 1350556218: ('0.027131543381731172',), 1350556216: ('0.027131543381731172',), 1350556119: ('0.027131543381731172',), 1350556096: ('0.027131543381731172',), 1350556072: ('0.027131543381731172',), 1350556064: ('0.027131543381731172',), 1350556062: ('0.027131543381731172',)} args : 1350556062 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 : {22137237: [{'kraft': 22137274, 'environnement': 22137275, 'mal_croppe': 22137276, 'plastique': 22137277, 'flou': 22137278, 'papier': 22137279, 'cartonnette': 22137280, 'Carton_gris': 22137281, 'autre_refus': 22137282, 'Teint_Dans_La_Masse': 22137283, 'metal': 22137284, 'Carton_brun': 22137285}]} input_args_next_step : {1350556222: ('0.027131543381731172',), 1350556218: ('0.027131543381731172',), 1350556216: ('0.027131543381731172',), 1350556119: ('0.027131543381731172',), 1350556096: ('0.027131543381731172',), 1350556072: ('0.027131543381731172',), 1350556064: ('0.027131543381731172',), 1350556062: ('0.027131543381731172',), 22137237: ()} output_args : {22137237: [{'kraft': 22137274, 'environnement': 22137275, 'mal_croppe': 22137276, 'plastique': 22137277, 'flou': 22137278, 'papier': 22137279, 'cartonnette': 22137280, 'Carton_gris': 22137281, 'autre_refus': 22137282, 'Teint_Dans_La_Masse': 22137283, 'metal': 22137284, 'Carton_brun': 22137285}]} args : 22137237 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 :9, first value : ('0.027131543381731172',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22137237) 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 (1350556222,1350556218,1350556216,1350556119,1350556096,1350556072,1350556064,1350556062) Found this number of photos: 8 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350556062 begin to download photo : 1350556072 begin to download photo : 1350556119 begin to download photo : 1350556218 download finish for photo 1350556218 begin to download photo : 1350556222 download finish for photo 1350556072 begin to download photo : 1350556096 download finish for photo 1350556062 begin to download photo : 1350556064 download finish for photo 1350556096 download finish for photo 1350556064 download finish for photo 1350556222 download finish for photo 1350556119 begin to download photo : 1350556216 download finish for photo 1350556216 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette221372741744093386/ imagette221372761744093386/ imagette221372771744093386/ imagette221372781744093386/ length of list_filenames : 8 ; length of list_pids : 8 ; length of list_args : 8 results_Auto_P22137237_08-04-2025_08_23_06.pdf 22137274 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=22137274 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221372741744093386 22137276 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=22137276 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221372761744093386 22137277 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=22137277 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221372771744093386 22137278 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=22137278 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221372781744093386 22137280 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=22137280 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350556209: '1744093287_1699144_1350554973_2912b5e87c67920b3ba2542989eef72f_rle_crop_3750448675_0.png'} change filename to text .imagette221372801744093386/ imagette221372801744093386/1744093287_1699144_1350554973_2912b5e87c67920b3ba2542989eef72f_rle_crop_3750448675_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/e1123acb39800882e41b1fd329010835_21729327.png imagette221372801744093386 22137282 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=22137282 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350556205: '1744093287_1699144_1350554973_2912b5e87c67920b3ba2542989eef72f_rle_crop_3750448673_0.png', 1350556206: '1744093287_1699144_1350554973_2912b5e87c67920b3ba2542989eef72f_rle_crop_3750448674_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/03c9d8aa3fadfcfc77bfdb65ac47d2b8_21283221.png change filename to text .imagette221372821744093386/ imagette221372821744093386/1744093287_1699144_1350554973_2912b5e87c67920b3ba2542989eef72f_rle_crop_3750448673_0.png.png imagette221372821744093386/1744093287_1699144_1350554973_2912b5e87c67920b3ba2542989eef72f_rle_crop_3750448674_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/d4925a241ab0e636b8359e826c9ff7b2_70825043.png imagette221372821744093386 22137284 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=22137284 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350556214: '1744093292_1931713_1350555787_9f0f186781898c77cb354a4443e1c08b_rle_crop_3750448696_0.png'} change filename to text .imagette221372841744093386/ imagette221372841744093386/1744093292_1931713_1350555787_9f0f186781898c77cb354a4443e1c08b_rle_crop_3750448696_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/e097dc2b0a9d8b812405a7d2fbbf019d_76032955.png imagette221372841744093386 22137281 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=22137281 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350556207: '1744093287_1699144_1350555695_a5a11d940a68d3e6b3b6d68e819c7602_rle_crop_3750448597_0.png'} change filename to text .imagette221372811744093386/ imagette221372811744093386/1744093287_1699144_1350555695_a5a11d940a68d3e6b3b6d68e819c7602_rle_crop_3750448597_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/f69e4103a031e99fda990fad4637e610_18260475.png imagette221372811744093386 22137283 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=22137283 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350556203: '1744093287_1699144_1350555695_a5a11d940a68d3e6b3b6d68e819c7602_rle_crop_3750448606_0.png', 1350556211: '1744093292_1931713_1350555777_3e167edd384ca0f11afe25050b34d77b_rle_crop_3750448764_0.png', 1350556212: '1744093292_1931713_1350555774_feaa868a945b0df5f3916c4bb52d8bb1_rle_crop_3750448771_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/aed3c9b7732c0e0d41e672a9723a1fb8_86996888.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/43bde1dc9535c1df41d9c3bb8b3646a4_70013882.png change filename to text .imagette221372831744093386/ imagette221372831744093386/1744093287_1699144_1350555695_a5a11d940a68d3e6b3b6d68e819c7602_rle_crop_3750448606_0.png.png imagette221372831744093386/1744093292_1931713_1350555777_3e167edd384ca0f11afe25050b34d77b_rle_crop_3750448764_0.png.png imagette221372831744093386/1744093292_1931713_1350555774_feaa868a945b0df5f3916c4bb52d8bb1_rle_crop_3750448771_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/47fbaff2393df46b7108b195c589fe46_15149634.png imagette221372831744093386 22137285 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=22137285 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350556213: '1744093292_1931713_1350555777_3e167edd384ca0f11afe25050b34d77b_rle_crop_3750448760_0.png'} change filename to text .imagette221372851744093386/ imagette221372851744093386/1744093292_1931713_1350555777_3e167edd384ca0f11afe25050b34d77b_rle_crop_3750448760_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/7b56db6d6ebb33df184f759634ad69d2_763118.png imagette221372851744093386 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22137237 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22137286,22137287,22137288,22137289,22137290,22137291,22137292,22137293,22137294,22137295,22137296,22137297?tags=kraft,environnement,mal_croppe,plastique,flou,papier,cartonnette,Carton_gris,autre_refus,Teint_Dans_La_Masse,metal,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1350556222] : ('0.027131543381731172',) no score found for photo 1350556222 We are sending mail with results at report@fotonower.com args[1350556218] : ('0.027131543381731172',) no score found for photo 1350556218 We are sending mail with results at report@fotonower.com args[1350556216] : ('0.027131543381731172',) no score found for photo 1350556216 We are sending mail with results at report@fotonower.com args[1350556119] : ('0.027131543381731172',) no score found for photo 1350556119 We are sending mail with results at report@fotonower.com args[1350556096] : ('0.027131543381731172',) no score found for photo 1350556096 We are sending mail with results at report@fotonower.com args[1350556072] : ('0.027131543381731172',) no score found for photo 1350556072 We are sending mail with results at report@fotonower.com args[1350556064] : ('0.027131543381731172',) no score found for photo 1350556064 We are sending mail with results at report@fotonower.com args[1350556062] : ('0.027131543381731172',) no score found for photo 1350556062 We are sending mail with results at report@fotonower.com refus_total : 0.027131543381731172 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=22137237 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_P22137237_08-04-2025_08_23_06.pdf results_Auto_P22137237_08-04-2025_08_23_06.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22137237_08-04-2025_08_23_06.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','22137237','results_Auto_P22137237_08-04-2025_08_23_06.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22137237_08-04-2025_08_23_06.pdf','pdf','','0.1','0.027131543381731172') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22137237]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350556222, 1350556218, 1350556216, 1350556119, 1350556096, 1350556072, 1350556064, 1350556062] map_info['map_portfolio_photo'] : {22137237: [1350556222, 1350556218, 1350556216, 1350556119, 1350556096, 1350556072, 1350556064, 1350556062, 1350555836, 1350555787, 1350555777, 1350555774, 1350555695, 1350555692, 1350555689, 1350555676, 1350555666, 1350554973]} final : False mtd_id 4302 list_pids : [1350556222, 1350556218, 1350556216, 1350556119, 1350556096, 1350556072, 1350556064, 1350556062] 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, '2731792') ('4302', '22137237', '1350556222', None, None, None, None, None, '2731792') ('4302', None, None, None, None, None, None, None, '2731792') ('4302', '22137237', '1350556218', None, None, None, None, None, '2731792') ('4302', None, None, None, None, None, None, None, '2731792') ('4302', '22137237', '1350556216', None, None, None, None, None, '2731792') ('4302', None, None, None, None, None, None, None, '2731792') ('4302', '22137237', '1350556119', None, None, None, None, None, '2731792') ('4302', None, None, None, None, None, None, None, '2731792') ('4302', '22137237', '1350556096', None, None, None, None, None, '2731792') ('4302', None, None, None, None, None, None, None, '2731792') ('4302', '22137237', '1350556072', None, None, None, None, None, '2731792') ('4302', None, None, None, None, None, None, None, '2731792') ('4302', '22137237', '1350556064', None, None, None, None, None, '2731792') ('4302', None, None, None, None, None, None, None, '2731792') ('4302', '22137237', '1350556062', None, None, None, None, None, '2731792') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22137237', '1350556222', None, None, None, None, None, '2731792'), ('4302', '22137237', '1350556218', None, None, None, None, None, '2731792'), ('4302', '22137237', '1350556216', None, None, None, None, None, '2731792'), ('4302', '22137237', '1350556119', None, None, None, None, None, '2731792'), ('4302', '22137237', '1350556096', None, None, None, None, None, '2731792'), ('4302', '22137237', '1350556072', None, None, None, None, None, '2731792'), ('4302', '22137237', '1350556064', None, None, None, None, None, '2731792'), ('4302', '22137237', '1350556062', None, None, None, None, None, '2731792')] time used for this insertion : 0.013349294662475586 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.1514036655426025 time spend to save output : 0.013654708862304688 total time spend for step 4 : 4.165058374404907 step5:split_time_score Tue Apr 8 08:23:07 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 : ['22137237'] 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 : [('22137237',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22137237) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350556072: {'path': 'temp/1744093383_324760_1350556072_5c093185dc69b5fbda271801b7e14131.jpg', 'extension': 'jpg'}, 1350556096: {'path': 'temp/1744093383_324760_1350556096_04c817a50280cb711cda253d06576bb0.jpg', 'extension': 'jpg'}, 1350556062: {'path': 'temp/1744093383_324760_1350556062_76bf9f980cfdc75d588a935519b886d8.jpg', 'extension': 'jpg'}, 1350556064: {'path': 'temp/1744093383_324760_1350556064_a85242590e5191b601e894a3da4834da.jpg', 'extension': 'jpg'}, 1350556218: {'path': 'temp/1744093383_324760_1350556218_de54526b18d7ac34dbaadd2f484098bf.jpg', 'extension': 'jpg'}, 1350556222: {'path': 'temp/1744093383_324760_1350556222_d058799e5889a2ac0b361b4043c7d28f.jpg', 'extension': 'jpg'}, 1350556119: {'path': 'temp/1744093383_324760_1350556119_742a420d537ee8bc73a93418e769da5d.jpg', 'extension': 'jpg'}, 1350556216: {'path': 'temp/1744093383_324760_1350556216_7fcac244703789d688348f609897fac5.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 = 22137237; (('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 = 22137237 group by h (('08', 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=22137237 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 (22137237) 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 (22137237) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 08042025 22137237 Nombre de photos uploadées : 18 / 23040 (0%) 08042025 22137237 Nombre de photos taguées (types de déchets): 0 / 18 (0%) 08042025 22137237 Nombre de photos taguées (volume) : 0 / 18 (0%) [{'photo_id': 1350554973, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/2912b5e87c67920b3ba2542989eef72f.jpg', 'username': None, 'uploaded_at': 1744092967, 'text': 'image_08042025_08_15_04_10158.jpg'}, {'photo_id': 1350555695, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/a5a11d940a68d3e6b3b6d68e819c7602.jpg', 'username': None, 'uploaded_at': 1744093147, 'text': 'image_08042025_08_15_14_10136.jpg'}, {'photo_id': 1350555692, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/69690e65ec2d063dfa918a15d05becf6.jpg', 'username': None, 'uploaded_at': 1744093147, 'text': 'image_08042025_08_18_04_9142.jpg'}, {'photo_id': 1350555689, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/8/20e4852d44e873a823ea16d247dfc2cc.jpg', 'username': None, 'uploaded_at': 1744093147, 'text': 'image_08042025_08_18_14_10139.jpg'}] 0 [] elapsed_time : load_data_split_time_score 4.0531158447265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.049041748046875e-05 ?????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0007181167602539062 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22137237, '2025-04-08' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1722494,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02532649040222168 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= 1722494 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1722494, 'dashboard_run_id': 1731209, 'mtr_portfolio_id': 22135444, 'dashboard_result_id': 9927969, '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_P22135444_08-04-2025_07_46_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22135478, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22135479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22135480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22135481, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22135482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22135483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22135484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22135485, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22135486, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22135487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22135488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22135489, 'pht': 3726}}"}, {'dashboat_entry_day': 1722494, 'dashboard_run_id': 1731209, 'mtr_portfolio_id': 22135934, 'dashboard_result_id': 9927970, '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_P22135934_08-04-2025_08_03_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22135975, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22135976, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22135977, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22135978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22135979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22135980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22135981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22135982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22135983, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22135984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22135985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22135986, 'pht': 3726}}"}, {'dashboat_entry_day': 1722494, 'dashboard_run_id': 1731209, 'mtr_portfolio_id': 22136534, 'dashboard_result_id': 9927971, '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_P22136534_08-04-2025_08_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22136536, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22136537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22136538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22136539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22136540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22136541, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22136542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22136543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22136544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22136545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22136546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22136547, 'pht': 3726}}"}, {'dashboat_entry_day': 1722494, 'dashboard_run_id': 1731209, 'mtr_portfolio_id': 22137237, 'dashboard_result_id': 9927972, '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_P22137237_08-04-2025_08_21_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22137274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22137275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22137276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22137277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22137278, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22137279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22137280, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22137281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22137282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22137283, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22137284, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22137285, '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 = 22135444 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': 2731625, 'mtr_portfolio_id': 22135444, 'created_at': datetime.datetime(2025, 4, 8, 7, 46, 57), 'result': '0.04449535755039576', 'result_long': None, 'result_double': None}] Qualite : 0.04449535755039576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22135444 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22135444_08-04-2025_07_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22135444 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_P22135444_08-04-2025_07_46_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22135478, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22135479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22135480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22135481, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22135482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22135483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22135484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22135485, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22135486, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22135487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22135488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22135489, 'pht': 3726}}" where mtr_portfolio_id = 22135444 and dashboard_run_id = 1731209 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`=22135444 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9927969, 0.04449535755039576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22135444_08-04-2025_07_46_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22135478, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22135479, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22135480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22135481, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22135482, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22135483, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22135484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22135485, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22135486, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22135487, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22135488, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22135489, '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 = 22135934 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': 2731672, 'mtr_portfolio_id': 22135934, 'created_at': datetime.datetime(2025, 4, 8, 8, 3, 1), 'result': '0.06354120940362806', 'result_long': None, 'result_double': None}] Qualite : 0.06354120940362806 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22135934 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22135934_08-04-2025_08_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22135934 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_P22135934_08-04-2025_08_03_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22135975, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22135976, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22135977, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22135978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22135979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22135980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22135981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22135982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22135983, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22135984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22135985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22135986, 'pht': 3726}}" where mtr_portfolio_id = 22135934 and dashboard_run_id = 1731209 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`=22135934 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9927970, 0.06354120940362806, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22135934_08-04-2025_08_03_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22135975, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22135976, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22135977, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22135978, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22135979, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22135980, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22135981, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22135982, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22135983, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22135984, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22135985, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22135986, '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 = 22136534 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': 2731751, 'mtr_portfolio_id': 22136534, 'created_at': datetime.datetime(2025, 4, 8, 8, 17, 1), 'result': '0.10032748638546446', 'result_long': None, 'result_double': None}] Qualite : 0.10032748638546446 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22136534 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22136534_08-04-2025_08_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22136534 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_P22136534_08-04-2025_08_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22136536, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22136537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22136538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22136539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22136540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22136541, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22136542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22136543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22136544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22136545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22136546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22136547, 'pht': 3726}}" where mtr_portfolio_id = 22136534 and dashboard_run_id = 1731209 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`=22136534 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9927971, 0.10032748638546446, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22136534_08-04-2025_08_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22136536, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22136537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22136538, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22136539, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22136540, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22136541, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22136542, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22136543, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22136544, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22136545, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22136546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22136547, '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 = 22137237 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': 2731792, 'mtr_portfolio_id': 22137237, 'created_at': datetime.datetime(2025, 4, 8, 8, 23, 3), 'result': '0.027131543381731172', 'result_long': None, 'result_double': None}] Qualite : 0.027131543381731172 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22137237 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22137237_08-04-2025_08_23_06.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22137237 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_P22137237_08-04-2025_08_23_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22137274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22137275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22137276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22137277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22137278, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22137279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22137280, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22137281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22137282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22137283, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22137284, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22137285, 'pht': 3726}}" where mtr_portfolio_id = 22137237 and dashboard_run_id = 1731209 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`=22137237 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9927972, 0.027131543381731172, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22137237_08-04-2025_08_23_06.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22137274, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22137275, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22137276, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22137277, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22137278, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22137279, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22137280, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22137281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22137282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22137283, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22137284, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22137285, '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 (22135444,22135934,22136534,22137237) result : ((1350546562,), (1350546566,), (1350546579,), (1350546595,), (1350546679,), (1350546706,), (1350546732,), (1350546756,), (1350546888,), (1350546894,), (1350546897,), (1350546901,), (1350546950,), (1350546986,), (1350546997,), (1350547000,), (1350547002,), (1350547132,), (1350547133,), (1350547135,), (1350547137,), (1350547140,), (1350547206,), (1350547210,), (1350547214,), (1350547231,), (1350547236,), (1350547268,), (1350547270,), (1350547278,), (1350547299,), (1350547305,), (1350547345,), (1350547366,), (1350547387,), (1350547429,), (1350547445,), (1350547474,), (1350547621,), (1350547631,), (1350547635,), (1350547639,), (1350547643,), (1350547884,), (1350547906,), (1350547915,), (1350548004,), (1350548008,), (1350548012,), (1350548016,), (1350548089,), (1350548099,), (1350548116,), (1350548123,), (1350548360,), (1350548364,), (1350548479,), (1350548482,), (1350548494,), (1350548565,), (1350548540,), (1350548545,), (1350548855,), (1350548927,), (1350549049,), (1350549121,), (1350549171,), (1350549178,), (1350549251,), (1350549280,), (1350549286,), (1350549338,), (1350549340,), (1350549343,), (1350549547,), (1350549550,), (1350549558,), (1350549736,), (1350549746,), (1350549749,), (1350549754,), (1350549761,), (1350549795,), (1350549799,), (1350549802,), (1350549805,), (1350549820,), (1350549832,), (1350549850,), (1350549853,), (1350549857,), (1350549882,), (1350550050,), (1350550054,), (1350550057,), (1350550061,), (1350550066,), (1350550068,), (1350550193,), (1350550194,), (1350550205,), (1350550210,), (1350550213,), (1350550234,), (1350550243,), (1350550248,), (1350550254,), (1350550285,), (1350550288,), (1350550294,), (1350550298,), (1350550375,), (1350550385,), (1350550403,), (1350550429,), (1350550451,), (1350550779,), (1350550815,), (1350550861,), (1350550905,), (1350551319,), (1350551364,), (1350551392,), (1350551544,), (1350551659,), (1350551710,), (1350551193,), (1350551235,), (1350551271,), (1350551914,), (1350551971,), (1350552017,), (1350552085,), (1350553228,), (1350553241,), (1350553319,), (1350553324,), (1350553391,), (1350553408,), (1350553564,), (1350553588,), (1350553603,), (1350553626,), (1350553736,), (1350553775,), (1350553808,), (1350553812,), (1350553814,), (1350553980,), (1350553988,), (1350554096,), (1350554099,), (1350554103,), (1350554109,), (1350554139,), (1350554194,), (1350554197,), (1350554488,), (1350554978,), (1350554973,), (1350555666,), (1350555676,), (1350555689,), (1350555692,), (1350555695,), (1350555774,), (1350555777,), (1350555787,), (1350555836,), (1350556062,), (1350556064,), (1350556072,), (1350556096,), (1350556119,), (1350556216,), (1350556218,), (1350556222,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'08042025': {'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([22137237]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350556222, 1350556218, 1350556216, 1350556119, 1350556096, 1350556072, 1350556064, 1350556062] map_info['map_portfolio_photo'] : {22137237: [1350556222, 1350556218, 1350556216, 1350556119, 1350556096, 1350556072, 1350556064, 1350556062, 1350555836, 1350555787, 1350555777, 1350555774, 1350555695, 1350555692, 1350555689, 1350555676, 1350555666, 1350554973]} final : True mtd_id 4302 list_pids : [1350556222, 1350556218, 1350556216, 1350556119, 1350556096, 1350556072, 1350556064, 1350556062] Looping around the photos to save general results len do output : 1 /22137237Didn'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, '2731792') ('4302', '22137237', '1350556222', None, None, None, None, None, '2731792') ('4302', None, None, None, None, None, None, None, '2731792') ('4302', '22137237', '1350556218', None, None, None, None, None, '2731792') ('4302', None, None, None, None, None, None, None, '2731792') ('4302', '22137237', '1350556216', None, None, None, None, None, '2731792') ('4302', None, None, None, None, None, None, None, '2731792') ('4302', '22137237', '1350556119', None, None, None, None, None, '2731792') ('4302', None, None, None, None, None, None, None, '2731792') ('4302', '22137237', '1350556096', None, None, None, None, None, '2731792') ('4302', None, None, None, None, None, None, None, '2731792') ('4302', '22137237', '1350556072', None, None, None, None, None, '2731792') ('4302', None, None, None, None, None, None, None, '2731792') ('4302', '22137237', '1350556064', None, None, None, None, None, '2731792') ('4302', None, None, None, None, None, None, None, '2731792') ('4302', '22137237', '1350556062', None, None, None, None, None, '2731792') 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', None, '22137237', 'None', None, None, None, None, '2731792'), ('4302', '22137237', '1350556222', None, None, None, None, None, '2731792'), ('4302', '22137237', '1350556218', None, None, None, None, None, '2731792'), ('4302', '22137237', '1350556216', None, None, None, None, None, '2731792'), ('4302', '22137237', '1350556119', None, None, None, None, None, '2731792'), ('4302', '22137237', '1350556096', None, None, None, None, None, '2731792'), ('4302', '22137237', '1350556072', None, None, None, None, None, '2731792'), ('4302', '22137237', '1350556064', None, None, None, None, None, '2731792'), ('4302', '22137237', '1350556062', None, None, None, None, None, '2731792')] time used for this insertion : 0.01396036148071289 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3425419330596924 time spend to save output : 0.014111042022705078 total time spend for step 5 : 0.35665297508239746 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 (2731792) 2.09user 2.25system 0:12.50elapsed 34%CPU (0avgtext+0avgdata 158392maxresident)k 1048inputs+5528outputs (22major+64071minor)pagefaults 0swaps