result : ((1350930097,), (1350930105,), (1350930107,), (1350930139,), (1350930141,), (1350930143,), (1350930146,), (1350930148,), (1350930183,), (1350930192,), (1350930194,), (1350930197,), (1350930200,), (1350930209,), (1350930220,), (1350930224,), (1350930228,), (1350930258,), (1350930263,), (1350930270,), (1350930302,), (1350930304,), (1350930306,), (1350930307,), (1350930309,), (1350930342,), (1350930344,), (1350930345,), (1350930359,), (1350930361,), (1350930363,), (1350930364,), (1350930365,), (1350930398,), (1350930401,), (1350930403,), (1350930404,), (1350930407,), (1350930408,), (1350930411,), (1350930413,), (1350930415,), (1350930419,), (1350930422,), (1350930428,), (1350930439,), (1350930442,), (1350930445,), (1350930454,), (1350930456,), (1350930458,)) 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 (1350930200) 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 22167846 , 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=22167840 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='plastique' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22167846) result : ((1350930219,), (1350930333,), (1350930334,), (1350930389,), (1350930396,), (1350930437,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22167840) result : ((1350930097,), (1350930105,), (1350930107,), (1350930139,), (1350930141,), (1350930143,), (1350930146,), (1350930148,), (1350930183,), (1350930192,), (1350930194,), (1350930197,), (1350930200,), (1350930209,), (1350930220,), (1350930224,), (1350930228,), (1350930258,), (1350930263,), (1350930270,), (1350930302,), (1350930304,), (1350930306,), (1350930307,), (1350930309,), (1350930342,), (1350930344,), (1350930345,), (1350930359,), (1350930361,), (1350930363,), (1350930364,), (1350930365,), (1350930398,), (1350930401,), (1350930403,), (1350930404,), (1350930407,), (1350930408,), (1350930411,), (1350930413,), (1350930415,), (1350930419,), (1350930422,), (1350930428,), (1350930439,), (1350930442,), (1350930445,), (1350930454,), (1350930456,), (1350930458,)) 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 (1350930200) 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 22167847 , 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=22167840 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='flou' 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 (22167847) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22167840) result : ((1350930097,), (1350930105,), (1350930107,), (1350930139,), (1350930141,), (1350930143,), (1350930146,), (1350930148,), (1350930183,), (1350930192,), (1350930194,), (1350930197,), (1350930200,), (1350930209,), (1350930220,), (1350930224,), (1350930228,), (1350930258,), (1350930263,), (1350930270,), (1350930302,), (1350930304,), (1350930306,), (1350930307,), (1350930309,), (1350930342,), (1350930344,), (1350930345,), (1350930359,), (1350930361,), (1350930363,), (1350930364,), (1350930365,), (1350930398,), (1350930401,), (1350930403,), (1350930404,), (1350930407,), (1350930408,), (1350930411,), (1350930413,), (1350930415,), (1350930419,), (1350930422,), (1350930428,), (1350930439,), (1350930442,), (1350930445,), (1350930454,), (1350930456,), (1350930458,)) 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 (1350930200) 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 22167848 , 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=22167840 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 (22167848) result : ((1350930211,), (1350930287,), (1350930288,), (1350930289,), (1350930290,), (1350930291,), (1350930292,), (1350930293,), (1350930294,), (1350930321,), (1350930322,), (1350930323,), (1350930376,), (1350930377,), (1350930378,), (1350930379,), (1350930392,), (1350930393,), (1350930427,), (1350930435,), (1350930449,), (1350930450,), (1350930451,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22167840) result : ((1350930097,), (1350930105,), (1350930107,), (1350930139,), (1350930141,), (1350930143,), (1350930146,), (1350930148,), (1350930183,), (1350930192,), (1350930194,), (1350930197,), (1350930200,), (1350930209,), (1350930220,), (1350930224,), (1350930228,), (1350930258,), (1350930263,), (1350930270,), (1350930302,), (1350930304,), (1350930306,), (1350930307,), (1350930309,), (1350930342,), (1350930344,), (1350930345,), (1350930359,), (1350930361,), (1350930363,), (1350930364,), (1350930365,), (1350930398,), (1350930401,), (1350930403,), (1350930404,), (1350930407,), (1350930408,), (1350930411,), (1350930413,), (1350930415,), (1350930419,), (1350930422,), (1350930428,), (1350930439,), (1350930442,), (1350930445,), (1350930454,), (1350930456,), (1350930458,)) 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 (1350930200) 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 22167849 , 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=22167840 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='kraft' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22167849) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22167840) result : ((1350930097,), (1350930105,), (1350930107,), (1350930139,), (1350930141,), (1350930143,), (1350930146,), (1350930148,), (1350930183,), (1350930192,), (1350930194,), (1350930197,), (1350930200,), (1350930209,), (1350930220,), (1350930224,), (1350930228,), (1350930258,), (1350930263,), (1350930270,), (1350930302,), (1350930304,), (1350930306,), (1350930307,), (1350930309,), (1350930342,), (1350930344,), (1350930345,), (1350930359,), (1350930361,), (1350930363,), (1350930364,), (1350930365,), (1350930398,), (1350930401,), (1350930403,), (1350930404,), (1350930407,), (1350930408,), (1350930411,), (1350930413,), (1350930415,), (1350930419,), (1350930422,), (1350930428,), (1350930439,), (1350930442,), (1350930445,), (1350930454,), (1350930456,), (1350930458,)) 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 (1350930200) 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 22167850 , 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=22167840 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 (22167850) result : ((1350930215,), (1350930216,), (1350930297,), (1350930298,), (1350930331,), (1350930332,), (1350930386,), (1350930387,), (1350930388,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22167840) result : ((1350930097,), (1350930105,), (1350930107,), (1350930139,), (1350930141,), (1350930143,), (1350930146,), (1350930148,), (1350930183,), (1350930192,), (1350930194,), (1350930197,), (1350930200,), (1350930209,), (1350930220,), (1350930224,), (1350930228,), (1350930258,), (1350930263,), (1350930270,), (1350930302,), (1350930304,), (1350930306,), (1350930307,), (1350930309,), (1350930342,), (1350930344,), (1350930345,), (1350930359,), (1350930361,), (1350930363,), (1350930364,), (1350930365,), (1350930398,), (1350930401,), (1350930403,), (1350930404,), (1350930407,), (1350930408,), (1350930411,), (1350930413,), (1350930415,), (1350930419,), (1350930422,), (1350930428,), (1350930439,), (1350930442,), (1350930445,), (1350930454,), (1350930456,), (1350930458,)) 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 (1350930200) 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 22167851 , 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=22167840 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='autre_refus' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22167851) result : ((1350930295,), (1350930296,), (1350930325,), (1350930326,), (1350930381,), (1350930429,), (1350930430,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22167840) result : ((1350930097,), (1350930105,), (1350930107,), (1350930139,), (1350930141,), (1350930143,), (1350930146,), (1350930148,), (1350930183,), (1350930192,), (1350930194,), (1350930197,), (1350930200,), (1350930209,), (1350930220,), (1350930224,), (1350930228,), (1350930258,), (1350930263,), (1350930270,), (1350930302,), (1350930304,), (1350930306,), (1350930307,), (1350930309,), (1350930342,), (1350930344,), (1350930345,), (1350930359,), (1350930361,), (1350930363,), (1350930364,), (1350930365,), (1350930398,), (1350930401,), (1350930403,), (1350930404,), (1350930407,), (1350930408,), (1350930411,), (1350930413,), (1350930415,), (1350930419,), (1350930422,), (1350930428,), (1350930439,), (1350930442,), (1350930445,), (1350930454,), (1350930456,), (1350930458,)) 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 (1350930200) 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 22167852 , 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=22167840 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='cartonnette' 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 (22167852) result : ((1350930213,), (1350930329,), (1350930383,), (1350930384,), (1350930434,), (1350930438,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22167840) result : ((1350930097,), (1350930105,), (1350930107,), (1350930139,), (1350930141,), (1350930143,), (1350930146,), (1350930148,), (1350930183,), (1350930192,), (1350930194,), (1350930197,), (1350930200,), (1350930209,), (1350930220,), (1350930224,), (1350930228,), (1350930258,), (1350930263,), (1350930270,), (1350930302,), (1350930304,), (1350930306,), (1350930307,), (1350930309,), (1350930342,), (1350930344,), (1350930345,), (1350930359,), (1350930361,), (1350930363,), (1350930364,), (1350930365,), (1350930398,), (1350930401,), (1350930403,), (1350930404,), (1350930407,), (1350930408,), (1350930411,), (1350930413,), (1350930415,), (1350930419,), (1350930422,), (1350930428,), (1350930439,), (1350930442,), (1350930445,), (1350930454,), (1350930456,), (1350930458,)) 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 (1350930200) 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`=22167840 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','mal_croppe','metal','Carton_gris','kraft','papier','Carton_brun','plastique','autre_refus','cartonnette','flou','environnement')) 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`=22167840 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','mal_croppe','metal','Carton_gris','kraft','papier','Carton_brun','plastique','autre_refus','cartonnette','flou','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 22167840, 'sub_port_id': 22167853, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14646173, 'last_updated_at': datetime.datetime(2025, 4, 18, 2, 49, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 2, 49, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 2, 49, 7)}, 'metal': {'main_port_id': 22167840, 'sub_port_id': 22167854, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14646174, 'last_updated_at': datetime.datetime(2025, 4, 18, 2, 49, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 2, 49, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 2, 49, 7)}, 'papier': {'main_port_id': 22167840, 'sub_port_id': 22167855, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14646175, 'last_updated_at': datetime.datetime(2025, 4, 18, 2, 49, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 2, 49, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 2, 49, 7)}, 'environnement': {'main_port_id': 22167840, 'sub_port_id': 22167856, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14646176, 'last_updated_at': datetime.datetime(2025, 4, 18, 2, 49, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 2, 49, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 2, 49, 7)}, 'Carton_gris': {'main_port_id': 22167840, 'sub_port_id': 22167857, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14646177, 'last_updated_at': datetime.datetime(2025, 4, 18, 2, 49, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 2, 49, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 2, 49, 7)}, 'plastique': {'main_port_id': 22167840, 'sub_port_id': 22167858, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14646178, 'last_updated_at': datetime.datetime(2025, 4, 18, 2, 49, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 2, 49, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 2, 49, 7)}, 'flou': {'main_port_id': 22167840, 'sub_port_id': 22167859, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14646179, 'last_updated_at': datetime.datetime(2025, 4, 18, 2, 49, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 2, 49, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 2, 49, 7)}, 'Teint_Dans_La_Masse': {'main_port_id': 22167840, 'sub_port_id': 22167860, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14646180, 'last_updated_at': datetime.datetime(2025, 4, 18, 2, 49, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 2, 49, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 2, 49, 7)}, 'kraft': {'main_port_id': 22167840, 'sub_port_id': 22167861, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14646181, 'last_updated_at': datetime.datetime(2025, 4, 18, 2, 49, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 2, 49, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 2, 49, 7)}, 'Carton_brun': {'main_port_id': 22167840, 'sub_port_id': 22167862, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14646182, 'last_updated_at': datetime.datetime(2025, 4, 18, 2, 49, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 2, 49, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 2, 49, 7)}, 'autre_refus': {'main_port_id': 22167840, 'sub_port_id': 22167863, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14646183, 'last_updated_at': datetime.datetime(2025, 4, 18, 2, 49, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 2, 49, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 2, 49, 7)}, 'cartonnette': {'main_port_id': 22167840, 'sub_port_id': 22167864, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14646184, 'last_updated_at': datetime.datetime(2025, 4, 18, 2, 55, 29), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 2, 55, 29), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 2, 49, 7)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22167853,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22167841 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22167854,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22167842 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22167855,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22167843 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22167856,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22167844 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22167857,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22167845 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22167858,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22167846 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22167859,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22167847 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22167860,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22167848 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22167861,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22167849 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22167862,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22167850 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22167863,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22167851 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22167864,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22167852 lien utilise dans velours : https://www.fotonower.com/velours/22167853,22167854,22167855,22167856,22167857,22167858,22167859,22167860,22167861,22167862,22167863,22167864?tags=mal_croppe,metal,papier,environnement,Carton_gris,plastique,flou,Teint_Dans_La_Masse,kraft,Carton_brun,autre_refus,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22167840]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350930458, 1350930456, 1350930454, 1350930445, 1350930442, 1350930439, 1350930428, 1350930422, 1350930419, 1350930415, 1350930413, 1350930411, 1350930408, 1350930407, 1350930404, 1350930403, 1350930401, 1350930398] map_info['map_portfolio_photo'] : {22167840: [1350930458, 1350930456, 1350930454, 1350930445, 1350930442, 1350930439, 1350930428, 1350930422, 1350930419, 1350930415, 1350930413, 1350930411, 1350930408, 1350930407, 1350930404, 1350930403, 1350930401, 1350930398, 1350930365, 1350930364, 1350930363, 1350930361, 1350930359, 1350930345, 1350930344, 1350930342, 1350930309, 1350930307, 1350930306, 1350930304, 1350930302, 1350930270, 1350930263, 1350930258, 1350930228, 1350930224, 1350930220, 1350930209, 1350930200, 1350930197, 1350930194, 1350930192, 1350930183, 1350930148, 1350930146, 1350930143, 1350930141, 1350930139, 1350930107, 1350930105, 1350930097]} final : False mtd_id 4302 list_pids : [1350930458, 1350930456, 1350930454, 1350930445, 1350930442, 1350930439, 1350930428, 1350930422, 1350930419, 1350930415, 1350930413, 1350930411, 1350930408, 1350930407, 1350930404, 1350930403, 1350930401, 1350930398] Looping around the photos to save general results len do output : 1 /22167840. 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, '2733747') ('4302', '22167840', '1350930458', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930456', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930454', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930445', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930442', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930439', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930428', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930422', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930419', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930415', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930413', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930411', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930408', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930407', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930404', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930403', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930401', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930398', None, None, None, None, None, '2733747') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '22167840', "{'mal_croppe': 22167841, 'metal': 22167842, 'papier': 22167843, 'environnement': 22167844, 'Carton_gris': 22167845, 'plastique': 22167846, 'flou': 22167847, 'Teint_Dans_La_Masse': 22167848, 'kraft': 22167849, 'Carton_brun': 22167850, 'autre_refus': 22167851, 'cartonnette': 22167852}", None, None, None, None, '2733747'), ('4302', '22167840', '1350930458', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930456', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930454', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930445', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930442', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930439', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930428', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930422', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930419', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930415', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930413', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930411', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930408', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930407', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930404', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930403', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930401', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930398', None, None, None, None, None, '2733747')] time used for this insertion : 0.01572561264038086 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.47534894943237305 time spend to save output : 0.016063928604125977 total time spend for step 1 : 0.491412878036499 step2:final Fri Apr 18 02:56:57 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 (22167840) 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 22167840 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350930107,1350930105,1350930097,1350930148,1350930146,1350930143,1350930141,1350930139,1350930200,1350930183,1350930197,1350930194,1350930192,1350930228,1350930224,1350930220,1350930209,1350930270,1350930263,1350930258,1350930309,1350930307,1350930306,1350930304,1350930302,1350930345,1350930344,1350930342,1350930365,1350930364,1350930363,1350930361,1350930359,1350930413,1350930445,1350930442,1350930408,1350930404,1350930439,1350930401,1350930428,1350930398,1350930422,1350930419,1350930415,1350930411,1350930407,1350930403,1350930458,1350930456,1350930454); 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([22167840]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ('0.05808995978249234',), 1350930408: ('0.05808995978249234',), 1350930407: ('0.05808995978249234',), 1350930404: ('0.05808995978249234',), 1350930403: ('0.05808995978249234',), 1350930401: ('0.05808995978249234',), 1350930398: ('0.05808995978249234',)} new output for save of step final : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ('0.05808995978249234',), 1350930408: ('0.05808995978249234',), 1350930407: ('0.05808995978249234',), 1350930404: ('0.05808995978249234',), 1350930403: ('0.05808995978249234',), 1350930401: ('0.05808995978249234',), 1350930398: ('0.05808995978249234',)} [1350930458, 1350930456, 1350930454, 1350930445, 1350930442, 1350930439, 1350930428, 1350930422, 1350930419, 1350930415, 1350930413, 1350930411, 1350930408, 1350930407, 1350930404, 1350930403, 1350930401, 1350930398] map_info['map_portfolio_photo'] : {22167840: [1350930458, 1350930456, 1350930454, 1350930445, 1350930442, 1350930439, 1350930428, 1350930422, 1350930419, 1350930415, 1350930413, 1350930411, 1350930408, 1350930407, 1350930404, 1350930403, 1350930401, 1350930398, 1350930365, 1350930364, 1350930363, 1350930361, 1350930359, 1350930345, 1350930344, 1350930342, 1350930309, 1350930307, 1350930306, 1350930304, 1350930302, 1350930270, 1350930263, 1350930258, 1350930228, 1350930224, 1350930220, 1350930209, 1350930200, 1350930197, 1350930194, 1350930192, 1350930183, 1350930148, 1350930146, 1350930143, 1350930141, 1350930139, 1350930107, 1350930105, 1350930097]} final : False mtd_id 4302 list_pids : [1350930458, 1350930456, 1350930454, 1350930445, 1350930442, 1350930439, 1350930428, 1350930422, 1350930419, 1350930415, 1350930413, 1350930411, 1350930408, 1350930407, 1350930404, 1350930403, 1350930401, 1350930398] Looping around the photos to save general results len do output : 18 /1350930458.Didn't retrieve data . /1350930456.Didn't retrieve data . /1350930454.Didn't retrieve data . /1350930445.Didn't retrieve data . /1350930442.Didn't retrieve data . /1350930439.Didn't retrieve data . /1350930428.Didn't retrieve data . /1350930422.Didn't retrieve data . /1350930419.Didn't retrieve data . /1350930415.Didn't retrieve data . /1350930413.Didn't retrieve data . /1350930411.Didn't retrieve data . /1350930408.Didn't retrieve data . /1350930407.Didn't retrieve data . /1350930404.Didn't retrieve data . /1350930403.Didn't retrieve data . /1350930401.Didn't retrieve data . /1350930398.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, '2733747') ('4302', '22167840', '1350930458', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930456', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930454', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930445', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930442', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930439', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930428', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930422', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930419', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930415', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930413', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930411', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930408', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930407', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930404', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930403', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930401', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930398', None, None, None, None, None, '2733747') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 54 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', '22167840', '1350930458', '0.05808995978249234', None, None, None, None, '2733747'), ('4302', '22167840', '1350930456', '0.05808995978249234', None, None, None, None, '2733747'), ('4302', '22167840', '1350930454', '0.05808995978249234', None, None, None, None, '2733747'), ('4302', '22167840', '1350930445', '0.05808995978249234', None, None, None, None, '2733747'), ('4302', '22167840', '1350930442', '0.05808995978249234', None, None, None, None, '2733747'), ('4302', '22167840', '1350930439', '0.05808995978249234', None, None, None, None, '2733747'), ('4302', '22167840', '1350930428', '0.05808995978249234', None, None, None, None, '2733747'), ('4302', '22167840', '1350930422', '0.05808995978249234', None, None, None, None, '2733747'), ('4302', '22167840', '1350930419', '0.05808995978249234', None, None, None, None, '2733747'), ('4302', '22167840', '1350930415', '0.05808995978249234', None, None, None, None, '2733747'), ('4302', '22167840', '1350930413', '0.05808995978249234', None, None, None, None, '2733747'), ('4302', '22167840', '1350930411', '0.05808995978249234', None, None, None, None, '2733747'), ('4302', '22167840', '1350930408', '0.05808995978249234', None, None, None, None, '2733747'), ('4302', '22167840', '1350930407', '0.05808995978249234', None, None, None, None, '2733747'), ('4302', '22167840', '1350930404', '0.05808995978249234', None, None, None, None, '2733747'), ('4302', '22167840', '1350930403', '0.05808995978249234', None, None, None, None, '2733747'), ('4302', '22167840', '1350930401', '0.05808995978249234', None, None, None, None, '2733747'), ('4302', '22167840', '1350930398', '0.05808995978249234', None, None, None, None, '2733747')] time used for this insertion : 0.015076398849487305 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06790518760681152 time spend to save output : 0.015963077545166016 total time spend for step 2 : 0.08386826515197754 step3:velours_tree Fri Apr 18 02:56:57 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 : {22167840: [{'mal_croppe': 22167841, 'metal': 22167842, 'papier': 22167843, 'environnement': 22167844, 'Carton_gris': 22167845, 'plastique': 22167846, 'flou': 22167847, 'Teint_Dans_La_Masse': 22167848, 'kraft': 22167849, 'Carton_brun': 22167850, 'autre_refus': 22167851, 'cartonnette': 22167852}]} input_args_next_step : {22167840: ()} output_args : {22167840: [{'mal_croppe': 22167841, 'metal': 22167842, 'papier': 22167843, 'environnement': 22167844, 'Carton_gris': 22167845, 'plastique': 22167846, 'flou': 22167847, 'Teint_Dans_La_Masse': 22167848, 'kraft': 22167849, 'Carton_brun': 22167850, 'autre_refus': 22167851, 'cartonnette': 22167852}]} args : 22167840 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': 22167841, 'metal': 22167842, 'papier': 22167843, 'environnement': 22167844, 'Carton_gris': 22167845, 'plastique': 22167846, 'flou': 22167847, 'Teint_Dans_La_Masse': 22167848, 'kraft': 22167849, 'Carton_brun': 22167850, 'autre_refus': 22167851, 'cartonnette': 22167852},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22167840) 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([22167840]) 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.31446099281311035 time spend to save output : 4.3392181396484375e-05 total time spend for step 3 : 0.31450438499450684 step4:send_mail_cod Fri Apr 18 02:56:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ('0.05808995978249234',), 1350930408: ('0.05808995978249234',), 1350930407: ('0.05808995978249234',), 1350930404: ('0.05808995978249234',), 1350930403: ('0.05808995978249234',), 1350930401: ('0.05808995978249234',), 1350930398: ('0.05808995978249234',)} input_args_next_step : {1350930458: ()} output_args : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ('0.05808995978249234',), 1350930408: ('0.05808995978249234',), 1350930407: ('0.05808995978249234',), 1350930404: ('0.05808995978249234',), 1350930403: ('0.05808995978249234',), 1350930401: ('0.05808995978249234',), 1350930398: ('0.05808995978249234',)} args : 1350930458 depend.output_id : 0 input_args_next_step : {1350930458: ('0.05808995978249234',), 1350930456: ()} output_args : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ('0.05808995978249234',), 1350930408: ('0.05808995978249234',), 1350930407: ('0.05808995978249234',), 1350930404: ('0.05808995978249234',), 1350930403: ('0.05808995978249234',), 1350930401: ('0.05808995978249234',), 1350930398: ('0.05808995978249234',)} args : 1350930456 depend.output_id : 0 input_args_next_step : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ()} output_args : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ('0.05808995978249234',), 1350930408: ('0.05808995978249234',), 1350930407: ('0.05808995978249234',), 1350930404: ('0.05808995978249234',), 1350930403: ('0.05808995978249234',), 1350930401: ('0.05808995978249234',), 1350930398: ('0.05808995978249234',)} args : 1350930454 depend.output_id : 0 input_args_next_step : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ()} output_args : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ('0.05808995978249234',), 1350930408: ('0.05808995978249234',), 1350930407: ('0.05808995978249234',), 1350930404: ('0.05808995978249234',), 1350930403: ('0.05808995978249234',), 1350930401: ('0.05808995978249234',), 1350930398: ('0.05808995978249234',)} args : 1350930445 depend.output_id : 0 input_args_next_step : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ()} output_args : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ('0.05808995978249234',), 1350930408: ('0.05808995978249234',), 1350930407: ('0.05808995978249234',), 1350930404: ('0.05808995978249234',), 1350930403: ('0.05808995978249234',), 1350930401: ('0.05808995978249234',), 1350930398: ('0.05808995978249234',)} args : 1350930442 depend.output_id : 0 input_args_next_step : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ()} output_args : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ('0.05808995978249234',), 1350930408: ('0.05808995978249234',), 1350930407: ('0.05808995978249234',), 1350930404: ('0.05808995978249234',), 1350930403: ('0.05808995978249234',), 1350930401: ('0.05808995978249234',), 1350930398: ('0.05808995978249234',)} args : 1350930439 depend.output_id : 0 input_args_next_step : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ()} output_args : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ('0.05808995978249234',), 1350930408: ('0.05808995978249234',), 1350930407: ('0.05808995978249234',), 1350930404: ('0.05808995978249234',), 1350930403: ('0.05808995978249234',), 1350930401: ('0.05808995978249234',), 1350930398: ('0.05808995978249234',)} args : 1350930428 depend.output_id : 0 input_args_next_step : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ()} output_args : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ('0.05808995978249234',), 1350930408: ('0.05808995978249234',), 1350930407: ('0.05808995978249234',), 1350930404: ('0.05808995978249234',), 1350930403: ('0.05808995978249234',), 1350930401: ('0.05808995978249234',), 1350930398: ('0.05808995978249234',)} args : 1350930422 depend.output_id : 0 input_args_next_step : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ()} output_args : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ('0.05808995978249234',), 1350930408: ('0.05808995978249234',), 1350930407: ('0.05808995978249234',), 1350930404: ('0.05808995978249234',), 1350930403: ('0.05808995978249234',), 1350930401: ('0.05808995978249234',), 1350930398: ('0.05808995978249234',)} args : 1350930419 depend.output_id : 0 input_args_next_step : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ()} output_args : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ('0.05808995978249234',), 1350930408: ('0.05808995978249234',), 1350930407: ('0.05808995978249234',), 1350930404: ('0.05808995978249234',), 1350930403: ('0.05808995978249234',), 1350930401: ('0.05808995978249234',), 1350930398: ('0.05808995978249234',)} args : 1350930415 depend.output_id : 0 input_args_next_step : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ()} output_args : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ('0.05808995978249234',), 1350930408: ('0.05808995978249234',), 1350930407: ('0.05808995978249234',), 1350930404: ('0.05808995978249234',), 1350930403: ('0.05808995978249234',), 1350930401: ('0.05808995978249234',), 1350930398: ('0.05808995978249234',)} args : 1350930413 depend.output_id : 0 input_args_next_step : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ()} output_args : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ('0.05808995978249234',), 1350930408: ('0.05808995978249234',), 1350930407: ('0.05808995978249234',), 1350930404: ('0.05808995978249234',), 1350930403: ('0.05808995978249234',), 1350930401: ('0.05808995978249234',), 1350930398: ('0.05808995978249234',)} args : 1350930411 depend.output_id : 0 input_args_next_step : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ('0.05808995978249234',), 1350930408: ()} output_args : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ('0.05808995978249234',), 1350930408: ('0.05808995978249234',), 1350930407: ('0.05808995978249234',), 1350930404: ('0.05808995978249234',), 1350930403: ('0.05808995978249234',), 1350930401: ('0.05808995978249234',), 1350930398: ('0.05808995978249234',)} args : 1350930408 depend.output_id : 0 input_args_next_step : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ('0.05808995978249234',), 1350930408: ('0.05808995978249234',), 1350930407: ()} output_args : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ('0.05808995978249234',), 1350930408: ('0.05808995978249234',), 1350930407: ('0.05808995978249234',), 1350930404: ('0.05808995978249234',), 1350930403: ('0.05808995978249234',), 1350930401: ('0.05808995978249234',), 1350930398: ('0.05808995978249234',)} args : 1350930407 depend.output_id : 0 input_args_next_step : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ('0.05808995978249234',), 1350930408: ('0.05808995978249234',), 1350930407: ('0.05808995978249234',), 1350930404: ()} output_args : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ('0.05808995978249234',), 1350930408: ('0.05808995978249234',), 1350930407: ('0.05808995978249234',), 1350930404: ('0.05808995978249234',), 1350930403: ('0.05808995978249234',), 1350930401: ('0.05808995978249234',), 1350930398: ('0.05808995978249234',)} args : 1350930404 depend.output_id : 0 input_args_next_step : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ('0.05808995978249234',), 1350930408: ('0.05808995978249234',), 1350930407: ('0.05808995978249234',), 1350930404: ('0.05808995978249234',), 1350930403: ()} output_args : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ('0.05808995978249234',), 1350930408: ('0.05808995978249234',), 1350930407: ('0.05808995978249234',), 1350930404: ('0.05808995978249234',), 1350930403: ('0.05808995978249234',), 1350930401: ('0.05808995978249234',), 1350930398: ('0.05808995978249234',)} args : 1350930403 depend.output_id : 0 input_args_next_step : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ('0.05808995978249234',), 1350930408: ('0.05808995978249234',), 1350930407: ('0.05808995978249234',), 1350930404: ('0.05808995978249234',), 1350930403: ('0.05808995978249234',), 1350930401: ()} output_args : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ('0.05808995978249234',), 1350930408: ('0.05808995978249234',), 1350930407: ('0.05808995978249234',), 1350930404: ('0.05808995978249234',), 1350930403: ('0.05808995978249234',), 1350930401: ('0.05808995978249234',), 1350930398: ('0.05808995978249234',)} args : 1350930401 depend.output_id : 0 input_args_next_step : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ('0.05808995978249234',), 1350930408: ('0.05808995978249234',), 1350930407: ('0.05808995978249234',), 1350930404: ('0.05808995978249234',), 1350930403: ('0.05808995978249234',), 1350930401: ('0.05808995978249234',), 1350930398: ()} output_args : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ('0.05808995978249234',), 1350930408: ('0.05808995978249234',), 1350930407: ('0.05808995978249234',), 1350930404: ('0.05808995978249234',), 1350930403: ('0.05808995978249234',), 1350930401: ('0.05808995978249234',), 1350930398: ('0.05808995978249234',)} args : 1350930398 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 : {22167840: [{'mal_croppe': 22167841, 'metal': 22167842, 'papier': 22167843, 'environnement': 22167844, 'Carton_gris': 22167845, 'plastique': 22167846, 'flou': 22167847, 'Teint_Dans_La_Masse': 22167848, 'kraft': 22167849, 'Carton_brun': 22167850, 'autre_refus': 22167851, 'cartonnette': 22167852}]} input_args_next_step : {1350930458: ('0.05808995978249234',), 1350930456: ('0.05808995978249234',), 1350930454: ('0.05808995978249234',), 1350930445: ('0.05808995978249234',), 1350930442: ('0.05808995978249234',), 1350930439: ('0.05808995978249234',), 1350930428: ('0.05808995978249234',), 1350930422: ('0.05808995978249234',), 1350930419: ('0.05808995978249234',), 1350930415: ('0.05808995978249234',), 1350930413: ('0.05808995978249234',), 1350930411: ('0.05808995978249234',), 1350930408: ('0.05808995978249234',), 1350930407: ('0.05808995978249234',), 1350930404: ('0.05808995978249234',), 1350930403: ('0.05808995978249234',), 1350930401: ('0.05808995978249234',), 1350930398: ('0.05808995978249234',), 22167840: ()} output_args : {22167840: [{'mal_croppe': 22167841, 'metal': 22167842, 'papier': 22167843, 'environnement': 22167844, 'Carton_gris': 22167845, 'plastique': 22167846, 'flou': 22167847, 'Teint_Dans_La_Masse': 22167848, 'kraft': 22167849, 'Carton_brun': 22167850, 'autre_refus': 22167851, 'cartonnette': 22167852}]} args : 22167840 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 :19, first value : ('0.05808995978249234',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22167840) 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 (1350930458,1350930456,1350930454,1350930445,1350930442,1350930439,1350930428,1350930422,1350930419,1350930415,1350930413,1350930411,1350930408,1350930407,1350930404,1350930403,1350930401,1350930398) Found this number of photos: 18 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350930398 begin to download photo : 1350930407 begin to download photo : 1350930415 begin to download photo : 1350930439 begin to download photo : 1350930456 download finish for photo 1350930415 begin to download photo : 1350930419 download finish for photo 1350930407 begin to download photo : 1350930408 download finish for photo 1350930439 begin to download photo : 1350930442 download finish for photo 1350930456 begin to download photo : 1350930458 download finish for photo 1350930398 begin to download photo : 1350930401 download finish for photo 1350930458 download finish for photo 1350930419 begin to download photo : 1350930422 download finish for photo 1350930408 begin to download photo : 1350930411 download finish for photo 1350930401 begin to download photo : 1350930403 download finish for photo 1350930442 begin to download photo : 1350930445 download finish for photo 1350930411 begin to download photo : 1350930413 download finish for photo 1350930403 begin to download photo : 1350930404 download finish for photo 1350930445 begin to download photo : 1350930454 download finish for photo 1350930422 begin to download photo : 1350930428 download finish for photo 1350930413 download finish for photo 1350930454 download finish for photo 1350930404 download finish for photo 1350930428 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette221678411744937818/ imagette221678421744937818/ length of list_filenames : 18 ; length of list_pids : 18 ; length of list_args : 18 results_Auto_P22167840_18-04-2025_02_56_58.pdf 22167841 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=22167841 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221678411744937818 22167842 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=22167842 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221678421744937818 22167846 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=22167846 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350930219: '1744937294_3595738_1350930105_6495155b86f09dd65fb95e9697c30f84_rle_crop_3753148121_0.png', 1350930333: '1744937472_3597996_1350930143_fc563a236f60ed210a87892a7e249729_rle_crop_3753148929_0.png', 1350930334: '1744937472_3597996_1350930141_15ff7b4fb3c9542b96c8015fd621a0f7_rle_crop_3753149029_0.png', 1350930389: '1744937591_3598937_1350930304_7e8d760fd09980ce1b3e781a8dc6eee2_rle_crop_3753149303_0.png', 1350930396: '1744937620_1778015_1350930342_c386ba49288ff3cee418d860149e5da6_rle_crop_3753149429_0.png', 1350930437: '1744937711_3599807_1350930309_441856b0d03198de7bda64c34218bf14_rle_crop_3753149605_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/ff1a98b68cc882640301ec59b78e120f_5432781.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/5e00f436cb176afe38fc459028e5f649_48530669.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/2349c4aa9cb7be8a543e9b278a48afe1_6661261.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/6f844ffd4d0eaec4d781ec220aa572b5_39381157.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/03e77efa5aa1d2e8a06a638f0f64c42b_93552560.png change filename to text .imagette221678461744937818/ imagette221678461744937818/1744937472_3597996_1350930143_fc563a236f60ed210a87892a7e249729_rle_crop_3753148929_0.png.png imagette221678461744937818/1744937620_1778015_1350930342_c386ba49288ff3cee418d860149e5da6_rle_crop_3753149429_0.png.png imagette221678461744937818/1744937472_3597996_1350930141_15ff7b4fb3c9542b96c8015fd621a0f7_rle_crop_3753149029_0.png.png imagette221678461744937818/1744937711_3599807_1350930309_441856b0d03198de7bda64c34218bf14_rle_crop_3753149605_0.png.png imagette221678461744937818/1744937294_3595738_1350930105_6495155b86f09dd65fb95e9697c30f84_rle_crop_3753148121_0.png.png imagette221678461744937818/1744937591_3598937_1350930304_7e8d760fd09980ce1b3e781a8dc6eee2_rle_crop_3753149303_0.png.png imagette221678471744937819/ imagette221678491744937819/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/bc6963aa45c0de3b99ae2f4ac782fb9b_39375081.png imagette221678461744937818 22167847 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=22167847 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221678471744937819 22167849 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=22167849 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221678491744937819 22167851 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=22167851 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350930295: '1744937412_3597217_1350930197_8dcf9cb6e659c826ac9069a8872134cf_rle_crop_3753148696_0.png', 1350930296: '1744937412_3597217_1350930194_9cf78f50806063464a95cf24e896c17b_rle_crop_3753148719_0.png', 1350930325: '1744937472_3597996_1350930141_15ff7b4fb3c9542b96c8015fd621a0f7_rle_crop_3753149018_0.png', 1350930326: '1744937472_3597996_1350930139_0b1378a839d682e0b91dcdd6361e2fbe_rle_crop_3753149042_0.png', 1350930381: '1744937591_3598937_1350930302_40a2a1f98c736217ba8b1e91cf6bf24d_rle_crop_3753149389_0.png', 1350930429: '1744937711_3599807_1350930309_441856b0d03198de7bda64c34218bf14_rle_crop_3753149610_0.png', 1350930430: '1744937711_3599807_1350930258_6d9e6fc0cda672e26c256e26bce5e646_rle_crop_3753149651_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/2ebacf4c20f17b9675e24e3f54497678_80782388.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/e6a8633be72707f86e5261101dfa532f_44482548.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/10fbaa7ec3a3293bac070ae735df84cd_67057032.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/8a2821f8b08ef72c6150a7e42e350774_93567359.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/cb5badc1b1996bafec61488695b9d5a6_80065374.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/96630e98514dcc3fed992b2600f41960_56350896.png change filename to text .imagette221678511744937819/ imagette221678511744937819/1744937711_3599807_1350930258_6d9e6fc0cda672e26c256e26bce5e646_rle_crop_3753149651_0.png.png imagette221678511744937819/1744937591_3598937_1350930302_40a2a1f98c736217ba8b1e91cf6bf24d_rle_crop_3753149389_0.png.png imagette221678511744937819/1744937412_3597217_1350930194_9cf78f50806063464a95cf24e896c17b_rle_crop_3753148719_0.png.png imagette221678511744937819/1744937472_3597996_1350930139_0b1378a839d682e0b91dcdd6361e2fbe_rle_crop_3753149042_0.png.png imagette221678511744937819/1744937412_3597217_1350930197_8dcf9cb6e659c826ac9069a8872134cf_rle_crop_3753148696_0.png.png imagette221678511744937819/1744937711_3599807_1350930309_441856b0d03198de7bda64c34218bf14_rle_crop_3753149610_0.png.png imagette221678511744937819/1744937472_3597996_1350930141_15ff7b4fb3c9542b96c8015fd621a0f7_rle_crop_3753149018_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/53a2f5f24477437810f7fff7a3f953f6_37295429.png imagette221678511744937819 22167852 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=22167852 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350930213: '1744937294_3595738_1350930105_6495155b86f09dd65fb95e9697c30f84_rle_crop_3753148118_0.png', 1350930329: '1744937472_3597996_1350930200_a70ac878d15a46fed5e6d9fcef084f1f_rle_crop_3753148915_0.png', 1350930383: '1744937591_3598937_1350930345_7af077dc5ffb9f370ebeecf297603e8d_rle_crop_3753149251_0.png', 1350930384: '1744937591_3598937_1350930302_40a2a1f98c736217ba8b1e91cf6bf24d_rle_crop_3753149391_0.png', 1350930434: '1744937711_3599807_1350930309_441856b0d03198de7bda64c34218bf14_rle_crop_3753149609_0.png', 1350930438: '1744937713_3599703_1350930220_0128ff782e79e879b47820b133f53587_rle_crop_3753149666_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/1509858960be60720f535f0f6b7cfc6d_24026586.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/b8d9bfb7fe78c5094bce98c8329caa6e_16028410.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/0a56d6f8282134eba1758151b11e79c9_37950143.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/234ae4d41b2d9feb1d2d748b452d95d7_54529585.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/11c952890834b9f1982a29dd50f35b9d_30940967.png change filename to text .imagette221678521744937819/ imagette221678521744937819/1744937472_3597996_1350930200_a70ac878d15a46fed5e6d9fcef084f1f_rle_crop_3753148915_0.png.png imagette221678521744937819/1744937713_3599703_1350930220_0128ff782e79e879b47820b133f53587_rle_crop_3753149666_0.png.png imagette221678521744937819/1744937711_3599807_1350930309_441856b0d03198de7bda64c34218bf14_rle_crop_3753149609_0.png.png imagette221678521744937819/1744937294_3595738_1350930105_6495155b86f09dd65fb95e9697c30f84_rle_crop_3753148118_0.png.png imagette221678521744937819/1744937591_3598937_1350930345_7af077dc5ffb9f370ebeecf297603e8d_rle_crop_3753149251_0.png.png imagette221678521744937819/1744937591_3598937_1350930302_40a2a1f98c736217ba8b1e91cf6bf24d_rle_crop_3753149391_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/b8695dc06d23aa6f7895d455e727ec82_41159898.png imagette221678521744937819 22167845 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=22167845 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350930212: '1744937294_3595738_1350930097_b54b09372000d47155e4cfc284969478_rle_crop_3753148136_0.png', 1350930328: '1744937472_3597996_1350930139_0b1378a839d682e0b91dcdd6361e2fbe_rle_crop_3753149040_0.png', 1350930382: '1744937591_3598937_1350930304_7e8d760fd09980ce1b3e781a8dc6eee2_rle_crop_3753149298_0.png', 1350930395: '1744937620_1778015_1350930344_8b610fd37a44805bb76da262ad9185a9_rle_crop_3753149406_0.png', 1350930432: '1744937711_3599807_1350930309_441856b0d03198de7bda64c34218bf14_rle_crop_3753149615_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/ec40644098cb7307422af31b45ecf6b8_552528.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/f4d9219c79f91aa7622706275e144151_3308681.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/7253fdf699c06fe75d1f4dc0d4396f8c_84472771.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/abdeb0d434ec6a23c4710ffad51760c5_55363053.png change filename to text .imagette221678451744937819/ imagette221678451744937819/1744937591_3598937_1350930304_7e8d760fd09980ce1b3e781a8dc6eee2_rle_crop_3753149298_0.png.png imagette221678451744937819/1744937620_1778015_1350930344_8b610fd37a44805bb76da262ad9185a9_rle_crop_3753149406_0.png.png imagette221678451744937819/1744937472_3597996_1350930139_0b1378a839d682e0b91dcdd6361e2fbe_rle_crop_3753149040_0.png.png imagette221678451744937819/1744937294_3595738_1350930097_b54b09372000d47155e4cfc284969478_rle_crop_3753148136_0.png.png imagette221678451744937819/1744937711_3599807_1350930309_441856b0d03198de7bda64c34218bf14_rle_crop_3753149615_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/32b0546e76e420efbbeb102aed558eb2_95122164.png imagette221678451744937819 22167848 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=22167848 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350930323: '1744937472_3597996_1350930139_0b1378a839d682e0b91dcdd6361e2fbe_rle_crop_3753149047_0.png', 1350930451: '1744937739_4119091_1350930228_d774dc4a228760033ab710c25d1499b5_rle_crop_3753149713_0.png', 1350930450: '1744937739_4119091_1350930228_d774dc4a228760033ab710c25d1499b5_rle_crop_3753149719_0.png', 1350930449: '1744937739_4119091_1350930228_d774dc4a228760033ab710c25d1499b5_rle_crop_3753149715_0.png', 1350930435: '1744937713_3599703_1350930224_f8c560b290e1138124ad7ed453c542e5_rle_crop_3753149638_0.png', 1350930427: '1744937711_3599807_1350930309_441856b0d03198de7bda64c34218bf14_rle_crop_3753149619_0.png', 1350930393: '1744937620_1778015_1350930342_c386ba49288ff3cee418d860149e5da6_rle_crop_3753149434_0.png', 1350930392: '1744937620_1778015_1350930344_8b610fd37a44805bb76da262ad9185a9_rle_crop_3753149409_0.png', 1350930379: '1744937591_3598937_1350930304_7e8d760fd09980ce1b3e781a8dc6eee2_rle_crop_3753149299_0.png', 1350930378: '1744937591_3598937_1350930306_a196285af2bdee5fe6828eb7c0d7e28a_rle_crop_3753149288_0.png', 1350930377: '1744937591_3598937_1350930306_a196285af2bdee5fe6828eb7c0d7e28a_rle_crop_3753149283_0.png', 1350930376: '1744937591_3598937_1350930345_7af077dc5ffb9f370ebeecf297603e8d_rle_crop_3753149252_0.png', 1350930211: '1744937294_3595738_1350930107_1f9e5eb19965524f05207a177fac9e77_rle_crop_3753148113_0.png', 1350930322: '1744937472_3597996_1350930141_15ff7b4fb3c9542b96c8015fd621a0f7_rle_crop_3753149033_0.png', 1350930321: '1744937472_3597996_1350930200_a70ac878d15a46fed5e6d9fcef084f1f_rle_crop_3753148916_0.png', 1350930294: '1744937412_3597217_1350930183_a1025afa1368b3eff04ce0cd4ec531d6_rle_crop_3753148754_0.png', 1350930293: '1744937412_3597217_1350930192_acfbb627acc00b78b2e515fa3729e7a6_rle_crop_3753148745_0.png', 1350930292: '1744937412_3597217_1350930192_acfbb627acc00b78b2e515fa3729e7a6_rle_crop_3753148742_0.png', 1350930291: '1744937412_3597217_1350930194_9cf78f50806063464a95cf24e896c17b_rle_crop_3753148728_0.png', 1350930290: '1744937412_3597217_1350930194_9cf78f50806063464a95cf24e896c17b_rle_crop_3753148722_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/7da220cbb46739b84244161d44d622f3_84688550.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/1dcff1e33c3c4e7defc257705a2ea275_7077442.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/ba3c583c045959ad67c93fe383fb0de5_80705331.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/d2a7173762cda276e3ca853490f555e3_75796332.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/30f064554ebd7962207f2b2a828cfb08_63959051.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/869dab4bf9f1ce98f06bcc2ee2b47617_99415371.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/41fd949533a92196659edc170cd50f75_89549300.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/b69f94ca376bf2c0cbb984dbf7bad595_68755041.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/ab067cb6c6b1bee7c574e623b83bbe9a_5462456.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/82ad0a3502a857fa122b35535a1ea3d9_84476097.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/87eaa69bf14df45744bb4be6105d49d6_55989538.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/29235a93a08d85dbe1516eb3f8a549fd_10478088.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/b0b676bcb59835b8e32b3556c078198a_71029040.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/be311b852686deb16b0f244d14a588b9_69346721.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/5ef4a1f0f19b703038d5ef4e6754056f_88054158.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/6071364af118f96a5f97131744cb1e32_94394379.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/744a0a5b7046f5ac32461ee9c1f29c88_79891854.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/01127c6efd1dc2fc2a84125a49554bc1_27811590.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/9dcc75a2f20340f5e7d3d5ed3e1b5465_29347398.png change filename to text .imagette221678481744937820/ imagette221678481744937820/1744937620_1778015_1350930342_c386ba49288ff3cee418d860149e5da6_rle_crop_3753149434_0.png.png imagette221678481744937820/1744937412_3597217_1350930194_9cf78f50806063464a95cf24e896c17b_rle_crop_3753148728_0.png.png imagette221678481744937820/1744937591_3598937_1350930306_a196285af2bdee5fe6828eb7c0d7e28a_rle_crop_3753149288_0.png.png imagette221678481744937820/1744937412_3597217_1350930183_a1025afa1368b3eff04ce0cd4ec531d6_rle_crop_3753148754_0.png.png imagette221678481744937820/1744937472_3597996_1350930200_a70ac878d15a46fed5e6d9fcef084f1f_rle_crop_3753148916_0.png.png imagette221678481744937820/1744937294_3595738_1350930107_1f9e5eb19965524f05207a177fac9e77_rle_crop_3753148113_0.png.png imagette221678481744937820/1744937412_3597217_1350930194_9cf78f50806063464a95cf24e896c17b_rle_crop_3753148722_0.png.png imagette221678481744937820/1744937711_3599807_1350930309_441856b0d03198de7bda64c34218bf14_rle_crop_3753149619_0.png.png imagette221678481744937820/1744937472_3597996_1350930139_0b1378a839d682e0b91dcdd6361e2fbe_rle_crop_3753149047_0.png.png imagette221678481744937820/1744937472_3597996_1350930141_15ff7b4fb3c9542b96c8015fd621a0f7_rle_crop_3753149033_0.png.png imagette221678481744937820/1744937739_4119091_1350930228_d774dc4a228760033ab710c25d1499b5_rle_crop_3753149715_0.png.png imagette221678481744937820/1744937591_3598937_1350930304_7e8d760fd09980ce1b3e781a8dc6eee2_rle_crop_3753149299_0.png.png imagette221678481744937820/1744937412_3597217_1350930192_acfbb627acc00b78b2e515fa3729e7a6_rle_crop_3753148745_0.png.png imagette221678481744937820/1744937739_4119091_1350930228_d774dc4a228760033ab710c25d1499b5_rle_crop_3753149713_0.png.png imagette221678481744937820/1744937591_3598937_1350930306_a196285af2bdee5fe6828eb7c0d7e28a_rle_crop_3753149283_0.png.png imagette221678481744937820/1744937620_1778015_1350930344_8b610fd37a44805bb76da262ad9185a9_rle_crop_3753149409_0.png.png imagette221678481744937820/1744937739_4119091_1350930228_d774dc4a228760033ab710c25d1499b5_rle_crop_3753149719_0.png.png imagette221678481744937820/1744937591_3598937_1350930345_7af077dc5ffb9f370ebeecf297603e8d_rle_crop_3753149252_0.png.png imagette221678481744937820/1744937412_3597217_1350930192_acfbb627acc00b78b2e515fa3729e7a6_rle_crop_3753148742_0.png.png imagette221678481744937820/1744937713_3599703_1350930224_f8c560b290e1138124ad7ed453c542e5_rle_crop_3753149638_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/e8e2ef814a0c1b05ddf964b5c7718695_24729943.png imagette221678481744937820 22167850 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=22167850 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350930215: '1744937294_3595738_1350930107_1f9e5eb19965524f05207a177fac9e77_rle_crop_3753148111_0.png', 1350930216: '1744937294_3595738_1350930105_6495155b86f09dd65fb95e9697c30f84_rle_crop_3753148122_0.png', 1350930297: '1744937412_3597217_1350930197_8dcf9cb6e659c826ac9069a8872134cf_rle_crop_3753148699_0.png', 1350930298: '1744937412_3597217_1350930197_8dcf9cb6e659c826ac9069a8872134cf_rle_crop_3753148700_0.png', 1350930331: '1744937472_3597996_1350930141_15ff7b4fb3c9542b96c8015fd621a0f7_rle_crop_3753149023_0.png', 1350930332: '1744937472_3597996_1350930139_0b1378a839d682e0b91dcdd6361e2fbe_rle_crop_3753149044_0.png', 1350930386: '1744937591_3598937_1350930345_7af077dc5ffb9f370ebeecf297603e8d_rle_crop_3753149254_0.png', 1350930387: '1744937591_3598937_1350930306_a196285af2bdee5fe6828eb7c0d7e28a_rle_crop_3753149285_0.png', 1350930388: '1744937591_3598937_1350930302_40a2a1f98c736217ba8b1e91cf6bf24d_rle_crop_3753149388_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/624999f8deaddb2043882d4b6c4cdfc5_53937024.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/7aec8818e8871339f5991c949463313a_88481454.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/3066acd089f6de432c6b48bdab14480c_37090529.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/aba9b4821a276493721d46de86a727a3_42746776.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/4ff083b58b838a8ebfc26e828f6a820e_77249766.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/facb5c76acd14441024e4981cab6eda4_25972239.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/c8d520835f58c525a6129d786d855c06_57278824.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/4c8999cfe543bc37ba5c589e3e2666b0_93937231.png change filename to text .imagette221678501744937821/ imagette221678501744937821/1744937591_3598937_1350930306_a196285af2bdee5fe6828eb7c0d7e28a_rle_crop_3753149285_0.png.png imagette221678501744937821/1744937591_3598937_1350930302_40a2a1f98c736217ba8b1e91cf6bf24d_rle_crop_3753149388_0.png.png imagette221678501744937821/1744937472_3597996_1350930141_15ff7b4fb3c9542b96c8015fd621a0f7_rle_crop_3753149023_0.png.png imagette221678501744937821/1744937591_3598937_1350930345_7af077dc5ffb9f370ebeecf297603e8d_rle_crop_3753149254_0.png.png imagette221678501744937821/1744937412_3597217_1350930197_8dcf9cb6e659c826ac9069a8872134cf_rle_crop_3753148699_0.png.png imagette221678501744937821/1744937294_3595738_1350930105_6495155b86f09dd65fb95e9697c30f84_rle_crop_3753148122_0.png.png imagette221678501744937821/1744937472_3597996_1350930139_0b1378a839d682e0b91dcdd6361e2fbe_rle_crop_3753149044_0.png.png imagette221678501744937821/1744937294_3595738_1350930107_1f9e5eb19965524f05207a177fac9e77_rle_crop_3753148111_0.png.png imagette221678501744937821/1744937412_3597217_1350930197_8dcf9cb6e659c826ac9069a8872134cf_rle_crop_3753148700_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/487683ede6f725cbbae1f5ea47689b07_16555153.png imagette221678501744937821 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22167840 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22167853,22167854,22167855,22167856,22167857,22167858,22167859,22167860,22167861,22167862,22167863,22167864?tags=mal_croppe,metal,papier,environnement,Carton_gris,plastique,flou,Teint_Dans_La_Masse,kraft,Carton_brun,autre_refus,cartonnette your option no_mail is active, we will not send the real mail to your client args[1350930458] : ('0.05808995978249234',) no score found for photo 1350930458 We are sending mail with results at report@fotonower.com args[1350930456] : ('0.05808995978249234',) no score found for photo 1350930456 We are sending mail with results at report@fotonower.com args[1350930454] : ('0.05808995978249234',) no score found for photo 1350930454 We are sending mail with results at report@fotonower.com args[1350930445] : ('0.05808995978249234',) no score found for photo 1350930445 We are sending mail with results at report@fotonower.com args[1350930442] : ('0.05808995978249234',) no score found for photo 1350930442 We are sending mail with results at report@fotonower.com args[1350930439] : ('0.05808995978249234',) no score found for photo 1350930439 We are sending mail with results at report@fotonower.com args[1350930428] : ('0.05808995978249234',) no score found for photo 1350930428 We are sending mail with results at report@fotonower.com args[1350930422] : ('0.05808995978249234',) no score found for photo 1350930422 We are sending mail with results at report@fotonower.com args[1350930419] : ('0.05808995978249234',) no score found for photo 1350930419 We are sending mail with results at report@fotonower.com args[1350930415] : ('0.05808995978249234',) no score found for photo 1350930415 We are sending mail with results at report@fotonower.com args[1350930413] : ('0.05808995978249234',) no score found for photo 1350930413 We are sending mail with results at report@fotonower.com args[1350930411] : ('0.05808995978249234',) no score found for photo 1350930411 We are sending mail with results at report@fotonower.com args[1350930408] : ('0.05808995978249234',) no score found for photo 1350930408 We are sending mail with results at report@fotonower.com args[1350930407] : ('0.05808995978249234',) no score found for photo 1350930407 We are sending mail with results at report@fotonower.com args[1350930404] : ('0.05808995978249234',) no score found for photo 1350930404 We are sending mail with results at report@fotonower.com args[1350930403] : ('0.05808995978249234',) no score found for photo 1350930403 We are sending mail with results at report@fotonower.com args[1350930401] : ('0.05808995978249234',) no score found for photo 1350930401 We are sending mail with results at report@fotonower.com args[1350930398] : ('0.05808995978249234',) no score found for photo 1350930398 We are sending mail with results at report@fotonower.com refus_total : 0.05808995978249234 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=22167840 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_P22167840_18-04-2025_02_56_58.pdf results_Auto_P22167840_18-04-2025_02_56_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22167840_18-04-2025_02_56_58.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22167840','results_Auto_P22167840_18-04-2025_02_56_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22167840_18-04-2025_02_56_58.pdf','pdf','','0.3','0.05808995978249234') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22167840]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350930458, 1350930456, 1350930454, 1350930445, 1350930442, 1350930439, 1350930428, 1350930422, 1350930419, 1350930415, 1350930413, 1350930411, 1350930408, 1350930407, 1350930404, 1350930403, 1350930401, 1350930398] map_info['map_portfolio_photo'] : {22167840: [1350930458, 1350930456, 1350930454, 1350930445, 1350930442, 1350930439, 1350930428, 1350930422, 1350930419, 1350930415, 1350930413, 1350930411, 1350930408, 1350930407, 1350930404, 1350930403, 1350930401, 1350930398, 1350930365, 1350930364, 1350930363, 1350930361, 1350930359, 1350930345, 1350930344, 1350930342, 1350930309, 1350930307, 1350930306, 1350930304, 1350930302, 1350930270, 1350930263, 1350930258, 1350930228, 1350930224, 1350930220, 1350930209, 1350930200, 1350930197, 1350930194, 1350930192, 1350930183, 1350930148, 1350930146, 1350930143, 1350930141, 1350930139, 1350930107, 1350930105, 1350930097]} final : False mtd_id 4302 list_pids : [1350930458, 1350930456, 1350930454, 1350930445, 1350930442, 1350930439, 1350930428, 1350930422, 1350930419, 1350930415, 1350930413, 1350930411, 1350930408, 1350930407, 1350930404, 1350930403, 1350930401, 1350930398] 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, '2733747') ('4302', '22167840', '1350930458', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930456', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930454', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930445', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930442', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930439', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930428', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930422', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930419', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930415', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930413', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930411', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930408', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930407', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930404', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930403', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930401', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930398', None, None, None, None, None, '2733747') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '22167840', '1350930458', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930456', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930454', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930445', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930442', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930439', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930428', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930422', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930419', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930415', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930413', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930411', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930408', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930407', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930404', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930403', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930401', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930398', None, None, None, None, None, '2733747')] time used for this insertion : 0.01521158218383789 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.295886039733887 time spend to save output : 0.015503644943237305 total time spend for step 4 : 5.311389684677124 step5:split_time_score Fri Apr 18 02:57: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 : ['22167840'] 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 : [('22167840',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22167840) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350930456: {'path': 'temp/1744937818_4125295_1350930456_cee0c96f0ffbb183d8fdbb5ab9558eed.jpg', 'extension': 'jpg'}, 1350930458: {'path': 'temp/1744937818_4125295_1350930458_b90caf1b203ae7b6c597852932e6f803.jpg', 'extension': 'jpg'}, 1350930407: {'path': 'temp/1744937818_4125295_1350930407_5f69b9af7170055c12ed4881e97ef5ad.jpg', 'extension': 'jpg'}, 1350930408: {'path': 'temp/1744937818_4125295_1350930408_428bb25618ae10ac154c0721597223a8.jpg', 'extension': 'jpg'}, 1350930411: {'path': 'temp/1744937818_4125295_1350930411_8afa992dc60c390079ecf2cae4b5fc84.jpg', 'extension': 'jpg'}, 1350930413: {'path': 'temp/1744937818_4125295_1350930413_058453db7c474898fc4596a6eecd60d7.jpg', 'extension': 'jpg'}, 1350930439: {'path': 'temp/1744937818_4125295_1350930439_84ff37266b839db850a30eb47a35e03a.jpg', 'extension': 'jpg'}, 1350930442: {'path': 'temp/1744937818_4125295_1350930442_a3df1f3e66968d9ea4f9542683c9cf71.jpg', 'extension': 'jpg'}, 1350930445: {'path': 'temp/1744937818_4125295_1350930445_8bfcf356bc5d1e687cb9bf11b4a7bb6b.jpg', 'extension': 'jpg'}, 1350930454: {'path': 'temp/1744937818_4125295_1350930454_9f54837a7eb0ef0100006bd6a19bf413.jpg', 'extension': 'jpg'}, 1350930398: {'path': 'temp/1744937818_4125295_1350930398_0be88bce32e8c840b082d8e8e2f1e385.jpg', 'extension': 'jpg'}, 1350930401: {'path': 'temp/1744937818_4125295_1350930401_7efc5d674b8ebf2cae9952fbd2434786.jpg', 'extension': 'jpg'}, 1350930403: {'path': 'temp/1744937818_4125295_1350930403_40a75389151f90df230a78d072984188.jpg', 'extension': 'jpg'}, 1350930404: {'path': 'temp/1744937818_4125295_1350930404_d3547fd31b0cd2aef2da4e3a458914c3.jpg', 'extension': 'jpg'}, 1350930415: {'path': 'temp/1744937818_4125295_1350930415_58a34d463f1f56d1b6ff1455aff7a2a7.jpg', 'extension': 'jpg'}, 1350930419: {'path': 'temp/1744937818_4125295_1350930419_1c02b9d13d1cb5e117f088720e948c8d.jpg', 'extension': 'jpg'}, 1350930422: {'path': 'temp/1744937818_4125295_1350930422_8ad0f77bde335c13e4c217369c318d75.jpg', 'extension': 'jpg'}, 1350930428: {'path': 'temp/1744937818_4125295_1350930428_28dc1883e07ca850b93c048a94bd614e.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 = 22167840; (('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 = 22167840 group by h (('02', 51),) 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=22167840 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 (22167840) 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 (22167840) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18042025 22167840 Nombre de photos uploadées : 51 / 23040 (0%) 18042025 22167840 Nombre de photos taguées (types de déchets): 0 / 51 (0%) 18042025 22167840 Nombre de photos taguées (volume) : 0 / 51 (0%) [{'photo_id': 1350930107, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/1f9e5eb19965524f05207a177fac9e77.jpg', 'username': None, 'uploaded_at': 1744937167, 'text': 'image_18042025_02_45_04_10149.jpg'}, {'photo_id': 1350930105, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/6495155b86f09dd65fb95e9697c30f84.jpg', 'username': None, 'uploaded_at': 1744937167, 'text': 'image_18042025_02_45_14_10140.jpg'}, {'photo_id': 1350930097, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/b54b09372000d47155e4cfc284969478.jpg', 'username': None, 'uploaded_at': 1744937167, 'text': 'image_18042025_02_45_34_10147.jpg'}, {'photo_id': 1350930148, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/b0765c37bb48015386dadb41999a52b7.jpg', 'username': None, 'uploaded_at': 1744937232, 'text': 'image_18042025_02_45_44_10141.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 7.152557373046875e-06 ??????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.003117799758911133 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22167840, '2025-04-18' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1725253,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03087162971496582 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= 1725253 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1725253, 'dashboard_run_id': 1733013, 'mtr_portfolio_id': 22166003, 'dashboard_result_id': 9960111, '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_P22166003_18-04-2025_02_19_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22166006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22166007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22166008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22166009, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22166010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22166011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22166012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22166013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22166014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22166015, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22166016, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22166017, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1733013, 'mtr_portfolio_id': 22166799, 'dashboard_result_id': 9960112, '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_P22166799_18-04-2025_02_33_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22166801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22166802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22166803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22166804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22166805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22166806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22166807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22166808, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22166809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22166810, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22166811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22166812, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1733013, 'mtr_portfolio_id': 22167282, 'dashboard_result_id': 9960113, '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_P22167282_18-04-2025_02_46_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22167286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167288, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167290, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167294, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1733013, 'mtr_portfolio_id': 22167840, 'dashboard_result_id': 9960114, '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_P22167840_18-04-2025_02_55_30.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22167847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167852, '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 = 22166003 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': 2733622, 'mtr_portfolio_id': 22166003, 'created_at': datetime.datetime(2025, 4, 18, 2, 19), 'result': '0.04644162096041784', 'result_long': None, 'result_double': None}] Qualite : 0.04644162096041784 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22166003 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22166003_18-04-2025_02_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22166003 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_P22166003_18-04-2025_02_19_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22166006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22166007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22166008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22166009, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22166010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22166011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22166012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22166013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22166014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22166015, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22166016, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22166017, 'pht': 3726}}" where mtr_portfolio_id = 22166003 and dashboard_run_id = 1733013 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`=22166003 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9960111, 0.04644162096041784, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22166003_18-04-2025_02_19_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22166006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22166007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22166008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22166009, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22166010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22166011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22166012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22166013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22166014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22166015, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22166016, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22166017, '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 = 22166799 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': 2733672, 'mtr_portfolio_id': 22166799, 'created_at': datetime.datetime(2025, 4, 18, 2, 33, 28), 'result': '0.05064965434483151', 'result_long': None, 'result_double': None}] Qualite : 0.05064965434483151 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22166799 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22166799_18-04-2025_02_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22166799 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_P22166799_18-04-2025_02_33_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22166801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22166802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22166803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22166804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22166805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22166806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22166807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22166808, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22166809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22166810, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22166811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22166812, 'pht': 3726}}" where mtr_portfolio_id = 22166799 and dashboard_run_id = 1733013 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`=22166799 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9960112, 0.05064965434483151, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22166799_18-04-2025_02_33_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22166801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22166802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22166803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22166804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22166805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22166806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22166807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22166808, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22166809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22166810, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22166811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22166812, '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 = 22167282 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': 2733708, 'mtr_portfolio_id': 22167282, 'created_at': datetime.datetime(2025, 4, 18, 2, 46, 29), 'result': '0.07598048553157151', 'result_long': None, 'result_double': None}] Qualite : 0.07598048553157151 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22167282 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22167282_18-04-2025_02_46_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22167282 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_P22167282_18-04-2025_02_46_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22167286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167288, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167290, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167294, 'pht': 3726}}" where mtr_portfolio_id = 22167282 and dashboard_run_id = 1733013 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`=22167282 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9960113, 0.07598048553157151, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22167282_18-04-2025_02_46_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22167286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167288, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167290, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167294, '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 = 22167840 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': 2733747, 'mtr_portfolio_id': 22167840, 'created_at': datetime.datetime(2025, 4, 18, 2, 56, 57), 'result': '0.05808995978249234', 'result_long': None, 'result_double': None}] Qualite : 0.05808995978249234 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22167840 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22167840_18-04-2025_02_56_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22167840 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_P22167840_18-04-2025_02_56_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22167847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167852, 'pht': 3726}}" where mtr_portfolio_id = 22167840 and dashboard_run_id = 1733013 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`=22167840 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9960114, 0.05808995978249234, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22167840_18-04-2025_02_56_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22167847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167852, '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 (22166003,22166799,22167282,22167840) result : ((1350923747,), (1350923790,), (1350923811,), (1350923910,), (1350923912,), (1350923913,), (1350923914,), (1350923916,), (1350923918,), (1350923941,), (1350923943,), (1350923945,), (1350923972,), (1350923974,), (1350923976,), (1350923978,), (1350923980,), (1350924009,), (1350924014,), (1350924016,), (1350924018,), (1350924044,), (1350924045,), (1350924046,), (1350924047,), (1350924049,), (1350924110,), (1350924120,), (1350924123,), (1350924402,), (1350924475,), (1350924518,), (1350924520,), (1350924524,), (1350924527,), (1350924918,), (1350924968,), (1350925016,), (1350925067,), (1350925116,), (1350925165,), (1350925407,), (1350925409,), (1350925426,), (1350925462,), (1350926032,), (1350926102,), (1350926177,), (1350926233,), (1350926649,), (1350926674,), (1350926706,), (1350926737,), (1350926755,), (1350926789,), (1350926791,), (1350926819,), (1350926848,), (1350926873,), (1350927103,), (1350927113,), (1350927128,), (1350927181,), (1350927183,), (1350927185,), (1350927187,), (1350927191,), (1350927868,), (1350927214,), (1350927216,), (1350927277,), (1350927517,), (1350927709,), (1350928273,), (1350928275,), (1350928277,), (1350928279,), (1350928316,), (1350928318,), (1350928319,), (1350928321,), (1350928325,), (1350928442,), (1350928874,), (1350928877,), (1350928880,), (1350928883,), (1350928885,), (1350928887,), (1350928906,), (1350928909,), (1350928914,), (1350928922,), (1350928926,), (1350928929,), (1350928931,), (1350928932,), (1350928933,), (1350929016,), (1350929029,), (1350929038,), (1350929044,), (1350929048,), (1350929052,), (1350929073,), (1350929074,), (1350929075,), (1350929096,), (1350929097,), (1350929117,), (1350929162,), (1350929167,), (1350929171,), (1350929175,), (1350929179,), (1350929201,), (1350929211,), (1350929213,), (1350929216,), (1350929235,), (1350929237,), (1350929241,), (1350929246,), (1350929251,), (1350929254,), (1350929270,), (1350929272,), (1350929274,), (1350929277,), (1350929280,), (1350929288,), (1350929298,), (1350929300,), (1350929302,), (1350929333,), (1350929338,), (1350929343,), (1350929347,), (1350929350,), (1350929427,), (1350929378,), (1350929379,), (1350929380,), (1350929403,), (1350929422,), (1350929450,), (1350929456,), (1350929458,), (1350929495,), (1350929501,), (1350929506,), (1350929509,), (1350929513,), (1350929515,), (1350929543,), (1350929546,), (1350929548,), (1350929551,), (1350929557,), (1350929593,), (1350929596,), (1350929598,), (1350929600,), (1350929634,), (1350929635,), (1350929636,), (1350929637,), (1350929639,), (1350929664,), (1350929667,), (1350929670,), (1350929673,), (1350929696,), (1350929702,), (1350929718,), (1350929724,), (1350929729,), (1350929758,), (1350929760,), (1350929762,), (1350929764,), (1350929802,), (1350929809,), (1350929811,), (1350929813,), (1350929817,), (1350929822,), (1350929880,), (1350929882,), (1350929884,), (1350929886,), (1350929925,), (1350929930,), (1350929933,), (1350929938,), (1350930056,), (1350930057,), (1350930109,), (1350930097,), (1350930105,), (1350930107,), (1350930139,), (1350930141,), (1350930143,), (1350930146,), (1350930148,), (1350930183,), (1350930192,), (1350930194,), (1350930197,), (1350930200,), (1350930209,), (1350930220,), (1350930224,), (1350930228,), (1350930258,), (1350930263,), (1350930270,), (1350930302,), (1350930304,), (1350930306,), (1350930307,), (1350930309,), (1350930342,), (1350930344,), (1350930345,), (1350930359,), (1350930361,), (1350930363,), (1350930364,), (1350930365,), (1350930398,), (1350930401,), (1350930403,), (1350930404,), (1350930407,), (1350930408,), (1350930411,), (1350930413,), (1350930415,), (1350930419,), (1350930422,), (1350930428,), (1350930439,), (1350930442,), (1350930445,), (1350930454,), (1350930456,), (1350930458,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18042025': {'nb_upload': 51, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22167840]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350930458, 1350930456, 1350930454, 1350930445, 1350930442, 1350930439, 1350930428, 1350930422, 1350930419, 1350930415, 1350930413, 1350930411, 1350930408, 1350930407, 1350930404, 1350930403, 1350930401, 1350930398] map_info['map_portfolio_photo'] : {22167840: [1350930458, 1350930456, 1350930454, 1350930445, 1350930442, 1350930439, 1350930428, 1350930422, 1350930419, 1350930415, 1350930413, 1350930411, 1350930408, 1350930407, 1350930404, 1350930403, 1350930401, 1350930398, 1350930365, 1350930364, 1350930363, 1350930361, 1350930359, 1350930345, 1350930344, 1350930342, 1350930309, 1350930307, 1350930306, 1350930304, 1350930302, 1350930270, 1350930263, 1350930258, 1350930228, 1350930224, 1350930220, 1350930209, 1350930200, 1350930197, 1350930194, 1350930192, 1350930183, 1350930148, 1350930146, 1350930143, 1350930141, 1350930139, 1350930107, 1350930105, 1350930097]} final : True mtd_id 4302 list_pids : [1350930458, 1350930456, 1350930454, 1350930445, 1350930442, 1350930439, 1350930428, 1350930422, 1350930419, 1350930415, 1350930413, 1350930411, 1350930408, 1350930407, 1350930404, 1350930403, 1350930401, 1350930398] Looping around the photos to save general results len do output : 1 /22167840Didn'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, '2733747') ('4302', '22167840', '1350930458', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930456', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930454', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930445', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930442', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930439', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930428', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930422', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930419', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930415', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930413', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930411', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930408', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930407', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930404', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930403', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930401', None, None, None, None, None, '2733747') ('4302', None, None, None, None, None, None, None, '2733747') ('4302', '22167840', '1350930398', None, None, None, None, None, '2733747') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '22167840', 'None', None, None, None, None, '2733747'), ('4302', '22167840', '1350930458', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930456', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930454', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930445', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930442', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930439', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930428', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930422', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930419', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930415', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930413', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930411', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930408', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930407', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930404', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930403', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930401', None, None, None, None, None, '2733747'), ('4302', '22167840', '1350930398', None, None, None, None, None, '2733747')] time used for this insertion : 0.01584625244140625 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3437464237213135 time spend to save output : 0.016209840774536133 total time spend for step 5 : 0.3599562644958496 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 (2733747) 2.34user 2.43system 0:08.28elapsed 57%CPU (0avgtext+0avgdata 161168maxresident)k 56inputs+18008outputs (1major+74862minor)pagefaults 0swaps