insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21828144 , 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=21828132 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='environnement' 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 (21828144) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21828132) result : ((1348178248,), (1348178264,), (1348178270,), (1348178302,), (1348178303,), (1348178309,), (1348178314,), (1348178319,), (1348178324,), (1348178373,), (1348178378,), (1348178383,), (1348178406,), (1348178410,), (1348178414,), (1348178421,), (1348178426,), (1348178430,), (1348178461,), (1348178463,), (1348178469,), (1348178474,), (1348178479,), (1348178505,), (1348178508,), (1348178513,), (1348178516,), (1348178522,), (1348178564,), (1348178566,), (1348178570,), (1348178573,), (1348178577,), (1348178600,), (1348178602,), (1348178607,), (1348178649,), (1348178655,), (1348178664,), (1348178672,), (1348178676,), (1348178681,)) 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 (1348178600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21828145 , 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=21828132 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='kraft' 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 (21828145) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21828132) result : ((1348178248,), (1348178264,), (1348178270,), (1348178302,), (1348178303,), (1348178309,), (1348178314,), (1348178319,), (1348178324,), (1348178373,), (1348178378,), (1348178383,), (1348178406,), (1348178410,), (1348178414,), (1348178421,), (1348178426,), (1348178430,), (1348178461,), (1348178463,), (1348178469,), (1348178474,), (1348178479,), (1348178505,), (1348178508,), (1348178513,), (1348178516,), (1348178522,), (1348178564,), (1348178566,), (1348178570,), (1348178573,), (1348178577,), (1348178600,), (1348178602,), (1348178607,), (1348178649,), (1348178655,), (1348178664,), (1348178672,), (1348178676,), (1348178681,)) 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 (1348178600) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21828146 , 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=21828132 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='Teint_Dans_La_Masse' 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 (21828146) result : ((1348178439,), (1348178454,), (1348178536,), (1348178537,), (1348178538,), (1348178539,), (1348178540,), (1348178541,), (1348178542,), (1348178543,), (1348178544,), (1348178631,), (1348178632,), (1348178633,), (1348178659,), (1348178660,), (1348178723,), (1348178724,), (1348178725,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21828132) result : ((1348178248,), (1348178264,), (1348178270,), (1348178302,), (1348178303,), (1348178309,), (1348178314,), (1348178319,), (1348178324,), (1348178373,), (1348178378,), (1348178383,), (1348178406,), (1348178410,), (1348178414,), (1348178421,), (1348178426,), (1348178430,), (1348178461,), (1348178463,), (1348178469,), (1348178474,), (1348178479,), (1348178505,), (1348178508,), (1348178513,), (1348178516,), (1348178522,), (1348178564,), (1348178566,), (1348178570,), (1348178573,), (1348178577,), (1348178600,), (1348178602,), (1348178607,), (1348178649,), (1348178655,), (1348178664,), (1348178672,), (1348178676,), (1348178681,)) 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 (1348178600) and cspi.crop_hashtag_id = chi.id; 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`=21828132 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_brun','Teint_Dans_La_Masse','metal','mal_croppe','plastique','cartonnette','papier','environnement','Carton_gris','autre_refus','kraft')) 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`=21828132 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_brun','Teint_Dans_La_Masse','metal','mal_croppe','plastique','cartonnette','papier','environnement','Carton_gris','autre_refus','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 21828132, 'sub_port_id': 21828147, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345019, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 59)}, 'cartonnette': {'main_port_id': 21828132, 'sub_port_id': 21828148, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345020, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 59)}, 'Carton_gris': {'main_port_id': 21828132, 'sub_port_id': 21828149, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345021, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 59)}, 'flou': {'main_port_id': 21828132, 'sub_port_id': 21828150, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345022, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 59)}, 'metal': {'main_port_id': 21828132, 'sub_port_id': 21828151, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345023, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 59)}, 'autre_refus': {'main_port_id': 21828132, 'sub_port_id': 21828152, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345024, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 59)}, 'plastique': {'main_port_id': 21828132, 'sub_port_id': 21828153, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345025, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 59)}, 'Carton_brun': {'main_port_id': 21828132, 'sub_port_id': 21828154, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345026, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 59)}, 'mal_croppe': {'main_port_id': 21828132, 'sub_port_id': 21828155, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345027, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 59)}, 'environnement': {'main_port_id': 21828132, 'sub_port_id': 21828156, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345028, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 59)}, 'kraft': {'main_port_id': 21828132, 'sub_port_id': 21828157, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345029, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 51, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21828132, 'sub_port_id': 21828158, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14345030, 'last_updated_at': datetime.datetime(2025, 3, 28, 6, 54, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 6, 54, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 6, 51, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21828147,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21828135 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21828148,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21828136 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21828149,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21828137 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21828150,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21828138 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21828151,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21828139 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21828152,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21828140 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21828153,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21828141 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21828154,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21828142 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21828155,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21828143 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21828156,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21828144 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21828157,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21828145 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21828158,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21828146 lien utilise dans velours : https://www.fotonower.com/velours/21828147,21828148,21828149,21828150,21828151,21828152,21828153,21828154,21828155,21828156,21828157,21828158?tags=papier,cartonnette,Carton_gris,flou,metal,autre_refus,plastique,Carton_brun,mal_croppe,environnement,kraft,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21828132]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1348178681, 1348178676, 1348178672, 1348178664, 1348178655, 1348178649, 1348178607, 1348178602, 1348178600] map_info['map_portfolio_photo'] : {21828132: [1348178681, 1348178676, 1348178672, 1348178664, 1348178655, 1348178649, 1348178607, 1348178602, 1348178600, 1348178577, 1348178573, 1348178570, 1348178566, 1348178564, 1348178522, 1348178516, 1348178513, 1348178508, 1348178505, 1348178479, 1348178474, 1348178469, 1348178463, 1348178461, 1348178430, 1348178426, 1348178421, 1348178414, 1348178410, 1348178406, 1348178383, 1348178378, 1348178373, 1348178324, 1348178319, 1348178314, 1348178309, 1348178303, 1348178302, 1348178270, 1348178264, 1348178248]} final : False mtd_id 4302 list_pids : [1348178681, 1348178676, 1348178672, 1348178664, 1348178655, 1348178649, 1348178607, 1348178602, 1348178600] Looping around the photos to save general results len do output : 1 /21828132. 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, '2700430') ('4302', '21828132', '1348178681', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178676', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178672', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178664', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178655', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178649', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178607', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178602', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178600', None, None, None, None, None, '2700430') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21828132', "{'papier': 21828135, 'cartonnette': 21828136, 'Carton_gris': 21828137, 'flou': 21828138, 'metal': 21828139, 'autre_refus': 21828140, 'plastique': 21828141, 'Carton_brun': 21828142, 'mal_croppe': 21828143, 'environnement': 21828144, 'kraft': 21828145, 'Teint_Dans_La_Masse': 21828146}", None, None, None, None, '2700430'), ('4302', '21828132', '1348178681', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178676', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178672', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178664', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178655', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178649', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178607', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178602', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178600', None, None, None, None, None, '2700430')] time used for this insertion : 0.04373431205749512 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5194599628448486 time spend to save output : 0.04404091835021973 total time spend for step 1 : 0.5635008811950684 step2:final Fri Mar 28 06:56:56 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 (21828132) 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 21828132 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1348178270,1348178264,1348178248,1348178324,1348178319,1348178314,1348178309,1348178303,1348178302,1348178383,1348178378,1348178373,1348178430,1348178426,1348178421,1348178414,1348178410,1348178406,1348178479,1348178474,1348178469,1348178463,1348178522,1348178461,1348178516,1348178513,1348178508,1348178505,1348178577,1348178573,1348178570,1348178566,1348178564,1348178607,1348178602,1348178600,1348178681,1348178676,1348178672,1348178664,1348178655,1348178649); 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([21828132]) Inside saveOutput : final : False verbose : True original output for save of step final : {1348178681: ('0.056242949404955944',), 1348178676: ('0.056242949404955944',), 1348178672: ('0.056242949404955944',), 1348178664: ('0.056242949404955944',), 1348178655: ('0.056242949404955944',), 1348178649: ('0.056242949404955944',), 1348178607: ('0.056242949404955944',), 1348178602: ('0.056242949404955944',), 1348178600: ('0.056242949404955944',)} new output for save of step final : {1348178681: ('0.056242949404955944',), 1348178676: ('0.056242949404955944',), 1348178672: ('0.056242949404955944',), 1348178664: ('0.056242949404955944',), 1348178655: ('0.056242949404955944',), 1348178649: ('0.056242949404955944',), 1348178607: ('0.056242949404955944',), 1348178602: ('0.056242949404955944',), 1348178600: ('0.056242949404955944',)} [1348178681, 1348178676, 1348178672, 1348178664, 1348178655, 1348178649, 1348178607, 1348178602, 1348178600] map_info['map_portfolio_photo'] : {21828132: [1348178681, 1348178676, 1348178672, 1348178664, 1348178655, 1348178649, 1348178607, 1348178602, 1348178600, 1348178577, 1348178573, 1348178570, 1348178566, 1348178564, 1348178522, 1348178516, 1348178513, 1348178508, 1348178505, 1348178479, 1348178474, 1348178469, 1348178463, 1348178461, 1348178430, 1348178426, 1348178421, 1348178414, 1348178410, 1348178406, 1348178383, 1348178378, 1348178373, 1348178324, 1348178319, 1348178314, 1348178309, 1348178303, 1348178302, 1348178270, 1348178264, 1348178248]} final : False mtd_id 4302 list_pids : [1348178681, 1348178676, 1348178672, 1348178664, 1348178655, 1348178649, 1348178607, 1348178602, 1348178600] Looping around the photos to save general results len do output : 9 /1348178681.Didn't retrieve data . /1348178676.Didn't retrieve data . /1348178672.Didn't retrieve data . /1348178664.Didn't retrieve data . /1348178655.Didn't retrieve data . /1348178649.Didn't retrieve data . /1348178607.Didn't retrieve data . /1348178602.Didn't retrieve data . /1348178600.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, '2700430') ('4302', '21828132', '1348178681', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178676', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178672', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178664', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178655', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178649', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178607', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178602', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178600', None, None, None, None, None, '2700430') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21828132', '1348178681', '0.056242949404955944', None, None, None, None, '2700430'), ('4302', '21828132', '1348178676', '0.056242949404955944', None, None, None, None, '2700430'), ('4302', '21828132', '1348178672', '0.056242949404955944', None, None, None, None, '2700430'), ('4302', '21828132', '1348178664', '0.056242949404955944', None, None, None, None, '2700430'), ('4302', '21828132', '1348178655', '0.056242949404955944', None, None, None, None, '2700430'), ('4302', '21828132', '1348178649', '0.056242949404955944', None, None, None, None, '2700430'), ('4302', '21828132', '1348178607', '0.056242949404955944', None, None, None, None, '2700430'), ('4302', '21828132', '1348178602', '0.056242949404955944', None, None, None, None, '2700430'), ('4302', '21828132', '1348178600', '0.056242949404955944', None, None, None, None, '2700430')] time used for this insertion : 0.016490459442138672 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07203197479248047 time spend to save output : 0.01695847511291504 total time spend for step 2 : 0.08899044990539551 step3:velours_tree Fri Mar 28 06:56:56 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 : {21828132: [{'papier': 21828135, 'cartonnette': 21828136, 'Carton_gris': 21828137, 'flou': 21828138, 'metal': 21828139, 'autre_refus': 21828140, 'plastique': 21828141, 'Carton_brun': 21828142, 'mal_croppe': 21828143, 'environnement': 21828144, 'kraft': 21828145, 'Teint_Dans_La_Masse': 21828146}]} input_args_next_step : {21828132: ()} output_args : {21828132: [{'papier': 21828135, 'cartonnette': 21828136, 'Carton_gris': 21828137, 'flou': 21828138, 'metal': 21828139, 'autre_refus': 21828140, 'plastique': 21828141, 'Carton_brun': 21828142, 'mal_croppe': 21828143, 'environnement': 21828144, 'kraft': 21828145, 'Teint_Dans_La_Masse': 21828146}]} args : 21828132 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 : ({'papier': 21828135, 'cartonnette': 21828136, 'Carton_gris': 21828137, 'flou': 21828138, 'metal': 21828139, 'autre_refus': 21828140, 'plastique': 21828141, 'Carton_brun': 21828142, 'mal_croppe': 21828143, 'environnement': 21828144, 'kraft': 21828145, 'Teint_Dans_La_Masse': 21828146},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21828132) 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([21828132]) 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.3128390312194824 time spend to save output : 4.1484832763671875e-05 total time spend for step 3 : 0.3128805160522461 step4:send_mail_cod Fri Mar 28 06:56:56 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 : {1348178681: ('0.056242949404955944',), 1348178676: ('0.056242949404955944',), 1348178672: ('0.056242949404955944',), 1348178664: ('0.056242949404955944',), 1348178655: ('0.056242949404955944',), 1348178649: ('0.056242949404955944',), 1348178607: ('0.056242949404955944',), 1348178602: ('0.056242949404955944',), 1348178600: ('0.056242949404955944',)} input_args_next_step : {1348178681: ()} output_args : {1348178681: ('0.056242949404955944',), 1348178676: ('0.056242949404955944',), 1348178672: ('0.056242949404955944',), 1348178664: ('0.056242949404955944',), 1348178655: ('0.056242949404955944',), 1348178649: ('0.056242949404955944',), 1348178607: ('0.056242949404955944',), 1348178602: ('0.056242949404955944',), 1348178600: ('0.056242949404955944',)} args : 1348178681 depend.output_id : 0 input_args_next_step : {1348178681: ('0.056242949404955944',), 1348178676: ()} output_args : {1348178681: ('0.056242949404955944',), 1348178676: ('0.056242949404955944',), 1348178672: ('0.056242949404955944',), 1348178664: ('0.056242949404955944',), 1348178655: ('0.056242949404955944',), 1348178649: ('0.056242949404955944',), 1348178607: ('0.056242949404955944',), 1348178602: ('0.056242949404955944',), 1348178600: ('0.056242949404955944',)} args : 1348178676 depend.output_id : 0 input_args_next_step : {1348178681: ('0.056242949404955944',), 1348178676: ('0.056242949404955944',), 1348178672: ()} output_args : {1348178681: ('0.056242949404955944',), 1348178676: ('0.056242949404955944',), 1348178672: ('0.056242949404955944',), 1348178664: ('0.056242949404955944',), 1348178655: ('0.056242949404955944',), 1348178649: ('0.056242949404955944',), 1348178607: ('0.056242949404955944',), 1348178602: ('0.056242949404955944',), 1348178600: ('0.056242949404955944',)} args : 1348178672 depend.output_id : 0 input_args_next_step : {1348178681: ('0.056242949404955944',), 1348178676: ('0.056242949404955944',), 1348178672: ('0.056242949404955944',), 1348178664: ()} output_args : {1348178681: ('0.056242949404955944',), 1348178676: ('0.056242949404955944',), 1348178672: ('0.056242949404955944',), 1348178664: ('0.056242949404955944',), 1348178655: ('0.056242949404955944',), 1348178649: ('0.056242949404955944',), 1348178607: ('0.056242949404955944',), 1348178602: ('0.056242949404955944',), 1348178600: ('0.056242949404955944',)} args : 1348178664 depend.output_id : 0 input_args_next_step : {1348178681: ('0.056242949404955944',), 1348178676: ('0.056242949404955944',), 1348178672: ('0.056242949404955944',), 1348178664: ('0.056242949404955944',), 1348178655: ()} output_args : {1348178681: ('0.056242949404955944',), 1348178676: ('0.056242949404955944',), 1348178672: ('0.056242949404955944',), 1348178664: ('0.056242949404955944',), 1348178655: ('0.056242949404955944',), 1348178649: ('0.056242949404955944',), 1348178607: ('0.056242949404955944',), 1348178602: ('0.056242949404955944',), 1348178600: ('0.056242949404955944',)} args : 1348178655 depend.output_id : 0 input_args_next_step : {1348178681: ('0.056242949404955944',), 1348178676: ('0.056242949404955944',), 1348178672: ('0.056242949404955944',), 1348178664: ('0.056242949404955944',), 1348178655: ('0.056242949404955944',), 1348178649: ()} output_args : {1348178681: ('0.056242949404955944',), 1348178676: ('0.056242949404955944',), 1348178672: ('0.056242949404955944',), 1348178664: ('0.056242949404955944',), 1348178655: ('0.056242949404955944',), 1348178649: ('0.056242949404955944',), 1348178607: ('0.056242949404955944',), 1348178602: ('0.056242949404955944',), 1348178600: ('0.056242949404955944',)} args : 1348178649 depend.output_id : 0 input_args_next_step : {1348178681: ('0.056242949404955944',), 1348178676: ('0.056242949404955944',), 1348178672: ('0.056242949404955944',), 1348178664: ('0.056242949404955944',), 1348178655: ('0.056242949404955944',), 1348178649: ('0.056242949404955944',), 1348178607: ()} output_args : {1348178681: ('0.056242949404955944',), 1348178676: ('0.056242949404955944',), 1348178672: ('0.056242949404955944',), 1348178664: ('0.056242949404955944',), 1348178655: ('0.056242949404955944',), 1348178649: ('0.056242949404955944',), 1348178607: ('0.056242949404955944',), 1348178602: ('0.056242949404955944',), 1348178600: ('0.056242949404955944',)} args : 1348178607 depend.output_id : 0 input_args_next_step : {1348178681: ('0.056242949404955944',), 1348178676: ('0.056242949404955944',), 1348178672: ('0.056242949404955944',), 1348178664: ('0.056242949404955944',), 1348178655: ('0.056242949404955944',), 1348178649: ('0.056242949404955944',), 1348178607: ('0.056242949404955944',), 1348178602: ()} output_args : {1348178681: ('0.056242949404955944',), 1348178676: ('0.056242949404955944',), 1348178672: ('0.056242949404955944',), 1348178664: ('0.056242949404955944',), 1348178655: ('0.056242949404955944',), 1348178649: ('0.056242949404955944',), 1348178607: ('0.056242949404955944',), 1348178602: ('0.056242949404955944',), 1348178600: ('0.056242949404955944',)} args : 1348178602 depend.output_id : 0 input_args_next_step : {1348178681: ('0.056242949404955944',), 1348178676: ('0.056242949404955944',), 1348178672: ('0.056242949404955944',), 1348178664: ('0.056242949404955944',), 1348178655: ('0.056242949404955944',), 1348178649: ('0.056242949404955944',), 1348178607: ('0.056242949404955944',), 1348178602: ('0.056242949404955944',), 1348178600: ()} output_args : {1348178681: ('0.056242949404955944',), 1348178676: ('0.056242949404955944',), 1348178672: ('0.056242949404955944',), 1348178664: ('0.056242949404955944',), 1348178655: ('0.056242949404955944',), 1348178649: ('0.056242949404955944',), 1348178607: ('0.056242949404955944',), 1348178602: ('0.056242949404955944',), 1348178600: ('0.056242949404955944',)} args : 1348178600 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 : {21828132: [{'papier': 21828135, 'cartonnette': 21828136, 'Carton_gris': 21828137, 'flou': 21828138, 'metal': 21828139, 'autre_refus': 21828140, 'plastique': 21828141, 'Carton_brun': 21828142, 'mal_croppe': 21828143, 'environnement': 21828144, 'kraft': 21828145, 'Teint_Dans_La_Masse': 21828146}]} input_args_next_step : {1348178681: ('0.056242949404955944',), 1348178676: ('0.056242949404955944',), 1348178672: ('0.056242949404955944',), 1348178664: ('0.056242949404955944',), 1348178655: ('0.056242949404955944',), 1348178649: ('0.056242949404955944',), 1348178607: ('0.056242949404955944',), 1348178602: ('0.056242949404955944',), 1348178600: ('0.056242949404955944',), 21828132: ()} output_args : {21828132: [{'papier': 21828135, 'cartonnette': 21828136, 'Carton_gris': 21828137, 'flou': 21828138, 'metal': 21828139, 'autre_refus': 21828140, 'plastique': 21828141, 'Carton_brun': 21828142, 'mal_croppe': 21828143, 'environnement': 21828144, 'kraft': 21828145, 'Teint_Dans_La_Masse': 21828146}]} args : 21828132 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :10, first value : ('0.056242949404955944',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21828132) 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 (1348178681,1348178676,1348178672,1348178664,1348178655,1348178649,1348178607,1348178602,1348178600) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1348178600 begin to download photo : 1348178607 begin to download photo : 1348178655 begin to download photo : 1348178672 begin to download photo : 1348178681 download finish for photo 1348178600 begin to download photo : 1348178602 download finish for photo 1348178681 download finish for photo 1348178655 begin to download photo : 1348178664 download finish for photo 1348178607 begin to download photo : 1348178649 download finish for photo 1348178672 begin to download photo : 1348178676 download finish for photo 1348178602 download finish for photo 1348178676 download finish for photo 1348178649 download finish for photo 1348178664 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P21828132_28-03-2025_06_56_56.pdf 21828136 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=21828136 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348178445: '1743141025_1008161_1348178302_b32f54b6cac786a0b3f8de38a7074090_rle_crop_3735663770_0.png', 1348178456: '1743141013_627058_1348178248_7c6e6c97455de807346f4959003aa5ea_rle_crop_3735663801_0.png', 1348178548: '1743141147_1011078_1348178410_b0f233545f60663e521fec57c93a70fb_rle_crop_3735664248_0.png', 1348178549: '1743141147_1011078_1348178406_cd3e396ce444991eb255033f67f66963_rle_crop_3735664270_0.png', 1348178635: '1743141268_1014029_1348178516_8c8551f087b8a836ea257395dcf286d7_rle_crop_3735664472_0.png', 1348178636: '1743141268_1014029_1348178513_a6878206d65b99d1482d72889e0d2f12_rle_crop_3735664483_0.png', 1348178637: '1743141268_1014029_1348178508_078b94e56516b553cad012c57048985f_rle_crop_3735664501_0.png', 1348178665: '1743141273_631639_1348178463_619bdce8debe3e319ece71259535b71b_rle_crop_3735664673_0.png', 1348178727: '1743141372_632899_1348178573_fef9db8f329d0e1a27a03140eb25767d_rle_crop_3735675151_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/b9a2b14116d9f0ee672f360d15c3db10_78518213.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/5cd20280a70afe324fd47bc7fc619386_65782661.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/6849494155ef653bdb6da3432b431345_39536486.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/c3ce36ab7ed76f5905525c663a75ed81_69207732.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/6a6d732c0a0dea2cfe17f56033a8fdf8_4985840.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/170b7e29ec72e9a2d78be61a9a68dfa8_16849126.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/a55282674e00d181cb5f265193a2af9a_34991649.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/d96cc98731dedd0f8828a8b2f9bfc810_31479253.png change filename to text .imagette218281361743141416/ imagette218281361743141416/1743141147_1011078_1348178410_b0f233545f60663e521fec57c93a70fb_rle_crop_3735664248_0.png.png imagette218281361743141416/1743141372_632899_1348178573_fef9db8f329d0e1a27a03140eb25767d_rle_crop_3735675151_0.png.png imagette218281361743141416/1743141025_1008161_1348178302_b32f54b6cac786a0b3f8de38a7074090_rle_crop_3735663770_0.png.png imagette218281361743141416/1743141268_1014029_1348178513_a6878206d65b99d1482d72889e0d2f12_rle_crop_3735664483_0.png.png imagette218281361743141416/1743141268_1014029_1348178516_8c8551f087b8a836ea257395dcf286d7_rle_crop_3735664472_0.png.png imagette218281361743141416/1743141273_631639_1348178463_619bdce8debe3e319ece71259535b71b_rle_crop_3735664673_0.png.png imagette218281361743141416/1743141268_1014029_1348178508_078b94e56516b553cad012c57048985f_rle_crop_3735664501_0.png.png imagette218281361743141416/1743141147_1011078_1348178406_cd3e396ce444991eb255033f67f66963_rle_crop_3735664270_0.png.png imagette218281361743141416/1743141013_627058_1348178248_7c6e6c97455de807346f4959003aa5ea_rle_crop_3735663801_0.png.png imagette218281381743141417/ imagette218281391743141417/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/e47b8155894700961f2fa411cd29ba4a_56439157.png imagette218281361743141416 21828138 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=21828138 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218281381743141417 21828139 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=21828139 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218281391743141417 21828140 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=21828140 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348178441: '1743141025_1008161_1348178319_1136182ad53cfa087bc373a14a05e30d_rle_crop_3735663721_0.png', 1348178442: '1743141025_1008161_1348178314_15e54e45c7d82c0fa93e9d4359d6a7c6_rle_crop_3735663737_0.png', 1348178443: '1743141025_1008161_1348178303_6172cc7fcd652b92d45e2766aa5b586d_rle_crop_3735663762_0.png', 1348178619: '1743141232_630442_1348178430_ac336bf3b0b4aff548a1ce5eec684e1e_rle_crop_3735664344_0.png', 1348178661: '1743141273_631639_1348178463_619bdce8debe3e319ece71259535b71b_rle_crop_3735664684_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/ae7d198bd2b82b68c77a9c5a26234633_54383694.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/7ece1d64b40a879c1f76e6ffb5f9e014_54220053.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/78c15923d27aecbdbc925ef0fe35102b_65480266.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/ca152a3ca98bc839474c9e84968c09cb_41132213.png change filename to text .imagette218281401743141417/ imagette218281401743141417/1743141025_1008161_1348178314_15e54e45c7d82c0fa93e9d4359d6a7c6_rle_crop_3735663737_0.png.png imagette218281401743141417/1743141025_1008161_1348178319_1136182ad53cfa087bc373a14a05e30d_rle_crop_3735663721_0.png.png imagette218281401743141417/1743141273_631639_1348178463_619bdce8debe3e319ece71259535b71b_rle_crop_3735664684_0.png.png imagette218281401743141417/1743141232_630442_1348178430_ac336bf3b0b4aff548a1ce5eec684e1e_rle_crop_3735664344_0.png.png imagette218281401743141417/1743141025_1008161_1348178303_6172cc7fcd652b92d45e2766aa5b586d_rle_crop_3735663762_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/785835aa06004e4c8be454f15b899e2c_42611208.png imagette218281401743141417 21828141 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=21828141 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348178450: '1743141025_1008161_1348178309_4ff8326d1d1ccf873d284024760438a0_rle_crop_3735663748_0.png', 1348178451: '1743141025_1008161_1348178302_b32f54b6cac786a0b3f8de38a7074090_rle_crop_3735663768_0.png', 1348178458: '1743141013_627058_1348178248_7c6e6c97455de807346f4959003aa5ea_rle_crop_3735663814_0.png', 1348178459: '1743141013_627058_1348178248_7c6e6c97455de807346f4959003aa5ea_rle_crop_3735663803_0.png', 1348178558: '1743141147_1011078_1348178426_65a45907f8696c793c2ba085ec1eab5a_rle_crop_3735664204_0.png', 1348178559: '1743141147_1011078_1348178421_ea824e6e2cb528bf2e708845792dc390_rle_crop_3735664222_0.png', 1348178560: '1743141147_1011078_1348178421_ea824e6e2cb528bf2e708845792dc390_rle_crop_3735664218_0.png', 1348178561: '1743141147_1011078_1348178410_b0f233545f60663e521fec57c93a70fb_rle_crop_3735664246_0.png', 1348178562: '1743141147_1011078_1348178410_b0f233545f60663e521fec57c93a70fb_rle_crop_3735664255_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/22afbb0e6b7e229866d2fe51582ae3c1_49953248.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/43dcb7dd7108e98d5898be06e0167b59_83331266.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/7eb2e807a2b4c3cc71916213b25585af_49231016.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/7da5fc10cc2691447d71ca2d77a70348_71114355.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/de43158c6eaf5d57ff8e2278ddf75aa5_68414794.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/5726fe59f52d2138bfe5e60e078003b0_59305047.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/0fd2fc863a1d019071910eadd1cd7b31_46788512.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/5a11d558a6042086ea550e8f81bfeda5_76220215.png change filename to text .imagette218281411743141417/ imagette218281411743141417/1743141147_1011078_1348178421_ea824e6e2cb528bf2e708845792dc390_rle_crop_3735664222_0.png.png imagette218281411743141417/1743141147_1011078_1348178410_b0f233545f60663e521fec57c93a70fb_rle_crop_3735664255_0.png.png imagette218281411743141417/1743141147_1011078_1348178421_ea824e6e2cb528bf2e708845792dc390_rle_crop_3735664218_0.png.png imagette218281411743141417/1743141013_627058_1348178248_7c6e6c97455de807346f4959003aa5ea_rle_crop_3735663803_0.png.png imagette218281411743141417/1743141025_1008161_1348178302_b32f54b6cac786a0b3f8de38a7074090_rle_crop_3735663768_0.png.png imagette218281411743141417/1743141147_1011078_1348178410_b0f233545f60663e521fec57c93a70fb_rle_crop_3735664246_0.png.png imagette218281411743141417/1743141025_1008161_1348178309_4ff8326d1d1ccf873d284024760438a0_rle_crop_3735663748_0.png.png imagette218281411743141417/1743141013_627058_1348178248_7c6e6c97455de807346f4959003aa5ea_rle_crop_3735663814_0.png.png imagette218281411743141417/1743141147_1011078_1348178426_65a45907f8696c793c2ba085ec1eab5a_rle_crop_3735664204_0.png.png imagette218281431743141418/ imagette218281451743141418/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/031db269eae1497787954fab53b0c2a2_44908692.png imagette218281411743141417 21828143 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=21828143 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218281431743141418 21828145 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=21828145 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218281451743141418 21828137 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=21828137 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348178546: '1743141147_1011078_1348178426_65a45907f8696c793c2ba085ec1eab5a_rle_crop_3735664200_0.png', 1348178622: '1743141232_630442_1348178373_69f71108a771219bec1ebf215652e1cd_rle_crop_3735664461_0.png', 1348178634: '1743141268_1014029_1348178516_8c8551f087b8a836ea257395dcf286d7_rle_crop_3735664470_0.png', 1348178663: '1743141273_631639_1348178463_619bdce8debe3e319ece71259535b71b_rle_crop_3735664680_0.png', 1348178719: '1743141385_1018511_1348178602_57afe320f18534b91b23329830d0fdbb_rle_crop_3735675164_0.png', 1348178726: '1743141372_632899_1348178570_8e6154a81234efad9345326224960169_rle_crop_3735675175_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/f7676ca97715fff34bf9fcbdef039ef6_91008886.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/c3cc4fa6337b99e275330bf7d2563b24_38473666.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/bec2a6d861f5c60ee08e847cc11f969d_81638030.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/675c4b8d41a3a81cb31fedc534742b60_12616764.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/a380bf46f69a1c8f4bb99d22fb634697_37079461.png change filename to text .imagette218281371743141418/ imagette218281371743141418/1743141372_632899_1348178570_8e6154a81234efad9345326224960169_rle_crop_3735675175_0.png.png imagette218281371743141418/1743141273_631639_1348178463_619bdce8debe3e319ece71259535b71b_rle_crop_3735664680_0.png.png imagette218281371743141418/1743141268_1014029_1348178516_8c8551f087b8a836ea257395dcf286d7_rle_crop_3735664470_0.png.png imagette218281371743141418/1743141147_1011078_1348178426_65a45907f8696c793c2ba085ec1eab5a_rle_crop_3735664200_0.png.png imagette218281371743141418/1743141232_630442_1348178373_69f71108a771219bec1ebf215652e1cd_rle_crop_3735664461_0.png.png imagette218281371743141418/1743141385_1018511_1348178602_57afe320f18534b91b23329830d0fdbb_rle_crop_3735675164_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/b4ac280e8d9dd04072af22d54a81e2b3_68462510.png imagette218281371743141418 21828142 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=21828142 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348178447: '1743141025_1008161_1348178314_15e54e45c7d82c0fa93e9d4359d6a7c6_rle_crop_3735663741_0.png', 1348178448: '1743141025_1008161_1348178314_15e54e45c7d82c0fa93e9d4359d6a7c6_rle_crop_3735663740_0.png', 1348178449: '1743141025_1008161_1348178309_4ff8326d1d1ccf873d284024760438a0_rle_crop_3735663751_0.png', 1348178457: '1743141013_627058_1348178248_7c6e6c97455de807346f4959003aa5ea_rle_crop_3735663807_0.png', 1348178556: '1743141147_1011078_1348178426_65a45907f8696c793c2ba085ec1eab5a_rle_crop_3735664208_0.png', 1348178638: '1743141268_1014029_1348178505_87629d69a303240f692c446c711b93e5_rle_crop_3735664514_0.png', 1348178668: '1743141273_631639_1348178463_619bdce8debe3e319ece71259535b71b_rle_crop_3735664686_0.png', 1348178730: '1743141372_632899_1348178573_fef9db8f329d0e1a27a03140eb25767d_rle_crop_3735675155_0.png', 1348178732: '1743141372_632899_1348178573_fef9db8f329d0e1a27a03140eb25767d_rle_crop_3735675152_0.png', 1348178733: '1743141372_632899_1348178570_8e6154a81234efad9345326224960169_rle_crop_3735675176_0.png', 1348178734: '1743141372_632899_1348178566_8caf749df0160d010b413c7fa3236009_rle_crop_3735675186_0.png', 1348178735: '1743141372_632899_1348178564_334ea0c47d01d56bd4a580be1c1bf1db_rle_crop_3735675193_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/b99ecd2a3aa3085910c9e9ea8c204c12_19188868.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/95e21110a1e4cee80f61cc88751856b0_24377868.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/0e3913b794c3b1ca9d4829c6e5a54dc4_13706848.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/ad66ed8178bb20965d7dba2162dc1b6f_71937381.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/028d69afe68fd54a418d77066dcb2ac1_46387873.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/17130e4a4b26e143c902405d97449dfc_16008057.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/5a4368700d1f0b31fd6bcb985848b7e8_43690545.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/f915adbd74182face664ac483360e507_8612923.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/b8a18fd5eec42f86fbbcfc9fea0104cf_26681224.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/dbc602af77f2331182f02d4e1b995992_15284882.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/a087e30397aa6482dac792076c16e832_50573430.png change filename to text .imagette218281421743141418/ imagette218281421743141418/1743141372_632899_1348178573_fef9db8f329d0e1a27a03140eb25767d_rle_crop_3735675152_0.png.png imagette218281421743141418/1743141025_1008161_1348178314_15e54e45c7d82c0fa93e9d4359d6a7c6_rle_crop_3735663741_0.png.png imagette218281421743141418/1743141013_627058_1348178248_7c6e6c97455de807346f4959003aa5ea_rle_crop_3735663807_0.png.png imagette218281421743141418/1743141025_1008161_1348178314_15e54e45c7d82c0fa93e9d4359d6a7c6_rle_crop_3735663740_0.png.png imagette218281421743141418/1743141372_632899_1348178573_fef9db8f329d0e1a27a03140eb25767d_rle_crop_3735675155_0.png.png imagette218281421743141418/1743141025_1008161_1348178309_4ff8326d1d1ccf873d284024760438a0_rle_crop_3735663751_0.png.png imagette218281421743141418/1743141268_1014029_1348178505_87629d69a303240f692c446c711b93e5_rle_crop_3735664514_0.png.png imagette218281421743141418/1743141372_632899_1348178564_334ea0c47d01d56bd4a580be1c1bf1db_rle_crop_3735675193_0.png.png imagette218281421743141418/1743141147_1011078_1348178426_65a45907f8696c793c2ba085ec1eab5a_rle_crop_3735664208_0.png.png imagette218281421743141418/1743141372_632899_1348178566_8caf749df0160d010b413c7fa3236009_rle_crop_3735675186_0.png.png imagette218281421743141418/1743141273_631639_1348178463_619bdce8debe3e319ece71259535b71b_rle_crop_3735664686_0.png.png imagette218281421743141418/1743141372_632899_1348178570_8e6154a81234efad9345326224960169_rle_crop_3735675176_0.png.png wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/5e151d17cb9d552a982e692ddcdce970_27332834.png imagette218281421743141418 21828146 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=21828146 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1348178543: '1743141147_1011078_1348178406_cd3e396ce444991eb255033f67f66963_rle_crop_3735664281_0.png', 1348178725: '1743141372_632899_1348178573_fef9db8f329d0e1a27a03140eb25767d_rle_crop_3735675153_0.png', 1348178724: '1743141372_632899_1348178607_796bd58edf7206c6a97bd2540cb188e8_rle_crop_3735675137_0.png', 1348178723: '1743141372_632899_1348178607_796bd58edf7206c6a97bd2540cb188e8_rle_crop_3735675135_0.png', 1348178660: '1743141273_631639_1348178463_619bdce8debe3e319ece71259535b71b_rle_crop_3735664682_0.png', 1348178659: '1743141273_631639_1348178474_421d0aedda72533c3356a930c84c3396_rle_crop_3735664657_0.png', 1348178633: '1743141268_1014029_1348178513_a6878206d65b99d1482d72889e0d2f12_rle_crop_3735664489_0.png', 1348178632: '1743141268_1014029_1348178513_a6878206d65b99d1482d72889e0d2f12_rle_crop_3735664486_0.png', 1348178631: '1743141268_1014029_1348178516_8c8551f087b8a836ea257395dcf286d7_rle_crop_3735664480_0.png', 1348178544: '1743141147_1011078_1348178406_cd3e396ce444991eb255033f67f66963_rle_crop_3735664277_0.png', 1348178439: '1743141025_1008161_1348178303_6172cc7fcd652b92d45e2766aa5b586d_rle_crop_3735663761_0.png', 1348178542: '1743141147_1011078_1348178410_b0f233545f60663e521fec57c93a70fb_rle_crop_3735664251_0.png', 1348178541: '1743141147_1011078_1348178410_b0f233545f60663e521fec57c93a70fb_rle_crop_3735664260_0.png', 1348178540: '1743141147_1011078_1348178410_b0f233545f60663e521fec57c93a70fb_rle_crop_3735664257_0.png', 1348178539: '1743141147_1011078_1348178414_948d0e5c6c47a2a1d808a316dc7b6528_rle_crop_3735664234_0.png', 1348178538: '1743141147_1011078_1348178414_948d0e5c6c47a2a1d808a316dc7b6528_rle_crop_3735664236_0.png', 1348178537: '1743141147_1011078_1348178414_948d0e5c6c47a2a1d808a316dc7b6528_rle_crop_3735664241_0.png', 1348178536: '1743141147_1011078_1348178414_948d0e5c6c47a2a1d808a316dc7b6528_rle_crop_3735664238_0.png', 1348178454: '1743141013_627058_1348178324_1966551cb7f0c3c9e041497ffcb794ad_rle_crop_3735663782_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/1c0f67c2f1ea9c2e2f7610b0516cebc0_77733713.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/22f407f039fe00109d727aa37d8473f8_94211005.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/db5cfc680f626c30d75e4de6cde30cc9_9901208.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/1ed609bef249c00e402a3878454691a4_35373855.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/44f7096ac33328f71d284798dcc95fd9_13891739.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/50ac76eaf5a880d4c7a4c30f60e54a3c_93957339.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/9d42dcb38fbef49a5f046db22e2d951f_76352659.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/fdd42863148af1eead07747fd1080d79_5973050.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/bf8ee7b79aa16def412884cc3e3296d3_1948547.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/fbf9d80cf8d770849df0f60cb269ec92_67700918.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/b06c504d006c522606111c0b4bc5cbb1_76126377.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/1950d14f3f57586555a981875b38ee63_87260738.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/2c9f94fab8de501a90398967d4331f0f_69313564.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/d42737b63c055cde4917b5876d471a26_48802600.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/c1720e1c9c509c525532ee2999a023f3_89487935.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/d1c25f012e1f74e9fd49ab2ff6ce9572_67846361.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/ea4cec9053c86b6cfc8e9186a0b01a13_27455558.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/887ac37181dd7f9896c92fe401ac1034_26947178.png change filename to text .imagette218281461743141421/ imagette218281461743141421/1743141372_632899_1348178607_796bd58edf7206c6a97bd2540cb188e8_rle_crop_3735675135_0.png.png imagette218281461743141421/1743141147_1011078_1348178406_cd3e396ce444991eb255033f67f66963_rle_crop_3735664277_0.png.png imagette218281461743141421/1743141268_1014029_1348178513_a6878206d65b99d1482d72889e0d2f12_rle_crop_3735664489_0.png.png imagette218281461743141421/1743141147_1011078_1348178410_b0f233545f60663e521fec57c93a70fb_rle_crop_3735664257_0.png.png imagette218281461743141421/1743141013_627058_1348178324_1966551cb7f0c3c9e041497ffcb794ad_rle_crop_3735663782_0.png.png imagette218281461743141421/1743141025_1008161_1348178303_6172cc7fcd652b92d45e2766aa5b586d_rle_crop_3735663761_0.png.png imagette218281461743141421/1743141268_1014029_1348178516_8c8551f087b8a836ea257395dcf286d7_rle_crop_3735664480_0.png.png imagette218281461743141421/1743141372_632899_1348178573_fef9db8f329d0e1a27a03140eb25767d_rle_crop_3735675153_0.png.png imagette218281461743141421/1743141147_1011078_1348178414_948d0e5c6c47a2a1d808a316dc7b6528_rle_crop_3735664241_0.png.png imagette218281461743141421/1743141147_1011078_1348178414_948d0e5c6c47a2a1d808a316dc7b6528_rle_crop_3735664236_0.png.png imagette218281461743141421/1743141273_631639_1348178474_421d0aedda72533c3356a930c84c3396_rle_crop_3735664657_0.png.png imagette218281461743141421/1743141372_632899_1348178607_796bd58edf7206c6a97bd2540cb188e8_rle_crop_3735675137_0.png.png imagette218281461743141421/1743141147_1011078_1348178414_948d0e5c6c47a2a1d808a316dc7b6528_rle_crop_3735664234_0.png.png imagette218281461743141421/1743141147_1011078_1348178410_b0f233545f60663e521fec57c93a70fb_rle_crop_3735664251_0.png.png imagette218281461743141421/1743141273_631639_1348178463_619bdce8debe3e319ece71259535b71b_rle_crop_3735664682_0.png.png imagette218281461743141421/1743141147_1011078_1348178406_cd3e396ce444991eb255033f67f66963_rle_crop_3735664281_0.png.png imagette218281461743141421/1743141147_1011078_1348178410_b0f233545f60663e521fec57c93a70fb_rle_crop_3735664260_0.png.png imagette218281461743141421/1743141147_1011078_1348178414_948d0e5c6c47a2a1d808a316dc7b6528_rle_crop_3735664238_0.png.png imagette218281461743141421/1743141268_1014029_1348178513_a6878206d65b99d1482d72889e0d2f12_rle_crop_3735664486_0.png.png wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/f7a4502f3a3b9546029248fe8eaf8e69_43814288.png imagette218281461743141421 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21828132 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21828147,21828148,21828149,21828150,21828151,21828152,21828153,21828154,21828155,21828156,21828157,21828158?tags=papier,cartonnette,Carton_gris,flou,metal,autre_refus,plastique,Carton_brun,mal_croppe,environnement,kraft,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1348178681] : ('0.056242949404955944',) no score found for photo 1348178681 We are sending mail with results at report@fotonower.com args[1348178676] : ('0.056242949404955944',) no score found for photo 1348178676 We are sending mail with results at report@fotonower.com args[1348178672] : ('0.056242949404955944',) no score found for photo 1348178672 We are sending mail with results at report@fotonower.com args[1348178664] : ('0.056242949404955944',) no score found for photo 1348178664 We are sending mail with results at report@fotonower.com args[1348178655] : ('0.056242949404955944',) no score found for photo 1348178655 We are sending mail with results at report@fotonower.com args[1348178649] : ('0.056242949404955944',) no score found for photo 1348178649 We are sending mail with results at report@fotonower.com args[1348178607] : ('0.056242949404955944',) no score found for photo 1348178607 We are sending mail with results at report@fotonower.com args[1348178602] : ('0.056242949404955944',) no score found for photo 1348178602 We are sending mail with results at report@fotonower.com args[1348178600] : ('0.056242949404955944',) no score found for photo 1348178600 We are sending mail with results at report@fotonower.com refus_total : 0.056242949404955944 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=21828132 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_P21828132_28-03-2025_06_56_56.pdf results_Auto_P21828132_28-03-2025_06_56_56.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21828132_28-03-2025_06_56_56.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','21828132','results_Auto_P21828132_28-03-2025_06_56_56.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21828132_28-03-2025_06_56_56.pdf','pdf','','0.26','0.056242949404955944') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21828132]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1348178681, 1348178676, 1348178672, 1348178664, 1348178655, 1348178649, 1348178607, 1348178602, 1348178600] map_info['map_portfolio_photo'] : {21828132: [1348178681, 1348178676, 1348178672, 1348178664, 1348178655, 1348178649, 1348178607, 1348178602, 1348178600, 1348178577, 1348178573, 1348178570, 1348178566, 1348178564, 1348178522, 1348178516, 1348178513, 1348178508, 1348178505, 1348178479, 1348178474, 1348178469, 1348178463, 1348178461, 1348178430, 1348178426, 1348178421, 1348178414, 1348178410, 1348178406, 1348178383, 1348178378, 1348178373, 1348178324, 1348178319, 1348178314, 1348178309, 1348178303, 1348178302, 1348178270, 1348178264, 1348178248]} final : False mtd_id 4302 list_pids : [1348178681, 1348178676, 1348178672, 1348178664, 1348178655, 1348178649, 1348178607, 1348178602, 1348178600] 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, '2700430') ('4302', '21828132', '1348178681', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178676', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178672', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178664', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178655', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178649', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178607', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178602', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178600', None, None, None, None, None, '2700430') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21828132', '1348178681', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178676', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178672', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178664', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178655', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178649', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178607', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178602', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178600', None, None, None, None, None, '2700430')] time used for this insertion : 0.02218484878540039 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.451173543930054 time spend to save output : 0.02236008644104004 total time spend for step 4 : 7.473533630371094 step5:split_time_score Fri Mar 28 06:57:04 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 : ['21828132'] 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 : [('21828132',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21828132) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1348178681: {'path': 'temp/1743141416_207155_1348178681_a17f15c43c5ce124826a97b9152b4611.jpg', 'extension': 'jpg'}, 1348178600: {'path': 'temp/1743141416_207155_1348178600_6abc0089a6438f81b83616a5a01e5e16.jpg', 'extension': 'jpg'}, 1348178602: {'path': 'temp/1743141416_207155_1348178602_57afe320f18534b91b23329830d0fdbb.jpg', 'extension': 'jpg'}, 1348178672: {'path': 'temp/1743141416_207155_1348178672_c05107442cc0033f06efc5705fd26c4d.jpg', 'extension': 'jpg'}, 1348178676: {'path': 'temp/1743141416_207155_1348178676_c1594738661a79abf6599d2046737ae2.jpg', 'extension': 'jpg'}, 1348178607: {'path': 'temp/1743141416_207155_1348178607_796bd58edf7206c6a97bd2540cb188e8.jpg', 'extension': 'jpg'}, 1348178649: {'path': 'temp/1743141416_207155_1348178649_d1ae07a07ef0c130fbc0f5920fc7d5e2.jpg', 'extension': 'jpg'}, 1348178655: {'path': 'temp/1743141416_207155_1348178655_6cb349114c6f0157a4edb98fda6e5714.jpg', 'extension': 'jpg'}, 1348178664: {'path': 'temp/1743141416_207155_1348178664_d54f1904ecc731df98e246d844c120a3.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 = 21828132; (('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 = 21828132 group by h (('06', 42),) 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=21828132 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 (21828132) 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 (21828132) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28032025 21828132 Nombre de photos uploadées : 42 / 23040 (0%) 28032025 21828132 Nombre de photos taguées (types de déchets): 0 / 42 (0%) 28032025 21828132 Nombre de photos taguées (volume) : 0 / 42 (0%) [{'photo_id': 1348178270, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/376ac60e9a76280abf84dfec24e4b7ef.jpg', 'username': None, 'uploaded_at': 1743140838, 'text': 'image_28032025_06_45_14_010133m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1348178264, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/9dabb9c8c88907b42df73a17620eac45.jpg', 'username': None, 'uploaded_at': 1743140838, 'text': 'image_28032025_06_45_24_010132m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1348178248, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/7c6e6c97455de807346f4959003aa5ea.jpg', 'username': None, 'uploaded_at': 1743140838, 'text': 'image_28032025_06_45_44_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1348178324, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/1966551cb7f0c3c9e041497ffcb794ad.jpg', 'username': None, 'uploaded_at': 1743140898, 'text': 'image_28032025_06_45_53_009129m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 7.152557373046875e-06 ?????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002052783966064453 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21828132, '2025-03-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1696037,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.0675194263458252 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= 1696037 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1696037, 'dashboard_run_id': 1704421, 'mtr_portfolio_id': 21826531, 'dashboard_result_id': 9707353, '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_P21826531_28-03-2025_06_20_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21826535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21826536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21826537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21826538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21826539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21826540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21826541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21826542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21826543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21826544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21826545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21826546, 'pht': 3726}}"}, {'dashboat_entry_day': 1696037, 'dashboard_run_id': 1704421, 'mtr_portfolio_id': 21827231, 'dashboard_result_id': 9707354, '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_P21827231_28-03-2025_06_33_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21827234, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21827235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21827236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21827237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21827238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21827239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21827240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21827241, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21827242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21827243, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21827244, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21827245, 'pht': 3726}}"}, {'dashboat_entry_day': 1696037, 'dashboard_run_id': 1704421, 'mtr_portfolio_id': 21827676, 'dashboard_result_id': 9707355, '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_P21827676_28-03-2025_06_39_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21827679, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21827680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21827681, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21827682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21827683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21827684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21827685, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21827686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21827687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21827688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21827689, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21827690, 'pht': 3726}}"}, {'dashboat_entry_day': 1696037, 'dashboard_run_id': 1704421, 'mtr_portfolio_id': 21828132, 'dashboard_result_id': 9707356, '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_P21828132_28-03-2025_06_55_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21828135, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21828136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21828137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21828138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21828139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21828140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21828141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21828142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21828143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21828144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21828145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21828146, '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 = 21826531 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': 2700328, 'mtr_portfolio_id': 21826531, 'created_at': datetime.datetime(2025, 3, 28, 6, 20), 'result': '0.0431391098155912', 'result_long': None, 'result_double': None}] Qualite : 0.0431391098155912 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21826531 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21826531_28-03-2025_06_20_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21826531 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_P21826531_28-03-2025_06_20_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21826535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21826536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21826537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21826538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21826539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21826540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21826541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21826542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21826543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21826544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21826545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21826546, 'pht': 3726}}" where mtr_portfolio_id = 21826531 and dashboard_run_id = 1704421 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`=21826531 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9707353, 0.0431391098155912, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21826531_28-03-2025_06_20_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21826535, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21826536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21826537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21826538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21826539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21826540, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21826541, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21826542, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21826543, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21826544, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21826545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21826546, '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 = 21827231 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': 2700366, 'mtr_portfolio_id': 21827231, 'created_at': datetime.datetime(2025, 3, 28, 6, 33, 30), 'result': '0.03436121860343487', 'result_long': None, 'result_double': None}] Qualite : 0.03436121860343487 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21827231 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21827231_28-03-2025_06_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21827231 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_P21827231_28-03-2025_06_33_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21827234, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21827235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21827236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21827237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21827238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21827239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21827240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21827241, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21827242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21827243, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21827244, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21827245, 'pht': 3726}}" where mtr_portfolio_id = 21827231 and dashboard_run_id = 1704421 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`=21827231 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9707354, 0.03436121860343487, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21827231_28-03-2025_06_33_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21827234, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21827235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21827236, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21827237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21827238, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21827239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21827240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21827241, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21827242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21827243, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21827244, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21827245, '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 = 21827676 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': 2700398, 'mtr_portfolio_id': 21827676, 'created_at': datetime.datetime(2025, 3, 28, 6, 39), 'result': '0.0390455383254466', 'result_long': None, 'result_double': None}] Qualite : 0.0390455383254466 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21827676 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21827676_28-03-2025_06_39_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21827676 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_P21827676_28-03-2025_06_39_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21827679, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21827680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21827681, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21827682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21827683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21827684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21827685, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21827686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21827687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21827688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21827689, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21827690, 'pht': 3726}}" where mtr_portfolio_id = 21827676 and dashboard_run_id = 1704421 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`=21827676 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9707355, 0.0390455383254466, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21827676_28-03-2025_06_39_02.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21827679, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21827680, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21827681, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21827682, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21827683, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21827684, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21827685, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21827686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21827687, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21827688, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21827689, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21827690, '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 = 21828132 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': 2700430, 'mtr_portfolio_id': 21828132, 'created_at': datetime.datetime(2025, 3, 28, 6, 56, 56), 'result': '0.056242949404955944', 'result_long': None, 'result_double': None}] Qualite : 0.056242949404955944 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21828132 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21828132_28-03-2025_06_56_56.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21828132 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_P21828132_28-03-2025_06_56_56.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21828135, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21828136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21828137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21828138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21828139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21828140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21828141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21828142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21828143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21828144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21828145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21828146, 'pht': 3726}}" where mtr_portfolio_id = 21828132 and dashboard_run_id = 1704421 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`=21828132 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9707356, 0.056242949404955944, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21828132_28-03-2025_06_56_56.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21828135, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21828136, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21828137, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21828138, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21828139, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21828140, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21828141, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21828142, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21828143, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21828144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21828145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21828146, '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 (21826531,21827231,21827676,21828132) result : ((1348173398,), (1348173415,), (1348173445,), (1348173785,), (1348173787,), (1348173804,), (1348173829,), (1348174092,), (1348174117,), (1348174134,), (1348174160,), (1348174195,), (1348174220,), (1348174480,), (1348174503,), (1348174528,), (1348174755,), (1348174775,), (1348174798,), (1348174825,), (1348174849,), (1348174872,), (1348175072,), (1348175078,), (1348175088,), (1348175091,), (1348175095,), (1348175117,), (1348175122,), (1348175126,), (1348175129,), (1348175132,), (1348175158,), (1348175162,), (1348175164,), (1348175167,), (1348175171,), (1348175198,), (1348175394,), (1348175423,), (1348175443,), (1348175464,), (1348175687,), (1348175707,), (1348175714,), (1348175721,), (1348175736,), (1348175755,), (1348176420,), (1348176422,), (1348176431,), (1348176446,), (1348176499,), (1348176502,), (1348176506,), (1348176512,), (1348176517,), (1348176618,), (1348176622,), (1348176625,), (1348176629,), (1348176632,), (1348176653,), (1348176655,), (1348176662,), (1348176671,), (1348176675,), (1348176680,), (1348176703,), (1348176707,), (1348176723,), (1348176727,), (1348176731,), (1348176734,), (1348176775,), (1348176769,), (1348176771,), (1348176796,), (1348176803,), (1348176809,), (1348176812,), (1348176818,), (1348176823,), (1348176866,), (1348176890,), (1348176895,), (1348176901,), (1348176904,), (1348176908,), (1348176942,), (1348176944,), (1348176950,), (1348176992,), (1348176995,), (1348176999,), (1348177002,), (1348177007,), (1348177012,), (1348177027,), (1348177029,), (1348177033,), (1348177036,), (1348177064,), (1348177067,), (1348177071,), (1348177076,), (1348177078,), (1348177097,), (1348177103,), (1348177106,), (1348177109,), (1348177112,), (1348177131,), (1348177133,), (1348177137,), (1348177160,), (1348177162,), (1348177167,), (1348177170,), (1348177176,), (1348177181,), (1348177235,), (1348177237,), (1348177242,), (1348177247,), (1348177252,), (1348177298,), (1348177300,), (1348177307,), (1348177327,), (1348177328,), (1348177378,), (1348177397,), (1348177408,), (1348177425,), (1348177428,), (1348177431,), (1348177510,), (1348177467,), (1348177476,), (1348177485,), (1348177495,), (1348177501,), (1348177525,), (1348177532,), (1348177537,), (1348177541,), (1348177568,), (1348177569,), (1348177579,), (1348177583,), (1348177588,), (1348177592,), (1348177627,), (1348177631,), (1348177649,), (1348177658,), (1348177702,), (1348177705,), (1348177766,), (1348177786,), (1348177790,), (1348177826,), (1348177827,), (1348177831,), (1348177835,), (1348177839,), (1348177843,), (1348177857,), (1348177859,), (1348177863,), (1348177897,), (1348177899,), (1348177903,), (1348177905,), (1348177909,), (1348177912,), (1348177924,), (1348177925,), (1348177929,), (1348177932,), (1348177938,), (1348177968,), (1348177970,), (1348177976,), (1348177996,), (1348178002,), (1348178007,), (1348178009,), (1348178013,), (1348178018,), (1348178034,), (1348178036,), (1348178040,), (1348178047,), (1348178059,), (1348178062,), (1348178076,), (1348178077,), (1348178083,), (1348178121,), (1348178123,), (1348178127,), (1348178132,), (1348178135,), (1348178140,), (1348178161,), (1348178165,), (1348178169,), (1348178217,), (1348178275,), (1348178248,), (1348178264,), (1348178270,), (1348178302,), (1348178303,), (1348178309,), (1348178314,), (1348178319,), (1348178324,), (1348178373,), (1348178378,), (1348178383,), (1348178406,), (1348178410,), (1348178414,), (1348178421,), (1348178426,), (1348178430,), (1348178461,), (1348178463,), (1348178469,), (1348178474,), (1348178479,), (1348178505,), (1348178508,), (1348178513,), (1348178516,), (1348178522,), (1348178564,), (1348178566,), (1348178570,), (1348178573,), (1348178577,), (1348178600,), (1348178602,), (1348178607,), (1348178649,), (1348178655,), (1348178664,), (1348178672,), (1348178676,), (1348178681,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28032025': {'nb_upload': 42, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21828132]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1348178681, 1348178676, 1348178672, 1348178664, 1348178655, 1348178649, 1348178607, 1348178602, 1348178600] map_info['map_portfolio_photo'] : {21828132: [1348178681, 1348178676, 1348178672, 1348178664, 1348178655, 1348178649, 1348178607, 1348178602, 1348178600, 1348178577, 1348178573, 1348178570, 1348178566, 1348178564, 1348178522, 1348178516, 1348178513, 1348178508, 1348178505, 1348178479, 1348178474, 1348178469, 1348178463, 1348178461, 1348178430, 1348178426, 1348178421, 1348178414, 1348178410, 1348178406, 1348178383, 1348178378, 1348178373, 1348178324, 1348178319, 1348178314, 1348178309, 1348178303, 1348178302, 1348178270, 1348178264, 1348178248]} final : True mtd_id 4302 list_pids : [1348178681, 1348178676, 1348178672, 1348178664, 1348178655, 1348178649, 1348178607, 1348178602, 1348178600] Looping around the photos to save general results len do output : 1 /21828132Didn'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, '2700430') ('4302', '21828132', '1348178681', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178676', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178672', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178664', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178655', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178649', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178607', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178602', None, None, None, None, None, '2700430') ('4302', None, None, None, None, None, None, None, '2700430') ('4302', '21828132', '1348178600', None, None, None, None, None, '2700430') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21828132', 'None', None, None, None, None, '2700430'), ('4302', '21828132', '1348178681', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178676', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178672', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178664', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178655', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178649', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178607', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178602', None, None, None, None, None, '2700430'), ('4302', '21828132', '1348178600', None, None, None, None, None, '2700430')] time used for this insertion : 0.013772726058959961 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.6076023578643799 time spend to save output : 0.014052629470825195 total time spend for step 5 : 0.6216549873352051 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 (2700430) 2.08user 2.35system 0:10.57elapsed 42%CPU (0avgtext+0avgdata 160880maxresident)k 2368inputs+13144outputs (52major+72477minor)pagefaults 0swaps