SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18042025_21_46_24_009126_4417_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18042025_21_46_24_009126_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__18042025_21_46_24_009126_4417_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18042025_21_46_24_009126_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__18042025_21_46_24_009126_4417_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18042025_21_46_24_009126_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__18042025_21_46_24_009126_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__18042025_21_46_24_009126_4417_environnement_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)[[22225216, 22225229, 4417, 0.5, 2107753020, 979], [22225216, 22225230, 4417, 0.5, 492668766, 979], [22225216, 22225231, 4417, 0.5, 2107753024, 979], [22225216, 22225232, 4417, 0.5, 702398920, 979], [22225216, 22225233, 4417, 0.5, 2107752385, 979], [22225216, 22225234, 4417, 0.5, 492628673, 979], [22225216, 22225235, 4417, 0.5, 492725882, 979], [22225216, 22225236, 4417, 0.5, 492777938, 979], [22225216, 22225237, 4417, 0.5, 493202403, 979], [22225216, 22225238, 4417, 0.5, 2107755527, 979], [22225216, 22225239, 4417, 0.5, 2107752406, 979], [22225216, 22225240, 4417, 0.5, 493012381, 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`=22225216 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','Carton_brun','cartonnette','Teint_Dans_La_Masse','metal','plastique','flou','kraft','mal_croppe','autre_refus','environnement')) 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`=22225216 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','papier','Carton_brun','cartonnette','Teint_Dans_La_Masse','metal','plastique','flou','kraft','mal_croppe','autre_refus','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22225216, 'sub_port_id': 22225229, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14697165, 'last_updated_at': datetime.datetime(2025, 4, 18, 21, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 21, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 21, 59)}, 'papier': {'main_port_id': 22225216, 'sub_port_id': 22225230, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14697166, 'last_updated_at': datetime.datetime(2025, 4, 18, 21, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 21, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 21, 59)}, 'Carton_brun': {'main_port_id': 22225216, 'sub_port_id': 22225231, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14697167, 'last_updated_at': datetime.datetime(2025, 4, 18, 21, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 21, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 21, 59)}, 'cartonnette': {'main_port_id': 22225216, 'sub_port_id': 22225232, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14697168, 'last_updated_at': datetime.datetime(2025, 4, 18, 21, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 21, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 21, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22225216, 'sub_port_id': 22225233, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14697169, 'last_updated_at': datetime.datetime(2025, 4, 18, 21, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 21, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 21, 59)}, 'metal': {'main_port_id': 22225216, 'sub_port_id': 22225234, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14697170, 'last_updated_at': datetime.datetime(2025, 4, 18, 21, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 21, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 21, 59)}, 'plastique': {'main_port_id': 22225216, 'sub_port_id': 22225235, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14697171, 'last_updated_at': datetime.datetime(2025, 4, 18, 21, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 21, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 21, 59)}, 'flou': {'main_port_id': 22225216, 'sub_port_id': 22225236, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14697172, 'last_updated_at': datetime.datetime(2025, 4, 18, 21, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 21, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 21, 59)}, 'kraft': {'main_port_id': 22225216, 'sub_port_id': 22225237, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14697173, 'last_updated_at': datetime.datetime(2025, 4, 18, 21, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 21, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 21, 59)}, 'mal_croppe': {'main_port_id': 22225216, 'sub_port_id': 22225238, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14697174, 'last_updated_at': datetime.datetime(2025, 4, 18, 21, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 21, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 21, 59)}, 'autre_refus': {'main_port_id': 22225216, 'sub_port_id': 22225239, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14697175, 'last_updated_at': datetime.datetime(2025, 4, 18, 21, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 21, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 21, 59)}, 'environnement': {'main_port_id': 22225216, 'sub_port_id': 22225240, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14697176, 'last_updated_at': datetime.datetime(2025, 4, 18, 21, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 21, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 21, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22225229,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22225217 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22225230,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22225218 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22225231,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22225219 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22225232,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22225220 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22225233,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22225221 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22225234,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22225222 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22225235,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22225223 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22225236,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22225224 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22225237,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22225225 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22225238,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22225226 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22225239,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22225227 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22225240,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22225228 lien utilise dans velours : https://www.fotonower.com/velours/22225229,22225230,22225231,22225232,22225233,22225234,22225235,22225236,22225237,22225238,22225239,22225240?tags=Carton_gris,papier,Carton_brun,cartonnette,Teint_Dans_La_Masse,metal,plastique,flou,kraft,mal_croppe,autre_refus,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22225216]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1351403167, 1351402840, 1351402546, 1351402544, 1351402497, 1351401967, 1351401365, 1351401361, 1351401329] map_info['map_portfolio_photo'] : {22225216: [1351403167, 1351402840, 1351402546, 1351402544, 1351402497, 1351401967, 1351401365, 1351401361, 1351401329]} final : False mtd_id 4302 list_pids : [1351403167, 1351402840, 1351402546, 1351402544, 1351402497, 1351401967, 1351401365, 1351401361, 1351401329] Looping around the photos to save general results len do output : 1 /22225216. 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, '2738887') ('4302', '22225216', '1351403167', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351402840', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351402546', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351402544', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351402497', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351401967', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351401365', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351401361', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351401329', None, None, None, None, None, '2738887') 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, '22225216', "{'Carton_gris': 22225217, 'papier': 22225218, 'Carton_brun': 22225219, 'cartonnette': 22225220, 'Teint_Dans_La_Masse': 22225221, 'metal': 22225222, 'plastique': 22225223, 'flou': 22225224, 'kraft': 22225225, 'mal_croppe': 22225226, 'autre_refus': 22225227, 'environnement': 22225228}", None, None, None, None, '2738887'), ('4302', '22225216', '1351403167', None, None, None, None, None, '2738887'), ('4302', '22225216', '1351402840', None, None, None, None, None, '2738887'), ('4302', '22225216', '1351402546', None, None, None, None, None, '2738887'), ('4302', '22225216', '1351402544', None, None, None, None, None, '2738887'), ('4302', '22225216', '1351402497', None, None, None, None, None, '2738887'), ('4302', '22225216', '1351401967', None, None, None, None, None, '2738887'), ('4302', '22225216', '1351401365', None, None, None, None, None, '2738887'), ('4302', '22225216', '1351401361', None, None, None, None, None, '2738887'), ('4302', '22225216', '1351401329', None, None, None, None, None, '2738887')] time used for this insertion : 0.014690160751342773 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.036492109298706 time spend to save output : 0.014876604080200195 total time spend for step 1 : 2.0513687133789062 step2:final Fri Apr 18 21:59:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22225216) 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 22225216 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1351401365,1351401361,1351401329,1351401967,1351402497,1351402546,1351402544,1351402840,1351403167); 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([22225216]) Inside saveOutput : final : False verbose : True original output for save of step final : {1351403167: ('0.08968086148131064',), 1351402840: ('0.08968086148131064',), 1351402546: ('0.08968086148131064',), 1351402544: ('0.08968086148131064',), 1351402497: ('0.08968086148131064',), 1351401967: ('0.08968086148131064',), 1351401365: ('0.08968086148131064',), 1351401361: ('0.08968086148131064',), 1351401329: ('0.08968086148131064',)} new output for save of step final : {1351403167: ('0.08968086148131064',), 1351402840: ('0.08968086148131064',), 1351402546: ('0.08968086148131064',), 1351402544: ('0.08968086148131064',), 1351402497: ('0.08968086148131064',), 1351401967: ('0.08968086148131064',), 1351401365: ('0.08968086148131064',), 1351401361: ('0.08968086148131064',), 1351401329: ('0.08968086148131064',)} [1351403167, 1351402840, 1351402546, 1351402544, 1351402497, 1351401967, 1351401365, 1351401361, 1351401329] map_info['map_portfolio_photo'] : {22225216: [1351403167, 1351402840, 1351402546, 1351402544, 1351402497, 1351401967, 1351401365, 1351401361, 1351401329]} final : False mtd_id 4302 list_pids : [1351403167, 1351402840, 1351402546, 1351402544, 1351402497, 1351401967, 1351401365, 1351401361, 1351401329] Looping around the photos to save general results len do output : 9 /1351403167.Didn't retrieve data . /1351402840.Didn't retrieve data . /1351402546.Didn't retrieve data . /1351402544.Didn't retrieve data . /1351402497.Didn't retrieve data . /1351401967.Didn't retrieve data . /1351401365.Didn't retrieve data . /1351401361.Didn't retrieve data . /1351401329.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, '2738887') ('4302', '22225216', '1351403167', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351402840', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351402546', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351402544', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351402497', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351401967', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351401365', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351401361', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351401329', None, None, None, None, None, '2738887') 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', '22225216', '1351403167', '0.08968086148131064', None, None, None, None, '2738887'), ('4302', '22225216', '1351402840', '0.08968086148131064', None, None, None, None, '2738887'), ('4302', '22225216', '1351402546', '0.08968086148131064', None, None, None, None, '2738887'), ('4302', '22225216', '1351402544', '0.08968086148131064', None, None, None, None, '2738887'), ('4302', '22225216', '1351402497', '0.08968086148131064', None, None, None, None, '2738887'), ('4302', '22225216', '1351401967', '0.08968086148131064', None, None, None, None, '2738887'), ('4302', '22225216', '1351401365', '0.08968086148131064', None, None, None, None, '2738887'), ('4302', '22225216', '1351401361', '0.08968086148131064', None, None, None, None, '2738887'), ('4302', '22225216', '1351401329', '0.08968086148131064', None, None, None, None, '2738887')] time used for this insertion : 0.016386747360229492 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.029986858367919922 time spend to save output : 0.01663947105407715 total time spend for step 2 : 0.04662632942199707 step3:velours_tree Fri Apr 18 21:59:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22225216: [{'Carton_gris': 22225217, 'papier': 22225218, 'Carton_brun': 22225219, 'cartonnette': 22225220, 'Teint_Dans_La_Masse': 22225221, 'metal': 22225222, 'plastique': 22225223, 'flou': 22225224, 'kraft': 22225225, 'mal_croppe': 22225226, 'autre_refus': 22225227, 'environnement': 22225228}]} input_args_next_step : {22225216: ()} output_args : {22225216: [{'Carton_gris': 22225217, 'papier': 22225218, 'Carton_brun': 22225219, 'cartonnette': 22225220, 'Teint_Dans_La_Masse': 22225221, 'metal': 22225222, 'plastique': 22225223, 'flou': 22225224, 'kraft': 22225225, 'mal_croppe': 22225226, 'autre_refus': 22225227, 'environnement': 22225228}]} args : 22225216 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 22225217, 'papier': 22225218, 'Carton_brun': 22225219, 'cartonnette': 22225220, 'Teint_Dans_La_Masse': 22225221, 'metal': 22225222, 'plastique': 22225223, 'flou': 22225224, 'kraft': 22225225, 'mal_croppe': 22225226, 'autre_refus': 22225227, 'environnement': 22225228},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22225216) 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([22225216]) 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.3157351016998291 time spend to save output : 7.62939453125e-05 total time spend for step 3 : 0.3158113956451416 step4:send_mail_cod Fri Apr 18 21:59:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1351403167: ('0.08968086148131064',), 1351402840: ('0.08968086148131064',), 1351402546: ('0.08968086148131064',), 1351402544: ('0.08968086148131064',), 1351402497: ('0.08968086148131064',), 1351401967: ('0.08968086148131064',), 1351401365: ('0.08968086148131064',), 1351401361: ('0.08968086148131064',), 1351401329: ('0.08968086148131064',)} input_args_next_step : {1351403167: ()} output_args : {1351403167: ('0.08968086148131064',), 1351402840: ('0.08968086148131064',), 1351402546: ('0.08968086148131064',), 1351402544: ('0.08968086148131064',), 1351402497: ('0.08968086148131064',), 1351401967: ('0.08968086148131064',), 1351401365: ('0.08968086148131064',), 1351401361: ('0.08968086148131064',), 1351401329: ('0.08968086148131064',)} args : 1351403167 depend.output_id : 0 input_args_next_step : {1351403167: ('0.08968086148131064',), 1351402840: ()} output_args : {1351403167: ('0.08968086148131064',), 1351402840: ('0.08968086148131064',), 1351402546: ('0.08968086148131064',), 1351402544: ('0.08968086148131064',), 1351402497: ('0.08968086148131064',), 1351401967: ('0.08968086148131064',), 1351401365: ('0.08968086148131064',), 1351401361: ('0.08968086148131064',), 1351401329: ('0.08968086148131064',)} args : 1351402840 depend.output_id : 0 input_args_next_step : {1351403167: ('0.08968086148131064',), 1351402840: ('0.08968086148131064',), 1351402546: ()} output_args : {1351403167: ('0.08968086148131064',), 1351402840: ('0.08968086148131064',), 1351402546: ('0.08968086148131064',), 1351402544: ('0.08968086148131064',), 1351402497: ('0.08968086148131064',), 1351401967: ('0.08968086148131064',), 1351401365: ('0.08968086148131064',), 1351401361: ('0.08968086148131064',), 1351401329: ('0.08968086148131064',)} args : 1351402546 depend.output_id : 0 input_args_next_step : {1351403167: ('0.08968086148131064',), 1351402840: ('0.08968086148131064',), 1351402546: ('0.08968086148131064',), 1351402544: ()} output_args : {1351403167: ('0.08968086148131064',), 1351402840: ('0.08968086148131064',), 1351402546: ('0.08968086148131064',), 1351402544: ('0.08968086148131064',), 1351402497: ('0.08968086148131064',), 1351401967: ('0.08968086148131064',), 1351401365: ('0.08968086148131064',), 1351401361: ('0.08968086148131064',), 1351401329: ('0.08968086148131064',)} args : 1351402544 depend.output_id : 0 input_args_next_step : {1351403167: ('0.08968086148131064',), 1351402840: ('0.08968086148131064',), 1351402546: ('0.08968086148131064',), 1351402544: ('0.08968086148131064',), 1351402497: ()} output_args : {1351403167: ('0.08968086148131064',), 1351402840: ('0.08968086148131064',), 1351402546: ('0.08968086148131064',), 1351402544: ('0.08968086148131064',), 1351402497: ('0.08968086148131064',), 1351401967: ('0.08968086148131064',), 1351401365: ('0.08968086148131064',), 1351401361: ('0.08968086148131064',), 1351401329: ('0.08968086148131064',)} args : 1351402497 depend.output_id : 0 input_args_next_step : {1351403167: ('0.08968086148131064',), 1351402840: ('0.08968086148131064',), 1351402546: ('0.08968086148131064',), 1351402544: ('0.08968086148131064',), 1351402497: ('0.08968086148131064',), 1351401967: ()} output_args : {1351403167: ('0.08968086148131064',), 1351402840: ('0.08968086148131064',), 1351402546: ('0.08968086148131064',), 1351402544: ('0.08968086148131064',), 1351402497: ('0.08968086148131064',), 1351401967: ('0.08968086148131064',), 1351401365: ('0.08968086148131064',), 1351401361: ('0.08968086148131064',), 1351401329: ('0.08968086148131064',)} args : 1351401967 depend.output_id : 0 input_args_next_step : {1351403167: ('0.08968086148131064',), 1351402840: ('0.08968086148131064',), 1351402546: ('0.08968086148131064',), 1351402544: ('0.08968086148131064',), 1351402497: ('0.08968086148131064',), 1351401967: ('0.08968086148131064',), 1351401365: ()} output_args : {1351403167: ('0.08968086148131064',), 1351402840: ('0.08968086148131064',), 1351402546: ('0.08968086148131064',), 1351402544: ('0.08968086148131064',), 1351402497: ('0.08968086148131064',), 1351401967: ('0.08968086148131064',), 1351401365: ('0.08968086148131064',), 1351401361: ('0.08968086148131064',), 1351401329: ('0.08968086148131064',)} args : 1351401365 depend.output_id : 0 input_args_next_step : {1351403167: ('0.08968086148131064',), 1351402840: ('0.08968086148131064',), 1351402546: ('0.08968086148131064',), 1351402544: ('0.08968086148131064',), 1351402497: ('0.08968086148131064',), 1351401967: ('0.08968086148131064',), 1351401365: ('0.08968086148131064',), 1351401361: ()} output_args : {1351403167: ('0.08968086148131064',), 1351402840: ('0.08968086148131064',), 1351402546: ('0.08968086148131064',), 1351402544: ('0.08968086148131064',), 1351402497: ('0.08968086148131064',), 1351401967: ('0.08968086148131064',), 1351401365: ('0.08968086148131064',), 1351401361: ('0.08968086148131064',), 1351401329: ('0.08968086148131064',)} args : 1351401361 depend.output_id : 0 input_args_next_step : {1351403167: ('0.08968086148131064',), 1351402840: ('0.08968086148131064',), 1351402546: ('0.08968086148131064',), 1351402544: ('0.08968086148131064',), 1351402497: ('0.08968086148131064',), 1351401967: ('0.08968086148131064',), 1351401365: ('0.08968086148131064',), 1351401361: ('0.08968086148131064',), 1351401329: ()} output_args : {1351403167: ('0.08968086148131064',), 1351402840: ('0.08968086148131064',), 1351402546: ('0.08968086148131064',), 1351402544: ('0.08968086148131064',), 1351402497: ('0.08968086148131064',), 1351401967: ('0.08968086148131064',), 1351401365: ('0.08968086148131064',), 1351401361: ('0.08968086148131064',), 1351401329: ('0.08968086148131064',)} args : 1351401329 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 : {22225216: [{'Carton_gris': 22225217, 'papier': 22225218, 'Carton_brun': 22225219, 'cartonnette': 22225220, 'Teint_Dans_La_Masse': 22225221, 'metal': 22225222, 'plastique': 22225223, 'flou': 22225224, 'kraft': 22225225, 'mal_croppe': 22225226, 'autre_refus': 22225227, 'environnement': 22225228}]} input_args_next_step : {1351403167: ('0.08968086148131064',), 1351402840: ('0.08968086148131064',), 1351402546: ('0.08968086148131064',), 1351402544: ('0.08968086148131064',), 1351402497: ('0.08968086148131064',), 1351401967: ('0.08968086148131064',), 1351401365: ('0.08968086148131064',), 1351401361: ('0.08968086148131064',), 1351401329: ('0.08968086148131064',), 22225216: ()} output_args : {22225216: [{'Carton_gris': 22225217, 'papier': 22225218, 'Carton_brun': 22225219, 'cartonnette': 22225220, 'Teint_Dans_La_Masse': 22225221, 'metal': 22225222, 'plastique': 22225223, 'flou': 22225224, 'kraft': 22225225, 'mal_croppe': 22225226, 'autre_refus': 22225227, 'environnement': 22225228}]} args : 22225216 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.08968086148131064',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22225216) 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 (1351403167,1351402840,1351402546,1351402544,1351402497,1351401967,1351401365,1351401361,1351401329) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1351401329 begin to download photo : 1351401365 begin to download photo : 1351402497 begin to download photo : 1351402546 begin to download photo : 1351403167 download finish for photo 1351403167 download finish for photo 1351402546 begin to download photo : 1351402840 download finish for photo 1351401329 begin to download photo : 1351401361 download finish for photo 1351402497 begin to download photo : 1351402544 download finish for photo 1351401365 begin to download photo : 1351401967 download finish for photo 1351402840 download finish for photo 1351401361 download finish for photo 1351401967 download finish for photo 1351402544 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 : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P22225216_18-04-2025_21_59_01.pdf 22225220 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=22225220 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351402534: '1745006112_372155_1351401361_bc8aeab1f3e84db34e913cd69d4e7df9_rle_crop_3755858207_0.png'} change filename to text .imagette222252201745006341/ imagette222252201745006341/1745006112_372155_1351401361_bc8aeab1f3e84db34e913cd69d4e7df9_rle_crop_3755858207_0.png.png imagette222252221745006341/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/2b2498023ff1f81e1ddcbc774dd5ddca_77457049.png imagette222252201745006341 22225222 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=22225222 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222252221745006341 22225223 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=22225223 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351402536: '1745006112_372155_1351401329_ae0ba21e4c3a65141874054d5776c229_rle_crop_3755858220_0.png'} change filename to text .imagette222252231745006341/ imagette222252231745006341/1745006112_372155_1351401329_ae0ba21e4c3a65141874054d5776c229_rle_crop_3755858220_0.png.png imagette222252241745006341/ imagette222252251745006341/ imagette222252261745006341/ imagette222252271745006341/ imagette222252171745006341/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/775b7c91fc4b652fcd802df21fcaafdf_45556414.png imagette222252231745006341 22225224 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=22225224 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222252241745006341 22225225 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=22225225 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222252251745006341 22225226 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=22225226 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222252261745006341 22225227 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=22225227 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222252271745006341 22225217 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=22225217 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222252171745006341 22225219 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=22225219 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351402535: '1745006112_372155_1351401329_ae0ba21e4c3a65141874054d5776c229_rle_crop_3755858218_0.png'} change filename to text .imagette222252191745006341/ imagette222252191745006341/1745006112_372155_1351401329_ae0ba21e4c3a65141874054d5776c229_rle_crop_3755858218_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/fdb8d0e4f9369e519ddc18859074d0d0_25920395.png imagette222252191745006341 22225221 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=22225221 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351402528: '1745006112_372155_1351401967_298b9b72359f9802751d5597731c068e_rle_crop_3755858191_0.png'} change filename to text .imagette222252211745006341/ imagette222252211745006341/1745006112_372155_1351401967_298b9b72359f9802751d5597731c068e_rle_crop_3755858191_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/63965515d0b5a36504837179c997bc7c_3460289.png imagette222252211745006341 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22225216 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22225229,22225230,22225231,22225232,22225233,22225234,22225235,22225236,22225237,22225238,22225239,22225240?tags=Carton_gris,papier,Carton_brun,cartonnette,Teint_Dans_La_Masse,metal,plastique,flou,kraft,mal_croppe,autre_refus,environnement your option no_mail is active, we will not send the real mail to your client args[1351403167] : ('0.08968086148131064',) no score found for photo 1351403167 We are sending mail with results at report@fotonower.com args[1351402840] : ('0.08968086148131064',) no score found for photo 1351402840 We are sending mail with results at report@fotonower.com args[1351402546] : ('0.08968086148131064',) no score found for photo 1351402546 We are sending mail with results at report@fotonower.com args[1351402544] : ('0.08968086148131064',) no score found for photo 1351402544 We are sending mail with results at report@fotonower.com args[1351402497] : ('0.08968086148131064',) no score found for photo 1351402497 We are sending mail with results at report@fotonower.com args[1351401967] : ('0.08968086148131064',) no score found for photo 1351401967 We are sending mail with results at report@fotonower.com args[1351401365] : ('0.08968086148131064',) no score found for photo 1351401365 We are sending mail with results at report@fotonower.com args[1351401361] : ('0.08968086148131064',) no score found for photo 1351401361 We are sending mail with results at report@fotonower.com args[1351401329] : ('0.08968086148131064',) no score found for photo 1351401329 We are sending mail with results at report@fotonower.com refus_total : 0.08968086148131064 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=22225216 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_P22225216_18-04-2025_21_59_01.pdf results_Auto_P22225216_18-04-2025_21_59_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22225216_18-04-2025_21_59_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22225216','results_Auto_P22225216_18-04-2025_21_59_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22225216_18-04-2025_21_59_01.pdf','pdf','','0.11','0.08968086148131064') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22225216]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1351403167, 1351402840, 1351402546, 1351402544, 1351402497, 1351401967, 1351401365, 1351401361, 1351401329] map_info['map_portfolio_photo'] : {22225216: [1351403167, 1351402840, 1351402546, 1351402544, 1351402497, 1351401967, 1351401365, 1351401361, 1351401329]} final : False mtd_id 4302 list_pids : [1351403167, 1351402840, 1351402546, 1351402544, 1351402497, 1351401967, 1351401365, 1351401361, 1351401329] 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, '2738887') ('4302', '22225216', '1351403167', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351402840', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351402546', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351402544', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351402497', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351401967', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351401365', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351401361', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351401329', None, None, None, None, None, '2738887') 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', '22225216', '1351403167', None, None, None, None, None, '2738887'), ('4302', '22225216', '1351402840', None, None, None, None, None, '2738887'), ('4302', '22225216', '1351402546', None, None, None, None, None, '2738887'), ('4302', '22225216', '1351402544', None, None, None, None, None, '2738887'), ('4302', '22225216', '1351402497', None, None, None, None, None, '2738887'), ('4302', '22225216', '1351401967', None, None, None, None, None, '2738887'), ('4302', '22225216', '1351401365', None, None, None, None, None, '2738887'), ('4302', '22225216', '1351401361', None, None, None, None, None, '2738887'), ('4302', '22225216', '1351401329', None, None, None, None, None, '2738887')] time used for this insertion : 0.017569780349731445 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5707893371582031 time spend to save output : 0.01780390739440918 total time spend for step 4 : 1.5885932445526123 step5:split_time_score Fri Apr 18 21:59:02 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 : ['22225216'] 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 : [('22225216',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22225216) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1351403167: {'path': 'temp/1745006340_996288_1351403167_7e5468d820b8ec0d4d80ce0ea6e71da3.jpg', 'extension': 'jpg'}, 1351402546: {'path': 'temp/1745006340_996288_1351402546_29911638ae9356c4e48f4d158509b9ed.jpg', 'extension': 'jpg'}, 1351402840: {'path': 'temp/1745006340_996288_1351402840_ce10bfaf4127864e45911e6c188aeba9.jpg', 'extension': 'jpg'}, 1351401329: {'path': 'temp/1745006340_996288_1351401329_ae0ba21e4c3a65141874054d5776c229.jpg', 'extension': 'jpg'}, 1351401361: {'path': 'temp/1745006340_996288_1351401361_bc8aeab1f3e84db34e913cd69d4e7df9.jpg', 'extension': 'jpg'}, 1351401365: {'path': 'temp/1745006340_996288_1351401365_03adf278552954a058d16efa7a84a59c.jpg', 'extension': 'jpg'}, 1351401967: {'path': 'temp/1745006340_996288_1351401967_298b9b72359f9802751d5597731c068e.jpg', 'extension': 'jpg'}, 1351402497: {'path': 'temp/1745006340_996288_1351402497_7f22f47095e71738e6270afbfe457dd9.jpg', 'extension': 'jpg'}, 1351402544: {'path': 'temp/1745006340_996288_1351402544_cc76793681a55c557b67471f1d341f79.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 = 22225216; (('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 = 22225216 group by h (('21', 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=22225216 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 (22225216) 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 (22225216) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18042025 22225216 Nombre de photos uploadées : 9 / 23040 (0%) 18042025 22225216 Nombre de photos taguées (types de déchets): 0 / 9 (0%) 18042025 22225216 Nombre de photos taguées (volume) : 0 / 9 (0%) [{'photo_id': 1351401365, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/03adf278552954a058d16efa7a84a59c.jpg', 'username': None, 'uploaded_at': 1745005867, 'text': 'image_18042025_21_46_24_9126.jpg'}, {'photo_id': 1351401361, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/bc8aeab1f3e84db34e913cd69d4e7df9.jpg', 'username': None, 'uploaded_at': 1745005867, 'text': 'image_18042025_21_50_04_010168m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351401329, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/ae0ba21e4c3a65141874054d5776c229.jpg', 'username': None, 'uploaded_at': 1745005867, 'text': 'image_18042025_21_50_34_010146m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351401967, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/298b9b72359f9802751d5597731c068e.jpg', 'username': None, 'uploaded_at': 1745005988, 'text': 'image_18042025_21_50_55_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 5.9604644775390625e-06 ????????? elapsed_time : fill_and_build_computed_from_old_data 0.0007915496826171875 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22225216, '2025-04-18' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1725253,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.028105497360229492 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= 1725253 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1725253, 'dashboard_run_id': 1736735, 'mtr_portfolio_id': 22223035, 'dashboard_result_id': 9995961, '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_P22223035_18-04-2025_21_18_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22223038, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22223039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22223040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22223041, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22223042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22223043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22223044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22223045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22223046, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22223047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22223048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22223049, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1736735, 'mtr_portfolio_id': 22225216, 'dashboard_result_id': 9995962, '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 = 22223035 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': 2738730, 'mtr_portfolio_id': 22223035, 'created_at': datetime.datetime(2025, 4, 18, 21, 18, 30), 'result': '0.04340420192966468', 'result_long': None, 'result_double': None}] Qualite : 0.04340420192966468 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22223035 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22223035_18-04-2025_21_18_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22223035 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_P22223035_18-04-2025_21_18_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22223038, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22223039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22223040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22223041, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22223042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22223043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22223044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22223045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22223046, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22223047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22223048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22223049, 'pht': 3726}}" where mtr_portfolio_id = 22223035 and dashboard_run_id = 1736735 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`=22223035 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9995961, 0.04340420192966468, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22223035_18-04-2025_21_18_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22223038, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22223039, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22223040, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22223041, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22223042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22223043, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22223044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22223045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22223046, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22223047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22223048, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22223049, '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 = 22225216 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': 2738887, 'mtr_portfolio_id': 22225216, 'created_at': datetime.datetime(2025, 4, 18, 21, 59), 'result': '0.08968086148131064', 'result_long': None, 'result_double': None}] Qualite : 0.08968086148131064 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22225216 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22225216_18-04-2025_21_59_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22225216 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_P22225216_18-04-2025_21_59_01.pdf'}" where mtr_portfolio_id = 22225216 and dashboard_run_id = 1736735 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`=22225216 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9995962, 0.08968086148131064, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22225216_18-04-2025_21_59_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22225217, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22225218, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22225219, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22225220, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22225221, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22225222, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22225223, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22225224, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22225225, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22225226, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22225227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22225228, '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 (22223035,22225216) result : ((1351377432,), (1351378330,), (1351378334,), (1351378573,), (1351380030,), (1351380061,), (1351380858,), (1351380920,), (1351380947,), (1351381588,), (1351382207,), (1351382235,), (1351382263,), (1351382479,), (1351382714,), (1351383063,), (1351383194,), (1351383533,), (1351385456,), (1351401329,), (1351401361,), (1351401365,), (1351401967,), (1351402497,), (1351402544,), (1351402546,), (1351402840,), (1351403167,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18042025': {'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([22225216]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1351403167, 1351402840, 1351402546, 1351402544, 1351402497, 1351401967, 1351401365, 1351401361, 1351401329] map_info['map_portfolio_photo'] : {22225216: [1351403167, 1351402840, 1351402546, 1351402544, 1351402497, 1351401967, 1351401365, 1351401361, 1351401329]} final : True mtd_id 4302 list_pids : [1351403167, 1351402840, 1351402546, 1351402544, 1351402497, 1351401967, 1351401365, 1351401361, 1351401329] Looping around the photos to save general results len do output : 1 /22225216Didn'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, '2738887') ('4302', '22225216', '1351403167', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351402840', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351402546', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351402544', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351402497', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351401967', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351401365', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351401361', None, None, None, None, None, '2738887') ('4302', None, None, None, None, None, None, None, '2738887') ('4302', '22225216', '1351401329', None, None, None, None, None, '2738887') 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, '22225216', 'None', None, None, None, None, '2738887'), ('4302', '22225216', '1351403167', None, None, None, None, None, '2738887'), ('4302', '22225216', '1351402840', None, None, None, None, None, '2738887'), ('4302', '22225216', '1351402546', None, None, None, None, None, '2738887'), ('4302', '22225216', '1351402544', None, None, None, None, None, '2738887'), ('4302', '22225216', '1351402497', None, None, None, None, None, '2738887'), ('4302', '22225216', '1351401967', None, None, None, None, None, '2738887'), ('4302', '22225216', '1351401365', None, None, None, None, None, '2738887'), ('4302', '22225216', '1351401361', None, None, None, None, None, '2738887'), ('4302', '22225216', '1351401329', None, None, None, None, None, '2738887')] time used for this insertion : 0.0156552791595459 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.23904657363891602 time spend to save output : 0.015841007232666016 total time spend for step 5 : 0.25488758087158203 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 (2738887) 2.05user 2.27system 0:06.67elapsed 64%CPU (0avgtext+0avgdata 160328maxresident)k 192inputs+6992outputs (1major+78868minor)pagefaults 0swaps