select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22420251 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22420227 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='plastique' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22420251) result : ((1353637452,), (1353637672,), (1353637675,), (1353637677,), (1353638331,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22420227) result : ((1353636064,), (1353636069,), (1353636071,), (1353636073,), (1353636330,), (1353636335,), (1353636339,), (1353636343,), (1353636374,), (1353636379,), (1353636384,), (1353636388,), (1353636391,), (1353636394,), (1353636880,), (1353637094,), (1353637292,), (1353637374,), (1353637875,), (1353637919,), (1353637951,), (1353637978,), (1353638009,), (1353638037,), (1353638273,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22420252 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22420227 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='autre_refus' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22420252) result : ((1353637416,), (1353637418,), (1353637621,), (1353637622,), (1353638321,), (1353638323,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22420227) result : ((1353636064,), (1353636069,), (1353636071,), (1353636073,), (1353636330,), (1353636335,), (1353636339,), (1353636343,), (1353636374,), (1353636379,), (1353636384,), (1353636388,), (1353636391,), (1353636394,), (1353636880,), (1353637094,), (1353637292,), (1353637374,), (1353637875,), (1353637919,), (1353637951,), (1353637978,), (1353638009,), (1353638037,), (1353638273,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! 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`=22420227 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_brun','environnement','papier','autre_refus','mal_croppe','metal','Carton_gris','Teint_Dans_La_Masse','kraft','plastique','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22420227 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_brun','environnement','papier','autre_refus','mal_croppe','metal','Carton_gris','Teint_Dans_La_Masse','kraft','plastique','flou')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22420227, 'sub_port_id': 22420253, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14867727, 'last_updated_at': datetime.datetime(2025, 4, 25, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 7, 3, 32)}, 'Carton_gris': {'main_port_id': 22420227, 'sub_port_id': 22420254, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14867728, 'last_updated_at': datetime.datetime(2025, 4, 25, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 7, 3, 32)}, 'papier': {'main_port_id': 22420227, 'sub_port_id': 22420255, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14867729, 'last_updated_at': datetime.datetime(2025, 4, 25, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 7, 3, 32)}, 'Carton_brun': {'main_port_id': 22420227, 'sub_port_id': 22420256, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14867730, 'last_updated_at': datetime.datetime(2025, 4, 25, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 7, 3, 32)}, 'Teint_Dans_La_Masse': {'main_port_id': 22420227, 'sub_port_id': 22420257, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14867731, 'last_updated_at': datetime.datetime(2025, 4, 25, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 7, 3, 32)}, 'cartonnette': {'main_port_id': 22420227, 'sub_port_id': 22420258, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14867732, 'last_updated_at': datetime.datetime(2025, 4, 25, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 7, 3, 32)}, 'kraft': {'main_port_id': 22420227, 'sub_port_id': 22420259, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14867733, 'last_updated_at': datetime.datetime(2025, 4, 25, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 7, 3, 32)}, 'metal': {'main_port_id': 22420227, 'sub_port_id': 22420260, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14867734, 'last_updated_at': datetime.datetime(2025, 4, 25, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 7, 3, 32)}, 'mal_croppe': {'main_port_id': 22420227, 'sub_port_id': 22420261, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14867735, 'last_updated_at': datetime.datetime(2025, 4, 25, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 7, 3, 32)}, 'flou': {'main_port_id': 22420227, 'sub_port_id': 22420262, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14867736, 'last_updated_at': datetime.datetime(2025, 4, 25, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 7, 3, 32)}, 'plastique': {'main_port_id': 22420227, 'sub_port_id': 22420263, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14867737, 'last_updated_at': datetime.datetime(2025, 4, 25, 7, 3, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 7, 3, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 7, 3, 32)}, 'autre_refus': {'main_port_id': 22420227, 'sub_port_id': 22420264, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14867738, 'last_updated_at': datetime.datetime(2025, 4, 25, 7, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 25, 7, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 25, 7, 3, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22420253,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22420241 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22420254,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22420242 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22420255,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22420243 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22420256,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22420244 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22420257,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22420245 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22420258,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22420246 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22420259,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22420247 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22420260,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22420248 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22420261,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22420249 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22420262,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22420250 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22420263,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22420251 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22420264,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22420252 lien utilise dans velours : https://www.fotonower.com/velours/22420253,22420254,22420255,22420256,22420257,22420258,22420259,22420260,22420261,22420262,22420263,22420264?tags=environnement,Carton_gris,papier,Carton_brun,Teint_Dans_La_Masse,cartonnette,kraft,metal,mal_croppe,flou,plastique,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22420227]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1353638273, 1353638037, 1353638009, 1353637978, 1353637951, 1353637919, 1353637875] map_info['map_portfolio_photo'] : {22420227: [1353638273, 1353638037, 1353638009, 1353637978, 1353637951, 1353637919, 1353637875, 1353637374, 1353637292, 1353637094, 1353636880, 1353636394, 1353636391, 1353636388, 1353636384, 1353636379, 1353636374, 1353636343, 1353636339, 1353636335, 1353636330, 1353636073, 1353636071, 1353636069, 1353636064]} final : False mtd_id 4302 list_pids : [1353638273, 1353638037, 1353638009, 1353637978, 1353637951, 1353637919, 1353637875] Looping around the photos to save general results len do output : 1 /22420227. 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, '2761079') ('4302', '22420227', '1353638273', None, None, None, None, None, '2761079') ('4302', None, None, None, None, None, None, None, '2761079') ('4302', '22420227', '1353638037', None, None, None, None, None, '2761079') ('4302', None, None, None, None, None, None, None, '2761079') ('4302', '22420227', '1353638009', None, None, None, None, None, '2761079') ('4302', None, None, None, None, None, None, None, '2761079') ('4302', '22420227', '1353637978', None, None, None, None, None, '2761079') ('4302', None, None, None, None, None, None, None, '2761079') ('4302', '22420227', '1353637951', None, None, None, None, None, '2761079') ('4302', None, None, None, None, None, None, None, '2761079') ('4302', '22420227', '1353637919', None, None, None, None, None, '2761079') ('4302', None, None, None, None, None, None, None, '2761079') ('4302', '22420227', '1353637875', None, None, None, None, None, '2761079') 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', None, '22420227', "{'environnement': 22420241, 'Carton_gris': 22420242, 'papier': 22420243, 'Carton_brun': 22420244, 'Teint_Dans_La_Masse': 22420245, 'cartonnette': 22420246, 'kraft': 22420247, 'metal': 22420248, 'mal_croppe': 22420249, 'flou': 22420250, 'plastique': 22420251, 'autre_refus': 22420252}", None, None, None, None, '2761079'), ('4302', '22420227', '1353638273', None, None, None, None, None, '2761079'), ('4302', '22420227', '1353638037', None, None, None, None, None, '2761079'), ('4302', '22420227', '1353638009', None, None, None, None, None, '2761079'), ('4302', '22420227', '1353637978', None, None, None, None, None, '2761079'), ('4302', '22420227', '1353637951', None, None, None, None, None, '2761079'), ('4302', '22420227', '1353637919', None, None, None, None, None, '2761079'), ('4302', '22420227', '1353637875', None, None, None, None, None, '2761079')] time used for this insertion : 0.018015384674072266 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4712896347045898 time spend to save output : 0.018320322036743164 total time spend for step 1 : 1.489609956741333 step2:final Fri Apr 25 07:06: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 (22420227) 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 22420227 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1353636073,1353636071,1353636069,1353636064,1353636343,1353636339,1353636335,1353636330,1353636394,1353636391,1353636388,1353636384,1353636379,1353636374,1353637374,1353637292,1353637094,1353636880,1353638037,1353638009,1353637978,1353637951,1353637919,1353637875,1353638273); 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([22420227]) Inside saveOutput : final : False verbose : True original output for save of step final : {1353638273: ('0.05435748105168154',), 1353638037: ('0.05435748105168154',), 1353638009: ('0.05435748105168154',), 1353637978: ('0.05435748105168154',), 1353637951: ('0.05435748105168154',), 1353637919: ('0.05435748105168154',), 1353637875: ('0.05435748105168154',)} new output for save of step final : {1353638273: ('0.05435748105168154',), 1353638037: ('0.05435748105168154',), 1353638009: ('0.05435748105168154',), 1353637978: ('0.05435748105168154',), 1353637951: ('0.05435748105168154',), 1353637919: ('0.05435748105168154',), 1353637875: ('0.05435748105168154',)} [1353638273, 1353638037, 1353638009, 1353637978, 1353637951, 1353637919, 1353637875] map_info['map_portfolio_photo'] : {22420227: [1353638273, 1353638037, 1353638009, 1353637978, 1353637951, 1353637919, 1353637875, 1353637374, 1353637292, 1353637094, 1353636880, 1353636394, 1353636391, 1353636388, 1353636384, 1353636379, 1353636374, 1353636343, 1353636339, 1353636335, 1353636330, 1353636073, 1353636071, 1353636069, 1353636064]} final : False mtd_id 4302 list_pids : [1353638273, 1353638037, 1353638009, 1353637978, 1353637951, 1353637919, 1353637875] Looping around the photos to save general results len do output : 7 /1353638273.Didn't retrieve data . /1353638037.Didn't retrieve data . /1353638009.Didn't retrieve data . /1353637978.Didn't retrieve data . /1353637951.Didn't retrieve data . /1353637919.Didn't retrieve data . /1353637875.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, '2761079') ('4302', '22420227', '1353638273', None, None, None, None, None, '2761079') ('4302', None, None, None, None, None, None, None, '2761079') ('4302', '22420227', '1353638037', None, None, None, None, None, '2761079') ('4302', None, None, None, None, None, None, None, '2761079') ('4302', '22420227', '1353638009', None, None, None, None, None, '2761079') ('4302', None, None, None, None, None, None, None, '2761079') ('4302', '22420227', '1353637978', None, None, None, None, None, '2761079') ('4302', None, None, None, None, None, None, None, '2761079') ('4302', '22420227', '1353637951', None, None, None, None, None, '2761079') ('4302', None, None, None, None, None, None, None, '2761079') ('4302', '22420227', '1353637919', None, None, None, None, None, '2761079') ('4302', None, None, None, None, None, None, None, '2761079') ('4302', '22420227', '1353637875', None, None, None, None, None, '2761079') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '22420227', '1353638273', '0.05435748105168154', None, None, None, None, '2761079'), ('4302', '22420227', '1353638037', '0.05435748105168154', None, None, None, None, '2761079'), ('4302', '22420227', '1353638009', '0.05435748105168154', None, None, None, None, '2761079'), ('4302', '22420227', '1353637978', '0.05435748105168154', None, None, None, None, '2761079'), ('4302', '22420227', '1353637951', '0.05435748105168154', None, None, None, None, '2761079'), ('4302', '22420227', '1353637919', '0.05435748105168154', None, None, None, None, '2761079'), ('4302', '22420227', '1353637875', '0.05435748105168154', None, None, None, None, '2761079')] time used for this insertion : 0.023177146911621094 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06931638717651367 time spend to save output : 0.023659467697143555 total time spend for step 2 : 0.09297585487365723 step3:velours_tree Fri Apr 25 07:06: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 : {22420227: [{'environnement': 22420241, 'Carton_gris': 22420242, 'papier': 22420243, 'Carton_brun': 22420244, 'Teint_Dans_La_Masse': 22420245, 'cartonnette': 22420246, 'kraft': 22420247, 'metal': 22420248, 'mal_croppe': 22420249, 'flou': 22420250, 'plastique': 22420251, 'autre_refus': 22420252}]} input_args_next_step : {22420227: ()} output_args : {22420227: [{'environnement': 22420241, 'Carton_gris': 22420242, 'papier': 22420243, 'Carton_brun': 22420244, 'Teint_Dans_La_Masse': 22420245, 'cartonnette': 22420246, 'kraft': 22420247, 'metal': 22420248, 'mal_croppe': 22420249, 'flou': 22420250, 'plastique': 22420251, 'autre_refus': 22420252}]} args : 22420227 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 : ({'environnement': 22420241, 'Carton_gris': 22420242, 'papier': 22420243, 'Carton_brun': 22420244, 'Teint_Dans_La_Masse': 22420245, 'cartonnette': 22420246, 'kraft': 22420247, 'metal': 22420248, 'mal_croppe': 22420249, 'flou': 22420250, 'plastique': 22420251, 'autre_refus': 22420252},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22420227) 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([22420227]) 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.2848381996154785 time spend to save output : 5.459785461425781e-05 total time spend for step 3 : 0.2848927974700928 step4:send_mail_cod Fri Apr 25 07:06: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 : {1353638273: ('0.05435748105168154',), 1353638037: ('0.05435748105168154',), 1353638009: ('0.05435748105168154',), 1353637978: ('0.05435748105168154',), 1353637951: ('0.05435748105168154',), 1353637919: ('0.05435748105168154',), 1353637875: ('0.05435748105168154',)} input_args_next_step : {1353638273: ()} output_args : {1353638273: ('0.05435748105168154',), 1353638037: ('0.05435748105168154',), 1353638009: ('0.05435748105168154',), 1353637978: ('0.05435748105168154',), 1353637951: ('0.05435748105168154',), 1353637919: ('0.05435748105168154',), 1353637875: ('0.05435748105168154',)} args : 1353638273 depend.output_id : 0 input_args_next_step : {1353638273: ('0.05435748105168154',), 1353638037: ()} output_args : {1353638273: ('0.05435748105168154',), 1353638037: ('0.05435748105168154',), 1353638009: ('0.05435748105168154',), 1353637978: ('0.05435748105168154',), 1353637951: ('0.05435748105168154',), 1353637919: ('0.05435748105168154',), 1353637875: ('0.05435748105168154',)} args : 1353638037 depend.output_id : 0 input_args_next_step : {1353638273: ('0.05435748105168154',), 1353638037: ('0.05435748105168154',), 1353638009: ()} output_args : {1353638273: ('0.05435748105168154',), 1353638037: ('0.05435748105168154',), 1353638009: ('0.05435748105168154',), 1353637978: ('0.05435748105168154',), 1353637951: ('0.05435748105168154',), 1353637919: ('0.05435748105168154',), 1353637875: ('0.05435748105168154',)} args : 1353638009 depend.output_id : 0 input_args_next_step : {1353638273: ('0.05435748105168154',), 1353638037: ('0.05435748105168154',), 1353638009: ('0.05435748105168154',), 1353637978: ()} output_args : {1353638273: ('0.05435748105168154',), 1353638037: ('0.05435748105168154',), 1353638009: ('0.05435748105168154',), 1353637978: ('0.05435748105168154',), 1353637951: ('0.05435748105168154',), 1353637919: ('0.05435748105168154',), 1353637875: ('0.05435748105168154',)} args : 1353637978 depend.output_id : 0 input_args_next_step : {1353638273: ('0.05435748105168154',), 1353638037: ('0.05435748105168154',), 1353638009: ('0.05435748105168154',), 1353637978: ('0.05435748105168154',), 1353637951: ()} output_args : {1353638273: ('0.05435748105168154',), 1353638037: ('0.05435748105168154',), 1353638009: ('0.05435748105168154',), 1353637978: ('0.05435748105168154',), 1353637951: ('0.05435748105168154',), 1353637919: ('0.05435748105168154',), 1353637875: ('0.05435748105168154',)} args : 1353637951 depend.output_id : 0 input_args_next_step : {1353638273: ('0.05435748105168154',), 1353638037: ('0.05435748105168154',), 1353638009: ('0.05435748105168154',), 1353637978: ('0.05435748105168154',), 1353637951: ('0.05435748105168154',), 1353637919: ()} output_args : {1353638273: ('0.05435748105168154',), 1353638037: ('0.05435748105168154',), 1353638009: ('0.05435748105168154',), 1353637978: ('0.05435748105168154',), 1353637951: ('0.05435748105168154',), 1353637919: ('0.05435748105168154',), 1353637875: ('0.05435748105168154',)} args : 1353637919 depend.output_id : 0 input_args_next_step : {1353638273: ('0.05435748105168154',), 1353638037: ('0.05435748105168154',), 1353638009: ('0.05435748105168154',), 1353637978: ('0.05435748105168154',), 1353637951: ('0.05435748105168154',), 1353637919: ('0.05435748105168154',), 1353637875: ()} output_args : {1353638273: ('0.05435748105168154',), 1353638037: ('0.05435748105168154',), 1353638009: ('0.05435748105168154',), 1353637978: ('0.05435748105168154',), 1353637951: ('0.05435748105168154',), 1353637919: ('0.05435748105168154',), 1353637875: ('0.05435748105168154',)} args : 1353637875 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 : {22420227: [{'environnement': 22420241, 'Carton_gris': 22420242, 'papier': 22420243, 'Carton_brun': 22420244, 'Teint_Dans_La_Masse': 22420245, 'cartonnette': 22420246, 'kraft': 22420247, 'metal': 22420248, 'mal_croppe': 22420249, 'flou': 22420250, 'plastique': 22420251, 'autre_refus': 22420252}]} input_args_next_step : {1353638273: ('0.05435748105168154',), 1353638037: ('0.05435748105168154',), 1353638009: ('0.05435748105168154',), 1353637978: ('0.05435748105168154',), 1353637951: ('0.05435748105168154',), 1353637919: ('0.05435748105168154',), 1353637875: ('0.05435748105168154',), 22420227: ()} output_args : {22420227: [{'environnement': 22420241, 'Carton_gris': 22420242, 'papier': 22420243, 'Carton_brun': 22420244, 'Teint_Dans_La_Masse': 22420245, 'cartonnette': 22420246, 'kraft': 22420247, 'metal': 22420248, 'mal_croppe': 22420249, 'flou': 22420250, 'plastique': 22420251, 'autre_refus': 22420252}]} args : 22420227 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 :8, first value : ('0.05435748105168154',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22420227) 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 (1353638273,1353638037,1353638009,1353637978,1353637951,1353637919,1353637875) Found this number of photos: 7 ##### Call download_photos : nb_thread : 5 begin to download photo : 1353637875 begin to download photo : 1353637951 begin to download photo : 1353638009 begin to download photo : 1353638273 download finish for photo 1353638009 begin to download photo : 1353638037 download finish for photo 1353637875 begin to download photo : 1353637919 download finish for photo 1353638273 download finish for photo 1353637951 begin to download photo : 1353637978 download finish for photo 1353638037 download finish for photo 1353637919 download finish for photo 1353637978 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 : 7 ; length of list_pids : 7 ; length of list_args : 7 results_Auto_P22420227_25-04-2025_07_06_58.pdf 22420246 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=22420246 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353637437: '1745557423_1391130_1353636330_fdf996f1205bd8a41b400b4c92d9fbc2_rle_crop_3769248836_0.png', 1353638326: '1745557540_1394188_1353636384_bf61dc6f7e0d3f4611cf652dd4827a8d_rle_crop_3769250710_0.png', 1353638327: '1745557540_1394188_1353636374_f6cd1278c03e7d35859a78c5dc8418c0_rle_crop_3769250796_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/290db318105143a94783fec30bcfee92_72358193.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/dd7a63cd7f1e40730db333948dc587fa_99640136.png change filename to text .imagette224202461745557618/ imagette224202461745557618/1745557423_1391130_1353636330_fdf996f1205bd8a41b400b4c92d9fbc2_rle_crop_3769248836_0.png.png imagette224202461745557618/1745557540_1394188_1353636374_f6cd1278c03e7d35859a78c5dc8418c0_rle_crop_3769250796_0.png.png imagette224202461745557618/1745557540_1394188_1353636384_bf61dc6f7e0d3f4611cf652dd4827a8d_rle_crop_3769250710_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/b71195b5f0b00ce1abcbdba15c12f7fa_14793699.png imagette224202461745557618 22420247 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=22420247 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353637715: '1745557451_1698353_1353636343_3232c7fd9dd639603e1bf66769f1bed3_rle_crop_3769249002_0.png'} change filename to text .imagette224202471745557618/ imagette224202471745557618/1745557451_1698353_1353636343_3232c7fd9dd639603e1bf66769f1bed3_rle_crop_3769249002_0.png.png imagette224202481745557618/ imagette224202491745557618/ imagette224202501745557618/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/904ab77a2916697f80ea572706af86d1_99929964.png imagette224202471745557618 22420248 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=22420248 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224202481745557618 22420249 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=22420249 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224202491745557618 22420250 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=22420250 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224202501745557618 22420251 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=22420251 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353637452: '1745557423_1391130_1353636339_b2d7caa833a1db7f9bb26601cd8a87e4_rle_crop_3769248811_0.png', 1353637672: '1745557451_1698353_1353636343_3232c7fd9dd639603e1bf66769f1bed3_rle_crop_3769249017_0.png', 1353637675: '1745557451_1698353_1353636343_3232c7fd9dd639603e1bf66769f1bed3_rle_crop_3769249005_0.png', 1353637677: '1745557451_1698353_1353636069_6dafe171a15a89ed6f195d4561c6d26c_rle_crop_3769249045_0.png', 1353638331: '1745557574_1699463_1353636880_e6248632249ef97d11eceee0812edf4c_rle_crop_3769250822_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/eebc966fe0d855196a5e934846a94671_99672854.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/3c595f1081ac888fa0dae98b3e47c18a_96624600.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/ef55e3b5a12db0792fad508395e0e9e4_841331.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/40bd70997a002f987e76fc2012a3d0a9_94161701.png change filename to text .imagette224202511745557618/ imagette224202511745557618/1745557451_1698353_1353636343_3232c7fd9dd639603e1bf66769f1bed3_rle_crop_3769249017_0.png.png imagette224202511745557618/1745557423_1391130_1353636339_b2d7caa833a1db7f9bb26601cd8a87e4_rle_crop_3769248811_0.png.png imagette224202511745557618/1745557451_1698353_1353636069_6dafe171a15a89ed6f195d4561c6d26c_rle_crop_3769249045_0.png.png imagette224202511745557618/1745557574_1699463_1353636880_e6248632249ef97d11eceee0812edf4c_rle_crop_3769250822_0.png.png imagette224202511745557618/1745557451_1698353_1353636343_3232c7fd9dd639603e1bf66769f1bed3_rle_crop_3769249005_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/020be94b569e1573978dbdae03ccb7b3_61211059.png imagette224202511745557618 22420252 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=22420252 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353637416: '1745557423_1391130_1353636339_b2d7caa833a1db7f9bb26601cd8a87e4_rle_crop_3769248810_0.png', 1353637418: '1745557423_1391130_1353636330_fdf996f1205bd8a41b400b4c92d9fbc2_rle_crop_3769248831_0.png', 1353637621: '1745557451_1698353_1353636071_7660b273a70f5f46b1ce077fdd54a448_rle_crop_3769249031_0.png', 1353637622: '1745557451_1698353_1353636064_44b2db79f5a951caab634ea2b8f4252d_rle_crop_3769249067_0.png', 1353638321: '1745557540_1394188_1353636384_bf61dc6f7e0d3f4611cf652dd4827a8d_rle_crop_3769250703_0.png', 1353638323: '1745557540_1394188_1353636379_c4c3cb7a531791d2fa454c9d6bec54c3_rle_crop_3769250778_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/64e740de0dec6c13537c9e7d4a3f11a0_10769182.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/e401cf61330f6a36f9b329dad57151d1_18370813.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/fcdee49a7ec9f39de625f9cbca83d80d_11979713.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/257a843edf8ee71abe86bad8a1ceb721_74781563.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/00c1ad106af15541d9bd1b4bf70b7ef9_75224338.png change filename to text .imagette224202521745557619/ imagette224202521745557619/1745557540_1394188_1353636384_bf61dc6f7e0d3f4611cf652dd4827a8d_rle_crop_3769250703_0.png.png imagette224202521745557619/1745557423_1391130_1353636339_b2d7caa833a1db7f9bb26601cd8a87e4_rle_crop_3769248810_0.png.png imagette224202521745557619/1745557540_1394188_1353636379_c4c3cb7a531791d2fa454c9d6bec54c3_rle_crop_3769250778_0.png.png imagette224202521745557619/1745557451_1698353_1353636064_44b2db79f5a951caab634ea2b8f4252d_rle_crop_3769249067_0.png.png imagette224202521745557619/1745557451_1698353_1353636071_7660b273a70f5f46b1ce077fdd54a448_rle_crop_3769249031_0.png.png imagette224202521745557619/1745557423_1391130_1353636330_fdf996f1205bd8a41b400b4c92d9fbc2_rle_crop_3769248831_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/0667c42853c2eeeaac867b552da2a3e5_55354944.png imagette224202521745557619 22420242 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=22420242 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353637428: '1745557423_1391130_1353636335_ac323ff71dc0eb39e0f120e9b2f0663f_rle_crop_3769248822_0.png', 1353637430: '1745557423_1391130_1353636330_fdf996f1205bd8a41b400b4c92d9fbc2_rle_crop_3769248835_0.png', 1353637628: '1745557451_1698353_1353636343_3232c7fd9dd639603e1bf66769f1bed3_rle_crop_3769249012_0.png', 1353637629: '1745557451_1698353_1353636069_6dafe171a15a89ed6f195d4561c6d26c_rle_crop_3769249048_0.png', 1353638329: '1745557574_1699463_1353637094_bc9ebdbca9ebdb4fc1981a215065a3fe_rle_crop_3769250807_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/0aaa15320322b29e964979addee7cb4c_83676560.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/f8c3a8fe1a6436bfee4453053fd49a37_38730506.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/984daef3175e3f6c56b707eb841894aa_39769734.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/f77a46b0be6b9341596ae748a313e759_19649547.png change filename to text .imagette224202421745557619/ imagette224202421745557619/1745557423_1391130_1353636330_fdf996f1205bd8a41b400b4c92d9fbc2_rle_crop_3769248835_0.png.png imagette224202421745557619/1745557451_1698353_1353636069_6dafe171a15a89ed6f195d4561c6d26c_rle_crop_3769249048_0.png.png imagette224202421745557619/1745557574_1699463_1353637094_bc9ebdbca9ebdb4fc1981a215065a3fe_rle_crop_3769250807_0.png.png imagette224202421745557619/1745557451_1698353_1353636343_3232c7fd9dd639603e1bf66769f1bed3_rle_crop_3769249012_0.png.png imagette224202421745557619/1745557423_1391130_1353636335_ac323ff71dc0eb39e0f120e9b2f0663f_rle_crop_3769248822_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/75761958f1cee2702e8dbdaca0885faf_63573372.png imagette224202421745557619 22420244 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=22420244 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353637444: '1745557423_1391130_1353636330_fdf996f1205bd8a41b400b4c92d9fbc2_rle_crop_3769248834_0.png', 1353637639: '1745557451_1698353_1353636343_3232c7fd9dd639603e1bf66769f1bed3_rle_crop_3769249007_0.png', 1353637640: '1745557451_1698353_1353636069_6dafe171a15a89ed6f195d4561c6d26c_rle_crop_3769249052_0.png', 1353637642: '1745557451_1698353_1353636069_6dafe171a15a89ed6f195d4561c6d26c_rle_crop_3769249042_0.png', 1353637643: '1745557451_1698353_1353636064_44b2db79f5a951caab634ea2b8f4252d_rle_crop_3769249071_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/f8ecb93d97541d8679b0251a09437728_49495148.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/c7bc9916d4913f3e41ab7211e175dfae_85656025.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/367806d49c9d9410186bcfb79e8976f9_90037575.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/af50c095ac555692465bc1b80117db29_73425800.png change filename to text .imagette224202441745557619/ imagette224202441745557619/1745557451_1698353_1353636069_6dafe171a15a89ed6f195d4561c6d26c_rle_crop_3769249052_0.png.png imagette224202441745557619/1745557451_1698353_1353636064_44b2db79f5a951caab634ea2b8f4252d_rle_crop_3769249071_0.png.png imagette224202441745557619/1745557451_1698353_1353636069_6dafe171a15a89ed6f195d4561c6d26c_rle_crop_3769249042_0.png.png imagette224202441745557619/1745557451_1698353_1353636343_3232c7fd9dd639603e1bf66769f1bed3_rle_crop_3769249007_0.png.png imagette224202441745557619/1745557423_1391130_1353636330_fdf996f1205bd8a41b400b4c92d9fbc2_rle_crop_3769248834_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/ddba86f23d1c6c0c1c6624c556c6346c_51967177.png imagette224202441745557619 22420245 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=22420245 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353637404: '1745557423_1391130_1353636339_b2d7caa833a1db7f9bb26601cd8a87e4_rle_crop_3769248813_0.png', 1353637406: '1745557423_1391130_1353636339_b2d7caa833a1db7f9bb26601cd8a87e4_rle_crop_3769248807_0.png', 1353637408: '1745557423_1391130_1353636335_ac323ff71dc0eb39e0f120e9b2f0663f_rle_crop_3769248823_0.png', 1353637608: '1745557451_1698353_1353636343_3232c7fd9dd639603e1bf66769f1bed3_rle_crop_3769249006_0.png', 1353637609: '1745557451_1698353_1353636069_6dafe171a15a89ed6f195d4561c6d26c_rle_crop_3769249049_0.png', 1353637610: '1745557451_1698353_1353636069_6dafe171a15a89ed6f195d4561c6d26c_rle_crop_3769249043_0.png', 1353638319: '1745557540_1394188_1353636391_15f2026b28ea96381a192db6215cd8fd_rle_crop_3769250684_0.png', 1353638320: '1745557540_1394188_1353636388_46ab1ddf41d75d855a7c39c72a51585e_rle_crop_3769250699_0.png', 1353638328: '1745557574_1699463_1353636880_e6248632249ef97d11eceee0812edf4c_rle_crop_3769250827_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/9b81f24ab63e21155293815184c92622_92285640.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/d2521d992d64778f5b88d1ebd2d9c4ec_6144634.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/054cf290748fe24a33ac14213690bbe1_59308385.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/467cf8f529fb4ce71caa16ad0c79677c_57983765.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/8cdcc45ea27c5ca43d2c1980e36ffbaa_43939658.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/0b00a78d34223f1e5435d65f1d82f888_32166786.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/409816bab2a0caf6f02b90f89d7848f5_15748626.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/016f5a343cc94bac71a544d572cc1fc3_62826544.png change filename to text .imagette224202451745557620/ imagette224202451745557620/1745557423_1391130_1353636339_b2d7caa833a1db7f9bb26601cd8a87e4_rle_crop_3769248813_0.png.png imagette224202451745557620/1745557574_1699463_1353636880_e6248632249ef97d11eceee0812edf4c_rle_crop_3769250827_0.png.png imagette224202451745557620/1745557540_1394188_1353636391_15f2026b28ea96381a192db6215cd8fd_rle_crop_3769250684_0.png.png imagette224202451745557620/1745557451_1698353_1353636069_6dafe171a15a89ed6f195d4561c6d26c_rle_crop_3769249049_0.png.png imagette224202451745557620/1745557423_1391130_1353636335_ac323ff71dc0eb39e0f120e9b2f0663f_rle_crop_3769248823_0.png.png imagette224202451745557620/1745557451_1698353_1353636343_3232c7fd9dd639603e1bf66769f1bed3_rle_crop_3769249006_0.png.png imagette224202451745557620/1745557423_1391130_1353636339_b2d7caa833a1db7f9bb26601cd8a87e4_rle_crop_3769248807_0.png.png imagette224202451745557620/1745557540_1394188_1353636388_46ab1ddf41d75d855a7c39c72a51585e_rle_crop_3769250699_0.png.png imagette224202451745557620/1745557451_1698353_1353636069_6dafe171a15a89ed6f195d4561c6d26c_rle_crop_3769249043_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/18a8d2429e92c30d6dd728f36e316ebe_78379440.png imagette224202451745557620 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22420227 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22420253,22420254,22420255,22420256,22420257,22420258,22420259,22420260,22420261,22420262,22420263,22420264?tags=environnement,Carton_gris,papier,Carton_brun,Teint_Dans_La_Masse,cartonnette,kraft,metal,mal_croppe,flou,plastique,autre_refus your option no_mail is active, we will not send the real mail to your client args[1353638273] : ('0.05435748105168154',) no score found for photo 1353638273 We are sending mail with results at report@fotonower.com args[1353638037] : ('0.05435748105168154',) no score found for photo 1353638037 We are sending mail with results at report@fotonower.com args[1353638009] : ('0.05435748105168154',) no score found for photo 1353638009 We are sending mail with results at report@fotonower.com args[1353637978] : ('0.05435748105168154',) no score found for photo 1353637978 We are sending mail with results at report@fotonower.com args[1353637951] : ('0.05435748105168154',) no score found for photo 1353637951 We are sending mail with results at report@fotonower.com args[1353637919] : ('0.05435748105168154',) no score found for photo 1353637919 We are sending mail with results at report@fotonower.com args[1353637875] : ('0.05435748105168154',) no score found for photo 1353637875 We are sending mail with results at report@fotonower.com refus_total : 0.05435748105168154 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=22420227 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_P22420227_25-04-2025_07_06_58.pdf results_Auto_P22420227_25-04-2025_07_06_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22420227_25-04-2025_07_06_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','22420227','results_Auto_P22420227_25-04-2025_07_06_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22420227_25-04-2025_07_06_58.pdf','pdf','','0.17','0.05435748105168154') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22420227]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1353638273, 1353638037, 1353638009, 1353637978, 1353637951, 1353637919, 1353637875] map_info['map_portfolio_photo'] : {22420227: [1353638273, 1353638037, 1353638009, 1353637978, 1353637951, 1353637919, 1353637875, 1353637374, 1353637292, 1353637094, 1353636880, 1353636394, 1353636391, 1353636388, 1353636384, 1353636379, 1353636374, 1353636343, 1353636339, 1353636335, 1353636330, 1353636073, 1353636071, 1353636069, 1353636064]} final : False mtd_id 4302 list_pids : [1353638273, 1353638037, 1353638009, 1353637978, 1353637951, 1353637919, 1353637875] 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, '2761079') ('4302', '22420227', '1353638273', None, None, None, None, None, '2761079') ('4302', None, None, None, None, None, None, None, '2761079') ('4302', '22420227', '1353638037', None, None, None, None, None, '2761079') ('4302', None, None, None, None, None, None, None, '2761079') ('4302', '22420227', '1353638009', None, None, None, None, None, '2761079') ('4302', None, None, None, None, None, None, None, '2761079') ('4302', '22420227', '1353637978', None, None, None, None, None, '2761079') ('4302', None, None, None, None, None, None, None, '2761079') ('4302', '22420227', '1353637951', None, None, None, None, None, '2761079') ('4302', None, None, None, None, None, None, None, '2761079') ('4302', '22420227', '1353637919', None, None, None, None, None, '2761079') ('4302', None, None, None, None, None, None, None, '2761079') ('4302', '22420227', '1353637875', None, None, None, None, None, '2761079') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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', '22420227', '1353638273', None, None, None, None, None, '2761079'), ('4302', '22420227', '1353638037', None, None, None, None, None, '2761079'), ('4302', '22420227', '1353638009', None, None, None, None, None, '2761079'), ('4302', '22420227', '1353637978', None, None, None, None, None, '2761079'), ('4302', '22420227', '1353637951', None, None, None, None, None, '2761079'), ('4302', '22420227', '1353637919', None, None, None, None, None, '2761079'), ('4302', '22420227', '1353637875', None, None, None, None, None, '2761079')] time used for this insertion : 0.013849735260009766 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.519282817840576 time spend to save output : 0.014061927795410156 total time spend for step 4 : 3.5333447456359863 step5:split_time_score Fri Apr 25 07:07:01 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 : ['22420227'] 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 : [('22420227',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22420227) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1353638273: {'path': 'temp/1745557618_138368_1353638273_ac2a74b4755d9bd4b52dbd692dbf1f24.jpg', 'extension': 'jpg'}, 1353638009: {'path': 'temp/1745557618_138368_1353638009_4decbdd9698d5c785d6c45bb9baec3f8.jpg', 'extension': 'jpg'}, 1353638037: {'path': 'temp/1745557618_138368_1353638037_9543eac99eba5831bed9b0d1952ead4c.jpg', 'extension': 'jpg'}, 1353637875: {'path': 'temp/1745557618_138368_1353637875_fa8b0c4fbfa4d65ffff1700dd5db80d1.jpg', 'extension': 'jpg'}, 1353637919: {'path': 'temp/1745557618_138368_1353637919_bea80fd9c0b98d5d5f1312b2d882735c.jpg', 'extension': 'jpg'}, 1353637951: {'path': 'temp/1745557618_138368_1353637951_682e1c0dc3acfb9ed63b196c40d7e13b.jpg', 'extension': 'jpg'}, 1353637978: {'path': 'temp/1745557618_138368_1353637978_d49030dc0521f897ec8975624005132e.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 = 22420227; (('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 = 22420227 group by h (('07', 25),) 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=22420227 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 (22420227) 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 (22420227) 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 22420227 Nombre de photos uploadées : 25 / 23040 (0%) 25042025 22420227 Nombre de photos taguées (types de déchets): 0 / 25 (0%) 25042025 22420227 Nombre de photos taguées (volume) : 0 / 25 (0%) [{'photo_id': 1353636073, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/ec0d6bb1502e5479d751553fbe79221a.jpg', 'username': None, 'uploaded_at': 1745557268, 'text': 'image_25042025_07_00_14_010136m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353636071, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/7660b273a70f5f46b1ce077fdd54a448.jpg', 'username': None, 'uploaded_at': 1745557268, 'text': 'image_25042025_07_00_24_010135m0.jpg 2e-05 for time 1, id_amount 1 this amount prod time diff : 1e-05'}, {'photo_id': 1353636069, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/6dafe171a15a89ed6f195d4561c6d26c.jpg', 'username': None, 'uploaded_at': 1745557268, 'text': 'image_25042025_07_00_34_009128m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353636064, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/25/44b2db79f5a951caab634ea2b8f4252d.jpg', 'username': None, 'uploaded_at': 1745557268, 'text': 'image_25042025_07_00_44_010136m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 4.291534423828125e-06 ????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0016553401947021484 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22420227, '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.023285388946533203 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': 1755942, 'mtr_portfolio_id': 22419075, 'dashboard_result_id': 10094402, '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_P22419075_25-04-2025_06_35_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22419103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22419104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22419105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22419106, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22419107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22419108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22419109, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22419110, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22419111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22419112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22419113, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22419114, 'pht': 3726}}"}, {'dashboat_entry_day': 1747621, 'dashboard_run_id': 1755942, 'mtr_portfolio_id': 22419407, 'dashboard_result_id': 10094403, '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_P22419407_25-04-2025_06_52_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22419432, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22419433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22419434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22419435, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22419436, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22419437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22419438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22419439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22419440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22419441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22419442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22419443, 'pht': 3726}}"}, {'dashboat_entry_day': 1747621, 'dashboard_run_id': 1755942, 'mtr_portfolio_id': 22419774, 'dashboard_result_id': 10094404, '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_P22419774_25-04-2025_07_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22419807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22419808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22419809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22419810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22419811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22419812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22419813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22419814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22419815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22419816, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22419817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22419818, 'pht': 3726}}"}, {'dashboat_entry_day': 1747621, 'dashboard_run_id': 1755942, 'mtr_portfolio_id': 22420227, 'dashboard_result_id': 10094405, '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_P22420227_25-04-2025_07_05_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22420241, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22420242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22420243, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22420244, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22420245, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22420246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22420247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22420248, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22420249, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22420250, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22420251, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22420252, '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 = 22419075 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': 2760950, 'mtr_portfolio_id': 22419075, 'created_at': datetime.datetime(2025, 4, 25, 6, 35, 1), 'result': '0.0335368270162576', 'result_long': None, 'result_double': None}] Qualite : 0.0335368270162576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22419075 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22419075_25-04-2025_06_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22419075 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_P22419075_25-04-2025_06_35_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22419103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22419104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22419105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22419106, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22419107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22419108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22419109, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22419110, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22419111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22419112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22419113, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22419114, 'pht': 3726}}" where mtr_portfolio_id = 22419075 and dashboard_run_id = 1755942 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`=22419075 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10094402, 0.0335368270162576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22419075_25-04-2025_06_35_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22419103, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22419104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22419105, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22419106, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22419107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22419108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22419109, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22419110, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22419111, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22419112, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22419113, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22419114, '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 = 22419407 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': 2760976, 'mtr_portfolio_id': 22419407, 'created_at': datetime.datetime(2025, 4, 25, 6, 52, 59), 'result': '0.057318407692716615', 'result_long': None, 'result_double': None}] Qualite : 0.057318407692716615 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22419407 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22419407_25-04-2025_06_52_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22419407 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_P22419407_25-04-2025_06_52_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22419432, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22419433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22419434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22419435, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22419436, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22419437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22419438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22419439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22419440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22419441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22419442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22419443, 'pht': 3726}}" where mtr_portfolio_id = 22419407 and dashboard_run_id = 1755942 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`=22419407 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10094403, 0.057318407692716615, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22419407_25-04-2025_06_52_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22419432, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22419433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22419434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22419435, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22419436, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22419437, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22419438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22419439, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22419440, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22419441, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22419442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22419443, '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 = 22419774 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': 2761022, 'mtr_portfolio_id': 22419774, 'created_at': datetime.datetime(2025, 4, 25, 7, 2, 57), 'result': '0.06258476523546622', 'result_long': None, 'result_double': None}] Qualite : 0.06258476523546622 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22419774 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22419774_25-04-2025_07_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22419774 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_P22419774_25-04-2025_07_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22419807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22419808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22419809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22419810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22419811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22419812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22419813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22419814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22419815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22419816, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22419817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22419818, 'pht': 3726}}" where mtr_portfolio_id = 22419774 and dashboard_run_id = 1755942 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`=22419774 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10094404, 0.06258476523546622, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22419774_25-04-2025_07_02_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22419807, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22419808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22419809, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22419810, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22419811, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22419812, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22419813, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22419814, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22419815, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22419816, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22419817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22419818, '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 = 22420227 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': 2761079, 'mtr_portfolio_id': 22420227, 'created_at': datetime.datetime(2025, 4, 25, 7, 6, 58), 'result': '0.05435748105168154', 'result_long': None, 'result_double': None}] Qualite : 0.05435748105168154 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22420227 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22420227_25-04-2025_07_06_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22420227 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_P22420227_25-04-2025_07_06_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22420241, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22420242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22420243, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22420244, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22420245, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22420246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22420247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22420248, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22420249, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22420250, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22420251, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22420252, 'pht': 3726}}" where mtr_portfolio_id = 22420227 and dashboard_run_id = 1755942 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`=22420227 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10094405, 0.05435748105168154, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22420227_25-04-2025_07_06_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22420241, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22420242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22420243, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22420244, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22420245, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22420246, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22420247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22420248, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22420249, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22420250, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22420251, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22420252, '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 (22419075,22419407,22419774,22420227) result : ((1353633577,), (1353633580,), (1353633582,), (1353633585,), (1353633587,), (1353633620,), (1353633622,), (1353633624,), (1353633626,), (1353633628,), (1353633675,), (1353633682,), (1353633684,), (1353633686,), (1353633688,), (1353633692,), (1353633718,), (1353633720,), (1353633723,), (1353633724,), (1353633767,), (1353633771,), (1353633774,), (1353633778,), (1353633780,), (1353633786,), (1353633805,), (1353633807,), (1353633809,), (1353633811,), (1353633834,), (1353633836,), (1353633838,), (1353633840,), (1353633842,), (1353633880,), (1353633882,), (1353633884,), (1353633886,), (1353633889,), (1353633913,), (1353633916,), (1353633923,), (1353633924,), (1353633926,), (1353633928,), (1353633954,), (1353633955,), (1353633956,), (1353633957,), (1353634002,), (1353634004,), (1353634006,), (1353634008,), (1353634011,), (1353634013,), (1353634041,), (1353634042,), (1353634043,), (1353634045,), (1353634066,), (1353634068,), (1353634069,), (1353634074,), (1353634082,), (1353634084,), (1353634106,), (1353634108,), (1353634110,), (1353634113,), (1353634116,), (1353634136,), (1353634139,), (1353634142,), (1353634144,), (1353634190,), (1353634180,), (1353634184,), (1353634185,), (1353634186,), (1353634188,), (1353634220,), (1353634222,), (1353634223,), (1353634224,), (1353634250,), (1353634251,), (1353634252,), (1353634253,), (1353634255,), (1353634256,), (1353634291,), (1353634294,), (1353634295,), (1353634296,), (1353634322,), (1353634325,), (1353634327,), (1353634329,), (1353634332,), (1353634335,), (1353634359,), (1353634361,), (1353634363,), (1353634365,), (1353634393,), (1353634394,), (1353634395,), (1353634396,), (1353634397,), (1353634399,), (1353634424,), (1353634425,), (1353634426,), (1353634432,), (1353634464,), (1353634466,), (1353634467,), (1353634468,), (1353634470,), (1353634471,), (1353634503,), (1353634506,), (1353634513,), (1353634520,), (1353634521,), (1353634543,), (1353634547,), (1353634549,), (1353634550,), (1353634552,), (1353634553,), (1353634597,), (1353634599,), (1353634609,), (1353634614,), (1353634636,), (1353634638,), (1353634640,), (1353634642,), (1353634667,), (1353634668,), (1353634669,), (1353634670,), (1353634672,), (1353634673,), (1353634703,), (1353634707,), (1353634709,), (1353634711,), (1353634715,), (1353634756,), (1353634744,), (1353634748,), (1353634749,), (1353634751,), (1353634754,), (1353634780,), (1353634782,), (1353634784,), (1353634786,), (1353634815,), (1353634817,), (1353634819,), (1353634821,), (1353634824,), (1353634826,), (1353634844,), (1353634845,), (1353634846,), (1353634847,), (1353634849,), (1353634872,), (1353634880,), (1353634913,), (1353634916,), (1353634955,), (1353635090,), (1353635095,), (1353635160,), (1353635163,), (1353635165,), (1353635167,), (1353635171,), (1353635175,), (1353635207,), (1353635209,), (1353635213,), (1353635215,), (1353635218,), (1353635285,), (1353635316,), (1353635346,), (1353635374,), (1353635401,), (1353635972,), (1353635979,), (1353635990,), (1353636000,), (1353636006,), (1353636015,), (1353636018,), (1353636020,), (1353636021,), (1353636023,), (1353636027,), (1353636028,), (1353636033,), (1353636077,), (1353636064,), (1353636069,), (1353636071,), (1353636073,), (1353636330,), (1353636335,), (1353636339,), (1353636343,), (1353636374,), (1353636379,), (1353636384,), (1353636388,), (1353636391,), (1353636394,), (1353636880,), (1353637094,), (1353637292,), (1353637374,), (1353637875,), (1353637919,), (1353637951,), (1353637978,), (1353638009,), (1353638037,), (1353638273,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25042025': {'nb_upload': 25, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22420227]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1353638273, 1353638037, 1353638009, 1353637978, 1353637951, 1353637919, 1353637875] map_info['map_portfolio_photo'] : {22420227: [1353638273, 1353638037, 1353638009, 1353637978, 1353637951, 1353637919, 1353637875, 1353637374, 1353637292, 1353637094, 1353636880, 1353636394, 1353636391, 1353636388, 1353636384, 1353636379, 1353636374, 1353636343, 1353636339, 1353636335, 1353636330, 1353636073, 1353636071, 1353636069, 1353636064]} final : True mtd_id 4302 list_pids : [1353638273, 1353638037, 1353638009, 1353637978, 1353637951, 1353637919, 1353637875] Looping around the photos to save general results len do output : 1 /22420227Didn'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, '2761079') ('4302', '22420227', '1353638273', None, None, None, None, None, '2761079') ('4302', None, None, None, None, None, None, None, '2761079') ('4302', '22420227', '1353638037', None, None, None, None, None, '2761079') ('4302', None, None, None, None, None, None, None, '2761079') ('4302', '22420227', '1353638009', None, None, None, None, None, '2761079') ('4302', None, None, None, None, None, None, None, '2761079') ('4302', '22420227', '1353637978', None, None, None, None, None, '2761079') ('4302', None, None, None, None, None, None, None, '2761079') ('4302', '22420227', '1353637951', None, None, None, None, None, '2761079') ('4302', None, None, None, None, None, None, None, '2761079') ('4302', '22420227', '1353637919', None, None, None, None, None, '2761079') ('4302', None, None, None, None, None, None, None, '2761079') ('4302', '22420227', '1353637875', None, None, None, None, None, '2761079') 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', None, '22420227', 'None', None, None, None, None, '2761079'), ('4302', '22420227', '1353638273', None, None, None, None, None, '2761079'), ('4302', '22420227', '1353638037', None, None, None, None, None, '2761079'), ('4302', '22420227', '1353638009', None, None, None, None, None, '2761079'), ('4302', '22420227', '1353637978', None, None, None, None, None, '2761079'), ('4302', '22420227', '1353637951', None, None, None, None, None, '2761079'), ('4302', '22420227', '1353637919', None, None, None, None, None, '2761079'), ('4302', '22420227', '1353637875', None, None, None, None, None, '2761079')] time used for this insertion : 0.013595819473266602 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.33527588844299316 time spend to save output : 0.013809442520141602 total time spend for step 5 : 0.34908533096313477 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 (2761079) 1.96user 2.47system 0:07.50elapsed 59%CPU (0avgtext+0avgdata 159376maxresident)k 80inputs+9168outputs (1major+63961minor)pagefaults 0swaps