returned map {'autre_refus': {'main_port_id': 21806592, 'sub_port_id': 21806593, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14325764, 'last_updated_at': datetime.datetime(2025, 3, 27, 18, 24, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 18, 24, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 18, 24, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 21806592, 'sub_port_id': 21806594, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14325765, 'last_updated_at': datetime.datetime(2025, 3, 27, 18, 24, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 18, 24, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 18, 24, 57)}, 'flou': {'main_port_id': 21806592, 'sub_port_id': 21806595, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14325766, 'last_updated_at': datetime.datetime(2025, 3, 27, 18, 24, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 18, 24, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 18, 24, 57)}, 'metal': {'main_port_id': 21806592, 'sub_port_id': 21806596, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14325767, 'last_updated_at': datetime.datetime(2025, 3, 27, 18, 24, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 18, 24, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 18, 24, 57)}, 'cartonnette': {'main_port_id': 21806592, 'sub_port_id': 21806597, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14325768, 'last_updated_at': datetime.datetime(2025, 3, 27, 18, 24, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 18, 24, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 18, 24, 57)}, 'Carton_gris': {'main_port_id': 21806592, 'sub_port_id': 21806598, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14325769, 'last_updated_at': datetime.datetime(2025, 3, 27, 18, 24, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 18, 24, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 18, 24, 57)}, 'kraft': {'main_port_id': 21806592, 'sub_port_id': 21806599, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14325770, 'last_updated_at': datetime.datetime(2025, 3, 27, 18, 24, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 18, 24, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 18, 24, 57)}, 'environnement': {'main_port_id': 21806592, 'sub_port_id': 21806600, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14325771, 'last_updated_at': datetime.datetime(2025, 3, 27, 18, 24, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 18, 24, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 18, 24, 57)}, 'plastique': {'main_port_id': 21806592, 'sub_port_id': 21806601, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14325772, 'last_updated_at': datetime.datetime(2025, 3, 27, 18, 24, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 18, 24, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 18, 24, 57)}, 'papier': {'main_port_id': 21806592, 'sub_port_id': 21806602, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14325773, 'last_updated_at': datetime.datetime(2025, 3, 27, 18, 24, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 18, 24, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 18, 24, 57)}, 'Carton_brun': {'main_port_id': 21806592, 'sub_port_id': 21806603, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14325774, 'last_updated_at': datetime.datetime(2025, 3, 27, 18, 24, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 18, 24, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 18, 24, 57)}, 'mal_croppe': {'main_port_id': 21806592, 'sub_port_id': 21806604, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14325775, 'last_updated_at': datetime.datetime(2025, 3, 27, 18, 24, 57), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 18, 24, 57), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 18, 24, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21806593 , 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=21806592 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 (21806593) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21806592) result : ((1347957125,), (1347957201,), (1347957309,), (1347957422,), (1347960007,), (1347960019,), (1347960086,), (1347960089,), (1347960093,), (1347960097,), (1347960099,), (1347960108,)) 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 21806594 , 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=21806592 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 (21806594) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21806592) result : ((1347957125,), (1347957201,), (1347957309,), (1347957422,), (1347960007,), (1347960019,), (1347960086,), (1347960089,), (1347960093,), (1347960097,), (1347960099,), (1347960108,)) 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 21806595 , 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=21806592 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 (21806595) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21806592) result : ((1347957125,), (1347957201,), (1347957309,), (1347957422,), (1347960007,), (1347960019,), (1347960086,), (1347960089,), (1347960093,), (1347960097,), (1347960099,), (1347960108,)) 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 21806596 , 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=21806592 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 (21806596) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21806592) result : ((1347957125,), (1347957201,), (1347957309,), (1347957422,), (1347960007,), (1347960019,), (1347960086,), (1347960089,), (1347960093,), (1347960097,), (1347960099,), (1347960108,)) 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 21806597 , 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=21806592 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 (21806597) result : ((1347959743,), (1347959744,), (1347959745,), (1347959747,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21806592) result : ((1347957125,), (1347957201,), (1347957309,), (1347957422,), (1347960007,), (1347960019,), (1347960086,), (1347960089,), (1347960093,), (1347960097,), (1347960099,), (1347960108,)) 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 21806598 , 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=21806592 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 (21806598) result : ((1347959732,), (1347960377,), (1347960378,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21806592) result : ((1347957125,), (1347957201,), (1347957309,), (1347957422,), (1347960007,), (1347960019,), (1347960086,), (1347960089,), (1347960093,), (1347960097,), (1347960099,), (1347960108,)) 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 21806599 , 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=21806592 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 (21806599) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21806592) result : ((1347957125,), (1347957201,), (1347957309,), (1347957422,), (1347960007,), (1347960019,), (1347960086,), (1347960089,), (1347960093,), (1347960097,), (1347960099,), (1347960108,)) 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 21806600 , 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=21806592 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 (21806600) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21806592) result : ((1347957125,), (1347957201,), (1347957309,), (1347957422,), (1347960007,), (1347960019,), (1347960086,), (1347960089,), (1347960093,), (1347960097,), (1347960099,), (1347960108,)) 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 21806601 , 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=21806592 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 (21806601) result : ((1347959750,), (1347959751,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21806592) result : ((1347957125,), (1347957201,), (1347957309,), (1347957422,), (1347960007,), (1347960019,), (1347960086,), (1347960089,), (1347960093,), (1347960097,), (1347960099,), (1347960108,)) 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 21806602 , 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=21806592 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 (21806602) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21806592) result : ((1347957125,), (1347957201,), (1347957309,), (1347957422,), (1347960007,), (1347960019,), (1347960086,), (1347960089,), (1347960093,), (1347960097,), (1347960099,), (1347960108,)) 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 21806603 , 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=21806592 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 (21806603) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21806592) result : ((1347957125,), (1347957201,), (1347957309,), (1347957422,), (1347960007,), (1347960019,), (1347960086,), (1347960089,), (1347960093,), (1347960097,), (1347960099,), (1347960108,)) 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 21806604 , 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=21806592 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 (21806604) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21806592) result : ((1347957125,), (1347957201,), (1347957309,), (1347957422,), (1347960007,), (1347960019,), (1347960086,), (1347960089,), (1347960093,), (1347960097,), (1347960099,), (1347960108,)) 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`=21806592 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Teint_Dans_La_Masse','flou','metal','cartonnette','Carton_gris','kraft','environnement','plastique','papier','Carton_brun','mal_croppe')) 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`=21806592 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Teint_Dans_La_Masse','flou','metal','cartonnette','Carton_gris','kraft','environnement','plastique','papier','Carton_brun','mal_croppe')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__27032025_18_15_13_10142_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__27032025_18_15_13_10142_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__27032025_18_15_13_10142_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__27032025_18_15_13_10142_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__27032025_18_15_13_10142_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__27032025_18_15_13_10142_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__27032025_18_15_13_10142_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__27032025_18_15_13_10142_4417_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__27032025_18_15_13_10142_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__27032025_18_15_13_10142_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__27032025_18_15_13_10142_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__27032025_18_15_13_10142_4417_mal_croppe_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)[[21806592, 21806605, 4417, 0.5, 2107752406, 979], [21806592, 21806606, 4417, 0.5, 2107752385, 979], [21806592, 21806607, 4417, 0.5, 492777938, 979], [21806592, 21806608, 4417, 0.5, 492628673, 979], [21806592, 21806609, 4417, 0.5, 702398920, 979], [21806592, 21806610, 4417, 0.5, 2107753020, 979], [21806592, 21806611, 4417, 0.5, 493202403, 979], [21806592, 21806612, 4417, 0.5, 493012381, 979], [21806592, 21806613, 4417, 0.5, 492725882, 979], [21806592, 21806614, 4417, 0.5, 492668766, 979], [21806592, 21806615, 4417, 0.5, 2107753024, 979], [21806592, 21806616, 4417, 0.5, 2107755527, 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`=21806592 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Teint_Dans_La_Masse','flou','metal','cartonnette','Carton_gris','kraft','environnement','plastique','papier','Carton_brun','mal_croppe')) 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`=21806592 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Teint_Dans_La_Masse','flou','metal','cartonnette','Carton_gris','kraft','environnement','plastique','papier','Carton_brun','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 21806592, 'sub_port_id': 21806605, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14325776, 'last_updated_at': datetime.datetime(2025, 3, 27, 18, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 18, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 18, 24, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 21806592, 'sub_port_id': 21806606, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14325777, 'last_updated_at': datetime.datetime(2025, 3, 27, 18, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 18, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 18, 24, 59)}, 'flou': {'main_port_id': 21806592, 'sub_port_id': 21806607, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14325778, 'last_updated_at': datetime.datetime(2025, 3, 27, 18, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 18, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 18, 24, 59)}, 'metal': {'main_port_id': 21806592, 'sub_port_id': 21806608, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14325779, 'last_updated_at': datetime.datetime(2025, 3, 27, 18, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 18, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 18, 24, 59)}, 'cartonnette': {'main_port_id': 21806592, 'sub_port_id': 21806609, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14325780, 'last_updated_at': datetime.datetime(2025, 3, 27, 18, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 18, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 18, 24, 59)}, 'Carton_gris': {'main_port_id': 21806592, 'sub_port_id': 21806610, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14325781, 'last_updated_at': datetime.datetime(2025, 3, 27, 18, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 18, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 18, 24, 59)}, 'kraft': {'main_port_id': 21806592, 'sub_port_id': 21806611, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14325782, 'last_updated_at': datetime.datetime(2025, 3, 27, 18, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 18, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 18, 24, 59)}, 'environnement': {'main_port_id': 21806592, 'sub_port_id': 21806612, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14325783, 'last_updated_at': datetime.datetime(2025, 3, 27, 18, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 18, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 18, 24, 59)}, 'plastique': {'main_port_id': 21806592, 'sub_port_id': 21806613, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14325784, 'last_updated_at': datetime.datetime(2025, 3, 27, 18, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 18, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 18, 24, 59)}, 'papier': {'main_port_id': 21806592, 'sub_port_id': 21806614, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14325785, 'last_updated_at': datetime.datetime(2025, 3, 27, 18, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 18, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 18, 24, 59)}, 'Carton_brun': {'main_port_id': 21806592, 'sub_port_id': 21806615, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14325786, 'last_updated_at': datetime.datetime(2025, 3, 27, 18, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 18, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 18, 24, 59)}, 'mal_croppe': {'main_port_id': 21806592, 'sub_port_id': 21806616, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14325787, 'last_updated_at': datetime.datetime(2025, 3, 27, 18, 24, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 18, 24, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 18, 24, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21806605,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21806593 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21806606,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21806594 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21806607,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21806595 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21806608,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21806596 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21806609,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21806597 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21806610,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21806598 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21806611,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21806599 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21806612,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21806600 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21806613,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21806601 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21806614,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21806602 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21806615,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21806603 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21806616,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21806604 lien utilise dans velours : https://www.fotonower.com/velours/21806605,21806606,21806607,21806608,21806609,21806610,21806611,21806612,21806613,21806614,21806615,21806616?tags=autre_refus,Teint_Dans_La_Masse,flou,metal,cartonnette,Carton_gris,kraft,environnement,plastique,papier,Carton_brun,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21806592]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1347960108, 1347960099, 1347960097, 1347960093, 1347960089, 1347960086, 1347960019, 1347960007, 1347957422, 1347957309, 1347957201, 1347957125] map_info['map_portfolio_photo'] : {21806592: [1347960108, 1347960099, 1347960097, 1347960093, 1347960089, 1347960086, 1347960019, 1347960007, 1347957422, 1347957309, 1347957201, 1347957125]} final : False mtd_id 4302 list_pids : [1347960108, 1347960099, 1347960097, 1347960093, 1347960089, 1347960086, 1347960019, 1347960007, 1347957422, 1347957309, 1347957201, 1347957125] Looping around the photos to save general results len do output : 1 /21806592. 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, '2698625') ('4302', '21806592', '1347960108', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347960099', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347960097', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347960093', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347960089', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347960086', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347960019', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347960007', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347957422', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347957309', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347957201', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347957125', None, None, None, None, None, '2698625') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '21806592', "{'autre_refus': 21806593, 'Teint_Dans_La_Masse': 21806594, 'flou': 21806595, 'metal': 21806596, 'cartonnette': 21806597, 'Carton_gris': 21806598, 'kraft': 21806599, 'environnement': 21806600, 'plastique': 21806601, 'papier': 21806602, 'Carton_brun': 21806603, 'mal_croppe': 21806604}", None, None, None, None, '2698625'), ('4302', '21806592', '1347960108', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347960099', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347960097', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347960093', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347960089', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347960086', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347960019', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347960007', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347957422', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347957309', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347957201', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347957125', None, None, None, None, None, '2698625')] time used for this insertion : 0.015073776245117188 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.768134355545044 time spend to save output : 0.015573501586914062 total time spend for step 1 : 2.783707857131958 step2:final Thu Mar 27 18:24: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 (21806592) 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 21806592 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1347957422,1347957309,1347957201,1347957125,1347960019,1347960007,1347960108,1347960099,1347960097,1347960093,1347960089,1347960086); 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([21806592]) Inside saveOutput : final : False verbose : True original output for save of step final : {1347960108: ('0.02471321205348165',), 1347960099: ('0.02471321205348165',), 1347960097: ('0.02471321205348165',), 1347960093: ('0.02471321205348165',), 1347960089: ('0.02471321205348165',), 1347960086: ('0.02471321205348165',), 1347960019: ('0.02471321205348165',), 1347960007: ('0.02471321205348165',), 1347957422: ('0.02471321205348165',), 1347957309: ('0.02471321205348165',), 1347957201: ('0.02471321205348165',), 1347957125: ('0.02471321205348165',)} new output for save of step final : {1347960108: ('0.02471321205348165',), 1347960099: ('0.02471321205348165',), 1347960097: ('0.02471321205348165',), 1347960093: ('0.02471321205348165',), 1347960089: ('0.02471321205348165',), 1347960086: ('0.02471321205348165',), 1347960019: ('0.02471321205348165',), 1347960007: ('0.02471321205348165',), 1347957422: ('0.02471321205348165',), 1347957309: ('0.02471321205348165',), 1347957201: ('0.02471321205348165',), 1347957125: ('0.02471321205348165',)} [1347960108, 1347960099, 1347960097, 1347960093, 1347960089, 1347960086, 1347960019, 1347960007, 1347957422, 1347957309, 1347957201, 1347957125] map_info['map_portfolio_photo'] : {21806592: [1347960108, 1347960099, 1347960097, 1347960093, 1347960089, 1347960086, 1347960019, 1347960007, 1347957422, 1347957309, 1347957201, 1347957125]} final : False mtd_id 4302 list_pids : [1347960108, 1347960099, 1347960097, 1347960093, 1347960089, 1347960086, 1347960019, 1347960007, 1347957422, 1347957309, 1347957201, 1347957125] Looping around the photos to save general results len do output : 12 /1347960108.Didn't retrieve data . /1347960099.Didn't retrieve data . /1347960097.Didn't retrieve data . /1347960093.Didn't retrieve data . /1347960089.Didn't retrieve data . /1347960086.Didn't retrieve data . /1347960019.Didn't retrieve data . /1347960007.Didn't retrieve data . /1347957422.Didn't retrieve data . /1347957309.Didn't retrieve data . /1347957201.Didn't retrieve data . /1347957125.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, '2698625') ('4302', '21806592', '1347960108', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347960099', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347960097', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347960093', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347960089', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347960086', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347960019', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347960007', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347957422', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347957309', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347957201', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347957125', None, None, None, None, None, '2698625') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '21806592', '1347960108', '0.02471321205348165', None, None, None, None, '2698625'), ('4302', '21806592', '1347960099', '0.02471321205348165', None, None, None, None, '2698625'), ('4302', '21806592', '1347960097', '0.02471321205348165', None, None, None, None, '2698625'), ('4302', '21806592', '1347960093', '0.02471321205348165', None, None, None, None, '2698625'), ('4302', '21806592', '1347960089', '0.02471321205348165', None, None, None, None, '2698625'), ('4302', '21806592', '1347960086', '0.02471321205348165', None, None, None, None, '2698625'), ('4302', '21806592', '1347960019', '0.02471321205348165', None, None, None, None, '2698625'), ('4302', '21806592', '1347960007', '0.02471321205348165', None, None, None, None, '2698625'), ('4302', '21806592', '1347957422', '0.02471321205348165', None, None, None, None, '2698625'), ('4302', '21806592', '1347957309', '0.02471321205348165', None, None, None, None, '2698625'), ('4302', '21806592', '1347957201', '0.02471321205348165', None, None, None, None, '2698625'), ('4302', '21806592', '1347957125', '0.02471321205348165', None, None, None, None, '2698625')] time used for this insertion : 0.014108896255493164 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.02936720848083496 time spend to save output : 0.014789104461669922 total time spend for step 2 : 0.04415631294250488 step3:velours_tree Thu Mar 27 18:24: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 : {21806592: [{'autre_refus': 21806593, 'Teint_Dans_La_Masse': 21806594, 'flou': 21806595, 'metal': 21806596, 'cartonnette': 21806597, 'Carton_gris': 21806598, 'kraft': 21806599, 'environnement': 21806600, 'plastique': 21806601, 'papier': 21806602, 'Carton_brun': 21806603, 'mal_croppe': 21806604}]} input_args_next_step : {21806592: ()} output_args : {21806592: [{'autre_refus': 21806593, 'Teint_Dans_La_Masse': 21806594, 'flou': 21806595, 'metal': 21806596, 'cartonnette': 21806597, 'Carton_gris': 21806598, 'kraft': 21806599, 'environnement': 21806600, 'plastique': 21806601, 'papier': 21806602, 'Carton_brun': 21806603, 'mal_croppe': 21806604}]} args : 21806592 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 : ({'autre_refus': 21806593, 'Teint_Dans_La_Masse': 21806594, 'flou': 21806595, 'metal': 21806596, 'cartonnette': 21806597, 'Carton_gris': 21806598, 'kraft': 21806599, 'environnement': 21806600, 'plastique': 21806601, 'papier': 21806602, 'Carton_brun': 21806603, 'mal_croppe': 21806604},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21806592) 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([21806592]) 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.3794417381286621 time spend to save output : 5.2928924560546875e-05 total time spend for step 3 : 0.37949466705322266 step4:send_mail_cod Thu Mar 27 18:25:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1347960108: ('0.02471321205348165',), 1347960099: ('0.02471321205348165',), 1347960097: ('0.02471321205348165',), 1347960093: ('0.02471321205348165',), 1347960089: ('0.02471321205348165',), 1347960086: ('0.02471321205348165',), 1347960019: ('0.02471321205348165',), 1347960007: ('0.02471321205348165',), 1347957422: ('0.02471321205348165',), 1347957309: ('0.02471321205348165',), 1347957201: ('0.02471321205348165',), 1347957125: ('0.02471321205348165',)} input_args_next_step : {1347960108: ()} output_args : {1347960108: ('0.02471321205348165',), 1347960099: ('0.02471321205348165',), 1347960097: ('0.02471321205348165',), 1347960093: ('0.02471321205348165',), 1347960089: ('0.02471321205348165',), 1347960086: ('0.02471321205348165',), 1347960019: ('0.02471321205348165',), 1347960007: ('0.02471321205348165',), 1347957422: ('0.02471321205348165',), 1347957309: ('0.02471321205348165',), 1347957201: ('0.02471321205348165',), 1347957125: ('0.02471321205348165',)} args : 1347960108 depend.output_id : 0 input_args_next_step : {1347960108: ('0.02471321205348165',), 1347960099: ()} output_args : {1347960108: ('0.02471321205348165',), 1347960099: ('0.02471321205348165',), 1347960097: ('0.02471321205348165',), 1347960093: ('0.02471321205348165',), 1347960089: ('0.02471321205348165',), 1347960086: ('0.02471321205348165',), 1347960019: ('0.02471321205348165',), 1347960007: ('0.02471321205348165',), 1347957422: ('0.02471321205348165',), 1347957309: ('0.02471321205348165',), 1347957201: ('0.02471321205348165',), 1347957125: ('0.02471321205348165',)} args : 1347960099 depend.output_id : 0 input_args_next_step : {1347960108: ('0.02471321205348165',), 1347960099: ('0.02471321205348165',), 1347960097: ()} output_args : {1347960108: ('0.02471321205348165',), 1347960099: ('0.02471321205348165',), 1347960097: ('0.02471321205348165',), 1347960093: ('0.02471321205348165',), 1347960089: ('0.02471321205348165',), 1347960086: ('0.02471321205348165',), 1347960019: ('0.02471321205348165',), 1347960007: ('0.02471321205348165',), 1347957422: ('0.02471321205348165',), 1347957309: ('0.02471321205348165',), 1347957201: ('0.02471321205348165',), 1347957125: ('0.02471321205348165',)} args : 1347960097 depend.output_id : 0 input_args_next_step : {1347960108: ('0.02471321205348165',), 1347960099: ('0.02471321205348165',), 1347960097: ('0.02471321205348165',), 1347960093: ()} output_args : {1347960108: ('0.02471321205348165',), 1347960099: ('0.02471321205348165',), 1347960097: ('0.02471321205348165',), 1347960093: ('0.02471321205348165',), 1347960089: ('0.02471321205348165',), 1347960086: ('0.02471321205348165',), 1347960019: ('0.02471321205348165',), 1347960007: ('0.02471321205348165',), 1347957422: ('0.02471321205348165',), 1347957309: ('0.02471321205348165',), 1347957201: ('0.02471321205348165',), 1347957125: ('0.02471321205348165',)} args : 1347960093 depend.output_id : 0 input_args_next_step : {1347960108: ('0.02471321205348165',), 1347960099: ('0.02471321205348165',), 1347960097: ('0.02471321205348165',), 1347960093: ('0.02471321205348165',), 1347960089: ()} output_args : {1347960108: ('0.02471321205348165',), 1347960099: ('0.02471321205348165',), 1347960097: ('0.02471321205348165',), 1347960093: ('0.02471321205348165',), 1347960089: ('0.02471321205348165',), 1347960086: ('0.02471321205348165',), 1347960019: ('0.02471321205348165',), 1347960007: ('0.02471321205348165',), 1347957422: ('0.02471321205348165',), 1347957309: ('0.02471321205348165',), 1347957201: ('0.02471321205348165',), 1347957125: ('0.02471321205348165',)} args : 1347960089 depend.output_id : 0 input_args_next_step : {1347960108: ('0.02471321205348165',), 1347960099: ('0.02471321205348165',), 1347960097: ('0.02471321205348165',), 1347960093: ('0.02471321205348165',), 1347960089: ('0.02471321205348165',), 1347960086: ()} output_args : {1347960108: ('0.02471321205348165',), 1347960099: ('0.02471321205348165',), 1347960097: ('0.02471321205348165',), 1347960093: ('0.02471321205348165',), 1347960089: ('0.02471321205348165',), 1347960086: ('0.02471321205348165',), 1347960019: ('0.02471321205348165',), 1347960007: ('0.02471321205348165',), 1347957422: ('0.02471321205348165',), 1347957309: ('0.02471321205348165',), 1347957201: ('0.02471321205348165',), 1347957125: ('0.02471321205348165',)} args : 1347960086 depend.output_id : 0 input_args_next_step : {1347960108: ('0.02471321205348165',), 1347960099: ('0.02471321205348165',), 1347960097: ('0.02471321205348165',), 1347960093: ('0.02471321205348165',), 1347960089: ('0.02471321205348165',), 1347960086: ('0.02471321205348165',), 1347960019: ()} output_args : {1347960108: ('0.02471321205348165',), 1347960099: ('0.02471321205348165',), 1347960097: ('0.02471321205348165',), 1347960093: ('0.02471321205348165',), 1347960089: ('0.02471321205348165',), 1347960086: ('0.02471321205348165',), 1347960019: ('0.02471321205348165',), 1347960007: ('0.02471321205348165',), 1347957422: ('0.02471321205348165',), 1347957309: ('0.02471321205348165',), 1347957201: ('0.02471321205348165',), 1347957125: ('0.02471321205348165',)} args : 1347960019 depend.output_id : 0 input_args_next_step : {1347960108: ('0.02471321205348165',), 1347960099: ('0.02471321205348165',), 1347960097: ('0.02471321205348165',), 1347960093: ('0.02471321205348165',), 1347960089: ('0.02471321205348165',), 1347960086: ('0.02471321205348165',), 1347960019: ('0.02471321205348165',), 1347960007: ()} output_args : {1347960108: ('0.02471321205348165',), 1347960099: ('0.02471321205348165',), 1347960097: ('0.02471321205348165',), 1347960093: ('0.02471321205348165',), 1347960089: ('0.02471321205348165',), 1347960086: ('0.02471321205348165',), 1347960019: ('0.02471321205348165',), 1347960007: ('0.02471321205348165',), 1347957422: ('0.02471321205348165',), 1347957309: ('0.02471321205348165',), 1347957201: ('0.02471321205348165',), 1347957125: ('0.02471321205348165',)} args : 1347960007 depend.output_id : 0 input_args_next_step : {1347960108: ('0.02471321205348165',), 1347960099: ('0.02471321205348165',), 1347960097: ('0.02471321205348165',), 1347960093: ('0.02471321205348165',), 1347960089: ('0.02471321205348165',), 1347960086: ('0.02471321205348165',), 1347960019: ('0.02471321205348165',), 1347960007: ('0.02471321205348165',), 1347957422: ()} output_args : {1347960108: ('0.02471321205348165',), 1347960099: ('0.02471321205348165',), 1347960097: ('0.02471321205348165',), 1347960093: ('0.02471321205348165',), 1347960089: ('0.02471321205348165',), 1347960086: ('0.02471321205348165',), 1347960019: ('0.02471321205348165',), 1347960007: ('0.02471321205348165',), 1347957422: ('0.02471321205348165',), 1347957309: ('0.02471321205348165',), 1347957201: ('0.02471321205348165',), 1347957125: ('0.02471321205348165',)} args : 1347957422 depend.output_id : 0 input_args_next_step : {1347960108: ('0.02471321205348165',), 1347960099: ('0.02471321205348165',), 1347960097: ('0.02471321205348165',), 1347960093: ('0.02471321205348165',), 1347960089: ('0.02471321205348165',), 1347960086: ('0.02471321205348165',), 1347960019: ('0.02471321205348165',), 1347960007: ('0.02471321205348165',), 1347957422: ('0.02471321205348165',), 1347957309: ()} output_args : {1347960108: ('0.02471321205348165',), 1347960099: ('0.02471321205348165',), 1347960097: ('0.02471321205348165',), 1347960093: ('0.02471321205348165',), 1347960089: ('0.02471321205348165',), 1347960086: ('0.02471321205348165',), 1347960019: ('0.02471321205348165',), 1347960007: ('0.02471321205348165',), 1347957422: ('0.02471321205348165',), 1347957309: ('0.02471321205348165',), 1347957201: ('0.02471321205348165',), 1347957125: ('0.02471321205348165',)} args : 1347957309 depend.output_id : 0 input_args_next_step : {1347960108: ('0.02471321205348165',), 1347960099: ('0.02471321205348165',), 1347960097: ('0.02471321205348165',), 1347960093: ('0.02471321205348165',), 1347960089: ('0.02471321205348165',), 1347960086: ('0.02471321205348165',), 1347960019: ('0.02471321205348165',), 1347960007: ('0.02471321205348165',), 1347957422: ('0.02471321205348165',), 1347957309: ('0.02471321205348165',), 1347957201: ()} output_args : {1347960108: ('0.02471321205348165',), 1347960099: ('0.02471321205348165',), 1347960097: ('0.02471321205348165',), 1347960093: ('0.02471321205348165',), 1347960089: ('0.02471321205348165',), 1347960086: ('0.02471321205348165',), 1347960019: ('0.02471321205348165',), 1347960007: ('0.02471321205348165',), 1347957422: ('0.02471321205348165',), 1347957309: ('0.02471321205348165',), 1347957201: ('0.02471321205348165',), 1347957125: ('0.02471321205348165',)} args : 1347957201 depend.output_id : 0 input_args_next_step : {1347960108: ('0.02471321205348165',), 1347960099: ('0.02471321205348165',), 1347960097: ('0.02471321205348165',), 1347960093: ('0.02471321205348165',), 1347960089: ('0.02471321205348165',), 1347960086: ('0.02471321205348165',), 1347960019: ('0.02471321205348165',), 1347960007: ('0.02471321205348165',), 1347957422: ('0.02471321205348165',), 1347957309: ('0.02471321205348165',), 1347957201: ('0.02471321205348165',), 1347957125: ()} output_args : {1347960108: ('0.02471321205348165',), 1347960099: ('0.02471321205348165',), 1347960097: ('0.02471321205348165',), 1347960093: ('0.02471321205348165',), 1347960089: ('0.02471321205348165',), 1347960086: ('0.02471321205348165',), 1347960019: ('0.02471321205348165',), 1347960007: ('0.02471321205348165',), 1347957422: ('0.02471321205348165',), 1347957309: ('0.02471321205348165',), 1347957201: ('0.02471321205348165',), 1347957125: ('0.02471321205348165',)} args : 1347957125 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 : {21806592: [{'autre_refus': 21806593, 'Teint_Dans_La_Masse': 21806594, 'flou': 21806595, 'metal': 21806596, 'cartonnette': 21806597, 'Carton_gris': 21806598, 'kraft': 21806599, 'environnement': 21806600, 'plastique': 21806601, 'papier': 21806602, 'Carton_brun': 21806603, 'mal_croppe': 21806604}]} input_args_next_step : {1347960108: ('0.02471321205348165',), 1347960099: ('0.02471321205348165',), 1347960097: ('0.02471321205348165',), 1347960093: ('0.02471321205348165',), 1347960089: ('0.02471321205348165',), 1347960086: ('0.02471321205348165',), 1347960019: ('0.02471321205348165',), 1347960007: ('0.02471321205348165',), 1347957422: ('0.02471321205348165',), 1347957309: ('0.02471321205348165',), 1347957201: ('0.02471321205348165',), 1347957125: ('0.02471321205348165',), 21806592: ()} output_args : {21806592: [{'autre_refus': 21806593, 'Teint_Dans_La_Masse': 21806594, 'flou': 21806595, 'metal': 21806596, 'cartonnette': 21806597, 'Carton_gris': 21806598, 'kraft': 21806599, 'environnement': 21806600, 'plastique': 21806601, 'papier': 21806602, 'Carton_brun': 21806603, 'mal_croppe': 21806604}]} args : 21806592 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 :13, first value : ('0.02471321205348165',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21806592) 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 (1347960108,1347960099,1347960097,1347960093,1347960089,1347960086,1347960019,1347960007,1347957422,1347957309,1347957201,1347957125) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1347957125 begin to download photo : 1347957422 begin to download photo : 1347960086 begin to download photo : 1347960097 download finish for photo 1347957125 begin to download photo : 1347957201 download finish for photo 1347957422 begin to download photo : 1347960007 download finish for photo 1347960097 begin to download photo : 1347960099 download finish for photo 1347960086 begin to download photo : 1347960089 download finish for photo 1347960007 begin to download photo : 1347960019 download finish for photo 1347957201 begin to download photo : 1347957309 download finish for photo 1347960099 begin to download photo : 1347960108 download finish for photo 1347960089 begin to download photo : 1347960093 download finish for photo 1347960108 download finish for photo 1347957309 download finish for photo 1347960093 download finish for photo 1347960019 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette218065931743096300/ imagette218065951743096300/ imagette218065961743096300/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P21806592_27-03-2025_18_25_00.pdf 21806593 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=21806593 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218065931743096300 21806595 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=21806595 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218065951743096300 21806596 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=21806596 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218065961743096300 21806597 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=21806597 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347959743: '1743096013_4006296_1347957201_a732b24e0b2b3e46b37609fe59e2059f_rle_crop_3734318521_0.png', 1347959744: '1743096013_4006296_1347957201_a732b24e0b2b3e46b37609fe59e2059f_rle_crop_3734318519_0.png', 1347959745: '1743096013_4006296_1347957201_a732b24e0b2b3e46b37609fe59e2059f_rle_crop_3734318525_0.png', 1347959747: '1743096013_4006296_1347957125_3aa98f6033ac8f981d52ad1e30f6c1d5_rle_crop_3734318535_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/1e0ba72fcc4942eedf5467c25d2d6c44_96372256.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/24486ca1848d7fd4ba4bbe799b6f5ebd_93157415.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/aaac43219fc22c7ddc199e757598cf48_1319217.png change filename to text .imagette218065971743096300/ imagette218065971743096300/1743096013_4006296_1347957125_3aa98f6033ac8f981d52ad1e30f6c1d5_rle_crop_3734318535_0.png.png imagette218065971743096300/1743096013_4006296_1347957201_a732b24e0b2b3e46b37609fe59e2059f_rle_crop_3734318521_0.png.png imagette218065971743096300/1743096013_4006296_1347957201_a732b24e0b2b3e46b37609fe59e2059f_rle_crop_3734318525_0.png.png imagette218065971743096300/1743096013_4006296_1347957201_a732b24e0b2b3e46b37609fe59e2059f_rle_crop_3734318519_0.png.png imagette218065991743096300/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/04b0425d6e34d0561d3051acc0374d4b_59594358.png imagette218065971743096300 21806599 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=21806599 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218065991743096300 21806601 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=21806601 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347959750: '1743096013_4006296_1347957422_7139089fa1449aadf66a29a70046328e_rle_crop_3734318505_0.png', 1347959751: '1743096013_4006296_1347957309_15ebe0432dab4ff9d973658f4c335c63_rle_crop_3734318516_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/d2c8f8dcb609ec046a087ef146f3bc10_71551020.png change filename to text .imagette218066011743096300/ imagette218066011743096300/1743096013_4006296_1347957422_7139089fa1449aadf66a29a70046328e_rle_crop_3734318505_0.png.png imagette218066011743096300/1743096013_4006296_1347957309_15ebe0432dab4ff9d973658f4c335c63_rle_crop_3734318516_0.png.png imagette218066041743096301/ imagette218065941743096301/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/c934267fe63c02df56c4d00420a8bc4e_99279095.png imagette218066011743096300 21806604 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=21806604 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218066041743096301 21806594 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=21806594 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218065941743096301 21806598 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=21806598 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347959732: '1743096013_4006296_1347957309_15ebe0432dab4ff9d973658f4c335c63_rle_crop_3734318514_0.png', 1347960377: '1743096231_4008932_1347960019_750b5ad068c9bd44639538f9f35867fe_rle_crop_3734324978_0.png', 1347960378: '1743096231_4008932_1347960019_750b5ad068c9bd44639538f9f35867fe_rle_crop_3734324983_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/92d052d50294fece47cb425aa9c81017_21169781.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/d080d9fd789eb0db58daf047f1de6a55_89293592.png change filename to text .imagette218065981743096301/ imagette218065981743096301/1743096231_4008932_1347960019_750b5ad068c9bd44639538f9f35867fe_rle_crop_3734324983_0.png.png imagette218065981743096301/1743096231_4008932_1347960019_750b5ad068c9bd44639538f9f35867fe_rle_crop_3734324978_0.png.png imagette218065981743096301/1743096013_4006296_1347957309_15ebe0432dab4ff9d973658f4c335c63_rle_crop_3734318514_0.png.png imagette218066031743096301/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/d2ec189ee9374bc2c7434338153fb782_50006843.png imagette218065981743096301 21806603 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=21806603 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218066031743096301 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21806592 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21806605,21806606,21806607,21806608,21806609,21806610,21806611,21806612,21806613,21806614,21806615,21806616?tags=autre_refus,Teint_Dans_La_Masse,flou,metal,cartonnette,Carton_gris,kraft,environnement,plastique,papier,Carton_brun,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1347960108] : ('0.02471321205348165',) no score found for photo 1347960108 We are sending mail with results at report@fotonower.com args[1347960099] : ('0.02471321205348165',) no score found for photo 1347960099 We are sending mail with results at report@fotonower.com args[1347960097] : ('0.02471321205348165',) no score found for photo 1347960097 We are sending mail with results at report@fotonower.com args[1347960093] : ('0.02471321205348165',) no score found for photo 1347960093 We are sending mail with results at report@fotonower.com args[1347960089] : ('0.02471321205348165',) no score found for photo 1347960089 We are sending mail with results at report@fotonower.com args[1347960086] : ('0.02471321205348165',) no score found for photo 1347960086 We are sending mail with results at report@fotonower.com args[1347960019] : ('0.02471321205348165',) no score found for photo 1347960019 We are sending mail with results at report@fotonower.com args[1347960007] : ('0.02471321205348165',) no score found for photo 1347960007 We are sending mail with results at report@fotonower.com args[1347957422] : ('0.02471321205348165',) no score found for photo 1347957422 We are sending mail with results at report@fotonower.com args[1347957309] : ('0.02471321205348165',) no score found for photo 1347957309 We are sending mail with results at report@fotonower.com args[1347957201] : ('0.02471321205348165',) no score found for photo 1347957201 We are sending mail with results at report@fotonower.com args[1347957125] : ('0.02471321205348165',) no score found for photo 1347957125 We are sending mail with results at report@fotonower.com refus_total : 0.02471321205348165 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=21806592 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_P21806592_27-03-2025_18_25_00.pdf results_Auto_P21806592_27-03-2025_18_25_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21806592_27-03-2025_18_25_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','21806592','results_Auto_P21806592_27-03-2025_18_25_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21806592_27-03-2025_18_25_00.pdf','pdf','','0.14','0.02471321205348165') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21806592]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1347960108, 1347960099, 1347960097, 1347960093, 1347960089, 1347960086, 1347960019, 1347960007, 1347957422, 1347957309, 1347957201, 1347957125] map_info['map_portfolio_photo'] : {21806592: [1347960108, 1347960099, 1347960097, 1347960093, 1347960089, 1347960086, 1347960019, 1347960007, 1347957422, 1347957309, 1347957201, 1347957125]} final : False mtd_id 4302 list_pids : [1347960108, 1347960099, 1347960097, 1347960093, 1347960089, 1347960086, 1347960019, 1347960007, 1347957422, 1347957309, 1347957201, 1347957125] 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, '2698625') ('4302', '21806592', '1347960108', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347960099', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347960097', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347960093', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347960089', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347960086', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347960019', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347960007', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347957422', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347957309', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347957201', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347957125', None, None, None, None, None, '2698625') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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', '21806592', '1347960108', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347960099', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347960097', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347960093', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347960089', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347960086', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347960019', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347960007', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347957422', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347957309', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347957201', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347957125', None, None, None, None, None, '2698625')] time used for this insertion : 0.013747453689575195 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.359598159790039 time spend to save output : 0.01408076286315918 total time spend for step 4 : 2.3736789226531982 step5:split_time_score Thu Mar 27 18:25:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21806592'] 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 : [('21806592',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21806592) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1347960097: {'path': 'temp/1743096300_1605625_1347960097_6ffe289ccbecd8264c0df247259328b3.jpg', 'extension': 'jpg'}, 1347960099: {'path': 'temp/1743096300_1605625_1347960099_9085a7a437a31be389398e4450648448.jpg', 'extension': 'jpg'}, 1347960108: {'path': 'temp/1743096300_1605625_1347960108_10a83e8be3ad3501a8ea6addb878afa5.jpg', 'extension': 'jpg'}, 1347957125: {'path': 'temp/1743096300_1605625_1347957125_3aa98f6033ac8f981d52ad1e30f6c1d5.jpg', 'extension': 'jpg'}, 1347957201: {'path': 'temp/1743096300_1605625_1347957201_a732b24e0b2b3e46b37609fe59e2059f.jpg', 'extension': 'jpg'}, 1347957309: {'path': 'temp/1743096300_1605625_1347957309_15ebe0432dab4ff9d973658f4c335c63.jpg', 'extension': 'jpg'}, 1347960086: {'path': 'temp/1743096300_1605625_1347960086_1c2e524b68b15940d2def53375bb111d.jpg', 'extension': 'jpg'}, 1347960089: {'path': 'temp/1743096300_1605625_1347960089_86290ad4ced6e102d82c59a87e163e81.jpg', 'extension': 'jpg'}, 1347960093: {'path': 'temp/1743096300_1605625_1347960093_4a432093c5de545ec6dae24312cedecb.jpg', 'extension': 'jpg'}, 1347957422: {'path': 'temp/1743096300_1605625_1347957422_7139089fa1449aadf66a29a70046328e.jpg', 'extension': 'jpg'}, 1347960007: {'path': 'temp/1743096300_1605625_1347960007_4cd35763407d2459507fe359e9d1b977.jpg', 'extension': 'jpg'}, 1347960019: {'path': 'temp/1743096300_1605625_1347960019_750b5ad068c9bd44639538f9f35867fe.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 = 21806592; (('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 = 21806592 group by h (('18', 12),) 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=21806592 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 (21806592) 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 (21806592) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 27032025 21806592 Nombre de photos uploadées : 12 / 23040 (0%) 27032025 21806592 Nombre de photos taguées (types de déchets): 0 / 12 (0%) 27032025 21806592 Nombre de photos taguées (volume) : 0 / 12 (0%) [{'photo_id': 1347957422, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/7139089fa1449aadf66a29a70046328e.jpg', 'username': None, 'uploaded_at': 1743095837, 'text': 'image_27032025_18_15_13_010141m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347957309, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/15ebe0432dab4ff9d973658f4c335c63.jpg', 'username': None, 'uploaded_at': 1743095837, 'text': 'image_27032025_18_15_23_010142m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347957201, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/a732b24e0b2b3e46b37609fe59e2059f.jpg', 'username': None, 'uploaded_at': 1743095837, 'text': 'image_27032025_18_15_33_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347957125, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/3aa98f6033ac8f981d52ad1e30f6c1d5.jpg', 'username': None, 'uploaded_at': 1743095837, 'text': 'image_27032025_18_15_44_010137m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 8.106231689453125e-06 ???????????? elapsed_time : fill_and_build_computed_from_old_data 0.0008363723754882812 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21806592, '2025-03-27' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1692045,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.8811140060424805 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= 1692045 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1692045, 'dashboard_run_id': 1702479, 'mtr_portfolio_id': 21805405, 'dashboard_result_id': 9688528, '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_P21805405_27-03-2025_18_18_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21805509, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21805510, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21805511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21805512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21805513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21805514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21805515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21805516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21805517, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21805518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21805519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21805520, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1702479, 'mtr_portfolio_id': 21806592, 'dashboard_result_id': 9688529, '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 = 21805405 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': 2698586, 'mtr_portfolio_id': 21805405, 'created_at': datetime.datetime(2025, 3, 27, 18, 18, 32), 'result': '0.05204454511474251', 'result_long': None, 'result_double': None}] Qualite : 0.05204454511474251 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21805405 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21805405_27-03-2025_18_18_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21805405 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_P21805405_27-03-2025_18_18_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21805509, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21805510, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21805511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21805512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21805513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21805514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21805515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21805516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21805517, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21805518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21805519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21805520, 'pht': 3726}}" where mtr_portfolio_id = 21805405 and dashboard_run_id = 1702479 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`=21805405 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9688528, 0.05204454511474251, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21805405_27-03-2025_18_18_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21805509, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21805510, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21805511, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21805512, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21805513, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21805514, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21805515, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21805516, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21805517, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21805518, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21805519, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21805520, '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 = 21806592 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': 2698625, 'mtr_portfolio_id': 21806592, 'created_at': datetime.datetime(2025, 3, 27, 18, 24, 59), 'result': '0.02471321205348165', 'result_long': None, 'result_double': None}] Qualite : 0.02471321205348165 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21806592 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21806592_27-03-2025_18_25_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21806592 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_P21806592_27-03-2025_18_25_00.pdf'}" where mtr_portfolio_id = 21806592 and dashboard_run_id = 1702479 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`=21806592 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9688529, 0.02471321205348165, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21806592_27-03-2025_18_25_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21806593, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21806594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21806595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21806596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21806597, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21806598, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21806599, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21806600, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21806601, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21806602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21806603, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21806604, '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 (21805405,21806592) result : ((1347948121,), (1347948210,), (1347949137,), (1347949259,), (1347949352,), (1347949670,), (1347950147,), (1347950233,), (1347950320,), (1347950397,), (1347951079,), (1347951149,), (1347951208,), (1347951242,), (1347951277,), (1347951301,), (1347951715,), (1347951826,), (1347951886,), (1347953234,), (1347953574,), (1347953633,), (1347953676,), (1347953727,), (1347953781,), (1347953819,), (1347954006,), (1347954033,), (1347954049,), (1347954066,), (1347954102,), (1347954411,), (1347954465,), (1347954516,), (1347954638,), (1347954704,), (1347955070,), (1347955101,), (1347955124,), (1347955133,), (1347955174,), (1347955180,), (1347955184,), (1347955188,), (1347955207,), (1347955251,), (1347955625,), (1347955712,), (1347955785,), (1347955845,), (1347955916,), (1347956321,), (1347956355,), (1347956406,), (1347956435,), (1347956698,), (1347956724,), (1347956763,), (1347956796,), (1347957497,), (1347957125,), (1347957201,), (1347957309,), (1347957422,), (1347960007,), (1347960019,), (1347960086,), (1347960089,), (1347960093,), (1347960097,), (1347960099,), (1347960108,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'27032025': {'nb_upload': 12, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21806592]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1347960108, 1347960099, 1347960097, 1347960093, 1347960089, 1347960086, 1347960019, 1347960007, 1347957422, 1347957309, 1347957201, 1347957125] map_info['map_portfolio_photo'] : {21806592: [1347960108, 1347960099, 1347960097, 1347960093, 1347960089, 1347960086, 1347960019, 1347960007, 1347957422, 1347957309, 1347957201, 1347957125]} final : True mtd_id 4302 list_pids : [1347960108, 1347960099, 1347960097, 1347960093, 1347960089, 1347960086, 1347960019, 1347960007, 1347957422, 1347957309, 1347957201, 1347957125] Looping around the photos to save general results len do output : 1 /21806592Didn'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, '2698625') ('4302', '21806592', '1347960108', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347960099', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347960097', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347960093', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347960089', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347960086', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347960019', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347960007', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347957422', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347957309', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347957201', None, None, None, None, None, '2698625') ('4302', None, None, None, None, None, None, None, '2698625') ('4302', '21806592', '1347957125', None, None, None, None, None, '2698625') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '21806592', 'None', None, None, None, None, '2698625'), ('4302', '21806592', '1347960108', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347960099', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347960097', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347960093', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347960089', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347960086', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347960019', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347960007', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347957422', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347957309', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347957201', None, None, None, None, None, '2698625'), ('4302', '21806592', '1347957125', None, None, None, None, None, '2698625')] time used for this insertion : 0.013908624649047852 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.0893962383270264 time spend to save output : 0.014183998107910156 total time spend for step 5 : 1.1035802364349365 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 (2698625) 2.22user 2.65system 0:09.23elapsed 52%CPU (0avgtext+0avgdata 159504maxresident)k 13840inputs+8784outputs (104major+64291minor)pagefaults 0swaps