returned map {'Carton_brun': {'main_port_id': 21988115, 'sub_port_id': 21988130, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14485408, 'last_updated_at': datetime.datetime(2025, 4, 2, 21, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 21, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 21, 8, 59)}, 'kraft': {'main_port_id': 21988115, 'sub_port_id': 21988131, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14485409, 'last_updated_at': datetime.datetime(2025, 4, 2, 21, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 21, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 21, 8, 59)}, 'metal': {'main_port_id': 21988115, 'sub_port_id': 21988132, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14485410, 'last_updated_at': datetime.datetime(2025, 4, 2, 21, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 21, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 21, 8, 59)}, 'cartonnette': {'main_port_id': 21988115, 'sub_port_id': 21988133, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14485411, 'last_updated_at': datetime.datetime(2025, 4, 2, 21, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 21, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 21, 8, 59)}, 'flou': {'main_port_id': 21988115, 'sub_port_id': 21988134, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14485412, 'last_updated_at': datetime.datetime(2025, 4, 2, 21, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 21, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 21, 8, 59)}, 'plastique': {'main_port_id': 21988115, 'sub_port_id': 21988135, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14485413, 'last_updated_at': datetime.datetime(2025, 4, 2, 21, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 21, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 21, 8, 59)}, 'autre_refus': {'main_port_id': 21988115, 'sub_port_id': 21988136, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14485414, 'last_updated_at': datetime.datetime(2025, 4, 2, 21, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 21, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 21, 8, 59)}, 'Carton_gris': {'main_port_id': 21988115, 'sub_port_id': 21988137, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14485415, 'last_updated_at': datetime.datetime(2025, 4, 2, 21, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 21, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 21, 8, 59)}, 'environnement': {'main_port_id': 21988115, 'sub_port_id': 21988138, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14485416, 'last_updated_at': datetime.datetime(2025, 4, 2, 21, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 21, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 21, 8, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21988115, 'sub_port_id': 21988139, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14485417, 'last_updated_at': datetime.datetime(2025, 4, 2, 21, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 21, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 21, 8, 59)}, 'mal_croppe': {'main_port_id': 21988115, 'sub_port_id': 21988140, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14485418, 'last_updated_at': datetime.datetime(2025, 4, 2, 21, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 21, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 21, 8, 59)}, 'papier': {'main_port_id': 21988115, 'sub_port_id': 21988141, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14485419, 'last_updated_at': datetime.datetime(2025, 4, 2, 21, 10, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 21, 10, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 21, 8, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21988130,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21988118 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21988131,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21988119 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21988132,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21988120 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21988133,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21988121 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21988134,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21988122 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21988135,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21988123 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21988136,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21988124 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21988137,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21988125 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21988138,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21988126 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21988139,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21988127 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21988140,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21988128 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21988141,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21988129 lien utilise dans velours : https://www.fotonower.com/velours/21988130,21988131,21988132,21988133,21988134,21988135,21988136,21988137,21988138,21988139,21988140,21988141?tags=Carton_brun,kraft,metal,cartonnette,flou,plastique,autre_refus,Carton_gris,environnement,Teint_Dans_La_Masse,mal_croppe,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21988115]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349602421, 1349602418, 1349602413, 1349602411, 1349602384, 1349602380, 1349602376, 1349602373, 1349602370] map_info['map_portfolio_photo'] : {21988115: [1349602421, 1349602418, 1349602413, 1349602411, 1349602384, 1349602380, 1349602376, 1349602373, 1349602370, 1349602314, 1349602288, 1349602286, 1349602195, 1349602192, 1349602122, 1349602116, 1349602111, 1349602107, 1349602105, 1349602054, 1349602024, 1349601963, 1349601947, 1349601944, 1349601917, 1349601586, 1349601559, 1349601157, 1349600205, 1349600177, 1349599689]} final : False mtd_id 4302 list_pids : [1349602421, 1349602418, 1349602413, 1349602411, 1349602384, 1349602380, 1349602376, 1349602373, 1349602370] Looping around the photos to save general results len do output : 1 /21988115. 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, '2717666') ('4302', '21988115', '1349602421', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602418', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602413', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602411', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602384', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602380', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602376', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602373', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602370', None, None, None, None, None, '2717666') 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, '21988115', "{'Carton_brun': 21988118, 'kraft': 21988119, 'metal': 21988120, 'cartonnette': 21988121, 'flou': 21988122, 'plastique': 21988123, 'autre_refus': 21988124, 'Carton_gris': 21988125, 'environnement': 21988126, 'Teint_Dans_La_Masse': 21988127, 'mal_croppe': 21988128, 'papier': 21988129}", None, None, None, None, '2717666'), ('4302', '21988115', '1349602421', None, None, None, None, None, '2717666'), ('4302', '21988115', '1349602418', None, None, None, None, None, '2717666'), ('4302', '21988115', '1349602413', None, None, None, None, None, '2717666'), ('4302', '21988115', '1349602411', None, None, None, None, None, '2717666'), ('4302', '21988115', '1349602384', None, None, None, None, None, '2717666'), ('4302', '21988115', '1349602380', None, None, None, None, None, '2717666'), ('4302', '21988115', '1349602376', None, None, None, None, None, '2717666'), ('4302', '21988115', '1349602373', None, None, None, None, None, '2717666'), ('4302', '21988115', '1349602370', None, None, None, None, None, '2717666')] time used for this insertion : 0.015872478485107422 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.477771282196045 time spend to save output : 0.01619100570678711 total time spend for step 1 : 1.493962287902832 step2:final Wed Apr 2 21:13: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 (21988115) 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 21988115 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349599689,1349600205,1349600177,1349601586,1349601157,1349601559,1349602054,1349602024,1349601963,1349601947,1349601944,1349601917,1349602122,1349602116,1349602111,1349602107,1349602105,1349602195,1349602192,1349602314,1349602288,1349602286,1349602384,1349602380,1349602376,1349602373,1349602370,1349602421,1349602418,1349602413,1349602411); 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([21988115]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349602421: ('0.03529546224592571',), 1349602418: ('0.03529546224592571',), 1349602413: ('0.03529546224592571',), 1349602411: ('0.03529546224592571',), 1349602384: ('0.03529546224592571',), 1349602380: ('0.03529546224592571',), 1349602376: ('0.03529546224592571',), 1349602373: ('0.03529546224592571',), 1349602370: ('0.03529546224592571',)} new output for save of step final : {1349602421: ('0.03529546224592571',), 1349602418: ('0.03529546224592571',), 1349602413: ('0.03529546224592571',), 1349602411: ('0.03529546224592571',), 1349602384: ('0.03529546224592571',), 1349602380: ('0.03529546224592571',), 1349602376: ('0.03529546224592571',), 1349602373: ('0.03529546224592571',), 1349602370: ('0.03529546224592571',)} [1349602421, 1349602418, 1349602413, 1349602411, 1349602384, 1349602380, 1349602376, 1349602373, 1349602370] map_info['map_portfolio_photo'] : {21988115: [1349602421, 1349602418, 1349602413, 1349602411, 1349602384, 1349602380, 1349602376, 1349602373, 1349602370, 1349602314, 1349602288, 1349602286, 1349602195, 1349602192, 1349602122, 1349602116, 1349602111, 1349602107, 1349602105, 1349602054, 1349602024, 1349601963, 1349601947, 1349601944, 1349601917, 1349601586, 1349601559, 1349601157, 1349600205, 1349600177, 1349599689]} final : False mtd_id 4302 list_pids : [1349602421, 1349602418, 1349602413, 1349602411, 1349602384, 1349602380, 1349602376, 1349602373, 1349602370] Looping around the photos to save general results len do output : 9 /1349602421.Didn't retrieve data . /1349602418.Didn't retrieve data . /1349602413.Didn't retrieve data . /1349602411.Didn't retrieve data . /1349602384.Didn't retrieve data . /1349602380.Didn't retrieve data . /1349602376.Didn't retrieve data . /1349602373.Didn't retrieve data . /1349602370.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, '2717666') ('4302', '21988115', '1349602421', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602418', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602413', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602411', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602384', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602380', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602376', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602373', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602370', None, None, None, None, None, '2717666') 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', '21988115', '1349602421', '0.03529546224592571', None, None, None, None, '2717666'), ('4302', '21988115', '1349602418', '0.03529546224592571', None, None, None, None, '2717666'), ('4302', '21988115', '1349602413', '0.03529546224592571', None, None, None, None, '2717666'), ('4302', '21988115', '1349602411', '0.03529546224592571', None, None, None, None, '2717666'), ('4302', '21988115', '1349602384', '0.03529546224592571', None, None, None, None, '2717666'), ('4302', '21988115', '1349602380', '0.03529546224592571', None, None, None, None, '2717666'), ('4302', '21988115', '1349602376', '0.03529546224592571', None, None, None, None, '2717666'), ('4302', '21988115', '1349602373', '0.03529546224592571', None, None, None, None, '2717666'), ('4302', '21988115', '1349602370', '0.03529546224592571', None, None, None, None, '2717666')] time used for this insertion : 0.012990713119506836 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06608271598815918 time spend to save output : 0.013510942459106445 total time spend for step 2 : 0.07959365844726562 step3:velours_tree Wed Apr 2 21:13: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 : {21988115: [{'Carton_brun': 21988118, 'kraft': 21988119, 'metal': 21988120, 'cartonnette': 21988121, 'flou': 21988122, 'plastique': 21988123, 'autre_refus': 21988124, 'Carton_gris': 21988125, 'environnement': 21988126, 'Teint_Dans_La_Masse': 21988127, 'mal_croppe': 21988128, 'papier': 21988129}]} input_args_next_step : {21988115: ()} output_args : {21988115: [{'Carton_brun': 21988118, 'kraft': 21988119, 'metal': 21988120, 'cartonnette': 21988121, 'flou': 21988122, 'plastique': 21988123, 'autre_refus': 21988124, 'Carton_gris': 21988125, 'environnement': 21988126, 'Teint_Dans_La_Masse': 21988127, 'mal_croppe': 21988128, 'papier': 21988129}]} args : 21988115 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 : ({'Carton_brun': 21988118, 'kraft': 21988119, 'metal': 21988120, 'cartonnette': 21988121, 'flou': 21988122, 'plastique': 21988123, 'autre_refus': 21988124, 'Carton_gris': 21988125, 'environnement': 21988126, 'Teint_Dans_La_Masse': 21988127, 'mal_croppe': 21988128, 'papier': 21988129},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21988115) 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([21988115]) 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.32904648780822754 time spend to save output : 6.508827209472656e-05 total time spend for step 3 : 0.32911157608032227 step4:send_mail_cod Wed Apr 2 21:13:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1349602421: ('0.03529546224592571',), 1349602418: ('0.03529546224592571',), 1349602413: ('0.03529546224592571',), 1349602411: ('0.03529546224592571',), 1349602384: ('0.03529546224592571',), 1349602380: ('0.03529546224592571',), 1349602376: ('0.03529546224592571',), 1349602373: ('0.03529546224592571',), 1349602370: ('0.03529546224592571',)} input_args_next_step : {1349602421: ()} output_args : {1349602421: ('0.03529546224592571',), 1349602418: ('0.03529546224592571',), 1349602413: ('0.03529546224592571',), 1349602411: ('0.03529546224592571',), 1349602384: ('0.03529546224592571',), 1349602380: ('0.03529546224592571',), 1349602376: ('0.03529546224592571',), 1349602373: ('0.03529546224592571',), 1349602370: ('0.03529546224592571',)} args : 1349602421 depend.output_id : 0 input_args_next_step : {1349602421: ('0.03529546224592571',), 1349602418: ()} output_args : {1349602421: ('0.03529546224592571',), 1349602418: ('0.03529546224592571',), 1349602413: ('0.03529546224592571',), 1349602411: ('0.03529546224592571',), 1349602384: ('0.03529546224592571',), 1349602380: ('0.03529546224592571',), 1349602376: ('0.03529546224592571',), 1349602373: ('0.03529546224592571',), 1349602370: ('0.03529546224592571',)} args : 1349602418 depend.output_id : 0 input_args_next_step : {1349602421: ('0.03529546224592571',), 1349602418: ('0.03529546224592571',), 1349602413: ()} output_args : {1349602421: ('0.03529546224592571',), 1349602418: ('0.03529546224592571',), 1349602413: ('0.03529546224592571',), 1349602411: ('0.03529546224592571',), 1349602384: ('0.03529546224592571',), 1349602380: ('0.03529546224592571',), 1349602376: ('0.03529546224592571',), 1349602373: ('0.03529546224592571',), 1349602370: ('0.03529546224592571',)} args : 1349602413 depend.output_id : 0 input_args_next_step : {1349602421: ('0.03529546224592571',), 1349602418: ('0.03529546224592571',), 1349602413: ('0.03529546224592571',), 1349602411: ()} output_args : {1349602421: ('0.03529546224592571',), 1349602418: ('0.03529546224592571',), 1349602413: ('0.03529546224592571',), 1349602411: ('0.03529546224592571',), 1349602384: ('0.03529546224592571',), 1349602380: ('0.03529546224592571',), 1349602376: ('0.03529546224592571',), 1349602373: ('0.03529546224592571',), 1349602370: ('0.03529546224592571',)} args : 1349602411 depend.output_id : 0 input_args_next_step : {1349602421: ('0.03529546224592571',), 1349602418: ('0.03529546224592571',), 1349602413: ('0.03529546224592571',), 1349602411: ('0.03529546224592571',), 1349602384: ()} output_args : {1349602421: ('0.03529546224592571',), 1349602418: ('0.03529546224592571',), 1349602413: ('0.03529546224592571',), 1349602411: ('0.03529546224592571',), 1349602384: ('0.03529546224592571',), 1349602380: ('0.03529546224592571',), 1349602376: ('0.03529546224592571',), 1349602373: ('0.03529546224592571',), 1349602370: ('0.03529546224592571',)} args : 1349602384 depend.output_id : 0 input_args_next_step : {1349602421: ('0.03529546224592571',), 1349602418: ('0.03529546224592571',), 1349602413: ('0.03529546224592571',), 1349602411: ('0.03529546224592571',), 1349602384: ('0.03529546224592571',), 1349602380: ()} output_args : {1349602421: ('0.03529546224592571',), 1349602418: ('0.03529546224592571',), 1349602413: ('0.03529546224592571',), 1349602411: ('0.03529546224592571',), 1349602384: ('0.03529546224592571',), 1349602380: ('0.03529546224592571',), 1349602376: ('0.03529546224592571',), 1349602373: ('0.03529546224592571',), 1349602370: ('0.03529546224592571',)} args : 1349602380 depend.output_id : 0 input_args_next_step : {1349602421: ('0.03529546224592571',), 1349602418: ('0.03529546224592571',), 1349602413: ('0.03529546224592571',), 1349602411: ('0.03529546224592571',), 1349602384: ('0.03529546224592571',), 1349602380: ('0.03529546224592571',), 1349602376: ()} output_args : {1349602421: ('0.03529546224592571',), 1349602418: ('0.03529546224592571',), 1349602413: ('0.03529546224592571',), 1349602411: ('0.03529546224592571',), 1349602384: ('0.03529546224592571',), 1349602380: ('0.03529546224592571',), 1349602376: ('0.03529546224592571',), 1349602373: ('0.03529546224592571',), 1349602370: ('0.03529546224592571',)} args : 1349602376 depend.output_id : 0 input_args_next_step : {1349602421: ('0.03529546224592571',), 1349602418: ('0.03529546224592571',), 1349602413: ('0.03529546224592571',), 1349602411: ('0.03529546224592571',), 1349602384: ('0.03529546224592571',), 1349602380: ('0.03529546224592571',), 1349602376: ('0.03529546224592571',), 1349602373: ()} output_args : {1349602421: ('0.03529546224592571',), 1349602418: ('0.03529546224592571',), 1349602413: ('0.03529546224592571',), 1349602411: ('0.03529546224592571',), 1349602384: ('0.03529546224592571',), 1349602380: ('0.03529546224592571',), 1349602376: ('0.03529546224592571',), 1349602373: ('0.03529546224592571',), 1349602370: ('0.03529546224592571',)} args : 1349602373 depend.output_id : 0 input_args_next_step : {1349602421: ('0.03529546224592571',), 1349602418: ('0.03529546224592571',), 1349602413: ('0.03529546224592571',), 1349602411: ('0.03529546224592571',), 1349602384: ('0.03529546224592571',), 1349602380: ('0.03529546224592571',), 1349602376: ('0.03529546224592571',), 1349602373: ('0.03529546224592571',), 1349602370: ()} output_args : {1349602421: ('0.03529546224592571',), 1349602418: ('0.03529546224592571',), 1349602413: ('0.03529546224592571',), 1349602411: ('0.03529546224592571',), 1349602384: ('0.03529546224592571',), 1349602380: ('0.03529546224592571',), 1349602376: ('0.03529546224592571',), 1349602373: ('0.03529546224592571',), 1349602370: ('0.03529546224592571',)} args : 1349602370 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 : {21988115: [{'Carton_brun': 21988118, 'kraft': 21988119, 'metal': 21988120, 'cartonnette': 21988121, 'flou': 21988122, 'plastique': 21988123, 'autre_refus': 21988124, 'Carton_gris': 21988125, 'environnement': 21988126, 'Teint_Dans_La_Masse': 21988127, 'mal_croppe': 21988128, 'papier': 21988129}]} input_args_next_step : {1349602421: ('0.03529546224592571',), 1349602418: ('0.03529546224592571',), 1349602413: ('0.03529546224592571',), 1349602411: ('0.03529546224592571',), 1349602384: ('0.03529546224592571',), 1349602380: ('0.03529546224592571',), 1349602376: ('0.03529546224592571',), 1349602373: ('0.03529546224592571',), 1349602370: ('0.03529546224592571',), 21988115: ()} output_args : {21988115: [{'Carton_brun': 21988118, 'kraft': 21988119, 'metal': 21988120, 'cartonnette': 21988121, 'flou': 21988122, 'plastique': 21988123, 'autre_refus': 21988124, 'Carton_gris': 21988125, 'environnement': 21988126, 'Teint_Dans_La_Masse': 21988127, 'mal_croppe': 21988128, 'papier': 21988129}]} args : 21988115 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.03529546224592571',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21988115) 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 (1349602421,1349602418,1349602413,1349602411,1349602384,1349602380,1349602376,1349602373,1349602370) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349602370 begin to download photo : 1349602376 begin to download photo : 1349602384 begin to download photo : 1349602413 begin to download photo : 1349602421 download finish for photo 1349602384 begin to download photo : 1349602411 download finish for photo 1349602376 begin to download photo : 1349602380 download finish for photo 1349602421 download finish for photo 1349602413 begin to download photo : 1349602418 download finish for photo 1349602370 begin to download photo : 1349602373 download finish for photo 1349602411 download finish for photo 1349602380 download finish for photo 1349602373 download finish for photo 1349602418 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette219881191743621180/ imagette219881201743621180/ length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P21988115_02-04-2025_21_13_00.pdf 21988119 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=21988119 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219881191743621180 21988120 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=21988120 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219881201743621180 21988121 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=21988121 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349602216: '1743620952_1426640_1349602054_b63a53b40d3038b2d06b45658fc2b92e_rle_crop_3744703591_0.png', 1349602259: '1743620967_3725920_1349601963_1f3d5baa49421962b8f78fa5b6792b82_rle_crop_3744703824_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/871ebd1603066bc9d9614b86597cb17d_45335493.png change filename to text .imagette219881211743621180/ imagette219881211743621180/1743620967_3725920_1349601963_1f3d5baa49421962b8f78fa5b6792b82_rle_crop_3744703824_0.png.png imagette219881211743621180/1743620952_1426640_1349602054_b63a53b40d3038b2d06b45658fc2b92e_rle_crop_3744703591_0.png.png imagette219881221743621180/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/9d97d0e855fe50b2aabc4c1e00c74de6_34904847.png imagette219881211743621180 21988122 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=21988122 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219881221743621180 21988123 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=21988123 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349600913: '1743620593_1424090_1349599689_60a3d60175432254f60d0ac96889077d_rle_crop_3744702297_0.png', 1349602049: '1743620830_1425673_1349601586_87435e864d7962c54ab9b2ec0b589ff3_rle_crop_3744702822_0.png', 1349602218: '1743620952_1426640_1349601559_830eef709e0529adac29f6796f089b51_rle_crop_3744703677_0.png', 1349602262: '1743620967_3725920_1349602024_3e2b8c78f74d09f3ab038f2e93960167_rle_crop_3744703811_0.png', 1349602263: '1743620967_3725920_1349601963_1f3d5baa49421962b8f78fa5b6792b82_rle_crop_3744703836_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/5bec20aff77e90e63c913d325c1d6e0e_92537648.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c78eb1f765a458e6ebadd14d29090072_97600575.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/7b865a2727c9bc47a029c943b8d51f0e_22194252.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/3af35fbba57fe4471b0f42fd98cf3e12_61980096.png change filename to text .imagette219881231743621180/ imagette219881231743621180/1743620967_3725920_1349602024_3e2b8c78f74d09f3ab038f2e93960167_rle_crop_3744703811_0.png.png imagette219881231743621180/1743620952_1426640_1349601559_830eef709e0529adac29f6796f089b51_rle_crop_3744703677_0.png.png imagette219881231743621180/1743620830_1425673_1349601586_87435e864d7962c54ab9b2ec0b589ff3_rle_crop_3744702822_0.png.png imagette219881231743621180/1743620593_1424090_1349599689_60a3d60175432254f60d0ac96889077d_rle_crop_3744702297_0.png.png imagette219881231743621180/1743620967_3725920_1349601963_1f3d5baa49421962b8f78fa5b6792b82_rle_crop_3744703836_0.png.png imagette219881241743621181/ imagette219881281743621181/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/457e21f79119186609ffac43a23ca224_58697236.png imagette219881231743621180 21988124 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=21988124 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219881241743621181 21988128 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=21988128 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219881281743621181 21988118 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=21988118 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349600904: '1743620593_1424090_1349599689_60a3d60175432254f60d0ac96889077d_rle_crop_3744702303_0.png', 1349600905: '1743620593_1424090_1349599689_60a3d60175432254f60d0ac96889077d_rle_crop_3744702301_0.png', 1349600906: '1743620593_1424090_1349599689_60a3d60175432254f60d0ac96889077d_rle_crop_3744702302_0.png', 1349602260: '1743620967_3725920_1349601944_5fc8ab20bdb89969f2ccc00905bd9484_rle_crop_3744703854_0.png', 1349602261: '1743620967_3725920_1349601917_06e1e15cac9d4e184839df46fceca145_rle_crop_3744703866_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/69a8ff2f2e539d9faaad48539fbdc097_18420059.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c7fd0b66caf070f3ad9886704ac044c7_25706842.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/9210465e2040c72dc4939712730af4ee_90306467.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d3842f42d46c571a0c8ef30fde847153_16720271.png change filename to text .imagette219881181743621181/ imagette219881181743621181/1743620593_1424090_1349599689_60a3d60175432254f60d0ac96889077d_rle_crop_3744702302_0.png.png imagette219881181743621181/1743620967_3725920_1349601917_06e1e15cac9d4e184839df46fceca145_rle_crop_3744703866_0.png.png imagette219881181743621181/1743620967_3725920_1349601944_5fc8ab20bdb89969f2ccc00905bd9484_rle_crop_3744703854_0.png.png imagette219881181743621181/1743620593_1424090_1349599689_60a3d60175432254f60d0ac96889077d_rle_crop_3744702303_0.png.png imagette219881181743621181/1743620593_1424090_1349599689_60a3d60175432254f60d0ac96889077d_rle_crop_3744702301_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/33610fef5f7a1dd1e75e4c075658478b_80430307.png imagette219881181743621181 21988125 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=21988125 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349602256: '1743620967_3725920_1349602024_3e2b8c78f74d09f3ab038f2e93960167_rle_crop_3744703809_0.png', 1349602409: '1743621091_1427929_1349602195_0cb17946bf3c5ebc47cd4006e425ab48_rle_crop_3744704503_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e00ee306900ec59371b52b4ad7a2a565_13652771.png change filename to text .imagette219881251743621181/ imagette219881251743621181/1743620967_3725920_1349602024_3e2b8c78f74d09f3ab038f2e93960167_rle_crop_3744703809_0.png.png imagette219881251743621181/1743621091_1427929_1349602195_0cb17946bf3c5ebc47cd4006e425ab48_rle_crop_3744704503_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/00f2678ee5e8f2f6418fc5d475c2463c_39736211.png imagette219881251743621181 21988127 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=21988127 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349600889: '1743620593_1424090_1349599689_60a3d60175432254f60d0ac96889077d_rle_crop_3744702299_0.png', 1349602255: '1743620967_3725920_1349601917_06e1e15cac9d4e184839df46fceca145_rle_crop_3744703865_0.png', 1349602406: '1743621091_1427929_1349602116_042c1f342769771663f162e2a6225c12_rle_crop_3744704516_0.png', 1349602407: '1743621091_1427929_1349602107_ab7c3cf637a1024490177e3616d0cee5_rle_crop_3744704542_0.png', 1349602408: '1743621091_1427929_1349602105_a210312ecd3bc124140a792caef182b9_rle_crop_3744704584_0.png', 1349602416: '1743621111_1428183_1349602192_58efbc744ee9e0566f9464d23cf99ea1_rle_crop_3744704627_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/533de165a2e5a16688baf3724c43df9e_53473893.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/08cbb1db1a86dba8e4118a944a7c42b1_80642019.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/4ac522675d2405129604de50213f4557_4743293.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b2232f494f45e70bf3e90a36133d227c_28108165.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/6c151ace634458091ca21a8d33b2a687_55970332.png change filename to text .imagette219881271743621181/ imagette219881271743621181/1743621091_1427929_1349602105_a210312ecd3bc124140a792caef182b9_rle_crop_3744704584_0.png.png imagette219881271743621181/1743620967_3725920_1349601917_06e1e15cac9d4e184839df46fceca145_rle_crop_3744703865_0.png.png imagette219881271743621181/1743621091_1427929_1349602107_ab7c3cf637a1024490177e3616d0cee5_rle_crop_3744704542_0.png.png imagette219881271743621181/1743621111_1428183_1349602192_58efbc744ee9e0566f9464d23cf99ea1_rle_crop_3744704627_0.png.png imagette219881271743621181/1743620593_1424090_1349599689_60a3d60175432254f60d0ac96889077d_rle_crop_3744702299_0.png.png imagette219881271743621181/1743621091_1427929_1349602116_042c1f342769771663f162e2a6225c12_rle_crop_3744704516_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c10952db89f9fbbf5297cb724696a32d_59533451.png imagette219881271743621181 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21988115 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21988130,21988131,21988132,21988133,21988134,21988135,21988136,21988137,21988138,21988139,21988140,21988141?tags=Carton_brun,kraft,metal,cartonnette,flou,plastique,autre_refus,Carton_gris,environnement,Teint_Dans_La_Masse,mal_croppe,papier your option no_mail is active, we will not send the real mail to your client args[1349602421] : ('0.03529546224592571',) no score found for photo 1349602421 We are sending mail with results at report@fotonower.com args[1349602418] : ('0.03529546224592571',) no score found for photo 1349602418 We are sending mail with results at report@fotonower.com args[1349602413] : ('0.03529546224592571',) no score found for photo 1349602413 We are sending mail with results at report@fotonower.com args[1349602411] : ('0.03529546224592571',) no score found for photo 1349602411 We are sending mail with results at report@fotonower.com args[1349602384] : ('0.03529546224592571',) no score found for photo 1349602384 We are sending mail with results at report@fotonower.com args[1349602380] : ('0.03529546224592571',) no score found for photo 1349602380 We are sending mail with results at report@fotonower.com args[1349602376] : ('0.03529546224592571',) no score found for photo 1349602376 We are sending mail with results at report@fotonower.com args[1349602373] : ('0.03529546224592571',) no score found for photo 1349602373 We are sending mail with results at report@fotonower.com args[1349602370] : ('0.03529546224592571',) no score found for photo 1349602370 We are sending mail with results at report@fotonower.com refus_total : 0.03529546224592571 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=21988115 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_P21988115_02-04-2025_21_13_00.pdf results_Auto_P21988115_02-04-2025_21_13_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21988115_02-04-2025_21_13_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21988115','results_Auto_P21988115_02-04-2025_21_13_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21988115_02-04-2025_21_13_00.pdf','pdf','','0.15','0.03529546224592571') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21988115]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349602421, 1349602418, 1349602413, 1349602411, 1349602384, 1349602380, 1349602376, 1349602373, 1349602370] map_info['map_portfolio_photo'] : {21988115: [1349602421, 1349602418, 1349602413, 1349602411, 1349602384, 1349602380, 1349602376, 1349602373, 1349602370, 1349602314, 1349602288, 1349602286, 1349602195, 1349602192, 1349602122, 1349602116, 1349602111, 1349602107, 1349602105, 1349602054, 1349602024, 1349601963, 1349601947, 1349601944, 1349601917, 1349601586, 1349601559, 1349601157, 1349600205, 1349600177, 1349599689]} final : False mtd_id 4302 list_pids : [1349602421, 1349602418, 1349602413, 1349602411, 1349602384, 1349602380, 1349602376, 1349602373, 1349602370] 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, '2717666') ('4302', '21988115', '1349602421', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602418', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602413', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602411', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602384', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602380', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602376', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602373', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602370', None, None, None, None, None, '2717666') 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', '21988115', '1349602421', None, None, None, None, None, '2717666'), ('4302', '21988115', '1349602418', None, None, None, None, None, '2717666'), ('4302', '21988115', '1349602413', None, None, None, None, None, '2717666'), ('4302', '21988115', '1349602411', None, None, None, None, None, '2717666'), ('4302', '21988115', '1349602384', None, None, None, None, None, '2717666'), ('4302', '21988115', '1349602380', None, None, None, None, None, '2717666'), ('4302', '21988115', '1349602376', None, None, None, None, None, '2717666'), ('4302', '21988115', '1349602373', None, None, None, None, None, '2717666'), ('4302', '21988115', '1349602370', None, None, None, None, None, '2717666')] time used for this insertion : 0.015397071838378906 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.5346343517303467 time spend to save output : 0.015640974044799805 total time spend for step 4 : 2.5502753257751465 step5:split_time_score Wed Apr 2 21:13: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 : ['21988115'] 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 : [('21988115',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21988115) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349602421: {'path': 'temp/1743621180_3462298_1349602421_0770d9cc8b66365562ea3762321d6c01.jpg', 'extension': 'jpg'}, 1349602384: {'path': 'temp/1743621180_3462298_1349602384_f11cfa71e62653c2ed4b4eea4e4c8e52.jpg', 'extension': 'jpg'}, 1349602411: {'path': 'temp/1743621180_3462298_1349602411_2a8ac877627ab8a6b7eee00fa83ade8a.jpg', 'extension': 'jpg'}, 1349602376: {'path': 'temp/1743621180_3462298_1349602376_abab2d65d68504879e94b2ef6e4f4000.jpg', 'extension': 'jpg'}, 1349602380: {'path': 'temp/1743621180_3462298_1349602380_0108b9d1edb0f0c57765b436747bc5e0.jpg', 'extension': 'jpg'}, 1349602370: {'path': 'temp/1743621180_3462298_1349602370_9a806fad1829b64db08f10e24ddb6ddc.jpg', 'extension': 'jpg'}, 1349602373: {'path': 'temp/1743621180_3462298_1349602373_572dcd613eaa101d4d3e6161c2d0c212.jpg', 'extension': 'jpg'}, 1349602413: {'path': 'temp/1743621180_3462298_1349602413_cb18f62719091274bcd637e63c01a0e7.jpg', 'extension': 'jpg'}, 1349602418: {'path': 'temp/1743621180_3462298_1349602418_c5737bfe6f4e157eef2526a7159e8edf.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 = 21988115; (('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 = 21988115 group by h (('21', 31),) 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=21988115 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 (21988115) 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 (21988115) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02042025 21988115 Nombre de photos uploadées : 31 / 23040 (0%) 02042025 21988115 Nombre de photos taguées (types de déchets): 0 / 31 (0%) 02042025 21988115 Nombre de photos taguées (volume) : 0 / 31 (0%) [{'photo_id': 1349599689, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/60a3d60175432254f60d0ac96889077d.jpg', 'username': None, 'uploaded_at': 1743620467, 'text': 'image_02042025_21_00_34_010139m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349600205, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/0f212f2abe08146b3aeacb5a6ddec363.jpg', 'username': None, 'uploaded_at': 1743620527, 'text': 'image_02042025_21_00_44_010141m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349600177, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/9cd26dbeca3e3fde915665da26a5b056.jpg', 'username': None, 'uploaded_at': 1743620527, 'text': 'image_02042025_21_01_44_010142m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349601586, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/87435e864d7962c54ab9b2ec0b589ff3.jpg', 'username': None, 'uploaded_at': 1743620767, 'text': 'image_02042025_21_01_54_010136m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 7.3909759521484375e-06 elapsed_time : order_list_meta_photo_and_scores 1.71661376953125e-05 ??????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002989530563354492 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21988115, '2025-04-02' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1709477,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.027104616165161133 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= 1709477 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719058, 'mtr_portfolio_id': 21986350, 'dashboard_result_id': 9819357, '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_P21986350_02-04-2025_20_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21986352, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21986353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21986354, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21986355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21986356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21986357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21986358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21986359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21986360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21986361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21986362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21986363, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719058, 'mtr_portfolio_id': 21987045, 'dashboard_result_id': 9819358, '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_P21987045_02-04-2025_21_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21987072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21987073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21987074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21987075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21987076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21987077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21987078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21987079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21987080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21987081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21987082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21987083, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1719058, 'mtr_portfolio_id': 21988115, 'dashboard_result_id': 9819359, '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_P21988115_02-04-2025_21_10_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21988118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21988119, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21988120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21988121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21988122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21988123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21988124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21988125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21988126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21988127, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21988128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21988129, '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 = 21986350 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': 2717500, 'mtr_portfolio_id': 21986350, 'created_at': datetime.datetime(2025, 4, 2, 20, 33), 'result': '0.06650561200153669', 'result_long': None, 'result_double': None}] Qualite : 0.06650561200153669 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21986350 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21986350_02-04-2025_20_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21986350 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_P21986350_02-04-2025_20_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21986352, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21986353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21986354, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21986355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21986356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21986357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21986358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21986359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21986360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21986361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21986362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21986363, 'pht': 3726}}" where mtr_portfolio_id = 21986350 and dashboard_run_id = 1719058 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`=21986350 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9819357, 0.06650561200153669, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21986350_02-04-2025_20_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21986352, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21986353, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21986354, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21986355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21986356, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21986357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21986358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21986359, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21986360, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21986361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21986362, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21986363, '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 = 21987045 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': 2717563, 'mtr_portfolio_id': 21987045, 'created_at': datetime.datetime(2025, 4, 2, 21, 2, 59), 'result': '0.05949485987746661', 'result_long': None, 'result_double': None}] Qualite : 0.05949485987746661 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21987045 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21987045_02-04-2025_21_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21987045 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_P21987045_02-04-2025_21_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21987072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21987073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21987074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21987075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21987076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21987077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21987078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21987079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21987080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21987081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21987082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21987083, 'pht': 3726}}" where mtr_portfolio_id = 21987045 and dashboard_run_id = 1719058 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`=21987045 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9819358, 0.05949485987746661, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21987045_02-04-2025_21_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21987072, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21987073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21987074, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21987075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21987076, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21987077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21987078, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21987079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21987080, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21987081, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21987082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21987083, '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 = 21988115 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': 2717666, 'mtr_portfolio_id': 21988115, 'created_at': datetime.datetime(2025, 4, 2, 21, 13), 'result': '0.03529546224592571', 'result_long': None, 'result_double': None}] Qualite : 0.03529546224592571 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21988115 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21988115_02-04-2025_21_13_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21988115 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_P21988115_02-04-2025_21_13_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21988118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21988119, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21988120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21988121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21988122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21988123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21988124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21988125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21988126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21988127, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21988128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21988129, 'pht': 3726}}" where mtr_portfolio_id = 21988115 and dashboard_run_id = 1719058 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`=21988115 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9819359, 0.03529546224592571, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21988115_02-04-2025_21_13_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21988118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21988119, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21988120, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21988121, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21988122, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21988123, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21988124, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21988125, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21988126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21988127, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21988128, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21988129, '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 (21986350,21987045,21988115) result : ((1349591526,), (1349591536,), (1349591643,), (1349591646,), (1349591683,), (1349591696,), (1349591707,), (1349591750,), (1349591798,), (1349591815,), (1349591826,), (1349591852,), (1349591856,), (1349591869,), (1349591873,), (1349591877,), (1349592013,), (1349592019,), (1349592023,), (1349592028,), (1349592079,), (1349592083,), (1349592085,), (1349592089,), (1349592092,), (1349592197,), (1349592216,), (1349592238,), (1349592263,), (1349592288,), (1349592297,), (1349592464,), (1349592472,), (1349592494,), (1349592644,), (1349592648,), (1349592680,), (1349592765,), (1349592768,), (1349592771,), (1349592817,), (1349592822,), (1349592826,), (1349592829,), (1349592833,), (1349592837,), (1349592881,), (1349592892,), (1349592895,), (1349592970,), (1349592982,), (1349592985,), (1349592988,), (1349592992,), (1349592996,), (1349593220,), (1349593282,), (1349593350,), (1349593412,), (1349593543,), (1349593547,), (1349593573,), (1349593576,), (1349593622,), (1349593627,), (1349593641,), (1349593645,), (1349593652,), (1349593658,), (1349593801,), (1349593787,), (1349593791,), (1349593792,), (1349593794,), (1349593798,), (1349594012,), (1349594016,), (1349594020,), (1349594025,), (1349594027,), (1349594064,), (1349594067,), (1349594070,), (1349594339,), (1349594348,), (1349594351,), (1349594354,), (1349594357,), (1349594407,), (1349594651,), (1349594707,), (1349594756,), (1349594791,), (1349594822,), (1349594868,), (1349595055,), (1349595079,), (1349595120,), (1349595150,), (1349595175,), (1349595205,), (1349595386,), (1349595412,), (1349595418,), (1349595512,), (1349595531,), (1349595540,), (1349595544,), (1349595547,), (1349595678,), (1349595682,), (1349595702,), (1349595710,), (1349595712,), (1349595816,), (1349595822,), (1349595825,), (1349595987,), (1349595992,), (1349595994,), (1349595998,), (1349599695,), (1349599689,), (1349600177,), (1349600205,), (1349601157,), (1349601559,), (1349601586,), (1349601917,), (1349601944,), (1349601947,), (1349601963,), (1349602024,), (1349602054,), (1349602105,), (1349602107,), (1349602111,), (1349602116,), (1349602122,), (1349602192,), (1349602195,), (1349602286,), (1349602288,), (1349602314,), (1349602370,), (1349602373,), (1349602376,), (1349602380,), (1349602384,), (1349602411,), (1349602413,), (1349602418,), (1349602421,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02042025': {'nb_upload': 31, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21988115]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349602421, 1349602418, 1349602413, 1349602411, 1349602384, 1349602380, 1349602376, 1349602373, 1349602370] map_info['map_portfolio_photo'] : {21988115: [1349602421, 1349602418, 1349602413, 1349602411, 1349602384, 1349602380, 1349602376, 1349602373, 1349602370, 1349602314, 1349602288, 1349602286, 1349602195, 1349602192, 1349602122, 1349602116, 1349602111, 1349602107, 1349602105, 1349602054, 1349602024, 1349601963, 1349601947, 1349601944, 1349601917, 1349601586, 1349601559, 1349601157, 1349600205, 1349600177, 1349599689]} final : True mtd_id 4302 list_pids : [1349602421, 1349602418, 1349602413, 1349602411, 1349602384, 1349602380, 1349602376, 1349602373, 1349602370] Looping around the photos to save general results len do output : 1 /21988115Didn'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, '2717666') ('4302', '21988115', '1349602421', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602418', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602413', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602411', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602384', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602380', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602376', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602373', None, None, None, None, None, '2717666') ('4302', None, None, None, None, None, None, None, '2717666') ('4302', '21988115', '1349602370', None, None, None, None, None, '2717666') 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, '21988115', 'None', None, None, None, None, '2717666'), ('4302', '21988115', '1349602421', None, None, None, None, None, '2717666'), ('4302', '21988115', '1349602418', None, None, None, None, None, '2717666'), ('4302', '21988115', '1349602413', None, None, None, None, None, '2717666'), ('4302', '21988115', '1349602411', None, None, None, None, None, '2717666'), ('4302', '21988115', '1349602384', None, None, None, None, None, '2717666'), ('4302', '21988115', '1349602380', None, None, None, None, None, '2717666'), ('4302', '21988115', '1349602376', None, None, None, None, None, '2717666'), ('4302', '21988115', '1349602373', None, None, None, None, None, '2717666'), ('4302', '21988115', '1349602370', None, None, None, None, None, '2717666')] time used for this insertion : 0.01385951042175293 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2861933708190918 time spend to save output : 0.014081478118896484 total time spend for step 5 : 0.3002748489379883 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 (2717666) 2.02user 2.21system 0:08.88elapsed 47%CPU (0avgtext+0avgdata 160244maxresident)k 352inputs+8528outputs (7major+64216minor)pagefaults 0swaps