result : ((1349464948,), (1349464975,), (1349465551,), (1349465574,), (1349465604,), (1349465632,), (1349465861,), (1349465865,), (1349465867,), (1349465869,), (1349465939,), (1349465964,), (1349465987,), (1349466010,), (1349466225,), (1349466229,), (1349466247,), (1349466269,), (1349466284,), (1349466325,), (1349466626,), (1349466643,)) 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 21967296 , 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=21967292 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='environnement' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21967296) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21967292) result : ((1349464948,), (1349464975,), (1349465551,), (1349465574,), (1349465604,), (1349465632,), (1349465861,), (1349465865,), (1349465867,), (1349465869,), (1349465939,), (1349465964,), (1349465987,), (1349466010,), (1349466225,), (1349466229,), (1349466247,), (1349466269,), (1349466284,), (1349466325,), (1349466626,), (1349466643,)) 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 21967297 , 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=21967292 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='plastique' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21967297) result : ((1349466925,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21967292) result : ((1349464948,), (1349464975,), (1349465551,), (1349465574,), (1349465604,), (1349465632,), (1349465861,), (1349465865,), (1349465867,), (1349465869,), (1349465939,), (1349465964,), (1349465987,), (1349466010,), (1349466225,), (1349466229,), (1349466247,), (1349466269,), (1349466284,), (1349466325,), (1349466626,), (1349466643,)) 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 21967298 , 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=21967292 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 (21967298) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21967292) result : ((1349464948,), (1349464975,), (1349465551,), (1349465574,), (1349465604,), (1349465632,), (1349465861,), (1349465865,), (1349465867,), (1349465869,), (1349465939,), (1349465964,), (1349465987,), (1349466010,), (1349466225,), (1349466229,), (1349466247,), (1349466269,), (1349466284,), (1349466325,), (1349466626,), (1349466643,)) 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 21967299 , 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=21967292 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 (21967299) result : ((1349466299,), (1349466920,), (1349466921,), (1349466922,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21967292) result : ((1349464948,), (1349464975,), (1349465551,), (1349465574,), (1349465604,), (1349465632,), (1349465861,), (1349465865,), (1349465867,), (1349465869,), (1349465939,), (1349465964,), (1349465987,), (1349466010,), (1349466225,), (1349466229,), (1349466247,), (1349466269,), (1349466284,), (1349466325,), (1349466626,), (1349466643,)) 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 21967300 , 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=21967292 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='cartonnette' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21967300) result : ((1349465899,), (1349466918,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21967292) result : ((1349464948,), (1349464975,), (1349465551,), (1349465574,), (1349465604,), (1349465632,), (1349465861,), (1349465865,), (1349465867,), (1349465869,), (1349465939,), (1349465964,), (1349465987,), (1349466010,), (1349466225,), (1349466229,), (1349466247,), (1349466269,), (1349466284,), (1349466325,), (1349466626,), (1349466643,)) 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 21967301 , 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=21967292 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 (21967301) result : ((1349465897,), (1349465898,), (1349466294,), (1349466418,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21967292) result : ((1349464948,), (1349464975,), (1349465551,), (1349465574,), (1349465604,), (1349465632,), (1349465861,), (1349465865,), (1349465867,), (1349465869,), (1349465939,), (1349465964,), (1349465987,), (1349466010,), (1349466225,), (1349466229,), (1349466247,), (1349466269,), (1349466284,), (1349466325,), (1349466626,), (1349466643,)) 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 21967302 , 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=21967292 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 (21967302) result : ((1349465886,), (1349465896,), (1349466319,), (1349466408,), (1349466894,), (1349466896,), (1349466897,), (1349466898,), (1349466899,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21967292) result : ((1349464948,), (1349464975,), (1349465551,), (1349465574,), (1349465604,), (1349465632,), (1349465861,), (1349465865,), (1349465867,), (1349465869,), (1349465939,), (1349465964,), (1349465987,), (1349466010,), (1349466225,), (1349466229,), (1349466247,), (1349466269,), (1349466284,), (1349466325,), (1349466626,), (1349466643,)) 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 21967303 , 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=21967292 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 (21967303) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21967292) result : ((1349464948,), (1349464975,), (1349465551,), (1349465574,), (1349465604,), (1349465632,), (1349465861,), (1349465865,), (1349465867,), (1349465869,), (1349465939,), (1349465964,), (1349465987,), (1349466010,), (1349466225,), (1349466229,), (1349466247,), (1349466269,), (1349466284,), (1349466325,), (1349466626,), (1349466643,)) 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 21967304 , 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=21967292 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 (21967304) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21967292) result : ((1349464948,), (1349464975,), (1349465551,), (1349465574,), (1349465604,), (1349465632,), (1349465861,), (1349465865,), (1349465867,), (1349465869,), (1349465939,), (1349465964,), (1349465987,), (1349466010,), (1349466225,), (1349466229,), (1349466247,), (1349466269,), (1349466284,), (1349466325,), (1349466626,), (1349466643,)) 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 21967305 , 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=21967292 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='kraft' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21967305) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21967292) result : ((1349464948,), (1349464975,), (1349465551,), (1349465574,), (1349465604,), (1349465632,), (1349465861,), (1349465865,), (1349465867,), (1349465869,), (1349465939,), (1349465964,), (1349465987,), (1349466010,), (1349466225,), (1349466229,), (1349466247,), (1349466269,), (1349466284,), (1349466325,), (1349466626,), (1349466643,)) 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 21967306 , 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=21967292 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 (21967306) result : ((1349466296,), (1349466297,), (1349466427,), (1349466659,), (1349466915,), (1349466916,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21967292) result : ((1349464948,), (1349464975,), (1349465551,), (1349465574,), (1349465604,), (1349465632,), (1349465861,), (1349465865,), (1349465867,), (1349465869,), (1349465939,), (1349465964,), (1349465987,), (1349466010,), (1349466225,), (1349466229,), (1349466247,), (1349466269,), (1349466284,), (1349466325,), (1349466626,), (1349466643,)) 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`=21967292 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','cartonnette','Carton_gris','kraft','papier','metal','flou','plastique','Carton_brun','environnement','autre_refus','Teint_Dans_La_Masse')) 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`=21967292 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','cartonnette','Carton_gris','kraft','papier','metal','flou','plastique','Carton_brun','environnement','autre_refus','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 21967292, 'sub_port_id': 21967307, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14467019, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 5, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 5, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 5, 2)}, 'environnement': {'main_port_id': 21967292, 'sub_port_id': 21967308, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14467020, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 5, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 5, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 5, 2)}, 'plastique': {'main_port_id': 21967292, 'sub_port_id': 21967309, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14467021, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 5, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 5, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 5, 2)}, 'mal_croppe': {'main_port_id': 21967292, 'sub_port_id': 21967310, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14467022, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 5, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 5, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 5, 2)}, 'Carton_brun': {'main_port_id': 21967292, 'sub_port_id': 21967311, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14467023, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 5, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 5, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 5, 2)}, 'cartonnette': {'main_port_id': 21967292, 'sub_port_id': 21967312, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14467024, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 5, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 5, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 5, 2)}, 'autre_refus': {'main_port_id': 21967292, 'sub_port_id': 21967313, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14467025, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 5, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 5, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 5, 2)}, 'Teint_Dans_La_Masse': {'main_port_id': 21967292, 'sub_port_id': 21967314, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14467026, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 5, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 5, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 5, 2)}, 'metal': {'main_port_id': 21967292, 'sub_port_id': 21967315, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14467027, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 5, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 5, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 5, 2)}, 'flou': {'main_port_id': 21967292, 'sub_port_id': 21967316, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14467028, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 5, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 5, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 5, 2)}, 'kraft': {'main_port_id': 21967292, 'sub_port_id': 21967317, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14467029, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 5, 2), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 5, 2), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 5, 2)}, 'Carton_gris': {'main_port_id': 21967292, 'sub_port_id': 21967318, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14467030, 'last_updated_at': datetime.datetime(2025, 4, 2, 7, 7), 'last_updated_at_desc': datetime.datetime(2025, 4, 2, 7, 7), 'last_updated_at_asc': datetime.datetime(2025, 4, 2, 7, 5, 2)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21967307,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21967295 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21967308,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21967296 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21967309,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21967297 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21967310,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21967298 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21967311,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21967299 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21967312,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21967300 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21967313,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21967301 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21967314,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21967302 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21967315,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21967303 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21967316,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21967304 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21967317,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21967305 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21967318,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21967306 lien utilise dans velours : https://www.fotonower.com/velours/21967307,21967308,21967309,21967310,21967311,21967312,21967313,21967314,21967315,21967316,21967317,21967318?tags=papier,environnement,plastique,mal_croppe,Carton_brun,cartonnette,autre_refus,Teint_Dans_La_Masse,metal,flou,kraft,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21967292]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349466643, 1349466626] map_info['map_portfolio_photo'] : {21967292: [1349466643, 1349466626, 1349466325, 1349466284, 1349466269, 1349466247, 1349466229, 1349466225, 1349466010, 1349465987, 1349465964, 1349465939, 1349465869, 1349465867, 1349465865, 1349465861, 1349465632, 1349465604, 1349465574, 1349465551, 1349464975, 1349464948]} final : False mtd_id 4302 list_pids : [1349466643, 1349466626] Looping around the photos to save general results len do output : 1 /21967292. 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, '2715671') ('4302', '21967292', '1349466643', None, None, None, None, None, '2715671') ('4302', None, None, None, None, None, None, None, '2715671') ('4302', '21967292', '1349466626', None, None, None, None, None, '2715671') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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, '21967292', "{'papier': 21967295, 'environnement': 21967296, 'plastique': 21967297, 'mal_croppe': 21967298, 'Carton_brun': 21967299, 'cartonnette': 21967300, 'autre_refus': 21967301, 'Teint_Dans_La_Masse': 21967302, 'metal': 21967303, 'flou': 21967304, 'kraft': 21967305, 'Carton_gris': 21967306}", None, None, None, None, '2715671'), ('4302', '21967292', '1349466643', None, None, None, None, None, '2715671'), ('4302', '21967292', '1349466626', None, None, None, None, None, '2715671')] time used for this insertion : 0.015590667724609375 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4525792598724365 time spend to save output : 0.015819311141967773 total time spend for step 1 : 1.4683985710144043 step2:final Wed Apr 2 07:08:59 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 (21967292) 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 21967292 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349464975,1349464948,1349465632,1349465604,1349465574,1349465551,1349465869,1349465867,1349465865,1349465861,1349466010,1349465987,1349465964,1349465939,1349466284,1349466269,1349466247,1349466229,1349466225,1349466325,1349466643,1349466626); 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([21967292]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349466643: ('0.04880449432276172',), 1349466626: ('0.04880449432276172',)} new output for save of step final : {1349466643: ('0.04880449432276172',), 1349466626: ('0.04880449432276172',)} [1349466643, 1349466626] map_info['map_portfolio_photo'] : {21967292: [1349466643, 1349466626, 1349466325, 1349466284, 1349466269, 1349466247, 1349466229, 1349466225, 1349466010, 1349465987, 1349465964, 1349465939, 1349465869, 1349465867, 1349465865, 1349465861, 1349465632, 1349465604, 1349465574, 1349465551, 1349464975, 1349464948]} final : False mtd_id 4302 list_pids : [1349466643, 1349466626] Looping around the photos to save general results len do output : 2 /1349466643.Didn't retrieve data . /1349466626.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, '2715671') ('4302', '21967292', '1349466643', None, None, None, None, None, '2715671') ('4302', None, None, None, None, None, None, None, '2715671') ('4302', '21967292', '1349466626', None, None, None, None, None, '2715671') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 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', '21967292', '1349466643', '0.04880449432276172', None, None, None, None, '2715671'), ('4302', '21967292', '1349466626', '0.04880449432276172', None, None, None, None, '2715671')] time used for this insertion : 0.011780261993408203 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.14240670204162598 time spend to save output : 0.011989593505859375 total time spend for step 2 : 0.15439629554748535 step3:velours_tree Wed Apr 2 07:08:59 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 : {21967292: [{'papier': 21967295, 'environnement': 21967296, 'plastique': 21967297, 'mal_croppe': 21967298, 'Carton_brun': 21967299, 'cartonnette': 21967300, 'autre_refus': 21967301, 'Teint_Dans_La_Masse': 21967302, 'metal': 21967303, 'flou': 21967304, 'kraft': 21967305, 'Carton_gris': 21967306}]} input_args_next_step : {21967292: ()} output_args : {21967292: [{'papier': 21967295, 'environnement': 21967296, 'plastique': 21967297, 'mal_croppe': 21967298, 'Carton_brun': 21967299, 'cartonnette': 21967300, 'autre_refus': 21967301, 'Teint_Dans_La_Masse': 21967302, 'metal': 21967303, 'flou': 21967304, 'kraft': 21967305, 'Carton_gris': 21967306}]} args : 21967292 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'papier': 21967295, 'environnement': 21967296, 'plastique': 21967297, 'mal_croppe': 21967298, 'Carton_brun': 21967299, 'cartonnette': 21967300, 'autre_refus': 21967301, 'Teint_Dans_La_Masse': 21967302, 'metal': 21967303, 'flou': 21967304, 'kraft': 21967305, 'Carton_gris': 21967306},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21967292) 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([21967292]) 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.3199949264526367 time spend to save output : 5.5789947509765625e-05 total time spend for step 3 : 0.3200507164001465 step4:send_mail_cod Wed Apr 2 07:08:59 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 : {1349466643: ('0.04880449432276172',), 1349466626: ('0.04880449432276172',)} input_args_next_step : {1349466643: ()} output_args : {1349466643: ('0.04880449432276172',), 1349466626: ('0.04880449432276172',)} args : 1349466643 depend.output_id : 0 input_args_next_step : {1349466643: ('0.04880449432276172',), 1349466626: ()} output_args : {1349466643: ('0.04880449432276172',), 1349466626: ('0.04880449432276172',)} args : 1349466626 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 : {21967292: [{'papier': 21967295, 'environnement': 21967296, 'plastique': 21967297, 'mal_croppe': 21967298, 'Carton_brun': 21967299, 'cartonnette': 21967300, 'autre_refus': 21967301, 'Teint_Dans_La_Masse': 21967302, 'metal': 21967303, 'flou': 21967304, 'kraft': 21967305, 'Carton_gris': 21967306}]} input_args_next_step : {1349466643: ('0.04880449432276172',), 1349466626: ('0.04880449432276172',), 21967292: ()} output_args : {21967292: [{'papier': 21967295, 'environnement': 21967296, 'plastique': 21967297, 'mal_croppe': 21967298, 'Carton_brun': 21967299, 'cartonnette': 21967300, 'autre_refus': 21967301, 'Teint_Dans_La_Masse': 21967302, 'metal': 21967303, 'flou': 21967304, 'kraft': 21967305, 'Carton_gris': 21967306}]} args : 21967292 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 :3, first value : ('0.04880449432276172',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21967292) 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 (1349466643,1349466626) Found this number of photos: 2 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349466626 begin to download photo : 1349466643 download finish for photo 1349466626 download finish for photo 1349466643 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 : 2 ; length of list_pids : 2 ; length of list_args : 2 results_Auto_P21967292_02-04-2025_07_08_59.pdf 21967297 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=21967297 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349466925: '1743570451_979875_1349466269_15dc67e9a7489ea4671e6bece41dc5d9_rle_crop_3743950264_0.png'} change filename to text .imagette219672971743570539/ imagette219672971743570539/1743570451_979875_1349466269_15dc67e9a7489ea4671e6bece41dc5d9_rle_crop_3743950264_0.png.png imagette219672981743570539/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/cd67f4c6ce8f57cf5d210048a1fda517_19151290.png imagette219672971743570539 21967298 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=21967298 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219672981743570539 21967300 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=21967300 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349465899: '1743570211_977573_1349464948_d434c5d09864fed9e98d0cbaa0a32468_rle_crop_3743945113_0.png', 1349466918: '1743570451_979875_1349466325_e40e8be550d2a817e86a9d78874ace55_rle_crop_3743950248_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/1bc8e687e08efbc22de7f03c226085ce_62626801.png change filename to text .imagette219673001743570539/ imagette219673001743570539/1743570211_977573_1349464948_d434c5d09864fed9e98d0cbaa0a32468_rle_crop_3743945113_0.png.png imagette219673001743570539/1743570451_979875_1349466325_e40e8be550d2a817e86a9d78874ace55_rle_crop_3743950248_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/33d099e543795734b16bc7e01df06f9c_97714997.png imagette219673001743570539 21967301 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=21967301 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349465897: '1743570211_977573_1349464975_cf50309411ece80c82624048bf321599_rle_crop_3743945103_0.png', 1349465898: '1743570211_977573_1349464948_d434c5d09864fed9e98d0cbaa0a32468_rle_crop_3743945112_0.png', 1349466294: '1743570310_978380_1349465964_d284fd1906b5d39527f218ec7e917294_rle_crop_3743947996_0.png', 1349466418: '1743570352_978856_1349465867_66f493a2e21fc29a2a8e7519de7b358b_rle_crop_3743948536_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/74b442b29d87eb9682c43e12ef722a02_62022372.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/fa4fdca2e3275f79e98ef11e9addb32a_20519912.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e8426546c8817c891dbf6c280545c1ee_32919912.png change filename to text .imagette219673011743570540/ imagette219673011743570540/1743570211_977573_1349464975_cf50309411ece80c82624048bf321599_rle_crop_3743945103_0.png.png imagette219673011743570540/1743570310_978380_1349465964_d284fd1906b5d39527f218ec7e917294_rle_crop_3743947996_0.png.png imagette219673011743570540/1743570352_978856_1349465867_66f493a2e21fc29a2a8e7519de7b358b_rle_crop_3743948536_0.png.png imagette219673011743570540/1743570211_977573_1349464948_d434c5d09864fed9e98d0cbaa0a32468_rle_crop_3743945112_0.png.png imagette219673031743570540/ imagette219673041743570540/ imagette219673051743570540/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/630444f6eac6607791a897adfb3269c5_14595978.png imagette219673011743570540 21967303 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=21967303 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219673031743570540 21967304 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=21967304 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219673041743570540 21967305 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=21967305 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219673051743570540 21967299 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=21967299 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349466299: '1743570310_978380_1349465939_3d35a771fe2bb0c08184bf17c21a4998_rle_crop_3743948023_0.png', 1349466920: '1743570451_979875_1349466269_15dc67e9a7489ea4671e6bece41dc5d9_rle_crop_3743950261_0.png', 1349466921: '1743570451_979875_1349466225_d2d2731583c8e2f0c38844be88393cba_rle_crop_3743950296_0.png', 1349466922: '1743570451_979875_1349466225_d2d2731583c8e2f0c38844be88393cba_rle_crop_3743950297_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/160f387264a4becc9f5ce76be7de2159_45723185.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/271eb99f21c4f85a4a9a08d8e00d67df_73130010.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/6079e82b23b43b4480f1a998f984cd90_52351857.png change filename to text .imagette219672991743570540/ imagette219672991743570540/1743570451_979875_1349466225_d2d2731583c8e2f0c38844be88393cba_rle_crop_3743950297_0.png.png imagette219672991743570540/1743570451_979875_1349466225_d2d2731583c8e2f0c38844be88393cba_rle_crop_3743950296_0.png.png imagette219672991743570540/1743570310_978380_1349465939_3d35a771fe2bb0c08184bf17c21a4998_rle_crop_3743948023_0.png.png imagette219672991743570540/1743570451_979875_1349466269_15dc67e9a7489ea4671e6bece41dc5d9_rle_crop_3743950261_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/bf52f38dc8702d7e779148a3cb483afa_15433586.png imagette219672991743570540 21967302 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=21967302 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349465886: '1743570193_977334_1349465551_39ac1ddc67cd6dacdbf7a9d664562ba5_rle_crop_3743944531_0.png', 1349465896: '1743570211_977573_1349465632_4db7de291907f87c5de9b356871e2b1d_rle_crop_3743945088_0.png', 1349466319: '1743570330_978592_1349465869_4ff9e06e5ca26ef8cb879cb4dd7b0a1c_rle_crop_3743948099_0.png', 1349466408: '1743570352_978856_1349465867_66f493a2e21fc29a2a8e7519de7b358b_rle_crop_3743948540_0.png', 1349466894: '1743570451_979875_1349466325_e40e8be550d2a817e86a9d78874ace55_rle_crop_3743950253_0.png', 1349466896: '1743570451_979875_1349466325_e40e8be550d2a817e86a9d78874ace55_rle_crop_3743950245_0.png', 1349466897: '1743570451_979875_1349466325_e40e8be550d2a817e86a9d78874ace55_rle_crop_3743950249_0.png', 1349466898: '1743570451_979875_1349466247_144217e4d4842ecfbebdd1d99d2da192_rle_crop_3743950276_0.png', 1349466899: '1743570451_979875_1349466247_144217e4d4842ecfbebdd1d99d2da192_rle_crop_3743950274_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/52c1e353146c76657d5b868a17ee5013_35185230.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/0d4c1bcfe53e05efbc9610b3955877c0_42935964.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d2b11e805b8967a530390e80c66b47c9_76983952.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/4fa2618b3c43973865b3d79e2688d85c_29944837.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/cf67224049f1a30425616babfcca91ac_27439482.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/e053879055f091cfb021cdbf01564d82_51623870.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c787f4354bc72f1865670068a3b75ee4_77654405.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/15b3d2ce1ce84664b7b77e8086d20e00_35573727.png change filename to text .imagette219673021743570540/ imagette219673021743570540/1743570193_977334_1349465551_39ac1ddc67cd6dacdbf7a9d664562ba5_rle_crop_3743944531_0.png.png imagette219673021743570540/1743570352_978856_1349465867_66f493a2e21fc29a2a8e7519de7b358b_rle_crop_3743948540_0.png.png imagette219673021743570540/1743570330_978592_1349465869_4ff9e06e5ca26ef8cb879cb4dd7b0a1c_rle_crop_3743948099_0.png.png imagette219673021743570540/1743570451_979875_1349466325_e40e8be550d2a817e86a9d78874ace55_rle_crop_3743950249_0.png.png imagette219673021743570540/1743570451_979875_1349466247_144217e4d4842ecfbebdd1d99d2da192_rle_crop_3743950276_0.png.png imagette219673021743570540/1743570451_979875_1349466325_e40e8be550d2a817e86a9d78874ace55_rle_crop_3743950245_0.png.png imagette219673021743570540/1743570451_979875_1349466325_e40e8be550d2a817e86a9d78874ace55_rle_crop_3743950253_0.png.png imagette219673021743570540/1743570451_979875_1349466247_144217e4d4842ecfbebdd1d99d2da192_rle_crop_3743950274_0.png.png imagette219673021743570540/1743570211_977573_1349465632_4db7de291907f87c5de9b356871e2b1d_rle_crop_3743945088_0.png.png wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/5cf03c78b3a68bb89e0442bff4d8556f_75236610.png imagette219673021743570540 21967306 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=21967306 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349466296: '1743570310_978380_1349465987_c026c3b1a37b1744393c4f9ec4f76527_rle_crop_3743947973_0.png', 1349466297: '1743570310_978380_1349465939_3d35a771fe2bb0c08184bf17c21a4998_rle_crop_3743948024_0.png', 1349466427: '1743570352_978856_1349466010_fe02b4ecd93191633a38cbc991aaef09_rle_crop_3743948531_0.png', 1349466659: '1743570430_979671_1349466284_3c4a6fcea282f329a6714b465abf7ace_rle_crop_3743950098_0.png', 1349466915: '1743570451_979875_1349466325_e40e8be550d2a817e86a9d78874ace55_rle_crop_3743950239_0.png', 1349466916: '1743570451_979875_1349466225_d2d2731583c8e2f0c38844be88393cba_rle_crop_3743950295_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/c363f0ad1096055db2b00478644c7608_66516398.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/85a1e0d72ef6c3de1c609071c67ddfb2_98140573.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/af502c1c9a1540636a1a4d4afaa6bd68_87639032.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/4ee1ff2bd8076fa9e9918610c113c27c_15584699.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/7dcb45a361b6a13a3761c48b16588f90_18088168.png change filename to text .imagette219673061743570541/ imagette219673061743570541/1743570451_979875_1349466325_e40e8be550d2a817e86a9d78874ace55_rle_crop_3743950239_0.png.png imagette219673061743570541/1743570310_978380_1349465987_c026c3b1a37b1744393c4f9ec4f76527_rle_crop_3743947973_0.png.png imagette219673061743570541/1743570352_978856_1349466010_fe02b4ecd93191633a38cbc991aaef09_rle_crop_3743948531_0.png.png imagette219673061743570541/1743570310_978380_1349465939_3d35a771fe2bb0c08184bf17c21a4998_rle_crop_3743948024_0.png.png imagette219673061743570541/1743570451_979875_1349466225_d2d2731583c8e2f0c38844be88393cba_rle_crop_3743950295_0.png.png imagette219673061743570541/1743570430_979671_1349466284_3c4a6fcea282f329a6714b465abf7ace_rle_crop_3743950098_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/2d236ea66f3cb68ea61f504423523529_75672615.png imagette219673061743570541 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21967292 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21967307,21967308,21967309,21967310,21967311,21967312,21967313,21967314,21967315,21967316,21967317,21967318?tags=papier,environnement,plastique,mal_croppe,Carton_brun,cartonnette,autre_refus,Teint_Dans_La_Masse,metal,flou,kraft,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1349466643] : ('0.04880449432276172',) no score found for photo 1349466643 We are sending mail with results at report@fotonower.com args[1349466626] : ('0.04880449432276172',) no score found for photo 1349466626 We are sending mail with results at report@fotonower.com refus_total : 0.04880449432276172 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=21967292 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_P21967292_02-04-2025_07_08_59.pdf results_Auto_P21967292_02-04-2025_07_08_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21967292_02-04-2025_07_08_59.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','21967292','results_Auto_P21967292_02-04-2025_07_08_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21967292_02-04-2025_07_08_59.pdf','pdf','','0.12','0.04880449432276172') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21967292]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349466643, 1349466626] map_info['map_portfolio_photo'] : {21967292: [1349466643, 1349466626, 1349466325, 1349466284, 1349466269, 1349466247, 1349466229, 1349466225, 1349466010, 1349465987, 1349465964, 1349465939, 1349465869, 1349465867, 1349465865, 1349465861, 1349465632, 1349465604, 1349465574, 1349465551, 1349464975, 1349464948]} final : False mtd_id 4302 list_pids : [1349466643, 1349466626] 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, '2715671') ('4302', '21967292', '1349466643', None, None, None, None, None, '2715671') ('4302', None, None, None, None, None, None, None, '2715671') ('4302', '21967292', '1349466626', None, None, None, None, None, '2715671') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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', '21967292', '1349466643', None, None, None, None, None, '2715671'), ('4302', '21967292', '1349466626', None, None, None, None, None, '2715671')] time used for this insertion : 0.012863874435424805 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.594325304031372 time spend to save output : 0.013019084930419922 total time spend for step 4 : 2.607344388961792 step5:split_time_score Wed Apr 2 07:09:02 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 : ['21967292'] 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 : [('21967292',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21967292) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349466626: {'path': 'temp/1743570539_516477_1349466626_b54a00a6ed2a23444269ed0e98fa4669.jpg', 'extension': 'jpg'}, 1349466643: {'path': 'temp/1743570539_516477_1349466643_4023d9ef9d5f44561ef21e45e71273c0.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 = 21967292; (('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 = 21967292 group by h (('07', 22),) 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=21967292 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 (21967292) 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 (21967292) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 02042025 21967292 Nombre de photos uploadées : 22 / 23040 (0%) 02042025 21967292 Nombre de photos taguées (types de déchets): 0 / 22 (0%) 02042025 21967292 Nombre de photos taguées (volume) : 0 / 22 (0%) [{'photo_id': 1349464975, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/cf50309411ece80c82624048bf321599.jpg', 'username': None, 'uploaded_at': 1743570067, 'text': 'image_02042025_07_00_14_10195.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349464948, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/d434c5d09864fed9e98d0cbaa0a32468.jpg', 'username': None, 'uploaded_at': 1743570067, 'text': 'image_02042025_07_00_34_10150.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349465632, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/4db7de291907f87c5de9b356871e2b1d.jpg', 'username': None, 'uploaded_at': 1743570127, 'text': 'image_02042025_07_00_54_10138.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349465604, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/2/08796fe9c2ea1cbfd443f59bebfbd282.jpg', 'username': None, 'uploaded_at': 1743570127, 'text': 'image_02042025_07_01_04_10152.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ?????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0019767284393310547 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21967292, '2025-04-02' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1709477,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.025038957595825195 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= 1709477 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1709477, 'dashboard_run_id': 1717703, 'mtr_portfolio_id': 21965950, 'dashboard_result_id': 9804005, '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_P21965950_02-04-2025_06_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21965953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21965954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21965955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21965956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21965957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21965958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21965959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21965960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21965961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21965962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21965963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21965964, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1717703, 'mtr_portfolio_id': 21966355, 'dashboard_result_id': 9804006, '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_P21966355_02-04-2025_06_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21966358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21966359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21966360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21966361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21966362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21966363, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21966364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21966365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21966366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21966367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21966368, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21966369, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1717703, 'mtr_portfolio_id': 21966736, 'dashboard_result_id': 9804007, '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_P21966736_02-04-2025_07_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21966740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21966741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21966742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21966743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21966744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21966745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21966746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21966747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21966748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21966749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21966750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21966751, 'pht': 3726}}"}, {'dashboat_entry_day': 1709477, 'dashboard_run_id': 1717703, 'mtr_portfolio_id': 21967292, 'dashboard_result_id': 9804008, '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_P21967292_02-04-2025_07_07_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21967295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21967296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21967297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21967298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21967299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21967300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21967301, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21967302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21967303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21967304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21967305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21967306, '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 = 21965950 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': 2715506, 'mtr_portfolio_id': 21965950, 'created_at': datetime.datetime(2025, 4, 2, 6, 32, 59), 'result': '0.040222582913804414', 'result_long': None, 'result_double': None}] Qualite : 0.040222582913804414 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21965950 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21965950_02-04-2025_06_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21965950 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_P21965950_02-04-2025_06_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21965953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21965954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21965955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21965956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21965957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21965958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21965959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21965960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21965961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21965962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21965963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21965964, 'pht': 3726}}" where mtr_portfolio_id = 21965950 and dashboard_run_id = 1717703 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`=21965950 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9804005, 0.040222582913804414, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21965950_02-04-2025_06_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21965953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21965954, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21965955, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21965956, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21965957, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21965958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21965959, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21965960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21965961, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21965962, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21965963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21965964, '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 = 21966355 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': 2715538, 'mtr_portfolio_id': 21966355, 'created_at': datetime.datetime(2025, 4, 2, 6, 48, 58), 'result': '0.05853413055267464', 'result_long': None, 'result_double': None}] Qualite : 0.05853413055267464 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21966355 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21966355_02-04-2025_06_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21966355 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_P21966355_02-04-2025_06_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21966358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21966359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21966360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21966361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21966362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21966363, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21966364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21966365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21966366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21966367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21966368, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21966369, 'pht': 3726}}" where mtr_portfolio_id = 21966355 and dashboard_run_id = 1717703 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`=21966355 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9804006, 0.05853413055267464, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21966355_02-04-2025_06_48_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21966358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21966359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21966360, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21966361, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21966362, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21966363, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21966364, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21966365, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21966366, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21966367, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21966368, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21966369, '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 = 21966736 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': 2715567, 'mtr_portfolio_id': 21966736, 'created_at': datetime.datetime(2025, 4, 2, 7, 2, 59), 'result': '0.05327455022977842', 'result_long': None, 'result_double': None}] Qualite : 0.05327455022977842 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21966736 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21966736_02-04-2025_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21966736 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_P21966736_02-04-2025_07_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21966740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21966741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21966742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21966743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21966744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21966745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21966746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21966747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21966748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21966749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21966750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21966751, 'pht': 3726}}" where mtr_portfolio_id = 21966736 and dashboard_run_id = 1717703 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`=21966736 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9804007, 0.05327455022977842, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21966736_02-04-2025_07_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21966740, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21966741, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21966742, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21966743, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21966744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21966745, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21966746, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21966747, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21966748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21966749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21966750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21966751, '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 = 21967292 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': 2715671, 'mtr_portfolio_id': 21967292, 'created_at': datetime.datetime(2025, 4, 2, 7, 8, 59), 'result': '0.04880449432276172', 'result_long': None, 'result_double': None}] Qualite : 0.04880449432276172 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21967292 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21967292_02-04-2025_07_08_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21967292 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_P21967292_02-04-2025_07_08_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21967295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21967296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21967297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21967298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21967299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21967300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21967301, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21967302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21967303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21967304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21967305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21967306, 'pht': 3726}}" where mtr_portfolio_id = 21967292 and dashboard_run_id = 1717703 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`=21967292 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9804008, 0.04880449432276172, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21967292_02-04-2025_07_08_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21967295, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21967296, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21967297, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21967298, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21967299, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21967300, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21967301, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21967302, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21967303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21967304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21967305, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21967306, '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 (21965950,21966355,21966736,21967292) result : ((1349462135,), (1349462137,), (1349462139,), (1349462142,), (1349462145,), (1349462173,), (1349462176,), (1349462178,), (1349462180,), (1349462183,), (1349462185,), (1349462225,), (1349462227,), (1349462228,), (1349462230,), (1349462252,), (1349462255,), (1349462257,), (1349462260,), (1349462263,), (1349462301,), (1349462304,), (1349462351,), (1349462397,), (1349462401,), (1349462425,), (1349462427,), (1349462429,), (1349462431,), (1349462455,), (1349462458,), (1349462460,), (1349462463,), (1349462465,), (1349462484,), (1349462486,), (1349462487,), (1349462489,), (1349462517,), (1349462520,), (1349462523,), (1349462525,), (1349462528,), (1349462530,), (1349462558,), (1349462559,), (1349462564,), (1349462584,), (1349462586,), (1349462588,), (1349462592,), (1349462600,), (1349462603,), (1349462622,), (1349462623,), (1349462624,), (1349462625,), (1349462630,), (1349462650,), (1349462652,), (1349462656,), (1349462659,), (1349462663,), (1349462674,), (1349462721,), (1349462713,), (1349462715,), (1349462716,), (1349462719,), (1349462752,), (1349462757,), (1349462758,), (1349462759,), (1349462762,), (1349462765,), (1349462784,), (1349462786,), (1349462792,), (1349462795,), (1349462824,), (1349462826,), (1349462829,), (1349462832,), (1349462835,), (1349462837,), (1349462856,), (1349462859,), (1349462861,), (1349462863,), (1349462894,), (1349462900,), (1349462908,), (1349462918,), (1349462923,), (1349462927,), (1349462954,), (1349462957,), (1349462960,), (1349462963,), (1349462964,), (1349463005,), (1349463006,), (1349463007,), (1349463008,), (1349463011,), (1349463014,), (1349463033,), (1349463036,), (1349463039,), (1349463042,), (1349463076,), (1349463078,), (1349463080,), (1349463088,), (1349463093,), (1349463126,), (1349463128,), (1349463130,), (1349463131,), (1349463134,), (1349463187,), (1349463190,), (1349463192,), (1349463194,), (1349463197,), (1349463222,), (1349463223,), (1349463224,), (1349463225,), (1349463228,), (1349463256,), (1349463261,), (1349463274,), (1349463279,), (1349463307,), (1349463310,), (1349463311,), (1349463312,), (1349463361,), (1349463352,), (1349463354,), (1349463356,), (1349463358,), (1349463381,), (1349463384,), (1349463387,), (1349463390,), (1349463393,), (1349463422,), (1349463425,), (1349463427,), (1349463451,), (1349463454,), (1349463489,), (1349463532,), (1349463534,), (1349463536,), (1349463538,), (1349463564,), (1349463565,), (1349463566,), (1349463567,), (1349463594,), (1349463597,), (1349463599,), (1349463635,), (1349463645,), (1349463648,), (1349463650,), (1349463675,), (1349463676,), (1349463705,), (1349463708,), (1349463711,), (1349463716,), (1349463738,), (1349463740,), (1349463741,), (1349464021,), (1349464022,), (1349464024,), (1349464026,), (1349464040,), (1349464590,), (1349464620,), (1349464650,), (1349464685,), (1349465006,), (1349464948,), (1349464975,), (1349465551,), (1349465574,), (1349465604,), (1349465632,), (1349465861,), (1349465865,), (1349465867,), (1349465869,), (1349465939,), (1349465964,), (1349465987,), (1349466010,), (1349466225,), (1349466229,), (1349466247,), (1349466269,), (1349466284,), (1349466325,), (1349466626,), (1349466643,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'02042025': {'nb_upload': 22, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21967292]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349466643, 1349466626] map_info['map_portfolio_photo'] : {21967292: [1349466643, 1349466626, 1349466325, 1349466284, 1349466269, 1349466247, 1349466229, 1349466225, 1349466010, 1349465987, 1349465964, 1349465939, 1349465869, 1349465867, 1349465865, 1349465861, 1349465632, 1349465604, 1349465574, 1349465551, 1349464975, 1349464948]} final : True mtd_id 4302 list_pids : [1349466643, 1349466626] Looping around the photos to save general results len do output : 1 /21967292Didn'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, '2715671') ('4302', '21967292', '1349466643', None, None, None, None, None, '2715671') ('4302', None, None, None, None, None, None, None, '2715671') ('4302', '21967292', '1349466626', None, None, None, None, None, '2715671') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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, '21967292', 'None', None, None, None, None, '2715671'), ('4302', '21967292', '1349466643', None, None, None, None, None, '2715671'), ('4302', '21967292', '1349466626', None, None, None, None, None, '2715671')] time used for this insertion : 0.014811038970947266 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3283882141113281 time spend to save output : 0.014977455139160156 total time spend for step 5 : 0.3433656692504883 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 (2715671) 1.77user 2.07system 0:08.46elapsed 45%CPU (0avgtext+0avgdata 157176maxresident)k 32inputs+5336outputs (0major+78027minor)pagefaults 0swaps