returned map {'Teint_Dans_La_Masse': {'main_port_id': 22437571, 'sub_port_id': 22437611, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883214, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 21, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 21, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 21, 30)}, 'plastique': {'main_port_id': 22437571, 'sub_port_id': 22437612, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883215, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 21, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 21, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 21, 30)}, 'Carton_brun': {'main_port_id': 22437571, 'sub_port_id': 22437613, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883216, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 21, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 21, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 21, 30)}, 'Carton_gris': {'main_port_id': 22437571, 'sub_port_id': 22437614, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883217, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 21, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 21, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 21, 30)}, 'autre_refus': {'main_port_id': 22437571, 'sub_port_id': 22437615, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883218, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 21, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 21, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 21, 30)}, 'kraft': {'main_port_id': 22437571, 'sub_port_id': 22437616, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883219, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 21, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 21, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 21, 30)}, 'papier': {'main_port_id': 22437571, 'sub_port_id': 22437617, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883220, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 21, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 21, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 21, 30)}, 'mal_croppe': {'main_port_id': 22437571, 'sub_port_id': 22437618, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883221, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 21, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 21, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 21, 30)}, 'cartonnette': {'main_port_id': 22437571, 'sub_port_id': 22437619, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883222, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 21, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 21, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 21, 30)}, 'flou': {'main_port_id': 22437571, 'sub_port_id': 22437620, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883223, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 21, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 21, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 21, 30)}, 'metal': {'main_port_id': 22437571, 'sub_port_id': 22437621, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883224, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 21, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 21, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 21, 30)}, 'environnement': {'main_port_id': 22437571, 'sub_port_id': 22437622, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14883225, 'last_updated_at': datetime.datetime(2025, 4, 25, 15, 25), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 15, 25), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 15, 21, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22437611,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22437599 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22437612,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22437600 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22437613,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22437601 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22437614,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22437602 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22437615,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22437603 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22437616,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22437604 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22437617,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22437605 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22437618,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22437606 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22437619,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22437607 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22437620,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22437608 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22437621,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22437609 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22437622,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22437610 lien utilise dans velours : https://www.fotonower.com/velours/22437611,22437612,22437613,22437614,22437615,22437616,22437617,22437618,22437619,22437620,22437621,22437622?tags=Teint_Dans_La_Masse,plastique,Carton_brun,Carton_gris,autre_refus,kraft,papier,mal_croppe,cartonnette,flou,metal,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22437571]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1353773594, 1353773581, 1353773573, 1353773563, 1353773553, 1353773414, 1353773405, 1353773396] map_info['map_portfolio_photo'] : {22437571: [1353773594, 1353773581, 1353773573, 1353773563, 1353773553, 1353773414, 1353773405, 1353773396, 1353773231, 1353772793, 1353772784, 1353772184, 1353772182, 1353772137, 1353772133, 1353772129, 1353772126, 1353772058, 1353772057, 1353772055, 1353772053]} final : False mtd_id 4302 list_pids : [1353773594, 1353773581, 1353773573, 1353773563, 1353773553, 1353773414, 1353773405, 1353773396] Looping around the photos to save general results len do output : 1 /22437571. 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, '2762946') ('4302', '22437571', '1353773594', None, None, None, None, None, '2762946') ('4302', None, None, None, None, None, None, None, '2762946') ('4302', '22437571', '1353773581', None, None, None, None, None, '2762946') ('4302', None, None, None, None, None, None, None, '2762946') ('4302', '22437571', '1353773573', None, None, None, None, None, '2762946') ('4302', None, None, None, None, None, None, None, '2762946') ('4302', '22437571', '1353773563', None, None, None, None, None, '2762946') ('4302', None, None, None, None, None, None, None, '2762946') ('4302', '22437571', '1353773553', None, None, None, None, None, '2762946') ('4302', None, None, None, None, None, None, None, '2762946') ('4302', '22437571', '1353773414', None, None, None, None, None, '2762946') ('4302', None, None, None, None, None, None, None, '2762946') ('4302', '22437571', '1353773405', None, None, None, None, None, '2762946') ('4302', None, None, None, None, None, None, None, '2762946') ('4302', '22437571', '1353773396', None, None, None, None, None, '2762946') 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', None, '22437571', "{'Teint_Dans_La_Masse': 22437599, 'plastique': 22437600, 'Carton_brun': 22437601, 'Carton_gris': 22437602, 'autre_refus': 22437603, 'kraft': 22437604, 'papier': 22437605, 'mal_croppe': 22437606, 'cartonnette': 22437607, 'flou': 22437608, 'metal': 22437609, 'environnement': 22437610}", None, None, None, None, '2762946'), ('4302', '22437571', '1353773594', None, None, None, None, None, '2762946'), ('4302', '22437571', '1353773581', None, None, None, None, None, '2762946'), ('4302', '22437571', '1353773573', None, None, None, None, None, '2762946'), ('4302', '22437571', '1353773563', None, None, None, None, None, '2762946'), ('4302', '22437571', '1353773553', None, None, None, None, None, '2762946'), ('4302', '22437571', '1353773414', None, None, None, None, None, '2762946'), ('4302', '22437571', '1353773405', None, None, None, None, None, '2762946'), ('4302', '22437571', '1353773396', None, None, None, None, None, '2762946')] time used for this insertion : 0.014754533767700195 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4912934303283691 time spend to save output : 0.015054702758789062 total time spend for step 1 : 1.5063481330871582 step2:final Fri Apr 25 15:26:58 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 (22437571) 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 22437571 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1353772058,1353772057,1353772055,1353772053,1353772137,1353772133,1353772129,1353772126,1353772184,1353772182,1353772793,1353772784,1353773231,1353773414,1353773405,1353773396,1353773594,1353773581,1353773573,1353773563,1353773553); 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([22437571]) Inside saveOutput : final : False verbose : True original output for save of step final : {1353773594: ('0.17448153601504876',), 1353773581: ('0.17448153601504876',), 1353773573: ('0.17448153601504876',), 1353773563: ('0.17448153601504876',), 1353773553: ('0.17448153601504876',), 1353773414: ('0.17448153601504876',), 1353773405: ('0.17448153601504876',), 1353773396: ('0.17448153601504876',)} new output for save of step final : {1353773594: ('0.17448153601504876',), 1353773581: ('0.17448153601504876',), 1353773573: ('0.17448153601504876',), 1353773563: ('0.17448153601504876',), 1353773553: ('0.17448153601504876',), 1353773414: ('0.17448153601504876',), 1353773405: ('0.17448153601504876',), 1353773396: ('0.17448153601504876',)} [1353773594, 1353773581, 1353773573, 1353773563, 1353773553, 1353773414, 1353773405, 1353773396] map_info['map_portfolio_photo'] : {22437571: [1353773594, 1353773581, 1353773573, 1353773563, 1353773553, 1353773414, 1353773405, 1353773396, 1353773231, 1353772793, 1353772784, 1353772184, 1353772182, 1353772137, 1353772133, 1353772129, 1353772126, 1353772058, 1353772057, 1353772055, 1353772053]} final : False mtd_id 4302 list_pids : [1353773594, 1353773581, 1353773573, 1353773563, 1353773553, 1353773414, 1353773405, 1353773396] Looping around the photos to save general results len do output : 8 /1353773594.Didn't retrieve data . /1353773581.Didn't retrieve data . /1353773573.Didn't retrieve data . /1353773563.Didn't retrieve data . /1353773553.Didn't retrieve data . /1353773414.Didn't retrieve data . /1353773405.Didn't retrieve data . /1353773396.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, '2762946') ('4302', '22437571', '1353773594', None, None, None, None, None, '2762946') ('4302', None, None, None, None, None, None, None, '2762946') ('4302', '22437571', '1353773581', None, None, None, None, None, '2762946') ('4302', None, None, None, None, None, None, None, '2762946') ('4302', '22437571', '1353773573', None, None, None, None, None, '2762946') ('4302', None, None, None, None, None, None, None, '2762946') ('4302', '22437571', '1353773563', None, None, None, None, None, '2762946') ('4302', None, None, None, None, None, None, None, '2762946') ('4302', '22437571', '1353773553', None, None, None, None, None, '2762946') ('4302', None, None, None, None, None, None, None, '2762946') ('4302', '22437571', '1353773414', None, None, None, None, None, '2762946') ('4302', None, None, None, None, None, None, None, '2762946') ('4302', '22437571', '1353773405', None, None, None, None, None, '2762946') ('4302', None, None, None, None, None, None, None, '2762946') ('4302', '22437571', '1353773396', None, None, None, None, None, '2762946') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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', '22437571', '1353773594', '0.17448153601504876', None, None, None, None, '2762946'), ('4302', '22437571', '1353773581', '0.17448153601504876', None, None, None, None, '2762946'), ('4302', '22437571', '1353773573', '0.17448153601504876', None, None, None, None, '2762946'), ('4302', '22437571', '1353773563', '0.17448153601504876', None, None, None, None, '2762946'), ('4302', '22437571', '1353773553', '0.17448153601504876', None, None, None, None, '2762946'), ('4302', '22437571', '1353773414', '0.17448153601504876', None, None, None, None, '2762946'), ('4302', '22437571', '1353773405', '0.17448153601504876', None, None, None, None, '2762946'), ('4302', '22437571', '1353773396', '0.17448153601504876', None, None, None, None, '2762946')] time used for this insertion : 0.01237177848815918 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06306004524230957 time spend to save output : 0.012908458709716797 total time spend for step 2 : 0.07596850395202637 step3:velours_tree Fri Apr 25 15:26:58 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 : {22437571: [{'Teint_Dans_La_Masse': 22437599, 'plastique': 22437600, 'Carton_brun': 22437601, 'Carton_gris': 22437602, 'autre_refus': 22437603, 'kraft': 22437604, 'papier': 22437605, 'mal_croppe': 22437606, 'cartonnette': 22437607, 'flou': 22437608, 'metal': 22437609, 'environnement': 22437610}]} input_args_next_step : {22437571: ()} output_args : {22437571: [{'Teint_Dans_La_Masse': 22437599, 'plastique': 22437600, 'Carton_brun': 22437601, 'Carton_gris': 22437602, 'autre_refus': 22437603, 'kraft': 22437604, 'papier': 22437605, 'mal_croppe': 22437606, 'cartonnette': 22437607, 'flou': 22437608, 'metal': 22437609, 'environnement': 22437610}]} args : 22437571 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Teint_Dans_La_Masse': 22437599, 'plastique': 22437600, 'Carton_brun': 22437601, 'Carton_gris': 22437602, 'autre_refus': 22437603, 'kraft': 22437604, 'papier': 22437605, 'mal_croppe': 22437606, 'cartonnette': 22437607, 'flou': 22437608, 'metal': 22437609, 'environnement': 22437610},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22437571) 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([22437571]) 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.32256197929382324 time spend to save output : 5.7220458984375e-05 total time spend for step 3 : 0.3226191997528076 step4:send_mail_cod Fri Apr 25 15:26:58 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 : {1353773594: ('0.17448153601504876',), 1353773581: ('0.17448153601504876',), 1353773573: ('0.17448153601504876',), 1353773563: ('0.17448153601504876',), 1353773553: ('0.17448153601504876',), 1353773414: ('0.17448153601504876',), 1353773405: ('0.17448153601504876',), 1353773396: ('0.17448153601504876',)} input_args_next_step : {1353773594: ()} output_args : {1353773594: ('0.17448153601504876',), 1353773581: ('0.17448153601504876',), 1353773573: ('0.17448153601504876',), 1353773563: ('0.17448153601504876',), 1353773553: ('0.17448153601504876',), 1353773414: ('0.17448153601504876',), 1353773405: ('0.17448153601504876',), 1353773396: ('0.17448153601504876',)} args : 1353773594 depend.output_id : 0 input_args_next_step : {1353773594: ('0.17448153601504876',), 1353773581: ()} output_args : {1353773594: ('0.17448153601504876',), 1353773581: ('0.17448153601504876',), 1353773573: ('0.17448153601504876',), 1353773563: ('0.17448153601504876',), 1353773553: ('0.17448153601504876',), 1353773414: ('0.17448153601504876',), 1353773405: ('0.17448153601504876',), 1353773396: ('0.17448153601504876',)} args : 1353773581 depend.output_id : 0 input_args_next_step : {1353773594: ('0.17448153601504876',), 1353773581: ('0.17448153601504876',), 1353773573: ()} output_args : {1353773594: ('0.17448153601504876',), 1353773581: ('0.17448153601504876',), 1353773573: ('0.17448153601504876',), 1353773563: ('0.17448153601504876',), 1353773553: ('0.17448153601504876',), 1353773414: ('0.17448153601504876',), 1353773405: ('0.17448153601504876',), 1353773396: ('0.17448153601504876',)} args : 1353773573 depend.output_id : 0 input_args_next_step : {1353773594: ('0.17448153601504876',), 1353773581: ('0.17448153601504876',), 1353773573: ('0.17448153601504876',), 1353773563: ()} output_args : {1353773594: ('0.17448153601504876',), 1353773581: ('0.17448153601504876',), 1353773573: ('0.17448153601504876',), 1353773563: ('0.17448153601504876',), 1353773553: ('0.17448153601504876',), 1353773414: ('0.17448153601504876',), 1353773405: ('0.17448153601504876',), 1353773396: ('0.17448153601504876',)} args : 1353773563 depend.output_id : 0 input_args_next_step : {1353773594: ('0.17448153601504876',), 1353773581: ('0.17448153601504876',), 1353773573: ('0.17448153601504876',), 1353773563: ('0.17448153601504876',), 1353773553: ()} output_args : {1353773594: ('0.17448153601504876',), 1353773581: ('0.17448153601504876',), 1353773573: ('0.17448153601504876',), 1353773563: ('0.17448153601504876',), 1353773553: ('0.17448153601504876',), 1353773414: ('0.17448153601504876',), 1353773405: ('0.17448153601504876',), 1353773396: ('0.17448153601504876',)} args : 1353773553 depend.output_id : 0 input_args_next_step : {1353773594: ('0.17448153601504876',), 1353773581: ('0.17448153601504876',), 1353773573: ('0.17448153601504876',), 1353773563: ('0.17448153601504876',), 1353773553: ('0.17448153601504876',), 1353773414: ()} output_args : {1353773594: ('0.17448153601504876',), 1353773581: ('0.17448153601504876',), 1353773573: ('0.17448153601504876',), 1353773563: ('0.17448153601504876',), 1353773553: ('0.17448153601504876',), 1353773414: ('0.17448153601504876',), 1353773405: ('0.17448153601504876',), 1353773396: ('0.17448153601504876',)} args : 1353773414 depend.output_id : 0 input_args_next_step : {1353773594: ('0.17448153601504876',), 1353773581: ('0.17448153601504876',), 1353773573: ('0.17448153601504876',), 1353773563: ('0.17448153601504876',), 1353773553: ('0.17448153601504876',), 1353773414: ('0.17448153601504876',), 1353773405: ()} output_args : {1353773594: ('0.17448153601504876',), 1353773581: ('0.17448153601504876',), 1353773573: ('0.17448153601504876',), 1353773563: ('0.17448153601504876',), 1353773553: ('0.17448153601504876',), 1353773414: ('0.17448153601504876',), 1353773405: ('0.17448153601504876',), 1353773396: ('0.17448153601504876',)} args : 1353773405 depend.output_id : 0 input_args_next_step : {1353773594: ('0.17448153601504876',), 1353773581: ('0.17448153601504876',), 1353773573: ('0.17448153601504876',), 1353773563: ('0.17448153601504876',), 1353773553: ('0.17448153601504876',), 1353773414: ('0.17448153601504876',), 1353773405: ('0.17448153601504876',), 1353773396: ()} output_args : {1353773594: ('0.17448153601504876',), 1353773581: ('0.17448153601504876',), 1353773573: ('0.17448153601504876',), 1353773563: ('0.17448153601504876',), 1353773553: ('0.17448153601504876',), 1353773414: ('0.17448153601504876',), 1353773405: ('0.17448153601504876',), 1353773396: ('0.17448153601504876',)} args : 1353773396 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 : {22437571: [{'Teint_Dans_La_Masse': 22437599, 'plastique': 22437600, 'Carton_brun': 22437601, 'Carton_gris': 22437602, 'autre_refus': 22437603, 'kraft': 22437604, 'papier': 22437605, 'mal_croppe': 22437606, 'cartonnette': 22437607, 'flou': 22437608, 'metal': 22437609, 'environnement': 22437610}]} input_args_next_step : {1353773594: ('0.17448153601504876',), 1353773581: ('0.17448153601504876',), 1353773573: ('0.17448153601504876',), 1353773563: ('0.17448153601504876',), 1353773553: ('0.17448153601504876',), 1353773414: ('0.17448153601504876',), 1353773405: ('0.17448153601504876',), 1353773396: ('0.17448153601504876',), 22437571: ()} output_args : {22437571: [{'Teint_Dans_La_Masse': 22437599, 'plastique': 22437600, 'Carton_brun': 22437601, 'Carton_gris': 22437602, 'autre_refus': 22437603, 'kraft': 22437604, 'papier': 22437605, 'mal_croppe': 22437606, 'cartonnette': 22437607, 'flou': 22437608, 'metal': 22437609, 'environnement': 22437610}]} args : 22437571 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 :9, first value : ('0.17448153601504876',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22437571) 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 (1353773594,1353773581,1353773573,1353773563,1353773553,1353773414,1353773405,1353773396) Found this number of photos: 8 ##### Call download_photos : nb_thread : 5 begin to download photo : 1353773396 begin to download photo : 1353773414 begin to download photo : 1353773563 begin to download photo : 1353773581 download finish for photo 1353773581 begin to download photo : 1353773594 download finish for photo 1353773396 begin to download photo : 1353773405 download finish for photo 1353773563 begin to download photo : 1353773573 download finish for photo 1353773414 begin to download photo : 1353773553 download finish for photo 1353773594 download finish for photo 1353773405 download finish for photo 1353773573 download finish for photo 1353773553 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette224376001745587618/ imagette224376031745587618/ length of list_filenames : 8 ; length of list_pids : 8 ; length of list_args : 8 results_Auto_P22437571_25-04-2025_15_26_58.pdf 22437600 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=22437600 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224376001745587618 22437603 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=22437603 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224376031745587618 22437604 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=22437604 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353773468: '1745587511_2051583_1353772784_1fdc1f289d1fdecda5a13ef3cacd832f_rle_crop_3770099267_0.png'} change filename to text .imagette224376041745587618/ imagette224376041745587618/1745587511_2051583_1353772784_1fdc1f289d1fdecda5a13ef3cacd832f_rle_crop_3770099267_0.png.png imagette224376061745587618/ imagette224376071745587618/ imagette224376081745587618/ imagette224376091745587618/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/b70b37e538ed8e1f33f03a8beab914b3_90766129.png imagette224376041745587618 22437606 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=22437606 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224376061745587618 22437607 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=22437607 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224376071745587618 22437608 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=22437608 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224376081745587618 22437609 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=22437609 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224376091745587618 22437599 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=22437599 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353772260: '1745587187_1956435_1353772133_56fc309c79c0c89a65ca3bab9659f401_rle_crop_3770081336_0.png', 1353772261: '1745587187_1956435_1353772129_6716bc80f22e4531f8d0d53e72872867_rle_crop_3770081495_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/ce2855d5f034036a17f07a56135755c2_54574540.png change filename to text .imagette224375991745587618/ imagette224375991745587618/1745587187_1956435_1353772133_56fc309c79c0c89a65ca3bab9659f401_rle_crop_3770081336_0.png.png imagette224375991745587618/1745587187_1956435_1353772129_6716bc80f22e4531f8d0d53e72872867_rle_crop_3770081495_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/49d569b07040c54b345501a63c21d7c9_983591.png imagette224375991745587618 22437601 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=22437601 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353772264: '1745587187_1956435_1353772129_6716bc80f22e4531f8d0d53e72872867_rle_crop_3770081493_0.png'} change filename to text .imagette224376011745587618/ imagette224376011745587618/1745587187_1956435_1353772129_6716bc80f22e4531f8d0d53e72872867_rle_crop_3770081493_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/fd0e2dd31c71df90d4ecdd79d7125888_80537409.png imagette224376011745587618 22437602 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=22437602 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353772262: '1745587187_1956435_1353772129_6716bc80f22e4531f8d0d53e72872867_rle_crop_3770081492_0.png', 1353772263: '1745587187_1956435_1353772126_7fca21c977c1f9fda7e086a72d59dd47_rle_crop_3770081513_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/5be9ed48977d414223114d040fed93d3_1730541.png change filename to text .imagette224376021745587619/ imagette224376021745587619/1745587187_1956435_1353772129_6716bc80f22e4531f8d0d53e72872867_rle_crop_3770081492_0.png.png imagette224376021745587619/1745587187_1956435_1353772126_7fca21c977c1f9fda7e086a72d59dd47_rle_crop_3770081513_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/e32feef89080958e84ce767d06c7e1b4_39944532.png imagette224376021745587619 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22437571 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22437611,22437612,22437613,22437614,22437615,22437616,22437617,22437618,22437619,22437620,22437621,22437622?tags=Teint_Dans_La_Masse,plastique,Carton_brun,Carton_gris,autre_refus,kraft,papier,mal_croppe,cartonnette,flou,metal,environnement your option no_mail is active, we will not send the real mail to your client args[1353773594] : ('0.17448153601504876',) no score found for photo 1353773594 We are sending mail with results at report@fotonower.com args[1353773581] : ('0.17448153601504876',) no score found for photo 1353773581 We are sending mail with results at report@fotonower.com args[1353773573] : ('0.17448153601504876',) no score found for photo 1353773573 We are sending mail with results at report@fotonower.com args[1353773563] : ('0.17448153601504876',) no score found for photo 1353773563 We are sending mail with results at report@fotonower.com args[1353773553] : ('0.17448153601504876',) no score found for photo 1353773553 We are sending mail with results at report@fotonower.com args[1353773414] : ('0.17448153601504876',) no score found for photo 1353773414 We are sending mail with results at report@fotonower.com args[1353773405] : ('0.17448153601504876',) no score found for photo 1353773405 We are sending mail with results at report@fotonower.com args[1353773396] : ('0.17448153601504876',) no score found for photo 1353773396 We are sending mail with results at report@fotonower.com refus_total : 0.17448153601504876 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=22437571 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_P22437571_25-04-2025_15_26_58.pdf results_Auto_P22437571_25-04-2025_15_26_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22437571_25-04-2025_15_26_58.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','22437571','results_Auto_P22437571_25-04-2025_15_26_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22437571_25-04-2025_15_26_58.pdf','pdf','','0.11','0.17448153601504876') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22437571]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1353773594, 1353773581, 1353773573, 1353773563, 1353773553, 1353773414, 1353773405, 1353773396] map_info['map_portfolio_photo'] : {22437571: [1353773594, 1353773581, 1353773573, 1353773563, 1353773553, 1353773414, 1353773405, 1353773396, 1353773231, 1353772793, 1353772784, 1353772184, 1353772182, 1353772137, 1353772133, 1353772129, 1353772126, 1353772058, 1353772057, 1353772055, 1353772053]} final : False mtd_id 4302 list_pids : [1353773594, 1353773581, 1353773573, 1353773563, 1353773553, 1353773414, 1353773405, 1353773396] 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, '2762946') ('4302', '22437571', '1353773594', None, None, None, None, None, '2762946') ('4302', None, None, None, None, None, None, None, '2762946') ('4302', '22437571', '1353773581', None, None, None, None, None, '2762946') ('4302', None, None, None, None, None, None, None, '2762946') ('4302', '22437571', '1353773573', None, None, None, None, None, '2762946') ('4302', None, None, None, None, None, None, None, '2762946') ('4302', '22437571', '1353773563', None, None, None, None, None, '2762946') ('4302', None, None, None, None, None, None, None, '2762946') ('4302', '22437571', '1353773553', None, None, None, None, None, '2762946') ('4302', None, None, None, None, None, None, None, '2762946') ('4302', '22437571', '1353773414', None, None, None, None, None, '2762946') ('4302', None, None, None, None, None, None, None, '2762946') ('4302', '22437571', '1353773405', None, None, None, None, None, '2762946') ('4302', None, None, None, None, None, None, None, '2762946') ('4302', '22437571', '1353773396', None, None, None, None, None, '2762946') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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', '22437571', '1353773594', None, None, None, None, None, '2762946'), ('4302', '22437571', '1353773581', None, None, None, None, None, '2762946'), ('4302', '22437571', '1353773573', None, None, None, None, None, '2762946'), ('4302', '22437571', '1353773563', None, None, None, None, None, '2762946'), ('4302', '22437571', '1353773553', None, None, None, None, None, '2762946'), ('4302', '22437571', '1353773414', None, None, None, None, None, '2762946'), ('4302', '22437571', '1353773405', None, None, None, None, None, '2762946'), ('4302', '22437571', '1353773396', None, None, None, None, None, '2762946')] time used for this insertion : 0.013831138610839844 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7323386669158936 time spend to save output : 0.014073848724365234 total time spend for step 4 : 1.7464125156402588 step5:split_time_score Fri Apr 25 15:27:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22437571'] 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 : [('22437571',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22437571) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1353773581: {'path': 'temp/1745587618_1885389_1353773581_58d07b4faf019fbb30eac7b23cdfbe21.jpg', 'extension': 'jpg'}, 1353773594: {'path': 'temp/1745587618_1885389_1353773594_fb5c2be3bdde573713c9f8f190074dad.jpg', 'extension': 'jpg'}, 1353773396: {'path': 'temp/1745587618_1885389_1353773396_72d54eaff5481c4e2e0693b675e0c4d7.jpg', 'extension': 'jpg'}, 1353773405: {'path': 'temp/1745587618_1885389_1353773405_ad1661d49c849a0d51d78982f6e91179.jpg', 'extension': 'jpg'}, 1353773563: {'path': 'temp/1745587618_1885389_1353773563_7a19dc4b0d0c413fd6eef01038032be4.jpg', 'extension': 'jpg'}, 1353773573: {'path': 'temp/1745587618_1885389_1353773573_b3ff2a339a20c08b0342c96771d1d07c.jpg', 'extension': 'jpg'}, 1353773414: {'path': 'temp/1745587618_1885389_1353773414_c806cad17cecc2b35e0d3776c98251e6.jpg', 'extension': 'jpg'}, 1353773553: {'path': 'temp/1745587618_1885389_1353773553_cf75dc96bfeeb33d4fea210de913e69b.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 = 22437571; (('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 = 22437571 group by h (('15', 21),) 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=22437571 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 (22437571) 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 (22437571) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25042025 22437571 Nombre de photos uploadées : 21 / 23040 (0%) 25042025 22437571 Nombre de photos taguées (types de déchets): 0 / 21 (0%) 25042025 22437571 Nombre de photos taguées (volume) : 0 / 21 (0%) [{'photo_id': 1353772058, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/70a9aa00b16955cb52c06814a20e1d9b.jpg', 'username': None, 'uploaded_at': 1745586967, 'text': 'image_25042025_15_15_04_10148.jpg'}, {'photo_id': 1353772057, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/66c0f7c0018e35cfd88fa4d4aecf01a5.jpg', 'username': None, 'uploaded_at': 1745586967, 'text': 'image_25042025_15_15_24_10134.jpg'}, {'photo_id': 1353772055, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/59f6bc28deef4e747f44dfba2b01d167.jpg', 'username': None, 'uploaded_at': 1745586967, 'text': 'image_25042025_15_15_33_9124.jpg'}, {'photo_id': 1353772053, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/0ef80dd02799e503f5402f5118c35d35.jpg', 'username': None, 'uploaded_at': 1745586967, 'text': 'image_25042025_15_15_43_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 6.198883056640625e-06 ????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001180887222290039 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22437571, '2025-04-25' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1747621,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02271246910095215 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= 1747621 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1747621, 'dashboard_run_id': 1757353, 'mtr_portfolio_id': 22435288, 'dashboard_result_id': 10106564, '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_P22435288_25-04-2025_14_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22435315, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22435316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22435317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22435318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22435319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22435320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22435321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22435322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22435323, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22435324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22435325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22435326, 'pht': 3726}}"}, {'dashboat_entry_day': 1747621, 'dashboard_run_id': 1757353, 'mtr_portfolio_id': 22436117, 'dashboard_result_id': 10106565, '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_P22436117_25-04-2025_15_02_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22436135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22436136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22436137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22436138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22436139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22436140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22436141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22436142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22436143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22436144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22436145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22436146, 'pht': 3726}}"}, {'dashboat_entry_day': 1747621, 'dashboard_run_id': 1757353, 'mtr_portfolio_id': 22437036, 'dashboard_result_id': 10106566, '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_P22437036_25-04-2025_15_20_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22437065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22437066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22437067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22437068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22437069, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22437070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22437071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22437072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22437073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22437074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22437075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22437076, 'pht': 3726}}"}, {'dashboat_entry_day': 1747621, 'dashboard_run_id': 1757353, 'mtr_portfolio_id': 22437571, 'dashboard_result_id': 10106567, '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_P22437571_25-04-2025_15_25_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22437599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22437600, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22437601, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22437602, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22437603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22437604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22437605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22437606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22437607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22437608, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22437609, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22437610, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22435288 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': 2762763, 'mtr_portfolio_id': 22435288, 'created_at': datetime.datetime(2025, 4, 25, 14, 48, 59), 'result': '0.05598256966510362', 'result_long': None, 'result_double': None}] Qualite : 0.05598256966510362 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22435288 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22435288_25-04-2025_14_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22435288 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_P22435288_25-04-2025_14_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22435315, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22435316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22435317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22435318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22435319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22435320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22435321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22435322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22435323, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22435324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22435325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22435326, 'pht': 3726}}" where mtr_portfolio_id = 22435288 and dashboard_run_id = 1757353 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`=22435288 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10106564, 0.05598256966510362, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22435288_25-04-2025_14_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22435315, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22435316, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22435317, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22435318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22435319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22435320, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22435321, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22435322, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22435323, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22435324, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22435325, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22435326, '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 = 22436117 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': 2762808, 'mtr_portfolio_id': 22436117, 'created_at': datetime.datetime(2025, 4, 25, 15, 2, 30), 'result': '0.05231415321779242', 'result_long': None, 'result_double': None}] Qualite : 0.05231415321779242 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22436117 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22436117_25-04-2025_15_02_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22436117 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_P22436117_25-04-2025_15_02_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22436135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22436136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22436137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22436138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22436139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22436140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22436141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22436142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22436143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22436144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22436145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22436146, 'pht': 3726}}" where mtr_portfolio_id = 22436117 and dashboard_run_id = 1757353 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`=22436117 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10106565, 0.05231415321779242, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22436117_25-04-2025_15_02_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22436135, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22436136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22436137, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22436138, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22436139, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22436140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22436141, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22436142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22436143, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22436144, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22436145, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22436146, '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 = 22437036 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': 2762896, 'mtr_portfolio_id': 22437036, 'created_at': datetime.datetime(2025, 4, 25, 15, 20, 59), 'result': '0.05494781440908981', 'result_long': None, 'result_double': None}] Qualite : 0.05494781440908981 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22437036 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22437036_25-04-2025_15_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22437036 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_P22437036_25-04-2025_15_20_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22437065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22437066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22437067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22437068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22437069, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22437070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22437071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22437072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22437073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22437074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22437075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22437076, 'pht': 3726}}" where mtr_portfolio_id = 22437036 and dashboard_run_id = 1757353 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`=22437036 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10106566, 0.05494781440908981, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22437036_25-04-2025_15_20_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22437065, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22437066, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22437067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22437068, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22437069, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22437070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22437071, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22437072, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22437073, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22437074, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22437075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22437076, '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 = 22437571 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': 2762946, 'mtr_portfolio_id': 22437571, 'created_at': datetime.datetime(2025, 4, 25, 15, 26, 58), 'result': '0.17448153601504876', 'result_long': None, 'result_double': None}] Qualite : 0.17448153601504876 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22437571 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22437571_25-04-2025_15_26_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22437571 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_P22437571_25-04-2025_15_26_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22437599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22437600, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22437601, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22437602, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22437603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22437604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22437605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22437606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22437607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22437608, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22437609, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22437610, 'pht': 3726}}" where mtr_portfolio_id = 22437571 and dashboard_run_id = 1757353 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`=22437571 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10106567, 0.17448153601504876, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22437571_25-04-2025_15_26_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22437599, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22437600, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22437601, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22437602, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22437603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22437604, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22437605, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22437606, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22437607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22437608, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22437609, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22437610, '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 (22435288,22436117,22437036,22437571) result : ((1353738924,), (1353739072,), (1353739195,), (1353739334,), (1353739541,), (1353740474,), (1353740643,), (1353740741,), (1353740773,), (1353740825,), (1353740991,), (1353740993,), (1353740996,), (1353741647,), (1353741700,), (1353741755,), (1353741834,), (1353741889,), (1353741936,), (1353742485,), (1353742545,), (1353742596,), (1353742646,), (1353742697,), (1353743328,), (1353743393,), (1353743422,), (1353743429,), (1353744555,), (1353744561,), (1353744563,), (1353744595,), (1353744892,), (1353745167,), (1353746483,), (1353746604,), (1353746759,), (1353747039,), (1353747161,), (1353748219,), (1353748269,), (1353748343,), (1353748434,), (1353748506,), (1353748678,), (1353749636,), (1353749741,), (1353749836,), (1353749925,), (1353750101,), (1353750496,), (1353751503,), (1353751616,), (1353751731,), (1353751862,), (1353753030,), (1353753144,), (1353753247,), (1353753336,), (1353753421,), (1353753527,), (1353754169,), (1353754171,), (1353754174,), (1353754761,), (1353754803,), (1353754833,), (1353755185,), (1353755189,), (1353755192,), (1353755194,), (1353756002,), (1353755601,), (1353755729,), (1353755784,), (1353755879,), (1353755943,), (1353756308,), (1353756336,), (1353756366,), (1353756403,), (1353756656,), (1353756663,), (1353756672,), (1353756717,), (1353756749,), (1353756779,), (1353757179,), (1353757204,), (1353757234,), (1353757263,), (1353757307,), (1353758061,), (1353758165,), (1353758280,), (1353758380,), (1353758488,), (1353758601,), (1353759173,), (1353759249,), (1353759290,), (1353759776,), (1353759800,), (1353759820,), (1353759835,), (1353759862,), (1353759889,), (1353760297,), (1353760330,), (1353760636,), (1353760707,), (1353760769,), (1353760813,), (1353760957,), (1353760959,), (1353760961,), (1353761561,), (1353761620,), (1353761674,), (1353761729,), (1353761786,), (1353761888,), (1353762187,), (1353762226,), (1353762277,), (1353762325,), (1353762830,), (1353762860,), (1353762890,), (1353762923,), (1353762978,), (1353763519,), (1353763575,), (1353763628,), (1353763683,), (1353763734,), (1353764515,), (1353766126,), (1353765945,), (1353766033,), (1353767251,), (1353767338,), (1353767419,), (1353767504,), (1353767659,), (1353767872,), (1353768480,), (1353768526,), (1353769124,), (1353769165,), (1353769214,), (1353769242,), (1353769260,), (1353769782,), (1353769837,), (1353769887,), (1353769937,), (1353769988,), (1353770038,), (1353770523,), (1353770570,), (1353770629,), (1353770680,), (1353770944,), (1353770948,), (1353770960,), (1353770985,), (1353771018,), (1353771054,), (1353771245,), (1353771249,), (1353771273,), (1353771359,), (1353771364,), (1353771376,), (1353771379,), (1353771385,), (1353771424,), (1353771428,), (1353771432,), (1353771444,), (1353771453,), (1353771457,), (1353771482,), (1353771486,), (1353771489,), (1353771631,), (1353771644,), (1353771647,), (1353771648,), (1353771675,), (1353771684,), (1353771786,), (1353771798,), (1353771803,), (1353771806,), (1353771809,), (1353771812,), (1353771958,), (1353771962,), (1353772002,), (1353772007,), (1353772011,), (1353772014,), (1353772019,), (1353772023,), (1353772063,), (1353772053,), (1353772055,), (1353772057,), (1353772058,), (1353772126,), (1353772129,), (1353772133,), (1353772137,), (1353772182,), (1353772184,), (1353772784,), (1353772793,), (1353773231,), (1353773396,), (1353773405,), (1353773414,), (1353773553,), (1353773563,), (1353773573,), (1353773581,), (1353773594,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25042025': {'nb_upload': 21, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22437571]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1353773594, 1353773581, 1353773573, 1353773563, 1353773553, 1353773414, 1353773405, 1353773396] map_info['map_portfolio_photo'] : {22437571: [1353773594, 1353773581, 1353773573, 1353773563, 1353773553, 1353773414, 1353773405, 1353773396, 1353773231, 1353772793, 1353772784, 1353772184, 1353772182, 1353772137, 1353772133, 1353772129, 1353772126, 1353772058, 1353772057, 1353772055, 1353772053]} final : True mtd_id 4302 list_pids : [1353773594, 1353773581, 1353773573, 1353773563, 1353773553, 1353773414, 1353773405, 1353773396] Looping around the photos to save general results len do output : 1 /22437571Didn'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, '2762946') ('4302', '22437571', '1353773594', None, None, None, None, None, '2762946') ('4302', None, None, None, None, None, None, None, '2762946') ('4302', '22437571', '1353773581', None, None, None, None, None, '2762946') ('4302', None, None, None, None, None, None, None, '2762946') ('4302', '22437571', '1353773573', None, None, None, None, None, '2762946') ('4302', None, None, None, None, None, None, None, '2762946') ('4302', '22437571', '1353773563', None, None, None, None, None, '2762946') ('4302', None, None, None, None, None, None, None, '2762946') ('4302', '22437571', '1353773553', None, None, None, None, None, '2762946') ('4302', None, None, None, None, None, None, None, '2762946') ('4302', '22437571', '1353773414', None, None, None, None, None, '2762946') ('4302', None, None, None, None, None, None, None, '2762946') ('4302', '22437571', '1353773405', None, None, None, None, None, '2762946') ('4302', None, None, None, None, None, None, None, '2762946') ('4302', '22437571', '1353773396', None, None, None, None, None, '2762946') 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', None, '22437571', 'None', None, None, None, None, '2762946'), ('4302', '22437571', '1353773594', None, None, None, None, None, '2762946'), ('4302', '22437571', '1353773581', None, None, None, None, None, '2762946'), ('4302', '22437571', '1353773573', None, None, None, None, None, '2762946'), ('4302', '22437571', '1353773563', None, None, None, None, None, '2762946'), ('4302', '22437571', '1353773553', None, None, None, None, None, '2762946'), ('4302', '22437571', '1353773414', None, None, None, None, None, '2762946'), ('4302', '22437571', '1353773405', None, None, None, None, None, '2762946'), ('4302', '22437571', '1353773396', None, None, None, None, None, '2762946')] time used for this insertion : 0.01874709129333496 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.34680843353271484 time spend to save output : 0.01897430419921875 total time spend for step 5 : 0.3657827377319336 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 (2762946) 2.00user 2.67system 0:05.55elapsed 84%CPU (0avgtext+0avgdata 158044maxresident)k 1344inputs+5552outputs (38major+64085minor)pagefaults 0swaps