Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21749098 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=21749070 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_brun' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21749098) result : ((1347618723,), (1347618733,), (1347618734,), (1347618825,), (1347618826,), (1347618827,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21749070) result : ((1347618172,), (1347618217,), (1347618223,), (1347618228,), (1347618232,), (1347618281,), (1347618295,), (1347618303,), (1347618319,), (1347618556,), (1347618560,), (1347618562,), (1347618584,), (1347618614,), (1347618680,), (1347618683,), (1347618685,), (1347618688,), (1347618737,), (1347618739,), (1347618743,), (1347618746,), (1347618748,), (1347618777,), (1347618778,), (1347618781,), (1347618783,), (1347618788,), (1347618828,), (1347618830,), (1347618834,), (1347618837,), (1347618840,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21749099 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=21749070 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='autre_refus' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21749099) result : ((1347618717,), (1347618718,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21749070) result : ((1347618172,), (1347618217,), (1347618223,), (1347618228,), (1347618232,), (1347618281,), (1347618295,), (1347618303,), (1347618319,), (1347618556,), (1347618560,), (1347618562,), (1347618584,), (1347618614,), (1347618680,), (1347618683,), (1347618685,), (1347618688,), (1347618737,), (1347618739,), (1347618743,), (1347618746,), (1347618748,), (1347618777,), (1347618778,), (1347618781,), (1347618783,), (1347618788,), (1347618828,), (1347618830,), (1347618834,), (1347618837,), (1347618840,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21749100 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=21749070 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='papier' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21749100) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21749070) result : ((1347618172,), (1347618217,), (1347618223,), (1347618228,), (1347618232,), (1347618281,), (1347618295,), (1347618303,), (1347618319,), (1347618556,), (1347618560,), (1347618562,), (1347618584,), (1347618614,), (1347618680,), (1347618683,), (1347618685,), (1347618688,), (1347618737,), (1347618739,), (1347618743,), (1347618746,), (1347618748,), (1347618777,), (1347618778,), (1347618781,), (1347618783,), (1347618788,), (1347618828,), (1347618830,), (1347618834,), (1347618837,), (1347618840,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21749070 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','mal_croppe','metal','Carton_brun','Teint_Dans_La_Masse','flou','environnement','plastique','papier','autre_refus','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21749070 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','mal_croppe','metal','Carton_brun','Teint_Dans_La_Masse','flou','environnement','plastique','papier','autre_refus','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 21749070, 'sub_port_id': 21749101, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14273449, 'last_updated_at': datetime.datetime(2025, 3, 26, 21, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 21, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 21, 23, 2)}, 'metal': {'main_port_id': 21749070, 'sub_port_id': 21749102, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14273450, 'last_updated_at': datetime.datetime(2025, 3, 26, 21, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 21, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 21, 23, 2)}, 'Teint_Dans_La_Masse': {'main_port_id': 21749070, 'sub_port_id': 21749103, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14273451, 'last_updated_at': datetime.datetime(2025, 3, 26, 21, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 21, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 21, 23, 2)}, 'cartonnette': {'main_port_id': 21749070, 'sub_port_id': 21749104, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14273452, 'last_updated_at': datetime.datetime(2025, 3, 26, 21, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 21, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 21, 23, 2)}, 'kraft': {'main_port_id': 21749070, 'sub_port_id': 21749105, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14273453, 'last_updated_at': datetime.datetime(2025, 3, 26, 21, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 21, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 21, 23, 2)}, 'mal_croppe': {'main_port_id': 21749070, 'sub_port_id': 21749106, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14273454, 'last_updated_at': datetime.datetime(2025, 3, 26, 21, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 21, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 21, 23, 2)}, 'Carton_gris': {'main_port_id': 21749070, 'sub_port_id': 21749107, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14273455, 'last_updated_at': datetime.datetime(2025, 3, 26, 21, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 21, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 21, 23, 2)}, 'environnement': {'main_port_id': 21749070, 'sub_port_id': 21749108, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14273456, 'last_updated_at': datetime.datetime(2025, 3, 26, 21, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 21, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 21, 23, 2)}, 'flou': {'main_port_id': 21749070, 'sub_port_id': 21749109, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14273457, 'last_updated_at': datetime.datetime(2025, 3, 26, 21, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 21, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 21, 23, 2)}, 'Carton_brun': {'main_port_id': 21749070, 'sub_port_id': 21749110, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14273458, 'last_updated_at': datetime.datetime(2025, 3, 26, 21, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 21, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 21, 23, 2)}, 'autre_refus': {'main_port_id': 21749070, 'sub_port_id': 21749111, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14273459, 'last_updated_at': datetime.datetime(2025, 3, 26, 21, 23, 2), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 21, 23, 2), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 21, 23, 2)}, 'papier': {'main_port_id': 21749070, 'sub_port_id': 21749112, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14273460, 'last_updated_at': datetime.datetime(2025, 3, 26, 21, 25), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 21, 25), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 21, 23, 2)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21749101,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21749089 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21749102,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21749090 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21749103,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21749091 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21749104,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21749092 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21749105,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21749093 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21749106,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21749094 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21749107,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21749095 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21749108,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21749096 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21749109,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21749097 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21749110,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21749098 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21749111,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21749099 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21749112,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21749100 lien utilise dans velours : https://www.fotonower.com/velours/21749101,21749102,21749103,21749104,21749105,21749106,21749107,21749108,21749109,21749110,21749111,21749112?tags=plastique,metal,Teint_Dans_La_Masse,cartonnette,kraft,mal_croppe,Carton_gris,environnement,flou,Carton_brun,autre_refus,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21749070]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1347618840, 1347618837, 1347618834, 1347618830, 1347618828, 1347618788, 1347618783, 1347618781, 1347618778, 1347618777] map_info['map_portfolio_photo'] : {21749070: [1347618840, 1347618837, 1347618834, 1347618830, 1347618828, 1347618788, 1347618783, 1347618781, 1347618778, 1347618777, 1347618748, 1347618746, 1347618743, 1347618739, 1347618737, 1347618688, 1347618685, 1347618683, 1347618680, 1347618614, 1347618584, 1347618562, 1347618560, 1347618556, 1347618319, 1347618303, 1347618295, 1347618281, 1347618232, 1347618228, 1347618223, 1347618217, 1347618172]} final : False mtd_id 4302 list_pids : [1347618840, 1347618837, 1347618834, 1347618830, 1347618828, 1347618788, 1347618783, 1347618781, 1347618778, 1347618777] Looping around the photos to save general results len do output : 1 /21749070. 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, '2694337') ('4302', '21749070', '1347618840', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618837', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618834', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618830', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618828', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618788', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618783', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618781', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618778', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618777', None, None, None, None, None, '2694337') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '21749070', "{'plastique': 21749089, 'metal': 21749090, 'Teint_Dans_La_Masse': 21749091, 'cartonnette': 21749092, 'kraft': 21749093, 'mal_croppe': 21749094, 'Carton_gris': 21749095, 'environnement': 21749096, 'flou': 21749097, 'Carton_brun': 21749098, 'autre_refus': 21749099, 'papier': 21749100}", None, None, None, None, '2694337'), ('4302', '21749070', '1347618840', None, None, None, None, None, '2694337'), ('4302', '21749070', '1347618837', None, None, None, None, None, '2694337'), ('4302', '21749070', '1347618834', None, None, None, None, None, '2694337'), ('4302', '21749070', '1347618830', None, None, None, None, None, '2694337'), ('4302', '21749070', '1347618828', None, None, None, None, None, '2694337'), ('4302', '21749070', '1347618788', None, None, None, None, None, '2694337'), ('4302', '21749070', '1347618783', None, None, None, None, None, '2694337'), ('4302', '21749070', '1347618781', None, None, None, None, None, '2694337'), ('4302', '21749070', '1347618778', None, None, None, None, None, '2694337'), ('4302', '21749070', '1347618777', None, None, None, None, None, '2694337')] time used for this insertion : 0.016001462936401367 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.450840711593628 time spend to save output : 0.016312599182128906 total time spend for step 1 : 2.467153310775757 step2:final Wed Mar 26 21:27: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 (21749070) 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 21749070 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1347618172,1347618232,1347618228,1347618223,1347618217,1347618319,1347618303,1347618295,1347618281,1347618614,1347618584,1347618562,1347618560,1347618556,1347618688,1347618685,1347618683,1347618680,1347618748,1347618746,1347618743,1347618739,1347618737,1347618788,1347618783,1347618781,1347618778,1347618777,1347618840,1347618837,1347618834,1347618830,1347618828); 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([21749070]) Inside saveOutput : final : False verbose : True original output for save of step final : {1347618840: ('0.03469333342948728',), 1347618837: ('0.03469333342948728',), 1347618834: ('0.03469333342948728',), 1347618830: ('0.03469333342948728',), 1347618828: ('0.03469333342948728',), 1347618788: ('0.03469333342948728',), 1347618783: ('0.03469333342948728',), 1347618781: ('0.03469333342948728',), 1347618778: ('0.03469333342948728',), 1347618777: ('0.03469333342948728',)} new output for save of step final : {1347618840: ('0.03469333342948728',), 1347618837: ('0.03469333342948728',), 1347618834: ('0.03469333342948728',), 1347618830: ('0.03469333342948728',), 1347618828: ('0.03469333342948728',), 1347618788: ('0.03469333342948728',), 1347618783: ('0.03469333342948728',), 1347618781: ('0.03469333342948728',), 1347618778: ('0.03469333342948728',), 1347618777: ('0.03469333342948728',)} [1347618840, 1347618837, 1347618834, 1347618830, 1347618828, 1347618788, 1347618783, 1347618781, 1347618778, 1347618777] map_info['map_portfolio_photo'] : {21749070: [1347618840, 1347618837, 1347618834, 1347618830, 1347618828, 1347618788, 1347618783, 1347618781, 1347618778, 1347618777, 1347618748, 1347618746, 1347618743, 1347618739, 1347618737, 1347618688, 1347618685, 1347618683, 1347618680, 1347618614, 1347618584, 1347618562, 1347618560, 1347618556, 1347618319, 1347618303, 1347618295, 1347618281, 1347618232, 1347618228, 1347618223, 1347618217, 1347618172]} final : False mtd_id 4302 list_pids : [1347618840, 1347618837, 1347618834, 1347618830, 1347618828, 1347618788, 1347618783, 1347618781, 1347618778, 1347618777] Looping around the photos to save general results len do output : 10 /1347618840.Didn't retrieve data . /1347618837.Didn't retrieve data . /1347618834.Didn't retrieve data . /1347618830.Didn't retrieve data . /1347618828.Didn't retrieve data . /1347618788.Didn't retrieve data . /1347618783.Didn't retrieve data . /1347618781.Didn't retrieve data . /1347618778.Didn't retrieve data . /1347618777.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, '2694337') ('4302', '21749070', '1347618840', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618837', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618834', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618830', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618828', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618788', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618783', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618781', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618778', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618777', None, None, None, None, None, '2694337') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '21749070', '1347618840', '0.03469333342948728', None, None, None, None, '2694337'), ('4302', '21749070', '1347618837', '0.03469333342948728', None, None, None, None, '2694337'), ('4302', '21749070', '1347618834', '0.03469333342948728', None, None, None, None, '2694337'), ('4302', '21749070', '1347618830', '0.03469333342948728', None, None, None, None, '2694337'), ('4302', '21749070', '1347618828', '0.03469333342948728', None, None, None, None, '2694337'), ('4302', '21749070', '1347618788', '0.03469333342948728', None, None, None, None, '2694337'), ('4302', '21749070', '1347618783', '0.03469333342948728', None, None, None, None, '2694337'), ('4302', '21749070', '1347618781', '0.03469333342948728', None, None, None, None, '2694337'), ('4302', '21749070', '1347618778', '0.03469333342948728', None, None, None, None, '2694337'), ('4302', '21749070', '1347618777', '0.03469333342948728', None, None, None, None, '2694337')] time used for this insertion : 0.014351606369018555 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06906700134277344 time spend to save output : 0.015032291412353516 total time spend for step 2 : 0.08409929275512695 step3:velours_tree Wed Mar 26 21:27: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 : {21749070: [{'plastique': 21749089, 'metal': 21749090, 'Teint_Dans_La_Masse': 21749091, 'cartonnette': 21749092, 'kraft': 21749093, 'mal_croppe': 21749094, 'Carton_gris': 21749095, 'environnement': 21749096, 'flou': 21749097, 'Carton_brun': 21749098, 'autre_refus': 21749099, 'papier': 21749100}]} input_args_next_step : {21749070: ()} output_args : {21749070: [{'plastique': 21749089, 'metal': 21749090, 'Teint_Dans_La_Masse': 21749091, 'cartonnette': 21749092, 'kraft': 21749093, 'mal_croppe': 21749094, 'Carton_gris': 21749095, 'environnement': 21749096, 'flou': 21749097, 'Carton_brun': 21749098, 'autre_refus': 21749099, 'papier': 21749100}]} args : 21749070 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'plastique': 21749089, 'metal': 21749090, 'Teint_Dans_La_Masse': 21749091, 'cartonnette': 21749092, 'kraft': 21749093, 'mal_croppe': 21749094, 'Carton_gris': 21749095, 'environnement': 21749096, 'flou': 21749097, 'Carton_brun': 21749098, 'autre_refus': 21749099, 'papier': 21749100},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21749070) 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([21749070]) 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.32987093925476074 time spend to save output : 5.221366882324219e-05 total time spend for step 3 : 0.329923152923584 step4:send_mail_cod Wed Mar 26 21:27: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 : {1347618840: ('0.03469333342948728',), 1347618837: ('0.03469333342948728',), 1347618834: ('0.03469333342948728',), 1347618830: ('0.03469333342948728',), 1347618828: ('0.03469333342948728',), 1347618788: ('0.03469333342948728',), 1347618783: ('0.03469333342948728',), 1347618781: ('0.03469333342948728',), 1347618778: ('0.03469333342948728',), 1347618777: ('0.03469333342948728',)} input_args_next_step : {1347618840: ()} output_args : {1347618840: ('0.03469333342948728',), 1347618837: ('0.03469333342948728',), 1347618834: ('0.03469333342948728',), 1347618830: ('0.03469333342948728',), 1347618828: ('0.03469333342948728',), 1347618788: ('0.03469333342948728',), 1347618783: ('0.03469333342948728',), 1347618781: ('0.03469333342948728',), 1347618778: ('0.03469333342948728',), 1347618777: ('0.03469333342948728',)} args : 1347618840 depend.output_id : 0 input_args_next_step : {1347618840: ('0.03469333342948728',), 1347618837: ()} output_args : {1347618840: ('0.03469333342948728',), 1347618837: ('0.03469333342948728',), 1347618834: ('0.03469333342948728',), 1347618830: ('0.03469333342948728',), 1347618828: ('0.03469333342948728',), 1347618788: ('0.03469333342948728',), 1347618783: ('0.03469333342948728',), 1347618781: ('0.03469333342948728',), 1347618778: ('0.03469333342948728',), 1347618777: ('0.03469333342948728',)} args : 1347618837 depend.output_id : 0 input_args_next_step : {1347618840: ('0.03469333342948728',), 1347618837: ('0.03469333342948728',), 1347618834: ()} output_args : {1347618840: ('0.03469333342948728',), 1347618837: ('0.03469333342948728',), 1347618834: ('0.03469333342948728',), 1347618830: ('0.03469333342948728',), 1347618828: ('0.03469333342948728',), 1347618788: ('0.03469333342948728',), 1347618783: ('0.03469333342948728',), 1347618781: ('0.03469333342948728',), 1347618778: ('0.03469333342948728',), 1347618777: ('0.03469333342948728',)} args : 1347618834 depend.output_id : 0 input_args_next_step : {1347618840: ('0.03469333342948728',), 1347618837: ('0.03469333342948728',), 1347618834: ('0.03469333342948728',), 1347618830: ()} output_args : {1347618840: ('0.03469333342948728',), 1347618837: ('0.03469333342948728',), 1347618834: ('0.03469333342948728',), 1347618830: ('0.03469333342948728',), 1347618828: ('0.03469333342948728',), 1347618788: ('0.03469333342948728',), 1347618783: ('0.03469333342948728',), 1347618781: ('0.03469333342948728',), 1347618778: ('0.03469333342948728',), 1347618777: ('0.03469333342948728',)} args : 1347618830 depend.output_id : 0 input_args_next_step : {1347618840: ('0.03469333342948728',), 1347618837: ('0.03469333342948728',), 1347618834: ('0.03469333342948728',), 1347618830: ('0.03469333342948728',), 1347618828: ()} output_args : {1347618840: ('0.03469333342948728',), 1347618837: ('0.03469333342948728',), 1347618834: ('0.03469333342948728',), 1347618830: ('0.03469333342948728',), 1347618828: ('0.03469333342948728',), 1347618788: ('0.03469333342948728',), 1347618783: ('0.03469333342948728',), 1347618781: ('0.03469333342948728',), 1347618778: ('0.03469333342948728',), 1347618777: ('0.03469333342948728',)} args : 1347618828 depend.output_id : 0 input_args_next_step : {1347618840: ('0.03469333342948728',), 1347618837: ('0.03469333342948728',), 1347618834: ('0.03469333342948728',), 1347618830: ('0.03469333342948728',), 1347618828: ('0.03469333342948728',), 1347618788: ()} output_args : {1347618840: ('0.03469333342948728',), 1347618837: ('0.03469333342948728',), 1347618834: ('0.03469333342948728',), 1347618830: ('0.03469333342948728',), 1347618828: ('0.03469333342948728',), 1347618788: ('0.03469333342948728',), 1347618783: ('0.03469333342948728',), 1347618781: ('0.03469333342948728',), 1347618778: ('0.03469333342948728',), 1347618777: ('0.03469333342948728',)} args : 1347618788 depend.output_id : 0 input_args_next_step : {1347618840: ('0.03469333342948728',), 1347618837: ('0.03469333342948728',), 1347618834: ('0.03469333342948728',), 1347618830: ('0.03469333342948728',), 1347618828: ('0.03469333342948728',), 1347618788: ('0.03469333342948728',), 1347618783: ()} output_args : {1347618840: ('0.03469333342948728',), 1347618837: ('0.03469333342948728',), 1347618834: ('0.03469333342948728',), 1347618830: ('0.03469333342948728',), 1347618828: ('0.03469333342948728',), 1347618788: ('0.03469333342948728',), 1347618783: ('0.03469333342948728',), 1347618781: ('0.03469333342948728',), 1347618778: ('0.03469333342948728',), 1347618777: ('0.03469333342948728',)} args : 1347618783 depend.output_id : 0 input_args_next_step : {1347618840: ('0.03469333342948728',), 1347618837: ('0.03469333342948728',), 1347618834: ('0.03469333342948728',), 1347618830: ('0.03469333342948728',), 1347618828: ('0.03469333342948728',), 1347618788: ('0.03469333342948728',), 1347618783: ('0.03469333342948728',), 1347618781: ()} output_args : {1347618840: ('0.03469333342948728',), 1347618837: ('0.03469333342948728',), 1347618834: ('0.03469333342948728',), 1347618830: ('0.03469333342948728',), 1347618828: ('0.03469333342948728',), 1347618788: ('0.03469333342948728',), 1347618783: ('0.03469333342948728',), 1347618781: ('0.03469333342948728',), 1347618778: ('0.03469333342948728',), 1347618777: ('0.03469333342948728',)} args : 1347618781 depend.output_id : 0 input_args_next_step : {1347618840: ('0.03469333342948728',), 1347618837: ('0.03469333342948728',), 1347618834: ('0.03469333342948728',), 1347618830: ('0.03469333342948728',), 1347618828: ('0.03469333342948728',), 1347618788: ('0.03469333342948728',), 1347618783: ('0.03469333342948728',), 1347618781: ('0.03469333342948728',), 1347618778: ()} output_args : {1347618840: ('0.03469333342948728',), 1347618837: ('0.03469333342948728',), 1347618834: ('0.03469333342948728',), 1347618830: ('0.03469333342948728',), 1347618828: ('0.03469333342948728',), 1347618788: ('0.03469333342948728',), 1347618783: ('0.03469333342948728',), 1347618781: ('0.03469333342948728',), 1347618778: ('0.03469333342948728',), 1347618777: ('0.03469333342948728',)} args : 1347618778 depend.output_id : 0 input_args_next_step : {1347618840: ('0.03469333342948728',), 1347618837: ('0.03469333342948728',), 1347618834: ('0.03469333342948728',), 1347618830: ('0.03469333342948728',), 1347618828: ('0.03469333342948728',), 1347618788: ('0.03469333342948728',), 1347618783: ('0.03469333342948728',), 1347618781: ('0.03469333342948728',), 1347618778: ('0.03469333342948728',), 1347618777: ()} output_args : {1347618840: ('0.03469333342948728',), 1347618837: ('0.03469333342948728',), 1347618834: ('0.03469333342948728',), 1347618830: ('0.03469333342948728',), 1347618828: ('0.03469333342948728',), 1347618788: ('0.03469333342948728',), 1347618783: ('0.03469333342948728',), 1347618781: ('0.03469333342948728',), 1347618778: ('0.03469333342948728',), 1347618777: ('0.03469333342948728',)} args : 1347618777 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 : {21749070: [{'plastique': 21749089, 'metal': 21749090, 'Teint_Dans_La_Masse': 21749091, 'cartonnette': 21749092, 'kraft': 21749093, 'mal_croppe': 21749094, 'Carton_gris': 21749095, 'environnement': 21749096, 'flou': 21749097, 'Carton_brun': 21749098, 'autre_refus': 21749099, 'papier': 21749100}]} input_args_next_step : {1347618840: ('0.03469333342948728',), 1347618837: ('0.03469333342948728',), 1347618834: ('0.03469333342948728',), 1347618830: ('0.03469333342948728',), 1347618828: ('0.03469333342948728',), 1347618788: ('0.03469333342948728',), 1347618783: ('0.03469333342948728',), 1347618781: ('0.03469333342948728',), 1347618778: ('0.03469333342948728',), 1347618777: ('0.03469333342948728',), 21749070: ()} output_args : {21749070: [{'plastique': 21749089, 'metal': 21749090, 'Teint_Dans_La_Masse': 21749091, 'cartonnette': 21749092, 'kraft': 21749093, 'mal_croppe': 21749094, 'Carton_gris': 21749095, 'environnement': 21749096, 'flou': 21749097, 'Carton_brun': 21749098, 'autre_refus': 21749099, 'papier': 21749100}]} args : 21749070 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 :11, first value : ('0.03469333342948728',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21749070) 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 (1347618840,1347618837,1347618834,1347618830,1347618828,1347618788,1347618783,1347618781,1347618778,1347618777) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1347618777 begin to download photo : 1347618783 begin to download photo : 1347618830 begin to download photo : 1347618840 download finish for photo 1347618777 begin to download photo : 1347618778 download finish for photo 1347618830 begin to download photo : 1347618834 download finish for photo 1347618840 download finish for photo 1347618783 begin to download photo : 1347618788 download finish for photo 1347618834 download finish for photo 1347618778 begin to download photo : 1347618837 begin to download photo : 1347618781 download finish for photo 1347618788 begin to download photo : 1347618828 download finish for photo 1347618781 download finish for photo 1347618828 download finish for photo 1347618837 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P21749070_26-03-2025_21_27_01.pdf 21749089 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=21749089 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347618546: '1743020433_2258862_1347618172_d3340ceba14b7688e8ace44df4897181_rle_crop_3731911291_0.png', 1347618727: '1743020551_2260195_1347618614_b560c9dc123657ee5a771eea8fb5d02a_rle_crop_3731912860_0.png', 1347618728: '1743020551_2260195_1347618303_ba70c72b9354c76ba8b6cb168ca114b3_rle_crop_3731912867_0.png', 1347618729: '1743020551_2260195_1347618295_07426032c5885bbe6966270cce306534_rle_crop_3731912889_0.png', 1347618730: '1743020551_2260195_1347618295_07426032c5885bbe6966270cce306534_rle_crop_3731912885_0.png', 1347618731: '1743020551_2260195_1347618281_055b916dd75f4fd1ecb50b34017d7333_rle_crop_3731912908_0.png', 1347618735: '1743020561_3847897_1347618584_c517c2f0fb068fb03c2de4368f9cd27f_rle_crop_3731912899_0.png', 1347618820: '1743020684_3850454_1347618737_41df8263211837e7bd82838b819ee992_rle_crop_3731913256_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/3b3b74b63d4fcc80f93ac01a559ca30d_55771991.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/2512ac82a41f819163e92479bc966bda_70082357.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/3c975be1e81becea1c5726f7c8226d6d_853349.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/d57df4cd48ca3476085268a5c3374dfb_30751795.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/b13af61fcedda4ad804b921c949f11ab_97014937.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/231cc85982dd4b557ee4160199547004_69704154.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/ce7bf0a49943716a520122a95d51db90_35022887.png change filename to text .imagette217490891743020821/ imagette217490891743020821/1743020551_2260195_1347618303_ba70c72b9354c76ba8b6cb168ca114b3_rle_crop_3731912867_0.png.png imagette217490891743020821/1743020551_2260195_1347618295_07426032c5885bbe6966270cce306534_rle_crop_3731912885_0.png.png imagette217490891743020821/1743020433_2258862_1347618172_d3340ceba14b7688e8ace44df4897181_rle_crop_3731911291_0.png.png imagette217490891743020821/1743020551_2260195_1347618614_b560c9dc123657ee5a771eea8fb5d02a_rle_crop_3731912860_0.png.png imagette217490891743020821/1743020551_2260195_1347618295_07426032c5885bbe6966270cce306534_rle_crop_3731912889_0.png.png imagette217490891743020821/1743020561_3847897_1347618584_c517c2f0fb068fb03c2de4368f9cd27f_rle_crop_3731912899_0.png.png imagette217490891743020821/1743020684_3850454_1347618737_41df8263211837e7bd82838b819ee992_rle_crop_3731913256_0.png.png imagette217490891743020821/1743020551_2260195_1347618281_055b916dd75f4fd1ecb50b34017d7333_rle_crop_3731912908_0.png.png imagette217490901743020821/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/8adf4eb8fe549e00d46f662555b18c04_58073824.png imagette217490891743020821 21749090 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=21749090 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217490901743020821 21749092 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=21749092 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347618721: '1743020551_2260195_1347618281_055b916dd75f4fd1ecb50b34017d7333_rle_crop_3731912912_0.png', 1347618732: '1743020561_3847897_1347618562_34f99b70b733708bd00ed1f80882b6cb_rle_crop_3731912921_0.png', 1347618817: '1743020684_3850454_1347618746_41b901027278aa9acfc0b7c5177cad68_rle_crop_3731913150_0.png', 1347618824: '1743020674_2261333_1347618680_df304a1007a9d2a4998c9afac4bb9021_rle_crop_3731913303_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/c413365bd19782c0dbcd97901528eb23_37621139.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/887d7a7b6e5ec46df95087aba084702c_63065341.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/f813b378b2f93c0a384a3d7b7e2848b9_1224323.png change filename to text .imagette217490921743020821/ imagette217490921743020821/1743020674_2261333_1347618680_df304a1007a9d2a4998c9afac4bb9021_rle_crop_3731913303_0.png.png imagette217490921743020821/1743020551_2260195_1347618281_055b916dd75f4fd1ecb50b34017d7333_rle_crop_3731912912_0.png.png imagette217490921743020821/1743020561_3847897_1347618562_34f99b70b733708bd00ed1f80882b6cb_rle_crop_3731912921_0.png.png imagette217490921743020821/1743020684_3850454_1347618746_41b901027278aa9acfc0b7c5177cad68_rle_crop_3731913150_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/7382f5a01e1d334c564c2af24836f460_85084282.png imagette217490921743020821 21749093 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=21749093 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347618823: '1743020684_3850454_1347618743_804e8c4c23a88a4c7f1caf2b64a431bf_rle_crop_3731913189_0.png'} change filename to text .imagette217490931743020822/ imagette217490931743020822/1743020684_3850454_1347618743_804e8c4c23a88a4c7f1caf2b64a431bf_rle_crop_3731913189_0.png.png imagette217490941743020822/ imagette217490971743020822/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/853f13efefd54ec7db0c42da355ced9f_28105770.png imagette217490931743020822 21749094 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=21749094 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217490941743020822 21749097 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=21749097 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217490971743020822 21749099 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=21749099 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347618717: '1743020551_2260195_1347618614_b560c9dc123657ee5a771eea8fb5d02a_rle_crop_3731912856_0.png', 1347618718: '1743020551_2260195_1347618295_07426032c5885bbe6966270cce306534_rle_crop_3731912873_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/b3ec57112991a44734ba798ca1600417_45972626.png change filename to text .imagette217490991743020822/ imagette217490991743020822/1743020551_2260195_1347618295_07426032c5885bbe6966270cce306534_rle_crop_3731912873_0.png.png imagette217490991743020822/1743020551_2260195_1347618614_b560c9dc123657ee5a771eea8fb5d02a_rle_crop_3731912856_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/53af2ebc3addf634cd4353141730bbbd_81233340.png imagette217490991743020822 21749091 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=21749091 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347618557: '1743020441_3844993_1347618217_31e7f2ce8ca8fc4f043cb14dc0ff6cda_rle_crop_3731911341_0.png', 1347618716: '1743020551_2260195_1347618295_07426032c5885bbe6966270cce306534_rle_crop_3731912884_0.png', 1347618724: '1743020561_3847897_1347618584_c517c2f0fb068fb03c2de4368f9cd27f_rle_crop_3731912900_0.png', 1347618725: '1743020561_3847897_1347618560_d862723f770903d48098b3fd786a0ea2_rle_crop_3731912936_0.png', 1347618726: '1743020561_3847897_1347618556_f029a2913a6fa54bf7c51c0a97c8aab2_rle_crop_3731912949_0.png', 1347618814: '1743020684_3850454_1347618743_804e8c4c23a88a4c7f1caf2b64a431bf_rle_crop_3731913191_0.png', 1347618815: '1743020684_3850454_1347618739_28b42c58f5b73d727e1e706e1268c3de_rle_crop_3731913245_0.png', 1347618816: '1743020684_3850454_1347618737_41df8263211837e7bd82838b819ee992_rle_crop_3731913263_0.png', 1347618818: '1743020674_2261333_1347618685_8aca329eddff7d7aa22f78cd410e4a2b_rle_crop_3731913281_0.png', 1347618819: '1743020674_2261333_1347618685_8aca329eddff7d7aa22f78cd410e4a2b_rle_crop_3731913283_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/4c94a6396011a8ca0c5bb0a87b1c5ef7_80545134.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/764b9b18720a2084dd0b1e24dbc74987_48879987.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/be6b1b56e9c5df9d5ed62197b327d4f7_17901181.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/ad975b4bd3a381a39a667574b07fc073_3376943.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/30d085e5b0294138ef83504cab455204_23211001.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/bd2657db6455ca7aa03f91cc69a29f59_42678689.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/fd0516dcec60555e47c48dd6401177cf_1098319.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/940f74eae9a9c225c9af905cfae77100_10286691.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/e1c95ed7c6678b1e7aa8698f14ebf141_13850056.png change filename to text .imagette217490911743020822/ imagette217490911743020822/1743020674_2261333_1347618685_8aca329eddff7d7aa22f78cd410e4a2b_rle_crop_3731913281_0.png.png imagette217490911743020822/1743020684_3850454_1347618743_804e8c4c23a88a4c7f1caf2b64a431bf_rle_crop_3731913191_0.png.png imagette217490911743020822/1743020674_2261333_1347618685_8aca329eddff7d7aa22f78cd410e4a2b_rle_crop_3731913283_0.png.png imagette217490911743020822/1743020551_2260195_1347618295_07426032c5885bbe6966270cce306534_rle_crop_3731912884_0.png.png imagette217490911743020822/1743020684_3850454_1347618737_41df8263211837e7bd82838b819ee992_rle_crop_3731913263_0.png.png imagette217490911743020822/1743020561_3847897_1347618584_c517c2f0fb068fb03c2de4368f9cd27f_rle_crop_3731912900_0.png.png imagette217490911743020822/1743020561_3847897_1347618560_d862723f770903d48098b3fd786a0ea2_rle_crop_3731912936_0.png.png imagette217490911743020822/1743020684_3850454_1347618739_28b42c58f5b73d727e1e706e1268c3de_rle_crop_3731913245_0.png.png imagette217490911743020822/1743020441_3844993_1347618217_31e7f2ce8ca8fc4f043cb14dc0ff6cda_rle_crop_3731911341_0.png.png imagette217490911743020822/1743020561_3847897_1347618556_f029a2913a6fa54bf7c51c0a97c8aab2_rle_crop_3731912949_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/5c4d28fd0d981f61e9a886d8e28ea12a_50483853.png imagette217490911743020822 21749095 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=21749095 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347618719: '1743020551_2260195_1347618614_b560c9dc123657ee5a771eea8fb5d02a_rle_crop_3731912854_0.png', 1347618720: '1743020551_2260195_1347618303_ba70c72b9354c76ba8b6cb168ca114b3_rle_crop_3731912863_0.png', 1347618821: '1743020674_2261333_1347618683_d30c0651dd1ce3bfed811a73b89961da_rle_crop_3731913292_0.png', 1347618822: '1743020674_2261333_1347618683_d30c0651dd1ce3bfed811a73b89961da_rle_crop_3731913288_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/7237d150882e497e157efade13d6778e_92792125.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/080e74532347a2a38af1739752d8ae6b_39016556.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/4af92cc27cd08f02bde2e4e58386b312_91357969.png change filename to text .imagette217490951743020822/ imagette217490951743020822/1743020551_2260195_1347618303_ba70c72b9354c76ba8b6cb168ca114b3_rle_crop_3731912863_0.png.png imagette217490951743020822/1743020674_2261333_1347618683_d30c0651dd1ce3bfed811a73b89961da_rle_crop_3731913292_0.png.png imagette217490951743020822/1743020674_2261333_1347618683_d30c0651dd1ce3bfed811a73b89961da_rle_crop_3731913288_0.png.png imagette217490951743020822/1743020551_2260195_1347618614_b560c9dc123657ee5a771eea8fb5d02a_rle_crop_3731912854_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/b1ba75ff8bbaf352cb1d87d3522b7cf0_41839435.png imagette217490951743020822 21749098 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=21749098 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347618723: '1743020551_2260195_1347618281_055b916dd75f4fd1ecb50b34017d7333_rle_crop_3731912909_0.png', 1347618733: '1743020561_3847897_1347618562_34f99b70b733708bd00ed1f80882b6cb_rle_crop_3731912928_0.png', 1347618734: '1743020561_3847897_1347618560_d862723f770903d48098b3fd786a0ea2_rle_crop_3731912935_0.png', 1347618825: '1743020674_2261333_1347618685_8aca329eddff7d7aa22f78cd410e4a2b_rle_crop_3731913275_0.png', 1347618826: '1743020674_2261333_1347618683_d30c0651dd1ce3bfed811a73b89961da_rle_crop_3731913291_0.png', 1347618827: '1743020674_2261333_1347618680_df304a1007a9d2a4998c9afac4bb9021_rle_crop_3731913307_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/4219a96924f862fd83099523e50d5489_83086235.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/7b59aa23d1eca5323713cf4b72d757b0_9849964.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/1696ca6e5dbd44ea68b5a1dd6c470f0a_97113423.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/9918e993e4e350974b0ba4551cf3f777_98821400.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/3ae8006a382484246c620d03c1b0ce9e_95136161.png change filename to text .imagette217490981743020823/ imagette217490981743020823/1743020674_2261333_1347618680_df304a1007a9d2a4998c9afac4bb9021_rle_crop_3731913307_0.png.png imagette217490981743020823/1743020674_2261333_1347618683_d30c0651dd1ce3bfed811a73b89961da_rle_crop_3731913291_0.png.png imagette217490981743020823/1743020561_3847897_1347618562_34f99b70b733708bd00ed1f80882b6cb_rle_crop_3731912928_0.png.png imagette217490981743020823/1743020674_2261333_1347618685_8aca329eddff7d7aa22f78cd410e4a2b_rle_crop_3731913275_0.png.png imagette217490981743020823/1743020561_3847897_1347618560_d862723f770903d48098b3fd786a0ea2_rle_crop_3731912935_0.png.png imagette217490981743020823/1743020551_2260195_1347618281_055b916dd75f4fd1ecb50b34017d7333_rle_crop_3731912909_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/0fcf06cda7cf5ed8dcf81bf7411b2539_16277622.png imagette217490981743020823 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21749070 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21749101,21749102,21749103,21749104,21749105,21749106,21749107,21749108,21749109,21749110,21749111,21749112?tags=plastique,metal,Teint_Dans_La_Masse,cartonnette,kraft,mal_croppe,Carton_gris,environnement,flou,Carton_brun,autre_refus,papier your option no_mail is active, we will not send the real mail to your client args[1347618840] : ('0.03469333342948728',) no score found for photo 1347618840 We are sending mail with results at report@fotonower.com args[1347618837] : ('0.03469333342948728',) no score found for photo 1347618837 We are sending mail with results at report@fotonower.com args[1347618834] : ('0.03469333342948728',) no score found for photo 1347618834 We are sending mail with results at report@fotonower.com args[1347618830] : ('0.03469333342948728',) no score found for photo 1347618830 We are sending mail with results at report@fotonower.com args[1347618828] : ('0.03469333342948728',) no score found for photo 1347618828 We are sending mail with results at report@fotonower.com args[1347618788] : ('0.03469333342948728',) no score found for photo 1347618788 We are sending mail with results at report@fotonower.com args[1347618783] : ('0.03469333342948728',) no score found for photo 1347618783 We are sending mail with results at report@fotonower.com args[1347618781] : ('0.03469333342948728',) no score found for photo 1347618781 We are sending mail with results at report@fotonower.com args[1347618778] : ('0.03469333342948728',) no score found for photo 1347618778 We are sending mail with results at report@fotonower.com args[1347618777] : ('0.03469333342948728',) no score found for photo 1347618777 We are sending mail with results at report@fotonower.com refus_total : 0.03469333342948728 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=21749070 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_P21749070_26-03-2025_21_27_01.pdf results_Auto_P21749070_26-03-2025_21_27_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21749070_26-03-2025_21_27_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21749070','results_Auto_P21749070_26-03-2025_21_27_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21749070_26-03-2025_21_27_01.pdf','pdf','','0.2','0.03469333342948728') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21749070]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1347618840, 1347618837, 1347618834, 1347618830, 1347618828, 1347618788, 1347618783, 1347618781, 1347618778, 1347618777] map_info['map_portfolio_photo'] : {21749070: [1347618840, 1347618837, 1347618834, 1347618830, 1347618828, 1347618788, 1347618783, 1347618781, 1347618778, 1347618777, 1347618748, 1347618746, 1347618743, 1347618739, 1347618737, 1347618688, 1347618685, 1347618683, 1347618680, 1347618614, 1347618584, 1347618562, 1347618560, 1347618556, 1347618319, 1347618303, 1347618295, 1347618281, 1347618232, 1347618228, 1347618223, 1347618217, 1347618172]} final : False mtd_id 4302 list_pids : [1347618840, 1347618837, 1347618834, 1347618830, 1347618828, 1347618788, 1347618783, 1347618781, 1347618778, 1347618777] 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, '2694337') ('4302', '21749070', '1347618840', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618837', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618834', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618830', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618828', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618788', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618783', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618781', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618778', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618777', None, None, None, None, None, '2694337') 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', '21749070', '1347618840', None, None, None, None, None, '2694337'), ('4302', '21749070', '1347618837', None, None, None, None, None, '2694337'), ('4302', '21749070', '1347618834', None, None, None, None, None, '2694337'), ('4302', '21749070', '1347618830', None, None, None, None, None, '2694337'), ('4302', '21749070', '1347618828', None, None, None, None, None, '2694337'), ('4302', '21749070', '1347618788', None, None, None, None, None, '2694337'), ('4302', '21749070', '1347618783', None, None, None, None, None, '2694337'), ('4302', '21749070', '1347618781', None, None, None, None, None, '2694337'), ('4302', '21749070', '1347618778', None, None, None, None, None, '2694337'), ('4302', '21749070', '1347618777', None, None, None, None, None, '2694337')] time used for this insertion : 0.015567541122436523 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.4416322708129883 time spend to save output : 0.015826940536499023 total time spend for step 4 : 3.4574592113494873 step5:split_time_score Wed Mar 26 21:27:04 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 : ['21749070'] 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 : [('21749070',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21749070) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1347618840: {'path': 'temp/1743020820_527776_1347618840_559442f501c7c5f8099af292039d19d7.jpg', 'extension': 'jpg'}, 1347618777: {'path': 'temp/1743020820_527776_1347618777_46f25ec7dc749c1facc64f1028221429.jpg', 'extension': 'jpg'}, 1347618778: {'path': 'temp/1743020820_527776_1347618778_843f41eadc972bed2c9f4f98cb7625c1.jpg', 'extension': 'jpg'}, 1347618781: {'path': 'temp/1743020820_527776_1347618781_138b0ac5ace461dba9723be56187105c.jpg', 'extension': 'jpg'}, 1347618783: {'path': 'temp/1743020820_527776_1347618783_48e44d820e6c51b53148aa633ed91028.jpg', 'extension': 'jpg'}, 1347618788: {'path': 'temp/1743020820_527776_1347618788_6772b5650f24bca3f286dfff1406e3ed.jpg', 'extension': 'jpg'}, 1347618828: {'path': 'temp/1743020820_527776_1347618828_d22ca3c75e0504b12bd59314cf4ae609.jpg', 'extension': 'jpg'}, 1347618830: {'path': 'temp/1743020820_527776_1347618830_4e057364a31d6368b110593ac2d3644d.jpg', 'extension': 'jpg'}, 1347618834: {'path': 'temp/1743020820_527776_1347618834_c71e5210385babcff82aded227da21d4.jpg', 'extension': 'jpg'}, 1347618837: {'path': 'temp/1743020820_527776_1347618837_2a6ba272fc3a64deb0777d8c9de6543d.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 = 21749070; (('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 = 21749070 group by h (('21', 33),) 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=21749070 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 (21749070) 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 (21749070) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 26032025 21749070 Nombre de photos uploadées : 33 / 23040 (0%) 26032025 21749070 Nombre de photos taguées (types de déchets): 0 / 33 (0%) 26032025 21749070 Nombre de photos taguées (volume) : 0 / 33 (0%) [{'photo_id': 1347618172, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/d3340ceba14b7688e8ace44df4897181.jpg', 'username': None, 'uploaded_at': 1743020295, 'text': 'image_26032025_21_16_24_010137m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347618232, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/9025e488ab8213e0b33f7dd14a155b1d.jpg', 'username': None, 'uploaded_at': 1743020355, 'text': 'image_26032025_21_16_34_010144m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347618228, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/77468f2e492048d38270781468441f9d.jpg', 'username': None, 'uploaded_at': 1743020355, 'text': 'image_26032025_21_17_13_9123.jpg'}, {'photo_id': 1347618223, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/cf7002e83edcc8f8e335822572ab05db.jpg', 'username': None, 'uploaded_at': 1743020355, 'text': 'image_26032025_21_17_34_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0016460418701171875 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21749070, '2025-03-26' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1689284,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.025250673294067383 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= 1689284 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1689284, 'dashboard_run_id': 1699043, 'mtr_portfolio_id': 21747195, 'dashboard_result_id': 9649516, '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_P21747195_26-03-2025_21_05_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21747209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21747210, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21747211, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21747212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21747213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21747214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21747215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21747216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21747217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21747218, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21747219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21747220, 'pht': 3726}}"}, {'dashboat_entry_day': 1689284, 'dashboard_run_id': 1699043, 'mtr_portfolio_id': 21748496, 'dashboard_result_id': 9649517, '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_P21748496_26-03-2025_21_19_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21748497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21748498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21748499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21748500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21748501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21748502, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21748503, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21748504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21748505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21748506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21748507, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21748508, 'pht': 3726}}"}, {'dashboat_entry_day': 1689284, 'dashboard_run_id': 1699043, 'mtr_portfolio_id': 21749070, 'dashboard_result_id': 9649518, '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_P21749070_26-03-2025_21_25_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21749089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21749090, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21749091, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21749092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21749093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21749094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21749095, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21749096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21749097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21749098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21749099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21749100, '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 = 21747195 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': 2694196, 'mtr_portfolio_id': 21747195, 'created_at': datetime.datetime(2025, 3, 26, 21, 4, 59), 'result': '0.037479985816117355', 'result_long': None, 'result_double': None}] Qualite : 0.037479985816117355 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21747195 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21747195_26-03-2025_21_05_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21747195 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_P21747195_26-03-2025_21_05_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21747209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21747210, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21747211, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21747212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21747213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21747214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21747215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21747216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21747217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21747218, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21747219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21747220, 'pht': 3726}}" where mtr_portfolio_id = 21747195 and dashboard_run_id = 1699043 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`=21747195 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9649516, 0.037479985816117355, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21747195_26-03-2025_21_05_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21747209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21747210, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21747211, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21747212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21747213, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21747214, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21747215, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21747216, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21747217, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21747218, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21747219, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21747220, '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 = 21748496 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': 2694298, 'mtr_portfolio_id': 21748496, 'created_at': datetime.datetime(2025, 3, 26, 21, 19, 58), 'result': '0.01982916516041119', 'result_long': None, 'result_double': None}] Qualite : 0.01982916516041119 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21748496 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21748496_26-03-2025_21_19_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21748496 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_P21748496_26-03-2025_21_19_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21748497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21748498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21748499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21748500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21748501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21748502, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21748503, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21748504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21748505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21748506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21748507, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21748508, 'pht': 3726}}" where mtr_portfolio_id = 21748496 and dashboard_run_id = 1699043 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`=21748496 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9649517, 0.01982916516041119, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21748496_26-03-2025_21_19_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21748497, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21748498, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21748499, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21748500, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21748501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21748502, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21748503, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21748504, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21748505, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21748506, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21748507, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21748508, '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 = 21749070 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': 2694337, 'mtr_portfolio_id': 21749070, 'created_at': datetime.datetime(2025, 3, 26, 21, 27), 'result': '0.03469333342948728', 'result_long': None, 'result_double': None}] Qualite : 0.03469333342948728 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21749070 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21749070_26-03-2025_21_27_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21749070 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_P21749070_26-03-2025_21_27_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21749089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21749090, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21749091, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21749092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21749093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21749094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21749095, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21749096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21749097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21749098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21749099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21749100, 'pht': 3726}}" where mtr_portfolio_id = 21749070 and dashboard_run_id = 1699043 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`=21749070 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9649518, 0.03469333342948728, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21749070_26-03-2025_21_27_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21749089, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21749090, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21749091, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21749092, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21749093, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21749094, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21749095, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21749096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21749097, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21749098, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21749099, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21749100, '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 (21747195,21748496,21749070) result : ((1347603748,), (1347603807,), (1347603843,), (1347603990,), (1347604010,), (1347604029,), (1347604040,), (1347604044,), (1347604071,), (1347604377,), (1347604393,), (1347604413,), (1347604426,), (1347604591,), (1347604593,), (1347604621,), (1347605000,), (1347605079,), (1347605115,), (1347605343,), (1347605349,), (1347605351,), (1347605363,), (1347605383,), (1347605393,), (1347605415,), (1347605446,), (1347605472,), (1347605498,), (1347605836,), (1347611089,), (1347611891,), (1347612977,), (1347613002,), (1347613098,), (1347613178,), (1347615211,), (1347615363,), (1347615367,), (1347615387,), (1347615394,), (1347615611,), (1347615634,), (1347615645,), (1347615660,), (1347615664,), (1347615689,), (1347615828,), (1347615867,), (1347615901,), (1347615948,), (1347616384,), (1347616413,), (1347616438,), (1347616468,), (1347616495,), (1347616652,), (1347616666,), (1347616714,), (1347616744,), (1347616791,), (1347617235,), (1347617266,), (1347617288,), (1347617305,), (1347617543,), (1347617550,), (1347617556,), (1347617643,), (1347618174,), (1347618172,), (1347618217,), (1347618223,), (1347618228,), (1347618232,), (1347618281,), (1347618295,), (1347618303,), (1347618319,), (1347618556,), (1347618560,), (1347618562,), (1347618584,), (1347618614,), (1347618680,), (1347618683,), (1347618685,), (1347618688,), (1347618737,), (1347618739,), (1347618743,), (1347618746,), (1347618748,), (1347618777,), (1347618778,), (1347618781,), (1347618783,), (1347618788,), (1347618828,), (1347618830,), (1347618834,), (1347618837,), (1347618840,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26032025': {'nb_upload': 33, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21749070]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1347618840, 1347618837, 1347618834, 1347618830, 1347618828, 1347618788, 1347618783, 1347618781, 1347618778, 1347618777] map_info['map_portfolio_photo'] : {21749070: [1347618840, 1347618837, 1347618834, 1347618830, 1347618828, 1347618788, 1347618783, 1347618781, 1347618778, 1347618777, 1347618748, 1347618746, 1347618743, 1347618739, 1347618737, 1347618688, 1347618685, 1347618683, 1347618680, 1347618614, 1347618584, 1347618562, 1347618560, 1347618556, 1347618319, 1347618303, 1347618295, 1347618281, 1347618232, 1347618228, 1347618223, 1347618217, 1347618172]} final : True mtd_id 4302 list_pids : [1347618840, 1347618837, 1347618834, 1347618830, 1347618828, 1347618788, 1347618783, 1347618781, 1347618778, 1347618777] Looping around the photos to save general results len do output : 1 /21749070Didn'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, '2694337') ('4302', '21749070', '1347618840', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618837', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618834', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618830', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618828', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618788', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618783', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618781', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618778', None, None, None, None, None, '2694337') ('4302', None, None, None, None, None, None, None, '2694337') ('4302', '21749070', '1347618777', None, None, None, None, None, '2694337') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '21749070', 'None', None, None, None, None, '2694337'), ('4302', '21749070', '1347618840', None, None, None, None, None, '2694337'), ('4302', '21749070', '1347618837', None, None, None, None, None, '2694337'), ('4302', '21749070', '1347618834', None, None, None, None, None, '2694337'), ('4302', '21749070', '1347618830', None, None, None, None, None, '2694337'), ('4302', '21749070', '1347618828', None, None, None, None, None, '2694337'), ('4302', '21749070', '1347618788', None, None, None, None, None, '2694337'), ('4302', '21749070', '1347618783', None, None, None, None, None, '2694337'), ('4302', '21749070', '1347618781', None, None, None, None, None, '2694337'), ('4302', '21749070', '1347618778', None, None, None, None, None, '2694337'), ('4302', '21749070', '1347618777', None, None, None, None, None, '2694337')] time used for this insertion : 0.018304109573364258 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.2871394157409668 time spend to save output : 0.018524885177612305 total time spend for step 5 : 0.3056643009185791 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 (2694337) 2.27user 2.34system 0:10.44elapsed 44%CPU (0avgtext+0avgdata 158720maxresident)k 640inputs+10864outputs (2major+64023minor)pagefaults 0swaps