returned map {'papier': {'main_port_id': 22106276, 'sub_port_id': 22106278, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590517, 'last_updated_at': datetime.datetime(2025, 4, 16, 22, 34, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 22, 34, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 22, 34, 57)}, 'Carton_gris': {'main_port_id': 22106276, 'sub_port_id': 22106279, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590518, 'last_updated_at': datetime.datetime(2025, 4, 16, 22, 34, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 22, 34, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 22, 34, 57)}, 'autre_refus': {'main_port_id': 22106276, 'sub_port_id': 22106280, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590519, 'last_updated_at': datetime.datetime(2025, 4, 16, 22, 34, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 22, 34, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 22, 34, 57)}, 'metal': {'main_port_id': 22106276, 'sub_port_id': 22106281, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590520, 'last_updated_at': datetime.datetime(2025, 4, 16, 22, 34, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 22, 34, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 22, 34, 57)}, 'cartonnette': {'main_port_id': 22106276, 'sub_port_id': 22106282, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590521, 'last_updated_at': datetime.datetime(2025, 4, 16, 22, 34, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 22, 34, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 22, 34, 57)}, 'mal_croppe': {'main_port_id': 22106276, 'sub_port_id': 22106283, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590522, 'last_updated_at': datetime.datetime(2025, 4, 16, 22, 34, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 22, 34, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 22, 34, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 22106276, 'sub_port_id': 22106284, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590523, 'last_updated_at': datetime.datetime(2025, 4, 16, 22, 34, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 22, 34, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 22, 34, 57)}, 'plastique': {'main_port_id': 22106276, 'sub_port_id': 22106285, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590524, 'last_updated_at': datetime.datetime(2025, 4, 16, 22, 34, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 22, 34, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 22, 34, 57)}, 'flou': {'main_port_id': 22106276, 'sub_port_id': 22106286, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590525, 'last_updated_at': datetime.datetime(2025, 4, 16, 22, 34, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 22, 34, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 22, 34, 57)}, 'kraft': {'main_port_id': 22106276, 'sub_port_id': 22106287, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590526, 'last_updated_at': datetime.datetime(2025, 4, 16, 22, 34, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 22, 34, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 22, 34, 57)}, 'Carton_brun': {'main_port_id': 22106276, 'sub_port_id': 22106288, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590527, 'last_updated_at': datetime.datetime(2025, 4, 16, 22, 34, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 22, 34, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 22, 34, 57)}, 'environnement': {'main_port_id': 22106276, 'sub_port_id': 22106289, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590528, 'last_updated_at': datetime.datetime(2025, 4, 16, 22, 34, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 22, 34, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 22, 34, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22106278 , 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=22106276 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 (22106278) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22106276) result : ((1350514049,), (1350514050,), (1350514052,), (1350514289,), (1350514316,), (1350514318,), (1350514369,), (1350514392,), (1350514454,), (1350514771,), (1350514797,), (1350514810,), (1350514823,), (1350514847,), (1350515304,), (1350515352,)) 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 22106279 , 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=22106276 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 (22106279) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22106276) result : ((1350514049,), (1350514050,), (1350514052,), (1350514289,), (1350514316,), (1350514318,), (1350514369,), (1350514392,), (1350514454,), (1350514771,), (1350514797,), (1350514810,), (1350514823,), (1350514847,), (1350515304,), (1350515352,)) 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 22106280 , 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=22106276 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 (22106280) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22106276) result : ((1350514049,), (1350514050,), (1350514052,), (1350514289,), (1350514316,), (1350514318,), (1350514369,), (1350514392,), (1350514454,), (1350514771,), (1350514797,), (1350514810,), (1350514823,), (1350514847,), (1350515304,), (1350515352,)) 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 22106281 , 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=22106276 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 (22106281) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22106276) result : ((1350514049,), (1350514050,), (1350514052,), (1350514289,), (1350514316,), (1350514318,), (1350514369,), (1350514392,), (1350514454,), (1350514771,), (1350514797,), (1350514810,), (1350514823,), (1350514847,), (1350515304,), (1350515352,)) 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 22106282 , 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=22106276 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 (22106282) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22106276) result : ((1350514049,), (1350514050,), (1350514052,), (1350514289,), (1350514316,), (1350514318,), (1350514369,), (1350514392,), (1350514454,), (1350514771,), (1350514797,), (1350514810,), (1350514823,), (1350514847,), (1350515304,), (1350515352,)) 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 22106283 , 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=22106276 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 (22106283) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22106276) result : ((1350514049,), (1350514050,), (1350514052,), (1350514289,), (1350514316,), (1350514318,), (1350514369,), (1350514392,), (1350514454,), (1350514771,), (1350514797,), (1350514810,), (1350514823,), (1350514847,), (1350515304,), (1350515352,)) 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 22106284 , 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=22106276 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 (22106284) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22106276) result : ((1350514049,), (1350514050,), (1350514052,), (1350514289,), (1350514316,), (1350514318,), (1350514369,), (1350514392,), (1350514454,), (1350514771,), (1350514797,), (1350514810,), (1350514823,), (1350514847,), (1350515304,), (1350515352,)) 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 22106285 , 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=22106276 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 (22106285) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22106276) result : ((1350514049,), (1350514050,), (1350514052,), (1350514289,), (1350514316,), (1350514318,), (1350514369,), (1350514392,), (1350514454,), (1350514771,), (1350514797,), (1350514810,), (1350514823,), (1350514847,), (1350515304,), (1350515352,)) 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 22106286 , 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=22106276 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 (22106286) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22106276) result : ((1350514049,), (1350514050,), (1350514052,), (1350514289,), (1350514316,), (1350514318,), (1350514369,), (1350514392,), (1350514454,), (1350514771,), (1350514797,), (1350514810,), (1350514823,), (1350514847,), (1350515304,), (1350515352,)) 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 22106287 , 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=22106276 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='kraft' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22106287) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22106276) result : ((1350514049,), (1350514050,), (1350514052,), (1350514289,), (1350514316,), (1350514318,), (1350514369,), (1350514392,), (1350514454,), (1350514771,), (1350514797,), (1350514810,), (1350514823,), (1350514847,), (1350515304,), (1350515352,)) 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 22106288 , 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=22106276 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 (22106288) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22106276) result : ((1350514049,), (1350514050,), (1350514052,), (1350514289,), (1350514316,), (1350514318,), (1350514369,), (1350514392,), (1350514454,), (1350514771,), (1350514797,), (1350514810,), (1350514823,), (1350514847,), (1350515304,), (1350515352,)) 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 22106289 , 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=22106276 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 (22106289) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22106276) result : ((1350514049,), (1350514050,), (1350514052,), (1350514289,), (1350514316,), (1350514318,), (1350514369,), (1350514392,), (1350514454,), (1350514771,), (1350514797,), (1350514810,), (1350514823,), (1350514847,), (1350515304,), (1350515352,)) 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`=22106276 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_gris','autre_refus','metal','cartonnette','mal_croppe','Teint_Dans_La_Masse','plastique','flou','kraft','Carton_brun','environnement')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22106276 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_gris','autre_refus','metal','cartonnette','mal_croppe','Teint_Dans_La_Masse','plastique','flou','kraft','Carton_brun','environnement')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__16042025_22_30_04_10150_4417_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__16042025_22_30_04_10150_4417_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__16042025_22_30_04_10150_4417_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__16042025_22_30_04_10150_4417_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__16042025_22_30_04_10150_4417_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__16042025_22_30_04_10150_4417_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__16042025_22_30_04_10150_4417_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__16042025_22_30_04_10150_4417_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__16042025_22_30_04_10150_4417_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__16042025_22_30_04_10150_4417_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__16042025_22_30_04_10150_4417_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__16042025_22_30_04_10150_4417_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[22106276, 22106290, 4417, 0.5, 492668766, 979], [22106276, 22106291, 4417, 0.5, 2107753020, 979], [22106276, 22106292, 4417, 0.5, 2107752406, 979], [22106276, 22106293, 4417, 0.5, 492628673, 979], [22106276, 22106294, 4417, 0.5, 702398920, 979], [22106276, 22106295, 4417, 0.5, 2107755527, 979], [22106276, 22106296, 4417, 0.5, 2107752385, 979], [22106276, 22106297, 4417, 0.5, 492725882, 979], [22106276, 22106298, 4417, 0.5, 492777938, 979], [22106276, 22106299, 4417, 0.5, 493202403, 979], [22106276, 22106300, 4417, 0.5, 2107753024, 979], [22106276, 22106301, 4417, 0.5, 493012381, 979]] 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`=22106276 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_gris','autre_refus','metal','cartonnette','mal_croppe','Teint_Dans_La_Masse','plastique','flou','kraft','Carton_brun','environnement')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22106276 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','Carton_gris','autre_refus','metal','cartonnette','mal_croppe','Teint_Dans_La_Masse','plastique','flou','kraft','Carton_brun','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 22106276, 'sub_port_id': 22106290, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590529, 'last_updated_at': datetime.datetime(2025, 4, 16, 22, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 22, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 22, 34, 59)}, 'Carton_gris': {'main_port_id': 22106276, 'sub_port_id': 22106291, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590530, 'last_updated_at': datetime.datetime(2025, 4, 16, 22, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 22, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 22, 34, 59)}, 'autre_refus': {'main_port_id': 22106276, 'sub_port_id': 22106292, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590531, 'last_updated_at': datetime.datetime(2025, 4, 16, 22, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 22, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 22, 34, 59)}, 'metal': {'main_port_id': 22106276, 'sub_port_id': 22106293, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590532, 'last_updated_at': datetime.datetime(2025, 4, 16, 22, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 22, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 22, 34, 59)}, 'cartonnette': {'main_port_id': 22106276, 'sub_port_id': 22106294, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590533, 'last_updated_at': datetime.datetime(2025, 4, 16, 22, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 22, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 22, 34, 59)}, 'mal_croppe': {'main_port_id': 22106276, 'sub_port_id': 22106295, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590534, 'last_updated_at': datetime.datetime(2025, 4, 16, 22, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 22, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 22, 34, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22106276, 'sub_port_id': 22106296, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590535, 'last_updated_at': datetime.datetime(2025, 4, 16, 22, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 22, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 22, 34, 59)}, 'plastique': {'main_port_id': 22106276, 'sub_port_id': 22106297, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590536, 'last_updated_at': datetime.datetime(2025, 4, 16, 22, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 22, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 22, 34, 59)}, 'flou': {'main_port_id': 22106276, 'sub_port_id': 22106298, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590537, 'last_updated_at': datetime.datetime(2025, 4, 16, 22, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 22, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 22, 34, 59)}, 'kraft': {'main_port_id': 22106276, 'sub_port_id': 22106299, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590538, 'last_updated_at': datetime.datetime(2025, 4, 16, 22, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 22, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 22, 34, 59)}, 'Carton_brun': {'main_port_id': 22106276, 'sub_port_id': 22106300, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590539, 'last_updated_at': datetime.datetime(2025, 4, 16, 22, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 22, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 22, 34, 59)}, 'environnement': {'main_port_id': 22106276, 'sub_port_id': 22106301, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14590540, 'last_updated_at': datetime.datetime(2025, 4, 16, 22, 34, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 22, 34, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 22, 34, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22106290,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22106278 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22106291,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22106279 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22106292,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22106280 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22106293,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22106281 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22106294,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22106282 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22106295,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22106283 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22106296,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22106284 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22106297,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22106285 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22106298,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22106286 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22106299,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22106287 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22106300,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22106288 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22106301,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22106289 lien utilise dans velours : https://www.fotonower.com/velours/22106290,22106291,22106292,22106293,22106294,22106295,22106296,22106297,22106298,22106299,22106300,22106301?tags=papier,Carton_gris,autre_refus,metal,cartonnette,mal_croppe,Teint_Dans_La_Masse,plastique,flou,kraft,Carton_brun,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22106276]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350515352, 1350515304, 1350514847, 1350514823, 1350514810, 1350514797, 1350514771, 1350514454, 1350514392, 1350514369, 1350514318, 1350514316, 1350514289, 1350514052, 1350514050, 1350514049] map_info['map_portfolio_photo'] : {22106276: [1350515352, 1350515304, 1350514847, 1350514823, 1350514810, 1350514797, 1350514771, 1350514454, 1350514392, 1350514369, 1350514318, 1350514316, 1350514289, 1350514052, 1350514050, 1350514049]} final : False mtd_id 4302 list_pids : [1350515352, 1350515304, 1350514847, 1350514823, 1350514810, 1350514797, 1350514771, 1350514454, 1350514392, 1350514369, 1350514318, 1350514316, 1350514289, 1350514052, 1350514050, 1350514049] Looping around the photos to save general results len do output : 1 /22106276. 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, '2728097') ('4302', '22106276', '1350515352', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350515304', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514847', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514823', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514810', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514797', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514771', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514454', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514392', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514369', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514318', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514316', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514289', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514052', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514050', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514049', None, None, None, None, None, '2728097') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '22106276', "{'papier': 22106278, 'Carton_gris': 22106279, 'autre_refus': 22106280, 'metal': 22106281, 'cartonnette': 22106282, 'mal_croppe': 22106283, 'Teint_Dans_La_Masse': 22106284, 'plastique': 22106285, 'flou': 22106286, 'kraft': 22106287, 'Carton_brun': 22106288, 'environnement': 22106289}", None, None, None, None, '2728097'), ('4302', '22106276', '1350515352', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350515304', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514847', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514823', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514810', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514797', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514771', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514454', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514392', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514369', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514318', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514316', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514289', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514052', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514050', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514049', None, None, None, None, None, '2728097')] time used for this insertion : 0.01909184455871582 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.1020500659942627 time spend to save output : 0.019701719284057617 total time spend for step 1 : 2.1217517852783203 step2:final Wed Apr 16 22:34:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22106276) 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 22106276 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350514052,1350514050,1350514049,1350514454,1350514392,1350514369,1350514318,1350514316,1350514289,1350514847,1350514823,1350514810,1350514797,1350514771,1350515352,1350515304); 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([22106276]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ('0.0',), 1350514392: ('0.0',), 1350514369: ('0.0',), 1350514318: ('0.0',), 1350514316: ('0.0',), 1350514289: ('0.0',), 1350514052: ('0.0',), 1350514050: ('0.0',), 1350514049: ('0.0',)} new output for save of step final : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ('0.0',), 1350514392: ('0.0',), 1350514369: ('0.0',), 1350514318: ('0.0',), 1350514316: ('0.0',), 1350514289: ('0.0',), 1350514052: ('0.0',), 1350514050: ('0.0',), 1350514049: ('0.0',)} [1350515352, 1350515304, 1350514847, 1350514823, 1350514810, 1350514797, 1350514771, 1350514454, 1350514392, 1350514369, 1350514318, 1350514316, 1350514289, 1350514052, 1350514050, 1350514049] map_info['map_portfolio_photo'] : {22106276: [1350515352, 1350515304, 1350514847, 1350514823, 1350514810, 1350514797, 1350514771, 1350514454, 1350514392, 1350514369, 1350514318, 1350514316, 1350514289, 1350514052, 1350514050, 1350514049]} final : False mtd_id 4302 list_pids : [1350515352, 1350515304, 1350514847, 1350514823, 1350514810, 1350514797, 1350514771, 1350514454, 1350514392, 1350514369, 1350514318, 1350514316, 1350514289, 1350514052, 1350514050, 1350514049] Looping around the photos to save general results len do output : 16 /1350515352.Didn't retrieve data . /1350515304.Didn't retrieve data . /1350514847.Didn't retrieve data . /1350514823.Didn't retrieve data . /1350514810.Didn't retrieve data . /1350514797.Didn't retrieve data . /1350514771.Didn't retrieve data . /1350514454.Didn't retrieve data . /1350514392.Didn't retrieve data . /1350514369.Didn't retrieve data . /1350514318.Didn't retrieve data . /1350514316.Didn't retrieve data . /1350514289.Didn't retrieve data . /1350514052.Didn't retrieve data . /1350514050.Didn't retrieve data . /1350514049.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, '2728097') ('4302', '22106276', '1350515352', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350515304', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514847', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514823', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514810', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514797', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514771', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514454', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514392', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514369', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514318', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514316', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514289', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514052', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514050', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514049', None, None, None, None, None, '2728097') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 48 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', '22106276', '1350515352', '0.0', None, None, None, None, '2728097'), ('4302', '22106276', '1350515304', '0.0', None, None, None, None, '2728097'), ('4302', '22106276', '1350514847', '0.0', None, None, None, None, '2728097'), ('4302', '22106276', '1350514823', '0.0', None, None, None, None, '2728097'), ('4302', '22106276', '1350514810', '0.0', None, None, None, None, '2728097'), ('4302', '22106276', '1350514797', '0.0', None, None, None, None, '2728097'), ('4302', '22106276', '1350514771', '0.0', None, None, None, None, '2728097'), ('4302', '22106276', '1350514454', '0.0', None, None, None, None, '2728097'), ('4302', '22106276', '1350514392', '0.0', None, None, None, None, '2728097'), ('4302', '22106276', '1350514369', '0.0', None, None, None, None, '2728097'), ('4302', '22106276', '1350514318', '0.0', None, None, None, None, '2728097'), ('4302', '22106276', '1350514316', '0.0', None, None, None, None, '2728097'), ('4302', '22106276', '1350514289', '0.0', None, None, None, None, '2728097'), ('4302', '22106276', '1350514052', '0.0', None, None, None, None, '2728097'), ('4302', '22106276', '1350514050', '0.0', None, None, None, None, '2728097'), ('4302', '22106276', '1350514049', '0.0', None, None, None, None, '2728097')] time used for this insertion : 0.017542362213134766 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.03394675254821777 time spend to save output : 0.018029212951660156 total time spend for step 2 : 0.05197596549987793 step3:velours_tree Wed Apr 16 22:34:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22106276: [{'papier': 22106278, 'Carton_gris': 22106279, 'autre_refus': 22106280, 'metal': 22106281, 'cartonnette': 22106282, 'mal_croppe': 22106283, 'Teint_Dans_La_Masse': 22106284, 'plastique': 22106285, 'flou': 22106286, 'kraft': 22106287, 'Carton_brun': 22106288, 'environnement': 22106289}]} input_args_next_step : {22106276: ()} output_args : {22106276: [{'papier': 22106278, 'Carton_gris': 22106279, 'autre_refus': 22106280, 'metal': 22106281, 'cartonnette': 22106282, 'mal_croppe': 22106283, 'Teint_Dans_La_Masse': 22106284, 'plastique': 22106285, 'flou': 22106286, 'kraft': 22106287, 'Carton_brun': 22106288, 'environnement': 22106289}]} args : 22106276 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'papier': 22106278, 'Carton_gris': 22106279, 'autre_refus': 22106280, 'metal': 22106281, 'cartonnette': 22106282, 'mal_croppe': 22106283, 'Teint_Dans_La_Masse': 22106284, 'plastique': 22106285, 'flou': 22106286, 'kraft': 22106287, 'Carton_brun': 22106288, 'environnement': 22106289},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22106276) 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([22106276]) 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.3397655487060547 time spend to save output : 6.031990051269531e-05 total time spend for step 3 : 0.3398258686065674 step4:send_mail_cod Wed Apr 16 22:34:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ('0.0',), 1350514392: ('0.0',), 1350514369: ('0.0',), 1350514318: ('0.0',), 1350514316: ('0.0',), 1350514289: ('0.0',), 1350514052: ('0.0',), 1350514050: ('0.0',), 1350514049: ('0.0',)} input_args_next_step : {1350515352: ()} output_args : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ('0.0',), 1350514392: ('0.0',), 1350514369: ('0.0',), 1350514318: ('0.0',), 1350514316: ('0.0',), 1350514289: ('0.0',), 1350514052: ('0.0',), 1350514050: ('0.0',), 1350514049: ('0.0',)} args : 1350515352 depend.output_id : 0 input_args_next_step : {1350515352: ('0.0',), 1350515304: ()} output_args : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ('0.0',), 1350514392: ('0.0',), 1350514369: ('0.0',), 1350514318: ('0.0',), 1350514316: ('0.0',), 1350514289: ('0.0',), 1350514052: ('0.0',), 1350514050: ('0.0',), 1350514049: ('0.0',)} args : 1350515304 depend.output_id : 0 input_args_next_step : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ()} output_args : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ('0.0',), 1350514392: ('0.0',), 1350514369: ('0.0',), 1350514318: ('0.0',), 1350514316: ('0.0',), 1350514289: ('0.0',), 1350514052: ('0.0',), 1350514050: ('0.0',), 1350514049: ('0.0',)} args : 1350514847 depend.output_id : 0 input_args_next_step : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ()} output_args : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ('0.0',), 1350514392: ('0.0',), 1350514369: ('0.0',), 1350514318: ('0.0',), 1350514316: ('0.0',), 1350514289: ('0.0',), 1350514052: ('0.0',), 1350514050: ('0.0',), 1350514049: ('0.0',)} args : 1350514823 depend.output_id : 0 input_args_next_step : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ()} output_args : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ('0.0',), 1350514392: ('0.0',), 1350514369: ('0.0',), 1350514318: ('0.0',), 1350514316: ('0.0',), 1350514289: ('0.0',), 1350514052: ('0.0',), 1350514050: ('0.0',), 1350514049: ('0.0',)} args : 1350514810 depend.output_id : 0 input_args_next_step : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ()} output_args : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ('0.0',), 1350514392: ('0.0',), 1350514369: ('0.0',), 1350514318: ('0.0',), 1350514316: ('0.0',), 1350514289: ('0.0',), 1350514052: ('0.0',), 1350514050: ('0.0',), 1350514049: ('0.0',)} args : 1350514797 depend.output_id : 0 input_args_next_step : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ()} output_args : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ('0.0',), 1350514392: ('0.0',), 1350514369: ('0.0',), 1350514318: ('0.0',), 1350514316: ('0.0',), 1350514289: ('0.0',), 1350514052: ('0.0',), 1350514050: ('0.0',), 1350514049: ('0.0',)} args : 1350514771 depend.output_id : 0 input_args_next_step : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ()} output_args : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ('0.0',), 1350514392: ('0.0',), 1350514369: ('0.0',), 1350514318: ('0.0',), 1350514316: ('0.0',), 1350514289: ('0.0',), 1350514052: ('0.0',), 1350514050: ('0.0',), 1350514049: ('0.0',)} args : 1350514454 depend.output_id : 0 input_args_next_step : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ('0.0',), 1350514392: ()} output_args : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ('0.0',), 1350514392: ('0.0',), 1350514369: ('0.0',), 1350514318: ('0.0',), 1350514316: ('0.0',), 1350514289: ('0.0',), 1350514052: ('0.0',), 1350514050: ('0.0',), 1350514049: ('0.0',)} args : 1350514392 depend.output_id : 0 input_args_next_step : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ('0.0',), 1350514392: ('0.0',), 1350514369: ()} output_args : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ('0.0',), 1350514392: ('0.0',), 1350514369: ('0.0',), 1350514318: ('0.0',), 1350514316: ('0.0',), 1350514289: ('0.0',), 1350514052: ('0.0',), 1350514050: ('0.0',), 1350514049: ('0.0',)} args : 1350514369 depend.output_id : 0 input_args_next_step : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ('0.0',), 1350514392: ('0.0',), 1350514369: ('0.0',), 1350514318: ()} output_args : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ('0.0',), 1350514392: ('0.0',), 1350514369: ('0.0',), 1350514318: ('0.0',), 1350514316: ('0.0',), 1350514289: ('0.0',), 1350514052: ('0.0',), 1350514050: ('0.0',), 1350514049: ('0.0',)} args : 1350514318 depend.output_id : 0 input_args_next_step : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ('0.0',), 1350514392: ('0.0',), 1350514369: ('0.0',), 1350514318: ('0.0',), 1350514316: ()} output_args : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ('0.0',), 1350514392: ('0.0',), 1350514369: ('0.0',), 1350514318: ('0.0',), 1350514316: ('0.0',), 1350514289: ('0.0',), 1350514052: ('0.0',), 1350514050: ('0.0',), 1350514049: ('0.0',)} args : 1350514316 depend.output_id : 0 input_args_next_step : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ('0.0',), 1350514392: ('0.0',), 1350514369: ('0.0',), 1350514318: ('0.0',), 1350514316: ('0.0',), 1350514289: ()} output_args : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ('0.0',), 1350514392: ('0.0',), 1350514369: ('0.0',), 1350514318: ('0.0',), 1350514316: ('0.0',), 1350514289: ('0.0',), 1350514052: ('0.0',), 1350514050: ('0.0',), 1350514049: ('0.0',)} args : 1350514289 depend.output_id : 0 input_args_next_step : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ('0.0',), 1350514392: ('0.0',), 1350514369: ('0.0',), 1350514318: ('0.0',), 1350514316: ('0.0',), 1350514289: ('0.0',), 1350514052: ()} output_args : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ('0.0',), 1350514392: ('0.0',), 1350514369: ('0.0',), 1350514318: ('0.0',), 1350514316: ('0.0',), 1350514289: ('0.0',), 1350514052: ('0.0',), 1350514050: ('0.0',), 1350514049: ('0.0',)} args : 1350514052 depend.output_id : 0 input_args_next_step : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ('0.0',), 1350514392: ('0.0',), 1350514369: ('0.0',), 1350514318: ('0.0',), 1350514316: ('0.0',), 1350514289: ('0.0',), 1350514052: ('0.0',), 1350514050: ()} output_args : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ('0.0',), 1350514392: ('0.0',), 1350514369: ('0.0',), 1350514318: ('0.0',), 1350514316: ('0.0',), 1350514289: ('0.0',), 1350514052: ('0.0',), 1350514050: ('0.0',), 1350514049: ('0.0',)} args : 1350514050 depend.output_id : 0 input_args_next_step : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ('0.0',), 1350514392: ('0.0',), 1350514369: ('0.0',), 1350514318: ('0.0',), 1350514316: ('0.0',), 1350514289: ('0.0',), 1350514052: ('0.0',), 1350514050: ('0.0',), 1350514049: ()} output_args : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ('0.0',), 1350514392: ('0.0',), 1350514369: ('0.0',), 1350514318: ('0.0',), 1350514316: ('0.0',), 1350514289: ('0.0',), 1350514052: ('0.0',), 1350514050: ('0.0',), 1350514049: ('0.0',)} args : 1350514049 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 : {22106276: [{'papier': 22106278, 'Carton_gris': 22106279, 'autre_refus': 22106280, 'metal': 22106281, 'cartonnette': 22106282, 'mal_croppe': 22106283, 'Teint_Dans_La_Masse': 22106284, 'plastique': 22106285, 'flou': 22106286, 'kraft': 22106287, 'Carton_brun': 22106288, 'environnement': 22106289}]} input_args_next_step : {1350515352: ('0.0',), 1350515304: ('0.0',), 1350514847: ('0.0',), 1350514823: ('0.0',), 1350514810: ('0.0',), 1350514797: ('0.0',), 1350514771: ('0.0',), 1350514454: ('0.0',), 1350514392: ('0.0',), 1350514369: ('0.0',), 1350514318: ('0.0',), 1350514316: ('0.0',), 1350514289: ('0.0',), 1350514052: ('0.0',), 1350514050: ('0.0',), 1350514049: ('0.0',), 22106276: ()} output_args : {22106276: [{'papier': 22106278, 'Carton_gris': 22106279, 'autre_refus': 22106280, 'metal': 22106281, 'cartonnette': 22106282, 'mal_croppe': 22106283, 'Teint_Dans_La_Masse': 22106284, 'plastique': 22106285, 'flou': 22106286, 'kraft': 22106287, 'Carton_brun': 22106288, 'environnement': 22106289}]} args : 22106276 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 :17, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22106276) 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 (1350515352,1350515304,1350514847,1350514823,1350514810,1350514797,1350514771,1350514454,1350514392,1350514369,1350514318,1350514316,1350514289,1350514052,1350514050,1350514049) Found this number of photos: 16 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350514049 begin to download photo : 1350514316 begin to download photo : 1350514823 begin to download photo : 1350514454 download finish for photo 1350514049 begin to download photo : 1350514050 download finish for photo 1350514316 begin to download photo : 1350514318 download finish for photo 1350514823 begin to download photo : 1350514847 download finish for photo 1350514454 begin to download photo : 1350514771 download finish for photo 1350514050 begin to download photo : 1350514052 download finish for photo 1350514771 begin to download photo : 1350514797 download finish for photo 1350514318 begin to download photo : 1350514369 download finish for photo 1350514847 begin to download photo : 1350515304 download finish for photo 1350514052 begin to download photo : 1350514289 download finish for photo 1350514797 begin to download photo : 1350514810 download finish for photo 1350514369 begin to download photo : 1350514392 download finish for photo 1350515304 begin to download photo : 1350515352 download finish for photo 1350514289 download finish for photo 1350514810 download finish for photo 1350514392 download finish for photo 1350515352 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette221062801744835700/ imagette221062811744835700/ imagette221062821744835700/ imagette221062831744835700/ imagette221062851744835700/ imagette221062861744835700/ imagette221062871744835700/ imagette221062791744835700/ imagette221062841744835700/ imagette221062881744835700/ length of list_filenames : 16 ; length of list_pids : 16 ; length of list_args : 16 results_Auto_P22106276_16-04-2025_22_35_00.pdf 22106280 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=22106280 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221062801744835700 22106281 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=22106281 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221062811744835700 22106282 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=22106282 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221062821744835700 22106283 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=22106283 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221062831744835700 22106285 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=22106285 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221062851744835700 22106286 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=22106286 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221062861744835700 22106287 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=22106287 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221062871744835700 22106279 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=22106279 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221062791744835700 22106284 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=22106284 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221062841744835700 22106288 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=22106288 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221062881744835700 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22106276 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22106290,22106291,22106292,22106293,22106294,22106295,22106296,22106297,22106298,22106299,22106300,22106301?tags=papier,Carton_gris,autre_refus,metal,cartonnette,mal_croppe,Teint_Dans_La_Masse,plastique,flou,kraft,Carton_brun,environnement your option no_mail is active, we will not send the real mail to your client args[1350515352] : ('0.0',) no score found for photo 1350515352 We are sending mail with results at report@fotonower.com args[1350515304] : ('0.0',) no score found for photo 1350515304 We are sending mail with results at report@fotonower.com args[1350514847] : ('0.0',) no score found for photo 1350514847 We are sending mail with results at report@fotonower.com args[1350514823] : ('0.0',) no score found for photo 1350514823 We are sending mail with results at report@fotonower.com args[1350514810] : ('0.0',) no score found for photo 1350514810 We are sending mail with results at report@fotonower.com args[1350514797] : ('0.0',) no score found for photo 1350514797 We are sending mail with results at report@fotonower.com args[1350514771] : ('0.0',) no score found for photo 1350514771 We are sending mail with results at report@fotonower.com args[1350514454] : ('0.0',) no score found for photo 1350514454 We are sending mail with results at report@fotonower.com args[1350514392] : ('0.0',) no score found for photo 1350514392 We are sending mail with results at report@fotonower.com args[1350514369] : ('0.0',) no score found for photo 1350514369 We are sending mail with results at report@fotonower.com args[1350514318] : ('0.0',) no score found for photo 1350514318 We are sending mail with results at report@fotonower.com args[1350514316] : ('0.0',) no score found for photo 1350514316 We are sending mail with results at report@fotonower.com args[1350514289] : ('0.0',) no score found for photo 1350514289 We are sending mail with results at report@fotonower.com args[1350514052] : ('0.0',) no score found for photo 1350514052 We are sending mail with results at report@fotonower.com args[1350514050] : ('0.0',) no score found for photo 1350514050 We are sending mail with results at report@fotonower.com args[1350514049] : ('0.0',) no score found for photo 1350514049 We are sending mail with results at report@fotonower.com refus_total : 0.0 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=22106276 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_P22106276_16-04-2025_22_35_00.pdf results_Auto_P22106276_16-04-2025_22_35_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22106276_16-04-2025_22_35_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22106276','results_Auto_P22106276_16-04-2025_22_35_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22106276_16-04-2025_22_35_00.pdf','pdf','','0.14','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22106276]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350515352, 1350515304, 1350514847, 1350514823, 1350514810, 1350514797, 1350514771, 1350514454, 1350514392, 1350514369, 1350514318, 1350514316, 1350514289, 1350514052, 1350514050, 1350514049] map_info['map_portfolio_photo'] : {22106276: [1350515352, 1350515304, 1350514847, 1350514823, 1350514810, 1350514797, 1350514771, 1350514454, 1350514392, 1350514369, 1350514318, 1350514316, 1350514289, 1350514052, 1350514050, 1350514049]} final : False mtd_id 4302 list_pids : [1350515352, 1350515304, 1350514847, 1350514823, 1350514810, 1350514797, 1350514771, 1350514454, 1350514392, 1350514369, 1350514318, 1350514316, 1350514289, 1350514052, 1350514050, 1350514049] 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, '2728097') ('4302', '22106276', '1350515352', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350515304', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514847', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514823', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514810', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514797', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514771', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514454', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514392', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514369', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514318', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514316', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514289', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514052', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514050', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514049', None, None, None, None, None, '2728097') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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', '22106276', '1350515352', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350515304', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514847', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514823', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514810', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514797', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514771', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514454', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514392', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514369', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514318', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514316', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514289', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514052', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514050', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514049', None, None, None, None, None, '2728097')] time used for this insertion : 0.015073776245117188 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.705965280532837 time spend to save output : 0.015372276306152344 total time spend for step 4 : 1.7213375568389893 step5:split_time_score Wed Apr 16 22:35:01 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 : ['22106276'] 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 : [('22106276',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22106276) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350514049: {'path': 'temp/1744835699_4079683_1350514049_af042314e2ab74db06e7a5b38c6e8575.jpg', 'extension': 'jpg'}, 1350514050: {'path': 'temp/1744835699_4079683_1350514050_569b138ed1301fde92d9a276e576329b.jpg', 'extension': 'jpg'}, 1350514052: {'path': 'temp/1744835699_4079683_1350514052_3a705a29019d221ea29ee4ddbfb5ba97.jpg', 'extension': 'jpg'}, 1350514289: {'path': 'temp/1744835699_4079683_1350514289_147180c95789809d1aa3ec54595406d5.jpg', 'extension': 'jpg'}, 1350514454: {'path': 'temp/1744835699_4079683_1350514454_4f205c8a0e7d21a7d3956b97d8b4228b.jpg', 'extension': 'jpg'}, 1350514771: {'path': 'temp/1744835699_4079683_1350514771_a9df6872260de52e74b04af66c70165f.jpg', 'extension': 'jpg'}, 1350514797: {'path': 'temp/1744835699_4079683_1350514797_f0b21d6cff008010738a66a44bf9b99a.jpg', 'extension': 'jpg'}, 1350514810: {'path': 'temp/1744835699_4079683_1350514810_4b9f67da9ae52721b9852610179c559a.jpg', 'extension': 'jpg'}, 1350514316: {'path': 'temp/1744835699_4079683_1350514316_3147e5a83d4c374f34bc0859de0d8d2b.jpg', 'extension': 'jpg'}, 1350514318: {'path': 'temp/1744835699_4079683_1350514318_7034e7c7c4592a100fe5781f73b09532.jpg', 'extension': 'jpg'}, 1350514369: {'path': 'temp/1744835699_4079683_1350514369_4725eac005929b5a674fa201fb5089e6.jpg', 'extension': 'jpg'}, 1350514392: {'path': 'temp/1744835699_4079683_1350514392_9c24d0a73670d04e224ae861f1262d16.jpg', 'extension': 'jpg'}, 1350514823: {'path': 'temp/1744835699_4079683_1350514823_3ed93a1d419002f7ac4a6b65726022f1.jpg', 'extension': 'jpg'}, 1350514847: {'path': 'temp/1744835699_4079683_1350514847_eaef84980e206f59fe1a8c90ea0c37f1.jpg', 'extension': 'jpg'}, 1350515304: {'path': 'temp/1744835699_4079683_1350515304_5af2393e955adf641cf498ecb3b24b7f.jpg', 'extension': 'jpg'}, 1350515352: {'path': 'temp/1744835699_4079683_1350515352_1c8050997abf8f504e1bd1e1a6e91601.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 = 22106276; (('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 = 22106276 group by h (('22', 16),) 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=22106276 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 (22106276) 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 (22106276) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 16042025 22106276 Nombre de photos uploadées : 16 / 23040 (0%) 16042025 22106276 Nombre de photos taguées (types de déchets): 0 / 16 (0%) 16042025 22106276 Nombre de photos taguées (volume) : 0 / 16 (0%) [{'photo_id': 1350514052, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/3a705a29019d221ea29ee4ddbfb5ba97.jpg', 'username': None, 'uploaded_at': 1744835467, 'text': 'image_16042025_22_30_04_010149m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350514050, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/569b138ed1301fde92d9a276e576329b.jpg', 'username': None, 'uploaded_at': 1744835467, 'text': 'image_16042025_22_30_34_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350514049, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/af042314e2ab74db06e7a5b38c6e8575.jpg', 'username': None, 'uploaded_at': 1744835467, 'text': 'image_16042025_22_30_44_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350514454, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/4f205c8a0e7d21a7d3956b97d8b4228b.jpg', 'username': None, 'uploaded_at': 1744835527, 'text': 'image_16042025_22_30_54_10135.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ???????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0008704662322998047 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22106276, '2025-04-16' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1717339,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.029840707778930664 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= 1717339 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1717339, 'dashboard_run_id': 1728416, 'mtr_portfolio_id': 22104103, 'dashboard_result_id': 9907815, '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_P22104103_16-04-2025_22_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22104109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22104110, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22104111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22104112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22104113, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22104114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22104115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22104116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22104117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22104118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22104119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22104120, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1728416, 'mtr_portfolio_id': 22104991, 'dashboard_result_id': 9907816, '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_P22104991_16-04-2025_22_21_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22104992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22104993, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22104994, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22104995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22104996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22104997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22104998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22104999, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22105000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22105001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22105002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22105003, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1728416, 'mtr_portfolio_id': 22105718, 'dashboard_result_id': 9907817, '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_P22105718_16-04-2025_22_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22105743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22105744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22105745, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22105746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22105747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22105748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22105749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22105750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22105751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22105752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22105753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22105754, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1728416, 'mtr_portfolio_id': 22106276, 'dashboard_result_id': 9907818, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}] 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 = 22104103 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': 2727976, 'mtr_portfolio_id': 22104103, 'created_at': datetime.datetime(2025, 4, 16, 22, 2, 59), 'result': '0.04317885565795219', 'result_long': None, 'result_double': None}] Qualite : 0.04317885565795219 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22104103 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22104103_16-04-2025_22_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22104103 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_P22104103_16-04-2025_22_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22104109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22104110, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22104111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22104112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22104113, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22104114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22104115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22104116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22104117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22104118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22104119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22104120, 'pht': 3726}}" where mtr_portfolio_id = 22104103 and dashboard_run_id = 1728416 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`=22104103 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9907815, 0.04317885565795219, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22104103_16-04-2025_22_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22104109, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22104110, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22104111, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22104112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22104113, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22104114, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22104115, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22104116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22104117, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22104118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22104119, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22104120, '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 = 22104991 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': 2728034, 'mtr_portfolio_id': 22104991, 'created_at': datetime.datetime(2025, 4, 16, 22, 20, 59), 'result': '0.03274398576985799', 'result_long': None, 'result_double': None}] Qualite : 0.03274398576985799 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22104991 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22104991_16-04-2025_22_21_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22104991 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_P22104991_16-04-2025_22_21_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22104992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22104993, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22104994, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22104995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22104996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22104997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22104998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22104999, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22105000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22105001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22105002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22105003, 'pht': 3726}}" where mtr_portfolio_id = 22104991 and dashboard_run_id = 1728416 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`=22104991 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9907816, 0.03274398576985799, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22104991_16-04-2025_22_21_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22104992, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22104993, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22104994, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22104995, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22104996, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22104997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22104998, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22104999, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22105000, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22105001, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22105002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22105003, '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 = 22105718 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': 2728056, 'mtr_portfolio_id': 22105718, 'created_at': datetime.datetime(2025, 4, 16, 22, 32, 57), 'result': '0.056745708535982355', 'result_long': None, 'result_double': None}] Qualite : 0.056745708535982355 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22105718 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22105718_16-04-2025_22_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22105718 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_P22105718_16-04-2025_22_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22105743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22105744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22105745, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22105746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22105747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22105748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22105749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22105750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22105751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22105752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22105753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22105754, 'pht': 3726}}" where mtr_portfolio_id = 22105718 and dashboard_run_id = 1728416 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`=22105718 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9907817, 0.056745708535982355, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22105718_16-04-2025_22_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22105743, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22105744, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22105745, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22105746, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22105747, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22105748, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22105749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22105750, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22105751, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22105752, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22105753, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22105754, '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 = 22106276 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 22106276 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 22106276 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22106276 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22106276 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2728097, 'mtr_portfolio_id': 22106276, 'created_at': datetime.datetime(2025, 4, 16, 22, 34, 59), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22106276 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22106276_16-04-2025_22_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22106276 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_P22106276_16-04-2025_22_35_00.pdf'}" where mtr_portfolio_id = 22106276 and dashboard_run_id = 1728416 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`=22106276 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9907818, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22106276_16-04-2025_22_35_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22106278, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22106279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22106280, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22106281, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22106282, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22106283, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22106284, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22106285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22106286, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22106287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22106288, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22106289, '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 (22104103,22104991,22105718,22106276) result : ((1350490969,), (1350491646,), (1350491651,), (1350491656,), (1350491736,), (1350491783,), (1350491836,), (1350491879,), (1350495010,), (1350495399,), (1350496652,), (1350496848,), (1350496938,), (1350497038,), (1350501830,), (1350504960,), (1350505026,), (1350510998,), (1350510330,), (1350510947,), (1350510971,), (1350511972,), (1350512030,), (1350512047,), (1350512059,), (1350512335,), (1350512353,), (1350512371,), (1350512385,), (1350512392,), (1350512395,), (1350512468,), (1350512482,), (1350512493,), (1350512547,), (1350512574,), (1350512907,), (1350512909,), (1350512911,), (1350512913,), (1350512931,), (1350512958,), (1350513101,), (1350513115,), (1350513126,), (1350513133,), (1350513140,), (1350513146,), (1350513451,), (1350513560,), (1350513569,), (1350513583,), (1350513710,), (1350513715,), (1350513719,), (1350513722,), (1350513739,), (1350513742,), (1350513770,), (1350513772,), (1350513774,), (1350513781,), (1350513972,), (1350513976,), (1350513989,), (1350513998,), (1350514000,), (1350514054,), (1350514049,), (1350514050,), (1350514052,), (1350514289,), (1350514316,), (1350514318,), (1350514369,), (1350514392,), (1350514454,), (1350514771,), (1350514797,), (1350514810,), (1350514823,), (1350514847,), (1350515304,), (1350515352,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'16042025': {'nb_upload': 16, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22106276]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350515352, 1350515304, 1350514847, 1350514823, 1350514810, 1350514797, 1350514771, 1350514454, 1350514392, 1350514369, 1350514318, 1350514316, 1350514289, 1350514052, 1350514050, 1350514049] map_info['map_portfolio_photo'] : {22106276: [1350515352, 1350515304, 1350514847, 1350514823, 1350514810, 1350514797, 1350514771, 1350514454, 1350514392, 1350514369, 1350514318, 1350514316, 1350514289, 1350514052, 1350514050, 1350514049]} final : True mtd_id 4302 list_pids : [1350515352, 1350515304, 1350514847, 1350514823, 1350514810, 1350514797, 1350514771, 1350514454, 1350514392, 1350514369, 1350514318, 1350514316, 1350514289, 1350514052, 1350514050, 1350514049] Looping around the photos to save general results len do output : 1 /22106276Didn'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, '2728097') ('4302', '22106276', '1350515352', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350515304', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514847', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514823', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514810', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514797', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514771', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514454', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514392', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514369', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514318', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514316', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514289', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514052', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514050', None, None, None, None, None, '2728097') ('4302', None, None, None, None, None, None, None, '2728097') ('4302', '22106276', '1350514049', None, None, None, None, None, '2728097') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '22106276', 'None', None, None, None, None, '2728097'), ('4302', '22106276', '1350515352', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350515304', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514847', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514823', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514810', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514797', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514771', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514454', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514392', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514369', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514318', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514316', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514289', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514052', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514050', None, None, None, None, None, '2728097'), ('4302', '22106276', '1350514049', None, None, None, None, None, '2728097')] time used for this insertion : 0.017261981964111328 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.364238977432251 time spend to save output : 0.017473936080932617 total time spend for step 5 : 0.3817129135131836 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 (2728097) 2.19user 2.53system 0:07.13elapsed 66%CPU (0avgtext+0avgdata 159128maxresident)k 13888inputs+8896outputs (93major+71408minor)pagefaults 0swaps