SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21708664) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21708597) result : ((1347300253,), (1347300339,), (1347300366,), (1347300408,), (1347300537,), (1347300558,), (1347300576,), (1347300584,), (1347300594,), (1347300603,), (1347300642,), (1347300652,), (1347300654,), (1347300659,), (1347300663,), (1347300825,), (1347300832,), (1347300850,), (1347300861,), (1347300863,), (1347300927,), (1347300938,), (1347300947,), (1347300960,), (1347300997,), (1347301002,), (1347301286,), (1347301308,), (1347301318,), (1347301327,), (1347301333,), (1347301415,), (1347301421,), (1347301427,), (1347301430,), (1347301435,)) 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 21708665 , 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=21708597 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 (21708665) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21708597) result : ((1347300253,), (1347300339,), (1347300366,), (1347300408,), (1347300537,), (1347300558,), (1347300576,), (1347300584,), (1347300594,), (1347300603,), (1347300642,), (1347300652,), (1347300654,), (1347300659,), (1347300663,), (1347300825,), (1347300832,), (1347300850,), (1347300861,), (1347300863,), (1347300927,), (1347300938,), (1347300947,), (1347300960,), (1347300997,), (1347301002,), (1347301286,), (1347301308,), (1347301318,), (1347301327,), (1347301333,), (1347301415,), (1347301421,), (1347301427,), (1347301430,), (1347301435,)) 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 21708666 , 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=21708597 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 (21708666) result : ((1347301314,), (1347301315,), (1347301316,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21708597) result : ((1347300253,), (1347300339,), (1347300366,), (1347300408,), (1347300537,), (1347300558,), (1347300576,), (1347300584,), (1347300594,), (1347300603,), (1347300642,), (1347300652,), (1347300654,), (1347300659,), (1347300663,), (1347300825,), (1347300832,), (1347300850,), (1347300861,), (1347300863,), (1347300927,), (1347300938,), (1347300947,), (1347300960,), (1347300997,), (1347301002,), (1347301286,), (1347301308,), (1347301318,), (1347301327,), (1347301333,), (1347301415,), (1347301421,), (1347301427,), (1347301430,), (1347301435,)) 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 21708667 , 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=21708597 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_gris' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21708667) result : ((1347301284,), (1347301311,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21708597) result : ((1347300253,), (1347300339,), (1347300366,), (1347300408,), (1347300537,), (1347300558,), (1347300576,), (1347300584,), (1347300594,), (1347300603,), (1347300642,), (1347300652,), (1347300654,), (1347300659,), (1347300663,), (1347300825,), (1347300832,), (1347300850,), (1347300861,), (1347300863,), (1347300927,), (1347300938,), (1347300947,), (1347300960,), (1347300997,), (1347301002,), (1347301286,), (1347301308,), (1347301318,), (1347301327,), (1347301333,), (1347301415,), (1347301421,), (1347301427,), (1347301430,), (1347301435,)) 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 21708668 , 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=21708597 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 (21708668) result : ((1347301024,), (1347301025,), (1347301289,), (1347301290,), (1347301291,), (1347301293,), (1347301295,), (1347301296,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21708597) result : ((1347300253,), (1347300339,), (1347300366,), (1347300408,), (1347300537,), (1347300558,), (1347300576,), (1347300584,), (1347300594,), (1347300603,), (1347300642,), (1347300652,), (1347300654,), (1347300659,), (1347300663,), (1347300825,), (1347300832,), (1347300850,), (1347300861,), (1347300863,), (1347300927,), (1347300938,), (1347300947,), (1347300960,), (1347300997,), (1347301002,), (1347301286,), (1347301308,), (1347301318,), (1347301327,), (1347301333,), (1347301415,), (1347301421,), (1347301427,), (1347301430,), (1347301435,)) 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 21708669 , 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=21708597 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 (21708669) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21708597) result : ((1347300253,), (1347300339,), (1347300366,), (1347300408,), (1347300537,), (1347300558,), (1347300576,), (1347300584,), (1347300594,), (1347300603,), (1347300642,), (1347300652,), (1347300654,), (1347300659,), (1347300663,), (1347300825,), (1347300832,), (1347300850,), (1347300861,), (1347300863,), (1347300927,), (1347300938,), (1347300947,), (1347300960,), (1347300997,), (1347301002,), (1347301286,), (1347301308,), (1347301318,), (1347301327,), (1347301333,), (1347301415,), (1347301421,), (1347301427,), (1347301430,), (1347301435,)) 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 21708670 , 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=21708597 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 (21708670) result : ((1347301026,), (1347301285,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21708597) result : ((1347300253,), (1347300339,), (1347300366,), (1347300408,), (1347300537,), (1347300558,), (1347300576,), (1347300584,), (1347300594,), (1347300603,), (1347300642,), (1347300652,), (1347300654,), (1347300659,), (1347300663,), (1347300825,), (1347300832,), (1347300850,), (1347300861,), (1347300863,), (1347300927,), (1347300938,), (1347300947,), (1347300960,), (1347300997,), (1347301002,), (1347301286,), (1347301308,), (1347301318,), (1347301327,), (1347301333,), (1347301415,), (1347301421,), (1347301427,), (1347301430,), (1347301435,)) 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 21708671 , 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=21708597 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 (21708671) result : ((1347301307,), (1347301309,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21708597) result : ((1347300253,), (1347300339,), (1347300366,), (1347300408,), (1347300537,), (1347300558,), (1347300576,), (1347300584,), (1347300594,), (1347300603,), (1347300642,), (1347300652,), (1347300654,), (1347300659,), (1347300663,), (1347300825,), (1347300832,), (1347300850,), (1347300861,), (1347300863,), (1347300927,), (1347300938,), (1347300947,), (1347300960,), (1347300997,), (1347301002,), (1347301286,), (1347301308,), (1347301318,), (1347301327,), (1347301333,), (1347301415,), (1347301421,), (1347301427,), (1347301430,), (1347301435,)) 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 21708672 , 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=21708597 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 (21708672) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21708597) result : ((1347300253,), (1347300339,), (1347300366,), (1347300408,), (1347300537,), (1347300558,), (1347300576,), (1347300584,), (1347300594,), (1347300603,), (1347300642,), (1347300652,), (1347300654,), (1347300659,), (1347300663,), (1347300825,), (1347300832,), (1347300850,), (1347300861,), (1347300863,), (1347300927,), (1347300938,), (1347300947,), (1347300960,), (1347300997,), (1347301002,), (1347301286,), (1347301308,), (1347301318,), (1347301327,), (1347301333,), (1347301415,), (1347301421,), (1347301427,), (1347301430,), (1347301435,)) 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 21708673 , 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=21708597 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 (21708673) result : ((1347301287,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21708597) result : ((1347300253,), (1347300339,), (1347300366,), (1347300408,), (1347300537,), (1347300558,), (1347300576,), (1347300584,), (1347300594,), (1347300603,), (1347300642,), (1347300652,), (1347300654,), (1347300659,), (1347300663,), (1347300825,), (1347300832,), (1347300850,), (1347300861,), (1347300863,), (1347300927,), (1347300938,), (1347300947,), (1347300960,), (1347300997,), (1347301002,), (1347301286,), (1347301308,), (1347301318,), (1347301327,), (1347301333,), (1347301415,), (1347301421,), (1347301427,), (1347301430,), (1347301435,)) 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 21708674 , 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=21708597 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 (21708674) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21708597) result : ((1347300253,), (1347300339,), (1347300366,), (1347300408,), (1347300537,), (1347300558,), (1347300576,), (1347300584,), (1347300594,), (1347300603,), (1347300642,), (1347300652,), (1347300654,), (1347300659,), (1347300663,), (1347300825,), (1347300832,), (1347300850,), (1347300861,), (1347300863,), (1347300927,), (1347300938,), (1347300947,), (1347300960,), (1347300997,), (1347301002,), (1347301286,), (1347301308,), (1347301318,), (1347301327,), (1347301333,), (1347301415,), (1347301421,), (1347301427,), (1347301430,), (1347301435,)) 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 21708675 , 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=21708597 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 (21708675) result : ((1347301317,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21708597) result : ((1347300253,), (1347300339,), (1347300366,), (1347300408,), (1347300537,), (1347300558,), (1347300576,), (1347300584,), (1347300594,), (1347300603,), (1347300642,), (1347300652,), (1347300654,), (1347300659,), (1347300663,), (1347300825,), (1347300832,), (1347300850,), (1347300861,), (1347300863,), (1347300927,), (1347300938,), (1347300947,), (1347300960,), (1347300997,), (1347301002,), (1347301286,), (1347301308,), (1347301318,), (1347301327,), (1347301333,), (1347301415,), (1347301421,), (1347301427,), (1347301430,), (1347301435,)) 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`=21708597 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','metal','environnement','cartonnette','Carton_brun','Carton_gris','papier','mal_croppe','flou','Teint_Dans_La_Masse','autre_refus','kraft')) 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`=21708597 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('plastique','metal','environnement','cartonnette','Carton_brun','Carton_gris','papier','mal_croppe','flou','Teint_Dans_La_Masse','autre_refus','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'environnement': {'main_port_id': 21708597, 'sub_port_id': 21708677, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14237628, 'last_updated_at': datetime.datetime(2025, 3, 25, 20, 49, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 20, 49, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 20, 49, 31)}, 'mal_croppe': {'main_port_id': 21708597, 'sub_port_id': 21708678, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14237629, 'last_updated_at': datetime.datetime(2025, 3, 25, 20, 49, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 20, 49, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 20, 49, 31)}, 'cartonnette': {'main_port_id': 21708597, 'sub_port_id': 21708679, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14237630, 'last_updated_at': datetime.datetime(2025, 3, 25, 20, 49, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 20, 49, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 20, 49, 31)}, 'Carton_gris': {'main_port_id': 21708597, 'sub_port_id': 21708680, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14237631, 'last_updated_at': datetime.datetime(2025, 3, 25, 20, 49, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 20, 49, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 20, 49, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 21708597, 'sub_port_id': 21708681, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14237632, 'last_updated_at': datetime.datetime(2025, 3, 25, 20, 49, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 20, 49, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 20, 49, 31)}, 'kraft': {'main_port_id': 21708597, 'sub_port_id': 21708682, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14237633, 'last_updated_at': datetime.datetime(2025, 3, 25, 20, 49, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 20, 49, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 20, 49, 31)}, 'plastique': {'main_port_id': 21708597, 'sub_port_id': 21708683, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14237634, 'last_updated_at': datetime.datetime(2025, 3, 25, 20, 49, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 20, 49, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 20, 49, 31)}, 'autre_refus': {'main_port_id': 21708597, 'sub_port_id': 21708684, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14237635, 'last_updated_at': datetime.datetime(2025, 3, 25, 20, 49, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 20, 49, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 20, 49, 31)}, 'flou': {'main_port_id': 21708597, 'sub_port_id': 21708685, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14237636, 'last_updated_at': datetime.datetime(2025, 3, 25, 20, 49, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 20, 49, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 20, 49, 31)}, 'metal': {'main_port_id': 21708597, 'sub_port_id': 21708686, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14237637, 'last_updated_at': datetime.datetime(2025, 3, 25, 20, 49, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 20, 49, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 20, 49, 31)}, 'papier': {'main_port_id': 21708597, 'sub_port_id': 21708687, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14237638, 'last_updated_at': datetime.datetime(2025, 3, 25, 20, 49, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 20, 49, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 20, 49, 31)}, 'Carton_brun': {'main_port_id': 21708597, 'sub_port_id': 21708688, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14237639, 'last_updated_at': datetime.datetime(2025, 3, 25, 20, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 20, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 20, 49, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21708677,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21708664 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21708678,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21708665 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21708679,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21708666 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21708680,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21708667 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21708681,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21708668 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21708682,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21708669 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21708683,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21708670 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21708684,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21708671 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21708685,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21708672 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21708686,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21708673 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21708687,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21708674 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21708688,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21708675 lien utilise dans velours : https://www.fotonower.com/velours/21708677,21708678,21708679,21708680,21708681,21708682,21708683,21708684,21708685,21708686,21708687,21708688?tags=environnement,mal_croppe,cartonnette,Carton_gris,Teint_Dans_La_Masse,kraft,plastique,autre_refus,flou,metal,papier,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21708597]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1347301435, 1347301430, 1347301427, 1347301421, 1347301415] map_info['map_portfolio_photo'] : {21708597: [1347301435, 1347301430, 1347301427, 1347301421, 1347301415, 1347301333, 1347301327, 1347301318, 1347301308, 1347301286, 1347301002, 1347300997, 1347300960, 1347300947, 1347300938, 1347300927, 1347300863, 1347300861, 1347300850, 1347300832, 1347300825, 1347300663, 1347300659, 1347300654, 1347300652, 1347300642, 1347300603, 1347300594, 1347300584, 1347300576, 1347300558, 1347300537, 1347300408, 1347300366, 1347300339, 1347300253]} final : False mtd_id 4302 list_pids : [1347301435, 1347301430, 1347301427, 1347301421, 1347301415] Looping around the photos to save general results len do output : 1 /21708597. 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, '2690616') ('4302', '21708597', '1347301435', None, None, None, None, None, '2690616') ('4302', None, None, None, None, None, None, None, '2690616') ('4302', '21708597', '1347301430', None, None, None, None, None, '2690616') ('4302', None, None, None, None, None, None, None, '2690616') ('4302', '21708597', '1347301427', None, None, None, None, None, '2690616') ('4302', None, None, None, None, None, None, None, '2690616') ('4302', '21708597', '1347301421', None, None, None, None, None, '2690616') ('4302', None, None, None, None, None, None, None, '2690616') ('4302', '21708597', '1347301415', None, None, None, None, None, '2690616') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21708597', "{'environnement': 21708664, 'mal_croppe': 21708665, 'cartonnette': 21708666, 'Carton_gris': 21708667, 'Teint_Dans_La_Masse': 21708668, 'kraft': 21708669, 'plastique': 21708670, 'autre_refus': 21708671, 'flou': 21708672, 'metal': 21708673, 'papier': 21708674, 'Carton_brun': 21708675}", None, None, None, None, '2690616'), ('4302', '21708597', '1347301435', None, None, None, None, None, '2690616'), ('4302', '21708597', '1347301430', None, None, None, None, None, '2690616'), ('4302', '21708597', '1347301427', None, None, None, None, None, '2690616'), ('4302', '21708597', '1347301421', None, None, None, None, None, '2690616'), ('4302', '21708597', '1347301415', None, None, None, None, None, '2690616')] time used for this insertion : 0.012759685516357422 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.6832695007324219 time spend to save output : 0.013015031814575195 total time spend for step 1 : 1.696284532546997 step2:final Tue Mar 25 20:53:57 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 (21708597) 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 21708597 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1347300408,1347300366,1347300339,1347300253,1347300603,1347300594,1347300584,1347300576,1347300558,1347300537,1347300663,1347300659,1347300654,1347300652,1347300642,1347300863,1347300861,1347300850,1347300832,1347300825,1347301002,1347300997,1347300960,1347300947,1347300938,1347300927,1347301333,1347301327,1347301318,1347301308,1347301286,1347301435,1347301430,1347301427,1347301421,1347301415); 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([21708597]) Inside saveOutput : final : False verbose : True original output for save of step final : {1347301435: ('0.05485327100100239',), 1347301430: ('0.05485327100100239',), 1347301427: ('0.05485327100100239',), 1347301421: ('0.05485327100100239',), 1347301415: ('0.05485327100100239',)} new output for save of step final : {1347301435: ('0.05485327100100239',), 1347301430: ('0.05485327100100239',), 1347301427: ('0.05485327100100239',), 1347301421: ('0.05485327100100239',), 1347301415: ('0.05485327100100239',)} [1347301435, 1347301430, 1347301427, 1347301421, 1347301415] map_info['map_portfolio_photo'] : {21708597: [1347301435, 1347301430, 1347301427, 1347301421, 1347301415, 1347301333, 1347301327, 1347301318, 1347301308, 1347301286, 1347301002, 1347300997, 1347300960, 1347300947, 1347300938, 1347300927, 1347300863, 1347300861, 1347300850, 1347300832, 1347300825, 1347300663, 1347300659, 1347300654, 1347300652, 1347300642, 1347300603, 1347300594, 1347300584, 1347300576, 1347300558, 1347300537, 1347300408, 1347300366, 1347300339, 1347300253]} final : False mtd_id 4302 list_pids : [1347301435, 1347301430, 1347301427, 1347301421, 1347301415] Looping around the photos to save general results len do output : 5 /1347301435.Didn't retrieve data . /1347301430.Didn't retrieve data . /1347301427.Didn't retrieve data . /1347301421.Didn't retrieve data . /1347301415.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, '2690616') ('4302', '21708597', '1347301435', None, None, None, None, None, '2690616') ('4302', None, None, None, None, None, None, None, '2690616') ('4302', '21708597', '1347301430', None, None, None, None, None, '2690616') ('4302', None, None, None, None, None, None, None, '2690616') ('4302', '21708597', '1347301427', None, None, None, None, None, '2690616') ('4302', None, None, None, None, None, None, None, '2690616') ('4302', '21708597', '1347301421', None, None, None, None, None, '2690616') ('4302', None, None, None, None, None, None, None, '2690616') ('4302', '21708597', '1347301415', None, None, None, None, None, '2690616') 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', '21708597', '1347301435', '0.05485327100100239', None, None, None, None, '2690616'), ('4302', '21708597', '1347301430', '0.05485327100100239', None, None, None, None, '2690616'), ('4302', '21708597', '1347301427', '0.05485327100100239', None, None, None, None, '2690616'), ('4302', '21708597', '1347301421', '0.05485327100100239', None, None, None, None, '2690616'), ('4302', '21708597', '1347301415', '0.05485327100100239', None, None, None, None, '2690616')] time used for this insertion : 0.012695789337158203 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06494688987731934 time spend to save output : 0.013035297393798828 total time spend for step 2 : 0.07798218727111816 step3:velours_tree Tue Mar 25 20:53:57 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 : {21708597: [{'environnement': 21708664, 'mal_croppe': 21708665, 'cartonnette': 21708666, 'Carton_gris': 21708667, 'Teint_Dans_La_Masse': 21708668, 'kraft': 21708669, 'plastique': 21708670, 'autre_refus': 21708671, 'flou': 21708672, 'metal': 21708673, 'papier': 21708674, 'Carton_brun': 21708675}]} input_args_next_step : {21708597: ()} output_args : {21708597: [{'environnement': 21708664, 'mal_croppe': 21708665, 'cartonnette': 21708666, 'Carton_gris': 21708667, 'Teint_Dans_La_Masse': 21708668, 'kraft': 21708669, 'plastique': 21708670, 'autre_refus': 21708671, 'flou': 21708672, 'metal': 21708673, 'papier': 21708674, 'Carton_brun': 21708675}]} args : 21708597 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 : ({'environnement': 21708664, 'mal_croppe': 21708665, 'cartonnette': 21708666, 'Carton_gris': 21708667, 'Teint_Dans_La_Masse': 21708668, 'kraft': 21708669, 'plastique': 21708670, 'autre_refus': 21708671, 'flou': 21708672, 'metal': 21708673, 'papier': 21708674, 'Carton_brun': 21708675},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21708597) 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([21708597]) 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.32084083557128906 time spend to save output : 8.702278137207031e-05 total time spend for step 3 : 0.32092785835266113 step4:send_mail_cod Tue Mar 25 20:53:57 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 : {1347301435: ('0.05485327100100239',), 1347301430: ('0.05485327100100239',), 1347301427: ('0.05485327100100239',), 1347301421: ('0.05485327100100239',), 1347301415: ('0.05485327100100239',)} input_args_next_step : {1347301435: ()} output_args : {1347301435: ('0.05485327100100239',), 1347301430: ('0.05485327100100239',), 1347301427: ('0.05485327100100239',), 1347301421: ('0.05485327100100239',), 1347301415: ('0.05485327100100239',)} args : 1347301435 depend.output_id : 0 input_args_next_step : {1347301435: ('0.05485327100100239',), 1347301430: ()} output_args : {1347301435: ('0.05485327100100239',), 1347301430: ('0.05485327100100239',), 1347301427: ('0.05485327100100239',), 1347301421: ('0.05485327100100239',), 1347301415: ('0.05485327100100239',)} args : 1347301430 depend.output_id : 0 input_args_next_step : {1347301435: ('0.05485327100100239',), 1347301430: ('0.05485327100100239',), 1347301427: ()} output_args : {1347301435: ('0.05485327100100239',), 1347301430: ('0.05485327100100239',), 1347301427: ('0.05485327100100239',), 1347301421: ('0.05485327100100239',), 1347301415: ('0.05485327100100239',)} args : 1347301427 depend.output_id : 0 input_args_next_step : {1347301435: ('0.05485327100100239',), 1347301430: ('0.05485327100100239',), 1347301427: ('0.05485327100100239',), 1347301421: ()} output_args : {1347301435: ('0.05485327100100239',), 1347301430: ('0.05485327100100239',), 1347301427: ('0.05485327100100239',), 1347301421: ('0.05485327100100239',), 1347301415: ('0.05485327100100239',)} args : 1347301421 depend.output_id : 0 input_args_next_step : {1347301435: ('0.05485327100100239',), 1347301430: ('0.05485327100100239',), 1347301427: ('0.05485327100100239',), 1347301421: ('0.05485327100100239',), 1347301415: ()} output_args : {1347301435: ('0.05485327100100239',), 1347301430: ('0.05485327100100239',), 1347301427: ('0.05485327100100239',), 1347301421: ('0.05485327100100239',), 1347301415: ('0.05485327100100239',)} args : 1347301415 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 : {21708597: [{'environnement': 21708664, 'mal_croppe': 21708665, 'cartonnette': 21708666, 'Carton_gris': 21708667, 'Teint_Dans_La_Masse': 21708668, 'kraft': 21708669, 'plastique': 21708670, 'autre_refus': 21708671, 'flou': 21708672, 'metal': 21708673, 'papier': 21708674, 'Carton_brun': 21708675}]} input_args_next_step : {1347301435: ('0.05485327100100239',), 1347301430: ('0.05485327100100239',), 1347301427: ('0.05485327100100239',), 1347301421: ('0.05485327100100239',), 1347301415: ('0.05485327100100239',), 21708597: ()} output_args : {21708597: [{'environnement': 21708664, 'mal_croppe': 21708665, 'cartonnette': 21708666, 'Carton_gris': 21708667, 'Teint_Dans_La_Masse': 21708668, 'kraft': 21708669, 'plastique': 21708670, 'autre_refus': 21708671, 'flou': 21708672, 'metal': 21708673, 'papier': 21708674, 'Carton_brun': 21708675}]} args : 21708597 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :6, first value : ('0.05485327100100239',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21708597) 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 (1347301435,1347301430,1347301427,1347301421,1347301415) Found this number of photos: 5 ##### Call download_photos : nb_thread : 5 begin to download photo : 1347301415 begin to download photo : 1347301427 begin to download photo : 1347301435 download finish for photo 1347301435 download finish for photo 1347301415 begin to download photo : 1347301421 download finish for photo 1347301427 begin to download photo : 1347301430 download finish for photo 1347301421 download finish for photo 1347301430 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette217086651742932438/ length of list_filenames : 5 ; length of list_pids : 5 ; length of list_args : 5 results_Auto_P21708597_25-03-2025_20_53_58.pdf 21708665 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=21708665 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217086651742932438 21708666 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=21708666 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347301314: '1742932301_2686338_1347300584_504d33d2f8b7541e2e9cf663d2f29b4c_rle_crop_3729802581_0.png', 1347301315: '1742932301_2686338_1347300576_604ba2bf233a01485d2eb176c192678d_rle_crop_3729802616_0.png', 1347301316: '1742932301_2686338_1347300576_604ba2bf233a01485d2eb176c192678d_rle_crop_3729802610_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/2c6b43415fbd4482cc2c527a1c6ef9c4_29590557.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/24747ed651f6ecb62c8ccb9a94a6c5ef_17726500.png change filename to text .imagette217086661742932438/ imagette217086661742932438/1742932301_2686338_1347300584_504d33d2f8b7541e2e9cf663d2f29b4c_rle_crop_3729802581_0.png.png imagette217086661742932438/1742932301_2686338_1347300576_604ba2bf233a01485d2eb176c192678d_rle_crop_3729802616_0.png.png imagette217086661742932438/1742932301_2686338_1347300576_604ba2bf233a01485d2eb176c192678d_rle_crop_3729802610_0.png.png imagette217086691742932438/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/bffcd4a17b57664d450563db0fadc4ee_27426465.png imagette217086661742932438 21708669 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=21708669 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217086691742932438 21708670 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=21708670 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347301026: '1742932272_1010131_1347300642_ee2fe74ccc2b9d0a9a04e7b555177904_rle_crop_3729802344_0.png', 1347301285: '1742932294_1010410_1347300408_b9c71f265678c9217e60cbf82a19f0e9_rle_crop_3729802597_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/fbc9ba5c9600f8d7f0edc479c9ba964f_14581834.png change filename to text .imagette217086701742932438/ imagette217086701742932438/1742932294_1010410_1347300408_b9c71f265678c9217e60cbf82a19f0e9_rle_crop_3729802597_0.png.png imagette217086701742932438/1742932272_1010131_1347300642_ee2fe74ccc2b9d0a9a04e7b555177904_rle_crop_3729802344_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/7d2addd96c232f6ca2795944ca5699bc_79937131.png imagette217086701742932438 21708671 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=21708671 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347301307: '1742932301_2686338_1347300584_504d33d2f8b7541e2e9cf663d2f29b4c_rle_crop_3729802579_0.png', 1347301309: '1742932301_2686338_1347300558_743146fc7fda4e202bce889c29f8c3e5_rle_crop_3729802629_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/4667b541bd24889f2cc29d6912eff489_11360532.png change filename to text .imagette217086711742932438/ imagette217086711742932438/1742932301_2686338_1347300584_504d33d2f8b7541e2e9cf663d2f29b4c_rle_crop_3729802579_0.png.png imagette217086711742932438/1742932301_2686338_1347300558_743146fc7fda4e202bce889c29f8c3e5_rle_crop_3729802629_0.png.png imagette217086721742932438/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/65e3eee7b9f82ff78f097dfc6a364971_62263482.png imagette217086711742932438 21708672 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=21708672 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217086721742932438 21708673 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=21708673 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347301287: '1742932294_1010410_1347300408_b9c71f265678c9217e60cbf82a19f0e9_rle_crop_3729802598_0.png'} change filename to text .imagette217086731742932438/ imagette217086731742932438/1742932294_1010410_1347300408_b9c71f265678c9217e60cbf82a19f0e9_rle_crop_3729802598_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/715785a3c6166b31e957c47e9569db19_12541247.png imagette217086731742932438 21708667 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=21708667 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347301284: '1742932294_1010410_1347300408_b9c71f265678c9217e60cbf82a19f0e9_rle_crop_3729802593_0.png', 1347301311: '1742932301_2686338_1347300576_604ba2bf233a01485d2eb176c192678d_rle_crop_3729802615_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/94604f052c27d47d48add96bbb3e0304_77002434.png change filename to text .imagette217086671742932438/ imagette217086671742932438/1742932294_1010410_1347300408_b9c71f265678c9217e60cbf82a19f0e9_rle_crop_3729802593_0.png.png imagette217086671742932438/1742932301_2686338_1347300576_604ba2bf233a01485d2eb176c192678d_rle_crop_3729802615_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/02bde6f15bd2f22e01766fdab23f75c5_31122198.png imagette217086671742932438 21708668 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=21708668 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347301024: '1742932272_1010131_1347300642_ee2fe74ccc2b9d0a9a04e7b555177904_rle_crop_3729802350_0.png', 1347301025: '1742932272_1010131_1347300642_ee2fe74ccc2b9d0a9a04e7b555177904_rle_crop_3729802349_0.png', 1347301289: '1742932301_2686338_1347300584_504d33d2f8b7541e2e9cf663d2f29b4c_rle_crop_3729802586_0.png', 1347301290: '1742932301_2686338_1347300584_504d33d2f8b7541e2e9cf663d2f29b4c_rle_crop_3729802588_0.png', 1347301291: '1742932301_2686338_1347300576_604ba2bf233a01485d2eb176c192678d_rle_crop_3729802621_0.png', 1347301293: '1742932301_2686338_1347300576_604ba2bf233a01485d2eb176c192678d_rle_crop_3729802624_0.png', 1347301295: '1742932301_2686338_1347300558_743146fc7fda4e202bce889c29f8c3e5_rle_crop_3729802631_0.png', 1347301296: '1742932301_2686338_1347300537_0202f1f043a0f2f1c9e20236ee5a1f45_rle_crop_3729802664_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/7c6583eb68f315423b8650705accffae_40647153.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/31d845d12cc90f230aba67aaddc9baa7_13048844.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/b92e51d6eaac018c64d17146183808d4_38003860.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/499527c27e64813a591d84229a2b410f_41398118.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/08bd6a1081495388e79ec615f5a4ffd4_790264.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/973c8cf17dfa982f8635104aebbe1315_34101684.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/b95e410bd68c1db12919a4d78203cdfd_84593658.png change filename to text .imagette217086681742932439/ imagette217086681742932439/1742932301_2686338_1347300584_504d33d2f8b7541e2e9cf663d2f29b4c_rle_crop_3729802588_0.png.png imagette217086681742932439/1742932272_1010131_1347300642_ee2fe74ccc2b9d0a9a04e7b555177904_rle_crop_3729802350_0.png.png imagette217086681742932439/1742932301_2686338_1347300584_504d33d2f8b7541e2e9cf663d2f29b4c_rle_crop_3729802586_0.png.png imagette217086681742932439/1742932301_2686338_1347300537_0202f1f043a0f2f1c9e20236ee5a1f45_rle_crop_3729802664_0.png.png imagette217086681742932439/1742932272_1010131_1347300642_ee2fe74ccc2b9d0a9a04e7b555177904_rle_crop_3729802349_0.png.png imagette217086681742932439/1742932301_2686338_1347300576_604ba2bf233a01485d2eb176c192678d_rle_crop_3729802621_0.png.png imagette217086681742932439/1742932301_2686338_1347300558_743146fc7fda4e202bce889c29f8c3e5_rle_crop_3729802631_0.png.png imagette217086681742932439/1742932301_2686338_1347300576_604ba2bf233a01485d2eb176c192678d_rle_crop_3729802624_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/49633e9a30efded690da3d595b6f92ee_32058585.png imagette217086681742932439 21708675 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=21708675 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347301317: '1742932301_2686338_1347300558_743146fc7fda4e202bce889c29f8c3e5_rle_crop_3729802634_0.png'} change filename to text .imagette217086751742932439/ imagette217086751742932439/1742932301_2686338_1347300558_743146fc7fda4e202bce889c29f8c3e5_rle_crop_3729802634_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/58de866c9e6cf450410882b3152533fa_69696108.png imagette217086751742932439 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21708597 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21708677,21708678,21708679,21708680,21708681,21708682,21708683,21708684,21708685,21708686,21708687,21708688?tags=environnement,mal_croppe,cartonnette,Carton_gris,Teint_Dans_La_Masse,kraft,plastique,autre_refus,flou,metal,papier,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1347301435] : ('0.05485327100100239',) no score found for photo 1347301435 We are sending mail with results at report@fotonower.com args[1347301430] : ('0.05485327100100239',) no score found for photo 1347301430 We are sending mail with results at report@fotonower.com args[1347301427] : ('0.05485327100100239',) no score found for photo 1347301427 We are sending mail with results at report@fotonower.com args[1347301421] : ('0.05485327100100239',) no score found for photo 1347301421 We are sending mail with results at report@fotonower.com args[1347301415] : ('0.05485327100100239',) no score found for photo 1347301415 We are sending mail with results at report@fotonower.com refus_total : 0.05485327100100239 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=21708597 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_P21708597_25-03-2025_20_53_58.pdf results_Auto_P21708597_25-03-2025_20_53_58.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21708597_25-03-2025_20_53_58.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','21708597','results_Auto_P21708597_25-03-2025_20_53_58.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21708597_25-03-2025_20_53_58.pdf','pdf','','0.12','0.05485327100100239') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21708597]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1347301435, 1347301430, 1347301427, 1347301421, 1347301415] map_info['map_portfolio_photo'] : {21708597: [1347301435, 1347301430, 1347301427, 1347301421, 1347301415, 1347301333, 1347301327, 1347301318, 1347301308, 1347301286, 1347301002, 1347300997, 1347300960, 1347300947, 1347300938, 1347300927, 1347300863, 1347300861, 1347300850, 1347300832, 1347300825, 1347300663, 1347300659, 1347300654, 1347300652, 1347300642, 1347300603, 1347300594, 1347300584, 1347300576, 1347300558, 1347300537, 1347300408, 1347300366, 1347300339, 1347300253]} final : False mtd_id 4302 list_pids : [1347301435, 1347301430, 1347301427, 1347301421, 1347301415] 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, '2690616') ('4302', '21708597', '1347301435', None, None, None, None, None, '2690616') ('4302', None, None, None, None, None, None, None, '2690616') ('4302', '21708597', '1347301430', None, None, None, None, None, '2690616') ('4302', None, None, None, None, None, None, None, '2690616') ('4302', '21708597', '1347301427', None, None, None, None, None, '2690616') ('4302', None, None, None, None, None, None, None, '2690616') ('4302', '21708597', '1347301421', None, None, None, None, None, '2690616') ('4302', None, None, None, None, None, None, None, '2690616') ('4302', '21708597', '1347301415', None, None, None, None, None, '2690616') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 5 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21708597', '1347301435', None, None, None, None, None, '2690616'), ('4302', '21708597', '1347301430', None, None, None, None, None, '2690616'), ('4302', '21708597', '1347301427', None, None, None, None, None, '2690616'), ('4302', '21708597', '1347301421', None, None, None, None, None, '2690616'), ('4302', '21708597', '1347301415', None, None, None, None, None, '2690616')] time used for this insertion : 0.013165950775146484 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.5495660305023193 time spend to save output : 0.013352394104003906 total time spend for step 4 : 2.5629184246063232 step5:split_time_score Tue Mar 25 20:54:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21708597'] 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 : [('21708597',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21708597) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1347301435: {'path': 'temp/1742932437_3500343_1347301435_eaf25647cc22b621cffef024a6ae3bca.jpg', 'extension': 'jpg'}, 1347301415: {'path': 'temp/1742932437_3500343_1347301415_83276dcdebd2520e6536ef3e2f6e9327.jpg', 'extension': 'jpg'}, 1347301421: {'path': 'temp/1742932437_3500343_1347301421_a3406a481b5b6925b26f3220fceaccf8.jpg', 'extension': 'jpg'}, 1347301427: {'path': 'temp/1742932437_3500343_1347301427_9db1768a4c2aef5b17dfc5a9b6b91778.jpg', 'extension': 'jpg'}, 1347301430: {'path': 'temp/1742932437_3500343_1347301430_347d8c6c9e317d4572d2e2b2774bd3f3.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 = 21708597; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 21708597 group by h (('20', 36),) 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=21708597 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 (21708597) 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 (21708597) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25032025 21708597 Nombre de photos uploadées : 36 / 23040 (0%) 25032025 21708597 Nombre de photos taguées (types de déchets): 0 / 36 (0%) 25032025 21708597 Nombre de photos taguées (volume) : 0 / 36 (0%) [{'photo_id': 1347300408, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/b9c71f265678c9217e60cbf82a19f0e9.jpg', 'username': None, 'uploaded_at': 1742932033, 'text': 'image_25032025_20_45_03_009141m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347300366, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/5da7dc00f6b54da19c2d2116d5718c7f.jpg', 'username': None, 'uploaded_at': 1742932033, 'text': 'image_25032025_20_45_13_010140m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347300339, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/2e600e29271192de9cdcae7f403d22c3.jpg', 'username': None, 'uploaded_at': 1742932033, 'text': 'image_25032025_20_45_23_010144m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1347300253, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/1de4ea47d7fbab7647ef22ecf5b6c36e.jpg', 'username': None, 'uploaded_at': 1742932033, 'text': 'image_25032025_20_45_33_010137m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 4.0531158447265625e-06 ???????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0010325908660888672 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21708597, '2025-03-25' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1685799,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02496790885925293 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= 1685799 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696260, 'mtr_portfolio_id': 21706355, 'dashboard_result_id': 9621996, '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_P21706355_25-03-2025_20_18_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21706481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21706482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21706483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21706484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21706485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21706486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21706487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21706488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21706489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21706490, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21706491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21706492, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696260, 'mtr_portfolio_id': 21707261, 'dashboard_result_id': 9621997, '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_P21707261_25-03-2025_20_35_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21707323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21707324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21707325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21707326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21707327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21707328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21707329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21707330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21707331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21707332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21707333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21707334, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696260, 'mtr_portfolio_id': 21707953, 'dashboard_result_id': 9621998, '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_P21707953_25-03-2025_20_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21708025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21708026, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21708027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21708028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21708029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21708030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21708031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21708032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21708033, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21708034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21708035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21708036, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1696260, 'mtr_portfolio_id': 21708597, 'dashboard_result_id': 9622002, '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_P21708597_25-03-2025_20_53_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21708664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21708665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21708666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21708667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21708668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21708669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21708670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21708671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21708672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21708673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21708674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21708675, '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 = 21706355 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': 2690493, 'mtr_portfolio_id': 21706355, 'created_at': datetime.datetime(2025, 3, 25, 20, 18, 32), 'result': '0.05466395004213558', 'result_long': None, 'result_double': None}] Qualite : 0.05466395004213558 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21706355 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21706355_25-03-2025_20_18_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21706355 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_P21706355_25-03-2025_20_18_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21706481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21706482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21706483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21706484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21706485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21706486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21706487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21706488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21706489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21706490, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21706491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21706492, 'pht': 3726}}" where mtr_portfolio_id = 21706355 and dashboard_run_id = 1696260 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`=21706355 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9621996, 0.05466395004213558, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21706355_25-03-2025_20_18_33.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21706481, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21706482, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21706483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21706484, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21706485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21706486, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21706487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21706488, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21706489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21706490, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21706491, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21706492, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21707261 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': 2690533, 'mtr_portfolio_id': 21707261, 'created_at': datetime.datetime(2025, 3, 25, 20, 35, 1), 'result': '0.029453294160891177', 'result_long': None, 'result_double': None}] Qualite : 0.029453294160891177 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21707261 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21707261_25-03-2025_20_35_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21707261 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_P21707261_25-03-2025_20_35_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21707323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21707324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21707325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21707326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21707327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21707328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21707329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21707330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21707331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21707332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21707333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21707334, 'pht': 3726}}" where mtr_portfolio_id = 21707261 and dashboard_run_id = 1696260 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`=21707261 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9621997, 0.029453294160891177, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21707261_25-03-2025_20_35_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21707323, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21707324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21707325, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21707326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21707327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21707328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21707329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21707330, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21707331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21707332, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21707333, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21707334, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21707953 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': 2690582, 'mtr_portfolio_id': 21707953, 'created_at': datetime.datetime(2025, 3, 25, 20, 48, 59), 'result': '0.05040768491453269', 'result_long': None, 'result_double': None}] Qualite : 0.05040768491453269 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21707953 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21707953_25-03-2025_20_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21707953 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_P21707953_25-03-2025_20_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21708025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21708026, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21708027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21708028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21708029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21708030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21708031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21708032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21708033, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21708034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21708035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21708036, 'pht': 3726}}" where mtr_portfolio_id = 21707953 and dashboard_run_id = 1696260 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`=21707953 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9621998, 0.05040768491453269, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21707953_25-03-2025_20_48_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21708025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21708026, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21708027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21708028, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21708029, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21708030, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21708031, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21708032, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21708033, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21708034, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21708035, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21708036, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21708597 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': 2690616, 'mtr_portfolio_id': 21708597, 'created_at': datetime.datetime(2025, 3, 25, 20, 53, 57), 'result': '0.05485327100100239', 'result_long': None, 'result_double': None}] Qualite : 0.05485327100100239 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21708597 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21708597_25-03-2025_20_53_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21708597 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_P21708597_25-03-2025_20_53_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21708664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21708665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21708666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21708667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21708668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21708669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21708670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21708671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21708672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21708673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21708674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21708675, 'pht': 3726}}" where mtr_portfolio_id = 21708597 and dashboard_run_id = 1696260 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`=21708597 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9622002, 0.05485327100100239, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21708597_25-03-2025_20_53_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21708664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21708665, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21708666, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21708667, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21708668, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21708669, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21708670, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21708671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21708672, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21708673, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21708674, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21708675, '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 (21706355,21707261,21707953,21708597) result : ((1347286017,), (1347286073,), (1347286128,), (1347287063,), (1347287124,), (1347287189,), (1347287245,), (1347287320,), (1347287386,), (1347288016,), (1347288081,), (1347288136,), (1347288261,), (1347288320,), (1347288732,), (1347288750,), (1347288792,), (1347288844,), (1347288882,), (1347288921,), (1347289314,), (1347289360,), (1347289389,), (1347289444,), (1347289475,), (1347289982,), (1347290033,), (1347290061,), (1347290079,), (1347290205,), (1347290223,), (1347290228,), (1347290244,), (1347290247,), (1347290258,), (1347290282,), (1347290390,), (1347290538,), (1347290549,), (1347290556,), (1347290615,), (1347290629,), (1347290638,), (1347290641,), (1347290646,), (1347290650,), (1347290681,), (1347290708,), (1347290720,), (1347290745,), (1347290753,), (1347290869,), (1347290874,), (1347290878,), (1347290884,), (1347291121,), (1347291122,), (1347291125,), (1347291129,), (1347291134,), (1347291220,), (1347291225,), (1347291230,), (1347291235,), (1347291240,), (1347291244,), (1347291360,), (1347291366,), (1347291372,), (1347291483,), (1347291548,), (1347291630,), (1347291648,), (1347291665,), (1347291695,), (1347291810,), (1347291760,), (1347291786,), (1347291799,), (1347291986,), (1347291994,), (1347292005,), (1347292017,), (1347292043,), (1347292065,), (1347292202,), (1347292238,), (1347292261,), (1347292291,), (1347292560,), (1347292585,), (1347292628,), (1347292679,), (1347292950,), (1347293571,), (1347293587,), (1347293592,), (1347293666,), (1347293672,), (1347293678,), (1347293685,), (1347293723,), (1347293728,), (1347293732,), (1347293745,), (1347293756,), (1347293762,), (1347293886,), (1347293891,), (1347293897,), (1347293903,), (1347293907,), (1347293990,), (1347293998,), (1347294021,), (1347294059,), (1347294096,), (1347294143,), (1347294450,), (1347294482,), (1347294538,), (1347294592,), (1347294749,), (1347294756,), (1347294763,), (1347294770,), (1347294777,), (1347294784,), (1347294802,), (1347294808,), (1347294883,), (1347294942,), (1347294965,), (1347295427,), (1347295679,), (1347295164,), (1347295206,), (1347295230,), (1347295313,), (1347295389,), (1347295507,), (1347295516,), (1347295540,), (1347295608,), (1347295635,), (1347295648,), (1347295670,), (1347295674,), (1347296006,), (1347296022,), (1347296039,), (1347296055,), (1347296139,), (1347296143,), (1347296147,), (1347296151,), (1347296377,), (1347296530,), (1347296553,), (1347296576,), (1347296663,), (1347296667,), (1347296671,), (1347296675,), (1347296787,), (1347296806,), (1347296827,), (1347296853,), (1347296879,), (1347296902,), (1347297113,), (1347297136,), (1347297164,), (1347297436,), (1347297441,), (1347297443,), (1347297447,), (1347297455,), (1347297465,), (1347298000,), (1347298073,), (1347298103,), (1347298176,), (1347298262,), (1347298306,), (1347298782,), (1347298851,), (1347298940,), (1347299425,), (1347299475,), (1347299533,), (1347299594,), (1347299667,), (1347299734,), (1347300414,), (1347300253,), (1347300339,), (1347300366,), (1347300408,), (1347300537,), (1347300558,), (1347300576,), (1347300584,), (1347300594,), (1347300603,), (1347300642,), (1347300652,), (1347300654,), (1347300659,), (1347300663,), (1347300825,), (1347300832,), (1347300850,), (1347300861,), (1347300863,), (1347300927,), (1347300938,), (1347300947,), (1347300960,), (1347300997,), (1347301002,), (1347301286,), (1347301308,), (1347301318,), (1347301327,), (1347301333,), (1347301415,), (1347301421,), (1347301427,), (1347301430,), (1347301435,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25032025': {'nb_upload': 36, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21708597]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1347301435, 1347301430, 1347301427, 1347301421, 1347301415] map_info['map_portfolio_photo'] : {21708597: [1347301435, 1347301430, 1347301427, 1347301421, 1347301415, 1347301333, 1347301327, 1347301318, 1347301308, 1347301286, 1347301002, 1347300997, 1347300960, 1347300947, 1347300938, 1347300927, 1347300863, 1347300861, 1347300850, 1347300832, 1347300825, 1347300663, 1347300659, 1347300654, 1347300652, 1347300642, 1347300603, 1347300594, 1347300584, 1347300576, 1347300558, 1347300537, 1347300408, 1347300366, 1347300339, 1347300253]} final : True mtd_id 4302 list_pids : [1347301435, 1347301430, 1347301427, 1347301421, 1347301415] Looping around the photos to save general results len do output : 1 /21708597Didn'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, '2690616') ('4302', '21708597', '1347301435', None, None, None, None, None, '2690616') ('4302', None, None, None, None, None, None, None, '2690616') ('4302', '21708597', '1347301430', None, None, None, None, None, '2690616') ('4302', None, None, None, None, None, None, None, '2690616') ('4302', '21708597', '1347301427', None, None, None, None, None, '2690616') ('4302', None, None, None, None, None, None, None, '2690616') ('4302', '21708597', '1347301421', None, None, None, None, None, '2690616') ('4302', None, None, None, None, None, None, None, '2690616') ('4302', '21708597', '1347301415', None, None, None, None, None, '2690616') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 6 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21708597', 'None', None, None, None, None, '2690616'), ('4302', '21708597', '1347301435', None, None, None, None, None, '2690616'), ('4302', '21708597', '1347301430', None, None, None, None, None, '2690616'), ('4302', '21708597', '1347301427', None, None, None, None, None, '2690616'), ('4302', '21708597', '1347301421', None, None, None, None, None, '2690616'), ('4302', '21708597', '1347301415', None, None, None, None, None, '2690616')] time used for this insertion : 0.013752937316894531 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.341113805770874 time spend to save output : 0.013863801956176758 total time spend for step 5 : 0.3549776077270508 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 (2690616) 2.10user 2.46system 0:06.43elapsed 71%CPU (0avgtext+0avgdata 157888maxresident)k 256inputs+5904outputs (6major+63912minor)pagefaults 0swaps