result : ((1356511944,), (1356511945,), (1356511946,), (1356511947,), (1356511948,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22740041) result : ((1356510147,), (1356510155,), (1356510161,), (1356510216,), (1356510244,), (1356510275,), (1356510905,), (1356510935,), (1356511118,), (1356511163,), (1356511215,), (1356511248,), (1356511465,), (1356511503,), (1356511529,), (1356511552,), (1356511556,), (1356511557,), (1356511778,), (1356511794,), (1356511829,)) 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 22740061 , 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=22740041 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 (22740061) result : ((1356511952,), (1356511953,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22740041) result : ((1356510147,), (1356510155,), (1356510161,), (1356510216,), (1356510244,), (1356510275,), (1356510905,), (1356510935,), (1356511118,), (1356511163,), (1356511215,), (1356511248,), (1356511465,), (1356511503,), (1356511529,), (1356511552,), (1356511556,), (1356511557,), (1356511778,), (1356511794,), (1356511829,)) 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 22740062 , 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=22740041 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 (22740062) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22740041) result : ((1356510147,), (1356510155,), (1356510161,), (1356510216,), (1356510244,), (1356510275,), (1356510905,), (1356510935,), (1356511118,), (1356511163,), (1356511215,), (1356511248,), (1356511465,), (1356511503,), (1356511529,), (1356511552,), (1356511556,), (1356511557,), (1356511778,), (1356511794,), (1356511829,)) 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 22740063 , 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=22740041 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 (22740063) result : ((1356511950,), (1356511951,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22740041) result : ((1356510147,), (1356510155,), (1356510161,), (1356510216,), (1356510244,), (1356510275,), (1356510905,), (1356510935,), (1356511118,), (1356511163,), (1356511215,), (1356511248,), (1356511465,), (1356511503,), (1356511529,), (1356511552,), (1356511556,), (1356511557,), (1356511778,), (1356511794,), (1356511829,)) 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 22740064 , 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=22740041 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 (22740064) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22740041) result : ((1356510147,), (1356510155,), (1356510161,), (1356510216,), (1356510244,), (1356510275,), (1356510905,), (1356510935,), (1356511118,), (1356511163,), (1356511215,), (1356511248,), (1356511465,), (1356511503,), (1356511529,), (1356511552,), (1356511556,), (1356511557,), (1356511778,), (1356511794,), (1356511829,)) 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 22740065 , 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=22740041 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 (22740065) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22740041) result : ((1356510147,), (1356510155,), (1356510161,), (1356510216,), (1356510244,), (1356510275,), (1356510905,), (1356510935,), (1356511118,), (1356511163,), (1356511215,), (1356511248,), (1356511465,), (1356511503,), (1356511529,), (1356511552,), (1356511556,), (1356511557,), (1356511778,), (1356511794,), (1356511829,)) 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 22740066 , 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=22740041 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 (22740066) result : ((1356511939,), (1356511940,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22740041) result : ((1356510147,), (1356510155,), (1356510161,), (1356510216,), (1356510244,), (1356510275,), (1356510905,), (1356510935,), (1356511118,), (1356511163,), (1356511215,), (1356511248,), (1356511465,), (1356511503,), (1356511529,), (1356511552,), (1356511556,), (1356511557,), (1356511778,), (1356511794,), (1356511829,)) 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 22740067 , 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=22740041 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 (22740067) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22740041) result : ((1356510147,), (1356510155,), (1356510161,), (1356510216,), (1356510244,), (1356510275,), (1356510905,), (1356510935,), (1356511118,), (1356511163,), (1356511215,), (1356511248,), (1356511465,), (1356511503,), (1356511529,), (1356511552,), (1356511556,), (1356511557,), (1356511778,), (1356511794,), (1356511829,)) 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 22740068 , 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=22740041 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 (22740068) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22740041) result : ((1356510147,), (1356510155,), (1356510161,), (1356510216,), (1356510244,), (1356510275,), (1356510905,), (1356510935,), (1356511118,), (1356511163,), (1356511215,), (1356511248,), (1356511465,), (1356511503,), (1356511529,), (1356511552,), (1356511556,), (1356511557,), (1356511778,), (1356511794,), (1356511829,)) 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 22740069 , 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=22740041 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 (22740069) result : ((1356511941,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22740041) result : ((1356510147,), (1356510155,), (1356510161,), (1356510216,), (1356510244,), (1356510275,), (1356510905,), (1356510935,), (1356511118,), (1356511163,), (1356511215,), (1356511248,), (1356511465,), (1356511503,), (1356511529,), (1356511552,), (1356511556,), (1356511557,), (1356511778,), (1356511794,), (1356511829,)) 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 22740070 , 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=22740041 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 (22740070) result : ((1356511949,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22740041) result : ((1356510147,), (1356510155,), (1356510161,), (1356510216,), (1356510244,), (1356510275,), (1356510905,), (1356510935,), (1356511118,), (1356511163,), (1356511215,), (1356511248,), (1356511465,), (1356511503,), (1356511529,), (1356511552,), (1356511556,), (1356511557,), (1356511778,), (1356511794,), (1356511829,)) 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 22740071 , 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=22740041 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 (22740071) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22740041) result : ((1356510147,), (1356510155,), (1356510161,), (1356510216,), (1356510244,), (1356510275,), (1356510905,), (1356510935,), (1356511118,), (1356511163,), (1356511215,), (1356511248,), (1356511465,), (1356511503,), (1356511529,), (1356511552,), (1356511556,), (1356511557,), (1356511778,), (1356511794,), (1356511829,)) 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`=22740041 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','environnement','Carton_brun','Carton_gris','papier','flou','kraft','plastique','autre_refus','Teint_Dans_La_Masse','metal','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`=22740041 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','environnement','Carton_brun','Carton_gris','papier','flou','kraft','plastique','autre_refus','Teint_Dans_La_Masse','metal','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22740041, 'sub_port_id': 22740072, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15154173, 'last_updated_at': datetime.datetime(2025, 5, 7, 0, 3), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 0, 3), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 0, 3)}, 'plastique': {'main_port_id': 22740041, 'sub_port_id': 22740073, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15154174, 'last_updated_at': datetime.datetime(2025, 5, 7, 0, 3), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 0, 3), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 0, 3)}, 'flou': {'main_port_id': 22740041, 'sub_port_id': 22740074, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15154175, 'last_updated_at': datetime.datetime(2025, 5, 7, 0, 3), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 0, 3), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 0, 3)}, 'Carton_brun': {'main_port_id': 22740041, 'sub_port_id': 22740075, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15154176, 'last_updated_at': datetime.datetime(2025, 5, 7, 0, 3), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 0, 3), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 0, 3)}, 'metal': {'main_port_id': 22740041, 'sub_port_id': 22740076, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15154177, 'last_updated_at': datetime.datetime(2025, 5, 7, 0, 3), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 0, 3), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 0, 3)}, 'environnement': {'main_port_id': 22740041, 'sub_port_id': 22740077, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15154178, 'last_updated_at': datetime.datetime(2025, 5, 7, 0, 3), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 0, 3), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 0, 3)}, 'Teint_Dans_La_Masse': {'main_port_id': 22740041, 'sub_port_id': 22740078, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15154179, 'last_updated_at': datetime.datetime(2025, 5, 7, 0, 3), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 0, 3), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 0, 3)}, 'kraft': {'main_port_id': 22740041, 'sub_port_id': 22740079, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15154180, 'last_updated_at': datetime.datetime(2025, 5, 7, 0, 3), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 0, 3), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 0, 3)}, 'mal_croppe': {'main_port_id': 22740041, 'sub_port_id': 22740080, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15154181, 'last_updated_at': datetime.datetime(2025, 5, 7, 0, 3), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 0, 3), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 0, 3)}, 'autre_refus': {'main_port_id': 22740041, 'sub_port_id': 22740081, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15154182, 'last_updated_at': datetime.datetime(2025, 5, 7, 0, 3), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 0, 3), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 0, 3)}, 'cartonnette': {'main_port_id': 22740041, 'sub_port_id': 22740082, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15154183, 'last_updated_at': datetime.datetime(2025, 5, 7, 0, 3), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 0, 3), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 0, 3)}, 'papier': {'main_port_id': 22740041, 'sub_port_id': 22740083, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15154184, 'last_updated_at': datetime.datetime(2025, 5, 7, 0, 3), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 0, 3), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 0, 3)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22740072,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22740060 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22740073,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22740061 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22740074,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22740062 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22740075,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22740063 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22740076,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22740064 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22740077,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22740065 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22740078,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22740066 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22740079,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22740067 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22740080,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22740068 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22740081,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22740069 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22740082,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22740070 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22740083,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22740071 lien utilise dans velours : https://www.fotonower.com/velours/22740072,22740073,22740074,22740075,22740076,22740077,22740078,22740079,22740080,22740081,22740082,22740083?tags=Carton_gris,plastique,flou,Carton_brun,metal,environnement,Teint_Dans_La_Masse,kraft,mal_croppe,autre_refus,cartonnette,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22740041]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1356511829, 1356511794, 1356511778, 1356511557, 1356511556, 1356511552, 1356511529, 1356511503, 1356511465, 1356511248, 1356511215, 1356511163, 1356511118, 1356510935, 1356510905] map_info['map_portfolio_photo'] : {22740041: [1356511829, 1356511794, 1356511778, 1356511557, 1356511556, 1356511552, 1356511529, 1356511503, 1356511465, 1356511248, 1356511215, 1356511163, 1356511118, 1356510935, 1356510905, 1356510275, 1356510244, 1356510216, 1356510161, 1356510155, 1356510147]} final : False mtd_id 4302 list_pids : [1356511829, 1356511794, 1356511778, 1356511557, 1356511556, 1356511552, 1356511529, 1356511503, 1356511465, 1356511248, 1356511215, 1356511163, 1356511118, 1356510935, 1356510905] Looping around the photos to save general results len do output : 1 /22740041. 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, '2799894') ('4302', '22740041', '1356511829', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511794', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511778', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511557', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511556', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511552', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511529', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511503', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511465', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511248', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511215', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511163', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511118', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356510935', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356510905', None, None, None, None, None, '2799894') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22740041', "{'Carton_gris': 22740060, 'plastique': 22740061, 'flou': 22740062, 'Carton_brun': 22740063, 'metal': 22740064, 'environnement': 22740065, 'Teint_Dans_La_Masse': 22740066, 'kraft': 22740067, 'mal_croppe': 22740068, 'autre_refus': 22740069, 'cartonnette': 22740070, 'papier': 22740071}", None, None, None, None, '2799894'), ('4302', '22740041', '1356511829', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511794', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511778', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511557', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511556', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511552', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511529', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511503', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511465', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511248', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511215', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511163', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511118', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356510935', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356510905', None, None, None, None, None, '2799894')] time used for this insertion : 0.017287492752075195 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.43204927444458 time spend to save output : 0.017603635787963867 total time spend for step 1 : 1.449652910232544 step2:final Wed May 7 00:06: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 (22740041) 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 22740041 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1356510161,1356510155,1356510147,1356510275,1356510244,1356510216,1356511248,1356511215,1356511163,1356511118,1356510935,1356510905,1356511557,1356511556,1356511552,1356511529,1356511503,1356511465,1356511829,1356511794,1356511778); 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([22740041]) Inside saveOutput : final : False verbose : True original output for save of step final : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ('0.0918605157408496',), 1356511529: ('0.0918605157408496',), 1356511503: ('0.0918605157408496',), 1356511465: ('0.0918605157408496',), 1356511248: ('0.0918605157408496',), 1356511215: ('0.0918605157408496',), 1356511163: ('0.0918605157408496',), 1356511118: ('0.0918605157408496',), 1356510935: ('0.0918605157408496',), 1356510905: ('0.0918605157408496',)} new output for save of step final : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ('0.0918605157408496',), 1356511529: ('0.0918605157408496',), 1356511503: ('0.0918605157408496',), 1356511465: ('0.0918605157408496',), 1356511248: ('0.0918605157408496',), 1356511215: ('0.0918605157408496',), 1356511163: ('0.0918605157408496',), 1356511118: ('0.0918605157408496',), 1356510935: ('0.0918605157408496',), 1356510905: ('0.0918605157408496',)} [1356511829, 1356511794, 1356511778, 1356511557, 1356511556, 1356511552, 1356511529, 1356511503, 1356511465, 1356511248, 1356511215, 1356511163, 1356511118, 1356510935, 1356510905] map_info['map_portfolio_photo'] : {22740041: [1356511829, 1356511794, 1356511778, 1356511557, 1356511556, 1356511552, 1356511529, 1356511503, 1356511465, 1356511248, 1356511215, 1356511163, 1356511118, 1356510935, 1356510905, 1356510275, 1356510244, 1356510216, 1356510161, 1356510155, 1356510147]} final : False mtd_id 4302 list_pids : [1356511829, 1356511794, 1356511778, 1356511557, 1356511556, 1356511552, 1356511529, 1356511503, 1356511465, 1356511248, 1356511215, 1356511163, 1356511118, 1356510935, 1356510905] Looping around the photos to save general results len do output : 15 /1356511829.Didn't retrieve data . /1356511794.Didn't retrieve data . /1356511778.Didn't retrieve data . /1356511557.Didn't retrieve data . /1356511556.Didn't retrieve data . /1356511552.Didn't retrieve data . /1356511529.Didn't retrieve data . /1356511503.Didn't retrieve data . /1356511465.Didn't retrieve data . /1356511248.Didn't retrieve data . /1356511215.Didn't retrieve data . /1356511163.Didn't retrieve data . /1356511118.Didn't retrieve data . /1356510935.Didn't retrieve data . /1356510905.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, '2799894') ('4302', '22740041', '1356511829', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511794', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511778', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511557', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511556', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511552', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511529', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511503', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511465', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511248', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511215', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511163', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511118', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356510935', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356510905', None, None, None, None, None, '2799894') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 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', '22740041', '1356511829', '0.0918605157408496', None, None, None, None, '2799894'), ('4302', '22740041', '1356511794', '0.0918605157408496', None, None, None, None, '2799894'), ('4302', '22740041', '1356511778', '0.0918605157408496', None, None, None, None, '2799894'), ('4302', '22740041', '1356511557', '0.0918605157408496', None, None, None, None, '2799894'), ('4302', '22740041', '1356511556', '0.0918605157408496', None, None, None, None, '2799894'), ('4302', '22740041', '1356511552', '0.0918605157408496', None, None, None, None, '2799894'), ('4302', '22740041', '1356511529', '0.0918605157408496', None, None, None, None, '2799894'), ('4302', '22740041', '1356511503', '0.0918605157408496', None, None, None, None, '2799894'), ('4302', '22740041', '1356511465', '0.0918605157408496', None, None, None, None, '2799894'), ('4302', '22740041', '1356511248', '0.0918605157408496', None, None, None, None, '2799894'), ('4302', '22740041', '1356511215', '0.0918605157408496', None, None, None, None, '2799894'), ('4302', '22740041', '1356511163', '0.0918605157408496', None, None, None, None, '2799894'), ('4302', '22740041', '1356511118', '0.0918605157408496', None, None, None, None, '2799894'), ('4302', '22740041', '1356510935', '0.0918605157408496', None, None, None, None, '2799894'), ('4302', '22740041', '1356510905', '0.0918605157408496', None, None, None, None, '2799894')] time used for this insertion : 0.01613783836364746 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06445097923278809 time spend to save output : 0.016807079315185547 total time spend for step 2 : 0.08125805854797363 step3:velours_tree Wed May 7 00:06: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 : {22740041: [{'Carton_gris': 22740060, 'plastique': 22740061, 'flou': 22740062, 'Carton_brun': 22740063, 'metal': 22740064, 'environnement': 22740065, 'Teint_Dans_La_Masse': 22740066, 'kraft': 22740067, 'mal_croppe': 22740068, 'autre_refus': 22740069, 'cartonnette': 22740070, 'papier': 22740071}]} input_args_next_step : {22740041: ()} output_args : {22740041: [{'Carton_gris': 22740060, 'plastique': 22740061, 'flou': 22740062, 'Carton_brun': 22740063, 'metal': 22740064, 'environnement': 22740065, 'Teint_Dans_La_Masse': 22740066, 'kraft': 22740067, 'mal_croppe': 22740068, 'autre_refus': 22740069, 'cartonnette': 22740070, 'papier': 22740071}]} args : 22740041 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_gris': 22740060, 'plastique': 22740061, 'flou': 22740062, 'Carton_brun': 22740063, 'metal': 22740064, 'environnement': 22740065, 'Teint_Dans_La_Masse': 22740066, 'kraft': 22740067, 'mal_croppe': 22740068, 'autre_refus': 22740069, 'cartonnette': 22740070, 'papier': 22740071},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22740041) 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([22740041]) 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.30560779571533203 time spend to save output : 4.076957702636719e-05 total time spend for step 3 : 0.3056485652923584 step4:send_mail_cod Wed May 7 00:07:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ('0.0918605157408496',), 1356511529: ('0.0918605157408496',), 1356511503: ('0.0918605157408496',), 1356511465: ('0.0918605157408496',), 1356511248: ('0.0918605157408496',), 1356511215: ('0.0918605157408496',), 1356511163: ('0.0918605157408496',), 1356511118: ('0.0918605157408496',), 1356510935: ('0.0918605157408496',), 1356510905: ('0.0918605157408496',)} input_args_next_step : {1356511829: ()} output_args : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ('0.0918605157408496',), 1356511529: ('0.0918605157408496',), 1356511503: ('0.0918605157408496',), 1356511465: ('0.0918605157408496',), 1356511248: ('0.0918605157408496',), 1356511215: ('0.0918605157408496',), 1356511163: ('0.0918605157408496',), 1356511118: ('0.0918605157408496',), 1356510935: ('0.0918605157408496',), 1356510905: ('0.0918605157408496',)} args : 1356511829 depend.output_id : 0 input_args_next_step : {1356511829: ('0.0918605157408496',), 1356511794: ()} output_args : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ('0.0918605157408496',), 1356511529: ('0.0918605157408496',), 1356511503: ('0.0918605157408496',), 1356511465: ('0.0918605157408496',), 1356511248: ('0.0918605157408496',), 1356511215: ('0.0918605157408496',), 1356511163: ('0.0918605157408496',), 1356511118: ('0.0918605157408496',), 1356510935: ('0.0918605157408496',), 1356510905: ('0.0918605157408496',)} args : 1356511794 depend.output_id : 0 input_args_next_step : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ()} output_args : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ('0.0918605157408496',), 1356511529: ('0.0918605157408496',), 1356511503: ('0.0918605157408496',), 1356511465: ('0.0918605157408496',), 1356511248: ('0.0918605157408496',), 1356511215: ('0.0918605157408496',), 1356511163: ('0.0918605157408496',), 1356511118: ('0.0918605157408496',), 1356510935: ('0.0918605157408496',), 1356510905: ('0.0918605157408496',)} args : 1356511778 depend.output_id : 0 input_args_next_step : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ()} output_args : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ('0.0918605157408496',), 1356511529: ('0.0918605157408496',), 1356511503: ('0.0918605157408496',), 1356511465: ('0.0918605157408496',), 1356511248: ('0.0918605157408496',), 1356511215: ('0.0918605157408496',), 1356511163: ('0.0918605157408496',), 1356511118: ('0.0918605157408496',), 1356510935: ('0.0918605157408496',), 1356510905: ('0.0918605157408496',)} args : 1356511557 depend.output_id : 0 input_args_next_step : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ()} output_args : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ('0.0918605157408496',), 1356511529: ('0.0918605157408496',), 1356511503: ('0.0918605157408496',), 1356511465: ('0.0918605157408496',), 1356511248: ('0.0918605157408496',), 1356511215: ('0.0918605157408496',), 1356511163: ('0.0918605157408496',), 1356511118: ('0.0918605157408496',), 1356510935: ('0.0918605157408496',), 1356510905: ('0.0918605157408496',)} args : 1356511556 depend.output_id : 0 input_args_next_step : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ()} output_args : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ('0.0918605157408496',), 1356511529: ('0.0918605157408496',), 1356511503: ('0.0918605157408496',), 1356511465: ('0.0918605157408496',), 1356511248: ('0.0918605157408496',), 1356511215: ('0.0918605157408496',), 1356511163: ('0.0918605157408496',), 1356511118: ('0.0918605157408496',), 1356510935: ('0.0918605157408496',), 1356510905: ('0.0918605157408496',)} args : 1356511552 depend.output_id : 0 input_args_next_step : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ('0.0918605157408496',), 1356511529: ()} output_args : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ('0.0918605157408496',), 1356511529: ('0.0918605157408496',), 1356511503: ('0.0918605157408496',), 1356511465: ('0.0918605157408496',), 1356511248: ('0.0918605157408496',), 1356511215: ('0.0918605157408496',), 1356511163: ('0.0918605157408496',), 1356511118: ('0.0918605157408496',), 1356510935: ('0.0918605157408496',), 1356510905: ('0.0918605157408496',)} args : 1356511529 depend.output_id : 0 input_args_next_step : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ('0.0918605157408496',), 1356511529: ('0.0918605157408496',), 1356511503: ()} output_args : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ('0.0918605157408496',), 1356511529: ('0.0918605157408496',), 1356511503: ('0.0918605157408496',), 1356511465: ('0.0918605157408496',), 1356511248: ('0.0918605157408496',), 1356511215: ('0.0918605157408496',), 1356511163: ('0.0918605157408496',), 1356511118: ('0.0918605157408496',), 1356510935: ('0.0918605157408496',), 1356510905: ('0.0918605157408496',)} args : 1356511503 depend.output_id : 0 input_args_next_step : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ('0.0918605157408496',), 1356511529: ('0.0918605157408496',), 1356511503: ('0.0918605157408496',), 1356511465: ()} output_args : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ('0.0918605157408496',), 1356511529: ('0.0918605157408496',), 1356511503: ('0.0918605157408496',), 1356511465: ('0.0918605157408496',), 1356511248: ('0.0918605157408496',), 1356511215: ('0.0918605157408496',), 1356511163: ('0.0918605157408496',), 1356511118: ('0.0918605157408496',), 1356510935: ('0.0918605157408496',), 1356510905: ('0.0918605157408496',)} args : 1356511465 depend.output_id : 0 input_args_next_step : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ('0.0918605157408496',), 1356511529: ('0.0918605157408496',), 1356511503: ('0.0918605157408496',), 1356511465: ('0.0918605157408496',), 1356511248: ()} output_args : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ('0.0918605157408496',), 1356511529: ('0.0918605157408496',), 1356511503: ('0.0918605157408496',), 1356511465: ('0.0918605157408496',), 1356511248: ('0.0918605157408496',), 1356511215: ('0.0918605157408496',), 1356511163: ('0.0918605157408496',), 1356511118: ('0.0918605157408496',), 1356510935: ('0.0918605157408496',), 1356510905: ('0.0918605157408496',)} args : 1356511248 depend.output_id : 0 input_args_next_step : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ('0.0918605157408496',), 1356511529: ('0.0918605157408496',), 1356511503: ('0.0918605157408496',), 1356511465: ('0.0918605157408496',), 1356511248: ('0.0918605157408496',), 1356511215: ()} output_args : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ('0.0918605157408496',), 1356511529: ('0.0918605157408496',), 1356511503: ('0.0918605157408496',), 1356511465: ('0.0918605157408496',), 1356511248: ('0.0918605157408496',), 1356511215: ('0.0918605157408496',), 1356511163: ('0.0918605157408496',), 1356511118: ('0.0918605157408496',), 1356510935: ('0.0918605157408496',), 1356510905: ('0.0918605157408496',)} args : 1356511215 depend.output_id : 0 input_args_next_step : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ('0.0918605157408496',), 1356511529: ('0.0918605157408496',), 1356511503: ('0.0918605157408496',), 1356511465: ('0.0918605157408496',), 1356511248: ('0.0918605157408496',), 1356511215: ('0.0918605157408496',), 1356511163: ()} output_args : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ('0.0918605157408496',), 1356511529: ('0.0918605157408496',), 1356511503: ('0.0918605157408496',), 1356511465: ('0.0918605157408496',), 1356511248: ('0.0918605157408496',), 1356511215: ('0.0918605157408496',), 1356511163: ('0.0918605157408496',), 1356511118: ('0.0918605157408496',), 1356510935: ('0.0918605157408496',), 1356510905: ('0.0918605157408496',)} args : 1356511163 depend.output_id : 0 input_args_next_step : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ('0.0918605157408496',), 1356511529: ('0.0918605157408496',), 1356511503: ('0.0918605157408496',), 1356511465: ('0.0918605157408496',), 1356511248: ('0.0918605157408496',), 1356511215: ('0.0918605157408496',), 1356511163: ('0.0918605157408496',), 1356511118: ()} output_args : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ('0.0918605157408496',), 1356511529: ('0.0918605157408496',), 1356511503: ('0.0918605157408496',), 1356511465: ('0.0918605157408496',), 1356511248: ('0.0918605157408496',), 1356511215: ('0.0918605157408496',), 1356511163: ('0.0918605157408496',), 1356511118: ('0.0918605157408496',), 1356510935: ('0.0918605157408496',), 1356510905: ('0.0918605157408496',)} args : 1356511118 depend.output_id : 0 input_args_next_step : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ('0.0918605157408496',), 1356511529: ('0.0918605157408496',), 1356511503: ('0.0918605157408496',), 1356511465: ('0.0918605157408496',), 1356511248: ('0.0918605157408496',), 1356511215: ('0.0918605157408496',), 1356511163: ('0.0918605157408496',), 1356511118: ('0.0918605157408496',), 1356510935: ()} output_args : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ('0.0918605157408496',), 1356511529: ('0.0918605157408496',), 1356511503: ('0.0918605157408496',), 1356511465: ('0.0918605157408496',), 1356511248: ('0.0918605157408496',), 1356511215: ('0.0918605157408496',), 1356511163: ('0.0918605157408496',), 1356511118: ('0.0918605157408496',), 1356510935: ('0.0918605157408496',), 1356510905: ('0.0918605157408496',)} args : 1356510935 depend.output_id : 0 input_args_next_step : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ('0.0918605157408496',), 1356511529: ('0.0918605157408496',), 1356511503: ('0.0918605157408496',), 1356511465: ('0.0918605157408496',), 1356511248: ('0.0918605157408496',), 1356511215: ('0.0918605157408496',), 1356511163: ('0.0918605157408496',), 1356511118: ('0.0918605157408496',), 1356510935: ('0.0918605157408496',), 1356510905: ()} output_args : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ('0.0918605157408496',), 1356511529: ('0.0918605157408496',), 1356511503: ('0.0918605157408496',), 1356511465: ('0.0918605157408496',), 1356511248: ('0.0918605157408496',), 1356511215: ('0.0918605157408496',), 1356511163: ('0.0918605157408496',), 1356511118: ('0.0918605157408496',), 1356510935: ('0.0918605157408496',), 1356510905: ('0.0918605157408496',)} args : 1356510905 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 : {22740041: [{'Carton_gris': 22740060, 'plastique': 22740061, 'flou': 22740062, 'Carton_brun': 22740063, 'metal': 22740064, 'environnement': 22740065, 'Teint_Dans_La_Masse': 22740066, 'kraft': 22740067, 'mal_croppe': 22740068, 'autre_refus': 22740069, 'cartonnette': 22740070, 'papier': 22740071}]} input_args_next_step : {1356511829: ('0.0918605157408496',), 1356511794: ('0.0918605157408496',), 1356511778: ('0.0918605157408496',), 1356511557: ('0.0918605157408496',), 1356511556: ('0.0918605157408496',), 1356511552: ('0.0918605157408496',), 1356511529: ('0.0918605157408496',), 1356511503: ('0.0918605157408496',), 1356511465: ('0.0918605157408496',), 1356511248: ('0.0918605157408496',), 1356511215: ('0.0918605157408496',), 1356511163: ('0.0918605157408496',), 1356511118: ('0.0918605157408496',), 1356510935: ('0.0918605157408496',), 1356510905: ('0.0918605157408496',), 22740041: ()} output_args : {22740041: [{'Carton_gris': 22740060, 'plastique': 22740061, 'flou': 22740062, 'Carton_brun': 22740063, 'metal': 22740064, 'environnement': 22740065, 'Teint_Dans_La_Masse': 22740066, 'kraft': 22740067, 'mal_croppe': 22740068, 'autre_refus': 22740069, 'cartonnette': 22740070, 'papier': 22740071}]} args : 22740041 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 :16, first value : ('0.0918605157408496',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22740041) 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 (1356511829,1356511794,1356511778,1356511557,1356511556,1356511552,1356511529,1356511503,1356511465,1356511248,1356511215,1356511163,1356511118,1356510935,1356510905) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1356510905 begin to download photo : 1356511215 begin to download photo : 1356511529 begin to download photo : 1356511778 download finish for photo 1356511215 begin to download photo : 1356511248 download finish for photo 1356511778 begin to download photo : 1356511794 download finish for photo 1356510905 begin to download photo : 1356510935 download finish for photo 1356511529 begin to download photo : 1356511552 download finish for photo 1356511248 begin to download photo : 1356511465 download finish for photo 1356511794 begin to download photo : 1356511829 download finish for photo 1356511552 begin to download photo : 1356511556 download finish for photo 1356510935 begin to download photo : 1356511118 download finish for photo 1356511465 begin to download photo : 1356511503 download finish for photo 1356511556 begin to download photo : 1356511557 download finish for photo 1356511118 begin to download photo : 1356511163 download finish for photo 1356511829 download finish for photo 1356511503 download finish for photo 1356511557 download finish for photo 1356511163 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P22740041_07-05-2025_00_07_00.pdf 22740061 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=22740061 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356511952: '1746569112_1951670_1356511215_9cf9a6941e37f919a77705ce49c14c06_rle_crop_3787470597_0.png', 1356511953: '1746569112_1951670_1356511163_c93f08b4a40148b1c62d22f4ef97baab_rle_crop_3787470629_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/1d72da3cd144c969ffccddeb76904596_60175744.png change filename to text .imagette227400611746569220/ imagette227400611746569220/1746569112_1951670_1356511215_9cf9a6941e37f919a77705ce49c14c06_rle_crop_3787470597_0.png.png imagette227400611746569220/1746569112_1951670_1356511163_c93f08b4a40148b1c62d22f4ef97baab_rle_crop_3787470629_0.png.png imagette227400621746569220/ imagette227400641746569220/ imagette227400671746569220/ imagette227400681746569220/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/367ff5f3469b5fc7567716d8f319a552_25105808.png imagette227400611746569220 22740062 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=22740062 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227400621746569220 22740064 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=22740064 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227400641746569220 22740067 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=22740067 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227400671746569220 22740068 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=22740068 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227400681746569220 22740069 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=22740069 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356511941: '1746569112_1951670_1356511215_9cf9a6941e37f919a77705ce49c14c06_rle_crop_3787470592_0.png'} change filename to text .imagette227400691746569220/ imagette227400691746569220/1746569112_1951670_1356511215_9cf9a6941e37f919a77705ce49c14c06_rle_crop_3787470592_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/1529a079bb69d2fb0457f3deed8c4aa6_52507518.png imagette227400691746569220 22740070 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=22740070 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356511949: '1746569112_1951670_1356511215_9cf9a6941e37f919a77705ce49c14c06_rle_crop_3787470598_0.png'} change filename to text .imagette227400701746569220/ imagette227400701746569220/1746569112_1951670_1356511215_9cf9a6941e37f919a77705ce49c14c06_rle_crop_3787470598_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/a0e03b59cb926bfa14c3df16a84dbb40_17870037.png imagette227400701746569220 22740060 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=22740060 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356511944: '1746569112_1951670_1356511163_c93f08b4a40148b1c62d22f4ef97baab_rle_crop_3787470631_0.png', 1356511945: '1746569112_1951670_1356511163_c93f08b4a40148b1c62d22f4ef97baab_rle_crop_3787470632_0.png', 1356511946: '1746569112_1951670_1356511118_e1e18dc6be5597d58fe5637f4d260fbe_rle_crop_3787470676_0.png', 1356511947: '1746569112_1951670_1356511118_e1e18dc6be5597d58fe5637f4d260fbe_rle_crop_3787470679_0.png', 1356511948: '1746569112_1951670_1356510935_1ee6b89404b75172d08ce3d59f254d5c_rle_crop_3787470787_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/c82065929d6fd00f3935128ba5f8a59a_1392089.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/00a0276d67153c904df99b2c69a2529f_5973101.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/97a4055d47901f84184749781dc01ce2_99000550.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/d3f8a12f54da3f4137169da5cad06f6b_7745043.png change filename to text .imagette227400601746569220/ imagette227400601746569220/1746569112_1951670_1356511118_e1e18dc6be5597d58fe5637f4d260fbe_rle_crop_3787470676_0.png.png imagette227400601746569220/1746569112_1951670_1356511118_e1e18dc6be5597d58fe5637f4d260fbe_rle_crop_3787470679_0.png.png imagette227400601746569220/1746569112_1951670_1356511163_c93f08b4a40148b1c62d22f4ef97baab_rle_crop_3787470632_0.png.png imagette227400601746569220/1746569112_1951670_1356510935_1ee6b89404b75172d08ce3d59f254d5c_rle_crop_3787470787_0.png.png imagette227400601746569220/1746569112_1951670_1356511163_c93f08b4a40148b1c62d22f4ef97baab_rle_crop_3787470631_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/c1cd47fa833b120b7525c14e70260699_72432474.png imagette227400601746569220 22740063 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=22740063 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356511950: '1746569112_1951670_1356511215_9cf9a6941e37f919a77705ce49c14c06_rle_crop_3787470596_0.png', 1356511951: '1746569112_1951670_1356510935_1ee6b89404b75172d08ce3d59f254d5c_rle_crop_3787470785_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/53aa76770c4691411f68f669060d1fa0_13227203.png change filename to text .imagette227400631746569221/ imagette227400631746569221/1746569112_1951670_1356510935_1ee6b89404b75172d08ce3d59f254d5c_rle_crop_3787470785_0.png.png imagette227400631746569221/1746569112_1951670_1356511215_9cf9a6941e37f919a77705ce49c14c06_rle_crop_3787470596_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/7aacb43184bf18b34ee11c003e15327a_87574913.png imagette227400631746569221 22740066 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=22740066 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356511939: '1746569112_1951670_1356511118_e1e18dc6be5597d58fe5637f4d260fbe_rle_crop_3787470680_0.png', 1356511940: '1746569112_1951670_1356510905_a98a9c6d8c7dc3d98bcdee47f689ead3_rle_crop_3787470846_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/0c8a011d0586293869c21e25495e6b13_71063832.png change filename to text .imagette227400661746569221/ imagette227400661746569221/1746569112_1951670_1356510905_a98a9c6d8c7dc3d98bcdee47f689ead3_rle_crop_3787470846_0.png.png imagette227400661746569221/1746569112_1951670_1356511118_e1e18dc6be5597d58fe5637f4d260fbe_rle_crop_3787470680_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/979982e552dcd1771e541a9c1edaa064_35236168.png imagette227400661746569221 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22740041 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22740072,22740073,22740074,22740075,22740076,22740077,22740078,22740079,22740080,22740081,22740082,22740083?tags=Carton_gris,plastique,flou,Carton_brun,metal,environnement,Teint_Dans_La_Masse,kraft,mal_croppe,autre_refus,cartonnette,papier your option no_mail is active, we will not send the real mail to your client args[1356511829] : ('0.0918605157408496',) no score found for photo 1356511829 We are sending mail with results at report@fotonower.com args[1356511794] : ('0.0918605157408496',) no score found for photo 1356511794 We are sending mail with results at report@fotonower.com args[1356511778] : ('0.0918605157408496',) no score found for photo 1356511778 We are sending mail with results at report@fotonower.com args[1356511557] : ('0.0918605157408496',) no score found for photo 1356511557 We are sending mail with results at report@fotonower.com args[1356511556] : ('0.0918605157408496',) no score found for photo 1356511556 We are sending mail with results at report@fotonower.com args[1356511552] : ('0.0918605157408496',) no score found for photo 1356511552 We are sending mail with results at report@fotonower.com args[1356511529] : ('0.0918605157408496',) no score found for photo 1356511529 We are sending mail with results at report@fotonower.com args[1356511503] : ('0.0918605157408496',) no score found for photo 1356511503 We are sending mail with results at report@fotonower.com args[1356511465] : ('0.0918605157408496',) no score found for photo 1356511465 We are sending mail with results at report@fotonower.com args[1356511248] : ('0.0918605157408496',) no score found for photo 1356511248 We are sending mail with results at report@fotonower.com args[1356511215] : ('0.0918605157408496',) no score found for photo 1356511215 We are sending mail with results at report@fotonower.com args[1356511163] : ('0.0918605157408496',) no score found for photo 1356511163 We are sending mail with results at report@fotonower.com args[1356511118] : ('0.0918605157408496',) no score found for photo 1356511118 We are sending mail with results at report@fotonower.com args[1356510935] : ('0.0918605157408496',) no score found for photo 1356510935 We are sending mail with results at report@fotonower.com args[1356510905] : ('0.0918605157408496',) no score found for photo 1356510905 We are sending mail with results at report@fotonower.com refus_total : 0.0918605157408496 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=22740041 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_P22740041_07-05-2025_00_07_00.pdf results_Auto_P22740041_07-05-2025_00_07_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22740041_07-05-2025_00_07_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','22740041','results_Auto_P22740041_07-05-2025_00_07_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22740041_07-05-2025_00_07_00.pdf','pdf','','0.17','0.0918605157408496') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22740041]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1356511829, 1356511794, 1356511778, 1356511557, 1356511556, 1356511552, 1356511529, 1356511503, 1356511465, 1356511248, 1356511215, 1356511163, 1356511118, 1356510935, 1356510905] map_info['map_portfolio_photo'] : {22740041: [1356511829, 1356511794, 1356511778, 1356511557, 1356511556, 1356511552, 1356511529, 1356511503, 1356511465, 1356511248, 1356511215, 1356511163, 1356511118, 1356510935, 1356510905, 1356510275, 1356510244, 1356510216, 1356510161, 1356510155, 1356510147]} final : False mtd_id 4302 list_pids : [1356511829, 1356511794, 1356511778, 1356511557, 1356511556, 1356511552, 1356511529, 1356511503, 1356511465, 1356511248, 1356511215, 1356511163, 1356511118, 1356510935, 1356510905] 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, '2799894') ('4302', '22740041', '1356511829', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511794', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511778', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511557', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511556', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511552', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511529', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511503', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511465', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511248', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511215', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511163', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511118', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356510935', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356510905', None, None, None, None, None, '2799894') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22740041', '1356511829', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511794', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511778', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511557', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511556', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511552', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511529', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511503', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511465', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511248', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511215', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511163', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511118', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356510935', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356510905', None, None, None, None, None, '2799894')] time used for this insertion : 0.019247770309448242 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.5804555416107178 time spend to save output : 0.01953911781311035 total time spend for step 4 : 2.599994659423828 step5:split_time_score Wed May 7 00:07: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 : ['22740041'] 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 : [('22740041',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22740041) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1356511778: {'path': 'temp/1746569220_2651817_1356511778_49f7db32bfdd838dab89c878396ccb00.jpg', 'extension': 'jpg'}, 1356511794: {'path': 'temp/1746569220_2651817_1356511794_5fc9af5c05e709025550ad0e68c44331.jpg', 'extension': 'jpg'}, 1356511829: {'path': 'temp/1746569220_2651817_1356511829_dd8f8fb6ff28d0f5da23afddbdf78633.jpg', 'extension': 'jpg'}, 1356511215: {'path': 'temp/1746569220_2651817_1356511215_9cf9a6941e37f919a77705ce49c14c06.jpg', 'extension': 'jpg'}, 1356511248: {'path': 'temp/1746569220_2651817_1356511248_f830cbc5e66b839442580416d87aa912.jpg', 'extension': 'jpg'}, 1356511465: {'path': 'temp/1746569220_2651817_1356511465_05a4e6d2fb0eab3d1b4259108aa9bd48.jpg', 'extension': 'jpg'}, 1356511503: {'path': 'temp/1746569220_2651817_1356511503_ef6ae7a0f6fc40ee044c2cab9839ce5e.jpg', 'extension': 'jpg'}, 1356511529: {'path': 'temp/1746569220_2651817_1356511529_21828a073d5e96c270de1f02c9beabfd.jpg', 'extension': 'jpg'}, 1356511552: {'path': 'temp/1746569220_2651817_1356511552_f37a2906d5367aead6f0ba6916046609.jpg', 'extension': 'jpg'}, 1356511556: {'path': 'temp/1746569220_2651817_1356511556_4adbf0b974f585ad78988b7d6264cabb.jpg', 'extension': 'jpg'}, 1356511557: {'path': 'temp/1746569220_2651817_1356511557_6b0d8484ef5ff2a67441183afcae7945.jpg', 'extension': 'jpg'}, 1356510905: {'path': 'temp/1746569220_2651817_1356510905_a98a9c6d8c7dc3d98bcdee47f689ead3.jpg', 'extension': 'jpg'}, 1356510935: {'path': 'temp/1746569220_2651817_1356510935_1ee6b89404b75172d08ce3d59f254d5c.jpg', 'extension': 'jpg'}, 1356511118: {'path': 'temp/1746569220_2651817_1356511118_e1e18dc6be5597d58fe5637f4d260fbe.jpg', 'extension': 'jpg'}, 1356511163: {'path': 'temp/1746569220_2651817_1356511163_c93f08b4a40148b1c62d22f4ef97baab.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 = 22740041; (('arc_en_ciel_jrm_live',),) 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 = 22740041 group by h (('00', 21),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=22740041 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 (22740041) 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 (22740041) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07052025 22740041 Nombre de photos uploadées : 21 / 23040 (0%) 07052025 22740041 Nombre de photos taguées (types de déchets): 0 / 21 (0%) 07052025 22740041 Nombre de photos taguées (volume) : 0 / 21 (0%) [{'photo_id': 1356510161, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/9cea9b70ade4fa402178e34cae3cd3ab.jpg', 'username': None, 'uploaded_at': 1746568868, 'text': 'image_07052025_00_00_14_10168.jpg'}, {'photo_id': 1356510155, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/8bdce8262febbc01097c14a384cf6abc.jpg', 'username': None, 'uploaded_at': 1746568868, 'text': 'image_07052025_00_00_24_10149.jpg'}, {'photo_id': 1356510147, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/54693747a22b617e007f6764bac9c4b6.jpg', 'username': None, 'uploaded_at': 1746568868, 'text': 'image_07052025_00_00_34_10140.jpg'}, {'photo_id': 1356510275, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/a398335447f130752f11382128591c08.jpg', 'username': None, 'uploaded_at': 1746568927, 'text': 'image_07052025_00_00_54_10138.jpg'}] 0 [] elapsed_time : load_data_split_time_score 6.9141387939453125e-06 elapsed_time : order_list_meta_photo_and_scores 1.1682510375976562e-05 ????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0006916522979736328 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 22740041, '2025-05-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1780886,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03419947624206543 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= 1780886 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1780886, 'dashboard_run_id': 1788341, 'mtr_portfolio_id': 22740041, 'dashboard_result_id': 10356862, '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_P22740041_07-05-2025_00_03_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22740060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22740061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22740062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22740063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22740064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22740065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22740066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22740067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22740068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22740069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22740070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22740071, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22740041 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': 2799894, 'mtr_portfolio_id': 22740041, 'created_at': datetime.datetime(2025, 5, 7, 0, 6, 59), 'result': '0.0918605157408496', 'result_long': None, 'result_double': None}] Qualite : 0.0918605157408496 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22740041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22740041_07-05-2025_00_07_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22740041 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_P22740041_07-05-2025_00_07_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22740060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22740061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22740062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22740063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22740064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22740065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22740066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22740067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22740068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22740069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22740070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22740071, 'pht': 3726}}" where mtr_portfolio_id = 22740041 and dashboard_run_id = 1788341 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`=22740041 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10356862, 0.0918605157408496, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22740041_07-05-2025_00_07_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22740060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22740061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22740062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22740063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22740064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22740065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22740066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22740067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22740068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22740069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22740070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22740071, '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 (22740041) result : ((1356510147,), (1356510155,), (1356510161,), (1356510216,), (1356510244,), (1356510275,), (1356510905,), (1356510935,), (1356511118,), (1356511163,), (1356511215,), (1356511248,), (1356511465,), (1356511503,), (1356511529,), (1356511552,), (1356511556,), (1356511557,), (1356511778,), (1356511794,), (1356511829,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07052025': {'nb_upload': 21, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22740041]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1356511829, 1356511794, 1356511778, 1356511557, 1356511556, 1356511552, 1356511529, 1356511503, 1356511465, 1356511248, 1356511215, 1356511163, 1356511118, 1356510935, 1356510905] map_info['map_portfolio_photo'] : {22740041: [1356511829, 1356511794, 1356511778, 1356511557, 1356511556, 1356511552, 1356511529, 1356511503, 1356511465, 1356511248, 1356511215, 1356511163, 1356511118, 1356510935, 1356510905, 1356510275, 1356510244, 1356510216, 1356510161, 1356510155, 1356510147]} final : True mtd_id 4302 list_pids : [1356511829, 1356511794, 1356511778, 1356511557, 1356511556, 1356511552, 1356511529, 1356511503, 1356511465, 1356511248, 1356511215, 1356511163, 1356511118, 1356510935, 1356510905] Looping around the photos to save general results len do output : 1 /22740041Didn'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, '2799894') ('4302', '22740041', '1356511829', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511794', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511778', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511557', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511556', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511552', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511529', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511503', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511465', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511248', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511215', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511163', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356511118', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356510935', None, None, None, None, None, '2799894') ('4302', None, None, None, None, None, None, None, '2799894') ('4302', '22740041', '1356510905', None, None, None, None, None, '2799894') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22740041', 'None', None, None, None, None, '2799894'), ('4302', '22740041', '1356511829', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511794', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511778', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511557', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511556', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511552', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511529', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511503', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511465', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511248', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511215', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511163', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356511118', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356510935', None, None, None, None, None, '2799894'), ('4302', '22740041', '1356510905', None, None, None, None, None, '2799894')] time used for this insertion : 0.018900632858276367 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.18625164031982422 time spend to save output : 0.019144058227539062 total time spend for step 5 : 0.20539569854736328 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 (2799894) 2.14user 2.37system 0:07.82elapsed 57%CPU (0avgtext+0avgdata 161720maxresident)k 5344inputs+11320outputs (53major+64843minor)pagefaults 0swaps