SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__28052025_06_15_04_010162_4417_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__28052025_06_15_04_010162_4417_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__28052025_06_15_04_010162_4417_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__28052025_06_15_04_010162_4417_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__28052025_06_15_04_010162_4417_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__28052025_06_15_04_010162_4417_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__28052025_06_15_04_010162_4417_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__28052025_06_15_04_010162_4417_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[23405806, 23405822, 4417, 0.5, 493202403, 979], [23405806, 23405823, 4417, 0.5, 492725882, 979], [23405806, 23405824, 4417, 0.5, 2107753020, 979], [23405806, 23405825, 4417, 0.5, 492668766, 979], [23405806, 23405826, 4417, 0.5, 2107752406, 979], [23405806, 23405827, 4417, 0.5, 702398920, 979], [23405806, 23405828, 4417, 0.5, 2107755527, 979], [23405806, 23405829, 4417, 0.5, 2107753024, 979], [23405806, 23405830, 4417, 0.5, 492777938, 979], [23405806, 23405831, 4417, 0.5, 493012381, 979], [23405806, 23405832, 4417, 0.5, 492628673, 979], [23405806, 23405833, 4417, 0.5, 2107752385, 979]] 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`=23405806 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','plastique','Carton_gris','papier','autre_refus','cartonnette','mal_croppe','Carton_brun','flou','environnement','metal','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=23405806 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','plastique','Carton_gris','papier','autre_refus','cartonnette','mal_croppe','Carton_brun','flou','environnement','metal','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 23405806, 'sub_port_id': 23405822, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15616352, 'last_updated_at': datetime.datetime(2025, 5, 28, 6, 43, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 6, 43, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 6, 43, 31)}, 'plastique': {'main_port_id': 23405806, 'sub_port_id': 23405823, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15616353, 'last_updated_at': datetime.datetime(2025, 5, 28, 6, 43, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 6, 43, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 6, 43, 31)}, 'Carton_gris': {'main_port_id': 23405806, 'sub_port_id': 23405824, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15616354, 'last_updated_at': datetime.datetime(2025, 5, 28, 6, 43, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 6, 43, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 6, 43, 31)}, 'papier': {'main_port_id': 23405806, 'sub_port_id': 23405825, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15616355, 'last_updated_at': datetime.datetime(2025, 5, 28, 6, 43, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 6, 43, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 6, 43, 31)}, 'autre_refus': {'main_port_id': 23405806, 'sub_port_id': 23405826, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15616356, 'last_updated_at': datetime.datetime(2025, 5, 28, 6, 43, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 6, 43, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 6, 43, 31)}, 'cartonnette': {'main_port_id': 23405806, 'sub_port_id': 23405827, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15616357, 'last_updated_at': datetime.datetime(2025, 5, 28, 6, 43, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 6, 43, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 6, 43, 31)}, 'mal_croppe': {'main_port_id': 23405806, 'sub_port_id': 23405828, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15616358, 'last_updated_at': datetime.datetime(2025, 5, 28, 6, 43, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 6, 43, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 6, 43, 31)}, 'Carton_brun': {'main_port_id': 23405806, 'sub_port_id': 23405829, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15616359, 'last_updated_at': datetime.datetime(2025, 5, 28, 6, 43, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 6, 43, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 6, 43, 31)}, 'flou': {'main_port_id': 23405806, 'sub_port_id': 23405830, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15616360, 'last_updated_at': datetime.datetime(2025, 5, 28, 6, 43, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 6, 43, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 6, 43, 31)}, 'environnement': {'main_port_id': 23405806, 'sub_port_id': 23405831, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15616361, 'last_updated_at': datetime.datetime(2025, 5, 28, 6, 43, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 6, 43, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 6, 43, 31)}, 'metal': {'main_port_id': 23405806, 'sub_port_id': 23405832, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15616362, 'last_updated_at': datetime.datetime(2025, 5, 28, 6, 43, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 6, 43, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 6, 43, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 23405806, 'sub_port_id': 23405833, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15616363, 'last_updated_at': datetime.datetime(2025, 5, 28, 6, 43, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 28, 6, 43, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 28, 6, 43, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23405822,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23405810 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23405823,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23405811 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23405824,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23405812 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23405825,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23405813 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23405826,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23405814 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23405827,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23405815 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23405828,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23405816 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23405829,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23405817 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23405830,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23405818 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23405831,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23405819 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23405832,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23405820 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 23405833,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 23405821 lien utilise dans velours : https://www.fotonower.com/velours/23405822,23405823,23405824,23405825,23405826,23405827,23405828,23405829,23405830,23405831,23405832,23405833?tags=kraft,plastique,Carton_gris,papier,autre_refus,cartonnette,mal_croppe,Carton_brun,flou,environnement,metal,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23405806]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1361434044, 1361434039, 1361434037, 1361434035, 1361434011, 1361434007, 1361434006, 1361434004, 1361434001] map_info['map_portfolio_photo'] : {23405806: [1361434044, 1361434039, 1361434037, 1361434035, 1361434011, 1361434007, 1361434006, 1361434004, 1361434001]} final : False mtd_id 4302 list_pids : [1361434044, 1361434039, 1361434037, 1361434035, 1361434011, 1361434007, 1361434006, 1361434004, 1361434001] Looping around the photos to save general results len do output : 1 /23405806. 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, '2973125') ('4302', '23405806', '1361434044', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434039', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434037', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434035', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434011', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434007', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434006', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434004', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434001', None, None, None, None, None, '2973125') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '23405806', "{'kraft': 23405810, 'plastique': 23405811, 'Carton_gris': 23405812, 'papier': 23405813, 'autre_refus': 23405814, 'cartonnette': 23405815, 'mal_croppe': 23405816, 'Carton_brun': 23405817, 'flou': 23405818, 'environnement': 23405819, 'metal': 23405820, 'Teint_Dans_La_Masse': 23405821}", None, None, None, None, '2973125'), ('4302', '23405806', '1361434044', None, None, None, None, None, '2973125'), ('4302', '23405806', '1361434039', None, None, None, None, None, '2973125'), ('4302', '23405806', '1361434037', None, None, None, None, None, '2973125'), ('4302', '23405806', '1361434035', None, None, None, None, None, '2973125'), ('4302', '23405806', '1361434011', None, None, None, None, None, '2973125'), ('4302', '23405806', '1361434007', None, None, None, None, None, '2973125'), ('4302', '23405806', '1361434006', None, None, None, None, None, '2973125'), ('4302', '23405806', '1361434004', None, None, None, None, None, '2973125'), ('4302', '23405806', '1361434001', None, None, None, None, None, '2973125')] time used for this insertion : 0.01599860191345215 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.017526626586914 time spend to save output : 0.016261816024780273 total time spend for step 1 : 2.0337884426116943 step2:final Wed May 28 06:43:31 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 (23405806) 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 23405806 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1361434011,1361434007,1361434006,1361434004,1361434001,1361434044,1361434039,1361434037,1361434035); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23405806]) Inside saveOutput : final : False verbose : True original output for save of step final : {1361434044: ('0.0',), 1361434039: ('0.0',), 1361434037: ('0.0',), 1361434035: ('0.0',), 1361434011: ('0.0',), 1361434007: ('0.0',), 1361434006: ('0.0',), 1361434004: ('0.0',), 1361434001: ('0.0',)} new output for save of step final : {1361434044: ('0.0',), 1361434039: ('0.0',), 1361434037: ('0.0',), 1361434035: ('0.0',), 1361434011: ('0.0',), 1361434007: ('0.0',), 1361434006: ('0.0',), 1361434004: ('0.0',), 1361434001: ('0.0',)} [1361434044, 1361434039, 1361434037, 1361434035, 1361434011, 1361434007, 1361434006, 1361434004, 1361434001] map_info['map_portfolio_photo'] : {23405806: [1361434044, 1361434039, 1361434037, 1361434035, 1361434011, 1361434007, 1361434006, 1361434004, 1361434001]} final : False mtd_id 4302 list_pids : [1361434044, 1361434039, 1361434037, 1361434035, 1361434011, 1361434007, 1361434006, 1361434004, 1361434001] Looping around the photos to save general results len do output : 9 /1361434044.Didn't retrieve data . /1361434039.Didn't retrieve data . /1361434037.Didn't retrieve data . /1361434035.Didn't retrieve data . /1361434011.Didn't retrieve data . /1361434007.Didn't retrieve data . /1361434006.Didn't retrieve data . /1361434004.Didn't retrieve data . /1361434001.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, '2973125') ('4302', '23405806', '1361434044', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434039', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434037', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434035', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434011', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434007', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434006', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434004', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434001', None, None, None, None, None, '2973125') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '23405806', '1361434044', '0.0', None, None, None, None, '2973125'), ('4302', '23405806', '1361434039', '0.0', None, None, None, None, '2973125'), ('4302', '23405806', '1361434037', '0.0', None, None, None, None, '2973125'), ('4302', '23405806', '1361434035', '0.0', None, None, None, None, '2973125'), ('4302', '23405806', '1361434011', '0.0', None, None, None, None, '2973125'), ('4302', '23405806', '1361434007', '0.0', None, None, None, None, '2973125'), ('4302', '23405806', '1361434006', '0.0', None, None, None, None, '2973125'), ('4302', '23405806', '1361434004', '0.0', None, None, None, None, '2973125'), ('4302', '23405806', '1361434001', '0.0', None, None, None, None, '2973125')] time used for this insertion : 0.013983726501464844 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.013281583786010742 time spend to save output : 0.014426708221435547 total time spend for step 2 : 0.02770829200744629 step3:velours_tree Wed May 28 06:43:31 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 : {23405806: [{'kraft': 23405810, 'plastique': 23405811, 'Carton_gris': 23405812, 'papier': 23405813, 'autre_refus': 23405814, 'cartonnette': 23405815, 'mal_croppe': 23405816, 'Carton_brun': 23405817, 'flou': 23405818, 'environnement': 23405819, 'metal': 23405820, 'Teint_Dans_La_Masse': 23405821}]} input_args_next_step : {23405806: ()} output_args : {23405806: [{'kraft': 23405810, 'plastique': 23405811, 'Carton_gris': 23405812, 'papier': 23405813, 'autre_refus': 23405814, 'cartonnette': 23405815, 'mal_croppe': 23405816, 'Carton_brun': 23405817, 'flou': 23405818, 'environnement': 23405819, 'metal': 23405820, 'Teint_Dans_La_Masse': 23405821}]} args : 23405806 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'kraft': 23405810, 'plastique': 23405811, 'Carton_gris': 23405812, 'papier': 23405813, 'autre_refus': 23405814, 'cartonnette': 23405815, 'mal_croppe': 23405816, 'Carton_brun': 23405817, 'flou': 23405818, 'environnement': 23405819, 'metal': 23405820, 'Teint_Dans_La_Masse': 23405821},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23405806) 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([23405806]) 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.3023262023925781 time spend to save output : 4.839897155761719e-05 total time spend for step 3 : 0.30237460136413574 step4:send_mail_cod Wed May 28 06:43:31 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 : {1361434044: ('0.0',), 1361434039: ('0.0',), 1361434037: ('0.0',), 1361434035: ('0.0',), 1361434011: ('0.0',), 1361434007: ('0.0',), 1361434006: ('0.0',), 1361434004: ('0.0',), 1361434001: ('0.0',)} input_args_next_step : {1361434044: ()} output_args : {1361434044: ('0.0',), 1361434039: ('0.0',), 1361434037: ('0.0',), 1361434035: ('0.0',), 1361434011: ('0.0',), 1361434007: ('0.0',), 1361434006: ('0.0',), 1361434004: ('0.0',), 1361434001: ('0.0',)} args : 1361434044 depend.output_id : 0 input_args_next_step : {1361434044: ('0.0',), 1361434039: ()} output_args : {1361434044: ('0.0',), 1361434039: ('0.0',), 1361434037: ('0.0',), 1361434035: ('0.0',), 1361434011: ('0.0',), 1361434007: ('0.0',), 1361434006: ('0.0',), 1361434004: ('0.0',), 1361434001: ('0.0',)} args : 1361434039 depend.output_id : 0 input_args_next_step : {1361434044: ('0.0',), 1361434039: ('0.0',), 1361434037: ()} output_args : {1361434044: ('0.0',), 1361434039: ('0.0',), 1361434037: ('0.0',), 1361434035: ('0.0',), 1361434011: ('0.0',), 1361434007: ('0.0',), 1361434006: ('0.0',), 1361434004: ('0.0',), 1361434001: ('0.0',)} args : 1361434037 depend.output_id : 0 input_args_next_step : {1361434044: ('0.0',), 1361434039: ('0.0',), 1361434037: ('0.0',), 1361434035: ()} output_args : {1361434044: ('0.0',), 1361434039: ('0.0',), 1361434037: ('0.0',), 1361434035: ('0.0',), 1361434011: ('0.0',), 1361434007: ('0.0',), 1361434006: ('0.0',), 1361434004: ('0.0',), 1361434001: ('0.0',)} args : 1361434035 depend.output_id : 0 input_args_next_step : {1361434044: ('0.0',), 1361434039: ('0.0',), 1361434037: ('0.0',), 1361434035: ('0.0',), 1361434011: ()} output_args : {1361434044: ('0.0',), 1361434039: ('0.0',), 1361434037: ('0.0',), 1361434035: ('0.0',), 1361434011: ('0.0',), 1361434007: ('0.0',), 1361434006: ('0.0',), 1361434004: ('0.0',), 1361434001: ('0.0',)} args : 1361434011 depend.output_id : 0 input_args_next_step : {1361434044: ('0.0',), 1361434039: ('0.0',), 1361434037: ('0.0',), 1361434035: ('0.0',), 1361434011: ('0.0',), 1361434007: ()} output_args : {1361434044: ('0.0',), 1361434039: ('0.0',), 1361434037: ('0.0',), 1361434035: ('0.0',), 1361434011: ('0.0',), 1361434007: ('0.0',), 1361434006: ('0.0',), 1361434004: ('0.0',), 1361434001: ('0.0',)} args : 1361434007 depend.output_id : 0 input_args_next_step : {1361434044: ('0.0',), 1361434039: ('0.0',), 1361434037: ('0.0',), 1361434035: ('0.0',), 1361434011: ('0.0',), 1361434007: ('0.0',), 1361434006: ()} output_args : {1361434044: ('0.0',), 1361434039: ('0.0',), 1361434037: ('0.0',), 1361434035: ('0.0',), 1361434011: ('0.0',), 1361434007: ('0.0',), 1361434006: ('0.0',), 1361434004: ('0.0',), 1361434001: ('0.0',)} args : 1361434006 depend.output_id : 0 input_args_next_step : {1361434044: ('0.0',), 1361434039: ('0.0',), 1361434037: ('0.0',), 1361434035: ('0.0',), 1361434011: ('0.0',), 1361434007: ('0.0',), 1361434006: ('0.0',), 1361434004: ()} output_args : {1361434044: ('0.0',), 1361434039: ('0.0',), 1361434037: ('0.0',), 1361434035: ('0.0',), 1361434011: ('0.0',), 1361434007: ('0.0',), 1361434006: ('0.0',), 1361434004: ('0.0',), 1361434001: ('0.0',)} args : 1361434004 depend.output_id : 0 input_args_next_step : {1361434044: ('0.0',), 1361434039: ('0.0',), 1361434037: ('0.0',), 1361434035: ('0.0',), 1361434011: ('0.0',), 1361434007: ('0.0',), 1361434006: ('0.0',), 1361434004: ('0.0',), 1361434001: ()} output_args : {1361434044: ('0.0',), 1361434039: ('0.0',), 1361434037: ('0.0',), 1361434035: ('0.0',), 1361434011: ('0.0',), 1361434007: ('0.0',), 1361434006: ('0.0',), 1361434004: ('0.0',), 1361434001: ('0.0',)} args : 1361434001 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 : {23405806: [{'kraft': 23405810, 'plastique': 23405811, 'Carton_gris': 23405812, 'papier': 23405813, 'autre_refus': 23405814, 'cartonnette': 23405815, 'mal_croppe': 23405816, 'Carton_brun': 23405817, 'flou': 23405818, 'environnement': 23405819, 'metal': 23405820, 'Teint_Dans_La_Masse': 23405821}]} input_args_next_step : {1361434044: ('0.0',), 1361434039: ('0.0',), 1361434037: ('0.0',), 1361434035: ('0.0',), 1361434011: ('0.0',), 1361434007: ('0.0',), 1361434006: ('0.0',), 1361434004: ('0.0',), 1361434001: ('0.0',), 23405806: ()} output_args : {23405806: [{'kraft': 23405810, 'plastique': 23405811, 'Carton_gris': 23405812, 'papier': 23405813, 'autre_refus': 23405814, 'cartonnette': 23405815, 'mal_croppe': 23405816, 'Carton_brun': 23405817, 'flou': 23405818, 'environnement': 23405819, 'metal': 23405820, 'Teint_Dans_La_Masse': 23405821}]} args : 23405806 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :10, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23405806) 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 (1361434044,1361434039,1361434037,1361434035,1361434011,1361434007,1361434006,1361434004,1361434001) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1361434001 begin to download photo : 1361434006 begin to download photo : 1361434011 begin to download photo : 1361434037 begin to download photo : 1361434044 download finish for photo 1361434011 begin to download photo : 1361434035 download finish for photo 1361434006 begin to download photo : 1361434007 download finish for photo 1361434001 begin to download photo : 1361434004 download finish for photo 1361434037 begin to download photo : 1361434039 download finish for photo 1361434007 download finish for photo 1361434035 download finish for photo 1361434039 download finish for photo 1361434004 download finish for photo 1361434044 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette234058101748407412/ imagette234058111748407412/ imagette234058141748407412/ imagette234058151748407412/ imagette234058161748407412/ imagette234058181748407412/ imagette234058201748407412/ imagette234058121748407412/ imagette234058171748407412/ imagette234058211748407412/ length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P23405806_28-05-2025_06_43_32.pdf 23405810 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=23405810 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234058101748407412 23405811 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=23405811 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234058111748407412 23405814 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=23405814 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234058141748407412 23405815 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=23405815 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234058151748407412 23405816 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=23405816 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234058161748407412 23405818 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=23405818 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234058181748407412 23405820 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=23405820 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234058201748407412 23405812 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=23405812 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234058121748407412 23405817 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=23405817 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234058171748407412 23405821 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=23405821 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette234058211748407412 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=23405806 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/23405822,23405823,23405824,23405825,23405826,23405827,23405828,23405829,23405830,23405831,23405832,23405833?tags=kraft,plastique,Carton_gris,papier,autre_refus,cartonnette,mal_croppe,Carton_brun,flou,environnement,metal,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1361434044] : ('0.0',) no score found for photo 1361434044 We are sending mail with results at report@fotonower.com args[1361434039] : ('0.0',) no score found for photo 1361434039 We are sending mail with results at report@fotonower.com args[1361434037] : ('0.0',) no score found for photo 1361434037 We are sending mail with results at report@fotonower.com args[1361434035] : ('0.0',) no score found for photo 1361434035 We are sending mail with results at report@fotonower.com args[1361434011] : ('0.0',) no score found for photo 1361434011 We are sending mail with results at report@fotonower.com args[1361434007] : ('0.0',) no score found for photo 1361434007 We are sending mail with results at report@fotonower.com args[1361434006] : ('0.0',) no score found for photo 1361434006 We are sending mail with results at report@fotonower.com args[1361434004] : ('0.0',) no score found for photo 1361434004 We are sending mail with results at report@fotonower.com args[1361434001] : ('0.0',) no score found for photo 1361434001 We are sending mail with results at report@fotonower.com refus_total : 0.0 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=23405806 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_P23405806_28-05-2025_06_43_32.pdf results_Auto_P23405806_28-05-2025_06_43_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23405806_28-05-2025_06_43_32.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','23405806','results_Auto_P23405806_28-05-2025_06_43_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23405806_28-05-2025_06_43_32.pdf','pdf','','0.09','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23405806]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1361434044, 1361434039, 1361434037, 1361434035, 1361434011, 1361434007, 1361434006, 1361434004, 1361434001] map_info['map_portfolio_photo'] : {23405806: [1361434044, 1361434039, 1361434037, 1361434035, 1361434011, 1361434007, 1361434006, 1361434004, 1361434001]} final : False mtd_id 4302 list_pids : [1361434044, 1361434039, 1361434037, 1361434035, 1361434011, 1361434007, 1361434006, 1361434004, 1361434001] 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, '2973125') ('4302', '23405806', '1361434044', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434039', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434037', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434035', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434011', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434007', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434006', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434004', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434001', None, None, None, None, None, '2973125') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '23405806', '1361434044', None, None, None, None, None, '2973125'), ('4302', '23405806', '1361434039', None, None, None, None, None, '2973125'), ('4302', '23405806', '1361434037', None, None, None, None, None, '2973125'), ('4302', '23405806', '1361434035', None, None, None, None, None, '2973125'), ('4302', '23405806', '1361434011', None, None, None, None, None, '2973125'), ('4302', '23405806', '1361434007', None, None, None, None, None, '2973125'), ('4302', '23405806', '1361434006', None, None, None, None, None, '2973125'), ('4302', '23405806', '1361434004', None, None, None, None, None, '2973125'), ('4302', '23405806', '1361434001', None, None, None, None, None, '2973125')] time used for this insertion : 0.015811681747436523 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.1612257957458496 time spend to save output : 0.016021013259887695 total time spend for step 4 : 2.1772468090057373 step5:split_time_score Wed May 28 06:43:33 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 : ['23405806'] 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 : [('23405806',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (23405806) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1361434006: {'path': 'temp/1748407411_4039220_1361434006_755849c242871f07c17057e715fc4295.jpg', 'extension': 'jpg'}, 1361434007: {'path': 'temp/1748407411_4039220_1361434007_cb12acf07d41e99d701f36f6823c8f3a.jpg', 'extension': 'jpg'}, 1361434011: {'path': 'temp/1748407411_4039220_1361434011_a4a12c3d16974ac403bcffccc236e320.jpg', 'extension': 'jpg'}, 1361434035: {'path': 'temp/1748407411_4039220_1361434035_c2331a2f7d8e1972713ea901833ad79c.jpg', 'extension': 'jpg'}, 1361434037: {'path': 'temp/1748407411_4039220_1361434037_cd3019d811e715440374baadaf4bb84b.jpg', 'extension': 'jpg'}, 1361434039: {'path': 'temp/1748407411_4039220_1361434039_a5ffeac577817d57e627ef1b02b5fa6f.jpg', 'extension': 'jpg'}, 1361434001: {'path': 'temp/1748407411_4039220_1361434001_de6b26892d8bbc99a3d14d3b0f791805.jpg', 'extension': 'jpg'}, 1361434004: {'path': 'temp/1748407411_4039220_1361434004_3ddd6572665fe35f52c0e13bd1ab210d.jpg', 'extension': 'jpg'}, 1361434044: {'path': 'temp/1748407411_4039220_1361434044_bcc8ef64a4c68a0bfde93ae3191c7bfe.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 = 23405806; (('arc_en_ciel_jrm_live',),) 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 = 23405806 group by h (('06', 9),) 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=23405806 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 (23405806) 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 (23405806) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28052025 23405806 Nombre de photos uploadées : 9 / 23040 (0%) 28052025 23405806 Nombre de photos taguées (types de déchets): 0 / 9 (0%) 28052025 23405806 Nombre de photos taguées (volume) : 0 / 9 (0%) [{'photo_id': 1361434011, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/a4a12c3d16974ac403bcffccc236e320.jpg', 'username': None, 'uploaded_at': 1748407245, 'text': 'image_28052025_06_15_04_10162.jpg'}, {'photo_id': 1361434007, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/cb12acf07d41e99d701f36f6823c8f3a.jpg', 'username': None, 'uploaded_at': 1748407245, 'text': 'image_28052025_06_15_14_10134.jpg'}, {'photo_id': 1361434006, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/755849c242871f07c17057e715fc4295.jpg', 'username': None, 'uploaded_at': 1748407245, 'text': 'image_28052025_06_15_25_10134.jpg'}, {'photo_id': 1361434004, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/28/3ddd6572665fe35f52c0e13bd1ab210d.jpg', 'username': None, 'uploaded_at': 1748407245, 'text': 'image_28052025_06_15_35_10134.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 4.5299530029296875e-06 ????????? elapsed_time : fill_and_build_computed_from_old_data 0.00046372413635253906 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 23405806, '2025-05-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1841424,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024447917938232422 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= 1841424 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1841424, 'dashboard_run_id': 1849674, 'mtr_portfolio_id': 23405129, 'dashboard_result_id': 10977681, '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_P23405129_28-05-2025_06_28_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23405143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23405144, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23405145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23405146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23405147, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23405148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23405149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23405150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23405151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23405152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23405153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23405154, 'pht': 3726}}"}, {'dashboat_entry_day': 1841424, 'dashboard_run_id': 1849674, 'mtr_portfolio_id': 23405492, 'dashboard_result_id': 10977682, '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_P23405492_28-05-2025_06_42_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23405518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23405519, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23405520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23405521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23405522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23405523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23405524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23405525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23405526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23405527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23405528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23405529, 'pht': 3726}}"}, {'dashboat_entry_day': 1841424, 'dashboard_run_id': 1849674, 'mtr_portfolio_id': 23405806, 'dashboard_result_id': 10977683, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}] 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 = 23405129 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': 2972939, 'mtr_portfolio_id': 23405129, 'created_at': datetime.datetime(2025, 5, 28, 6, 28, 57), 'result': '0.04081889728704884', 'result_long': None, 'result_double': None}] Qualite : 0.04081889728704884 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23405129 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23405129_28-05-2025_06_28_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23405129 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_P23405129_28-05-2025_06_28_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23405143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23405144, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23405145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23405146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23405147, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23405148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23405149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23405150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23405151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23405152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23405153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23405154, 'pht': 3726}}" where mtr_portfolio_id = 23405129 and dashboard_run_id = 1849674 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`=23405129 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10977681, 0.04081889728704884, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23405129_28-05-2025_06_28_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23405143, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23405144, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23405145, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23405146, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23405147, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23405148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23405149, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23405150, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23405151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23405152, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23405153, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23405154, '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 = 23405492 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': 2973055, 'mtr_portfolio_id': 23405492, 'created_at': datetime.datetime(2025, 5, 28, 6, 42, 58), 'result': '0.02725474068078971', 'result_long': None, 'result_double': None}] Qualite : 0.02725474068078971 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23405492 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23405492_28-05-2025_06_42_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23405492 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_P23405492_28-05-2025_06_42_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23405518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23405519, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23405520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23405521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23405522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23405523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23405524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23405525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23405526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23405527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23405528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23405529, 'pht': 3726}}" where mtr_portfolio_id = 23405492 and dashboard_run_id = 1849674 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`=23405492 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10977682, 0.02725474068078971, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23405492_28-05-2025_06_42_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 23405518, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 23405519, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 23405520, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 23405521, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 23405522, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 23405523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 23405524, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 23405525, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 23405526, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 23405527, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 23405528, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 23405529, '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 = 23405806 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 23405806 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 23405806 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23405806 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 23405806 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 23405806 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P23405806_28-05-2025_06_43_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 23405806 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_P23405806_28-05-2025_06_43_32.pdf'}" where mtr_portfolio_id = 23405806 and dashboard_run_id = 1849674 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (23405129,23405492,23405806) result : ((1361433017,), (1361433019,), (1361433021,), (1361433049,), (1361433051,), (1361433053,), (1361433055,), (1361433057,), (1361433062,), (1361433095,), (1361433100,), (1361433103,), (1361433107,), (1361433110,), (1361433112,), (1361433128,), (1361433130,), (1361433132,), (1361433152,), (1361433155,), (1361433158,), (1361433160,), (1361433162,), (1361433180,), (1361433187,), (1361433189,), (1361433191,), (1361433193,), (1361433196,), (1361433218,), (1361433226,), (1361433230,), (1361433232,), (1361433258,), (1361433260,), (1361433262,), (1361433264,), (1361433266,), (1361433289,), (1361433292,), (1361433294,), (1361433297,), (1361433301,), (1361433322,), (1361433325,), (1361433328,), (1361433331,), (1361433333,), (1361433365,), (1361433367,), (1361433370,), (1361433373,), (1361433374,), (1361433394,), (1361433396,), (1361433398,), (1361433400,), (1361433401,), (1361433404,), (1361433424,), (1361433426,), (1361433428,), (1361433429,), (1361433480,), (1361433483,), (1361433486,), (1361433487,), (1361433493,), (1361433494,), (1361433496,), (1361433497,), (1361433499,), (1361433501,), (1361433503,), (1361433506,), (1361433509,), (1361433512,), (1361433527,), (1361433520,), (1361433522,), (1361433524,), (1361433526,), (1361433547,), (1361433549,), (1361433551,), (1361433573,), (1361433576,), (1361433578,), (1361433600,), (1361433602,), (1361433604,), (1361433606,), (1361433609,), (1361433631,), (1361433634,), (1361433636,), (1361433639,), (1361433641,), (1361433662,), (1361433664,), (1361433666,), (1361433687,), (1361433690,), (1361433692,), (1361433694,), (1361433701,), (1361433702,), (1361433721,), (1361433723,), (1361433725,), (1361433731,), (1361433751,), (1361433753,), (1361433755,), (1361433757,), (1361433777,), (1361433779,), (1361433781,), (1361433782,), (1361433785,), (1361433786,), (1361433805,), (1361433807,), (1361433809,), (1361433811,), (1361433820,), (1361433852,), (1361433855,), (1361433856,), (1361433858,), (1361433860,), (1361433862,), (1361433897,), (1361433901,), (1361433903,), (1361433906,), (1361433908,), (1361433933,), (1361433937,), (1361433941,), (1361433943,), (1361433946,), (1361433965,), (1361433967,), (1361433970,), (1361433973,), (1361433976,), (1361434013,), (1361434001,), (1361434004,), (1361434006,), (1361434007,), (1361434011,), (1361434035,), (1361434037,), (1361434039,), (1361434044,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28052025': {'nb_upload': 9, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([23405806]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1361434044, 1361434039, 1361434037, 1361434035, 1361434011, 1361434007, 1361434006, 1361434004, 1361434001] map_info['map_portfolio_photo'] : {23405806: [1361434044, 1361434039, 1361434037, 1361434035, 1361434011, 1361434007, 1361434006, 1361434004, 1361434001]} final : True mtd_id 4302 list_pids : [1361434044, 1361434039, 1361434037, 1361434035, 1361434011, 1361434007, 1361434006, 1361434004, 1361434001] Looping around the photos to save general results len do output : 1 /23405806Didn'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, '2973125') ('4302', '23405806', '1361434044', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434039', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434037', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434035', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434011', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434007', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434006', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434004', None, None, None, None, None, '2973125') ('4302', None, None, None, None, None, None, None, '2973125') ('4302', '23405806', '1361434001', None, None, None, None, None, '2973125') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '23405806', 'None', None, None, None, None, '2973125'), ('4302', '23405806', '1361434044', None, None, None, None, None, '2973125'), ('4302', '23405806', '1361434039', None, None, None, None, None, '2973125'), ('4302', '23405806', '1361434037', None, None, None, None, None, '2973125'), ('4302', '23405806', '1361434035', None, None, None, None, None, '2973125'), ('4302', '23405806', '1361434011', None, None, None, None, None, '2973125'), ('4302', '23405806', '1361434007', None, None, None, None, None, '2973125'), ('4302', '23405806', '1361434006', None, None, None, None, None, '2973125'), ('4302', '23405806', '1361434004', None, None, None, None, None, '2973125'), ('4302', '23405806', '1361434001', None, None, None, None, None, '2973125')] time used for this insertion : 0.16450858116149902 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5675942897796631 time spend to save output : 0.16474294662475586 total time spend for step 5 : 0.732337236404419 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 (2973125) 1.99user 2.18system 0:08.76elapsed 47%CPU (0avgtext+0avgdata 161908maxresident)k 352inputs+5328outputs (15major+64574minor)pagefaults 0swaps