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`=21982272 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','mal_croppe','kraft','autre_refus','Carton_gris','cartonnette','plastique','papier','Teint_Dans_La_Masse','Carton_brun','environnement','metal')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 21982272, 'sub_port_id': 21982288, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14480244, 'last_updated_at': datetime.datetime(2025, 4, 2, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 18, 49, 1)}, 'cartonnette': {'main_port_id': 21982272, 'sub_port_id': 21982289, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14480245, 'last_updated_at': datetime.datetime(2025, 4, 2, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 18, 49, 1)}, 'Carton_brun': {'main_port_id': 21982272, 'sub_port_id': 21982290, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14480246, 'last_updated_at': datetime.datetime(2025, 4, 2, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 18, 49, 1)}, 'kraft': {'main_port_id': 21982272, 'sub_port_id': 21982291, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14480247, 'last_updated_at': datetime.datetime(2025, 4, 2, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 18, 49, 1)}, 'flou': {'main_port_id': 21982272, 'sub_port_id': 21982292, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14480248, 'last_updated_at': datetime.datetime(2025, 4, 2, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 18, 49, 1)}, 'metal': {'main_port_id': 21982272, 'sub_port_id': 21982293, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14480249, 'last_updated_at': datetime.datetime(2025, 4, 2, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 18, 49, 1)}, 'autre_refus': {'main_port_id': 21982272, 'sub_port_id': 21982294, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14480250, 'last_updated_at': datetime.datetime(2025, 4, 2, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 18, 49, 1)}, 'Carton_gris': {'main_port_id': 21982272, 'sub_port_id': 21982295, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14480251, 'last_updated_at': datetime.datetime(2025, 4, 2, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 18, 49, 1)}, 'papier': {'main_port_id': 21982272, 'sub_port_id': 21982296, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14480252, 'last_updated_at': datetime.datetime(2025, 4, 2, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 18, 49, 1)}, 'environnement': {'main_port_id': 21982272, 'sub_port_id': 21982297, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14480253, 'last_updated_at': datetime.datetime(2025, 4, 2, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 18, 49, 1)}, 'mal_croppe': {'main_port_id': 21982272, 'sub_port_id': 21982298, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14480254, 'last_updated_at': datetime.datetime(2025, 4, 2, 18, 49, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 18, 49, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 18, 49, 1)}, 'plastique': {'main_port_id': 21982272, 'sub_port_id': 21982299, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14480255, 'last_updated_at': datetime.datetime(2025, 4, 2, 18, 53), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 18, 53), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 18, 49, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21982288,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21982276 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21982289,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21982277 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21982290,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21982278 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21982291,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21982279 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21982292,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21982280 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21982293,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21982281 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21982294,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21982282 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21982295,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21982283 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21982296,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21982284 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21982297,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21982285 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21982298,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21982286 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21982299,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21982287 lien utilise dans velours : https://www.fotonower.com/velours/21982288,21982289,21982290,21982291,21982292,21982293,21982294,21982295,21982296,21982297,21982298,21982299?tags=Teint_Dans_La_Masse,cartonnette,Carton_brun,kraft,flou,metal,autre_refus,Carton_gris,papier,environnement,mal_croppe,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21982272]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349572185, 1349572132, 1349572113, 1349572110, 1349572105, 1349572102, 1349572072, 1349572070, 1349572067, 1349572065, 1349572063, 1349572060] map_info['map_portfolio_photo'] : {21982272: [1349572185, 1349572132, 1349572113, 1349572110, 1349572105, 1349572102, 1349572072, 1349572070, 1349572067, 1349572065, 1349572063, 1349572060, 1349571996, 1349571992, 1349571918, 1349571869, 1349571822, 1349571767, 1349571717, 1349571689, 1349571505, 1349571450, 1349571395, 1349571385, 1349571382, 1349571374, 1349571207, 1349571194, 1349571190, 1349571080, 1349571048, 1349571039, 1349570981, 1349570972, 1349570967, 1349570962, 1349570957]} final : False mtd_id 4302 list_pids : [1349572185, 1349572132, 1349572113, 1349572110, 1349572105, 1349572102, 1349572072, 1349572070, 1349572067, 1349572065, 1349572063, 1349572060] Looping around the photos to save general results len do output : 1 /21982272. 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, '2717173') ('4302', '21982272', '1349572185', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572132', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572113', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572110', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572105', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572102', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572072', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572070', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572067', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572065', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572063', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572060', None, None, None, None, None, '2717173') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21982272', "{'Teint_Dans_La_Masse': 21982276, 'cartonnette': 21982277, 'Carton_brun': 21982278, 'kraft': 21982279, 'flou': 21982280, 'metal': 21982281, 'autre_refus': 21982282, 'Carton_gris': 21982283, 'papier': 21982284, 'environnement': 21982285, 'mal_croppe': 21982286, 'plastique': 21982287}", None, None, None, None, '2717173'), ('4302', '21982272', '1349572185', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572132', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572113', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572110', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572105', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572102', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572072', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572070', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572067', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572065', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572063', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572060', None, None, None, None, None, '2717173')] time used for this insertion : 0.015743255615234375 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7108969688415527 time spend to save output : 0.01607990264892578 total time spend for step 1 : 1.7269768714904785 step2:final Wed Apr 2 18:54:59 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 (21982272) 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 21982272 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349570981,1349570972,1349570967,1349570962,1349570957,1349571080,1349571048,1349571039,1349571207,1349571194,1349571190,1349571505,1349571450,1349571395,1349571385,1349571382,1349571374,1349571918,1349571869,1349571822,1349571767,1349571717,1349571689,1349571996,1349571992,1349572072,1349572070,1349572067,1349572065,1349572063,1349572060,1349572132,1349572113,1349572110,1349572105,1349572102,1349572185); 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([21982272]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349572185: ('0.04153730597825597',), 1349572132: ('0.04153730597825597',), 1349572113: ('0.04153730597825597',), 1349572110: ('0.04153730597825597',), 1349572105: ('0.04153730597825597',), 1349572102: ('0.04153730597825597',), 1349572072: ('0.04153730597825597',), 1349572070: ('0.04153730597825597',), 1349572067: ('0.04153730597825597',), 1349572065: ('0.04153730597825597',), 1349572063: ('0.04153730597825597',), 1349572060: ('0.04153730597825597',)} new output for save of step final : {1349572185: ('0.04153730597825597',), 1349572132: ('0.04153730597825597',), 1349572113: ('0.04153730597825597',), 1349572110: ('0.04153730597825597',), 1349572105: ('0.04153730597825597',), 1349572102: ('0.04153730597825597',), 1349572072: ('0.04153730597825597',), 1349572070: ('0.04153730597825597',), 1349572067: ('0.04153730597825597',), 1349572065: ('0.04153730597825597',), 1349572063: ('0.04153730597825597',), 1349572060: ('0.04153730597825597',)} [1349572185, 1349572132, 1349572113, 1349572110, 1349572105, 1349572102, 1349572072, 1349572070, 1349572067, 1349572065, 1349572063, 1349572060] map_info['map_portfolio_photo'] : {21982272: [1349572185, 1349572132, 1349572113, 1349572110, 1349572105, 1349572102, 1349572072, 1349572070, 1349572067, 1349572065, 1349572063, 1349572060, 1349571996, 1349571992, 1349571918, 1349571869, 1349571822, 1349571767, 1349571717, 1349571689, 1349571505, 1349571450, 1349571395, 1349571385, 1349571382, 1349571374, 1349571207, 1349571194, 1349571190, 1349571080, 1349571048, 1349571039, 1349570981, 1349570972, 1349570967, 1349570962, 1349570957]} final : False mtd_id 4302 list_pids : [1349572185, 1349572132, 1349572113, 1349572110, 1349572105, 1349572102, 1349572072, 1349572070, 1349572067, 1349572065, 1349572063, 1349572060] Looping around the photos to save general results len do output : 12 /1349572185.Didn't retrieve data . /1349572132.Didn't retrieve data . /1349572113.Didn't retrieve data . /1349572110.Didn't retrieve data . /1349572105.Didn't retrieve data . /1349572102.Didn't retrieve data . /1349572072.Didn't retrieve data . /1349572070.Didn't retrieve data . /1349572067.Didn't retrieve data . /1349572065.Didn't retrieve data . /1349572063.Didn't retrieve data . /1349572060.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, '2717173') ('4302', '21982272', '1349572185', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572132', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572113', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572110', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572105', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572102', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572072', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572070', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572067', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572065', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572063', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572060', None, None, None, None, None, '2717173') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '21982272', '1349572185', '0.04153730597825597', None, None, None, None, '2717173'), ('4302', '21982272', '1349572132', '0.04153730597825597', None, None, None, None, '2717173'), ('4302', '21982272', '1349572113', '0.04153730597825597', None, None, None, None, '2717173'), ('4302', '21982272', '1349572110', '0.04153730597825597', None, None, None, None, '2717173'), ('4302', '21982272', '1349572105', '0.04153730597825597', None, None, None, None, '2717173'), ('4302', '21982272', '1349572102', '0.04153730597825597', None, None, None, None, '2717173'), ('4302', '21982272', '1349572072', '0.04153730597825597', None, None, None, None, '2717173'), ('4302', '21982272', '1349572070', '0.04153730597825597', None, None, None, None, '2717173'), ('4302', '21982272', '1349572067', '0.04153730597825597', None, None, None, None, '2717173'), ('4302', '21982272', '1349572065', '0.04153730597825597', None, None, None, None, '2717173'), ('4302', '21982272', '1349572063', '0.04153730597825597', None, None, None, None, '2717173'), ('4302', '21982272', '1349572060', '0.04153730597825597', None, None, None, None, '2717173')] time used for this insertion : 0.01338958740234375 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06590914726257324 time spend to save output : 0.01397848129272461 total time spend for step 2 : 0.07988762855529785 step3:velours_tree Wed Apr 2 18:54:59 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 : {21982272: [{'Teint_Dans_La_Masse': 21982276, 'cartonnette': 21982277, 'Carton_brun': 21982278, 'kraft': 21982279, 'flou': 21982280, 'metal': 21982281, 'autre_refus': 21982282, 'Carton_gris': 21982283, 'papier': 21982284, 'environnement': 21982285, 'mal_croppe': 21982286, 'plastique': 21982287}]} input_args_next_step : {21982272: ()} output_args : {21982272: [{'Teint_Dans_La_Masse': 21982276, 'cartonnette': 21982277, 'Carton_brun': 21982278, 'kraft': 21982279, 'flou': 21982280, 'metal': 21982281, 'autre_refus': 21982282, 'Carton_gris': 21982283, 'papier': 21982284, 'environnement': 21982285, 'mal_croppe': 21982286, 'plastique': 21982287}]} args : 21982272 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 : ({'Teint_Dans_La_Masse': 21982276, 'cartonnette': 21982277, 'Carton_brun': 21982278, 'kraft': 21982279, 'flou': 21982280, 'metal': 21982281, 'autre_refus': 21982282, 'Carton_gris': 21982283, 'papier': 21982284, 'environnement': 21982285, 'mal_croppe': 21982286, 'plastique': 21982287},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21982272) 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([21982272]) 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.3083925247192383 time spend to save output : 4.482269287109375e-05 total time spend for step 3 : 0.3084373474121094 step4:send_mail_cod Wed Apr 2 18:54:59 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 : {1349572185: ('0.04153730597825597',), 1349572132: ('0.04153730597825597',), 1349572113: ('0.04153730597825597',), 1349572110: ('0.04153730597825597',), 1349572105: ('0.04153730597825597',), 1349572102: ('0.04153730597825597',), 1349572072: ('0.04153730597825597',), 1349572070: ('0.04153730597825597',), 1349572067: ('0.04153730597825597',), 1349572065: ('0.04153730597825597',), 1349572063: ('0.04153730597825597',), 1349572060: ('0.04153730597825597',)} input_args_next_step : {1349572185: ()} output_args : {1349572185: ('0.04153730597825597',), 1349572132: ('0.04153730597825597',), 1349572113: ('0.04153730597825597',), 1349572110: ('0.04153730597825597',), 1349572105: ('0.04153730597825597',), 1349572102: ('0.04153730597825597',), 1349572072: ('0.04153730597825597',), 1349572070: ('0.04153730597825597',), 1349572067: ('0.04153730597825597',), 1349572065: ('0.04153730597825597',), 1349572063: ('0.04153730597825597',), 1349572060: ('0.04153730597825597',)} args : 1349572185 depend.output_id : 0 input_args_next_step : {1349572185: ('0.04153730597825597',), 1349572132: ()} output_args : {1349572185: ('0.04153730597825597',), 1349572132: ('0.04153730597825597',), 1349572113: ('0.04153730597825597',), 1349572110: ('0.04153730597825597',), 1349572105: ('0.04153730597825597',), 1349572102: ('0.04153730597825597',), 1349572072: ('0.04153730597825597',), 1349572070: ('0.04153730597825597',), 1349572067: ('0.04153730597825597',), 1349572065: ('0.04153730597825597',), 1349572063: ('0.04153730597825597',), 1349572060: ('0.04153730597825597',)} args : 1349572132 depend.output_id : 0 input_args_next_step : {1349572185: ('0.04153730597825597',), 1349572132: ('0.04153730597825597',), 1349572113: ()} output_args : {1349572185: ('0.04153730597825597',), 1349572132: ('0.04153730597825597',), 1349572113: ('0.04153730597825597',), 1349572110: ('0.04153730597825597',), 1349572105: ('0.04153730597825597',), 1349572102: ('0.04153730597825597',), 1349572072: ('0.04153730597825597',), 1349572070: ('0.04153730597825597',), 1349572067: ('0.04153730597825597',), 1349572065: ('0.04153730597825597',), 1349572063: ('0.04153730597825597',), 1349572060: ('0.04153730597825597',)} args : 1349572113 depend.output_id : 0 input_args_next_step : {1349572185: ('0.04153730597825597',), 1349572132: ('0.04153730597825597',), 1349572113: ('0.04153730597825597',), 1349572110: ()} output_args : {1349572185: ('0.04153730597825597',), 1349572132: ('0.04153730597825597',), 1349572113: ('0.04153730597825597',), 1349572110: ('0.04153730597825597',), 1349572105: ('0.04153730597825597',), 1349572102: ('0.04153730597825597',), 1349572072: ('0.04153730597825597',), 1349572070: ('0.04153730597825597',), 1349572067: ('0.04153730597825597',), 1349572065: ('0.04153730597825597',), 1349572063: ('0.04153730597825597',), 1349572060: ('0.04153730597825597',)} args : 1349572110 depend.output_id : 0 input_args_next_step : {1349572185: ('0.04153730597825597',), 1349572132: ('0.04153730597825597',), 1349572113: ('0.04153730597825597',), 1349572110: ('0.04153730597825597',), 1349572105: ()} output_args : {1349572185: ('0.04153730597825597',), 1349572132: ('0.04153730597825597',), 1349572113: ('0.04153730597825597',), 1349572110: ('0.04153730597825597',), 1349572105: ('0.04153730597825597',), 1349572102: ('0.04153730597825597',), 1349572072: ('0.04153730597825597',), 1349572070: ('0.04153730597825597',), 1349572067: ('0.04153730597825597',), 1349572065: ('0.04153730597825597',), 1349572063: ('0.04153730597825597',), 1349572060: ('0.04153730597825597',)} args : 1349572105 depend.output_id : 0 input_args_next_step : {1349572185: ('0.04153730597825597',), 1349572132: ('0.04153730597825597',), 1349572113: ('0.04153730597825597',), 1349572110: ('0.04153730597825597',), 1349572105: ('0.04153730597825597',), 1349572102: ()} output_args : {1349572185: ('0.04153730597825597',), 1349572132: ('0.04153730597825597',), 1349572113: ('0.04153730597825597',), 1349572110: ('0.04153730597825597',), 1349572105: ('0.04153730597825597',), 1349572102: ('0.04153730597825597',), 1349572072: ('0.04153730597825597',), 1349572070: ('0.04153730597825597',), 1349572067: ('0.04153730597825597',), 1349572065: ('0.04153730597825597',), 1349572063: ('0.04153730597825597',), 1349572060: ('0.04153730597825597',)} args : 1349572102 depend.output_id : 0 input_args_next_step : {1349572185: ('0.04153730597825597',), 1349572132: ('0.04153730597825597',), 1349572113: ('0.04153730597825597',), 1349572110: ('0.04153730597825597',), 1349572105: ('0.04153730597825597',), 1349572102: ('0.04153730597825597',), 1349572072: ()} output_args : {1349572185: ('0.04153730597825597',), 1349572132: ('0.04153730597825597',), 1349572113: ('0.04153730597825597',), 1349572110: ('0.04153730597825597',), 1349572105: ('0.04153730597825597',), 1349572102: ('0.04153730597825597',), 1349572072: ('0.04153730597825597',), 1349572070: ('0.04153730597825597',), 1349572067: ('0.04153730597825597',), 1349572065: ('0.04153730597825597',), 1349572063: ('0.04153730597825597',), 1349572060: ('0.04153730597825597',)} args : 1349572072 depend.output_id : 0 input_args_next_step : {1349572185: ('0.04153730597825597',), 1349572132: ('0.04153730597825597',), 1349572113: ('0.04153730597825597',), 1349572110: ('0.04153730597825597',), 1349572105: ('0.04153730597825597',), 1349572102: ('0.04153730597825597',), 1349572072: ('0.04153730597825597',), 1349572070: ()} output_args : {1349572185: ('0.04153730597825597',), 1349572132: ('0.04153730597825597',), 1349572113: ('0.04153730597825597',), 1349572110: ('0.04153730597825597',), 1349572105: ('0.04153730597825597',), 1349572102: ('0.04153730597825597',), 1349572072: ('0.04153730597825597',), 1349572070: ('0.04153730597825597',), 1349572067: ('0.04153730597825597',), 1349572065: ('0.04153730597825597',), 1349572063: ('0.04153730597825597',), 1349572060: ('0.04153730597825597',)} args : 1349572070 depend.output_id : 0 input_args_next_step : {1349572185: ('0.04153730597825597',), 1349572132: ('0.04153730597825597',), 1349572113: ('0.04153730597825597',), 1349572110: ('0.04153730597825597',), 1349572105: ('0.04153730597825597',), 1349572102: ('0.04153730597825597',), 1349572072: ('0.04153730597825597',), 1349572070: ('0.04153730597825597',), 1349572067: ()} output_args : {1349572185: ('0.04153730597825597',), 1349572132: ('0.04153730597825597',), 1349572113: ('0.04153730597825597',), 1349572110: ('0.04153730597825597',), 1349572105: ('0.04153730597825597',), 1349572102: ('0.04153730597825597',), 1349572072: ('0.04153730597825597',), 1349572070: ('0.04153730597825597',), 1349572067: ('0.04153730597825597',), 1349572065: ('0.04153730597825597',), 1349572063: ('0.04153730597825597',), 1349572060: ('0.04153730597825597',)} args : 1349572067 depend.output_id : 0 input_args_next_step : {1349572185: ('0.04153730597825597',), 1349572132: ('0.04153730597825597',), 1349572113: ('0.04153730597825597',), 1349572110: ('0.04153730597825597',), 1349572105: ('0.04153730597825597',), 1349572102: ('0.04153730597825597',), 1349572072: ('0.04153730597825597',), 1349572070: ('0.04153730597825597',), 1349572067: ('0.04153730597825597',), 1349572065: ()} output_args : {1349572185: ('0.04153730597825597',), 1349572132: ('0.04153730597825597',), 1349572113: ('0.04153730597825597',), 1349572110: ('0.04153730597825597',), 1349572105: ('0.04153730597825597',), 1349572102: ('0.04153730597825597',), 1349572072: ('0.04153730597825597',), 1349572070: ('0.04153730597825597',), 1349572067: ('0.04153730597825597',), 1349572065: ('0.04153730597825597',), 1349572063: ('0.04153730597825597',), 1349572060: ('0.04153730597825597',)} args : 1349572065 depend.output_id : 0 input_args_next_step : {1349572185: ('0.04153730597825597',), 1349572132: ('0.04153730597825597',), 1349572113: ('0.04153730597825597',), 1349572110: ('0.04153730597825597',), 1349572105: ('0.04153730597825597',), 1349572102: ('0.04153730597825597',), 1349572072: ('0.04153730597825597',), 1349572070: ('0.04153730597825597',), 1349572067: ('0.04153730597825597',), 1349572065: ('0.04153730597825597',), 1349572063: ()} output_args : {1349572185: ('0.04153730597825597',), 1349572132: ('0.04153730597825597',), 1349572113: ('0.04153730597825597',), 1349572110: ('0.04153730597825597',), 1349572105: ('0.04153730597825597',), 1349572102: ('0.04153730597825597',), 1349572072: ('0.04153730597825597',), 1349572070: ('0.04153730597825597',), 1349572067: ('0.04153730597825597',), 1349572065: ('0.04153730597825597',), 1349572063: ('0.04153730597825597',), 1349572060: ('0.04153730597825597',)} args : 1349572063 depend.output_id : 0 input_args_next_step : {1349572185: ('0.04153730597825597',), 1349572132: ('0.04153730597825597',), 1349572113: ('0.04153730597825597',), 1349572110: ('0.04153730597825597',), 1349572105: ('0.04153730597825597',), 1349572102: ('0.04153730597825597',), 1349572072: ('0.04153730597825597',), 1349572070: ('0.04153730597825597',), 1349572067: ('0.04153730597825597',), 1349572065: ('0.04153730597825597',), 1349572063: ('0.04153730597825597',), 1349572060: ()} output_args : {1349572185: ('0.04153730597825597',), 1349572132: ('0.04153730597825597',), 1349572113: ('0.04153730597825597',), 1349572110: ('0.04153730597825597',), 1349572105: ('0.04153730597825597',), 1349572102: ('0.04153730597825597',), 1349572072: ('0.04153730597825597',), 1349572070: ('0.04153730597825597',), 1349572067: ('0.04153730597825597',), 1349572065: ('0.04153730597825597',), 1349572063: ('0.04153730597825597',), 1349572060: ('0.04153730597825597',)} args : 1349572060 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 : {21982272: [{'Teint_Dans_La_Masse': 21982276, 'cartonnette': 21982277, 'Carton_brun': 21982278, 'kraft': 21982279, 'flou': 21982280, 'metal': 21982281, 'autre_refus': 21982282, 'Carton_gris': 21982283, 'papier': 21982284, 'environnement': 21982285, 'mal_croppe': 21982286, 'plastique': 21982287}]} input_args_next_step : {1349572185: ('0.04153730597825597',), 1349572132: ('0.04153730597825597',), 1349572113: ('0.04153730597825597',), 1349572110: ('0.04153730597825597',), 1349572105: ('0.04153730597825597',), 1349572102: ('0.04153730597825597',), 1349572072: ('0.04153730597825597',), 1349572070: ('0.04153730597825597',), 1349572067: ('0.04153730597825597',), 1349572065: ('0.04153730597825597',), 1349572063: ('0.04153730597825597',), 1349572060: ('0.04153730597825597',), 21982272: ()} output_args : {21982272: [{'Teint_Dans_La_Masse': 21982276, 'cartonnette': 21982277, 'Carton_brun': 21982278, 'kraft': 21982279, 'flou': 21982280, 'metal': 21982281, 'autre_refus': 21982282, 'Carton_gris': 21982283, 'papier': 21982284, 'environnement': 21982285, 'mal_croppe': 21982286, 'plastique': 21982287}]} args : 21982272 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 :13, first value : ('0.04153730597825597',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21982272) 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 (1349572185,1349572132,1349572113,1349572110,1349572105,1349572102,1349572072,1349572070,1349572067,1349572065,1349572063,1349572060) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349572060 begin to download photo : 1349572067 begin to download photo : 1349572102 begin to download photo : 1349572113 download finish for photo 1349572102 begin to download photo : 1349572105 download finish for photo 1349572060 begin to download photo : 1349572063 download finish for photo 1349572113 begin to download photo : 1349572132 download finish for photo 1349572067 begin to download photo : 1349572070 download finish for photo 1349572063 begin to download photo : 1349572065 download finish for photo 1349572105 begin to download photo : 1349572110 download finish for photo 1349572132 begin to download photo : 1349572185 download finish for photo 1349572070 begin to download photo : 1349572072 download finish for photo 1349572065 download finish for photo 1349572110 download finish for photo 1349572185 download finish for photo 1349572072 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 : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P21982272_02-04-2025_18_55_00.pdf 21982277 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=21982277 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349571817: '1743612571_1293038_1349570981_4f314b683cc3b353c9f5e179a0e6f6a2_rle_crop_3744518294_0.png', 1349571818: '1743612571_1293038_1349570962_283bc14d777a181e1ad1dbb5218619e8_rle_crop_3744518368_0.png', 1349571819: '1743612571_1293038_1349570962_283bc14d777a181e1ad1dbb5218619e8_rle_crop_3744518371_0.png', 1349571821: '1743612571_1293038_1349570957_d20ec707f8698cf0fffb2a6e95b2e20b_rle_crop_3744518381_0.png', 1349572178: '1743612793_1295019_1349571689_b9c92e669fbf7454723c0b76d3e4c6c3_rle_crop_3744523150_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/1f1c5f7d4e7c7582a8cada7fe9b1e4d6_64739707.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c71beac620d1a770a41995a16412f96a_82019769.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/97328b7a761b3d06cb2b56351b34327c_662570.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/0a0364ebbc91e41aac3792ca24bbc8b4_56646177.png change filename to text .imagette219822771743612900/ imagette219822771743612900/1743612571_1293038_1349570981_4f314b683cc3b353c9f5e179a0e6f6a2_rle_crop_3744518294_0.png.png imagette219822771743612900/1743612793_1295019_1349571689_b9c92e669fbf7454723c0b76d3e4c6c3_rle_crop_3744523150_0.png.png imagette219822771743612900/1743612571_1293038_1349570957_d20ec707f8698cf0fffb2a6e95b2e20b_rle_crop_3744518381_0.png.png imagette219822771743612900/1743612571_1293038_1349570962_283bc14d777a181e1ad1dbb5218619e8_rle_crop_3744518371_0.png.png imagette219822771743612900/1743612571_1293038_1349570962_283bc14d777a181e1ad1dbb5218619e8_rle_crop_3744518368_0.png.png imagette219822791743612900/ imagette219822801743612900/ imagette219822811743612900/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/1db4ed46565e4ac42623e0baf0af5e3f_5606762.png imagette219822771743612900 21982279 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=21982279 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219822791743612900 21982280 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=21982280 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219822801743612900 21982281 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=21982281 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219822811743612900 21982282 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=21982282 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349571603: '1743612567_3480897_1349571048_279991b5b2d69948d92a1ad13a9a3c83_rle_crop_3744518020_0.png', 1349571605: '1743612567_3480897_1349571048_279991b5b2d69948d92a1ad13a9a3c83_rle_crop_3744518010_0.png', 1349571788: '1743612571_1293038_1349570967_5f14a7b22a9e4e1c56dd58231fe25d41_rle_crop_3744518343_0.png', 1349571789: '1743612571_1293038_1349570957_d20ec707f8698cf0fffb2a6e95b2e20b_rle_crop_3744518379_0.png', 1349572028: '1743612673_1294159_1349571505_3864b2a9020dce39b04d489303347a80_rle_crop_3744520742_0.png', 1349572175: '1743612793_1295019_1349571689_b9c92e669fbf7454723c0b76d3e4c6c3_rle_crop_3744523155_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/cbce523edd1fa45aff6874110b11137a_8747463.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f59272b4c04d9d5ec7a1004150f3783e_42546863.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/10eb2e99930d1373ddcfb5abcb8a457e_81089556.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/03e5e28dbf994049e56ffc2b5bdc0497_39308800.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/82001d54c118a8af81391c10dd076b8c_25001201.png change filename to text .imagette219822821743612900/ imagette219822821743612900/1743612567_3480897_1349571048_279991b5b2d69948d92a1ad13a9a3c83_rle_crop_3744518010_0.png.png imagette219822821743612900/1743612793_1295019_1349571689_b9c92e669fbf7454723c0b76d3e4c6c3_rle_crop_3744523155_0.png.png imagette219822821743612900/1743612571_1293038_1349570957_d20ec707f8698cf0fffb2a6e95b2e20b_rle_crop_3744518379_0.png.png imagette219822821743612900/1743612567_3480897_1349571048_279991b5b2d69948d92a1ad13a9a3c83_rle_crop_3744518020_0.png.png imagette219822821743612900/1743612673_1294159_1349571505_3864b2a9020dce39b04d489303347a80_rle_crop_3744520742_0.png.png imagette219822821743612900/1743612571_1293038_1349570967_5f14a7b22a9e4e1c56dd58231fe25d41_rle_crop_3744518343_0.png.png imagette219822861743612900/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2fd15ee3c5cfe4ef05c946c7760a9490_19529244.png imagette219822821743612900 21982286 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=21982286 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219822861743612900 21982287 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=21982287 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349571857: '1743612571_1293038_1349570981_4f314b683cc3b353c9f5e179a0e6f6a2_rle_crop_3744518287_0.png', 1349571858: '1743612571_1293038_1349570972_18607845ff964c889a022c2f08ba2a29_rle_crop_3744518331_0.png', 1349571859: '1743612571_1293038_1349570967_5f14a7b22a9e4e1c56dd58231fe25d41_rle_crop_3744518346_0.png', 1349571860: '1743612571_1293038_1349570962_283bc14d777a181e1ad1dbb5218619e8_rle_crop_3744518367_0.png', 1349571861: '1743612571_1293038_1349570962_283bc14d777a181e1ad1dbb5218619e8_rle_crop_3744518365_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/ce0792a5d9e9fc651f3f0bce5a5acfcf_74165690.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/58260b45f01913c11ea74c54e68dfafa_37369717.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/9b3a73e78c6eb8a2c31c742b065a43c5_62302040.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/30d98558a96442cd8cca281609081e7a_15275076.png change filename to text .imagette219822871743612900/ imagette219822871743612900/1743612571_1293038_1349570962_283bc14d777a181e1ad1dbb5218619e8_rle_crop_3744518365_0.png.png imagette219822871743612900/1743612571_1293038_1349570967_5f14a7b22a9e4e1c56dd58231fe25d41_rle_crop_3744518346_0.png.png imagette219822871743612900/1743612571_1293038_1349570962_283bc14d777a181e1ad1dbb5218619e8_rle_crop_3744518367_0.png.png imagette219822871743612900/1743612571_1293038_1349570972_18607845ff964c889a022c2f08ba2a29_rle_crop_3744518331_0.png.png imagette219822871743612900/1743612571_1293038_1349570981_4f314b683cc3b353c9f5e179a0e6f6a2_rle_crop_3744518287_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e00b2c19e7d1662f81d77c32e89cb58a_5856894.png imagette219822871743612900 21982276 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=21982276 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349571775: '1743612571_1293038_1349570972_18607845ff964c889a022c2f08ba2a29_rle_crop_3744518338_0.png', 1349572173: '1743612793_1295019_1349571689_b9c92e669fbf7454723c0b76d3e4c6c3_rle_crop_3744523156_0.png', 1349572172: '1743612793_1295019_1349571689_b9c92e669fbf7454723c0b76d3e4c6c3_rle_crop_3744523151_0.png', 1349572171: '1743612793_1295019_1349571822_00cab75ec1343d1e379b0f2948811081_rle_crop_3744522871_0.png', 1349572055: '1743612687_3483749_1349571374_91d4690236faf5f604bde265ee8095b3_rle_crop_3744521036_0.png', 1349572054: '1743612687_3483749_1349571382_8dceab44bc5721534eda2c5d6e578320_rle_crop_3744521019_0.png', 1349572053: '1743612687_3483749_1349571382_8dceab44bc5721534eda2c5d6e578320_rle_crop_3744521024_0.png', 1349572052: '1743612687_3483749_1349571450_128dc0b97b4d4bea328ce490cbbb36ca_rle_crop_3744520943_0.png', 1349571778: '1743612571_1293038_1349570962_283bc14d777a181e1ad1dbb5218619e8_rle_crop_3744518372_0.png', 1349571776: '1743612571_1293038_1349570972_18607845ff964c889a022c2f08ba2a29_rle_crop_3744518334_0.png', 1349571509: '1743612551_1292815_1349571194_fe1b60ea79fadef14691f381ee71bed4_rle_crop_3744517790_0.png', 1349571774: '1743612571_1293038_1349570981_4f314b683cc3b353c9f5e179a0e6f6a2_rle_crop_3744518296_0.png', 1349571773: '1743612571_1293038_1349570981_4f314b683cc3b353c9f5e179a0e6f6a2_rle_crop_3744518297_0.png', 1349571772: '1743612571_1293038_1349570981_4f314b683cc3b353c9f5e179a0e6f6a2_rle_crop_3744518298_0.png', 1349571771: '1743612571_1293038_1349571080_172c963d9a9b8039d7c484831349bf8b_rle_crop_3744518282_0.png', 1349571595: '1743612567_3480897_1349571048_279991b5b2d69948d92a1ad13a9a3c83_rle_crop_3744518017_0.png', 1349571594: '1743612567_3480897_1349571048_279991b5b2d69948d92a1ad13a9a3c83_rle_crop_3744518011_0.png', 1349571589: '1743612567_3480897_1349571207_d3db1435da34a930dd28fa0e8d1cdccc_rle_crop_3744517988_0.png', 1349571510: '1743612551_1292815_1349571190_cb4beb26ae29b018d1295739a8dc45d0_rle_crop_3744517797_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/8338bc017eae8d5939a8d254a443b1a5_18579997.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/79a4588f187d3274ea24df27648e3642_67320028.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/aaf9cebc9f90c6fb08ffb83a3539a542_63846388.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/469f881bca0f0fe28534e18f9107c50f_90104256.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/480fcb013f5510b2d008e5018e3b9c00_72044205.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f18eb1c3f1c0e661a1d141db110632a6_49338880.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/73ba87bf9c6302152e52a3e79a588133_55467445.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2a95d6b743d50c8fde66315c7a16b9cc_86840903.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/337867ade84cefcfa250da960ce12300_11287921.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/ab71856bcc99c69589327748fabee65f_38394429.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/8aa9830e6316f95961609e800a7802de_56272690.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/de94d4e67876e7c716ea396dde48ad0f_68997078.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/f1af0f0f3aeebeaa17ab0a25d970939f_99340570.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/4f0c7d68a3c39686621b2a56c25ec400_39472986.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/6227b7d003f4c5ae0c8a85840a228161_91726056.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/6dee8f7f1a932ccf888065252969a597_93539924.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/59128add7421ab734b3d90ee36b86abd_96078265.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/7f6e21d0aa9d5ad0733bf15e9f161b8e_85705115.png change filename to text .imagette219822761743612901/ imagette219822761743612901/1743612571_1293038_1349570972_18607845ff964c889a022c2f08ba2a29_rle_crop_3744518334_0.png.png imagette219822761743612901/1743612793_1295019_1349571689_b9c92e669fbf7454723c0b76d3e4c6c3_rle_crop_3744523151_0.png.png imagette219822761743612901/1743612551_1292815_1349571194_fe1b60ea79fadef14691f381ee71bed4_rle_crop_3744517790_0.png.png imagette219822761743612901/1743612687_3483749_1349571374_91d4690236faf5f604bde265ee8095b3_rle_crop_3744521036_0.png.png imagette219822761743612901/1743612687_3483749_1349571382_8dceab44bc5721534eda2c5d6e578320_rle_crop_3744521024_0.png.png imagette219822761743612901/1743612687_3483749_1349571382_8dceab44bc5721534eda2c5d6e578320_rle_crop_3744521019_0.png.png imagette219822761743612901/1743612567_3480897_1349571207_d3db1435da34a930dd28fa0e8d1cdccc_rle_crop_3744517988_0.png.png imagette219822761743612901/1743612567_3480897_1349571048_279991b5b2d69948d92a1ad13a9a3c83_rle_crop_3744518017_0.png.png imagette219822761743612901/1743612571_1293038_1349570981_4f314b683cc3b353c9f5e179a0e6f6a2_rle_crop_3744518298_0.png.png imagette219822761743612901/1743612571_1293038_1349570981_4f314b683cc3b353c9f5e179a0e6f6a2_rle_crop_3744518296_0.png.png imagette219822761743612901/1743612687_3483749_1349571450_128dc0b97b4d4bea328ce490cbbb36ca_rle_crop_3744520943_0.png.png imagette219822761743612901/1743612571_1293038_1349571080_172c963d9a9b8039d7c484831349bf8b_rle_crop_3744518282_0.png.png imagette219822761743612901/1743612793_1295019_1349571689_b9c92e669fbf7454723c0b76d3e4c6c3_rle_crop_3744523156_0.png.png imagette219822761743612901/1743612571_1293038_1349570972_18607845ff964c889a022c2f08ba2a29_rle_crop_3744518338_0.png.png imagette219822761743612901/1743612793_1295019_1349571822_00cab75ec1343d1e379b0f2948811081_rle_crop_3744522871_0.png.png imagette219822761743612901/1743612571_1293038_1349570962_283bc14d777a181e1ad1dbb5218619e8_rle_crop_3744518372_0.png.png imagette219822761743612901/1743612571_1293038_1349570981_4f314b683cc3b353c9f5e179a0e6f6a2_rle_crop_3744518297_0.png.png imagette219822761743612901/1743612551_1292815_1349571190_cb4beb26ae29b018d1295739a8dc45d0_rle_crop_3744517797_0.png.png imagette219822761743612901/1743612567_3480897_1349571048_279991b5b2d69948d92a1ad13a9a3c83_rle_crop_3744518011_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c1eeb4edce3afab6eb058bb285262336_19633516.png imagette219822761743612901 21982278 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=21982278 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349571511: '1743612551_1292815_1349571190_cb4beb26ae29b018d1295739a8dc45d0_rle_crop_3744517800_0.png', 1349571835: '1743612571_1293038_1349570981_4f314b683cc3b353c9f5e179a0e6f6a2_rle_crop_3744518290_0.png', 1349571836: '1743612571_1293038_1349570972_18607845ff964c889a022c2f08ba2a29_rle_crop_3744518327_0.png', 1349571837: '1743612571_1293038_1349570972_18607845ff964c889a022c2f08ba2a29_rle_crop_3744518328_0.png', 1349571838: '1743612571_1293038_1349570967_5f14a7b22a9e4e1c56dd58231fe25d41_rle_crop_3744518345_0.png', 1349571840: '1743612571_1293038_1349570962_283bc14d777a181e1ad1dbb5218619e8_rle_crop_3744518370_0.png', 1349572181: '1743612793_1295019_1349571689_b9c92e669fbf7454723c0b76d3e4c6c3_rle_crop_3744523154_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/93ae983aaf3bff8285478e61514a7e3f_79443870.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/a83b69dfb0478b181b22c81719495b71_86648659.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/78f99ed34b090ecbc78c88202da15c25_32292422.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/3f8abf84083c2aeb560b93468c99ba96_88567799.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/809d3c3d5eb52fe9a41869a55c7275a3_46740040.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/094a0afc87f82c45a873e92c61a21d99_40843150.png change filename to text .imagette219822781743612902/ imagette219822781743612902/1743612571_1293038_1349570972_18607845ff964c889a022c2f08ba2a29_rle_crop_3744518328_0.png.png imagette219822781743612902/1743612551_1292815_1349571190_cb4beb26ae29b018d1295739a8dc45d0_rle_crop_3744517800_0.png.png imagette219822781743612902/1743612571_1293038_1349570972_18607845ff964c889a022c2f08ba2a29_rle_crop_3744518327_0.png.png imagette219822781743612902/1743612793_1295019_1349571689_b9c92e669fbf7454723c0b76d3e4c6c3_rle_crop_3744523154_0.png.png imagette219822781743612902/1743612571_1293038_1349570962_283bc14d777a181e1ad1dbb5218619e8_rle_crop_3744518370_0.png.png imagette219822781743612902/1743612571_1293038_1349570967_5f14a7b22a9e4e1c56dd58231fe25d41_rle_crop_3744518345_0.png.png imagette219822781743612902/1743612571_1293038_1349570981_4f314b683cc3b353c9f5e179a0e6f6a2_rle_crop_3744518290_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/3e86d4b182ec1c07cfc2e383fba43040_87846859.png imagette219822781743612902 21982283 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=21982283 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349571797: '1743612571_1293038_1349570972_18607845ff964c889a022c2f08ba2a29_rle_crop_3744518335_0.png', 1349571800: '1743612571_1293038_1349570957_d20ec707f8698cf0fffb2a6e95b2e20b_rle_crop_3744518382_0.png', 1349571802: '1743612571_1293038_1349570957_d20ec707f8698cf0fffb2a6e95b2e20b_rle_crop_3744518385_0.png', 1349572177: '1743612793_1295019_1349571822_00cab75ec1343d1e379b0f2948811081_rle_crop_3744522866_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/78481ec436efb33a575d6654ddf1723b_20027145.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/6b05f5e44028c80318a9cd54dace0f93_91286634.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/798b60460dabaaecb9ac49516e1fc0dc_27882891.png change filename to text .imagette219822831743612902/ imagette219822831743612902/1743612793_1295019_1349571822_00cab75ec1343d1e379b0f2948811081_rle_crop_3744522866_0.png.png imagette219822831743612902/1743612571_1293038_1349570957_d20ec707f8698cf0fffb2a6e95b2e20b_rle_crop_3744518382_0.png.png imagette219822831743612902/1743612571_1293038_1349570972_18607845ff964c889a022c2f08ba2a29_rle_crop_3744518335_0.png.png imagette219822831743612902/1743612571_1293038_1349570957_d20ec707f8698cf0fffb2a6e95b2e20b_rle_crop_3744518385_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/b4b59612f3e2ebea02990cfd3871c576_61141471.png imagette219822831743612902 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21982272 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21982288,21982289,21982290,21982291,21982292,21982293,21982294,21982295,21982296,21982297,21982298,21982299?tags=Teint_Dans_La_Masse,cartonnette,Carton_brun,kraft,flou,metal,autre_refus,Carton_gris,papier,environnement,mal_croppe,plastique your option no_mail is active, we will not send the real mail to your client args[1349572185] : ('0.04153730597825597',) no score found for photo 1349572185 We are sending mail with results at report@fotonower.com args[1349572132] : ('0.04153730597825597',) no score found for photo 1349572132 We are sending mail with results at report@fotonower.com args[1349572113] : ('0.04153730597825597',) no score found for photo 1349572113 We are sending mail with results at report@fotonower.com args[1349572110] : ('0.04153730597825597',) no score found for photo 1349572110 We are sending mail with results at report@fotonower.com args[1349572105] : ('0.04153730597825597',) no score found for photo 1349572105 We are sending mail with results at report@fotonower.com args[1349572102] : ('0.04153730597825597',) no score found for photo 1349572102 We are sending mail with results at report@fotonower.com args[1349572072] : ('0.04153730597825597',) no score found for photo 1349572072 We are sending mail with results at report@fotonower.com args[1349572070] : ('0.04153730597825597',) no score found for photo 1349572070 We are sending mail with results at report@fotonower.com args[1349572067] : ('0.04153730597825597',) no score found for photo 1349572067 We are sending mail with results at report@fotonower.com args[1349572065] : ('0.04153730597825597',) no score found for photo 1349572065 We are sending mail with results at report@fotonower.com args[1349572063] : ('0.04153730597825597',) no score found for photo 1349572063 We are sending mail with results at report@fotonower.com args[1349572060] : ('0.04153730597825597',) no score found for photo 1349572060 We are sending mail with results at report@fotonower.com refus_total : 0.04153730597825597 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=21982272 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_P21982272_02-04-2025_18_55_00.pdf results_Auto_P21982272_02-04-2025_18_55_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21982272_02-04-2025_18_55_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21982272','results_Auto_P21982272_02-04-2025_18_55_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21982272_02-04-2025_18_55_00.pdf','pdf','','0.22','0.04153730597825597') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21982272]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349572185, 1349572132, 1349572113, 1349572110, 1349572105, 1349572102, 1349572072, 1349572070, 1349572067, 1349572065, 1349572063, 1349572060] map_info['map_portfolio_photo'] : {21982272: [1349572185, 1349572132, 1349572113, 1349572110, 1349572105, 1349572102, 1349572072, 1349572070, 1349572067, 1349572065, 1349572063, 1349572060, 1349571996, 1349571992, 1349571918, 1349571869, 1349571822, 1349571767, 1349571717, 1349571689, 1349571505, 1349571450, 1349571395, 1349571385, 1349571382, 1349571374, 1349571207, 1349571194, 1349571190, 1349571080, 1349571048, 1349571039, 1349570981, 1349570972, 1349570967, 1349570962, 1349570957]} final : False mtd_id 4302 list_pids : [1349572185, 1349572132, 1349572113, 1349572110, 1349572105, 1349572102, 1349572072, 1349572070, 1349572067, 1349572065, 1349572063, 1349572060] 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, '2717173') ('4302', '21982272', '1349572185', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572132', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572113', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572110', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572105', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572102', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572072', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572070', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572067', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572065', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572063', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572060', None, None, None, None, None, '2717173') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '21982272', '1349572185', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572132', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572113', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572110', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572105', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572102', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572072', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572070', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572067', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572065', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572063', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572060', None, None, None, None, None, '2717173')] time used for this insertion : 0.0187835693359375 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.192813158035278 time spend to save output : 0.019093036651611328 total time spend for step 4 : 4.21190619468689 step5:split_time_score Wed Apr 2 18:55:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21982272'] 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 : [('21982272',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21982272) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349572060: {'path': 'temp/1743612899_2903780_1349572060_053ab7ea40a44196bdf63218bb0046f0.jpg', 'extension': 'jpg'}, 1349572063: {'path': 'temp/1743612899_2903780_1349572063_ec2d49c63449328bee8542ad5ed3f665.jpg', 'extension': 'jpg'}, 1349572065: {'path': 'temp/1743612899_2903780_1349572065_3a5fc97fd9521704d51f5fd464dee56a.jpg', 'extension': 'jpg'}, 1349572102: {'path': 'temp/1743612899_2903780_1349572102_f39010eef86853f96e4f9c6ec1db71be.jpg', 'extension': 'jpg'}, 1349572105: {'path': 'temp/1743612899_2903780_1349572105_4debf37c4a937b6460662006c6b74c61.jpg', 'extension': 'jpg'}, 1349572110: {'path': 'temp/1743612899_2903780_1349572110_d51d5d8b31a26e8d9e1fbe05ebcbb6a7.jpg', 'extension': 'jpg'}, 1349572113: {'path': 'temp/1743612899_2903780_1349572113_39f8d00ca08f1b566446712c0e38fb22.jpg', 'extension': 'jpg'}, 1349572132: {'path': 'temp/1743612899_2903780_1349572132_0aaa0578a4ac29e8f673b4b9547b65fc.jpg', 'extension': 'jpg'}, 1349572185: {'path': 'temp/1743612899_2903780_1349572185_8c79e10c154e3211b36cef9c9c50b7a7.jpg', 'extension': 'jpg'}, 1349572067: {'path': 'temp/1743612899_2903780_1349572067_2f5e9b6299e9df79f7495d3873f1f1c0.jpg', 'extension': 'jpg'}, 1349572070: {'path': 'temp/1743612899_2903780_1349572070_d8d023936570b4f061633f7bb1078a36.jpg', 'extension': 'jpg'}, 1349572072: {'path': 'temp/1743612899_2903780_1349572072_37709a759707269bd61797a539dd4ff7.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 = 21982272; (('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 = 21982272 group by h (('18', 37),) 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=21982272 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 (21982272) 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 (21982272) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02042025 21982272 Nombre de photos uploadées : 37 / 23040 (0%) 02042025 21982272 Nombre de photos taguées (types de déchets): 0 / 37 (0%) 02042025 21982272 Nombre de photos taguées (volume) : 0 / 37 (0%) [{'photo_id': 1349570981, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/4f314b683cc3b353c9f5e179a0e6f6a2.jpg', 'username': None, 'uploaded_at': 1743612368, 'text': 'image_02042025_18_45_04_10153.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1349570972, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/18607845ff964c889a022c2f08ba2a29.jpg', 'username': None, 'uploaded_at': 1743612368, 'text': 'image_02042025_18_45_14_10134.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349570967, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/5f14a7b22a9e4e1c56dd58231fe25d41.jpg', 'username': None, 'uploaded_at': 1743612368, 'text': 'image_02042025_18_45_23_9125.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349570962, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/283bc14d777a181e1ad1dbb5218619e8.jpg', 'username': None, 'uploaded_at': 1743612368, 'text': 'image_02042025_18_45_34_10137.jpg 4e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 5.4836273193359375e-06 elapsed_time : order_list_meta_photo_and_scores 1.33514404296875e-05 ????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0015177726745605469 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21982272, '2025-04-02' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1709477,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02422499656677246 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1709477 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1709477, 'dashboard_run_id': 1718613, 'mtr_portfolio_id': 21980200, 'dashboard_result_id': 9813198, '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_P21980200_02-04-2025_18_19_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21980220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21980221, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21980222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21980223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21980224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21980225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21980226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21980227, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21980228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21980229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21980230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21980231, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1718613, 'mtr_portfolio_id': 21980993, 'dashboard_result_id': 9813199, '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_P21980993_02-04-2025_18_33_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21981035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21981036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21981037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21981038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21981039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21981040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21981041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21981042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21981043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21981044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21981045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21981046, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1718613, 'mtr_portfolio_id': 21981615, 'dashboard_result_id': 9813200, '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_P21981615_02-04-2025_18_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21981643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21981644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21981645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21981646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21981647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21981648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21981649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21981650, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21981651, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21981652, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21981653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21981654, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1718613, 'mtr_portfolio_id': 21982272, 'dashboard_result_id': 9813201, '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_P21982272_02-04-2025_18_53_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21982276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21982277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21982278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21982279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21982280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21982281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21982282, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21982283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21982284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21982285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21982286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21982287, '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 = 21980200 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': 2717031, 'mtr_portfolio_id': 21980200, 'created_at': datetime.datetime(2025, 4, 2, 18, 19, 1), 'result': '0.04963321400999219', 'result_long': None, 'result_double': None}] Qualite : 0.04963321400999219 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21980200 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21980200_02-04-2025_18_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21980200 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_P21980200_02-04-2025_18_19_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21980220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21980221, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21980222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21980223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21980224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21980225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21980226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21980227, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21980228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21980229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21980230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21980231, 'pht': 3726}}" where mtr_portfolio_id = 21980200 and dashboard_run_id = 1718613 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`=21980200 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9813198, 0.04963321400999219, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21980200_02-04-2025_18_19_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21980220, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21980221, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21980222, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21980223, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21980224, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21980225, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21980226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21980227, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21980228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21980229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21980230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21980231, '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 = 21980993 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': 2717073, 'mtr_portfolio_id': 21980993, 'created_at': datetime.datetime(2025, 4, 2, 18, 33, 28), 'result': '0.04294571312738064', 'result_long': None, 'result_double': None}] Qualite : 0.04294571312738064 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21980993 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21980993_02-04-2025_18_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21980993 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_P21980993_02-04-2025_18_33_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21981035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21981036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21981037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21981038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21981039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21981040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21981041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21981042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21981043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21981044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21981045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21981046, 'pht': 3726}}" where mtr_portfolio_id = 21980993 and dashboard_run_id = 1718613 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`=21980993 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9813199, 0.04294571312738064, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21980993_02-04-2025_18_33_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21981035, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21981036, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21981037, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21981038, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21981039, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21981040, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21981041, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21981042, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21981043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21981044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21981045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21981046, '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 = 21981615 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': 2717132, 'mtr_portfolio_id': 21981615, 'created_at': datetime.datetime(2025, 4, 2, 18, 48, 58), 'result': '0.04685903695457557', 'result_long': None, 'result_double': None}] Qualite : 0.04685903695457557 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21981615 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21981615_02-04-2025_18_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21981615 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_P21981615_02-04-2025_18_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21981643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21981644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21981645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21981646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21981647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21981648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21981649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21981650, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21981651, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21981652, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21981653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21981654, 'pht': 3726}}" where mtr_portfolio_id = 21981615 and dashboard_run_id = 1718613 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`=21981615 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9813200, 0.04685903695457557, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21981615_02-04-2025_18_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21981643, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21981644, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21981645, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21981646, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21981647, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21981648, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21981649, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21981650, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21981651, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21981652, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21981653, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21981654, '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 = 21982272 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': 2717173, 'mtr_portfolio_id': 21982272, 'created_at': datetime.datetime(2025, 4, 2, 18, 54, 59), 'result': '0.04153730597825597', 'result_long': None, 'result_double': None}] Qualite : 0.04153730597825597 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21982272 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21982272_02-04-2025_18_55_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21982272 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_P21982272_02-04-2025_18_55_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21982276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21982277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21982278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21982279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21982280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21982281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21982282, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21982283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21982284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21982285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21982286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21982287, 'pht': 3726}}" where mtr_portfolio_id = 21982272 and dashboard_run_id = 1718613 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`=21982272 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9813201, 0.04153730597825597, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21982272_02-04-2025_18_55_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21982276, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21982277, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21982278, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21982279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21982280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21982281, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21982282, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21982283, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21982284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21982285, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21982286, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21982287, '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 (21980200,21980993,21981615,21982272) result : ((1349560558,), (1349560568,), (1349560628,), (1349561240,), (1349561271,), (1349561322,), (1349561368,), (1349561387,), (1349561410,), (1349561540,), (1349561576,), (1349561886,), (1349561927,), (1349561956,), (1349561982,), (1349562354,), (1349562390,), (1349562412,), (1349562472,), (1349562546,), (1349562587,), (1349562963,), (1349563033,), (1349563068,), (1349563093,), (1349563130,), (1349563474,), (1349563498,), (1349563504,), (1349563674,), (1349563677,), (1349563681,), (1349563683,), (1349563686,), (1349563689,), (1349563797,), (1349563813,), (1349563837,), (1349563862,), (1349563879,), (1349564082,), (1349564108,), (1349564139,), (1349564335,), (1349564364,), (1349564386,), (1349564389,), (1349564394,), (1349564477,), (1349564479,), (1349564482,), (1349564485,), (1349564552,), (1349564555,), (1349564559,), (1349564564,), (1349564568,), (1349564626,), (1349564629,), (1349564631,), (1349564634,), (1349565072,), (1349564847,), (1349564874,), (1349564915,), (1349564974,), (1349565020,), (1349565302,), (1349565330,), (1349565366,), (1349565401,), (1349565450,), (1349565463,), (1349565468,), (1349565477,), (1349565504,), (1349565529,), (1349565877,), (1349565924,), (1349565963,), (1349565998,), (1349566034,), (1349566188,), (1349566197,), (1349566230,), (1349566276,), (1349566286,), (1349566289,), (1349566292,), (1349566295,), (1349566324,), (1349566328,), (1349566396,), (1349566402,), (1349566566,), (1349566571,), (1349566598,), (1349566635,), (1349566675,), (1349566915,), (1349566920,), (1349566926,), (1349566930,), (1349566976,), (1349566991,), (1349566995,), (1349567013,), (1349567037,), (1349567062,), (1349567385,), (1349567390,), (1349567394,), (1349567397,), (1349567429,), (1349567435,), (1349567437,), (1349567439,), (1349567441,), (1349567489,), (1349567492,), (1349567494,), (1349567497,), (1349567501,), (1349567507,), (1349567534,), (1349567539,), (1349567549,), (1349567562,), (1349567618,), (1349567611,), (1349567615,), (1349567686,), (1349567693,), (1349567771,), (1349567786,), (1349567791,), (1349567844,), (1349567860,), (1349567887,), (1349567916,), (1349567947,), (1349567976,), (1349568087,), (1349568089,), (1349568091,), (1349568124,), (1349568728,), (1349568796,), (1349568866,), (1349568959,), (1349569080,), (1349569380,), (1349569383,), (1349569386,), (1349569389,), (1349569433,), (1349569446,), (1349569459,), (1349569470,), (1349569474,), (1349569801,), (1349569850,), (1349569922,), (1349569944,), (1349570146,), (1349570150,), (1349570174,), (1349570178,), (1349570182,), (1349570220,), (1349570246,), (1349570250,), (1349570255,), (1349570260,), (1349570337,), (1349570340,), (1349570344,), (1349570347,), (1349570351,), (1349570358,), (1349570446,), (1349570461,), (1349570466,), (1349570470,), (1349570534,), (1349570536,), (1349570539,), (1349570543,), (1349570547,), (1349570578,), (1349570582,), (1349570594,), (1349570608,), (1349570611,), (1349570671,), (1349570676,), (1349570683,), (1349570685,), (1349570983,), (1349570957,), (1349570962,), (1349570967,), (1349570972,), (1349570981,), (1349571039,), (1349571048,), (1349571080,), (1349571190,), (1349571194,), (1349571207,), (1349571374,), (1349571382,), (1349571385,), (1349571395,), (1349571450,), (1349571505,), (1349571689,), (1349571717,), (1349571767,), (1349571822,), (1349571869,), (1349571918,), (1349571992,), (1349571996,), (1349572060,), (1349572063,), (1349572065,), (1349572067,), (1349572070,), (1349572072,), (1349572102,), (1349572105,), (1349572110,), (1349572113,), (1349572132,), (1349572185,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02042025': {'nb_upload': 37, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21982272]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349572185, 1349572132, 1349572113, 1349572110, 1349572105, 1349572102, 1349572072, 1349572070, 1349572067, 1349572065, 1349572063, 1349572060] map_info['map_portfolio_photo'] : {21982272: [1349572185, 1349572132, 1349572113, 1349572110, 1349572105, 1349572102, 1349572072, 1349572070, 1349572067, 1349572065, 1349572063, 1349572060, 1349571996, 1349571992, 1349571918, 1349571869, 1349571822, 1349571767, 1349571717, 1349571689, 1349571505, 1349571450, 1349571395, 1349571385, 1349571382, 1349571374, 1349571207, 1349571194, 1349571190, 1349571080, 1349571048, 1349571039, 1349570981, 1349570972, 1349570967, 1349570962, 1349570957]} final : True mtd_id 4302 list_pids : [1349572185, 1349572132, 1349572113, 1349572110, 1349572105, 1349572102, 1349572072, 1349572070, 1349572067, 1349572065, 1349572063, 1349572060] Looping around the photos to save general results len do output : 1 /21982272Didn'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, '2717173') ('4302', '21982272', '1349572185', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572132', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572113', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572110', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572105', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572102', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572072', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572070', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572067', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572065', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572063', None, None, None, None, None, '2717173') ('4302', None, None, None, None, None, None, None, '2717173') ('4302', '21982272', '1349572060', None, None, None, None, None, '2717173') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21982272', 'None', None, None, None, None, '2717173'), ('4302', '21982272', '1349572185', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572132', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572113', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572110', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572105', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572102', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572072', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572070', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572067', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572065', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572063', None, None, None, None, None, '2717173'), ('4302', '21982272', '1349572060', None, None, None, None, None, '2717173')] time used for this insertion : 0.013728857040405273 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3536498546600342 time spend to save output : 0.013956785202026367 total time spend for step 5 : 0.36760663986206055 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 (2717173) 2.34user 2.24system 0:09.68elapsed 47%CPU (0avgtext+0avgdata 165532maxresident)k 408inputs+11888outputs (6major+78238minor)pagefaults 0swaps