result : ((1352947707,), (1352947712,), (1352947728,), (1352947738,), (1352947859,), (1352947861,), (1352947864,), (1352947867,), (1352947870,), (1352947967,), (1352947968,), (1352947970,), (1352948016,), (1352948022,), (1352948031,), (1352948046,), (1352948060,), (1352948072,), (1352948187,), (1352948206,), (1352948208,), (1352948249,), (1352948252,), (1352948255,), (1352948258,), (1352948262,), (1352948312,), (1352948314,), (1352948317,), (1352948321,), (1352948324,), (1352948340,), (1352948405,), (1352948484,), (1352948514,), (1352948550,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22333222 , 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=22333179 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 (22333222) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22333179) result : ((1352947707,), (1352947712,), (1352947728,), (1352947738,), (1352947859,), (1352947861,), (1352947864,), (1352947867,), (1352947870,), (1352947967,), (1352947968,), (1352947970,), (1352948016,), (1352948022,), (1352948031,), (1352948046,), (1352948060,), (1352948072,), (1352948187,), (1352948206,), (1352948208,), (1352948249,), (1352948252,), (1352948255,), (1352948258,), (1352948262,), (1352948312,), (1352948314,), (1352948317,), (1352948321,), (1352948324,), (1352948340,), (1352948405,), (1352948484,), (1352948514,), (1352948550,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22333223 , 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=22333179 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='mal_croppe' 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 (22333223) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22333179) result : ((1352947707,), (1352947712,), (1352947728,), (1352947738,), (1352947859,), (1352947861,), (1352947864,), (1352947867,), (1352947870,), (1352947967,), (1352947968,), (1352947970,), (1352948016,), (1352948022,), (1352948031,), (1352948046,), (1352948060,), (1352948072,), (1352948187,), (1352948206,), (1352948208,), (1352948249,), (1352948252,), (1352948255,), (1352948258,), (1352948262,), (1352948312,), (1352948314,), (1352948317,), (1352948321,), (1352948324,), (1352948340,), (1352948405,), (1352948484,), (1352948514,), (1352948550,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22333224 , 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=22333179 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 (22333224) result : ((1352948369,), (1352948511,), (1352948513,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22333179) result : ((1352947707,), (1352947712,), (1352947728,), (1352947738,), (1352947859,), (1352947861,), (1352947864,), (1352947867,), (1352947870,), (1352947967,), (1352947968,), (1352947970,), (1352948016,), (1352948022,), (1352948031,), (1352948046,), (1352948060,), (1352948072,), (1352948187,), (1352948206,), (1352948208,), (1352948249,), (1352948252,), (1352948255,), (1352948258,), (1352948262,), (1352948312,), (1352948314,), (1352948317,), (1352948321,), (1352948324,), (1352948340,), (1352948405,), (1352948484,), (1352948514,), (1352948550,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22333225 , 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=22333179 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_gris' 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 (22333225) result : ((1352948048,), (1352948224,), (1352948303,), (1352948304,), (1352948400,), (1352948527,), (1352948529,), (1352948531,), (1352948533,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22333179) result : ((1352947707,), (1352947712,), (1352947728,), (1352947738,), (1352947859,), (1352947861,), (1352947864,), (1352947867,), (1352947870,), (1352947967,), (1352947968,), (1352947970,), (1352948016,), (1352948022,), (1352948031,), (1352948046,), (1352948060,), (1352948072,), (1352948187,), (1352948206,), (1352948208,), (1352948249,), (1352948252,), (1352948255,), (1352948258,), (1352948262,), (1352948312,), (1352948314,), (1352948317,), (1352948321,), (1352948324,), (1352948340,), (1352948405,), (1352948484,), (1352948514,), (1352948550,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22333226 , 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=22333179 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 (22333226) result : ((1352948308,), (1352948401,), (1352948554,), (1352948556,), (1352948558,), (1352948560,), (1352948562,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22333179) result : ((1352947707,), (1352947712,), (1352947728,), (1352947738,), (1352947859,), (1352947861,), (1352947864,), (1352947867,), (1352947870,), (1352947967,), (1352947968,), (1352947970,), (1352948016,), (1352948022,), (1352948031,), (1352948046,), (1352948060,), (1352948072,), (1352948187,), (1352948206,), (1352948208,), (1352948249,), (1352948252,), (1352948255,), (1352948258,), (1352948262,), (1352948312,), (1352948314,), (1352948317,), (1352948321,), (1352948324,), (1352948340,), (1352948405,), (1352948484,), (1352948514,), (1352948550,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22333227 , 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=22333179 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='metal' 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 (22333227) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22333179) result : ((1352947707,), (1352947712,), (1352947728,), (1352947738,), (1352947859,), (1352947861,), (1352947864,), (1352947867,), (1352947870,), (1352947967,), (1352947968,), (1352947970,), (1352948016,), (1352948022,), (1352948031,), (1352948046,), (1352948060,), (1352948072,), (1352948187,), (1352948206,), (1352948208,), (1352948249,), (1352948252,), (1352948255,), (1352948258,), (1352948262,), (1352948312,), (1352948314,), (1352948317,), (1352948321,), (1352948324,), (1352948340,), (1352948405,), (1352948484,), (1352948514,), (1352948550,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22333228 , 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=22333179 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 (22333228) result : ((1352948042,), (1352948043,), (1352948044,), (1352948302,), (1352948368,), (1352948398,), (1352948498,), (1352948500,), (1352948502,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22333179) result : ((1352947707,), (1352947712,), (1352947728,), (1352947738,), (1352947859,), (1352947861,), (1352947864,), (1352947867,), (1352947870,), (1352947967,), (1352947968,), (1352947970,), (1352948016,), (1352948022,), (1352948031,), (1352948046,), (1352948060,), (1352948072,), (1352948187,), (1352948206,), (1352948208,), (1352948249,), (1352948252,), (1352948255,), (1352948258,), (1352948262,), (1352948312,), (1352948314,), (1352948317,), (1352948321,), (1352948324,), (1352948340,), (1352948405,), (1352948484,), (1352948514,), (1352948550,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22333179 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Teint_Dans_La_Masse','autre_refus','mal_croppe','papier','kraft','plastique','metal','environnement','Carton_gris','cartonnette','flou')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22333179 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_brun','Teint_Dans_La_Masse','autre_refus','mal_croppe','papier','kraft','plastique','metal','environnement','Carton_gris','cartonnette','flou')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 22333179, 'sub_port_id': 22333229, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14790912, 'last_updated_at': datetime.datetime(2025, 4, 23, 8, 35, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 8, 35, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 8, 35, 31)}, 'papier': {'main_port_id': 22333179, 'sub_port_id': 22333230, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14790913, 'last_updated_at': datetime.datetime(2025, 4, 23, 8, 35, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 8, 35, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 8, 35, 31)}, 'cartonnette': {'main_port_id': 22333179, 'sub_port_id': 22333231, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14790914, 'last_updated_at': datetime.datetime(2025, 4, 23, 8, 35, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 8, 35, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 8, 35, 31)}, 'plastique': {'main_port_id': 22333179, 'sub_port_id': 22333232, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14790915, 'last_updated_at': datetime.datetime(2025, 4, 23, 8, 35, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 8, 35, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 8, 35, 31)}, 'kraft': {'main_port_id': 22333179, 'sub_port_id': 22333233, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14790916, 'last_updated_at': datetime.datetime(2025, 4, 23, 8, 35, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 8, 35, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 8, 35, 31)}, 'flou': {'main_port_id': 22333179, 'sub_port_id': 22333234, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14790917, 'last_updated_at': datetime.datetime(2025, 4, 23, 8, 35, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 8, 35, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 8, 35, 31)}, 'mal_croppe': {'main_port_id': 22333179, 'sub_port_id': 22333235, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14790918, 'last_updated_at': datetime.datetime(2025, 4, 23, 8, 35, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 8, 35, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 8, 35, 31)}, 'autre_refus': {'main_port_id': 22333179, 'sub_port_id': 22333236, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14790919, 'last_updated_at': datetime.datetime(2025, 4, 23, 8, 35, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 8, 35, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 8, 35, 31)}, 'Carton_gris': {'main_port_id': 22333179, 'sub_port_id': 22333237, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14790920, 'last_updated_at': datetime.datetime(2025, 4, 23, 8, 35, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 8, 35, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 8, 35, 31)}, 'Carton_brun': {'main_port_id': 22333179, 'sub_port_id': 22333238, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14790921, 'last_updated_at': datetime.datetime(2025, 4, 23, 8, 35, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 8, 35, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 8, 35, 31)}, 'metal': {'main_port_id': 22333179, 'sub_port_id': 22333239, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14790922, 'last_updated_at': datetime.datetime(2025, 4, 23, 8, 35, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 8, 35, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 8, 35, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 22333179, 'sub_port_id': 22333240, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14790923, 'last_updated_at': datetime.datetime(2025, 4, 23, 8, 36, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 23, 8, 36, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 23, 8, 35, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22333229,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22333217 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22333230,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22333218 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22333231,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22333219 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22333232,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22333220 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22333233,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22333221 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22333234,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22333222 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22333235,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22333223 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22333236,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22333224 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22333237,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22333225 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22333238,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22333226 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22333239,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22333227 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22333240,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22333228 lien utilise dans velours : https://www.fotonower.com/velours/22333229,22333230,22333231,22333232,22333233,22333234,22333235,22333236,22333237,22333238,22333239,22333240?tags=environnement,papier,cartonnette,plastique,kraft,flou,mal_croppe,autre_refus,Carton_gris,Carton_brun,metal,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22333179]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1352948550, 1352948514, 1352948484, 1352948405, 1352948340, 1352948324, 1352948321, 1352948317, 1352948314, 1352948312] map_info['map_portfolio_photo'] : {22333179: [1352948550, 1352948514, 1352948484, 1352948405, 1352948340, 1352948324, 1352948321, 1352948317, 1352948314, 1352948312, 1352948262, 1352948258, 1352948255, 1352948252, 1352948249, 1352948208, 1352948206, 1352948187, 1352948072, 1352948060, 1352948046, 1352948031, 1352948022, 1352948016, 1352947970, 1352947968, 1352947967, 1352947870, 1352947867, 1352947864, 1352947861, 1352947859, 1352947738, 1352947728, 1352947712, 1352947707]} final : False mtd_id 4302 list_pids : [1352948550, 1352948514, 1352948484, 1352948405, 1352948340, 1352948324, 1352948321, 1352948317, 1352948314, 1352948312] Looping around the photos to save general results len do output : 1 /22333179. 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, '2752018') ('4302', '22333179', '1352948550', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948514', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948484', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948405', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948340', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948324', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948321', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948317', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948314', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948312', None, None, None, None, None, '2752018') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22333179', "{'environnement': 22333217, 'papier': 22333218, 'cartonnette': 22333219, 'plastique': 22333220, 'kraft': 22333221, 'flou': 22333222, 'mal_croppe': 22333223, 'autre_refus': 22333224, 'Carton_gris': 22333225, 'Carton_brun': 22333226, 'metal': 22333227, 'Teint_Dans_La_Masse': 22333228}", None, None, None, None, '2752018'), ('4302', '22333179', '1352948550', None, None, None, None, None, '2752018'), ('4302', '22333179', '1352948514', None, None, None, None, None, '2752018'), ('4302', '22333179', '1352948484', None, None, None, None, None, '2752018'), ('4302', '22333179', '1352948405', None, None, None, None, None, '2752018'), ('4302', '22333179', '1352948340', None, None, None, None, None, '2752018'), ('4302', '22333179', '1352948324', None, None, None, None, None, '2752018'), ('4302', '22333179', '1352948321', None, None, None, None, None, '2752018'), ('4302', '22333179', '1352948317', None, None, None, None, None, '2752018'), ('4302', '22333179', '1352948314', None, None, None, None, None, '2752018'), ('4302', '22333179', '1352948312', None, None, None, None, None, '2752018')] time used for this insertion : 0.01456594467163086 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.124051094055176 time spend to save output : 0.014857292175292969 total time spend for step 1 : 2.1389083862304688 step2:final Wed Apr 23 08:38:31 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 (22333179) 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 22333179 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1352947738,1352947728,1352947712,1352947707,1352947870,1352947867,1352947864,1352947861,1352947859,1352947970,1352947968,1352947967,1352948072,1352948060,1352948046,1352948031,1352948022,1352948016,1352948208,1352948206,1352948187,1352948262,1352948258,1352948255,1352948252,1352948249,1352948340,1352948324,1352948321,1352948317,1352948314,1352948312,1352948550,1352948514,1352948484,1352948405); 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([22333179]) Inside saveOutput : final : False verbose : True original output for save of step final : {1352948550: ('0.06767792389962696',), 1352948514: ('0.06767792389962696',), 1352948484: ('0.06767792389962696',), 1352948405: ('0.06767792389962696',), 1352948340: ('0.06767792389962696',), 1352948324: ('0.06767792389962696',), 1352948321: ('0.06767792389962696',), 1352948317: ('0.06767792389962696',), 1352948314: ('0.06767792389962696',), 1352948312: ('0.06767792389962696',)} new output for save of step final : {1352948550: ('0.06767792389962696',), 1352948514: ('0.06767792389962696',), 1352948484: ('0.06767792389962696',), 1352948405: ('0.06767792389962696',), 1352948340: ('0.06767792389962696',), 1352948324: ('0.06767792389962696',), 1352948321: ('0.06767792389962696',), 1352948317: ('0.06767792389962696',), 1352948314: ('0.06767792389962696',), 1352948312: ('0.06767792389962696',)} [1352948550, 1352948514, 1352948484, 1352948405, 1352948340, 1352948324, 1352948321, 1352948317, 1352948314, 1352948312] map_info['map_portfolio_photo'] : {22333179: [1352948550, 1352948514, 1352948484, 1352948405, 1352948340, 1352948324, 1352948321, 1352948317, 1352948314, 1352948312, 1352948262, 1352948258, 1352948255, 1352948252, 1352948249, 1352948208, 1352948206, 1352948187, 1352948072, 1352948060, 1352948046, 1352948031, 1352948022, 1352948016, 1352947970, 1352947968, 1352947967, 1352947870, 1352947867, 1352947864, 1352947861, 1352947859, 1352947738, 1352947728, 1352947712, 1352947707]} final : False mtd_id 4302 list_pids : [1352948550, 1352948514, 1352948484, 1352948405, 1352948340, 1352948324, 1352948321, 1352948317, 1352948314, 1352948312] Looping around the photos to save general results len do output : 10 /1352948550.Didn't retrieve data . /1352948514.Didn't retrieve data . /1352948484.Didn't retrieve data . /1352948405.Didn't retrieve data . /1352948340.Didn't retrieve data . /1352948324.Didn't retrieve data . /1352948321.Didn't retrieve data . /1352948317.Didn't retrieve data . /1352948314.Didn't retrieve data . /1352948312.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, '2752018') ('4302', '22333179', '1352948550', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948514', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948484', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948405', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948340', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948324', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948321', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948317', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948314', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948312', None, None, None, None, None, '2752018') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22333179', '1352948550', '0.06767792389962696', None, None, None, None, '2752018'), ('4302', '22333179', '1352948514', '0.06767792389962696', None, None, None, None, '2752018'), ('4302', '22333179', '1352948484', '0.06767792389962696', None, None, None, None, '2752018'), ('4302', '22333179', '1352948405', '0.06767792389962696', None, None, None, None, '2752018'), ('4302', '22333179', '1352948340', '0.06767792389962696', None, None, None, None, '2752018'), ('4302', '22333179', '1352948324', '0.06767792389962696', None, None, None, None, '2752018'), ('4302', '22333179', '1352948321', '0.06767792389962696', None, None, None, None, '2752018'), ('4302', '22333179', '1352948317', '0.06767792389962696', None, None, None, None, '2752018'), ('4302', '22333179', '1352948314', '0.06767792389962696', None, None, None, None, '2752018'), ('4302', '22333179', '1352948312', '0.06767792389962696', None, None, None, None, '2752018')] time used for this insertion : 0.1609644889831543 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0821533203125 time spend to save output : 0.1615438461303711 total time spend for step 2 : 0.2436971664428711 step3:velours_tree Wed Apr 23 08:38:31 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 : {22333179: [{'environnement': 22333217, 'papier': 22333218, 'cartonnette': 22333219, 'plastique': 22333220, 'kraft': 22333221, 'flou': 22333222, 'mal_croppe': 22333223, 'autre_refus': 22333224, 'Carton_gris': 22333225, 'Carton_brun': 22333226, 'metal': 22333227, 'Teint_Dans_La_Masse': 22333228}]} input_args_next_step : {22333179: ()} output_args : {22333179: [{'environnement': 22333217, 'papier': 22333218, 'cartonnette': 22333219, 'plastique': 22333220, 'kraft': 22333221, 'flou': 22333222, 'mal_croppe': 22333223, 'autre_refus': 22333224, 'Carton_gris': 22333225, 'Carton_brun': 22333226, 'metal': 22333227, 'Teint_Dans_La_Masse': 22333228}]} args : 22333179 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'environnement': 22333217, 'papier': 22333218, 'cartonnette': 22333219, 'plastique': 22333220, 'kraft': 22333221, 'flou': 22333222, 'mal_croppe': 22333223, 'autre_refus': 22333224, 'Carton_gris': 22333225, 'Carton_brun': 22333226, 'metal': 22333227, 'Teint_Dans_La_Masse': 22333228},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22333179) 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([22333179]) 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.32672667503356934 time spend to save output : 5.793571472167969e-05 total time spend for step 3 : 0.326784610748291 step4:send_mail_cod Wed Apr 23 08:38:31 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 : {1352948550: ('0.06767792389962696',), 1352948514: ('0.06767792389962696',), 1352948484: ('0.06767792389962696',), 1352948405: ('0.06767792389962696',), 1352948340: ('0.06767792389962696',), 1352948324: ('0.06767792389962696',), 1352948321: ('0.06767792389962696',), 1352948317: ('0.06767792389962696',), 1352948314: ('0.06767792389962696',), 1352948312: ('0.06767792389962696',)} input_args_next_step : {1352948550: ()} output_args : {1352948550: ('0.06767792389962696',), 1352948514: ('0.06767792389962696',), 1352948484: ('0.06767792389962696',), 1352948405: ('0.06767792389962696',), 1352948340: ('0.06767792389962696',), 1352948324: ('0.06767792389962696',), 1352948321: ('0.06767792389962696',), 1352948317: ('0.06767792389962696',), 1352948314: ('0.06767792389962696',), 1352948312: ('0.06767792389962696',)} args : 1352948550 depend.output_id : 0 input_args_next_step : {1352948550: ('0.06767792389962696',), 1352948514: ()} output_args : {1352948550: ('0.06767792389962696',), 1352948514: ('0.06767792389962696',), 1352948484: ('0.06767792389962696',), 1352948405: ('0.06767792389962696',), 1352948340: ('0.06767792389962696',), 1352948324: ('0.06767792389962696',), 1352948321: ('0.06767792389962696',), 1352948317: ('0.06767792389962696',), 1352948314: ('0.06767792389962696',), 1352948312: ('0.06767792389962696',)} args : 1352948514 depend.output_id : 0 input_args_next_step : {1352948550: ('0.06767792389962696',), 1352948514: ('0.06767792389962696',), 1352948484: ()} output_args : {1352948550: ('0.06767792389962696',), 1352948514: ('0.06767792389962696',), 1352948484: ('0.06767792389962696',), 1352948405: ('0.06767792389962696',), 1352948340: ('0.06767792389962696',), 1352948324: ('0.06767792389962696',), 1352948321: ('0.06767792389962696',), 1352948317: ('0.06767792389962696',), 1352948314: ('0.06767792389962696',), 1352948312: ('0.06767792389962696',)} args : 1352948484 depend.output_id : 0 input_args_next_step : {1352948550: ('0.06767792389962696',), 1352948514: ('0.06767792389962696',), 1352948484: ('0.06767792389962696',), 1352948405: ()} output_args : {1352948550: ('0.06767792389962696',), 1352948514: ('0.06767792389962696',), 1352948484: ('0.06767792389962696',), 1352948405: ('0.06767792389962696',), 1352948340: ('0.06767792389962696',), 1352948324: ('0.06767792389962696',), 1352948321: ('0.06767792389962696',), 1352948317: ('0.06767792389962696',), 1352948314: ('0.06767792389962696',), 1352948312: ('0.06767792389962696',)} args : 1352948405 depend.output_id : 0 input_args_next_step : {1352948550: ('0.06767792389962696',), 1352948514: ('0.06767792389962696',), 1352948484: ('0.06767792389962696',), 1352948405: ('0.06767792389962696',), 1352948340: ()} output_args : {1352948550: ('0.06767792389962696',), 1352948514: ('0.06767792389962696',), 1352948484: ('0.06767792389962696',), 1352948405: ('0.06767792389962696',), 1352948340: ('0.06767792389962696',), 1352948324: ('0.06767792389962696',), 1352948321: ('0.06767792389962696',), 1352948317: ('0.06767792389962696',), 1352948314: ('0.06767792389962696',), 1352948312: ('0.06767792389962696',)} args : 1352948340 depend.output_id : 0 input_args_next_step : {1352948550: ('0.06767792389962696',), 1352948514: ('0.06767792389962696',), 1352948484: ('0.06767792389962696',), 1352948405: ('0.06767792389962696',), 1352948340: ('0.06767792389962696',), 1352948324: ()} output_args : {1352948550: ('0.06767792389962696',), 1352948514: ('0.06767792389962696',), 1352948484: ('0.06767792389962696',), 1352948405: ('0.06767792389962696',), 1352948340: ('0.06767792389962696',), 1352948324: ('0.06767792389962696',), 1352948321: ('0.06767792389962696',), 1352948317: ('0.06767792389962696',), 1352948314: ('0.06767792389962696',), 1352948312: ('0.06767792389962696',)} args : 1352948324 depend.output_id : 0 input_args_next_step : {1352948550: ('0.06767792389962696',), 1352948514: ('0.06767792389962696',), 1352948484: ('0.06767792389962696',), 1352948405: ('0.06767792389962696',), 1352948340: ('0.06767792389962696',), 1352948324: ('0.06767792389962696',), 1352948321: ()} output_args : {1352948550: ('0.06767792389962696',), 1352948514: ('0.06767792389962696',), 1352948484: ('0.06767792389962696',), 1352948405: ('0.06767792389962696',), 1352948340: ('0.06767792389962696',), 1352948324: ('0.06767792389962696',), 1352948321: ('0.06767792389962696',), 1352948317: ('0.06767792389962696',), 1352948314: ('0.06767792389962696',), 1352948312: ('0.06767792389962696',)} args : 1352948321 depend.output_id : 0 input_args_next_step : {1352948550: ('0.06767792389962696',), 1352948514: ('0.06767792389962696',), 1352948484: ('0.06767792389962696',), 1352948405: ('0.06767792389962696',), 1352948340: ('0.06767792389962696',), 1352948324: ('0.06767792389962696',), 1352948321: ('0.06767792389962696',), 1352948317: ()} output_args : {1352948550: ('0.06767792389962696',), 1352948514: ('0.06767792389962696',), 1352948484: ('0.06767792389962696',), 1352948405: ('0.06767792389962696',), 1352948340: ('0.06767792389962696',), 1352948324: ('0.06767792389962696',), 1352948321: ('0.06767792389962696',), 1352948317: ('0.06767792389962696',), 1352948314: ('0.06767792389962696',), 1352948312: ('0.06767792389962696',)} args : 1352948317 depend.output_id : 0 input_args_next_step : {1352948550: ('0.06767792389962696',), 1352948514: ('0.06767792389962696',), 1352948484: ('0.06767792389962696',), 1352948405: ('0.06767792389962696',), 1352948340: ('0.06767792389962696',), 1352948324: ('0.06767792389962696',), 1352948321: ('0.06767792389962696',), 1352948317: ('0.06767792389962696',), 1352948314: ()} output_args : {1352948550: ('0.06767792389962696',), 1352948514: ('0.06767792389962696',), 1352948484: ('0.06767792389962696',), 1352948405: ('0.06767792389962696',), 1352948340: ('0.06767792389962696',), 1352948324: ('0.06767792389962696',), 1352948321: ('0.06767792389962696',), 1352948317: ('0.06767792389962696',), 1352948314: ('0.06767792389962696',), 1352948312: ('0.06767792389962696',)} args : 1352948314 depend.output_id : 0 input_args_next_step : {1352948550: ('0.06767792389962696',), 1352948514: ('0.06767792389962696',), 1352948484: ('0.06767792389962696',), 1352948405: ('0.06767792389962696',), 1352948340: ('0.06767792389962696',), 1352948324: ('0.06767792389962696',), 1352948321: ('0.06767792389962696',), 1352948317: ('0.06767792389962696',), 1352948314: ('0.06767792389962696',), 1352948312: ()} output_args : {1352948550: ('0.06767792389962696',), 1352948514: ('0.06767792389962696',), 1352948484: ('0.06767792389962696',), 1352948405: ('0.06767792389962696',), 1352948340: ('0.06767792389962696',), 1352948324: ('0.06767792389962696',), 1352948321: ('0.06767792389962696',), 1352948317: ('0.06767792389962696',), 1352948314: ('0.06767792389962696',), 1352948312: ('0.06767792389962696',)} args : 1352948312 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 : {22333179: [{'environnement': 22333217, 'papier': 22333218, 'cartonnette': 22333219, 'plastique': 22333220, 'kraft': 22333221, 'flou': 22333222, 'mal_croppe': 22333223, 'autre_refus': 22333224, 'Carton_gris': 22333225, 'Carton_brun': 22333226, 'metal': 22333227, 'Teint_Dans_La_Masse': 22333228}]} input_args_next_step : {1352948550: ('0.06767792389962696',), 1352948514: ('0.06767792389962696',), 1352948484: ('0.06767792389962696',), 1352948405: ('0.06767792389962696',), 1352948340: ('0.06767792389962696',), 1352948324: ('0.06767792389962696',), 1352948321: ('0.06767792389962696',), 1352948317: ('0.06767792389962696',), 1352948314: ('0.06767792389962696',), 1352948312: ('0.06767792389962696',), 22333179: ()} output_args : {22333179: [{'environnement': 22333217, 'papier': 22333218, 'cartonnette': 22333219, 'plastique': 22333220, 'kraft': 22333221, 'flou': 22333222, 'mal_croppe': 22333223, 'autre_refus': 22333224, 'Carton_gris': 22333225, 'Carton_brun': 22333226, 'metal': 22333227, 'Teint_Dans_La_Masse': 22333228}]} args : 22333179 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :11, first value : ('0.06767792389962696',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22333179) 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 (1352948550,1352948514,1352948484,1352948405,1352948340,1352948324,1352948321,1352948317,1352948314,1352948312) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1352948312 begin to download photo : 1352948321 begin to download photo : 1352948405 begin to download photo : 1352948550 download finish for photo 1352948405 begin to download photo : 1352948484 download finish for photo 1352948312 begin to download photo : 1352948314 download finish for photo 1352948321 begin to download photo : 1352948324 download finish for photo 1352948550 download finish for photo 1352948484 begin to download photo : 1352948514 download finish for photo 1352948324 begin to download photo : 1352948340 download finish for photo 1352948314 begin to download photo : 1352948317 download finish for photo 1352948514 download finish for photo 1352948317 download finish for photo 1352948340 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P22333179_23-04-2025_08_38_32.pdf 22333219 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=22333219 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352948054: '1745390020_2311539_1352947728_adb78718f95715398bc067e2613a06fe_rle_crop_3764989805_0.png', 1352948305: '1745390174_3944965_1352947867_1e8bfd062f7817ed922a711b19ac518e_rle_crop_3764992454_0.png', 1352948306: '1745390174_3944965_1352947864_7e2f4d6d1f9d87561004b1808b170269_rle_crop_3764992462_0.png', 1352948307: '1745390174_3944965_1352947859_4eaf00208b4eee4f4c5a537acd05cc26_rle_crop_3764992490_0.png', 1352948371: '1745390231_3945622_1352948187_0c4bb01e387ff383083c8c9e7796aac6_rle_crop_3764994653_0.png', 1352948372: '1745390231_3945622_1352948187_0c4bb01e387ff383083c8c9e7796aac6_rle_crop_3764994652_0.png', 1352948373: '1745390231_3945622_1352948187_0c4bb01e387ff383083c8c9e7796aac6_rle_crop_3764994649_0.png', 1352948540: '1745390246_2278932_1352948208_4cf2b9f6cefcec576d936b059b5394ff_rle_crop_3764994689_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/b89d6f93daad5f7605ca773edffbb605_78652585.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/8bca11b83831831dd43669ef3b7a1fa9_20524948.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/fa5be61094b91778a8da0cf1bc36451b_27370369.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/71b3cd10a216edff325fcd278d806635_82856754.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/7a2acdaa7f344e77a1180cba44428c1c_65297769.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/e4c9e6d22866b2754347123327fb3f78_45398007.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/9eb6b5d0ea97fe331446addb9fd8ca6c_18568030.png change filename to text .imagette223332191745390312/ imagette223332191745390312/1745390246_2278932_1352948208_4cf2b9f6cefcec576d936b059b5394ff_rle_crop_3764994689_0.png.png imagette223332191745390312/1745390231_3945622_1352948187_0c4bb01e387ff383083c8c9e7796aac6_rle_crop_3764994652_0.png.png imagette223332191745390312/1745390174_3944965_1352947859_4eaf00208b4eee4f4c5a537acd05cc26_rle_crop_3764992490_0.png.png imagette223332191745390312/1745390174_3944965_1352947867_1e8bfd062f7817ed922a711b19ac518e_rle_crop_3764992454_0.png.png imagette223332191745390312/1745390020_2311539_1352947728_adb78718f95715398bc067e2613a06fe_rle_crop_3764989805_0.png.png imagette223332191745390312/1745390231_3945622_1352948187_0c4bb01e387ff383083c8c9e7796aac6_rle_crop_3764994653_0.png.png imagette223332191745390312/1745390174_3944965_1352947864_7e2f4d6d1f9d87561004b1808b170269_rle_crop_3764992462_0.png.png imagette223332191745390312/1745390231_3945622_1352948187_0c4bb01e387ff383083c8c9e7796aac6_rle_crop_3764994649_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/c5d22477e510521a71edc661dc56152d_40220385.png imagette223332191745390312 22333220 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=22333220 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352948057: '1745390020_2311539_1352947738_c5e51b18b458355d3735fc70ad21b679_rle_crop_3764989779_0.png', 1352948309: '1745390174_3944965_1352947864_7e2f4d6d1f9d87561004b1808b170269_rle_crop_3764992470_0.png', 1352948376: '1745390231_3945622_1352948206_5f4485dbdf413b94f714e9a4d6308c08_rle_crop_3764994635_0.png', 1352948377: '1745390231_3945622_1352948206_5f4485dbdf413b94f714e9a4d6308c08_rle_crop_3764994638_0.png', 1352948378: '1745390231_3945622_1352948206_5f4485dbdf413b94f714e9a4d6308c08_rle_crop_3764994637_0.png', 1352948403: '1745390263_2314692_1352948072_7251173aa3f46995b3b9a3c5069a8244_rle_crop_3764994720_0.png', 1352948573: '1745390246_2278932_1352948208_4cf2b9f6cefcec576d936b059b5394ff_rle_crop_3764994692_0.png', 1352948576: '1745390246_2278932_1352948046_2203f1c97b3a79b6fbfb3747e91eb3c6_rle_crop_3764994744_0.png', 1352948578: '1745390246_2278932_1352948016_c07fea658c366eb47acced92f4af62d8_rle_crop_3764994794_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/8bdd6b274db2532b6baacb1d53f5c03c_75127589.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/bef579132cb0a276738db3e6ef552fa5_29101619.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/04c5057106658f8b2b6e2bf357dfac8e_78358351.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/0267fae781a5fd5092e34168b17fdca2_13418878.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/9aaa6e0a6473a48bdc19b8335f3a8ac8_5087528.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/dfc8e25ca612fd8706ea3b6f609c63d9_968088.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/c948f2b066e5c371e0b0dbba32f0a4a8_11706843.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/2543cbd14b7d47fd6d43fe40ac9908b9_63587289.png change filename to text .imagette223332201745390312/ imagette223332201745390312/1745390020_2311539_1352947738_c5e51b18b458355d3735fc70ad21b679_rle_crop_3764989779_0.png.png imagette223332201745390312/1745390246_2278932_1352948016_c07fea658c366eb47acced92f4af62d8_rle_crop_3764994794_0.png.png imagette223332201745390312/1745390231_3945622_1352948206_5f4485dbdf413b94f714e9a4d6308c08_rle_crop_3764994637_0.png.png imagette223332201745390312/1745390231_3945622_1352948206_5f4485dbdf413b94f714e9a4d6308c08_rle_crop_3764994635_0.png.png imagette223332201745390312/1745390231_3945622_1352948206_5f4485dbdf413b94f714e9a4d6308c08_rle_crop_3764994638_0.png.png imagette223332201745390312/1745390174_3944965_1352947864_7e2f4d6d1f9d87561004b1808b170269_rle_crop_3764992470_0.png.png imagette223332201745390312/1745390263_2314692_1352948072_7251173aa3f46995b3b9a3c5069a8244_rle_crop_3764994720_0.png.png imagette223332201745390312/1745390246_2278932_1352948046_2203f1c97b3a79b6fbfb3747e91eb3c6_rle_crop_3764994744_0.png.png imagette223332201745390312/1745390246_2278932_1352948208_4cf2b9f6cefcec576d936b059b5394ff_rle_crop_3764994692_0.png.png imagette223332211745390313/ imagette223332221745390313/ imagette223332231745390313/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/e2a364243f161508c68164f8bde9d72c_67433636.png imagette223332201745390312 22333221 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=22333221 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223332211745390313 22333222 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=22333222 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223332221745390313 22333223 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=22333223 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223332231745390313 22333224 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=22333224 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352948369: '1745390231_3945622_1352948206_5f4485dbdf413b94f714e9a4d6308c08_rle_crop_3764994634_0.png', 1352948511: '1745390246_2278932_1352948046_2203f1c97b3a79b6fbfb3747e91eb3c6_rle_crop_3764994741_0.png', 1352948513: '1745390246_2278932_1352948016_c07fea658c366eb47acced92f4af62d8_rle_crop_3764994797_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/4edebdf9c6216306e75b9fbc9284e661_49042521.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/8e709eef91a3fe4268cd56d63a30ff3e_78357788.png change filename to text .imagette223332241745390313/ imagette223332241745390313/1745390246_2278932_1352948046_2203f1c97b3a79b6fbfb3747e91eb3c6_rle_crop_3764994741_0.png.png imagette223332241745390313/1745390246_2278932_1352948016_c07fea658c366eb47acced92f4af62d8_rle_crop_3764994797_0.png.png imagette223332241745390313/1745390231_3945622_1352948206_5f4485dbdf413b94f714e9a4d6308c08_rle_crop_3764994634_0.png.png imagette223332271745390313/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/973c515439bc4b6032fd0dd826439fc4_10403147.png imagette223332241745390313 22333227 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=22333227 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette223332271745390313 22333225 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=22333225 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352948048: '1745390020_2311539_1352947738_c5e51b18b458355d3735fc70ad21b679_rle_crop_3764989788_0.png', 1352948224: '1745390111_3944332_1352947967_0869788c18bd1b9924d37576746adbe8_rle_crop_3764990412_0.png', 1352948303: '1745390174_3944965_1352947861_3c080a1dd9f42ff048db7f133ef9af9f_rle_crop_3764992482_0.png', 1352948304: '1745390174_3944965_1352947859_4eaf00208b4eee4f4c5a537acd05cc26_rle_crop_3764992492_0.png', 1352948400: '1745390263_2314692_1352948072_7251173aa3f46995b3b9a3c5069a8244_rle_crop_3764994727_0.png', 1352948527: '1745390246_2278932_1352948060_d94d6f3b534a7ac230f9174c7f0e2475_rle_crop_3764994714_0.png', 1352948529: '1745390246_2278932_1352948022_0c713d113226fe87c209d90b072ce5a6_rle_crop_3764994775_0.png', 1352948531: '1745390246_2278932_1352948022_0c713d113226fe87c209d90b072ce5a6_rle_crop_3764994774_0.png', 1352948533: '1745390246_2278932_1352948016_c07fea658c366eb47acced92f4af62d8_rle_crop_3764994799_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/53c77620572b30587c44e866492188db_30316048.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/a1b758a223b2fcc395a01bb591f7068f_96324732.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/9298334dfb62553bf63281cf6d935104_63491994.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/a00994b2517ab4fb58f6f5459dd959ee_14915628.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/3f8a33ecddb860ea948fc95874d96d64_38586193.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/f2723c26eb2844dc8236cc3cd2967f0d_10637780.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/4ab32e7e8b63c76a0281e2bc714903df_29698101.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/224a057e0820f23bbc93d61160a16111_61024961.png change filename to text .imagette223332251745390313/ imagette223332251745390313/1745390246_2278932_1352948022_0c713d113226fe87c209d90b072ce5a6_rle_crop_3764994775_0.png.png imagette223332251745390313/1745390246_2278932_1352948060_d94d6f3b534a7ac230f9174c7f0e2475_rle_crop_3764994714_0.png.png imagette223332251745390313/1745390174_3944965_1352947859_4eaf00208b4eee4f4c5a537acd05cc26_rle_crop_3764992492_0.png.png imagette223332251745390313/1745390174_3944965_1352947861_3c080a1dd9f42ff048db7f133ef9af9f_rle_crop_3764992482_0.png.png imagette223332251745390313/1745390246_2278932_1352948022_0c713d113226fe87c209d90b072ce5a6_rle_crop_3764994774_0.png.png imagette223332251745390313/1745390246_2278932_1352948016_c07fea658c366eb47acced92f4af62d8_rle_crop_3764994799_0.png.png imagette223332251745390313/1745390020_2311539_1352947738_c5e51b18b458355d3735fc70ad21b679_rle_crop_3764989788_0.png.png imagette223332251745390313/1745390111_3944332_1352947967_0869788c18bd1b9924d37576746adbe8_rle_crop_3764990412_0.png.png imagette223332251745390313/1745390263_2314692_1352948072_7251173aa3f46995b3b9a3c5069a8244_rle_crop_3764994727_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/e84f5dcb6ebc2f2638947cd043848492_57686733.png imagette223332251745390313 22333226 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=22333226 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352948308: '1745390174_3944965_1352947859_4eaf00208b4eee4f4c5a537acd05cc26_rle_crop_3764992496_0.png', 1352948401: '1745390263_2314692_1352948072_7251173aa3f46995b3b9a3c5069a8244_rle_crop_3764994721_0.png', 1352948554: '1745390246_2278932_1352948208_4cf2b9f6cefcec576d936b059b5394ff_rle_crop_3764994695_0.png', 1352948556: '1745390246_2278932_1352948046_2203f1c97b3a79b6fbfb3747e91eb3c6_rle_crop_3764994750_0.png', 1352948558: '1745390246_2278932_1352948046_2203f1c97b3a79b6fbfb3747e91eb3c6_rle_crop_3764994745_0.png', 1352948560: '1745390246_2278932_1352948031_bfe18d1543868e47b4923ebda877f613_rle_crop_3764994763_0.png', 1352948562: '1745390246_2278932_1352948031_bfe18d1543868e47b4923ebda877f613_rle_crop_3764994762_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/2bcc99a81dce1abd879e2e65a6f48643_37969139.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/cf3df49a809ab472d32fd60f62bbc0b8_63905735.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/81a5f4c42edad21e4aecc1936516248e_20983425.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/1f5462d9b1a668d458235ae4cb206255_56232752.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/859afa028d645070446ef94019c0a4ba_65626517.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ebb116ced16457096d6bfaed09f92ff0_55724888.png change filename to text .imagette223332261745390313/ imagette223332261745390313/1745390246_2278932_1352948031_bfe18d1543868e47b4923ebda877f613_rle_crop_3764994763_0.png.png imagette223332261745390313/1745390246_2278932_1352948046_2203f1c97b3a79b6fbfb3747e91eb3c6_rle_crop_3764994750_0.png.png imagette223332261745390313/1745390246_2278932_1352948208_4cf2b9f6cefcec576d936b059b5394ff_rle_crop_3764994695_0.png.png imagette223332261745390313/1745390246_2278932_1352948031_bfe18d1543868e47b4923ebda877f613_rle_crop_3764994762_0.png.png imagette223332261745390313/1745390246_2278932_1352948046_2203f1c97b3a79b6fbfb3747e91eb3c6_rle_crop_3764994745_0.png.png imagette223332261745390313/1745390263_2314692_1352948072_7251173aa3f46995b3b9a3c5069a8244_rle_crop_3764994721_0.png.png imagette223332261745390313/1745390174_3944965_1352947859_4eaf00208b4eee4f4c5a537acd05cc26_rle_crop_3764992496_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/f5c0e9d0ca71a5e077928b96e51cec5d_6913713.png imagette223332261745390313 22333228 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=22333228 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1352948042: '1745390020_2311539_1352947738_c5e51b18b458355d3735fc70ad21b679_rle_crop_3764989781_0.png', 1352948043: '1745390020_2311539_1352947738_c5e51b18b458355d3735fc70ad21b679_rle_crop_3764989784_0.png', 1352948044: '1745390020_2311539_1352947728_adb78718f95715398bc067e2613a06fe_rle_crop_3764989807_0.png', 1352948302: '1745390174_3944965_1352947864_7e2f4d6d1f9d87561004b1808b170269_rle_crop_3764992463_0.png', 1352948368: '1745390231_3945622_1352948206_5f4485dbdf413b94f714e9a4d6308c08_rle_crop_3764994639_0.png', 1352948398: '1745390263_2314692_1352948072_7251173aa3f46995b3b9a3c5069a8244_rle_crop_3764994726_0.png', 1352948498: '1745390246_2278932_1352948208_4cf2b9f6cefcec576d936b059b5394ff_rle_crop_3764994702_0.png', 1352948500: '1745390246_2278932_1352948060_d94d6f3b534a7ac230f9174c7f0e2475_rle_crop_3764994717_0.png', 1352948502: '1745390246_2278932_1352948016_c07fea658c366eb47acced92f4af62d8_rle_crop_3764994805_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/92a1679e714ec8f33e7e0177be8adf88_84767766.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/7f6a38b5fe9dc0e40ade84072c9880e2_35867251.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/a395673976ac8ff22909b0f1c2e72dd4_4601933.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/d0cac6f39bdd09386ac8c723b59504c9_54446500.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/2021fe5d7ba077889eb4ac6c654348d3_75688006.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/ce6d6c6da910593f922e8e76f3a02173_25770717.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/6679c6bf751c9441fcb9c865e7363fa3_35926015.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/b0b09e368e46cdaa84217d808e357299_18057530.png change filename to text .imagette223332281745390314/ imagette223332281745390314/1745390174_3944965_1352947864_7e2f4d6d1f9d87561004b1808b170269_rle_crop_3764992463_0.png.png imagette223332281745390314/1745390246_2278932_1352948016_c07fea658c366eb47acced92f4af62d8_rle_crop_3764994805_0.png.png imagette223332281745390314/1745390020_2311539_1352947728_adb78718f95715398bc067e2613a06fe_rle_crop_3764989807_0.png.png imagette223332281745390314/1745390231_3945622_1352948206_5f4485dbdf413b94f714e9a4d6308c08_rle_crop_3764994639_0.png.png imagette223332281745390314/1745390246_2278932_1352948208_4cf2b9f6cefcec576d936b059b5394ff_rle_crop_3764994702_0.png.png imagette223332281745390314/1745390020_2311539_1352947738_c5e51b18b458355d3735fc70ad21b679_rle_crop_3764989781_0.png.png imagette223332281745390314/1745390246_2278932_1352948060_d94d6f3b534a7ac230f9174c7f0e2475_rle_crop_3764994717_0.png.png imagette223332281745390314/1745390020_2311539_1352947738_c5e51b18b458355d3735fc70ad21b679_rle_crop_3764989784_0.png.png imagette223332281745390314/1745390263_2314692_1352948072_7251173aa3f46995b3b9a3c5069a8244_rle_crop_3764994726_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/c5cdc47f58855e26447ad7f0d9aaed61_83632703.png imagette223332281745390314 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22333179 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22333229,22333230,22333231,22333232,22333233,22333234,22333235,22333236,22333237,22333238,22333239,22333240?tags=environnement,papier,cartonnette,plastique,kraft,flou,mal_croppe,autre_refus,Carton_gris,Carton_brun,metal,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1352948550] : ('0.06767792389962696',) no score found for photo 1352948550 We are sending mail with results at report@fotonower.com args[1352948514] : ('0.06767792389962696',) no score found for photo 1352948514 We are sending mail with results at report@fotonower.com args[1352948484] : ('0.06767792389962696',) no score found for photo 1352948484 We are sending mail with results at report@fotonower.com args[1352948405] : ('0.06767792389962696',) no score found for photo 1352948405 We are sending mail with results at report@fotonower.com args[1352948340] : ('0.06767792389962696',) no score found for photo 1352948340 We are sending mail with results at report@fotonower.com args[1352948324] : ('0.06767792389962696',) no score found for photo 1352948324 We are sending mail with results at report@fotonower.com args[1352948321] : ('0.06767792389962696',) no score found for photo 1352948321 We are sending mail with results at report@fotonower.com args[1352948317] : ('0.06767792389962696',) no score found for photo 1352948317 We are sending mail with results at report@fotonower.com args[1352948314] : ('0.06767792389962696',) no score found for photo 1352948314 We are sending mail with results at report@fotonower.com args[1352948312] : ('0.06767792389962696',) no score found for photo 1352948312 We are sending mail with results at report@fotonower.com refus_total : 0.06767792389962696 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=22333179 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_P22333179_23-04-2025_08_38_32.pdf results_Auto_P22333179_23-04-2025_08_38_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22333179_23-04-2025_08_38_32.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','22333179','results_Auto_P22333179_23-04-2025_08_38_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22333179_23-04-2025_08_38_32.pdf','pdf','','0.22','0.06767792389962696') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22333179]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1352948550, 1352948514, 1352948484, 1352948405, 1352948340, 1352948324, 1352948321, 1352948317, 1352948314, 1352948312] map_info['map_portfolio_photo'] : {22333179: [1352948550, 1352948514, 1352948484, 1352948405, 1352948340, 1352948324, 1352948321, 1352948317, 1352948314, 1352948312, 1352948262, 1352948258, 1352948255, 1352948252, 1352948249, 1352948208, 1352948206, 1352948187, 1352948072, 1352948060, 1352948046, 1352948031, 1352948022, 1352948016, 1352947970, 1352947968, 1352947967, 1352947870, 1352947867, 1352947864, 1352947861, 1352947859, 1352947738, 1352947728, 1352947712, 1352947707]} final : False mtd_id 4302 list_pids : [1352948550, 1352948514, 1352948484, 1352948405, 1352948340, 1352948324, 1352948321, 1352948317, 1352948314, 1352948312] 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, '2752018') ('4302', '22333179', '1352948550', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948514', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948484', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948405', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948340', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948324', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948321', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948317', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948314', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948312', None, None, None, None, None, '2752018') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22333179', '1352948550', None, None, None, None, None, '2752018'), ('4302', '22333179', '1352948514', None, None, None, None, None, '2752018'), ('4302', '22333179', '1352948484', None, None, None, None, None, '2752018'), ('4302', '22333179', '1352948405', None, None, None, None, None, '2752018'), ('4302', '22333179', '1352948340', None, None, None, None, None, '2752018'), ('4302', '22333179', '1352948324', None, None, None, None, None, '2752018'), ('4302', '22333179', '1352948321', None, None, None, None, None, '2752018'), ('4302', '22333179', '1352948317', None, None, None, None, None, '2752018'), ('4302', '22333179', '1352948314', None, None, None, None, None, '2752018'), ('4302', '22333179', '1352948312', None, None, None, None, None, '2752018')] time used for this insertion : 0.3367178440093994 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.261458158493042 time spend to save output : 0.3372519016265869 total time spend for step 4 : 4.598710060119629 step5:split_time_score Wed Apr 23 08:38:36 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 : ['22333179'] 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 : [('22333179',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22333179) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1352948550: {'path': 'temp/1745390311_553752_1352948550_e82198d1a950011a64c8b841741319dd.jpg', 'extension': 'jpg'}, 1352948405: {'path': 'temp/1745390311_553752_1352948405_a788731849e447361d0514e1188a8901.jpg', 'extension': 'jpg'}, 1352948484: {'path': 'temp/1745390311_553752_1352948484_e8a609a3f7d3fbd969080efdcfc4dc2b.jpg', 'extension': 'jpg'}, 1352948514: {'path': 'temp/1745390311_553752_1352948514_cbb1c7f40f76e536217ff932fca1288a.jpg', 'extension': 'jpg'}, 1352948312: {'path': 'temp/1745390311_553752_1352948312_74a5ada7c03cbe8eeac8ec75929460f5.jpg', 'extension': 'jpg'}, 1352948314: {'path': 'temp/1745390311_553752_1352948314_d16fb58920bcd69293f7a5b305ff739a.jpg', 'extension': 'jpg'}, 1352948317: {'path': 'temp/1745390311_553752_1352948317_7d122ba20f90a12ca5d9132fa1f19774.jpg', 'extension': 'jpg'}, 1352948321: {'path': 'temp/1745390311_553752_1352948321_bf2b0e0241d130326911764a87292868.jpg', 'extension': 'jpg'}, 1352948324: {'path': 'temp/1745390311_553752_1352948324_e66750c01829c46679e04ec5933c7671.jpg', 'extension': 'jpg'}, 1352948340: {'path': 'temp/1745390311_553752_1352948340_588f3d104e97f3e611069da4526bc5e9.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 = 22333179; (('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 = 22333179 group by h (('08', 36),) 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=22333179 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 (22333179) 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 (22333179) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 23042025 22333179 Nombre de photos uploadées : 36 / 23040 (0%) 23042025 22333179 Nombre de photos taguées (types de déchets): 0 / 36 (0%) 23042025 22333179 Nombre de photos taguées (volume) : 0 / 36 (0%) [{'photo_id': 1352947738, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/c5e51b18b458355d3735fc70ad21b679.jpg', 'username': None, 'uploaded_at': 1745389867, 'text': 'image_23042025_08_30_04_10143.jpg'}, {'photo_id': 1352947728, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/adb78718f95715398bc067e2613a06fe.jpg', 'username': None, 'uploaded_at': 1745389867, 'text': 'image_23042025_08_30_14_10136.jpg'}, {'photo_id': 1352947712, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/447a965d47d71d58efabf878ccf0c4ce.jpg', 'username': None, 'uploaded_at': 1745389867, 'text': 'image_23042025_08_30_24_10135.jpg'}, {'photo_id': 1352947707, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/23/324438db631427dcea2b05e48ff47128.jpg', 'username': None, 'uploaded_at': 1745389867, 'text': 'image_23042025_08_30_34_10141.jpg'}] 0 [] elapsed_time : load_data_split_time_score 4.0531158447265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.239776611328125e-05 ???????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002037525177001953 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22333179, '2025-04-23' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1739756,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02981853485107422 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= 1739756 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1739756, 'dashboard_run_id': 1748254, 'mtr_portfolio_id': 22331203, 'dashboard_result_id': 10041486, '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_P22331203_23-04-2025_08_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22331240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22331241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22331242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22331243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22331244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22331245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22331246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22331247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22331248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22331249, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22331250, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22331251, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1748254, 'mtr_portfolio_id': 22331661, 'dashboard_result_id': 10041487, '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_P22331661_23-04-2025_08_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22331701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22331702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22331703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22331704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22331705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22331706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22331707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22331708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22331709, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22331710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22331711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22331712, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1748254, 'mtr_portfolio_id': 22332458, 'dashboard_result_id': 10041488, '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_P22332458_23-04-2025_08_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22332459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22332460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22332461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22332462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22332463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22332464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22332465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22332466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22332467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22332468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22332469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22332470, 'pht': 3726}}"}, {'dashboat_entry_day': 1739756, 'dashboard_run_id': 1748254, 'mtr_portfolio_id': 22333179, 'dashboard_result_id': 10041489, '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_P22333179_23-04-2025_08_37_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22333217, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22333218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22333219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22333220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22333221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22333222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22333223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22333224, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22333225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22333226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22333227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22333228, '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 = 22331203 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': 2751835, 'mtr_portfolio_id': 22331203, 'created_at': datetime.datetime(2025, 4, 23, 8, 2, 59), 'result': '0.04797771175706554', 'result_long': None, 'result_double': None}] Qualite : 0.04797771175706554 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22331203 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22331203_23-04-2025_08_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22331203 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_P22331203_23-04-2025_08_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22331240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22331241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22331242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22331243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22331244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22331245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22331246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22331247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22331248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22331249, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22331250, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22331251, 'pht': 3726}}" where mtr_portfolio_id = 22331203 and dashboard_run_id = 1748254 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`=22331203 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10041486, 0.04797771175706554, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22331203_23-04-2025_08_02_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22331240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22331241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22331242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22331243, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22331244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22331245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22331246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22331247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22331248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22331249, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22331250, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22331251, '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 = 22331661 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': 2751898, 'mtr_portfolio_id': 22331661, 'created_at': datetime.datetime(2025, 4, 23, 8, 17), 'result': '0.05327031960987797', 'result_long': None, 'result_double': None}] Qualite : 0.05327031960987797 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22331661 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22331661_23-04-2025_08_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22331661 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_P22331661_23-04-2025_08_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22331701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22331702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22331703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22331704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22331705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22331706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22331707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22331708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22331709, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22331710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22331711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22331712, 'pht': 3726}}" where mtr_portfolio_id = 22331661 and dashboard_run_id = 1748254 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`=22331661 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10041487, 0.05327031960987797, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22331661_23-04-2025_08_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22331701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22331702, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22331703, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22331704, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22331705, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22331706, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22331707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22331708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22331709, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22331710, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22331711, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22331712, '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 = 22332458 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': 2751952, 'mtr_portfolio_id': 22332458, 'created_at': datetime.datetime(2025, 4, 23, 8, 34, 59), 'result': '0.07737588999273574', 'result_long': None, 'result_double': None}] Qualite : 0.07737588999273574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22332458 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22332458_23-04-2025_08_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22332458 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_P22332458_23-04-2025_08_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22332459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22332460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22332461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22332462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22332463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22332464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22332465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22332466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22332467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22332468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22332469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22332470, 'pht': 3726}}" where mtr_portfolio_id = 22332458 and dashboard_run_id = 1748254 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`=22332458 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10041488, 0.07737588999273574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22332458_23-04-2025_08_34_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22332459, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22332460, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22332461, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22332462, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22332463, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22332464, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22332465, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22332466, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22332467, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22332468, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22332469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22332470, '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 = 22333179 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': 2752018, 'mtr_portfolio_id': 22333179, 'created_at': datetime.datetime(2025, 4, 23, 8, 38, 31), 'result': '0.06767792389962696', 'result_long': None, 'result_double': None}] Qualite : 0.06767792389962696 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22333179 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22333179_23-04-2025_08_38_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22333179 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_P22333179_23-04-2025_08_38_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22333217, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22333218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22333219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22333220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22333221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22333222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22333223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22333224, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22333225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22333226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22333227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22333228, 'pht': 3726}}" where mtr_portfolio_id = 22333179 and dashboard_run_id = 1748254 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`=22333179 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10041489, 0.06767792389962696, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22333179_23-04-2025_08_38_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22333217, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22333218, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22333219, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22333220, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22333221, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22333222, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22333223, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22333224, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22333225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22333226, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22333227, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22333228, '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 (22331203,22331661,22332458,22333179) result : ((1352937329,), (1352937636,), (1352937639,), (1352937651,), (1352937764,), (1352937835,), (1352937839,), (1352937847,), (1352937878,), (1352937908,), (1352938024,), (1352938035,), (1352938039,), (1352938080,), (1352938083,), (1352938085,), (1352938094,), (1352938107,), (1352938141,), (1352938144,), (1352938148,), (1352938152,), (1352938155,), (1352938160,), (1352938191,), (1352938195,), (1352938199,), (1352938203,), (1352938206,), (1352938251,), (1352938258,), (1352938373,), (1352938406,), (1352938659,), (1352940413,), (1352940365,), (1352941249,), (1352941277,), (1352941899,), (1352941927,), (1352941953,), (1352941978,), (1352941989,), (1352942080,), (1352942081,), (1352942084,), (1352942086,), (1352942357,), (1352942525,), (1352942530,), (1352942536,), (1352942568,), (1352942595,), (1352942790,), (1352942827,), (1352942992,), (1352943026,), (1352943060,), (1352943132,), (1352943139,), (1352943160,), (1352943168,), (1352943171,), (1352943371,), (1352943388,), (1352943403,), (1352943423,), (1352943631,), (1352943633,), (1352943636,), (1352943679,), (1352943688,), (1352943694,), (1352943889,), (1352943891,), (1352943892,), (1352943894,), (1352943896,), (1352943901,), (1352943953,), (1352943956,), (1352943962,), (1352944104,), (1352944106,), (1352944521,), (1352944566,), (1352944569,), (1352944595,), (1352944829,), (1352944866,), (1352944908,), (1352944909,), (1352944915,), (1352945129,), (1352945094,), (1352945118,), (1352945125,), (1352945321,), (1352945325,), (1352945343,), (1352945345,), (1352945358,), (1352945364,), (1352945438,), (1352945441,), (1352945450,), (1352945456,), (1352945461,), (1352945569,), (1352945577,), (1352945755,), (1352945758,), (1352945761,), (1352945764,), (1352945767,), (1352945803,), (1352945963,), (1352945977,), (1352945979,), (1352945981,), (1352945983,), (1352945987,), (1352946233,), (1352946243,), (1352946250,), (1352946255,), (1352946540,), (1352946703,), (1352946715,), (1352946728,), (1352946731,), (1352946793,), (1352946798,), (1352946807,), (1352946810,), (1352946811,), (1352946869,), (1352946873,), (1352946878,), (1352946880,), (1352947085,), (1352947086,), (1352947088,), (1352947090,), (1352947221,), (1352947226,), (1352947235,), (1352947294,), (1352947296,), (1352947322,), (1352947392,), (1352947394,), (1352947397,), (1352947400,), (1352947405,), (1352947451,), (1352947461,), (1352947760,), (1352947707,), (1352947712,), (1352947728,), (1352947738,), (1352947859,), (1352947861,), (1352947864,), (1352947867,), (1352947870,), (1352947967,), (1352947968,), (1352947970,), (1352948016,), (1352948022,), (1352948031,), (1352948046,), (1352948060,), (1352948072,), (1352948187,), (1352948206,), (1352948208,), (1352948249,), (1352948252,), (1352948255,), (1352948258,), (1352948262,), (1352948312,), (1352948314,), (1352948317,), (1352948321,), (1352948324,), (1352948340,), (1352948405,), (1352948484,), (1352948514,), (1352948550,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'23042025': {'nb_upload': 36, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22333179]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1352948550, 1352948514, 1352948484, 1352948405, 1352948340, 1352948324, 1352948321, 1352948317, 1352948314, 1352948312] map_info['map_portfolio_photo'] : {22333179: [1352948550, 1352948514, 1352948484, 1352948405, 1352948340, 1352948324, 1352948321, 1352948317, 1352948314, 1352948312, 1352948262, 1352948258, 1352948255, 1352948252, 1352948249, 1352948208, 1352948206, 1352948187, 1352948072, 1352948060, 1352948046, 1352948031, 1352948022, 1352948016, 1352947970, 1352947968, 1352947967, 1352947870, 1352947867, 1352947864, 1352947861, 1352947859, 1352947738, 1352947728, 1352947712, 1352947707]} final : True mtd_id 4302 list_pids : [1352948550, 1352948514, 1352948484, 1352948405, 1352948340, 1352948324, 1352948321, 1352948317, 1352948314, 1352948312] Looping around the photos to save general results len do output : 1 /22333179Didn'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, '2752018') ('4302', '22333179', '1352948550', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948514', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948484', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948405', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948340', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948324', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948321', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948317', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948314', None, None, None, None, None, '2752018') ('4302', None, None, None, None, None, None, None, '2752018') ('4302', '22333179', '1352948312', None, None, None, None, None, '2752018') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22333179', 'None', None, None, None, None, '2752018'), ('4302', '22333179', '1352948550', None, None, None, None, None, '2752018'), ('4302', '22333179', '1352948514', None, None, None, None, None, '2752018'), ('4302', '22333179', '1352948484', None, None, None, None, None, '2752018'), ('4302', '22333179', '1352948405', None, None, None, None, None, '2752018'), ('4302', '22333179', '1352948340', None, None, None, None, None, '2752018'), ('4302', '22333179', '1352948324', None, None, None, None, None, '2752018'), ('4302', '22333179', '1352948321', None, None, None, None, None, '2752018'), ('4302', '22333179', '1352948317', None, None, None, None, None, '2752018'), ('4302', '22333179', '1352948314', None, None, None, None, None, '2752018'), ('4302', '22333179', '1352948312', None, None, None, None, None, '2752018')] time used for this insertion : 0.017769575119018555 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3654317855834961 time spend to save output : 0.018024444580078125 total time spend for step 5 : 0.3834562301635742 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 (2752018) 2.34user 2.08system 0:10.81elapsed 40%CPU (0avgtext+0avgdata 159032maxresident)k 768inputs+11856outputs (13major+77370minor)pagefaults 0swaps