result : ((1347594572,), (1347594618,), (1347594655,), (1347595286,), (1347595311,), (1347595342,), (1347595358,), (1347595380,), (1347595661,), (1347595690,), (1347595715,), (1347595732,), (1347595779,), (1347595949,), (1347595955,), (1347595966,), (1347595987,), (1347596000,), (1347596013,), (1347596139,), (1347596167,), (1347596199,), (1347596229,), (1347596527,), (1347596774,), (1347596805,), (1347596828,), (1347596833,), (1347596857,), (1347596994,), (1347597043,), (1347597099,), (1347597127,), (1347597568,), (1347597616,), (1347597638,), (1347597657,), (1347597688,), (1347597710,), (1347597844,), (1347597850,), (1347597853,), (1347597867,), (1347598153,), (1347598177,), (1347598187,), (1347598225,), (1347598251,), (1347598282,)) 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 (1347596000) 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 21745347 , 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=21745274 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='Carton_brun' 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 (21745347) result : ((1347597450,), (1347598000,), (1347598008,), (1347598010,), (1347598011,), (1347598012,), (1347598093,), (1347598094,), (1347598154,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21745274) result : ((1347594572,), (1347594618,), (1347594655,), (1347595286,), (1347595311,), (1347595342,), (1347595358,), (1347595380,), (1347595661,), (1347595690,), (1347595715,), (1347595732,), (1347595779,), (1347595949,), (1347595955,), (1347595966,), (1347595987,), (1347596000,), (1347596013,), (1347596139,), (1347596167,), (1347596199,), (1347596229,), (1347596527,), (1347596774,), (1347596805,), (1347596828,), (1347596833,), (1347596857,), (1347596994,), (1347597043,), (1347597099,), (1347597127,), (1347597568,), (1347597616,), (1347597638,), (1347597657,), (1347597688,), (1347597710,), (1347597844,), (1347597850,), (1347597853,), (1347597867,), (1347598153,), (1347598177,), (1347598187,), (1347598225,), (1347598251,), (1347598282,)) 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 (1347596000) 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 21745348 , 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=21745274 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 (21745348) result : ((1347597424,), (1347597978,), (1347597979,), (1347598002,), (1347598146,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21745274) result : ((1347594572,), (1347594618,), (1347594655,), (1347595286,), (1347595311,), (1347595342,), (1347595358,), (1347595380,), (1347595661,), (1347595690,), (1347595715,), (1347595732,), (1347595779,), (1347595949,), (1347595955,), (1347595966,), (1347595987,), (1347596000,), (1347596013,), (1347596139,), (1347596167,), (1347596199,), (1347596229,), (1347596527,), (1347596774,), (1347596805,), (1347596828,), (1347596833,), (1347596857,), (1347596994,), (1347597043,), (1347597099,), (1347597127,), (1347597568,), (1347597616,), (1347597638,), (1347597657,), (1347597688,), (1347597710,), (1347597844,), (1347597850,), (1347597853,), (1347597867,), (1347598153,), (1347598177,), (1347598187,), (1347598225,), (1347598251,), (1347598282,)) 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 (1347596000) 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 21745349 , 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=21745274 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='papier' 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 (21745349) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21745274) result : ((1347594572,), (1347594618,), (1347594655,), (1347595286,), (1347595311,), (1347595342,), (1347595358,), (1347595380,), (1347595661,), (1347595690,), (1347595715,), (1347595732,), (1347595779,), (1347595949,), (1347595955,), (1347595966,), (1347595987,), (1347596000,), (1347596013,), (1347596139,), (1347596167,), (1347596199,), (1347596229,), (1347596527,), (1347596774,), (1347596805,), (1347596828,), (1347596833,), (1347596857,), (1347596994,), (1347597043,), (1347597099,), (1347597127,), (1347597568,), (1347597616,), (1347597638,), (1347597657,), (1347597688,), (1347597710,), (1347597844,), (1347597850,), (1347597853,), (1347597867,), (1347598153,), (1347598177,), (1347598187,), (1347598225,), (1347598251,), (1347598282,)) 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 (1347596000) 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`=21745274 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_brun','Teint_Dans_La_Masse','metal','flou','environnement','plastique','kraft','autre_refus','mal_croppe','Carton_gris','papier')) 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`=21745274 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_brun','Teint_Dans_La_Masse','metal','flou','environnement','plastique','kraft','autre_refus','mal_croppe','Carton_gris','papier')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 21745274, 'sub_port_id': 21745351, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14269998, 'last_updated_at': datetime.datetime(2025, 3, 26, 20, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 20, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 20, 4, 30)}, 'kraft': {'main_port_id': 21745274, 'sub_port_id': 21745352, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14269999, 'last_updated_at': datetime.datetime(2025, 3, 26, 20, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 20, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 20, 4, 30)}, 'autre_refus': {'main_port_id': 21745274, 'sub_port_id': 21745353, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14270000, 'last_updated_at': datetime.datetime(2025, 3, 26, 20, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 20, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 20, 4, 30)}, 'Carton_gris': {'main_port_id': 21745274, 'sub_port_id': 21745354, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14270001, 'last_updated_at': datetime.datetime(2025, 3, 26, 20, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 20, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 20, 4, 30)}, 'environnement': {'main_port_id': 21745274, 'sub_port_id': 21745355, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14270002, 'last_updated_at': datetime.datetime(2025, 3, 26, 20, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 20, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 20, 4, 30)}, 'cartonnette': {'main_port_id': 21745274, 'sub_port_id': 21745356, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14270003, 'last_updated_at': datetime.datetime(2025, 3, 26, 20, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 20, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 20, 4, 30)}, 'metal': {'main_port_id': 21745274, 'sub_port_id': 21745357, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14270004, 'last_updated_at': datetime.datetime(2025, 3, 26, 20, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 20, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 20, 4, 30)}, 'plastique': {'main_port_id': 21745274, 'sub_port_id': 21745358, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14270005, 'last_updated_at': datetime.datetime(2025, 3, 26, 20, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 20, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 20, 4, 30)}, 'flou': {'main_port_id': 21745274, 'sub_port_id': 21745359, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14270006, 'last_updated_at': datetime.datetime(2025, 3, 26, 20, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 20, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 20, 4, 30)}, 'Carton_brun': {'main_port_id': 21745274, 'sub_port_id': 21745360, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14270007, 'last_updated_at': datetime.datetime(2025, 3, 26, 20, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 20, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 20, 4, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 21745274, 'sub_port_id': 21745361, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14270008, 'last_updated_at': datetime.datetime(2025, 3, 26, 20, 4, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 20, 4, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 20, 4, 30)}, 'papier': {'main_port_id': 21745274, 'sub_port_id': 21745362, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14270009, 'last_updated_at': datetime.datetime(2025, 3, 26, 20, 11), 'last_updated_at_desc': datetime.datetime(2025, 3, 26, 20, 11), 'last_updated_at_asc': datetime.datetime(2025, 3, 26, 20, 4, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21745351,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21745338 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21745352,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21745339 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21745353,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21745340 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21745354,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21745341 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21745355,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21745342 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21745356,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21745343 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21745357,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21745344 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21745358,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21745345 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21745359,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21745346 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21745360,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21745347 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21745361,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21745348 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21745362,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21745349 lien utilise dans velours : https://www.fotonower.com/velours/21745351,21745352,21745353,21745354,21745355,21745356,21745357,21745358,21745359,21745360,21745361,21745362?tags=mal_croppe,kraft,autre_refus,Carton_gris,environnement,cartonnette,metal,plastique,flou,Carton_brun,Teint_Dans_La_Masse,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21745274]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1347598282, 1347598251, 1347598225, 1347598187, 1347598177, 1347598153, 1347597867, 1347597853, 1347597850, 1347597844] map_info['map_portfolio_photo'] : {21745274: [1347598282, 1347598251, 1347598225, 1347598187, 1347598177, 1347598153, 1347597867, 1347597853, 1347597850, 1347597844, 1347597710, 1347597688, 1347597657, 1347597638, 1347597616, 1347597568, 1347597127, 1347597099, 1347597043, 1347596994, 1347596857, 1347596833, 1347596828, 1347596805, 1347596774, 1347596527, 1347596229, 1347596199, 1347596167, 1347596139, 1347596013, 1347596000, 1347595987, 1347595966, 1347595955, 1347595949, 1347595779, 1347595732, 1347595715, 1347595690, 1347595661, 1347595380, 1347595358, 1347595342, 1347595311, 1347595286, 1347594655, 1347594618, 1347594572]} final : False mtd_id 4302 list_pids : [1347598282, 1347598251, 1347598225, 1347598187, 1347598177, 1347598153, 1347597867, 1347597853, 1347597850, 1347597844] Looping around the photos to save general results len do output : 1 /21745274. 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, '2694088') ('4302', '21745274', '1347598282', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347598251', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347598225', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347598187', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347598177', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347598153', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347597867', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347597853', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347597850', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347597844', None, None, None, None, None, '2694088') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '21745274', "{'mal_croppe': 21745338, 'kraft': 21745339, 'autre_refus': 21745340, 'Carton_gris': 21745341, 'environnement': 21745342, 'cartonnette': 21745343, 'metal': 21745344, 'plastique': 21745345, 'flou': 21745346, 'Carton_brun': 21745347, 'Teint_Dans_La_Masse': 21745348, 'papier': 21745349}", None, None, None, None, '2694088'), ('4302', '21745274', '1347598282', None, None, None, None, None, '2694088'), ('4302', '21745274', '1347598251', None, None, None, None, None, '2694088'), ('4302', '21745274', '1347598225', None, None, None, None, None, '2694088'), ('4302', '21745274', '1347598187', None, None, None, None, None, '2694088'), ('4302', '21745274', '1347598177', None, None, None, None, None, '2694088'), ('4302', '21745274', '1347598153', None, None, None, None, None, '2694088'), ('4302', '21745274', '1347597867', None, None, None, None, None, '2694088'), ('4302', '21745274', '1347597853', None, None, None, None, None, '2694088'), ('4302', '21745274', '1347597850', None, None, None, None, None, '2694088'), ('4302', '21745274', '1347597844', None, None, None, None, None, '2694088')] time used for this insertion : 0.016289710998535156 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.9159770011901855 time spend to save output : 0.01658010482788086 total time spend for step 1 : 4.932557106018066 step2:final Wed Mar 26 20:12:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 (21745274) 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 21745274 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1347594655,1347594618,1347594572,1347595380,1347595358,1347595342,1347595311,1347595286,1347595779,1347595732,1347595715,1347595690,1347595661,1347596013,1347596000,1347595987,1347595966,1347595955,1347595949,1347596229,1347596199,1347596167,1347596139,1347596857,1347596527,1347596833,1347596828,1347596805,1347596774,1347597127,1347597099,1347597043,1347596994,1347597710,1347597688,1347597657,1347597638,1347597616,1347597568,1347597867,1347597853,1347597850,1347597844,1347598282,1347598251,1347598225,1347598187,1347598177,1347598153); 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([21745274]) Inside saveOutput : final : False verbose : True original output for save of step final : {1347598282: ('0.034239226101663134',), 1347598251: ('0.034239226101663134',), 1347598225: ('0.034239226101663134',), 1347598187: ('0.034239226101663134',), 1347598177: ('0.034239226101663134',), 1347598153: ('0.034239226101663134',), 1347597867: ('0.034239226101663134',), 1347597853: ('0.034239226101663134',), 1347597850: ('0.034239226101663134',), 1347597844: ('0.034239226101663134',)} new output for save of step final : {1347598282: ('0.034239226101663134',), 1347598251: ('0.034239226101663134',), 1347598225: ('0.034239226101663134',), 1347598187: ('0.034239226101663134',), 1347598177: ('0.034239226101663134',), 1347598153: ('0.034239226101663134',), 1347597867: ('0.034239226101663134',), 1347597853: ('0.034239226101663134',), 1347597850: ('0.034239226101663134',), 1347597844: ('0.034239226101663134',)} [1347598282, 1347598251, 1347598225, 1347598187, 1347598177, 1347598153, 1347597867, 1347597853, 1347597850, 1347597844] map_info['map_portfolio_photo'] : {21745274: [1347598282, 1347598251, 1347598225, 1347598187, 1347598177, 1347598153, 1347597867, 1347597853, 1347597850, 1347597844, 1347597710, 1347597688, 1347597657, 1347597638, 1347597616, 1347597568, 1347597127, 1347597099, 1347597043, 1347596994, 1347596857, 1347596833, 1347596828, 1347596805, 1347596774, 1347596527, 1347596229, 1347596199, 1347596167, 1347596139, 1347596013, 1347596000, 1347595987, 1347595966, 1347595955, 1347595949, 1347595779, 1347595732, 1347595715, 1347595690, 1347595661, 1347595380, 1347595358, 1347595342, 1347595311, 1347595286, 1347594655, 1347594618, 1347594572]} final : False mtd_id 4302 list_pids : [1347598282, 1347598251, 1347598225, 1347598187, 1347598177, 1347598153, 1347597867, 1347597853, 1347597850, 1347597844] Looping around the photos to save general results len do output : 10 /1347598282.Didn't retrieve data . /1347598251.Didn't retrieve data . /1347598225.Didn't retrieve data . /1347598187.Didn't retrieve data . /1347598177.Didn't retrieve data . /1347598153.Didn't retrieve data . /1347597867.Didn't retrieve data . /1347597853.Didn't retrieve data . /1347597850.Didn't retrieve data . /1347597844.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, '2694088') ('4302', '21745274', '1347598282', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347598251', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347598225', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347598187', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347598177', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347598153', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347597867', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347597853', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347597850', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347597844', None, None, None, None, None, '2694088') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '21745274', '1347598282', '0.034239226101663134', None, None, None, None, '2694088'), ('4302', '21745274', '1347598251', '0.034239226101663134', None, None, None, None, '2694088'), ('4302', '21745274', '1347598225', '0.034239226101663134', None, None, None, None, '2694088'), ('4302', '21745274', '1347598187', '0.034239226101663134', None, None, None, None, '2694088'), ('4302', '21745274', '1347598177', '0.034239226101663134', None, None, None, None, '2694088'), ('4302', '21745274', '1347598153', '0.034239226101663134', None, None, None, None, '2694088'), ('4302', '21745274', '1347597867', '0.034239226101663134', None, None, None, None, '2694088'), ('4302', '21745274', '1347597853', '0.034239226101663134', None, None, None, None, '2694088'), ('4302', '21745274', '1347597850', '0.034239226101663134', None, None, None, None, '2694088'), ('4302', '21745274', '1347597844', '0.034239226101663134', None, None, None, None, '2694088')] time used for this insertion : 0.023098468780517578 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06914138793945312 time spend to save output : 0.02379918098449707 total time spend for step 2 : 0.0929405689239502 step3:velours_tree Wed Mar 26 20:12:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21745274: [{'mal_croppe': 21745338, 'kraft': 21745339, 'autre_refus': 21745340, 'Carton_gris': 21745341, 'environnement': 21745342, 'cartonnette': 21745343, 'metal': 21745344, 'plastique': 21745345, 'flou': 21745346, 'Carton_brun': 21745347, 'Teint_Dans_La_Masse': 21745348, 'papier': 21745349}]} input_args_next_step : {21745274: ()} output_args : {21745274: [{'mal_croppe': 21745338, 'kraft': 21745339, 'autre_refus': 21745340, 'Carton_gris': 21745341, 'environnement': 21745342, 'cartonnette': 21745343, 'metal': 21745344, 'plastique': 21745345, 'flou': 21745346, 'Carton_brun': 21745347, 'Teint_Dans_La_Masse': 21745348, 'papier': 21745349}]} args : 21745274 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 : ({'mal_croppe': 21745338, 'kraft': 21745339, 'autre_refus': 21745340, 'Carton_gris': 21745341, 'environnement': 21745342, 'cartonnette': 21745343, 'metal': 21745344, 'plastique': 21745345, 'flou': 21745346, 'Carton_brun': 21745347, 'Teint_Dans_La_Masse': 21745348, 'papier': 21745349},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21745274) 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([21745274]) 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.3867678642272949 time spend to save output : 5.14984130859375e-05 total time spend for step 3 : 0.38681936264038086 step4:send_mail_cod Wed Mar 26 20:12: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 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 : {1347598282: ('0.034239226101663134',), 1347598251: ('0.034239226101663134',), 1347598225: ('0.034239226101663134',), 1347598187: ('0.034239226101663134',), 1347598177: ('0.034239226101663134',), 1347598153: ('0.034239226101663134',), 1347597867: ('0.034239226101663134',), 1347597853: ('0.034239226101663134',), 1347597850: ('0.034239226101663134',), 1347597844: ('0.034239226101663134',)} input_args_next_step : {1347598282: ()} output_args : {1347598282: ('0.034239226101663134',), 1347598251: ('0.034239226101663134',), 1347598225: ('0.034239226101663134',), 1347598187: ('0.034239226101663134',), 1347598177: ('0.034239226101663134',), 1347598153: ('0.034239226101663134',), 1347597867: ('0.034239226101663134',), 1347597853: ('0.034239226101663134',), 1347597850: ('0.034239226101663134',), 1347597844: ('0.034239226101663134',)} args : 1347598282 depend.output_id : 0 input_args_next_step : {1347598282: ('0.034239226101663134',), 1347598251: ()} output_args : {1347598282: ('0.034239226101663134',), 1347598251: ('0.034239226101663134',), 1347598225: ('0.034239226101663134',), 1347598187: ('0.034239226101663134',), 1347598177: ('0.034239226101663134',), 1347598153: ('0.034239226101663134',), 1347597867: ('0.034239226101663134',), 1347597853: ('0.034239226101663134',), 1347597850: ('0.034239226101663134',), 1347597844: ('0.034239226101663134',)} args : 1347598251 depend.output_id : 0 input_args_next_step : {1347598282: ('0.034239226101663134',), 1347598251: ('0.034239226101663134',), 1347598225: ()} output_args : {1347598282: ('0.034239226101663134',), 1347598251: ('0.034239226101663134',), 1347598225: ('0.034239226101663134',), 1347598187: ('0.034239226101663134',), 1347598177: ('0.034239226101663134',), 1347598153: ('0.034239226101663134',), 1347597867: ('0.034239226101663134',), 1347597853: ('0.034239226101663134',), 1347597850: ('0.034239226101663134',), 1347597844: ('0.034239226101663134',)} args : 1347598225 depend.output_id : 0 input_args_next_step : {1347598282: ('0.034239226101663134',), 1347598251: ('0.034239226101663134',), 1347598225: ('0.034239226101663134',), 1347598187: ()} output_args : {1347598282: ('0.034239226101663134',), 1347598251: ('0.034239226101663134',), 1347598225: ('0.034239226101663134',), 1347598187: ('0.034239226101663134',), 1347598177: ('0.034239226101663134',), 1347598153: ('0.034239226101663134',), 1347597867: ('0.034239226101663134',), 1347597853: ('0.034239226101663134',), 1347597850: ('0.034239226101663134',), 1347597844: ('0.034239226101663134',)} args : 1347598187 depend.output_id : 0 input_args_next_step : {1347598282: ('0.034239226101663134',), 1347598251: ('0.034239226101663134',), 1347598225: ('0.034239226101663134',), 1347598187: ('0.034239226101663134',), 1347598177: ()} output_args : {1347598282: ('0.034239226101663134',), 1347598251: ('0.034239226101663134',), 1347598225: ('0.034239226101663134',), 1347598187: ('0.034239226101663134',), 1347598177: ('0.034239226101663134',), 1347598153: ('0.034239226101663134',), 1347597867: ('0.034239226101663134',), 1347597853: ('0.034239226101663134',), 1347597850: ('0.034239226101663134',), 1347597844: ('0.034239226101663134',)} args : 1347598177 depend.output_id : 0 input_args_next_step : {1347598282: ('0.034239226101663134',), 1347598251: ('0.034239226101663134',), 1347598225: ('0.034239226101663134',), 1347598187: ('0.034239226101663134',), 1347598177: ('0.034239226101663134',), 1347598153: ()} output_args : {1347598282: ('0.034239226101663134',), 1347598251: ('0.034239226101663134',), 1347598225: ('0.034239226101663134',), 1347598187: ('0.034239226101663134',), 1347598177: ('0.034239226101663134',), 1347598153: ('0.034239226101663134',), 1347597867: ('0.034239226101663134',), 1347597853: ('0.034239226101663134',), 1347597850: ('0.034239226101663134',), 1347597844: ('0.034239226101663134',)} args : 1347598153 depend.output_id : 0 input_args_next_step : {1347598282: ('0.034239226101663134',), 1347598251: ('0.034239226101663134',), 1347598225: ('0.034239226101663134',), 1347598187: ('0.034239226101663134',), 1347598177: ('0.034239226101663134',), 1347598153: ('0.034239226101663134',), 1347597867: ()} output_args : {1347598282: ('0.034239226101663134',), 1347598251: ('0.034239226101663134',), 1347598225: ('0.034239226101663134',), 1347598187: ('0.034239226101663134',), 1347598177: ('0.034239226101663134',), 1347598153: ('0.034239226101663134',), 1347597867: ('0.034239226101663134',), 1347597853: ('0.034239226101663134',), 1347597850: ('0.034239226101663134',), 1347597844: ('0.034239226101663134',)} args : 1347597867 depend.output_id : 0 input_args_next_step : {1347598282: ('0.034239226101663134',), 1347598251: ('0.034239226101663134',), 1347598225: ('0.034239226101663134',), 1347598187: ('0.034239226101663134',), 1347598177: ('0.034239226101663134',), 1347598153: ('0.034239226101663134',), 1347597867: ('0.034239226101663134',), 1347597853: ()} output_args : {1347598282: ('0.034239226101663134',), 1347598251: ('0.034239226101663134',), 1347598225: ('0.034239226101663134',), 1347598187: ('0.034239226101663134',), 1347598177: ('0.034239226101663134',), 1347598153: ('0.034239226101663134',), 1347597867: ('0.034239226101663134',), 1347597853: ('0.034239226101663134',), 1347597850: ('0.034239226101663134',), 1347597844: ('0.034239226101663134',)} args : 1347597853 depend.output_id : 0 input_args_next_step : {1347598282: ('0.034239226101663134',), 1347598251: ('0.034239226101663134',), 1347598225: ('0.034239226101663134',), 1347598187: ('0.034239226101663134',), 1347598177: ('0.034239226101663134',), 1347598153: ('0.034239226101663134',), 1347597867: ('0.034239226101663134',), 1347597853: ('0.034239226101663134',), 1347597850: ()} output_args : {1347598282: ('0.034239226101663134',), 1347598251: ('0.034239226101663134',), 1347598225: ('0.034239226101663134',), 1347598187: ('0.034239226101663134',), 1347598177: ('0.034239226101663134',), 1347598153: ('0.034239226101663134',), 1347597867: ('0.034239226101663134',), 1347597853: ('0.034239226101663134',), 1347597850: ('0.034239226101663134',), 1347597844: ('0.034239226101663134',)} args : 1347597850 depend.output_id : 0 input_args_next_step : {1347598282: ('0.034239226101663134',), 1347598251: ('0.034239226101663134',), 1347598225: ('0.034239226101663134',), 1347598187: ('0.034239226101663134',), 1347598177: ('0.034239226101663134',), 1347598153: ('0.034239226101663134',), 1347597867: ('0.034239226101663134',), 1347597853: ('0.034239226101663134',), 1347597850: ('0.034239226101663134',), 1347597844: ()} output_args : {1347598282: ('0.034239226101663134',), 1347598251: ('0.034239226101663134',), 1347598225: ('0.034239226101663134',), 1347598187: ('0.034239226101663134',), 1347598177: ('0.034239226101663134',), 1347598153: ('0.034239226101663134',), 1347597867: ('0.034239226101663134',), 1347597853: ('0.034239226101663134',), 1347597850: ('0.034239226101663134',), 1347597844: ('0.034239226101663134',)} args : 1347597844 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 : {21745274: [{'mal_croppe': 21745338, 'kraft': 21745339, 'autre_refus': 21745340, 'Carton_gris': 21745341, 'environnement': 21745342, 'cartonnette': 21745343, 'metal': 21745344, 'plastique': 21745345, 'flou': 21745346, 'Carton_brun': 21745347, 'Teint_Dans_La_Masse': 21745348, 'papier': 21745349}]} input_args_next_step : {1347598282: ('0.034239226101663134',), 1347598251: ('0.034239226101663134',), 1347598225: ('0.034239226101663134',), 1347598187: ('0.034239226101663134',), 1347598177: ('0.034239226101663134',), 1347598153: ('0.034239226101663134',), 1347597867: ('0.034239226101663134',), 1347597853: ('0.034239226101663134',), 1347597850: ('0.034239226101663134',), 1347597844: ('0.034239226101663134',), 21745274: ()} output_args : {21745274: [{'mal_croppe': 21745338, 'kraft': 21745339, 'autre_refus': 21745340, 'Carton_gris': 21745341, 'environnement': 21745342, 'cartonnette': 21745343, 'metal': 21745344, 'plastique': 21745345, 'flou': 21745346, 'Carton_brun': 21745347, 'Teint_Dans_La_Masse': 21745348, 'papier': 21745349}]} args : 21745274 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 :11, first value : ('0.034239226101663134',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21745274) 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 (1347598282,1347598251,1347598225,1347598187,1347598177,1347598153,1347597867,1347597853,1347597850,1347597844) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1347597844 begin to download photo : 1347597867 begin to download photo : 1347598187 begin to download photo : 1347598282 download finish for photo 1347598282 download finish for photo 1347597867 begin to download photo : 1347598153 download finish for photo 1347598187 begin to download photo : 1347598225 download finish for photo 1347597844 begin to download photo : 1347597850 download finish for photo 1347598225 begin to download photo : 1347598251 download finish for photo 1347597850 begin to download photo : 1347597853 download finish for photo 1347598153 begin to download photo : 1347598177 download finish for photo 1347597853 download finish for photo 1347598251 download finish for photo 1347598177 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette217453381743016324/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P21745274_26-03-2025_20_12_04.pdf 21745338 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=21745338 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217453381743016324 21745339 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=21745339 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347598067: '1743016175_2191440_1347596229_5477f0bb3dbd395da186b29c3fdee45b_rle_crop_3731788571_0.png'} change filename to text .imagette217453391743016324/ imagette217453391743016324/1743016175_2191440_1347596229_5477f0bb3dbd395da186b29c3fdee45b_rle_crop_3731788571_0.png.png imagette217453401743016324/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/25486abfb948a43501dbd8d3673b8b5d_42016117.png imagette217453391743016324 21745340 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=21745340 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217453401743016324 21745343 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=21745343 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347597442: '1743016091_2189578_1347595779_17686159d02b2523df3751464bbf0cc6_rle_crop_3731786822_0.png', 1347597443: '1743016091_2189578_1347595311_a585896e1630cf0c411e77d8bb93f84d_rle_crop_3731786963_0.png', 1347597990: '1743016175_2191440_1347595987_f49767ae34a51f26f04257d61b1c8275_rle_crop_3731788698_0.png', 1347597992: '1743016175_2191440_1347595955_5b22b396986f8898792b2a78475554fc_rle_crop_3731788731_0.png', 1347597993: '1743016175_2191440_1347595949_bae451a10f97635900bee75794fe4745_rle_crop_3731788749_0.png', 1347598068: '1743016194_2191845_1347595690_abf553ba7cf13ac72fd99820b0a348af_rle_crop_3731787038_0.png', 1347598151: '1743016213_2192405_1347595779_17686159d02b2523df3751464bbf0cc6_rle_crop_3731786822_0.png', 1347598152: '1743016213_2192405_1347595311_a585896e1630cf0c411e77d8bb93f84d_rle_crop_3731786963_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/c39436ef552d017965447998f5a51517_57666446.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/b6a81f1286d57a41a3b76ddadd6dbd04_30228965.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/88a186119f5cabd562a7f4ea2dc06a09_72270784.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/74d6727672b29220a7b3e3adb58133a3_40643502.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/c326454db2166aeae76f01cdbe8e6265_21984448.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/b82c320dc396242eb3ac39560a45873c_25753183.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/c39436ef552d017965447998f5a51517_89463560.png change filename to text .imagette217453431743016324/ imagette217453431743016324/1743016194_2191845_1347595690_abf553ba7cf13ac72fd99820b0a348af_rle_crop_3731787038_0.png.png imagette217453431743016324/1743016175_2191440_1347595949_bae451a10f97635900bee75794fe4745_rle_crop_3731788749_0.png.png imagette217453431743016324/1743016091_2189578_1347595779_17686159d02b2523df3751464bbf0cc6_rle_crop_3731786822_0.png.png imagette217453431743016324/1743016091_2189578_1347595311_a585896e1630cf0c411e77d8bb93f84d_rle_crop_3731786963_0.png.png imagette217453431743016324/1743016175_2191440_1347595987_f49767ae34a51f26f04257d61b1c8275_rle_crop_3731788698_0.png.png imagette217453431743016324/1743016213_2192405_1347595779_17686159d02b2523df3751464bbf0cc6_rle_crop_3731786822_0.png.png imagette217453431743016324/1743016175_2191440_1347595955_5b22b396986f8898792b2a78475554fc_rle_crop_3731788731_0.png.png imagette217453431743016324/1743016213_2192405_1347595311_a585896e1630cf0c411e77d8bb93f84d_rle_crop_3731786963_0.png.png imagette217453441743016325/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/b6a81f1286d57a41a3b76ddadd6dbd04_66294668.png imagette217453431743016324 21745344 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=21745344 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217453441743016325 21745345 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=21745345 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347596005: '1743015873_2182159_1347594655_95d9357f749b8449e65b8b925d93bbdf_rle_crop_3731777977_0.png', 1347596006: '1743015873_2182159_1347594618_a1c9adc10ef80c45cb2ea138db34055c_rle_crop_3731777992_0.png', 1347597459: '1743016091_2189578_1347595342_711142778a67ad3e758e43c29964897c_rle_crop_3731786953_0.png', 1347597460: '1743016091_2189578_1347595342_711142778a67ad3e758e43c29964897c_rle_crop_3731786950_0.png', 1347597842: '1743016153_2191027_1347596857_ed7ff77fb977f178943b267a5b63856f_rle_crop_3731788146_0.png', 1347598053: '1743016175_2191440_1347595987_f49767ae34a51f26f04257d61b1c8275_rle_crop_3731788703_0.png', 1347598159: '1743016213_2192405_1347595342_711142778a67ad3e758e43c29964897c_rle_crop_3731786953_0.png', 1347598160: '1743016213_2192405_1347595342_711142778a67ad3e758e43c29964897c_rle_crop_3731786950_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/d79f2613ac595762371051adcc03a913_52794764.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/635a7f18e5c998e0673bb255674a5591_96833122.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/91c7ecb43b248237cd733c88db994e7b_81557764.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/e466ffcbea0448b3e46c4f7f8d3a7a93_35539644.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/dcfe4944f87cf68e6eb1d44bb5aec2e9_19724985.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/f1412e3854480ee41e15623b9dfa9794_13616010.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/91c7ecb43b248237cd733c88db994e7b_18135768.png change filename to text .imagette217453451743016325/ imagette217453451743016325/1743016213_2192405_1347595342_711142778a67ad3e758e43c29964897c_rle_crop_3731786953_0.png.png imagette217453451743016325/1743016091_2189578_1347595342_711142778a67ad3e758e43c29964897c_rle_crop_3731786950_0.png.png imagette217453451743016325/1743015873_2182159_1347594618_a1c9adc10ef80c45cb2ea138db34055c_rle_crop_3731777992_0.png.png imagette217453451743016325/1743016213_2192405_1347595342_711142778a67ad3e758e43c29964897c_rle_crop_3731786950_0.png.png imagette217453451743016325/1743016175_2191440_1347595987_f49767ae34a51f26f04257d61b1c8275_rle_crop_3731788703_0.png.png imagette217453451743016325/1743016153_2191027_1347596857_ed7ff77fb977f178943b267a5b63856f_rle_crop_3731788146_0.png.png imagette217453451743016325/1743016091_2189578_1347595342_711142778a67ad3e758e43c29964897c_rle_crop_3731786953_0.png.png imagette217453451743016325/1743015873_2182159_1347594655_95d9357f749b8449e65b8b925d93bbdf_rle_crop_3731777977_0.png.png imagette217453461743016325/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/e466ffcbea0448b3e46c4f7f8d3a7a93_83517197.png imagette217453451743016325 21745346 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=21745346 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217453461743016325 21745341 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=21745341 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347596001: '1743015873_2182159_1347594655_95d9357f749b8449e65b8b925d93bbdf_rle_crop_3731777973_0.png', 1347597435: '1743016091_2189578_1347595779_17686159d02b2523df3751464bbf0cc6_rle_crop_3731786826_0.png', 1347597436: '1743016091_2189578_1347595342_711142778a67ad3e758e43c29964897c_rle_crop_3731786948_0.png', 1347598058: '1743016194_2191845_1347595715_6c14c0941130f268866142c1de731499_rle_crop_3731787021_0.png', 1347598148: '1743016213_2192405_1347595779_17686159d02b2523df3751464bbf0cc6_rle_crop_3731786826_0.png', 1347598149: '1743016213_2192405_1347595342_711142778a67ad3e758e43c29964897c_rle_crop_3731786948_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/75a599f4109a0d758e4691d5d154174b_90428391.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/d358b421c7c889e69208c28927594b0d_28007730.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/6f4665da0e3b713e62766be9d6b1b4ac_55396959.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/e4a328ee7942fb5e27d0f1c2d745e348_26037680.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/d358b421c7c889e69208c28927594b0d_15490602.png change filename to text .imagette217453411743016325/ imagette217453411743016325/1743016091_2189578_1347595779_17686159d02b2523df3751464bbf0cc6_rle_crop_3731786826_0.png.png imagette217453411743016325/1743016091_2189578_1347595342_711142778a67ad3e758e43c29964897c_rle_crop_3731786948_0.png.png imagette217453411743016325/1743016194_2191845_1347595715_6c14c0941130f268866142c1de731499_rle_crop_3731787021_0.png.png imagette217453411743016325/1743015873_2182159_1347594655_95d9357f749b8449e65b8b925d93bbdf_rle_crop_3731777973_0.png.png imagette217453411743016325/1743016213_2192405_1347595779_17686159d02b2523df3751464bbf0cc6_rle_crop_3731786826_0.png.png imagette217453411743016325/1743016213_2192405_1347595342_711142778a67ad3e758e43c29964897c_rle_crop_3731786948_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/6f4665da0e3b713e62766be9d6b1b4ac_7866645.png imagette217453411743016325 21745347 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=21745347 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347597450: '1743016091_2189578_1347595311_a585896e1630cf0c411e77d8bb93f84d_rle_crop_3731786966_0.png', 1347598000: '1743016175_2191440_1347595966_decf6017b5a947811f42a817d560257a_rle_crop_3731788713_0.png', 1347598008: '1743016175_2191440_1347595966_decf6017b5a947811f42a817d560257a_rle_crop_3731788710_0.png', 1347598010: '1743016175_2191440_1347595955_5b22b396986f8898792b2a78475554fc_rle_crop_3731788732_0.png', 1347598011: '1743016175_2191440_1347595949_bae451a10f97635900bee75794fe4745_rle_crop_3731788752_0.png', 1347598012: '1743016175_2191440_1347595949_bae451a10f97635900bee75794fe4745_rle_crop_3731788755_0.png', 1347598093: '1743016194_2191845_1347595732_274a1be2553a89b632cce9a4863241d8_rle_crop_3731787015_0.png', 1347598094: '1743016194_2191845_1347595690_abf553ba7cf13ac72fd99820b0a348af_rle_crop_3731787048_0.png', 1347598154: '1743016213_2192405_1347595311_a585896e1630cf0c411e77d8bb93f84d_rle_crop_3731786966_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/8b999c145a7a1d927e0af0351e6a933a_63911947.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/012c41e9fffb154f776fa3e46641bacc_16917056.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/ba9d7faae8e8c991f0e4dbef1154cccf_98142494.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/c440396b413a7753719b0051832d1416_80520176.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/cdc1988a47fbd3e3060c9ab99d6d9b20_23006243.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/5268ea5bbc678836f91a0d343bf1c846_25845784.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/8776fda6bcd2f1df30b8e735dc5d4911_86818281.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/a7e86e5aa07a32516c5e29b984fd2dfb_65802472.png change filename to text .imagette217453471743016326/ imagette217453471743016326/1743016175_2191440_1347595949_bae451a10f97635900bee75794fe4745_rle_crop_3731788755_0.png.png imagette217453471743016326/1743016194_2191845_1347595690_abf553ba7cf13ac72fd99820b0a348af_rle_crop_3731787048_0.png.png imagette217453471743016326/1743016175_2191440_1347595966_decf6017b5a947811f42a817d560257a_rle_crop_3731788710_0.png.png imagette217453471743016326/1743016194_2191845_1347595732_274a1be2553a89b632cce9a4863241d8_rle_crop_3731787015_0.png.png imagette217453471743016326/1743016175_2191440_1347595955_5b22b396986f8898792b2a78475554fc_rle_crop_3731788732_0.png.png imagette217453471743016326/1743016091_2189578_1347595311_a585896e1630cf0c411e77d8bb93f84d_rle_crop_3731786966_0.png.png imagette217453471743016326/1743016175_2191440_1347595966_decf6017b5a947811f42a817d560257a_rle_crop_3731788713_0.png.png imagette217453471743016326/1743016175_2191440_1347595949_bae451a10f97635900bee75794fe4745_rle_crop_3731788752_0.png.png imagette217453471743016326/1743016213_2192405_1347595311_a585896e1630cf0c411e77d8bb93f84d_rle_crop_3731786966_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/8b999c145a7a1d927e0af0351e6a933a_9369978.png imagette217453471743016326 21745348 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=21745348 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347597424: '1743016091_2189578_1347595311_a585896e1630cf0c411e77d8bb93f84d_rle_crop_3731786967_0.png', 1347597978: '1743016175_2191440_1347595955_5b22b396986f8898792b2a78475554fc_rle_crop_3731788728_0.png', 1347597979: '1743016175_2191440_1347595949_bae451a10f97635900bee75794fe4745_rle_crop_3731788757_0.png', 1347598002: '1743016194_2191845_1347595690_abf553ba7cf13ac72fd99820b0a348af_rle_crop_3731787042_0.png', 1347598146: '1743016213_2192405_1347595311_a585896e1630cf0c411e77d8bb93f84d_rle_crop_3731786967_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/37e5713dff447db9e2a839de3d696b74_71586701.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/ca3a28eac004ed1d02ae90e326006435_87052742.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/c64f513ea81500dc2b2b06b6d2cc2ddb_11375955.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/d28d4d0f2676c5ab3ea9c9eb73af1e64_57089619.png change filename to text .imagette217453481743016326/ imagette217453481743016326/1743016091_2189578_1347595311_a585896e1630cf0c411e77d8bb93f84d_rle_crop_3731786967_0.png.png imagette217453481743016326/1743016194_2191845_1347595690_abf553ba7cf13ac72fd99820b0a348af_rle_crop_3731787042_0.png.png imagette217453481743016326/1743016175_2191440_1347595955_5b22b396986f8898792b2a78475554fc_rle_crop_3731788728_0.png.png imagette217453481743016326/1743016213_2192405_1347595311_a585896e1630cf0c411e77d8bb93f84d_rle_crop_3731786967_0.png.png imagette217453481743016326/1743016175_2191440_1347595949_bae451a10f97635900bee75794fe4745_rle_crop_3731788757_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/37e5713dff447db9e2a839de3d696b74_33570540.png imagette217453481743016326 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21745274 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21745351,21745352,21745353,21745354,21745355,21745356,21745357,21745358,21745359,21745360,21745361,21745362?tags=mal_croppe,kraft,autre_refus,Carton_gris,environnement,cartonnette,metal,plastique,flou,Carton_brun,Teint_Dans_La_Masse,papier your option no_mail is active, we will not send the real mail to your client args[1347598282] : ('0.034239226101663134',) no score found for photo 1347598282 We are sending mail with results at report@fotonower.com args[1347598251] : ('0.034239226101663134',) no score found for photo 1347598251 We are sending mail with results at report@fotonower.com args[1347598225] : ('0.034239226101663134',) no score found for photo 1347598225 We are sending mail with results at report@fotonower.com args[1347598187] : ('0.034239226101663134',) no score found for photo 1347598187 We are sending mail with results at report@fotonower.com args[1347598177] : ('0.034239226101663134',) no score found for photo 1347598177 We are sending mail with results at report@fotonower.com args[1347598153] : ('0.034239226101663134',) no score found for photo 1347598153 We are sending mail with results at report@fotonower.com args[1347597867] : ('0.034239226101663134',) no score found for photo 1347597867 We are sending mail with results at report@fotonower.com args[1347597853] : ('0.034239226101663134',) no score found for photo 1347597853 We are sending mail with results at report@fotonower.com args[1347597850] : ('0.034239226101663134',) no score found for photo 1347597850 We are sending mail with results at report@fotonower.com args[1347597844] : ('0.034239226101663134',) no score found for photo 1347597844 We are sending mail with results at report@fotonower.com refus_total : 0.034239226101663134 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=21745274 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_P21745274_26-03-2025_20_12_04.pdf results_Auto_P21745274_26-03-2025_20_12_04.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21745274_26-03-2025_20_12_04.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','21745274','results_Auto_P21745274_26-03-2025_20_12_04.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21745274_26-03-2025_20_12_04.pdf','pdf','','0.19','0.034239226101663134') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21745274]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1347598282, 1347598251, 1347598225, 1347598187, 1347598177, 1347598153, 1347597867, 1347597853, 1347597850, 1347597844] map_info['map_portfolio_photo'] : {21745274: [1347598282, 1347598251, 1347598225, 1347598187, 1347598177, 1347598153, 1347597867, 1347597853, 1347597850, 1347597844, 1347597710, 1347597688, 1347597657, 1347597638, 1347597616, 1347597568, 1347597127, 1347597099, 1347597043, 1347596994, 1347596857, 1347596833, 1347596828, 1347596805, 1347596774, 1347596527, 1347596229, 1347596199, 1347596167, 1347596139, 1347596013, 1347596000, 1347595987, 1347595966, 1347595955, 1347595949, 1347595779, 1347595732, 1347595715, 1347595690, 1347595661, 1347595380, 1347595358, 1347595342, 1347595311, 1347595286, 1347594655, 1347594618, 1347594572]} final : False mtd_id 4302 list_pids : [1347598282, 1347598251, 1347598225, 1347598187, 1347598177, 1347598153, 1347597867, 1347597853, 1347597850, 1347597844] 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, '2694088') ('4302', '21745274', '1347598282', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347598251', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347598225', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347598187', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347598177', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347598153', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347597867', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347597853', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347597850', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347597844', None, None, None, None, None, '2694088') 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', '21745274', '1347598282', None, None, None, None, None, '2694088'), ('4302', '21745274', '1347598251', None, None, None, None, None, '2694088'), ('4302', '21745274', '1347598225', None, None, None, None, None, '2694088'), ('4302', '21745274', '1347598187', None, None, None, None, None, '2694088'), ('4302', '21745274', '1347598177', None, None, None, None, None, '2694088'), ('4302', '21745274', '1347598153', None, None, None, None, None, '2694088'), ('4302', '21745274', '1347597867', None, None, None, None, None, '2694088'), ('4302', '21745274', '1347597853', None, None, None, None, None, '2694088'), ('4302', '21745274', '1347597850', None, None, None, None, None, '2694088'), ('4302', '21745274', '1347597844', None, None, None, None, None, '2694088')] time used for this insertion : 0.015830039978027344 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.6782584190368652 time spend to save output : 0.016117334365844727 total time spend for step 4 : 3.69437575340271 step5:split_time_score Wed Mar 26 20:12:07 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 : ['21745274'] 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 : [('21745274',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21745274) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1347598282: {'path': 'temp/1743016324_247208_1347598282_c473cf76876808a13a8f6143565b1e63.jpg', 'extension': 'jpg'}, 1347597844: {'path': 'temp/1743016324_247208_1347597844_8d045ca5154f214ec7ebfd92a63258d5.jpg', 'extension': 'jpg'}, 1347597850: {'path': 'temp/1743016324_247208_1347597850_29ec854a6f85831b7fe46e843c99567c.jpg', 'extension': 'jpg'}, 1347597853: {'path': 'temp/1743016324_247208_1347597853_ee8211f380f692eca2188146d0f1d557.jpg', 'extension': 'jpg'}, 1347598187: {'path': 'temp/1743016324_247208_1347598187_5b5b02e46bdb3f92eaeeed1322f17744.jpg', 'extension': 'jpg'}, 1347598225: {'path': 'temp/1743016324_247208_1347598225_204960c14b40179223455f99e52521be.jpg', 'extension': 'jpg'}, 1347598251: {'path': 'temp/1743016324_247208_1347598251_524c28e48f66ca007a37fdb55ae141a9.jpg', 'extension': 'jpg'}, 1347597867: {'path': 'temp/1743016324_247208_1347597867_70144b6076bf97a3d6b3fe3f4bbb1dda.jpg', 'extension': 'jpg'}, 1347598153: {'path': 'temp/1743016324_247208_1347598153_81ab2bc06129730469a9fa726ab700ec.jpg', 'extension': 'jpg'}, 1347598177: {'path': 'temp/1743016324_247208_1347598177_6996021b90b0bc3687d213d4c801423f.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 = 21745274; (('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 = 21745274 group by h (('20', 49),) 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=21745274 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 (21745274) 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 (21745274) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 26032025 21745274 Nombre de photos uploadées : 49 / 23040 (0%) 26032025 21745274 Nombre de photos taguées (types de déchets): 0 / 49 (0%) 26032025 21745274 Nombre de photos taguées (volume) : 0 / 49 (0%) [{'photo_id': 1347594655, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/95d9357f749b8449e65b8b925d93bbdf.jpg', 'username': None, 'uploaded_at': 1743015734, 'text': 'image_26032025_20_00_14_10193.jpg'}, {'photo_id': 1347594618, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/a1c9adc10ef80c45cb2ea138db34055c.jpg', 'username': None, 'uploaded_at': 1743015734, 'text': 'image_26032025_20_00_24_10145.jpg'}, {'photo_id': 1347594572, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/7be7dde1834c902313093e10eb791ce7.jpg', 'username': None, 'uploaded_at': 1743015734, 'text': 'image_26032025_20_00_34_10136.jpg'}, {'photo_id': 1347595380, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/26/57740b34a8373e7ecb9d0600a62a319f.jpg', 'username': None, 'uploaded_at': 1743015795, 'text': 'image_26032025_20_00_45_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.814697265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.0013580322265625e-05 ????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0038461685180664062 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21745274, '2025-03-26' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1689284,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.5111846923828125 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= 1689284 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1689284, 'dashboard_run_id': 1698833, 'mtr_portfolio_id': 21742216, 'dashboard_result_id': 9646626, '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_P21742216_26-03-2025_19_34_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21742277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21742278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21742279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21742280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21742281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21742282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21742283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21742284, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21742285, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21742286, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21742287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21742288, 'pht': 3726}}"}, {'dashboat_entry_day': 1689284, 'dashboard_run_id': 1698833, 'mtr_portfolio_id': 21743303, 'dashboard_result_id': 9646628, '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_P21743303_26-03-2025_19_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21743353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21743354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21743355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21743356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21743357, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21743358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21743359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21743360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21743361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21743362, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21743363, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21743364, 'pht': 3726}}"}, {'dashboat_entry_day': 1689284, 'dashboard_run_id': 1698833, 'mtr_portfolio_id': 21744306, 'dashboard_result_id': 9646629, '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_P21744306_26-03-2025_20_05_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21744311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21744312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21744313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21744314, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21744315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21744316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21744317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21744318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21744319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21744320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21744321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21744322, 'pht': 3726}}"}, {'dashboat_entry_day': 1689284, 'dashboard_run_id': 1698833, 'mtr_portfolio_id': 21745274, 'dashboard_result_id': 9646631, '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_P21745274_26-03-2025_20_11_01.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21745338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21745339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21745340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21745341, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21745342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21745343, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21745344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21745345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21745346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21745347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21745348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21745349, '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 = 21742216 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': 2693871, 'mtr_portfolio_id': 21742216, 'created_at': datetime.datetime(2025, 3, 26, 19, 34, 58), 'result': '0.033219398591330655', 'result_long': None, 'result_double': None}] Qualite : 0.033219398591330655 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21742216 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21742216_26-03-2025_19_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21742216 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_P21742216_26-03-2025_19_34_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21742277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21742278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21742279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21742280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21742281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21742282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21742283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21742284, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21742285, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21742286, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21742287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21742288, 'pht': 3726}}" where mtr_portfolio_id = 21742216 and dashboard_run_id = 1698833 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`=21742216 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9646626, 0.033219398591330655, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21742216_26-03-2025_19_34_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21742277, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21742278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21742279, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21742280, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21742281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21742282, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21742283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21742284, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21742285, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21742286, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21742287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21742288, '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 = 21743303 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': 2693953, 'mtr_portfolio_id': 21743303, 'created_at': datetime.datetime(2025, 3, 26, 19, 48, 59), 'result': '0.03897351687022581', 'result_long': None, 'result_double': None}] Qualite : 0.03897351687022581 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21743303 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21743303_26-03-2025_19_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21743303 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_P21743303_26-03-2025_19_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21743353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21743354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21743355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21743356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21743357, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21743358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21743359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21743360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21743361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21743362, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21743363, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21743364, 'pht': 3726}}" where mtr_portfolio_id = 21743303 and dashboard_run_id = 1698833 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`=21743303 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9646628, 0.03897351687022581, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21743303_26-03-2025_19_48_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21743353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21743354, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21743355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21743356, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21743357, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21743358, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21743359, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21743360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21743361, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21743362, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21743363, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21743364, '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 = 21744306 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': 2694004, 'mtr_portfolio_id': 21744306, 'created_at': datetime.datetime(2025, 3, 26, 20, 5, 7), 'result': '0.03898608054257095', 'result_long': None, 'result_double': None}] Qualite : 0.03898608054257095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21744306 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21744306_26-03-2025_20_05_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21744306 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_P21744306_26-03-2025_20_05_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21744311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21744312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21744313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21744314, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21744315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21744316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21744317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21744318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21744319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21744320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21744321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21744322, 'pht': 3726}}" where mtr_portfolio_id = 21744306 and dashboard_run_id = 1698833 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`=21744306 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9646629, 0.03898608054257095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21744306_26-03-2025_20_05_07.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21744311, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21744312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21744313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21744314, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21744315, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21744316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21744317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21744318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21744319, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21744320, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21744321, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21744322, '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 = 21745274 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': 2694088, 'mtr_portfolio_id': 21745274, 'created_at': datetime.datetime(2025, 3, 26, 20, 12, 3), 'result': '0.034239226101663134', 'result_long': None, 'result_double': None}] Qualite : 0.034239226101663134 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21745274 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21745274_26-03-2025_20_12_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21745274 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_P21745274_26-03-2025_20_12_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21745338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21745339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21745340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21745341, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21745342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21745343, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21745344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21745345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21745346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21745347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21745348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21745349, 'pht': 3726}}" where mtr_portfolio_id = 21745274 and dashboard_run_id = 1698833 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`=21745274 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9646631, 0.034239226101663134, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21745274_26-03-2025_20_12_04.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21745338, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21745339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21745340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21745341, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21745342, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21745343, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21745344, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21745345, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21745346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21745347, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21745348, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21745349, '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 (21742216,21743303,21744306,21745274) result : ((1347576018,), (1347576032,), (1347576066,), (1347576079,), (1347576525,), (1347576576,), (1347576664,), (1347576700,), (1347576829,), (1347577425,), (1347577450,), (1347577522,), (1347577531,), (1347577541,), (1347577812,), (1347577814,), (1347577816,), (1347577821,), (1347577844,), (1347578034,), (1347578081,), (1347578178,), (1347578252,), (1347578282,), (1347578317,), (1347578458,), (1347578479,), (1347578487,), (1347578503,), (1347578828,), (1347578863,), (1347578877,), (1347578909,), (1347578927,), (1347579480,), (1347579552,), (1347579659,), (1347579700,), (1347579714,), (1347579729,), (1347579834,), (1347579836,), (1347579867,), (1347580213,), (1347580285,), (1347580336,), (1347580405,), (1347580464,), (1347580525,), (1347580996,), (1347581040,), (1347581060,), (1347581089,), (1347581428,), (1347581461,), (1347581468,), (1347581487,), (1347581566,), (1347581574,), (1347581914,), (1347581917,), (1347581925,), (1347581999,), (1347582002,), (1347582007,), (1347582018,), (1347582044,), (1347582070,), (1347582294,), (1347582309,), (1347582325,), (1347582678,), (1347582502,), (1347582508,), (1347582511,), (1347582525,), (1347582551,), (1347582777,), (1347582784,), (1347582817,), (1347583130,), (1347583141,), (1347583146,), (1347583148,), (1347583171,), (1347583267,), (1347583373,), (1347583377,), (1347583381,), (1347583435,), (1347583448,), (1347583857,), (1347583864,), (1347583869,), (1347583879,), (1347583898,), (1347584097,), (1347584100,), (1347584106,), (1347584423,), (1347584465,), (1347584478,), (1347584523,), (1347584525,), (1347584547,), (1347584561,), (1347584565,), (1347584650,), (1347584672,), (1347584682,), (1347584685,), (1347585023,), (1347585067,), (1347585130,), (1347585174,), (1347585222,), (1347585292,), (1347585605,), (1347585646,), (1347585700,), (1347586085,), (1347586120,), (1347586132,), (1347586158,), (1347586188,), (1347586244,), (1347586564,), (1347586570,), (1347586574,), (1347586577,), (1347586582,), (1347586702,), (1347586730,), (1347586754,), (1347586776,), (1347586943,), (1347586926,), (1347586932,), (1347586935,), (1347586938,), (1347586941,), (1347587195,), (1347587345,), (1347587437,), (1347587474,), (1347587597,), (1347588003,), (1347588026,), (1347588034,), (1347588046,), (1347588064,), (1347588313,), (1347588349,), (1347588385,), (1347588431,), (1347588459,), (1347588505,), (1347588861,), (1347588910,), (1347588945,), (1347588961,), (1347588990,), (1347589295,), (1347589324,), (1347589397,), (1347589452,), (1347589797,), (1347589836,), (1347589866,), (1347589891,), (1347589933,), (1347589957,), (1347590407,), (1347590469,), (1347590524,), (1347590556,), (1347590899,), (1347590944,), (1347591006,), (1347591050,), (1347591077,), (1347591114,), (1347591246,), (1347591250,), (1347591258,), (1347591613,), (1347591751,), (1347591803,), (1347591848,), (1347591877,), (1347591898,), (1347592029,), (1347592065,), (1347592111,), (1347592125,), (1347592148,), (1347592747,), (1347592791,), (1347592849,), (1347592886,), (1347594016,), (1347594060,), (1347594086,), (1347594095,), (1347594100,), (1347594136,), (1347594749,), (1347594572,), (1347594618,), (1347594655,), (1347595286,), (1347595311,), (1347595342,), (1347595358,), (1347595380,), (1347595661,), (1347595690,), (1347595715,), (1347595732,), (1347595779,), (1347595949,), (1347595955,), (1347595966,), (1347595987,), (1347596000,), (1347596013,), (1347596139,), (1347596167,), (1347596199,), (1347596229,), (1347596527,), (1347596774,), (1347596805,), (1347596828,), (1347596833,), (1347596857,), (1347596994,), (1347597043,), (1347597099,), (1347597127,), (1347597568,), (1347597616,), (1347597638,), (1347597657,), (1347597688,), (1347597710,), (1347597844,), (1347597850,), (1347597853,), (1347597867,), (1347598153,), (1347598177,), (1347598187,), (1347598225,), (1347598251,), (1347598282,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'26032025': {'nb_upload': 49, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21745274]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1347598282, 1347598251, 1347598225, 1347598187, 1347598177, 1347598153, 1347597867, 1347597853, 1347597850, 1347597844] map_info['map_portfolio_photo'] : {21745274: [1347598282, 1347598251, 1347598225, 1347598187, 1347598177, 1347598153, 1347597867, 1347597853, 1347597850, 1347597844, 1347597710, 1347597688, 1347597657, 1347597638, 1347597616, 1347597568, 1347597127, 1347597099, 1347597043, 1347596994, 1347596857, 1347596833, 1347596828, 1347596805, 1347596774, 1347596527, 1347596229, 1347596199, 1347596167, 1347596139, 1347596013, 1347596000, 1347595987, 1347595966, 1347595955, 1347595949, 1347595779, 1347595732, 1347595715, 1347595690, 1347595661, 1347595380, 1347595358, 1347595342, 1347595311, 1347595286, 1347594655, 1347594618, 1347594572]} final : True mtd_id 4302 list_pids : [1347598282, 1347598251, 1347598225, 1347598187, 1347598177, 1347598153, 1347597867, 1347597853, 1347597850, 1347597844] Looping around the photos to save general results len do output : 1 /21745274Didn'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, '2694088') ('4302', '21745274', '1347598282', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347598251', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347598225', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347598187', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347598177', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347598153', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347597867', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347597853', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347597850', None, None, None, None, None, '2694088') ('4302', None, None, None, None, None, None, None, '2694088') ('4302', '21745274', '1347597844', None, None, None, None, None, '2694088') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '21745274', 'None', None, None, None, None, '2694088'), ('4302', '21745274', '1347598282', None, None, None, None, None, '2694088'), ('4302', '21745274', '1347598251', None, None, None, None, None, '2694088'), ('4302', '21745274', '1347598225', None, None, None, None, None, '2694088'), ('4302', '21745274', '1347598187', None, None, None, None, None, '2694088'), ('4302', '21745274', '1347598177', None, None, None, None, None, '2694088'), ('4302', '21745274', '1347598153', None, None, None, None, None, '2694088'), ('4302', '21745274', '1347597867', None, None, None, None, None, '2694088'), ('4302', '21745274', '1347597853', None, None, None, None, None, '2694088'), ('4302', '21745274', '1347597850', None, None, None, None, None, '2694088'), ('4302', '21745274', '1347597844', None, None, None, None, None, '2694088')] time used for this insertion : 0.014709234237670898 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.9219157695770264 time spend to save output : 0.014966487884521484 total time spend for step 5 : 0.9368822574615479 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 (2694088) 2.34user 2.69system 0:13.66elapsed 36%CPU (0avgtext+0avgdata 158732maxresident)k 16288inputs+12232outputs (140major+71537minor)pagefaults 0swaps