result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22094762) result : ((1350256013,), (1350256020,), (1350256025,), (1350256105,), (1350256115,), (1350256119,), (1350256212,), (1350256265,), (1350256280,), (1350256287,), (1350256293,), (1350256301,), (1350256304,), (1350256367,), (1350256379,), (1350256382,), (1350256429,), (1350256460,), (1350256467,), (1350256475,), (1350256564,), (1350256570,), (1350256574,), (1350256578,), (1350256583,)) 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 22094767 , 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=22094762 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='papier' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22094767) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22094762) result : ((1350256013,), (1350256020,), (1350256025,), (1350256105,), (1350256115,), (1350256119,), (1350256212,), (1350256265,), (1350256280,), (1350256287,), (1350256293,), (1350256301,), (1350256304,), (1350256367,), (1350256379,), (1350256382,), (1350256429,), (1350256460,), (1350256467,), (1350256475,), (1350256564,), (1350256570,), (1350256574,), (1350256578,), (1350256583,)) 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 22094768 , 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=22094762 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 (22094768) result : ((1350256622,), (1350256631,), (1350256632,), (1350256696,), (1350256697,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22094762) result : ((1350256013,), (1350256020,), (1350256025,), (1350256105,), (1350256115,), (1350256119,), (1350256212,), (1350256265,), (1350256280,), (1350256287,), (1350256293,), (1350256301,), (1350256304,), (1350256367,), (1350256379,), (1350256382,), (1350256429,), (1350256460,), (1350256467,), (1350256475,), (1350256564,), (1350256570,), (1350256574,), (1350256578,), (1350256583,)) 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 22094769 , 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=22094762 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 (22094769) result : ((1350256377,), (1350256624,), (1350256703,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22094762) result : ((1350256013,), (1350256020,), (1350256025,), (1350256105,), (1350256115,), (1350256119,), (1350256212,), (1350256265,), (1350256280,), (1350256287,), (1350256293,), (1350256301,), (1350256304,), (1350256367,), (1350256379,), (1350256382,), (1350256429,), (1350256460,), (1350256467,), (1350256475,), (1350256564,), (1350256570,), (1350256574,), (1350256578,), (1350256583,)) 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 22094770 , 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=22094762 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 (22094770) result : ((1350256633,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22094762) result : ((1350256013,), (1350256020,), (1350256025,), (1350256105,), (1350256115,), (1350256119,), (1350256212,), (1350256265,), (1350256280,), (1350256287,), (1350256293,), (1350256301,), (1350256304,), (1350256367,), (1350256379,), (1350256382,), (1350256429,), (1350256460,), (1350256467,), (1350256475,), (1350256564,), (1350256570,), (1350256574,), (1350256578,), (1350256583,)) 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 22094771 , 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=22094762 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 (22094771) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22094762) result : ((1350256013,), (1350256020,), (1350256025,), (1350256105,), (1350256115,), (1350256119,), (1350256212,), (1350256265,), (1350256280,), (1350256287,), (1350256293,), (1350256301,), (1350256304,), (1350256367,), (1350256379,), (1350256382,), (1350256429,), (1350256460,), (1350256467,), (1350256475,), (1350256564,), (1350256570,), (1350256574,), (1350256578,), (1350256583,)) 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 22094772 , 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=22094762 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 (22094772) result : ((1350256225,), (1350256226,), (1350256227,), (1350256228,), (1350256244,), (1350256245,), (1350256621,), (1350256625,), (1350256626,), (1350256627,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22094762) result : ((1350256013,), (1350256020,), (1350256025,), (1350256105,), (1350256115,), (1350256119,), (1350256212,), (1350256265,), (1350256280,), (1350256287,), (1350256293,), (1350256301,), (1350256304,), (1350256367,), (1350256379,), (1350256382,), (1350256429,), (1350256460,), (1350256467,), (1350256475,), (1350256564,), (1350256570,), (1350256574,), (1350256578,), (1350256583,)) 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 22094773 , 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=22094762 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 (22094773) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22094762) result : ((1350256013,), (1350256020,), (1350256025,), (1350256105,), (1350256115,), (1350256119,), (1350256212,), (1350256265,), (1350256280,), (1350256287,), (1350256293,), (1350256301,), (1350256304,), (1350256367,), (1350256379,), (1350256382,), (1350256429,), (1350256460,), (1350256467,), (1350256475,), (1350256564,), (1350256570,), (1350256574,), (1350256578,), (1350256583,)) 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 22094774 , 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=22094762 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 (22094774) result : ((1350256246,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22094762) result : ((1350256013,), (1350256020,), (1350256025,), (1350256105,), (1350256115,), (1350256119,), (1350256212,), (1350256265,), (1350256280,), (1350256287,), (1350256293,), (1350256301,), (1350256304,), (1350256367,), (1350256379,), (1350256382,), (1350256429,), (1350256460,), (1350256467,), (1350256475,), (1350256564,), (1350256570,), (1350256574,), (1350256578,), (1350256583,)) 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 22094775 , 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=22094762 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 (22094775) result : ((1350256628,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22094762) result : ((1350256013,), (1350256020,), (1350256025,), (1350256105,), (1350256115,), (1350256119,), (1350256212,), (1350256265,), (1350256280,), (1350256287,), (1350256293,), (1350256301,), (1350256304,), (1350256367,), (1350256379,), (1350256382,), (1350256429,), (1350256460,), (1350256467,), (1350256475,), (1350256564,), (1350256570,), (1350256574,), (1350256578,), (1350256583,)) 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 22094776 , 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=22094762 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 (22094776) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22094762) result : ((1350256013,), (1350256020,), (1350256025,), (1350256105,), (1350256115,), (1350256119,), (1350256212,), (1350256265,), (1350256280,), (1350256287,), (1350256293,), (1350256301,), (1350256304,), (1350256367,), (1350256379,), (1350256382,), (1350256429,), (1350256460,), (1350256467,), (1350256475,), (1350256564,), (1350256570,), (1350256574,), (1350256578,), (1350256583,)) 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 22094777 , 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=22094762 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 (22094777) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22094762) result : ((1350256013,), (1350256020,), (1350256025,), (1350256105,), (1350256115,), (1350256119,), (1350256212,), (1350256265,), (1350256280,), (1350256287,), (1350256293,), (1350256301,), (1350256304,), (1350256367,), (1350256379,), (1350256382,), (1350256429,), (1350256460,), (1350256467,), (1350256475,), (1350256564,), (1350256570,), (1350256574,), (1350256578,), (1350256583,)) 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`=22094762 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','environnement','metal','kraft','papier','autre_refus','mal_croppe','flou','Carton_brun','Teint_Dans_La_Masse','Carton_gris','plastique')) 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`=22094762 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','environnement','metal','kraft','papier','autre_refus','mal_croppe','flou','Carton_brun','Teint_Dans_La_Masse','Carton_gris','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22094762, 'sub_port_id': 22094778, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14578562, 'last_updated_at': datetime.datetime(2025, 4, 7, 9, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 9, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 9, 40, 59)}, 'papier': {'main_port_id': 22094762, 'sub_port_id': 22094779, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14578563, 'last_updated_at': datetime.datetime(2025, 4, 7, 9, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 9, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 9, 40, 59)}, 'autre_refus': {'main_port_id': 22094762, 'sub_port_id': 22094780, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14578564, 'last_updated_at': datetime.datetime(2025, 4, 7, 9, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 9, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 9, 40, 59)}, 'cartonnette': {'main_port_id': 22094762, 'sub_port_id': 22094781, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14578565, 'last_updated_at': datetime.datetime(2025, 4, 7, 9, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 9, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 9, 40, 59)}, 'kraft': {'main_port_id': 22094762, 'sub_port_id': 22094782, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14578566, 'last_updated_at': datetime.datetime(2025, 4, 7, 9, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 9, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 9, 40, 59)}, 'metal': {'main_port_id': 22094762, 'sub_port_id': 22094783, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14578567, 'last_updated_at': datetime.datetime(2025, 4, 7, 9, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 9, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 9, 40, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22094762, 'sub_port_id': 22094784, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14578568, 'last_updated_at': datetime.datetime(2025, 4, 7, 9, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 9, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 9, 40, 59)}, 'mal_croppe': {'main_port_id': 22094762, 'sub_port_id': 22094785, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14578569, 'last_updated_at': datetime.datetime(2025, 4, 7, 9, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 9, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 9, 40, 59)}, 'Carton_gris': {'main_port_id': 22094762, 'sub_port_id': 22094786, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14578570, 'last_updated_at': datetime.datetime(2025, 4, 7, 9, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 9, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 9, 40, 59)}, 'plastique': {'main_port_id': 22094762, 'sub_port_id': 22094787, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14578571, 'last_updated_at': datetime.datetime(2025, 4, 7, 9, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 9, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 9, 40, 59)}, 'flou': {'main_port_id': 22094762, 'sub_port_id': 22094788, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14578572, 'last_updated_at': datetime.datetime(2025, 4, 7, 9, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 9, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 9, 40, 59)}, 'environnement': {'main_port_id': 22094762, 'sub_port_id': 22094789, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14578573, 'last_updated_at': datetime.datetime(2025, 4, 7, 9, 40, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 9, 40, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 9, 40, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22094778,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22094766 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22094779,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22094767 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22094780,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22094768 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22094781,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22094769 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22094782,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22094770 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22094783,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22094771 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22094784,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22094772 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22094785,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22094773 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22094786,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22094774 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22094787,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22094775 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22094788,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22094776 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22094789,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22094777 lien utilise dans velours : https://www.fotonower.com/velours/22094778,22094779,22094780,22094781,22094782,22094783,22094784,22094785,22094786,22094787,22094788,22094789?tags=Carton_brun,papier,autre_refus,cartonnette,kraft,metal,Teint_Dans_La_Masse,mal_croppe,Carton_gris,plastique,flou,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22094762]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350256583, 1350256578, 1350256574, 1350256570, 1350256564] map_info['map_portfolio_photo'] : {22094762: [1350256583, 1350256578, 1350256574, 1350256570, 1350256564, 1350256475, 1350256467, 1350256460, 1350256429, 1350256382, 1350256379, 1350256367, 1350256304, 1350256301, 1350256293, 1350256287, 1350256280, 1350256265, 1350256212, 1350256119, 1350256115, 1350256105, 1350256025, 1350256020, 1350256013]} final : False mtd_id 4302 list_pids : [1350256583, 1350256578, 1350256574, 1350256570, 1350256564] Looping around the photos to save general results len do output : 1 /22094762. 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, '2728194') ('4302', '22094762', '1350256583', None, None, None, None, None, '2728194') ('4302', None, None, None, None, None, None, None, '2728194') ('4302', '22094762', '1350256578', None, None, None, None, None, '2728194') ('4302', None, None, None, None, None, None, None, '2728194') ('4302', '22094762', '1350256574', None, None, None, None, None, '2728194') ('4302', None, None, None, None, None, None, None, '2728194') ('4302', '22094762', '1350256570', None, None, None, None, None, '2728194') ('4302', None, None, None, None, None, None, None, '2728194') ('4302', '22094762', '1350256564', None, None, None, None, None, '2728194') 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', None, '22094762', "{'Carton_brun': 22094766, 'papier': 22094767, 'autre_refus': 22094768, 'cartonnette': 22094769, 'kraft': 22094770, 'metal': 22094771, 'Teint_Dans_La_Masse': 22094772, 'mal_croppe': 22094773, 'Carton_gris': 22094774, 'plastique': 22094775, 'flou': 22094776, 'environnement': 22094777}", None, None, None, None, '2728194'), ('4302', '22094762', '1350256583', None, None, None, None, None, '2728194'), ('4302', '22094762', '1350256578', None, None, None, None, None, '2728194'), ('4302', '22094762', '1350256574', None, None, None, None, None, '2728194'), ('4302', '22094762', '1350256570', None, None, None, None, None, '2728194'), ('4302', '22094762', '1350256564', None, None, None, None, None, '2728194')] time used for this insertion : 0.012565135955810547 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4860479831695557 time spend to save output : 0.012836217880249023 total time spend for step 1 : 1.4988842010498047 step2:final Mon Apr 7 09:42: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 (22094762) 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 22094762 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350256025,1350256020,1350256013,1350256119,1350256115,1350256105,1350256212,1350256304,1350256301,1350256293,1350256287,1350256280,1350256265,1350256382,1350256379,1350256367,1350256475,1350256467,1350256460,1350256429,1350256583,1350256578,1350256574,1350256570,1350256564); 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([22094762]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350256583: ('0.05358377522812243',), 1350256578: ('0.05358377522812243',), 1350256574: ('0.05358377522812243',), 1350256570: ('0.05358377522812243',), 1350256564: ('0.05358377522812243',)} new output for save of step final : {1350256583: ('0.05358377522812243',), 1350256578: ('0.05358377522812243',), 1350256574: ('0.05358377522812243',), 1350256570: ('0.05358377522812243',), 1350256564: ('0.05358377522812243',)} [1350256583, 1350256578, 1350256574, 1350256570, 1350256564] map_info['map_portfolio_photo'] : {22094762: [1350256583, 1350256578, 1350256574, 1350256570, 1350256564, 1350256475, 1350256467, 1350256460, 1350256429, 1350256382, 1350256379, 1350256367, 1350256304, 1350256301, 1350256293, 1350256287, 1350256280, 1350256265, 1350256212, 1350256119, 1350256115, 1350256105, 1350256025, 1350256020, 1350256013]} final : False mtd_id 4302 list_pids : [1350256583, 1350256578, 1350256574, 1350256570, 1350256564] Looping around the photos to save general results len do output : 5 /1350256583.Didn't retrieve data . /1350256578.Didn't retrieve data . /1350256574.Didn't retrieve data . /1350256570.Didn't retrieve data . /1350256564.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, '2728194') ('4302', '22094762', '1350256583', None, None, None, None, None, '2728194') ('4302', None, None, None, None, None, None, None, '2728194') ('4302', '22094762', '1350256578', None, None, None, None, None, '2728194') ('4302', None, None, None, None, None, None, None, '2728194') ('4302', '22094762', '1350256574', None, None, None, None, None, '2728194') ('4302', None, None, None, None, None, None, None, '2728194') ('4302', '22094762', '1350256570', None, None, None, None, None, '2728194') ('4302', None, None, None, None, None, None, None, '2728194') ('4302', '22094762', '1350256564', None, None, None, None, None, '2728194') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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', '22094762', '1350256583', '0.05358377522812243', None, None, None, None, '2728194'), ('4302', '22094762', '1350256578', '0.05358377522812243', None, None, None, None, '2728194'), ('4302', '22094762', '1350256574', '0.05358377522812243', None, None, None, None, '2728194'), ('4302', '22094762', '1350256570', '0.05358377522812243', None, None, None, None, '2728194'), ('4302', '22094762', '1350256564', '0.05358377522812243', None, None, None, None, '2728194')] time used for this insertion : 0.01556849479675293 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07196998596191406 time spend to save output : 0.015921354293823242 total time spend for step 2 : 0.0878913402557373 step3:velours_tree Mon Apr 7 09:42: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 : {22094762: [{'Carton_brun': 22094766, 'papier': 22094767, 'autre_refus': 22094768, 'cartonnette': 22094769, 'kraft': 22094770, 'metal': 22094771, 'Teint_Dans_La_Masse': 22094772, 'mal_croppe': 22094773, 'Carton_gris': 22094774, 'plastique': 22094775, 'flou': 22094776, 'environnement': 22094777}]} input_args_next_step : {22094762: ()} output_args : {22094762: [{'Carton_brun': 22094766, 'papier': 22094767, 'autre_refus': 22094768, 'cartonnette': 22094769, 'kraft': 22094770, 'metal': 22094771, 'Teint_Dans_La_Masse': 22094772, 'mal_croppe': 22094773, 'Carton_gris': 22094774, 'plastique': 22094775, 'flou': 22094776, 'environnement': 22094777}]} args : 22094762 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 : ({'Carton_brun': 22094766, 'papier': 22094767, 'autre_refus': 22094768, 'cartonnette': 22094769, 'kraft': 22094770, 'metal': 22094771, 'Teint_Dans_La_Masse': 22094772, 'mal_croppe': 22094773, 'Carton_gris': 22094774, 'plastique': 22094775, 'flou': 22094776, 'environnement': 22094777},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22094762) 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([22094762]) 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.3011291027069092 time spend to save output : 5.984306335449219e-05 total time spend for step 3 : 0.30118894577026367 step4:send_mail_cod Mon Apr 7 09:43:00 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 : {1350256583: ('0.05358377522812243',), 1350256578: ('0.05358377522812243',), 1350256574: ('0.05358377522812243',), 1350256570: ('0.05358377522812243',), 1350256564: ('0.05358377522812243',)} input_args_next_step : {1350256583: ()} output_args : {1350256583: ('0.05358377522812243',), 1350256578: ('0.05358377522812243',), 1350256574: ('0.05358377522812243',), 1350256570: ('0.05358377522812243',), 1350256564: ('0.05358377522812243',)} args : 1350256583 depend.output_id : 0 input_args_next_step : {1350256583: ('0.05358377522812243',), 1350256578: ()} output_args : {1350256583: ('0.05358377522812243',), 1350256578: ('0.05358377522812243',), 1350256574: ('0.05358377522812243',), 1350256570: ('0.05358377522812243',), 1350256564: ('0.05358377522812243',)} args : 1350256578 depend.output_id : 0 input_args_next_step : {1350256583: ('0.05358377522812243',), 1350256578: ('0.05358377522812243',), 1350256574: ()} output_args : {1350256583: ('0.05358377522812243',), 1350256578: ('0.05358377522812243',), 1350256574: ('0.05358377522812243',), 1350256570: ('0.05358377522812243',), 1350256564: ('0.05358377522812243',)} args : 1350256574 depend.output_id : 0 input_args_next_step : {1350256583: ('0.05358377522812243',), 1350256578: ('0.05358377522812243',), 1350256574: ('0.05358377522812243',), 1350256570: ()} output_args : {1350256583: ('0.05358377522812243',), 1350256578: ('0.05358377522812243',), 1350256574: ('0.05358377522812243',), 1350256570: ('0.05358377522812243',), 1350256564: ('0.05358377522812243',)} args : 1350256570 depend.output_id : 0 input_args_next_step : {1350256583: ('0.05358377522812243',), 1350256578: ('0.05358377522812243',), 1350256574: ('0.05358377522812243',), 1350256570: ('0.05358377522812243',), 1350256564: ()} output_args : {1350256583: ('0.05358377522812243',), 1350256578: ('0.05358377522812243',), 1350256574: ('0.05358377522812243',), 1350256570: ('0.05358377522812243',), 1350256564: ('0.05358377522812243',)} args : 1350256564 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 : {22094762: [{'Carton_brun': 22094766, 'papier': 22094767, 'autre_refus': 22094768, 'cartonnette': 22094769, 'kraft': 22094770, 'metal': 22094771, 'Teint_Dans_La_Masse': 22094772, 'mal_croppe': 22094773, 'Carton_gris': 22094774, 'plastique': 22094775, 'flou': 22094776, 'environnement': 22094777}]} input_args_next_step : {1350256583: ('0.05358377522812243',), 1350256578: ('0.05358377522812243',), 1350256574: ('0.05358377522812243',), 1350256570: ('0.05358377522812243',), 1350256564: ('0.05358377522812243',), 22094762: ()} output_args : {22094762: [{'Carton_brun': 22094766, 'papier': 22094767, 'autre_refus': 22094768, 'cartonnette': 22094769, 'kraft': 22094770, 'metal': 22094771, 'Teint_Dans_La_Masse': 22094772, 'mal_croppe': 22094773, 'Carton_gris': 22094774, 'plastique': 22094775, 'flou': 22094776, 'environnement': 22094777}]} args : 22094762 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 :6, first value : ('0.05358377522812243',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22094762) 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 (1350256583,1350256578,1350256574,1350256570,1350256564) Found this number of photos: 5 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350256564 begin to download photo : 1350256574 begin to download photo : 1350256583 download finish for photo 1350256583 download finish for photo 1350256574 begin to download photo : 1350256578 download finish for photo 1350256564 begin to download photo : 1350256570 download finish for photo 1350256578 download finish for photo 1350256570 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 : 5 ; length of list_pids : 5 ; length of list_args : 5 results_Auto_P22094762_07-04-2025_09_43_00.pdf 22094768 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=22094768 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350256622: '1744011673_795439_1350256367_78123689991ffcd56e68cc25ee8b8acb_rle_crop_3748653901_0.png', 1350256631: '1744011661_795272_1350256301_42dcb1343bcd9982d05c3eb24053da4c_rle_crop_3748653834_0.png', 1350256632: '1744011661_795272_1350256293_f1361f0b151769e0ed63cc96f662f2b4_rle_crop_3748653887_0.png', 1350256696: '1744011693_795678_1350256429_b3089febe99724a53a86ea9c27325eb4_rle_crop_3748654049_0.png', 1350256697: '1744011693_795678_1350256429_b3089febe99724a53a86ea9c27325eb4_rle_crop_3748654047_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/b926787dbd4d9277168ee3b1b7a3f8f3_46899613.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/47d8dc26984c8c7eccb4e157541e3921_72462572.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/dfb807a654f4e79ac2be15dce0276eb9_10020977.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/f14b3e0c6ea679c8424fbd541745955c_81669609.png change filename to text .imagette220947681744011780/ imagette220947681744011780/1744011661_795272_1350256293_f1361f0b151769e0ed63cc96f662f2b4_rle_crop_3748653887_0.png.png imagette220947681744011780/1744011693_795678_1350256429_b3089febe99724a53a86ea9c27325eb4_rle_crop_3748654049_0.png.png imagette220947681744011780/1744011661_795272_1350256301_42dcb1343bcd9982d05c3eb24053da4c_rle_crop_3748653834_0.png.png imagette220947681744011780/1744011673_795439_1350256367_78123689991ffcd56e68cc25ee8b8acb_rle_crop_3748653901_0.png.png imagette220947681744011780/1744011693_795678_1350256429_b3089febe99724a53a86ea9c27325eb4_rle_crop_3748654047_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/9b84090f0b6b6b7efd41e4d2fd0733c5_20018938.png imagette220947681744011780 22094769 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=22094769 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350256377: '1744011532_793848_1350256212_cf86d1964e7ec5df2475aa14f1667cc3_rle_crop_3748651675_0.png', 1350256624: '1744011673_795439_1350256367_78123689991ffcd56e68cc25ee8b8acb_rle_crop_3748653897_0.png', 1350256703: '1744011693_795678_1350256429_b3089febe99724a53a86ea9c27325eb4_rle_crop_3748654041_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/2bd8d580fb5de4e9227606957130db5c_89759009.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/7da2a1a743b8adb983e13bf9ebaa3572_83011097.png change filename to text .imagette220947691744011780/ imagette220947691744011780/1744011693_795678_1350256429_b3089febe99724a53a86ea9c27325eb4_rle_crop_3748654041_0.png.png imagette220947691744011780/1744011673_795439_1350256367_78123689991ffcd56e68cc25ee8b8acb_rle_crop_3748653897_0.png.png imagette220947691744011780/1744011532_793848_1350256212_cf86d1964e7ec5df2475aa14f1667cc3_rle_crop_3748651675_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/a0dbd95db1fdeaf58f232441a032f3f8_52211752.png imagette220947691744011780 22094770 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=22094770 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350256633: '1744011661_795272_1350256301_42dcb1343bcd9982d05c3eb24053da4c_rle_crop_3748653830_0.png'} change filename to text .imagette220947701744011780/ imagette220947701744011780/1744011661_795272_1350256301_42dcb1343bcd9982d05c3eb24053da4c_rle_crop_3748653830_0.png.png imagette220947711744011781/ imagette220947731744011781/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/115fa534afc06743b21f7e1a8938a869_98238275.png imagette220947701744011780 22094771 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=22094771 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220947711744011781 22094773 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=22094773 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220947731744011781 22094775 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=22094775 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350256628: '1744011673_795439_1350256367_78123689991ffcd56e68cc25ee8b8acb_rle_crop_3748653900_0.png'} change filename to text .imagette220947751744011781/ imagette220947751744011781/1744011673_795439_1350256367_78123689991ffcd56e68cc25ee8b8acb_rle_crop_3748653900_0.png.png imagette220947761744011781/ imagette220947661744011781/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/b00ba01c25f60b14969f99afe7528f32_61485431.png imagette220947751744011781 22094776 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=22094776 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220947761744011781 22094766 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=22094766 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220947661744011781 22094772 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=22094772 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350256225: '1744011412_792806_1350256115_3850cc55d1f26ad000f177558866f330_rle_crop_3748649549_0.png', 1350256226: '1744011412_792806_1350256115_3850cc55d1f26ad000f177558866f330_rle_crop_3748649551_0.png', 1350256227: '1744011412_792806_1350256115_3850cc55d1f26ad000f177558866f330_rle_crop_3748649548_0.png', 1350256228: '1744011412_792806_1350256105_25d49c38fe3133dfd886b0f46db9db44_rle_crop_3748649562_0.png', 1350256244: '1744011431_793053_1350256119_7bd3d203474d8bedd12d94f63350f293_rle_crop_3748649653_0.png', 1350256245: '1744011431_793053_1350256013_443fc9e2717ab0a5ecb4d2b09e8e2e5c_rle_crop_3748649664_0.png', 1350256621: '1744011673_795439_1350256367_78123689991ffcd56e68cc25ee8b8acb_rle_crop_3748653905_0.png', 1350256625: '1744011661_795272_1350256382_ea4687caeb47b860688408e2f97bae91_rle_crop_3748653821_0.png', 1350256626: '1744011661_795272_1350256265_31480fccfa38a6394607af7e5b364b14_rle_crop_3748653932_0.png', 1350256627: '1744011661_795272_1350256265_31480fccfa38a6394607af7e5b364b14_rle_crop_3748653934_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/33e2d40a0a2625f0f66b8f6f89fad45d_60390755.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/13a1e5c94bd443ad42fc90cead8cdeae_57901179.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/79202536b637059057f624187297598f_9105373.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/098d4504af6acc3a049f6da86a97e22e_85269683.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/6d7c8ed67534aa01460b34c630c5ecbb_29119451.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/529df625d25abe846f56aa7987e24a9e_39438499.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/4857007f21693cc7cab4142251422bd5_92074273.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/e994a05ad5965f5a8eeda2b065f6fe69_18230018.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/749b532815e9d7232327b1ac3ac9cecd_33076001.png change filename to text .imagette220947721744011781/ imagette220947721744011781/1744011431_793053_1350256119_7bd3d203474d8bedd12d94f63350f293_rle_crop_3748649653_0.png.png imagette220947721744011781/1744011412_792806_1350256115_3850cc55d1f26ad000f177558866f330_rle_crop_3748649548_0.png.png imagette220947721744011781/1744011673_795439_1350256367_78123689991ffcd56e68cc25ee8b8acb_rle_crop_3748653905_0.png.png imagette220947721744011781/1744011412_792806_1350256105_25d49c38fe3133dfd886b0f46db9db44_rle_crop_3748649562_0.png.png imagette220947721744011781/1744011431_793053_1350256013_443fc9e2717ab0a5ecb4d2b09e8e2e5c_rle_crop_3748649664_0.png.png imagette220947721744011781/1744011661_795272_1350256265_31480fccfa38a6394607af7e5b364b14_rle_crop_3748653934_0.png.png imagette220947721744011781/1744011412_792806_1350256115_3850cc55d1f26ad000f177558866f330_rle_crop_3748649551_0.png.png imagette220947721744011781/1744011661_795272_1350256265_31480fccfa38a6394607af7e5b364b14_rle_crop_3748653932_0.png.png imagette220947721744011781/1744011412_792806_1350256115_3850cc55d1f26ad000f177558866f330_rle_crop_3748649549_0.png.png imagette220947721744011781/1744011661_795272_1350256382_ea4687caeb47b860688408e2f97bae91_rle_crop_3748653821_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/ca0e99fb20aee25708b7c3b6b080fd3e_49261641.png imagette220947721744011781 22094774 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=22094774 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350256246: '1744011431_793053_1350256020_3615b1867220bdfe70acace9d562823e_rle_crop_3748649658_0.png'} change filename to text .imagette220947741744011781/ imagette220947741744011781/1744011431_793053_1350256020_3615b1867220bdfe70acace9d562823e_rle_crop_3748649658_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/11a524bb6f4bf9dc593ffb204c407336_80452880.png imagette220947741744011781 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22094762 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22094778,22094779,22094780,22094781,22094782,22094783,22094784,22094785,22094786,22094787,22094788,22094789?tags=Carton_brun,papier,autre_refus,cartonnette,kraft,metal,Teint_Dans_La_Masse,mal_croppe,Carton_gris,plastique,flou,environnement your option no_mail is active, we will not send the real mail to your client args[1350256583] : ('0.05358377522812243',) no score found for photo 1350256583 We are sending mail with results at report@fotonower.com args[1350256578] : ('0.05358377522812243',) no score found for photo 1350256578 We are sending mail with results at report@fotonower.com args[1350256574] : ('0.05358377522812243',) no score found for photo 1350256574 We are sending mail with results at report@fotonower.com args[1350256570] : ('0.05358377522812243',) no score found for photo 1350256570 We are sending mail with results at report@fotonower.com args[1350256564] : ('0.05358377522812243',) no score found for photo 1350256564 We are sending mail with results at report@fotonower.com refus_total : 0.05358377522812243 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=22094762 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_P22094762_07-04-2025_09_43_00.pdf results_Auto_P22094762_07-04-2025_09_43_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22094762_07-04-2025_09_43_00.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','22094762','results_Auto_P22094762_07-04-2025_09_43_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22094762_07-04-2025_09_43_00.pdf','pdf','','0.13','0.05358377522812243') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22094762]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350256583, 1350256578, 1350256574, 1350256570, 1350256564] map_info['map_portfolio_photo'] : {22094762: [1350256583, 1350256578, 1350256574, 1350256570, 1350256564, 1350256475, 1350256467, 1350256460, 1350256429, 1350256382, 1350256379, 1350256367, 1350256304, 1350256301, 1350256293, 1350256287, 1350256280, 1350256265, 1350256212, 1350256119, 1350256115, 1350256105, 1350256025, 1350256020, 1350256013]} final : False mtd_id 4302 list_pids : [1350256583, 1350256578, 1350256574, 1350256570, 1350256564] 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, '2728194') ('4302', '22094762', '1350256583', None, None, None, None, None, '2728194') ('4302', None, None, None, None, None, None, None, '2728194') ('4302', '22094762', '1350256578', None, None, None, None, None, '2728194') ('4302', None, None, None, None, None, None, None, '2728194') ('4302', '22094762', '1350256574', None, None, None, None, None, '2728194') ('4302', None, None, None, None, None, None, None, '2728194') ('4302', '22094762', '1350256570', None, None, None, None, None, '2728194') ('4302', None, None, None, None, None, None, None, '2728194') ('4302', '22094762', '1350256564', None, None, None, None, None, '2728194') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 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', '22094762', '1350256583', None, None, None, None, None, '2728194'), ('4302', '22094762', '1350256578', None, None, None, None, None, '2728194'), ('4302', '22094762', '1350256574', None, None, None, None, None, '2728194'), ('4302', '22094762', '1350256570', None, None, None, None, None, '2728194'), ('4302', '22094762', '1350256564', None, None, None, None, None, '2728194')] time used for this insertion : 0.012970685958862305 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.680972099304199 time spend to save output : 0.013138771057128906 total time spend for step 4 : 2.694110870361328 step5:split_time_score Mon Apr 7 09:43: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 : ['22094762'] 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 : [('22094762',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22094762) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350256583: {'path': 'temp/1744011780_3785076_1350256583_ad7b8d0924b82859ac02cc25913c9f7d.jpg', 'extension': 'jpg'}, 1350256574: {'path': 'temp/1744011780_3785076_1350256574_0bd5484f970cb0752cab565229aa1b3d.jpg', 'extension': 'jpg'}, 1350256578: {'path': 'temp/1744011780_3785076_1350256578_ee2fc61534e5da87609a1f5ade035805.jpg', 'extension': 'jpg'}, 1350256564: {'path': 'temp/1744011780_3785076_1350256564_3479aa86dbe0ffed907bbe2a4abe18d4.jpg', 'extension': 'jpg'}, 1350256570: {'path': 'temp/1744011780_3785076_1350256570_eea91d44a5f7197875b4510499ddf481.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 = 22094762; (('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 = 22094762 group by h (('09', 25),) 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=22094762 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 (22094762) 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 (22094762) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07042025 22094762 Nombre de photos uploadées : 25 / 23040 (0%) 07042025 22094762 Nombre de photos taguées (types de déchets): 0 / 25 (0%) 07042025 22094762 Nombre de photos taguées (volume) : 0 / 25 (0%) [{'photo_id': 1350256025, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/3a7d87a71b757df1d22247c842e90bc2.jpg', 'username': None, 'uploaded_at': 1744011308, 'text': 'image_07042025_09_33_54_10137.jpg'}, {'photo_id': 1350256020, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/3615b1867220bdfe70acace9d562823e.jpg', 'username': None, 'uploaded_at': 1744011308, 'text': 'image_07042025_09_34_35_10142.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350256013, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/443fc9e2717ab0a5ecb4d2b09e8e2e5c.jpg', 'username': None, 'uploaded_at': 1744011308, 'text': 'image_07042025_09_34_45_10136.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350256119, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/7bd3d203474d8bedd12d94f63350f293.jpg', 'username': None, 'uploaded_at': 1744011368, 'text': 'image_07042025_09_34_54_9127.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0011830329895019531 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22094762, '2025-04-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1719143,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024389982223510742 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= 1719143 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1719143, 'dashboard_run_id': 1727125, 'mtr_portfolio_id': 22093430, 'dashboard_result_id': 9901144, '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_P22093430_07-04-2025_09_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22093459, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22093460, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22093461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22093462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22093463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22093464, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22093465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22093466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22093467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22093468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22093469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22093470, 'pht': 3726}}"}, {'dashboat_entry_day': 1719143, 'dashboard_run_id': 1727125, 'mtr_portfolio_id': 22094762, 'dashboard_result_id': 9901145, '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_P22094762_07-04-2025_09_41_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22094766, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22094767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22094768, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22094769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22094770, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22094771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22094772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22094773, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22094774, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22094775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22094776, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22094777, '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 = 22093430 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': 2728027, 'mtr_portfolio_id': 22093430, 'created_at': datetime.datetime(2025, 4, 7, 9, 2, 59), 'result': '0.040531644179794844', 'result_long': None, 'result_double': None}] Qualite : 0.040531644179794844 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22093430 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22093430_07-04-2025_09_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22093430 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_P22093430_07-04-2025_09_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22093459, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22093460, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22093461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22093462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22093463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22093464, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22093465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22093466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22093467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22093468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22093469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22093470, 'pht': 3726}}" where mtr_portfolio_id = 22093430 and dashboard_run_id = 1727125 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`=22093430 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9901144, 0.040531644179794844, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22093430_07-04-2025_09_03_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22093459, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22093460, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22093461, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22093462, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22093463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22093464, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22093465, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22093466, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22093467, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22093468, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22093469, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22093470, '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 = 22094762 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': 2728194, 'mtr_portfolio_id': 22094762, 'created_at': datetime.datetime(2025, 4, 7, 9, 42, 59), 'result': '0.05358377522812243', 'result_long': None, 'result_double': None}] Qualite : 0.05358377522812243 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22094762 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22094762_07-04-2025_09_43_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22094762 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_P22094762_07-04-2025_09_43_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22094766, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22094767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22094768, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22094769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22094770, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22094771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22094772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22094773, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22094774, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22094775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22094776, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22094777, 'pht': 3726}}" where mtr_portfolio_id = 22094762 and dashboard_run_id = 1727125 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`=22094762 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9901145, 0.05358377522812243, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22094762_07-04-2025_09_43_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22094766, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22094767, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22094768, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22094769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22094770, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22094771, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22094772, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22094773, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22094774, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22094775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22094776, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22094777, '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 (22093430,22094762) result : ((1350251047,), (1350251052,), (1350251056,), (1350251059,), (1350251062,), (1350251093,), (1350251096,), (1350251117,), (1350251122,), (1350251126,), (1350251161,), (1350251166,), (1350251178,), (1350251241,), (1350251246,), (1350251252,), (1350251255,), (1350251259,), (1350251348,), (1350251418,), (1350251428,), (1350251432,), (1350251468,), (1350251470,), (1350251473,), (1350251499,), (1350251503,), (1350251506,), (1350251510,), (1350251543,), (1350251548,), (1350251550,), (1350251553,), (1350251555,), (1350251875,), (1350251898,), (1350251903,), (1350251906,), (1350251981,), (1350251986,), (1350252096,), (1350252100,), (1350252108,), (1350252113,), (1350252118,), (1350252144,), (1350252147,), (1350252150,), (1350252154,), (1350252204,), (1350252206,), (1350252208,), (1350252210,), (1350252768,), (1350252775,), (1350252782,), (1350252797,), (1350252819,), (1350252893,), (1350256013,), (1350256020,), (1350256025,), (1350256105,), (1350256115,), (1350256119,), (1350256212,), (1350256265,), (1350256280,), (1350256287,), (1350256293,), (1350256301,), (1350256304,), (1350256367,), (1350256379,), (1350256382,), (1350256429,), (1350256460,), (1350256467,), (1350256475,), (1350256564,), (1350256570,), (1350256574,), (1350256578,), (1350256583,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07042025': {'nb_upload': 25, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22094762]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350256583, 1350256578, 1350256574, 1350256570, 1350256564] map_info['map_portfolio_photo'] : {22094762: [1350256583, 1350256578, 1350256574, 1350256570, 1350256564, 1350256475, 1350256467, 1350256460, 1350256429, 1350256382, 1350256379, 1350256367, 1350256304, 1350256301, 1350256293, 1350256287, 1350256280, 1350256265, 1350256212, 1350256119, 1350256115, 1350256105, 1350256025, 1350256020, 1350256013]} final : True mtd_id 4302 list_pids : [1350256583, 1350256578, 1350256574, 1350256570, 1350256564] Looping around the photos to save general results len do output : 1 /22094762Didn'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, '2728194') ('4302', '22094762', '1350256583', None, None, None, None, None, '2728194') ('4302', None, None, None, None, None, None, None, '2728194') ('4302', '22094762', '1350256578', None, None, None, None, None, '2728194') ('4302', None, None, None, None, None, None, None, '2728194') ('4302', '22094762', '1350256574', None, None, None, None, None, '2728194') ('4302', None, None, None, None, None, None, None, '2728194') ('4302', '22094762', '1350256570', None, None, None, None, None, '2728194') ('4302', None, None, None, None, None, None, None, '2728194') ('4302', '22094762', '1350256564', None, None, None, None, None, '2728194') 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', None, '22094762', 'None', None, None, None, None, '2728194'), ('4302', '22094762', '1350256583', None, None, None, None, None, '2728194'), ('4302', '22094762', '1350256578', None, None, None, None, None, '2728194'), ('4302', '22094762', '1350256574', None, None, None, None, None, '2728194'), ('4302', '22094762', '1350256570', None, None, None, None, None, '2728194'), ('4302', '22094762', '1350256564', None, None, None, None, None, '2728194')] time used for this insertion : 0.01529836654663086 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.23279333114624023 time spend to save output : 0.015511274337768555 total time spend for step 5 : 0.2483046054840088 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 (2728194) 1.85user 2.50system 0:08.00elapsed 54%CPU (0avgtext+0avgdata 158652maxresident)k 176inputs+6600outputs (2major+63772minor)pagefaults 0swaps