SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032686) result : ((1349908592,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032679) result : ((1349905290,), (1349905361,), (1349905443,), (1349906150,), (1349906217,), (1349906296,), (1349906360,), (1349906423,), (1349906492,), (1349907320,), (1349907356,), (1349907382,), (1349907405,), (1349907444,), (1349907811,), (1349907837,), (1349907862,), (1349907890,), (1349908309,), (1349908343,), (1349908378,)) 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 22032687 , 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=22032679 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 (22032687) result : ((1349908585,), (1349908586,), (1349908588,), (1349908703,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032679) result : ((1349905290,), (1349905361,), (1349905443,), (1349906150,), (1349906217,), (1349906296,), (1349906360,), (1349906423,), (1349906492,), (1349907320,), (1349907356,), (1349907382,), (1349907405,), (1349907444,), (1349907811,), (1349907837,), (1349907862,), (1349907890,), (1349908309,), (1349908343,), (1349908378,)) 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 22032688 , 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=22032679 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 (22032688) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032679) result : ((1349905290,), (1349905361,), (1349905443,), (1349906150,), (1349906217,), (1349906296,), (1349906360,), (1349906423,), (1349906492,), (1349907320,), (1349907356,), (1349907382,), (1349907405,), (1349907444,), (1349907811,), (1349907837,), (1349907862,), (1349907890,), (1349908309,), (1349908343,), (1349908378,)) 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 22032689 , 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=22032679 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 (22032689) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032679) result : ((1349905290,), (1349905361,), (1349905443,), (1349906150,), (1349906217,), (1349906296,), (1349906360,), (1349906423,), (1349906492,), (1349907320,), (1349907356,), (1349907382,), (1349907405,), (1349907444,), (1349907811,), (1349907837,), (1349907862,), (1349907890,), (1349908309,), (1349908343,), (1349908378,)) 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 22032690 , 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=22032679 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 (22032690) result : ((1349908591,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032679) result : ((1349905290,), (1349905361,), (1349905443,), (1349906150,), (1349906217,), (1349906296,), (1349906360,), (1349906423,), (1349906492,), (1349907320,), (1349907356,), (1349907382,), (1349907405,), (1349907444,), (1349907811,), (1349907837,), (1349907862,), (1349907890,), (1349908309,), (1349908343,), (1349908378,)) 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 22032691 , 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=22032679 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 (22032691) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032679) result : ((1349905290,), (1349905361,), (1349905443,), (1349906150,), (1349906217,), (1349906296,), (1349906360,), (1349906423,), (1349906492,), (1349907320,), (1349907356,), (1349907382,), (1349907405,), (1349907444,), (1349907811,), (1349907837,), (1349907862,), (1349907890,), (1349908309,), (1349908343,), (1349908378,)) 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 22032692 , 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=22032679 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 (22032692) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032679) result : ((1349905290,), (1349905361,), (1349905443,), (1349906150,), (1349906217,), (1349906296,), (1349906360,), (1349906423,), (1349906492,), (1349907320,), (1349907356,), (1349907382,), (1349907405,), (1349907444,), (1349907811,), (1349907837,), (1349907862,), (1349907890,), (1349908309,), (1349908343,), (1349908378,)) 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 22032693 , 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=22032679 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 (22032693) result : ((1349908580,), (1349908581,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032679) result : ((1349905290,), (1349905361,), (1349905443,), (1349906150,), (1349906217,), (1349906296,), (1349906360,), (1349906423,), (1349906492,), (1349907320,), (1349907356,), (1349907382,), (1349907405,), (1349907444,), (1349907811,), (1349907837,), (1349907862,), (1349907890,), (1349908309,), (1349908343,), (1349908378,)) 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 22032694 , 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=22032679 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 (22032694) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032679) result : ((1349905290,), (1349905361,), (1349905443,), (1349906150,), (1349906217,), (1349906296,), (1349906360,), (1349906423,), (1349906492,), (1349907320,), (1349907356,), (1349907382,), (1349907405,), (1349907444,), (1349907811,), (1349907837,), (1349907862,), (1349907890,), (1349908309,), (1349908343,), (1349908378,)) 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 22032695 , 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=22032679 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 (22032695) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032679) result : ((1349905290,), (1349905361,), (1349905443,), (1349906150,), (1349906217,), (1349906296,), (1349906360,), (1349906423,), (1349906492,), (1349907320,), (1349907356,), (1349907382,), (1349907405,), (1349907444,), (1349907811,), (1349907837,), (1349907862,), (1349907890,), (1349908309,), (1349908343,), (1349908378,)) 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 22032696 , 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=22032679 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 (22032696) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032679) result : ((1349905290,), (1349905361,), (1349905443,), (1349906150,), (1349906217,), (1349906296,), (1349906360,), (1349906423,), (1349906492,), (1349907320,), (1349907356,), (1349907382,), (1349907405,), (1349907444,), (1349907811,), (1349907837,), (1349907862,), (1349907890,), (1349908309,), (1349908343,), (1349908378,)) 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 22032697 , 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=22032679 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 (22032697) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22032679) result : ((1349905290,), (1349905361,), (1349905443,), (1349906150,), (1349906217,), (1349906296,), (1349906360,), (1349906423,), (1349906492,), (1349907320,), (1349907356,), (1349907382,), (1349907405,), (1349907444,), (1349907811,), (1349907837,), (1349907862,), (1349907890,), (1349908309,), (1349908343,), (1349908378,)) 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`=22032679 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','metal','autre_refus','kraft','flou','cartonnette','Carton_brun','mal_croppe','papier','Carton_gris','environnement','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`=22032679 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','metal','autre_refus','kraft','flou','cartonnette','Carton_brun','mal_croppe','papier','Carton_gris','environnement','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 22032679, 'sub_port_id': 22032710, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14525244, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 4, 59)}, 'autre_refus': {'main_port_id': 22032679, 'sub_port_id': 22032711, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14525245, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 4, 59)}, 'papier': {'main_port_id': 22032679, 'sub_port_id': 22032712, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14525246, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 4, 59)}, 'flou': {'main_port_id': 22032679, 'sub_port_id': 22032713, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14525247, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 4, 59)}, 'Carton_gris': {'main_port_id': 22032679, 'sub_port_id': 22032714, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14525248, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 4, 59)}, 'Carton_brun': {'main_port_id': 22032679, 'sub_port_id': 22032715, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14525249, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 4, 59)}, 'cartonnette': {'main_port_id': 22032679, 'sub_port_id': 22032716, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14525250, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22032679, 'sub_port_id': 22032717, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14525251, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 4, 59)}, 'plastique': {'main_port_id': 22032679, 'sub_port_id': 22032718, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14525252, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 4, 59)}, 'environnement': {'main_port_id': 22032679, 'sub_port_id': 22032719, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14525253, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 4, 59)}, 'mal_croppe': {'main_port_id': 22032679, 'sub_port_id': 22032720, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14525254, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 4, 59)}, 'metal': {'main_port_id': 22032679, 'sub_port_id': 22032721, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14525255, 'last_updated_at': datetime.datetime(2025, 4, 15, 15, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 15, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 15, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032710,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032686 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032711,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032687 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032712,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032688 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032713,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032689 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032714,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032690 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032715,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032691 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032716,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032692 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032717,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032693 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032718,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032694 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032719,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032695 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032720,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032696 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22032721,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22032697 lien utilise dans velours : https://www.fotonower.com/velours/22032710,22032711,22032712,22032713,22032714,22032715,22032716,22032717,22032718,22032719,22032720,22032721?tags=kraft,autre_refus,papier,flou,Carton_gris,Carton_brun,cartonnette,Teint_Dans_La_Masse,plastique,environnement,mal_croppe,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22032679]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349908378, 1349908343, 1349908309, 1349907890, 1349907862, 1349907837, 1349907811] map_info['map_portfolio_photo'] : {22032679: [1349908378, 1349908343, 1349908309, 1349907890, 1349907862, 1349907837, 1349907811, 1349907444, 1349907405, 1349907382, 1349907356, 1349907320, 1349906492, 1349906423, 1349906360, 1349906296, 1349906217, 1349906150, 1349905443, 1349905361, 1349905290]} final : False mtd_id 4302 list_pids : [1349908378, 1349908343, 1349908309, 1349907890, 1349907862, 1349907837, 1349907811] Looping around the photos to save general results len do output : 1 /22032679. 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, '2721938') ('4302', '22032679', '1349908378', None, None, None, None, None, '2721938') ('4302', None, None, None, None, None, None, None, '2721938') ('4302', '22032679', '1349908343', None, None, None, None, None, '2721938') ('4302', None, None, None, None, None, None, None, '2721938') ('4302', '22032679', '1349908309', None, None, None, None, None, '2721938') ('4302', None, None, None, None, None, None, None, '2721938') ('4302', '22032679', '1349907890', None, None, None, None, None, '2721938') ('4302', None, None, None, None, None, None, None, '2721938') ('4302', '22032679', '1349907862', None, None, None, None, None, '2721938') ('4302', None, None, None, None, None, None, None, '2721938') ('4302', '22032679', '1349907837', None, None, None, None, None, '2721938') ('4302', None, None, None, None, None, None, None, '2721938') ('4302', '22032679', '1349907811', None, None, None, None, None, '2721938') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '22032679', "{'kraft': 22032686, 'autre_refus': 22032687, 'papier': 22032688, 'flou': 22032689, 'Carton_gris': 22032690, 'Carton_brun': 22032691, 'cartonnette': 22032692, 'Teint_Dans_La_Masse': 22032693, 'plastique': 22032694, 'environnement': 22032695, 'mal_croppe': 22032696, 'metal': 22032697}", None, None, None, None, '2721938'), ('4302', '22032679', '1349908378', None, None, None, None, None, '2721938'), ('4302', '22032679', '1349908343', None, None, None, None, None, '2721938'), ('4302', '22032679', '1349908309', None, None, None, None, None, '2721938'), ('4302', '22032679', '1349907890', None, None, None, None, None, '2721938'), ('4302', '22032679', '1349907862', None, None, None, None, None, '2721938'), ('4302', '22032679', '1349907837', None, None, None, None, None, '2721938'), ('4302', '22032679', '1349907811', None, None, None, None, None, '2721938')] time used for this insertion : 0.01616692543029785 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3535432815551758 time spend to save output : 0.016503572463989258 total time spend for step 1 : 1.370046854019165 step2:final Tue Apr 15 15:06:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (22032679) 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 22032679 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349905443,1349905361,1349905290,1349906492,1349906423,1349906360,1349906296,1349906217,1349906150,1349907444,1349907405,1349907382,1349907356,1349907320,1349907890,1349907862,1349907837,1349907811,1349908378,1349908343,1349908309); 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([22032679]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349908378: ('0.046025019694983224',), 1349908343: ('0.046025019694983224',), 1349908309: ('0.046025019694983224',), 1349907890: ('0.046025019694983224',), 1349907862: ('0.046025019694983224',), 1349907837: ('0.046025019694983224',), 1349907811: ('0.046025019694983224',)} new output for save of step final : {1349908378: ('0.046025019694983224',), 1349908343: ('0.046025019694983224',), 1349908309: ('0.046025019694983224',), 1349907890: ('0.046025019694983224',), 1349907862: ('0.046025019694983224',), 1349907837: ('0.046025019694983224',), 1349907811: ('0.046025019694983224',)} [1349908378, 1349908343, 1349908309, 1349907890, 1349907862, 1349907837, 1349907811] map_info['map_portfolio_photo'] : {22032679: [1349908378, 1349908343, 1349908309, 1349907890, 1349907862, 1349907837, 1349907811, 1349907444, 1349907405, 1349907382, 1349907356, 1349907320, 1349906492, 1349906423, 1349906360, 1349906296, 1349906217, 1349906150, 1349905443, 1349905361, 1349905290]} final : False mtd_id 4302 list_pids : [1349908378, 1349908343, 1349908309, 1349907890, 1349907862, 1349907837, 1349907811] Looping around the photos to save general results len do output : 7 /1349908378.Didn't retrieve data . /1349908343.Didn't retrieve data . /1349908309.Didn't retrieve data . /1349907890.Didn't retrieve data . /1349907862.Didn't retrieve data . /1349907837.Didn't retrieve data . /1349907811.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, '2721938') ('4302', '22032679', '1349908378', None, None, None, None, None, '2721938') ('4302', None, None, None, None, None, None, None, '2721938') ('4302', '22032679', '1349908343', None, None, None, None, None, '2721938') ('4302', None, None, None, None, None, None, None, '2721938') ('4302', '22032679', '1349908309', None, None, None, None, None, '2721938') ('4302', None, None, None, None, None, None, None, '2721938') ('4302', '22032679', '1349907890', None, None, None, None, None, '2721938') ('4302', None, None, None, None, None, None, None, '2721938') ('4302', '22032679', '1349907862', None, None, None, None, None, '2721938') ('4302', None, None, None, None, None, None, None, '2721938') ('4302', '22032679', '1349907837', None, None, None, None, None, '2721938') ('4302', None, None, None, None, None, None, None, '2721938') ('4302', '22032679', '1349907811', None, None, None, None, None, '2721938') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '22032679', '1349908378', '0.046025019694983224', None, None, None, None, '2721938'), ('4302', '22032679', '1349908343', '0.046025019694983224', None, None, None, None, '2721938'), ('4302', '22032679', '1349908309', '0.046025019694983224', None, None, None, None, '2721938'), ('4302', '22032679', '1349907890', '0.046025019694983224', None, None, None, None, '2721938'), ('4302', '22032679', '1349907862', '0.046025019694983224', None, None, None, None, '2721938'), ('4302', '22032679', '1349907837', '0.046025019694983224', None, None, None, None, '2721938'), ('4302', '22032679', '1349907811', '0.046025019694983224', None, None, None, None, '2721938')] time used for this insertion : 0.01301121711730957 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06381392478942871 time spend to save output : 0.013668060302734375 total time spend for step 2 : 0.07748198509216309 step3:velours_tree Tue Apr 15 15:06:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22032679: [{'kraft': 22032686, 'autre_refus': 22032687, 'papier': 22032688, 'flou': 22032689, 'Carton_gris': 22032690, 'Carton_brun': 22032691, 'cartonnette': 22032692, 'Teint_Dans_La_Masse': 22032693, 'plastique': 22032694, 'environnement': 22032695, 'mal_croppe': 22032696, 'metal': 22032697}]} input_args_next_step : {22032679: ()} output_args : {22032679: [{'kraft': 22032686, 'autre_refus': 22032687, 'papier': 22032688, 'flou': 22032689, 'Carton_gris': 22032690, 'Carton_brun': 22032691, 'cartonnette': 22032692, 'Teint_Dans_La_Masse': 22032693, 'plastique': 22032694, 'environnement': 22032695, 'mal_croppe': 22032696, 'metal': 22032697}]} args : 22032679 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 : ({'kraft': 22032686, 'autre_refus': 22032687, 'papier': 22032688, 'flou': 22032689, 'Carton_gris': 22032690, 'Carton_brun': 22032691, 'cartonnette': 22032692, 'Teint_Dans_La_Masse': 22032693, 'plastique': 22032694, 'environnement': 22032695, 'mal_croppe': 22032696, 'metal': 22032697},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22032679) 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([22032679]) 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.36067962646484375 time spend to save output : 5.245208740234375e-05 total time spend for step 3 : 0.3607320785522461 step4:send_mail_cod Tue Apr 15 15:06:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1349908378: ('0.046025019694983224',), 1349908343: ('0.046025019694983224',), 1349908309: ('0.046025019694983224',), 1349907890: ('0.046025019694983224',), 1349907862: ('0.046025019694983224',), 1349907837: ('0.046025019694983224',), 1349907811: ('0.046025019694983224',)} input_args_next_step : {1349908378: ()} output_args : {1349908378: ('0.046025019694983224',), 1349908343: ('0.046025019694983224',), 1349908309: ('0.046025019694983224',), 1349907890: ('0.046025019694983224',), 1349907862: ('0.046025019694983224',), 1349907837: ('0.046025019694983224',), 1349907811: ('0.046025019694983224',)} args : 1349908378 depend.output_id : 0 input_args_next_step : {1349908378: ('0.046025019694983224',), 1349908343: ()} output_args : {1349908378: ('0.046025019694983224',), 1349908343: ('0.046025019694983224',), 1349908309: ('0.046025019694983224',), 1349907890: ('0.046025019694983224',), 1349907862: ('0.046025019694983224',), 1349907837: ('0.046025019694983224',), 1349907811: ('0.046025019694983224',)} args : 1349908343 depend.output_id : 0 input_args_next_step : {1349908378: ('0.046025019694983224',), 1349908343: ('0.046025019694983224',), 1349908309: ()} output_args : {1349908378: ('0.046025019694983224',), 1349908343: ('0.046025019694983224',), 1349908309: ('0.046025019694983224',), 1349907890: ('0.046025019694983224',), 1349907862: ('0.046025019694983224',), 1349907837: ('0.046025019694983224',), 1349907811: ('0.046025019694983224',)} args : 1349908309 depend.output_id : 0 input_args_next_step : {1349908378: ('0.046025019694983224',), 1349908343: ('0.046025019694983224',), 1349908309: ('0.046025019694983224',), 1349907890: ()} output_args : {1349908378: ('0.046025019694983224',), 1349908343: ('0.046025019694983224',), 1349908309: ('0.046025019694983224',), 1349907890: ('0.046025019694983224',), 1349907862: ('0.046025019694983224',), 1349907837: ('0.046025019694983224',), 1349907811: ('0.046025019694983224',)} args : 1349907890 depend.output_id : 0 input_args_next_step : {1349908378: ('0.046025019694983224',), 1349908343: ('0.046025019694983224',), 1349908309: ('0.046025019694983224',), 1349907890: ('0.046025019694983224',), 1349907862: ()} output_args : {1349908378: ('0.046025019694983224',), 1349908343: ('0.046025019694983224',), 1349908309: ('0.046025019694983224',), 1349907890: ('0.046025019694983224',), 1349907862: ('0.046025019694983224',), 1349907837: ('0.046025019694983224',), 1349907811: ('0.046025019694983224',)} args : 1349907862 depend.output_id : 0 input_args_next_step : {1349908378: ('0.046025019694983224',), 1349908343: ('0.046025019694983224',), 1349908309: ('0.046025019694983224',), 1349907890: ('0.046025019694983224',), 1349907862: ('0.046025019694983224',), 1349907837: ()} output_args : {1349908378: ('0.046025019694983224',), 1349908343: ('0.046025019694983224',), 1349908309: ('0.046025019694983224',), 1349907890: ('0.046025019694983224',), 1349907862: ('0.046025019694983224',), 1349907837: ('0.046025019694983224',), 1349907811: ('0.046025019694983224',)} args : 1349907837 depend.output_id : 0 input_args_next_step : {1349908378: ('0.046025019694983224',), 1349908343: ('0.046025019694983224',), 1349908309: ('0.046025019694983224',), 1349907890: ('0.046025019694983224',), 1349907862: ('0.046025019694983224',), 1349907837: ('0.046025019694983224',), 1349907811: ()} output_args : {1349908378: ('0.046025019694983224',), 1349908343: ('0.046025019694983224',), 1349908309: ('0.046025019694983224',), 1349907890: ('0.046025019694983224',), 1349907862: ('0.046025019694983224',), 1349907837: ('0.046025019694983224',), 1349907811: ('0.046025019694983224',)} args : 1349907811 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 : {22032679: [{'kraft': 22032686, 'autre_refus': 22032687, 'papier': 22032688, 'flou': 22032689, 'Carton_gris': 22032690, 'Carton_brun': 22032691, 'cartonnette': 22032692, 'Teint_Dans_La_Masse': 22032693, 'plastique': 22032694, 'environnement': 22032695, 'mal_croppe': 22032696, 'metal': 22032697}]} input_args_next_step : {1349908378: ('0.046025019694983224',), 1349908343: ('0.046025019694983224',), 1349908309: ('0.046025019694983224',), 1349907890: ('0.046025019694983224',), 1349907862: ('0.046025019694983224',), 1349907837: ('0.046025019694983224',), 1349907811: ('0.046025019694983224',), 22032679: ()} output_args : {22032679: [{'kraft': 22032686, 'autre_refus': 22032687, 'papier': 22032688, 'flou': 22032689, 'Carton_gris': 22032690, 'Carton_brun': 22032691, 'cartonnette': 22032692, 'Teint_Dans_La_Masse': 22032693, 'plastique': 22032694, 'environnement': 22032695, 'mal_croppe': 22032696, 'metal': 22032697}]} args : 22032679 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 :8, first value : ('0.046025019694983224',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22032679) 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 (1349908378,1349908343,1349908309,1349907890,1349907862,1349907837,1349907811) Found this number of photos: 7 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349907811 begin to download photo : 1349907862 begin to download photo : 1349908309 begin to download photo : 1349908378 download finish for photo 1349908309 begin to download photo : 1349908343 download finish for photo 1349907862 begin to download photo : 1349907890 download finish for photo 1349908378 download finish for photo 1349907811 begin to download photo : 1349907837 download finish for photo 1349908343 download finish for photo 1349907890 download finish for photo 1349907837 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 : 7 ; length of list_pids : 7 ; length of list_args : 7 results_Auto_P22032679_15-04-2025_15_06_58.pdf 22032686 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=22032686 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349908592: '1744722341_906518_1349907405_d8c4d6b86d82d1961458d00068c79341_rle_crop_3746740836_0.png'} change filename to text .imagette220326861744722418/ imagette220326861744722418/1744722341_906518_1349907405_d8c4d6b86d82d1961458d00068c79341_rle_crop_3746740836_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/34be0707b9fac0adbad7fe147cd79428_91143841.png imagette220326861744722418 22032687 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=22032687 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349908585: '1744722341_906518_1349907405_d8c4d6b86d82d1961458d00068c79341_rle_crop_3746740840_0.png', 1349908586: '1744722341_906518_1349907382_d7ede6a5e66bbb05ab64546312740509_rle_crop_3746740853_0.png', 1349908588: '1744722341_906518_1349907356_d74f3bb4e06231ed18c13c0fbf7409f6_rle_crop_3746740874_0.png', 1349908703: '1744722371_788735_1349907444_e6891038f2e240d6d41368713869cdbb_rle_crop_3746743504_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/b76055bebb8f1c686a6288896a6dffe0_26531166.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/e9649389b6d4cde7b0e626e92b463bfb_53713818.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/12fd27d162573d46b6f7cb5687b6a70a_28241276.png change filename to text .imagette220326871744722418/ imagette220326871744722418/1744722341_906518_1349907356_d74f3bb4e06231ed18c13c0fbf7409f6_rle_crop_3746740874_0.png.png imagette220326871744722418/1744722341_906518_1349907405_d8c4d6b86d82d1961458d00068c79341_rle_crop_3746740840_0.png.png imagette220326871744722418/1744722371_788735_1349907444_e6891038f2e240d6d41368713869cdbb_rle_crop_3746743504_0.png.png imagette220326871744722418/1744722341_906518_1349907382_d7ede6a5e66bbb05ab64546312740509_rle_crop_3746740853_0.png.png imagette220326891744722419/ imagette220326921744722419/ imagette220326941744722419/ imagette220326961744722419/ imagette220326971744722419/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/4e718a02875a5c91d74e8cc0b79ec9b5_71222402.png imagette220326871744722418 22032689 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=22032689 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220326891744722419 22032692 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=22032692 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220326921744722419 22032694 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=22032694 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220326941744722419 22032696 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=22032696 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220326961744722419 22032697 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=22032697 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220326971744722419 22032690 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=22032690 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349908591: '1744722341_906518_1349907356_d74f3bb4e06231ed18c13c0fbf7409f6_rle_crop_3746740871_0.png'} change filename to text .imagette220326901744722419/ imagette220326901744722419/1744722341_906518_1349907356_d74f3bb4e06231ed18c13c0fbf7409f6_rle_crop_3746740871_0.png.png imagette220326911744722419/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/3fbd4f178e4da9ef1ba2bd737f18d513_41514368.png imagette220326901744722419 22032691 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=22032691 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220326911744722419 22032693 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=22032693 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349908580: '1744722341_906518_1349907405_d8c4d6b86d82d1961458d00068c79341_rle_crop_3746740842_0.png', 1349908581: '1744722341_906518_1349907356_d74f3bb4e06231ed18c13c0fbf7409f6_rle_crop_3746740875_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/318ca2bf8cf2d48fdbd560acc2001741_15428321.png change filename to text .imagette220326931744722419/ imagette220326931744722419/1744722341_906518_1349907356_d74f3bb4e06231ed18c13c0fbf7409f6_rle_crop_3746740875_0.png.png imagette220326931744722419/1744722341_906518_1349907405_d8c4d6b86d82d1961458d00068c79341_rle_crop_3746740842_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/da228ec0a138ddb54d8e941950983ef7_52021401.png imagette220326931744722419 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22032679 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22032710,22032711,22032712,22032713,22032714,22032715,22032716,22032717,22032718,22032719,22032720,22032721?tags=kraft,autre_refus,papier,flou,Carton_gris,Carton_brun,cartonnette,Teint_Dans_La_Masse,plastique,environnement,mal_croppe,metal your option no_mail is active, we will not send the real mail to your client args[1349908378] : ('0.046025019694983224',) no score found for photo 1349908378 We are sending mail with results at report@fotonower.com args[1349908343] : ('0.046025019694983224',) no score found for photo 1349908343 We are sending mail with results at report@fotonower.com args[1349908309] : ('0.046025019694983224',) no score found for photo 1349908309 We are sending mail with results at report@fotonower.com args[1349907890] : ('0.046025019694983224',) no score found for photo 1349907890 We are sending mail with results at report@fotonower.com args[1349907862] : ('0.046025019694983224',) no score found for photo 1349907862 We are sending mail with results at report@fotonower.com args[1349907837] : ('0.046025019694983224',) no score found for photo 1349907837 We are sending mail with results at report@fotonower.com args[1349907811] : ('0.046025019694983224',) no score found for photo 1349907811 We are sending mail with results at report@fotonower.com refus_total : 0.046025019694983224 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=22032679 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_P22032679_15-04-2025_15_06_58.pdf results_Auto_P22032679_15-04-2025_15_06_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22032679_15-04-2025_15_06_58.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22032679','results_Auto_P22032679_15-04-2025_15_06_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22032679_15-04-2025_15_06_58.pdf','pdf','','0.1','0.046025019694983224') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22032679]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349908378, 1349908343, 1349908309, 1349907890, 1349907862, 1349907837, 1349907811] map_info['map_portfolio_photo'] : {22032679: [1349908378, 1349908343, 1349908309, 1349907890, 1349907862, 1349907837, 1349907811, 1349907444, 1349907405, 1349907382, 1349907356, 1349907320, 1349906492, 1349906423, 1349906360, 1349906296, 1349906217, 1349906150, 1349905443, 1349905361, 1349905290]} final : False mtd_id 4302 list_pids : [1349908378, 1349908343, 1349908309, 1349907890, 1349907862, 1349907837, 1349907811] 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, '2721938') ('4302', '22032679', '1349908378', None, None, None, None, None, '2721938') ('4302', None, None, None, None, None, None, None, '2721938') ('4302', '22032679', '1349908343', None, None, None, None, None, '2721938') ('4302', None, None, None, None, None, None, None, '2721938') ('4302', '22032679', '1349908309', None, None, None, None, None, '2721938') ('4302', None, None, None, None, None, None, None, '2721938') ('4302', '22032679', '1349907890', None, None, None, None, None, '2721938') ('4302', None, None, None, None, None, None, None, '2721938') ('4302', '22032679', '1349907862', None, None, None, None, None, '2721938') ('4302', None, None, None, None, None, None, None, '2721938') ('4302', '22032679', '1349907837', None, None, None, None, None, '2721938') ('4302', None, None, None, None, None, None, None, '2721938') ('4302', '22032679', '1349907811', None, None, None, None, None, '2721938') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 7 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', '22032679', '1349908378', None, None, None, None, None, '2721938'), ('4302', '22032679', '1349908343', None, None, None, None, None, '2721938'), ('4302', '22032679', '1349908309', None, None, None, None, None, '2721938'), ('4302', '22032679', '1349907890', None, None, None, None, None, '2721938'), ('4302', '22032679', '1349907862', None, None, None, None, None, '2721938'), ('4302', '22032679', '1349907837', None, None, None, None, None, '2721938'), ('4302', '22032679', '1349907811', None, None, None, None, None, '2721938')] time used for this insertion : 0.013933420181274414 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7460975646972656 time spend to save output : 0.014111995697021484 total time spend for step 4 : 1.760209560394287 step5:split_time_score Tue Apr 15 15:07: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 complete output_args for input 0 : ['22032679'] 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 : [('22032679',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22032679) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349908378: {'path': 'temp/1744722418_3697395_1349908378_6bdebd2fd703a12da299714a5cd75996.jpg', 'extension': 'jpg'}, 1349908309: {'path': 'temp/1744722418_3697395_1349908309_6042b23f45054730ff9d7ab263a3e7b3.jpg', 'extension': 'jpg'}, 1349908343: {'path': 'temp/1744722418_3697395_1349908343_09eecd3b8bce22c38f7a202d18804ba7.jpg', 'extension': 'jpg'}, 1349907862: {'path': 'temp/1744722418_3697395_1349907862_5b4159ffb6a13bcdea84e7e85f00b921.jpg', 'extension': 'jpg'}, 1349907890: {'path': 'temp/1744722418_3697395_1349907890_46ec1dfb35f01b92fbb9ba1ba50aa37d.jpg', 'extension': 'jpg'}, 1349907811: {'path': 'temp/1744722418_3697395_1349907811_1b74d766bd44540b6f59039095940135.jpg', 'extension': 'jpg'}, 1349907837: {'path': 'temp/1744722418_3697395_1349907837_c6ba467e57171cb96c8bd327654ee43b.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 = 22032679; (('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 = 22032679 group by h (('15', 21),) 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=22032679 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 (22032679) 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 (22032679) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 15042025 22032679 Nombre de photos uploadées : 21 / 23040 (0%) 15042025 22032679 Nombre de photos taguées (types de déchets): 0 / 21 (0%) 15042025 22032679 Nombre de photos taguées (volume) : 0 / 21 (0%) [{'photo_id': 1349905443, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/9f024906b70fe16990cce4e703aef525.jpg', 'username': None, 'uploaded_at': 1744722067, 'text': 'image_15042025_15_00_04_10135.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349905361, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/18f7c551ae49b4d575bcb615f65202ae.jpg', 'username': None, 'uploaded_at': 1744722067, 'text': 'image_15042025_15_00_33_9125.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349905290, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/e8e3d4c597f9b06edc160b489c3eb52a.jpg', 'username': None, 'uploaded_at': 1744722067, 'text': 'image_15042025_15_00_43_10135.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349906492, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/25cf9a4c2a4c6287c5a99321c8033e29.jpg', 'username': None, 'uploaded_at': 1744722132, 'text': 'image_15042025_15_00_53_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 4.291534423828125e-06 ????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0010182857513427734 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22032679, '2025-04-15' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1714503,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02999091148376465 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= 1714503 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1714503, 'dashboard_run_id': 1723020, 'mtr_portfolio_id': 22030731, 'dashboard_result_id': 9852343, '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_P22030731_15-04-2025_14_33_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22030789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22030790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22030791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22030792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22030793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22030794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22030795, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22030796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22030797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22030798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22030799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22030800, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1723020, 'mtr_portfolio_id': 22031305, 'dashboard_result_id': 9852344, '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_P22031305_15-04-2025_14_50_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22031365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22031366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22031367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22031368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22031369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22031370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22031371, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22031372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22031373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22031374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22031375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22031376, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1723020, 'mtr_portfolio_id': 22032110, 'dashboard_result_id': 9852345, '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_P22032110_15-04-2025_15_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22032151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22032152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22032153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22032154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22032155, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22032156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22032157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22032158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22032159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22032160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22032161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22032162, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1723020, 'mtr_portfolio_id': 22032679, 'dashboard_result_id': 9852346, '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_P22032679_15-04-2025_15_05_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22032686, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22032687, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22032688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22032689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22032690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22032691, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22032692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22032693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22032694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22032695, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22032696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22032697, '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 = 22030731 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': 2721734, 'mtr_portfolio_id': 22030731, 'created_at': datetime.datetime(2025, 4, 15, 14, 32, 58), 'result': '0.03468246754841509', 'result_long': None, 'result_double': None}] Qualite : 0.03468246754841509 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22030731 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22030731_15-04-2025_14_33_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22030731 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_P22030731_15-04-2025_14_33_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22030789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22030790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22030791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22030792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22030793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22030794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22030795, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22030796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22030797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22030798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22030799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22030800, 'pht': 3726}}" where mtr_portfolio_id = 22030731 and dashboard_run_id = 1723020 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`=22030731 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9852343, 0.03468246754841509, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22030731_15-04-2025_14_33_07.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22030789, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22030790, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22030791, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22030792, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22030793, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22030794, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22030795, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22030796, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22030797, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22030798, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22030799, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22030800, '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 = 22031305 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': 2721809, 'mtr_portfolio_id': 22031305, 'created_at': datetime.datetime(2025, 4, 15, 14, 50, 58), 'result': '0.07490852493073792', 'result_long': None, 'result_double': None}] Qualite : 0.07490852493073792 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22031305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22031305_15-04-2025_14_50_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22031305 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_P22031305_15-04-2025_14_50_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22031365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22031366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22031367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22031368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22031369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22031370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22031371, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22031372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22031373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22031374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22031375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22031376, 'pht': 3726}}" where mtr_portfolio_id = 22031305 and dashboard_run_id = 1723020 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`=22031305 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9852344, 0.07490852493073792, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22031305_15-04-2025_14_50_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22031365, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22031366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22031367, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22031368, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22031369, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22031370, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22031371, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22031372, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22031373, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22031374, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22031375, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22031376, '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 = 22032110 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': 2721869, 'mtr_portfolio_id': 22032110, 'created_at': datetime.datetime(2025, 4, 15, 15, 2, 59), 'result': '0.0673990057763429', 'result_long': None, 'result_double': None}] Qualite : 0.0673990057763429 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22032110 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22032110_15-04-2025_15_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22032110 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_P22032110_15-04-2025_15_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22032151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22032152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22032153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22032154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22032155, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22032156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22032157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22032158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22032159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22032160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22032161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22032162, 'pht': 3726}}" where mtr_portfolio_id = 22032110 and dashboard_run_id = 1723020 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`=22032110 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9852345, 0.0673990057763429, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22032110_15-04-2025_15_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22032151, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22032152, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22032153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22032154, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22032155, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22032156, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22032157, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22032158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22032159, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22032160, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22032161, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22032162, '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 = 22032679 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': 2721938, 'mtr_portfolio_id': 22032679, 'created_at': datetime.datetime(2025, 4, 15, 15, 6, 58), 'result': '0.046025019694983224', 'result_long': None, 'result_double': None}] Qualite : 0.046025019694983224 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22032679 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22032679_15-04-2025_15_06_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22032679 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_P22032679_15-04-2025_15_06_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22032686, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22032687, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22032688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22032689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22032690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22032691, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22032692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22032693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22032694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22032695, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22032696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22032697, 'pht': 3726}}" where mtr_portfolio_id = 22032679 and dashboard_run_id = 1723020 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`=22032679 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9852346, 0.046025019694983224, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22032679_15-04-2025_15_06_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22032686, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22032687, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22032688, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22032689, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22032690, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22032691, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22032692, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22032693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22032694, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22032695, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22032696, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22032697, '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 (22030731,22031305,22032110,22032679) result : ((1349897908,), (1349897910,), (1349897911,), (1349897914,), (1349897915,), (1349897917,), (1349897921,), (1349897922,), (1349897969,), (1349897973,), (1349897977,), (1349898125,), (1349898135,), (1349898149,), (1349898155,), (1349898171,), (1349898308,), (1349898312,), (1349898316,), (1349898320,), (1349898365,), (1349898368,), (1349898372,), (1349898377,), (1349898433,), (1349898436,), (1349898439,), (1349898521,), (1349898527,), (1349898532,), (1349898537,), (1349898541,), (1349898667,), (1349898673,), (1349898678,), (1349898682,), (1349898687,), (1349898691,), (1349898774,), (1349898777,), (1349898779,), (1349898782,), (1349898801,), (1349898947,), (1349898951,), (1349898957,), (1349898959,), (1349898963,), (1349898982,), (1349898985,), (1349898996,), (1349899326,), (1349899422,), (1349899520,), (1349899568,), (1349899580,), (1349899601,), (1349899646,), (1349899669,), (1349899712,), (1349899724,), (1349899861,), (1349899865,), (1349899871,), (1349899874,), (1349899878,), (1349899882,), (1349900004,), (1349900048,), (1349900222,), (1349900228,), (1349900236,), (1349900239,), (1349900246,), (1349900251,), (1349900329,), (1349900307,), (1349900313,), (1349900319,), (1349900324,), (1349900426,), (1349900427,), (1349900432,), (1349900434,), (1349900436,), (1349900437,), (1349900451,), (1349900454,), (1349900783,), (1349900796,), (1349900806,), (1349900819,), (1349900866,), (1349900876,), (1349900891,), (1349900898,), (1349900913,), (1349900981,), (1349901012,), (1349901018,), (1349901023,), (1349901068,), (1349901101,), (1349901198,), (1349901224,), (1349901229,), (1349901234,), (1349901279,), (1349901284,), (1349901293,), (1349901347,), (1349901351,), (1349901355,), (1349901377,), (1349901383,), (1349901388,), (1349901399,), (1349901403,), (1349901406,), (1349901485,), (1349901487,), (1349901492,), (1349901884,), (1349902184,), (1349902209,), (1349902235,), (1349902240,), (1349902244,), (1349902383,), (1349902406,), (1349902409,), (1349902599,), (1349902532,), (1349902561,), (1349902576,), (1349902588,), (1349902701,), (1349902725,), (1349902749,), (1349902895,), (1349902927,), (1349902936,), (1349902944,), (1349902946,), (1349902951,), (1349903029,), (1349903030,), (1349903034,), (1349903036,), (1349903038,), (1349903040,), (1349903044,), (1349903047,), (1349903049,), (1349903052,), (1349903177,), (1349903180,), (1349903337,), (1349903339,), (1349903349,), (1349903350,), (1349903363,), (1349903365,), (1349903378,), (1349903380,), (1349903385,), (1349903388,), (1349903390,), (1349903391,), (1349903435,), (1349903441,), (1349903446,), (1349903471,), (1349903602,), (1349903606,), (1349903620,), (1349903625,), (1349903699,), (1349903702,), (1349903706,), (1349903710,), (1349903714,), (1349903725,), (1349903955,), (1349903960,), (1349904043,), (1349904121,), (1349904187,), (1349904191,), (1349904195,), (1349904199,), (1349904205,), (1349904340,), (1349904345,), (1349904361,), (1349904371,), (1349904376,), (1349904379,), (1349904497,), (1349904498,), (1349904508,), (1349904511,), (1349904518,), (1349904520,), (1349904531,), (1349904533,), (1349904538,), (1349904539,), (1349904795,), (1349904843,), (1349904897,), (1349904934,), (1349904962,), (1349904994,), (1349905111,), (1349905137,), (1349905161,), (1349905189,), (1349905214,), (1349905502,), (1349905290,), (1349905361,), (1349905443,), (1349906150,), (1349906217,), (1349906296,), (1349906360,), (1349906423,), (1349906492,), (1349907320,), (1349907356,), (1349907382,), (1349907405,), (1349907444,), (1349907811,), (1349907837,), (1349907862,), (1349907890,), (1349908309,), (1349908343,), (1349908378,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'15042025': {'nb_upload': 21, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22032679]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349908378, 1349908343, 1349908309, 1349907890, 1349907862, 1349907837, 1349907811] map_info['map_portfolio_photo'] : {22032679: [1349908378, 1349908343, 1349908309, 1349907890, 1349907862, 1349907837, 1349907811, 1349907444, 1349907405, 1349907382, 1349907356, 1349907320, 1349906492, 1349906423, 1349906360, 1349906296, 1349906217, 1349906150, 1349905443, 1349905361, 1349905290]} final : True mtd_id 4302 list_pids : [1349908378, 1349908343, 1349908309, 1349907890, 1349907862, 1349907837, 1349907811] Looping around the photos to save general results len do output : 1 /22032679Didn'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, '2721938') ('4302', '22032679', '1349908378', None, None, None, None, None, '2721938') ('4302', None, None, None, None, None, None, None, '2721938') ('4302', '22032679', '1349908343', None, None, None, None, None, '2721938') ('4302', None, None, None, None, None, None, None, '2721938') ('4302', '22032679', '1349908309', None, None, None, None, None, '2721938') ('4302', None, None, None, None, None, None, None, '2721938') ('4302', '22032679', '1349907890', None, None, None, None, None, '2721938') ('4302', None, None, None, None, None, None, None, '2721938') ('4302', '22032679', '1349907862', None, None, None, None, None, '2721938') ('4302', None, None, None, None, None, None, None, '2721938') ('4302', '22032679', '1349907837', None, None, None, None, None, '2721938') ('4302', None, None, None, None, None, None, None, '2721938') ('4302', '22032679', '1349907811', None, None, None, None, None, '2721938') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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, '22032679', 'None', None, None, None, None, '2721938'), ('4302', '22032679', '1349908378', None, None, None, None, None, '2721938'), ('4302', '22032679', '1349908343', None, None, None, None, None, '2721938'), ('4302', '22032679', '1349908309', None, None, None, None, None, '2721938'), ('4302', '22032679', '1349907890', None, None, None, None, None, '2721938'), ('4302', '22032679', '1349907862', None, None, None, None, None, '2721938'), ('4302', '22032679', '1349907837', None, None, None, None, None, '2721938'), ('4302', '22032679', '1349907811', None, None, None, None, None, '2721938')] time used for this insertion : 0.015627622604370117 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.32130002975463867 time spend to save output : 0.015791654586791992 total time spend for step 5 : 0.33709168434143066 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 (2721938) 2.14user 2.48system 0:06.10elapsed 75%CPU (0avgtext+0avgdata 160220maxresident)k 12624inputs+5552outputs (117major+64080minor)pagefaults 0swaps