returned map {'plastique': {'main_port_id': 22416883, 'sub_port_id': 22416897, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14864703, 'last_updated_at': datetime.datetime(2025, 4, 25, 5, 10, 40), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 5, 10, 40), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 5, 10, 40)}, 'mal_croppe': {'main_port_id': 22416883, 'sub_port_id': 22416898, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14864704, 'last_updated_at': datetime.datetime(2025, 4, 25, 5, 10, 40), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 5, 10, 40), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 5, 10, 40)}, 'Teint_Dans_La_Masse': {'main_port_id': 22416883, 'sub_port_id': 22416899, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14864705, 'last_updated_at': datetime.datetime(2025, 4, 25, 5, 10, 40), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 5, 10, 40), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 5, 10, 40)}, 'papier': {'main_port_id': 22416883, 'sub_port_id': 22416900, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14864706, 'last_updated_at': datetime.datetime(2025, 4, 25, 5, 10, 40), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 5, 10, 40), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 5, 10, 40)}, 'Carton_gris': {'main_port_id': 22416883, 'sub_port_id': 22416901, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14864707, 'last_updated_at': datetime.datetime(2025, 4, 25, 5, 10, 40), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 5, 10, 40), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 5, 10, 40)}, 'kraft': {'main_port_id': 22416883, 'sub_port_id': 22416902, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14864708, 'last_updated_at': datetime.datetime(2025, 4, 25, 5, 10, 40), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 5, 10, 40), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 5, 10, 40)}, 'metal': {'main_port_id': 22416883, 'sub_port_id': 22416903, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14864709, 'last_updated_at': datetime.datetime(2025, 4, 25, 5, 10, 40), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 5, 10, 40), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 5, 10, 40)}, 'Carton_brun': {'main_port_id': 22416883, 'sub_port_id': 22416904, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14864710, 'last_updated_at': datetime.datetime(2025, 4, 25, 5, 10, 40), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 5, 10, 40), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 5, 10, 40)}, 'cartonnette': {'main_port_id': 22416883, 'sub_port_id': 22416905, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14864711, 'last_updated_at': datetime.datetime(2025, 4, 25, 5, 10, 40), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 5, 10, 40), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 5, 10, 40)}, 'autre_refus': {'main_port_id': 22416883, 'sub_port_id': 22416906, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14864712, 'last_updated_at': datetime.datetime(2025, 4, 25, 5, 10, 40), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 5, 10, 40), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 5, 10, 40)}, 'environnement': {'main_port_id': 22416883, 'sub_port_id': 22416907, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14864713, 'last_updated_at': datetime.datetime(2025, 4, 25, 5, 10, 40), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 5, 10, 40), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 5, 10, 40)}, 'flou': {'main_port_id': 22416883, 'sub_port_id': 22416908, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14864714, 'last_updated_at': datetime.datetime(2025, 4, 25, 5, 10, 40), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 5, 10, 40), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 5, 10, 40)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22416897,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22416885 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22416898,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22416886 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22416899,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22416887 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22416900,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22416888 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22416901,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22416889 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22416902,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22416890 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22416903,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22416891 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22416904,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22416892 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22416905,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22416893 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22416906,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22416894 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22416907,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22416895 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22416908,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22416896 lien utilise dans velours : https://www.fotonower.com/velours/22416897,22416898,22416899,22416900,22416901,22416902,22416903,22416904,22416905,22416906,22416907,22416908?tags=plastique,mal_croppe,Teint_Dans_La_Masse,papier,Carton_gris,kraft,metal,Carton_brun,cartonnette,autre_refus,environnement,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22416883]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1353627787, 1353627767, 1353627764, 1353627691, 1353627690, 1353627666, 1353627640, 1353627627, 1353627625, 1353627480, 1353627443, 1353627416, 1353627391, 1353627355, 1353627328] map_info['map_portfolio_photo'] : {22416883: [1353627787, 1353627767, 1353627764, 1353627691, 1353627690, 1353627666, 1353627640, 1353627627, 1353627625, 1353627480, 1353627443, 1353627416, 1353627391, 1353627355, 1353627328, 1353627087, 1353627085, 1353627082, 1353627064, 1353627061, 1353627059, 1353627057, 1353627055, 1353627052, 1353627041, 1353627038, 1353627035, 1353627033, 1353627032, 1353627029, 1353626731, 1353626704, 1353626632, 1353625703]} final : False mtd_id 4302 list_pids : [1353627787, 1353627767, 1353627764, 1353627691, 1353627690, 1353627666, 1353627640, 1353627627, 1353627625, 1353627480, 1353627443, 1353627416, 1353627391, 1353627355, 1353627328] Looping around the photos to save general results len do output : 1 /22416883. 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, '2760683') ('4302', '22416883', '1353627787', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627767', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627764', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627691', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627690', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627666', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627640', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627627', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627625', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627480', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627443', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627416', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627391', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627355', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627328', None, None, None, None, None, '2760683') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '22416883', "{'plastique': 22416885, 'mal_croppe': 22416886, 'Teint_Dans_La_Masse': 22416887, 'papier': 22416888, 'Carton_gris': 22416889, 'kraft': 22416890, 'metal': 22416891, 'Carton_brun': 22416892, 'cartonnette': 22416893, 'autre_refus': 22416894, 'environnement': 22416895, 'flou': 22416896}", None, None, None, None, '2760683'), ('4302', '22416883', '1353627787', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627767', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627764', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627691', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627690', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627666', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627640', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627627', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627625', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627480', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627443', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627416', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627391', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627355', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627328', None, None, None, None, None, '2760683')] time used for this insertion : 0.0149993896484375 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4249980449676514 time spend to save output : 0.015337228775024414 total time spend for step 1 : 1.4403352737426758 step2:final Fri Apr 25 05:12:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22416883) 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 22416883 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1353625703,1353626731,1353626704,1353626632,1353627041,1353627038,1353627035,1353627033,1353627032,1353627029,1353627064,1353627061,1353627059,1353627057,1353627055,1353627052,1353627087,1353627085,1353627082,1353627480,1353627443,1353627416,1353627391,1353627355,1353627328,1353627691,1353627690,1353627666,1353627640,1353627627,1353627625,1353627787,1353627767,1353627764); 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([22416883]) Inside saveOutput : final : False verbose : True original output for save of step final : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ('0.07886844311962994',), 1353627640: ('0.07886844311962994',), 1353627627: ('0.07886844311962994',), 1353627625: ('0.07886844311962994',), 1353627480: ('0.07886844311962994',), 1353627443: ('0.07886844311962994',), 1353627416: ('0.07886844311962994',), 1353627391: ('0.07886844311962994',), 1353627355: ('0.07886844311962994',), 1353627328: ('0.07886844311962994',)} new output for save of step final : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ('0.07886844311962994',), 1353627640: ('0.07886844311962994',), 1353627627: ('0.07886844311962994',), 1353627625: ('0.07886844311962994',), 1353627480: ('0.07886844311962994',), 1353627443: ('0.07886844311962994',), 1353627416: ('0.07886844311962994',), 1353627391: ('0.07886844311962994',), 1353627355: ('0.07886844311962994',), 1353627328: ('0.07886844311962994',)} [1353627787, 1353627767, 1353627764, 1353627691, 1353627690, 1353627666, 1353627640, 1353627627, 1353627625, 1353627480, 1353627443, 1353627416, 1353627391, 1353627355, 1353627328] map_info['map_portfolio_photo'] : {22416883: [1353627787, 1353627767, 1353627764, 1353627691, 1353627690, 1353627666, 1353627640, 1353627627, 1353627625, 1353627480, 1353627443, 1353627416, 1353627391, 1353627355, 1353627328, 1353627087, 1353627085, 1353627082, 1353627064, 1353627061, 1353627059, 1353627057, 1353627055, 1353627052, 1353627041, 1353627038, 1353627035, 1353627033, 1353627032, 1353627029, 1353626731, 1353626704, 1353626632, 1353625703]} final : False mtd_id 4302 list_pids : [1353627787, 1353627767, 1353627764, 1353627691, 1353627690, 1353627666, 1353627640, 1353627627, 1353627625, 1353627480, 1353627443, 1353627416, 1353627391, 1353627355, 1353627328] Looping around the photos to save general results len do output : 15 /1353627787.Didn't retrieve data . /1353627767.Didn't retrieve data . /1353627764.Didn't retrieve data . /1353627691.Didn't retrieve data . /1353627690.Didn't retrieve data . /1353627666.Didn't retrieve data . /1353627640.Didn't retrieve data . /1353627627.Didn't retrieve data . /1353627625.Didn't retrieve data . /1353627480.Didn't retrieve data . /1353627443.Didn't retrieve data . /1353627416.Didn't retrieve data . /1353627391.Didn't retrieve data . /1353627355.Didn't retrieve data . /1353627328.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, '2760683') ('4302', '22416883', '1353627787', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627767', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627764', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627691', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627690', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627666', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627640', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627627', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627625', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627480', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627443', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627416', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627391', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627355', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627328', None, None, None, None, None, '2760683') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '22416883', '1353627787', '0.07886844311962994', None, None, None, None, '2760683'), ('4302', '22416883', '1353627767', '0.07886844311962994', None, None, None, None, '2760683'), ('4302', '22416883', '1353627764', '0.07886844311962994', None, None, None, None, '2760683'), ('4302', '22416883', '1353627691', '0.07886844311962994', None, None, None, None, '2760683'), ('4302', '22416883', '1353627690', '0.07886844311962994', None, None, None, None, '2760683'), ('4302', '22416883', '1353627666', '0.07886844311962994', None, None, None, None, '2760683'), ('4302', '22416883', '1353627640', '0.07886844311962994', None, None, None, None, '2760683'), ('4302', '22416883', '1353627627', '0.07886844311962994', None, None, None, None, '2760683'), ('4302', '22416883', '1353627625', '0.07886844311962994', None, None, None, None, '2760683'), ('4302', '22416883', '1353627480', '0.07886844311962994', None, None, None, None, '2760683'), ('4302', '22416883', '1353627443', '0.07886844311962994', None, None, None, None, '2760683'), ('4302', '22416883', '1353627416', '0.07886844311962994', None, None, None, None, '2760683'), ('4302', '22416883', '1353627391', '0.07886844311962994', None, None, None, None, '2760683'), ('4302', '22416883', '1353627355', '0.07886844311962994', None, None, None, None, '2760683'), ('4302', '22416883', '1353627328', '0.07886844311962994', None, None, None, None, '2760683')] time used for this insertion : 0.013484001159667969 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06094694137573242 time spend to save output : 0.013877391815185547 total time spend for step 2 : 0.07482433319091797 step3:velours_tree Fri Apr 25 05:12:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22416883: [{'plastique': 22416885, 'mal_croppe': 22416886, 'Teint_Dans_La_Masse': 22416887, 'papier': 22416888, 'Carton_gris': 22416889, 'kraft': 22416890, 'metal': 22416891, 'Carton_brun': 22416892, 'cartonnette': 22416893, 'autre_refus': 22416894, 'environnement': 22416895, 'flou': 22416896}]} input_args_next_step : {22416883: ()} output_args : {22416883: [{'plastique': 22416885, 'mal_croppe': 22416886, 'Teint_Dans_La_Masse': 22416887, 'papier': 22416888, 'Carton_gris': 22416889, 'kraft': 22416890, 'metal': 22416891, 'Carton_brun': 22416892, 'cartonnette': 22416893, 'autre_refus': 22416894, 'environnement': 22416895, 'flou': 22416896}]} args : 22416883 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'plastique': 22416885, 'mal_croppe': 22416886, 'Teint_Dans_La_Masse': 22416887, 'papier': 22416888, 'Carton_gris': 22416889, 'kraft': 22416890, 'metal': 22416891, 'Carton_brun': 22416892, 'cartonnette': 22416893, 'autre_refus': 22416894, 'environnement': 22416895, 'flou': 22416896},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22416883) 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([22416883]) 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.3361525535583496 time spend to save output : 4.935264587402344e-05 total time spend for step 3 : 0.33620190620422363 step4:send_mail_cod Fri Apr 25 05:13: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 : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ('0.07886844311962994',), 1353627640: ('0.07886844311962994',), 1353627627: ('0.07886844311962994',), 1353627625: ('0.07886844311962994',), 1353627480: ('0.07886844311962994',), 1353627443: ('0.07886844311962994',), 1353627416: ('0.07886844311962994',), 1353627391: ('0.07886844311962994',), 1353627355: ('0.07886844311962994',), 1353627328: ('0.07886844311962994',)} input_args_next_step : {1353627787: ()} output_args : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ('0.07886844311962994',), 1353627640: ('0.07886844311962994',), 1353627627: ('0.07886844311962994',), 1353627625: ('0.07886844311962994',), 1353627480: ('0.07886844311962994',), 1353627443: ('0.07886844311962994',), 1353627416: ('0.07886844311962994',), 1353627391: ('0.07886844311962994',), 1353627355: ('0.07886844311962994',), 1353627328: ('0.07886844311962994',)} args : 1353627787 depend.output_id : 0 input_args_next_step : {1353627787: ('0.07886844311962994',), 1353627767: ()} output_args : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ('0.07886844311962994',), 1353627640: ('0.07886844311962994',), 1353627627: ('0.07886844311962994',), 1353627625: ('0.07886844311962994',), 1353627480: ('0.07886844311962994',), 1353627443: ('0.07886844311962994',), 1353627416: ('0.07886844311962994',), 1353627391: ('0.07886844311962994',), 1353627355: ('0.07886844311962994',), 1353627328: ('0.07886844311962994',)} args : 1353627767 depend.output_id : 0 input_args_next_step : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ()} output_args : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ('0.07886844311962994',), 1353627640: ('0.07886844311962994',), 1353627627: ('0.07886844311962994',), 1353627625: ('0.07886844311962994',), 1353627480: ('0.07886844311962994',), 1353627443: ('0.07886844311962994',), 1353627416: ('0.07886844311962994',), 1353627391: ('0.07886844311962994',), 1353627355: ('0.07886844311962994',), 1353627328: ('0.07886844311962994',)} args : 1353627764 depend.output_id : 0 input_args_next_step : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ()} output_args : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ('0.07886844311962994',), 1353627640: ('0.07886844311962994',), 1353627627: ('0.07886844311962994',), 1353627625: ('0.07886844311962994',), 1353627480: ('0.07886844311962994',), 1353627443: ('0.07886844311962994',), 1353627416: ('0.07886844311962994',), 1353627391: ('0.07886844311962994',), 1353627355: ('0.07886844311962994',), 1353627328: ('0.07886844311962994',)} args : 1353627691 depend.output_id : 0 input_args_next_step : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ()} output_args : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ('0.07886844311962994',), 1353627640: ('0.07886844311962994',), 1353627627: ('0.07886844311962994',), 1353627625: ('0.07886844311962994',), 1353627480: ('0.07886844311962994',), 1353627443: ('0.07886844311962994',), 1353627416: ('0.07886844311962994',), 1353627391: ('0.07886844311962994',), 1353627355: ('0.07886844311962994',), 1353627328: ('0.07886844311962994',)} args : 1353627690 depend.output_id : 0 input_args_next_step : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ()} output_args : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ('0.07886844311962994',), 1353627640: ('0.07886844311962994',), 1353627627: ('0.07886844311962994',), 1353627625: ('0.07886844311962994',), 1353627480: ('0.07886844311962994',), 1353627443: ('0.07886844311962994',), 1353627416: ('0.07886844311962994',), 1353627391: ('0.07886844311962994',), 1353627355: ('0.07886844311962994',), 1353627328: ('0.07886844311962994',)} args : 1353627666 depend.output_id : 0 input_args_next_step : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ('0.07886844311962994',), 1353627640: ()} output_args : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ('0.07886844311962994',), 1353627640: ('0.07886844311962994',), 1353627627: ('0.07886844311962994',), 1353627625: ('0.07886844311962994',), 1353627480: ('0.07886844311962994',), 1353627443: ('0.07886844311962994',), 1353627416: ('0.07886844311962994',), 1353627391: ('0.07886844311962994',), 1353627355: ('0.07886844311962994',), 1353627328: ('0.07886844311962994',)} args : 1353627640 depend.output_id : 0 input_args_next_step : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ('0.07886844311962994',), 1353627640: ('0.07886844311962994',), 1353627627: ()} output_args : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ('0.07886844311962994',), 1353627640: ('0.07886844311962994',), 1353627627: ('0.07886844311962994',), 1353627625: ('0.07886844311962994',), 1353627480: ('0.07886844311962994',), 1353627443: ('0.07886844311962994',), 1353627416: ('0.07886844311962994',), 1353627391: ('0.07886844311962994',), 1353627355: ('0.07886844311962994',), 1353627328: ('0.07886844311962994',)} args : 1353627627 depend.output_id : 0 input_args_next_step : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ('0.07886844311962994',), 1353627640: ('0.07886844311962994',), 1353627627: ('0.07886844311962994',), 1353627625: ()} output_args : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ('0.07886844311962994',), 1353627640: ('0.07886844311962994',), 1353627627: ('0.07886844311962994',), 1353627625: ('0.07886844311962994',), 1353627480: ('0.07886844311962994',), 1353627443: ('0.07886844311962994',), 1353627416: ('0.07886844311962994',), 1353627391: ('0.07886844311962994',), 1353627355: ('0.07886844311962994',), 1353627328: ('0.07886844311962994',)} args : 1353627625 depend.output_id : 0 input_args_next_step : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ('0.07886844311962994',), 1353627640: ('0.07886844311962994',), 1353627627: ('0.07886844311962994',), 1353627625: ('0.07886844311962994',), 1353627480: ()} output_args : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ('0.07886844311962994',), 1353627640: ('0.07886844311962994',), 1353627627: ('0.07886844311962994',), 1353627625: ('0.07886844311962994',), 1353627480: ('0.07886844311962994',), 1353627443: ('0.07886844311962994',), 1353627416: ('0.07886844311962994',), 1353627391: ('0.07886844311962994',), 1353627355: ('0.07886844311962994',), 1353627328: ('0.07886844311962994',)} args : 1353627480 depend.output_id : 0 input_args_next_step : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ('0.07886844311962994',), 1353627640: ('0.07886844311962994',), 1353627627: ('0.07886844311962994',), 1353627625: ('0.07886844311962994',), 1353627480: ('0.07886844311962994',), 1353627443: ()} output_args : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ('0.07886844311962994',), 1353627640: ('0.07886844311962994',), 1353627627: ('0.07886844311962994',), 1353627625: ('0.07886844311962994',), 1353627480: ('0.07886844311962994',), 1353627443: ('0.07886844311962994',), 1353627416: ('0.07886844311962994',), 1353627391: ('0.07886844311962994',), 1353627355: ('0.07886844311962994',), 1353627328: ('0.07886844311962994',)} args : 1353627443 depend.output_id : 0 input_args_next_step : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ('0.07886844311962994',), 1353627640: ('0.07886844311962994',), 1353627627: ('0.07886844311962994',), 1353627625: ('0.07886844311962994',), 1353627480: ('0.07886844311962994',), 1353627443: ('0.07886844311962994',), 1353627416: ()} output_args : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ('0.07886844311962994',), 1353627640: ('0.07886844311962994',), 1353627627: ('0.07886844311962994',), 1353627625: ('0.07886844311962994',), 1353627480: ('0.07886844311962994',), 1353627443: ('0.07886844311962994',), 1353627416: ('0.07886844311962994',), 1353627391: ('0.07886844311962994',), 1353627355: ('0.07886844311962994',), 1353627328: ('0.07886844311962994',)} args : 1353627416 depend.output_id : 0 input_args_next_step : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ('0.07886844311962994',), 1353627640: ('0.07886844311962994',), 1353627627: ('0.07886844311962994',), 1353627625: ('0.07886844311962994',), 1353627480: ('0.07886844311962994',), 1353627443: ('0.07886844311962994',), 1353627416: ('0.07886844311962994',), 1353627391: ()} output_args : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ('0.07886844311962994',), 1353627640: ('0.07886844311962994',), 1353627627: ('0.07886844311962994',), 1353627625: ('0.07886844311962994',), 1353627480: ('0.07886844311962994',), 1353627443: ('0.07886844311962994',), 1353627416: ('0.07886844311962994',), 1353627391: ('0.07886844311962994',), 1353627355: ('0.07886844311962994',), 1353627328: ('0.07886844311962994',)} args : 1353627391 depend.output_id : 0 input_args_next_step : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ('0.07886844311962994',), 1353627640: ('0.07886844311962994',), 1353627627: ('0.07886844311962994',), 1353627625: ('0.07886844311962994',), 1353627480: ('0.07886844311962994',), 1353627443: ('0.07886844311962994',), 1353627416: ('0.07886844311962994',), 1353627391: ('0.07886844311962994',), 1353627355: ()} output_args : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ('0.07886844311962994',), 1353627640: ('0.07886844311962994',), 1353627627: ('0.07886844311962994',), 1353627625: ('0.07886844311962994',), 1353627480: ('0.07886844311962994',), 1353627443: ('0.07886844311962994',), 1353627416: ('0.07886844311962994',), 1353627391: ('0.07886844311962994',), 1353627355: ('0.07886844311962994',), 1353627328: ('0.07886844311962994',)} args : 1353627355 depend.output_id : 0 input_args_next_step : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ('0.07886844311962994',), 1353627640: ('0.07886844311962994',), 1353627627: ('0.07886844311962994',), 1353627625: ('0.07886844311962994',), 1353627480: ('0.07886844311962994',), 1353627443: ('0.07886844311962994',), 1353627416: ('0.07886844311962994',), 1353627391: ('0.07886844311962994',), 1353627355: ('0.07886844311962994',), 1353627328: ()} output_args : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ('0.07886844311962994',), 1353627640: ('0.07886844311962994',), 1353627627: ('0.07886844311962994',), 1353627625: ('0.07886844311962994',), 1353627480: ('0.07886844311962994',), 1353627443: ('0.07886844311962994',), 1353627416: ('0.07886844311962994',), 1353627391: ('0.07886844311962994',), 1353627355: ('0.07886844311962994',), 1353627328: ('0.07886844311962994',)} args : 1353627328 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 : {22416883: [{'plastique': 22416885, 'mal_croppe': 22416886, 'Teint_Dans_La_Masse': 22416887, 'papier': 22416888, 'Carton_gris': 22416889, 'kraft': 22416890, 'metal': 22416891, 'Carton_brun': 22416892, 'cartonnette': 22416893, 'autre_refus': 22416894, 'environnement': 22416895, 'flou': 22416896}]} input_args_next_step : {1353627787: ('0.07886844311962994',), 1353627767: ('0.07886844311962994',), 1353627764: ('0.07886844311962994',), 1353627691: ('0.07886844311962994',), 1353627690: ('0.07886844311962994',), 1353627666: ('0.07886844311962994',), 1353627640: ('0.07886844311962994',), 1353627627: ('0.07886844311962994',), 1353627625: ('0.07886844311962994',), 1353627480: ('0.07886844311962994',), 1353627443: ('0.07886844311962994',), 1353627416: ('0.07886844311962994',), 1353627391: ('0.07886844311962994',), 1353627355: ('0.07886844311962994',), 1353627328: ('0.07886844311962994',), 22416883: ()} output_args : {22416883: [{'plastique': 22416885, 'mal_croppe': 22416886, 'Teint_Dans_La_Masse': 22416887, 'papier': 22416888, 'Carton_gris': 22416889, 'kraft': 22416890, 'metal': 22416891, 'Carton_brun': 22416892, 'cartonnette': 22416893, 'autre_refus': 22416894, 'environnement': 22416895, 'flou': 22416896}]} args : 22416883 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 :16, first value : ('0.07886844311962994',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22416883) 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 (1353627787,1353627767,1353627764,1353627691,1353627690,1353627666,1353627640,1353627627,1353627625,1353627480,1353627443,1353627416,1353627391,1353627355,1353627328) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1353627328 begin to download photo : 1353627443 begin to download photo : 1353627640 begin to download photo : 1353627764 download finish for photo 1353627764 begin to download photo : 1353627767 download finish for photo 1353627443 begin to download photo : 1353627480 download finish for photo 1353627640 begin to download photo : 1353627666 download finish for photo 1353627328 begin to download photo : 1353627355 download finish for photo 1353627480 begin to download photo : 1353627625 download finish for photo 1353627666 begin to download photo : 1353627690 download finish for photo 1353627767 begin to download photo : 1353627787 download finish for photo 1353627355 begin to download photo : 1353627391 download finish for photo 1353627690 begin to download photo : 1353627691 download finish for photo 1353627625 begin to download photo : 1353627627 download finish for photo 1353627787 download finish for photo 1353627391 begin to download photo : 1353627416 download finish for photo 1353627691 download finish for photo 1353627627 download finish for photo 1353627416 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 : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P22416883_25-04-2025_05_13_00.pdf 22416885 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=22416885 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353627133: '1745550540_1595795_1353627033_7c92a0117b991395ef738e0fa537fbb1_rle_crop_3769179235_0.png'} change filename to text .imagette224168851745550780/ imagette224168851745550780/1745550540_1595795_1353627033_7c92a0117b991395ef738e0fa537fbb1_rle_crop_3769179235_0.png.png imagette224168861745550780/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/aa61c01670c86b4e3d92c9242237964b_13173381.png imagette224168851745550780 22416886 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=22416886 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224168861745550780 22416890 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=22416890 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353627149: '1745550551_1595960_1353627041_02180201ede557605e21a0119a444c35_rle_crop_3769179271_0.png'} change filename to text .imagette224168901745550780/ imagette224168901745550780/1745550551_1595960_1353627041_02180201ede557605e21a0119a444c35_rle_crop_3769179271_0.png.png imagette224168911745550780/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/c668d1b193db339b96e489a87eb4e3fe_99996713.png imagette224168901745550780 22416891 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=22416891 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224168911745550780 22416893 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=22416893 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353627114: '1745550540_1595795_1353627032_b1d031fd5b3fd2da59f9e45801c1265f_rle_crop_3769179253_0.png'} change filename to text .imagette224168931745550780/ imagette224168931745550780/1745550540_1595795_1353627032_b1d031fd5b3fd2da59f9e45801c1265f_rle_crop_3769179253_0.png.png imagette224168941745550781/ imagette224168961745550781/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/06583290574475029d04dfc1deb10369_54154135.png imagette224168931745550780 22416894 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=22416894 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224168941745550781 22416896 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=22416896 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224168961745550781 22416887 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=22416887 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353627101: '1745550540_1595795_1353627038_ec2ff63a330b9f13b08f3dc25e3e9ceb_rle_crop_3769179215_0.png', 1353627102: '1745550540_1595795_1353627035_14482ab015dbfb224985cf33fa8a5634_rle_crop_3769179230_0.png', 1353627103: '1745550540_1595795_1353627033_7c92a0117b991395ef738e0fa537fbb1_rle_crop_3769179236_0.png', 1353627104: '1745550540_1595795_1353627032_b1d031fd5b3fd2da59f9e45801c1265f_rle_crop_3769179257_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/66b9f37e35735890cd5bdcd5ed61171f_18032866.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/00b2d6270004ffab0225aae0e89245d6_43592071.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/b6e8da6f14f0d7beec7d84e12372422a_51455816.png change filename to text .imagette224168871745550781/ imagette224168871745550781/1745550540_1595795_1353627033_7c92a0117b991395ef738e0fa537fbb1_rle_crop_3769179236_0.png.png imagette224168871745550781/1745550540_1595795_1353627035_14482ab015dbfb224985cf33fa8a5634_rle_crop_3769179230_0.png.png imagette224168871745550781/1745550540_1595795_1353627038_ec2ff63a330b9f13b08f3dc25e3e9ceb_rle_crop_3769179215_0.png.png imagette224168871745550781/1745550540_1595795_1353627032_b1d031fd5b3fd2da59f9e45801c1265f_rle_crop_3769179257_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/b20c2b006fcc0a36baeb61fd7ab0e41e_29969807.png imagette224168871745550781 22416889 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=22416889 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353627106: '1745550540_1595795_1353627032_b1d031fd5b3fd2da59f9e45801c1265f_rle_crop_3769179248_0.png', 1353627144: '1745550551_1595960_1353626632_efb6fe4cda77d2b6a6edef30922699f7_rle_crop_3769179281_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/30751ececa78ffea3df1aa46405746dc_63826219.png change filename to text .imagette224168891745550781/ imagette224168891745550781/1745550540_1595795_1353627032_b1d031fd5b3fd2da59f9e45801c1265f_rle_crop_3769179248_0.png.png imagette224168891745550781/1745550551_1595960_1353626632_efb6fe4cda77d2b6a6edef30922699f7_rle_crop_3769179281_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/140283a9f86d2aaf0b8805d381deaf08_28551663.png imagette224168891745550781 22416892 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=22416892 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353627124: '1745550540_1595795_1353627038_ec2ff63a330b9f13b08f3dc25e3e9ceb_rle_crop_3769179214_0.png', 1353627125: '1745550540_1595795_1353627035_14482ab015dbfb224985cf33fa8a5634_rle_crop_3769179226_0.png', 1353627126: '1745550540_1595795_1353627032_b1d031fd5b3fd2da59f9e45801c1265f_rle_crop_3769179254_0.png', 1353627127: '1745550540_1595795_1353627032_b1d031fd5b3fd2da59f9e45801c1265f_rle_crop_3769179258_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/75a922492d5d544b42348883ace46c8e_22022785.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/7a7aa17dffcaf4f1064608fa36f820d3_20462458.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/4a30ee67f5ab9a6a48ee1663e32b7b0f_19419127.png change filename to text .imagette224168921745550781/ imagette224168921745550781/1745550540_1595795_1353627035_14482ab015dbfb224985cf33fa8a5634_rle_crop_3769179226_0.png.png imagette224168921745550781/1745550540_1595795_1353627038_ec2ff63a330b9f13b08f3dc25e3e9ceb_rle_crop_3769179214_0.png.png imagette224168921745550781/1745550540_1595795_1353627032_b1d031fd5b3fd2da59f9e45801c1265f_rle_crop_3769179258_0.png.png imagette224168921745550781/1745550540_1595795_1353627032_b1d031fd5b3fd2da59f9e45801c1265f_rle_crop_3769179254_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/81f41cf9f315e4ef0b3efef39a292537_12144366.png imagette224168921745550781 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22416883 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22416897,22416898,22416899,22416900,22416901,22416902,22416903,22416904,22416905,22416906,22416907,22416908?tags=plastique,mal_croppe,Teint_Dans_La_Masse,papier,Carton_gris,kraft,metal,Carton_brun,cartonnette,autre_refus,environnement,flou your option no_mail is active, we will not send the real mail to your client args[1353627787] : ('0.07886844311962994',) no score found for photo 1353627787 We are sending mail with results at report@fotonower.com args[1353627767] : ('0.07886844311962994',) no score found for photo 1353627767 We are sending mail with results at report@fotonower.com args[1353627764] : ('0.07886844311962994',) no score found for photo 1353627764 We are sending mail with results at report@fotonower.com args[1353627691] : ('0.07886844311962994',) no score found for photo 1353627691 We are sending mail with results at report@fotonower.com args[1353627690] : ('0.07886844311962994',) no score found for photo 1353627690 We are sending mail with results at report@fotonower.com args[1353627666] : ('0.07886844311962994',) no score found for photo 1353627666 We are sending mail with results at report@fotonower.com args[1353627640] : ('0.07886844311962994',) no score found for photo 1353627640 We are sending mail with results at report@fotonower.com args[1353627627] : ('0.07886844311962994',) no score found for photo 1353627627 We are sending mail with results at report@fotonower.com args[1353627625] : ('0.07886844311962994',) no score found for photo 1353627625 We are sending mail with results at report@fotonower.com args[1353627480] : ('0.07886844311962994',) no score found for photo 1353627480 We are sending mail with results at report@fotonower.com args[1353627443] : ('0.07886844311962994',) no score found for photo 1353627443 We are sending mail with results at report@fotonower.com args[1353627416] : ('0.07886844311962994',) no score found for photo 1353627416 We are sending mail with results at report@fotonower.com args[1353627391] : ('0.07886844311962994',) no score found for photo 1353627391 We are sending mail with results at report@fotonower.com args[1353627355] : ('0.07886844311962994',) no score found for photo 1353627355 We are sending mail with results at report@fotonower.com args[1353627328] : ('0.07886844311962994',) no score found for photo 1353627328 We are sending mail with results at report@fotonower.com refus_total : 0.07886844311962994 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=22416883 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_P22416883_25-04-2025_05_13_00.pdf results_Auto_P22416883_25-04-2025_05_13_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22416883_25-04-2025_05_13_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22416883','results_Auto_P22416883_25-04-2025_05_13_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22416883_25-04-2025_05_13_00.pdf','pdf','','0.19','0.07886844311962994') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22416883]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1353627787, 1353627767, 1353627764, 1353627691, 1353627690, 1353627666, 1353627640, 1353627627, 1353627625, 1353627480, 1353627443, 1353627416, 1353627391, 1353627355, 1353627328] map_info['map_portfolio_photo'] : {22416883: [1353627787, 1353627767, 1353627764, 1353627691, 1353627690, 1353627666, 1353627640, 1353627627, 1353627625, 1353627480, 1353627443, 1353627416, 1353627391, 1353627355, 1353627328, 1353627087, 1353627085, 1353627082, 1353627064, 1353627061, 1353627059, 1353627057, 1353627055, 1353627052, 1353627041, 1353627038, 1353627035, 1353627033, 1353627032, 1353627029, 1353626731, 1353626704, 1353626632, 1353625703]} final : False mtd_id 4302 list_pids : [1353627787, 1353627767, 1353627764, 1353627691, 1353627690, 1353627666, 1353627640, 1353627627, 1353627625, 1353627480, 1353627443, 1353627416, 1353627391, 1353627355, 1353627328] 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, '2760683') ('4302', '22416883', '1353627787', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627767', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627764', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627691', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627690', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627666', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627640', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627627', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627625', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627480', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627443', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627416', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627391', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627355', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627328', None, None, None, None, None, '2760683') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '22416883', '1353627787', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627767', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627764', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627691', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627690', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627666', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627640', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627627', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627625', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627480', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627443', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627416', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627391', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627355', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627328', None, None, None, None, None, '2760683')] time used for this insertion : 0.0135040283203125 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.6859219074249268 time spend to save output : 0.013768672943115234 total time spend for step 4 : 2.699690580368042 step5:split_time_score Fri Apr 25 05:13:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22416883'] 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 : [('22416883',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22416883) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1353627764: {'path': 'temp/1745550780_3990750_1353627764_6aea78affe4037931ba238ca8007d26e.jpg', 'extension': 'jpg'}, 1353627767: {'path': 'temp/1745550780_3990750_1353627767_8c4c9d4f83b9d4c2417847774bce6365.jpg', 'extension': 'jpg'}, 1353627787: {'path': 'temp/1745550780_3990750_1353627787_021f21658b8e1fa564f3f44f3a1f97e6.jpg', 'extension': 'jpg'}, 1353627640: {'path': 'temp/1745550780_3990750_1353627640_2447612f8246d287270e7c4356a07227.jpg', 'extension': 'jpg'}, 1353627666: {'path': 'temp/1745550780_3990750_1353627666_260becb4f495eec6d027392bcab0aec9.jpg', 'extension': 'jpg'}, 1353627690: {'path': 'temp/1745550780_3990750_1353627690_212bdb0860477ab592f0153c927db38b.jpg', 'extension': 'jpg'}, 1353627691: {'path': 'temp/1745550780_3990750_1353627691_6984aa1d1c0f600e1ca41205b6c210da.jpg', 'extension': 'jpg'}, 1353627443: {'path': 'temp/1745550780_3990750_1353627443_ad6725439611bf4877daac940dfd4667.jpg', 'extension': 'jpg'}, 1353627480: {'path': 'temp/1745550780_3990750_1353627480_6f931df6be0a1ed1fba904ceefd803b4.jpg', 'extension': 'jpg'}, 1353627625: {'path': 'temp/1745550780_3990750_1353627625_b8ed759a80dced7927eca2a3fe730b80.jpg', 'extension': 'jpg'}, 1353627627: {'path': 'temp/1745550780_3990750_1353627627_51be8f309482b1cb555f8f13d6356c91.jpg', 'extension': 'jpg'}, 1353627328: {'path': 'temp/1745550780_3990750_1353627328_f94d7fe9b185c1ef9f4f6d2d258db528.jpg', 'extension': 'jpg'}, 1353627355: {'path': 'temp/1745550780_3990750_1353627355_4182ebd58ffd9767e8f309a71d61bdfc.jpg', 'extension': 'jpg'}, 1353627391: {'path': 'temp/1745550780_3990750_1353627391_7d486773269462061da2447b73530548.jpg', 'extension': 'jpg'}, 1353627416: {'path': 'temp/1745550780_3990750_1353627416_90a02c13b0e36d10c17b4974eada73e5.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 = 22416883; (('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 = 22416883 group by h (('05', 34),) 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=22416883 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 (22416883) 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 (22416883) 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 22416883 Nombre de photos uploadées : 34 / 23040 (0%) 25042025 22416883 Nombre de photos taguées (types de déchets): 0 / 34 (0%) 25042025 22416883 Nombre de photos taguées (volume) : 0 / 34 (0%) [{'photo_id': 1353625703, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/8c4044d85fd8edb31ebdd9d967a4c390.jpg', 'username': None, 'uploaded_at': 1745550187, 'text': 'image_25042025_05_01_24_10134.jpg'}, {'photo_id': 1353626731, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/aaad95635e0d3e2d5fd311c73cab6dcd.jpg', 'username': None, 'uploaded_at': 1745550367, 'text': 'image_25042025_05_02_44_10136.jpg'}, {'photo_id': 1353626704, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/1e9b563862686a32ab57917e6e43b2fb.jpg', 'username': None, 'uploaded_at': 1745550367, 'text': 'image_25042025_05_05_04_010150m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353626632, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/efb6fe4cda77d2b6a6edef30922699f7.jpg', 'username': None, 'uploaded_at': 1745550367, 'text': 'image_25042025_05_05_14_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.5762786865234375e-06 elapsed_time : order_list_meta_photo_and_scores 8.821487426757812e-06 ?????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0015327930450439453 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22416883, '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.021775007247924805 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': 1755701, 'mtr_portfolio_id': 22416883, 'dashboard_result_id': 10092168, '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_P22416883_25-04-2025_05_10_41.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22416885, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22416886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22416887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22416888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22416889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22416890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22416891, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22416892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22416893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22416894, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22416895, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22416896, '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 = 22416883 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': 2760683, 'mtr_portfolio_id': 22416883, 'created_at': datetime.datetime(2025, 4, 25, 5, 12, 59), 'result': '0.07886844311962994', 'result_long': None, 'result_double': None}] Qualite : 0.07886844311962994 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22416883 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22416883_25-04-2025_05_13_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22416883 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_P22416883_25-04-2025_05_13_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22416885, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22416886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22416887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22416888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22416889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22416890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22416891, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22416892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22416893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22416894, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22416895, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22416896, 'pht': 3726}}" where mtr_portfolio_id = 22416883 and dashboard_run_id = 1755701 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`=22416883 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10092168, 0.07886844311962994, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22416883_25-04-2025_05_13_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22416885, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22416886, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22416887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22416888, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22416889, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22416890, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22416891, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22416892, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22416893, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22416894, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22416895, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22416896, '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 (22416883) result : ((1353625703,), (1353626632,), (1353626704,), (1353626731,), (1353627029,), (1353627032,), (1353627033,), (1353627035,), (1353627038,), (1353627041,), (1353627052,), (1353627055,), (1353627057,), (1353627059,), (1353627061,), (1353627064,), (1353627082,), (1353627085,), (1353627087,), (1353627328,), (1353627355,), (1353627391,), (1353627416,), (1353627443,), (1353627480,), (1353627625,), (1353627627,), (1353627640,), (1353627666,), (1353627690,), (1353627691,), (1353627764,), (1353627767,), (1353627787,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25042025': {'nb_upload': 34, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22416883]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1353627787, 1353627767, 1353627764, 1353627691, 1353627690, 1353627666, 1353627640, 1353627627, 1353627625, 1353627480, 1353627443, 1353627416, 1353627391, 1353627355, 1353627328] map_info['map_portfolio_photo'] : {22416883: [1353627787, 1353627767, 1353627764, 1353627691, 1353627690, 1353627666, 1353627640, 1353627627, 1353627625, 1353627480, 1353627443, 1353627416, 1353627391, 1353627355, 1353627328, 1353627087, 1353627085, 1353627082, 1353627064, 1353627061, 1353627059, 1353627057, 1353627055, 1353627052, 1353627041, 1353627038, 1353627035, 1353627033, 1353627032, 1353627029, 1353626731, 1353626704, 1353626632, 1353625703]} final : True mtd_id 4302 list_pids : [1353627787, 1353627767, 1353627764, 1353627691, 1353627690, 1353627666, 1353627640, 1353627627, 1353627625, 1353627480, 1353627443, 1353627416, 1353627391, 1353627355, 1353627328] Looping around the photos to save general results len do output : 1 /22416883Didn'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, '2760683') ('4302', '22416883', '1353627787', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627767', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627764', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627691', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627690', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627666', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627640', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627627', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627625', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627480', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627443', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627416', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627391', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627355', None, None, None, None, None, '2760683') ('4302', None, None, None, None, None, None, None, '2760683') ('4302', '22416883', '1353627328', None, None, None, None, None, '2760683') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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, '22416883', 'None', None, None, None, None, '2760683'), ('4302', '22416883', '1353627787', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627767', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627764', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627691', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627690', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627666', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627640', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627627', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627625', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627480', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627443', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627416', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627391', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627355', None, None, None, None, None, '2760683'), ('4302', '22416883', '1353627328', None, None, None, None, None, '2760683')] time used for this insertion : 0.014388561248779297 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.16913151741027832 time spend to save output : 0.01465463638305664 total time spend for step 5 : 0.18378615379333496 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 (2760683) 1.96user 1.87system 0:08.31elapsed 46%CPU (0avgtext+0avgdata 159512maxresident)k 368inputs+10944outputs (3major+78585minor)pagefaults 0swaps