SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22100227) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22100198) result : ((1350283408,), (1350283411,), (1350283413,), (1350283720,), (1350283721,), (1350283727,), (1350283889,), (1350283892,), (1350283897,), (1350283954,), (1350283963,), (1350283997,), (1350284155,), (1350284283,), (1350284291,), (1350284312,), (1350284452,), (1350284575,), (1350284589,), (1350284609,), (1350284622,), (1350284683,), (1350284688,), (1350284697,), (1350284703,), (1350284744,), (1350284746,), (1350284750,), (1350284814,), (1350284818,), (1350284960,), (1350284978,), (1350285075,), (1350285084,), (1350285094,), (1350285103,)) 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 22100228 , 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=22100198 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 (22100228) result : ((1350284342,), (1350284724,), (1350284725,), (1350284726,), (1350285019,), (1350285020,), (1350285034,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22100198) result : ((1350283408,), (1350283411,), (1350283413,), (1350283720,), (1350283721,), (1350283727,), (1350283889,), (1350283892,), (1350283897,), (1350283954,), (1350283963,), (1350283997,), (1350284155,), (1350284283,), (1350284291,), (1350284312,), (1350284452,), (1350284575,), (1350284589,), (1350284609,), (1350284622,), (1350284683,), (1350284688,), (1350284697,), (1350284703,), (1350284744,), (1350284746,), (1350284750,), (1350284814,), (1350284818,), (1350284960,), (1350284978,), (1350285075,), (1350285084,), (1350285094,), (1350285103,)) 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 22100229 , 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=22100198 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 (22100229) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22100198) result : ((1350283408,), (1350283411,), (1350283413,), (1350283720,), (1350283721,), (1350283727,), (1350283889,), (1350283892,), (1350283897,), (1350283954,), (1350283963,), (1350283997,), (1350284155,), (1350284283,), (1350284291,), (1350284312,), (1350284452,), (1350284575,), (1350284589,), (1350284609,), (1350284622,), (1350284683,), (1350284688,), (1350284697,), (1350284703,), (1350284744,), (1350284746,), (1350284750,), (1350284814,), (1350284818,), (1350284960,), (1350284978,), (1350285075,), (1350285084,), (1350285094,), (1350285103,)) 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 22100230 , 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=22100198 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 (22100230) result : ((1350284287,), (1350284735,), (1350284736,), (1350284737,), (1350285021,), (1350285044,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22100198) result : ((1350283408,), (1350283411,), (1350283413,), (1350283720,), (1350283721,), (1350283727,), (1350283889,), (1350283892,), (1350283897,), (1350283954,), (1350283963,), (1350283997,), (1350284155,), (1350284283,), (1350284291,), (1350284312,), (1350284452,), (1350284575,), (1350284589,), (1350284609,), (1350284622,), (1350284683,), (1350284688,), (1350284697,), (1350284703,), (1350284744,), (1350284746,), (1350284750,), (1350284814,), (1350284818,), (1350284960,), (1350284978,), (1350285075,), (1350285084,), (1350285094,), (1350285103,)) 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 22100231 , 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=22100198 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 (22100231) result : ((1350284377,), (1350284379,), (1350284576,), (1350285035,), (1350285037,), (1350285303,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22100198) result : ((1350283408,), (1350283411,), (1350283413,), (1350283720,), (1350283721,), (1350283727,), (1350283889,), (1350283892,), (1350283897,), (1350283954,), (1350283963,), (1350283997,), (1350284155,), (1350284283,), (1350284291,), (1350284312,), (1350284452,), (1350284575,), (1350284589,), (1350284609,), (1350284622,), (1350284683,), (1350284688,), (1350284697,), (1350284703,), (1350284744,), (1350284746,), (1350284750,), (1350284814,), (1350284818,), (1350284960,), (1350284978,), (1350285075,), (1350285084,), (1350285094,), (1350285103,)) 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 22100232 , 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=22100198 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 (22100232) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22100198) result : ((1350283408,), (1350283411,), (1350283413,), (1350283720,), (1350283721,), (1350283727,), (1350283889,), (1350283892,), (1350283897,), (1350283954,), (1350283963,), (1350283997,), (1350284155,), (1350284283,), (1350284291,), (1350284312,), (1350284452,), (1350284575,), (1350284589,), (1350284609,), (1350284622,), (1350284683,), (1350284688,), (1350284697,), (1350284703,), (1350284744,), (1350284746,), (1350284750,), (1350284814,), (1350284818,), (1350284960,), (1350284978,), (1350285075,), (1350285084,), (1350285094,), (1350285103,)) 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 22100233 , 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=22100198 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='environnement' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22100233) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22100198) result : ((1350283408,), (1350283411,), (1350283413,), (1350283720,), (1350283721,), (1350283727,), (1350283889,), (1350283892,), (1350283897,), (1350283954,), (1350283963,), (1350283997,), (1350284155,), (1350284283,), (1350284291,), (1350284312,), (1350284452,), (1350284575,), (1350284589,), (1350284609,), (1350284622,), (1350284683,), (1350284688,), (1350284697,), (1350284703,), (1350284744,), (1350284746,), (1350284750,), (1350284814,), (1350284818,), (1350284960,), (1350284978,), (1350285075,), (1350285084,), (1350285094,), (1350285103,)) 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 22100234 , 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=22100198 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 (22100234) result : ((1350284284,), (1350284285,), (1350284508,), (1350284727,), (1350284728,), (1350284729,), (1350284730,), (1350284731,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22100198) result : ((1350283408,), (1350283411,), (1350283413,), (1350283720,), (1350283721,), (1350283727,), (1350283889,), (1350283892,), (1350283897,), (1350283954,), (1350283963,), (1350283997,), (1350284155,), (1350284283,), (1350284291,), (1350284312,), (1350284452,), (1350284575,), (1350284589,), (1350284609,), (1350284622,), (1350284683,), (1350284688,), (1350284697,), (1350284703,), (1350284744,), (1350284746,), (1350284750,), (1350284814,), (1350284818,), (1350284960,), (1350284978,), (1350285075,), (1350285084,), (1350285094,), (1350285103,)) 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 22100235 , 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=22100198 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 (22100235) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22100198) result : ((1350283408,), (1350283411,), (1350283413,), (1350283720,), (1350283721,), (1350283727,), (1350283889,), (1350283892,), (1350283897,), (1350283954,), (1350283963,), (1350283997,), (1350284155,), (1350284283,), (1350284291,), (1350284312,), (1350284452,), (1350284575,), (1350284589,), (1350284609,), (1350284622,), (1350284683,), (1350284688,), (1350284697,), (1350284703,), (1350284744,), (1350284746,), (1350284750,), (1350284814,), (1350284818,), (1350284960,), (1350284978,), (1350285075,), (1350285084,), (1350285094,), (1350285103,)) 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 22100236 , 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=22100198 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 (22100236) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22100198) result : ((1350283408,), (1350283411,), (1350283413,), (1350283720,), (1350283721,), (1350283727,), (1350283889,), (1350283892,), (1350283897,), (1350283954,), (1350283963,), (1350283997,), (1350284155,), (1350284283,), (1350284291,), (1350284312,), (1350284452,), (1350284575,), (1350284589,), (1350284609,), (1350284622,), (1350284683,), (1350284688,), (1350284697,), (1350284703,), (1350284744,), (1350284746,), (1350284750,), (1350284814,), (1350284818,), (1350284960,), (1350284978,), (1350285075,), (1350285084,), (1350285094,), (1350285103,)) 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 22100237 , 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=22100198 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 (22100237) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22100198) result : ((1350283408,), (1350283411,), (1350283413,), (1350283720,), (1350283721,), (1350283727,), (1350283889,), (1350283892,), (1350283897,), (1350283954,), (1350283963,), (1350283997,), (1350284155,), (1350284283,), (1350284291,), (1350284312,), (1350284452,), (1350284575,), (1350284589,), (1350284609,), (1350284622,), (1350284683,), (1350284688,), (1350284697,), (1350284703,), (1350284744,), (1350284746,), (1350284750,), (1350284814,), (1350284818,), (1350284960,), (1350284978,), (1350285075,), (1350285084,), (1350285094,), (1350285103,)) 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 22100238 , 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=22100198 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 (22100238) result : ((1350284029,), (1350285017,), (1350285018,), (1350285033,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22100198) result : ((1350283408,), (1350283411,), (1350283413,), (1350283720,), (1350283721,), (1350283727,), (1350283889,), (1350283892,), (1350283897,), (1350283954,), (1350283963,), (1350283997,), (1350284155,), (1350284283,), (1350284291,), (1350284312,), (1350284452,), (1350284575,), (1350284589,), (1350284609,), (1350284622,), (1350284683,), (1350284688,), (1350284697,), (1350284703,), (1350284744,), (1350284746,), (1350284750,), (1350284814,), (1350284818,), (1350284960,), (1350284978,), (1350285075,), (1350285084,), (1350285094,), (1350285103,)) 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`=22100198 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','mal_croppe','Carton_brun','kraft','autre_refus','metal','Teint_Dans_La_Masse','environnement','plastique','flou','Carton_gris')) 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`=22100198 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','papier','mal_croppe','Carton_brun','kraft','autre_refus','metal','Teint_Dans_La_Masse','environnement','plastique','flou','Carton_gris')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 22100198, 'sub_port_id': 22100239, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14583566, 'last_updated_at': datetime.datetime(2025, 4, 7, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 11, 35, 1)}, 'autre_refus': {'main_port_id': 22100198, 'sub_port_id': 22100240, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14583567, 'last_updated_at': datetime.datetime(2025, 4, 7, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 11, 35, 1)}, 'flou': {'main_port_id': 22100198, 'sub_port_id': 22100241, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14583568, 'last_updated_at': datetime.datetime(2025, 4, 7, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 11, 35, 1)}, 'Carton_brun': {'main_port_id': 22100198, 'sub_port_id': 22100242, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14583569, 'last_updated_at': datetime.datetime(2025, 4, 7, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 11, 35, 1)}, 'cartonnette': {'main_port_id': 22100198, 'sub_port_id': 22100244, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14583570, 'last_updated_at': datetime.datetime(2025, 4, 7, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 11, 35, 1)}, 'plastique': {'main_port_id': 22100198, 'sub_port_id': 22100245, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14583571, 'last_updated_at': datetime.datetime(2025, 4, 7, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 11, 35, 1)}, 'environnement': {'main_port_id': 22100198, 'sub_port_id': 22100246, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14583572, 'last_updated_at': datetime.datetime(2025, 4, 7, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 11, 35, 1)}, 'Carton_gris': {'main_port_id': 22100198, 'sub_port_id': 22100247, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14583573, 'last_updated_at': datetime.datetime(2025, 4, 7, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 11, 35, 1)}, 'kraft': {'main_port_id': 22100198, 'sub_port_id': 22100248, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14583574, 'last_updated_at': datetime.datetime(2025, 4, 7, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 11, 35, 1)}, 'metal': {'main_port_id': 22100198, 'sub_port_id': 22100249, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14583575, 'last_updated_at': datetime.datetime(2025, 4, 7, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 11, 35, 1)}, 'mal_croppe': {'main_port_id': 22100198, 'sub_port_id': 22100250, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14583576, 'last_updated_at': datetime.datetime(2025, 4, 7, 11, 35, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 11, 35, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 11, 35, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 22100198, 'sub_port_id': 22100251, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14583577, 'last_updated_at': datetime.datetime(2025, 4, 7, 11, 43), 'last_updated_at_desc': datetime.datetime(2025, 4, 7, 11, 43), 'last_updated_at_asc': datetime.datetime(2025, 4, 7, 11, 35, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22100239,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22100227 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22100240,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22100228 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22100241,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22100229 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22100242,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22100230 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22100244,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22100231 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22100245,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22100232 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22100246,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22100233 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22100247,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22100234 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22100248,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22100235 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22100249,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22100236 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22100250,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22100237 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22100251,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22100238 lien utilise dans velours : https://www.fotonower.com/velours/22100239,22100240,22100241,22100242,22100244,22100245,22100246,22100247,22100248,22100249,22100250,22100251?tags=papier,autre_refus,flou,Carton_brun,cartonnette,plastique,environnement,Carton_gris,kraft,metal,mal_croppe,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22100198]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350285103, 1350285094, 1350285084, 1350285075] map_info['map_portfolio_photo'] : {22100198: [1350285103, 1350285094, 1350285084, 1350285075, 1350284978, 1350284960, 1350284818, 1350284814, 1350284750, 1350284746, 1350284744, 1350284703, 1350284697, 1350284688, 1350284683, 1350284622, 1350284609, 1350284589, 1350284575, 1350284452, 1350284312, 1350284291, 1350284283, 1350284155, 1350283997, 1350283963, 1350283954, 1350283897, 1350283892, 1350283889, 1350283727, 1350283721, 1350283720, 1350283413, 1350283411, 1350283408]} final : False mtd_id 4302 list_pids : [1350285103, 1350285094, 1350285084, 1350285075] Looping around the photos to save general results len do output : 1 /22100198. 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, '2728592') ('4302', '22100198', '1350285103', None, None, None, None, None, '2728592') ('4302', None, None, None, None, None, None, None, '2728592') ('4302', '22100198', '1350285094', None, None, None, None, None, '2728592') ('4302', None, None, None, None, None, None, None, '2728592') ('4302', '22100198', '1350285084', None, None, None, None, None, '2728592') ('4302', None, None, None, None, None, None, None, '2728592') ('4302', '22100198', '1350285075', None, None, None, None, None, '2728592') 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', None, '22100198', "{'papier': 22100227, 'autre_refus': 22100228, 'flou': 22100229, 'Carton_brun': 22100230, 'cartonnette': 22100231, 'plastique': 22100232, 'environnement': 22100233, 'Carton_gris': 22100234, 'kraft': 22100235, 'metal': 22100236, 'mal_croppe': 22100237, 'Teint_Dans_La_Masse': 22100238}", None, None, None, None, '2728592'), ('4302', '22100198', '1350285103', None, None, None, None, None, '2728592'), ('4302', '22100198', '1350285094', None, None, None, None, None, '2728592'), ('4302', '22100198', '1350285084', None, None, None, None, None, '2728592'), ('4302', '22100198', '1350285075', None, None, None, None, None, '2728592')] time used for this insertion : 0.015256166458129883 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.434777021408081 time spend to save output : 0.015563488006591797 total time spend for step 1 : 1.4503405094146729 step2:final Mon Apr 7 11:44:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22100198) 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 22100198 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350283413,1350283411,1350283408,1350283727,1350283721,1350283720,1350283897,1350283892,1350283889,1350283997,1350283963,1350283954,1350284155,1350284312,1350284291,1350284283,1350284452,1350284622,1350284609,1350284589,1350284575,1350284703,1350284697,1350284688,1350284683,1350284750,1350284746,1350284744,1350284818,1350284814,1350284978,1350284960,1350285103,1350285094,1350285084,1350285075); 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([22100198]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350285103: ('0.09998362716558487',), 1350285094: ('0.09998362716558487',), 1350285084: ('0.09998362716558487',), 1350285075: ('0.09998362716558487',)} new output for save of step final : {1350285103: ('0.09998362716558487',), 1350285094: ('0.09998362716558487',), 1350285084: ('0.09998362716558487',), 1350285075: ('0.09998362716558487',)} [1350285103, 1350285094, 1350285084, 1350285075] map_info['map_portfolio_photo'] : {22100198: [1350285103, 1350285094, 1350285084, 1350285075, 1350284978, 1350284960, 1350284818, 1350284814, 1350284750, 1350284746, 1350284744, 1350284703, 1350284697, 1350284688, 1350284683, 1350284622, 1350284609, 1350284589, 1350284575, 1350284452, 1350284312, 1350284291, 1350284283, 1350284155, 1350283997, 1350283963, 1350283954, 1350283897, 1350283892, 1350283889, 1350283727, 1350283721, 1350283720, 1350283413, 1350283411, 1350283408]} final : False mtd_id 4302 list_pids : [1350285103, 1350285094, 1350285084, 1350285075] Looping around the photos to save general results len do output : 4 /1350285103.Didn't retrieve data . /1350285094.Didn't retrieve data . /1350285084.Didn't retrieve data . /1350285075.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, '2728592') ('4302', '22100198', '1350285103', None, None, None, None, None, '2728592') ('4302', None, None, None, None, None, None, None, '2728592') ('4302', '22100198', '1350285094', None, None, None, None, None, '2728592') ('4302', None, None, None, None, None, None, None, '2728592') ('4302', '22100198', '1350285084', None, None, None, None, None, '2728592') ('4302', None, None, None, None, None, None, None, '2728592') ('4302', '22100198', '1350285075', None, None, None, None, None, '2728592') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22100198', '1350285103', '0.09998362716558487', None, None, None, None, '2728592'), ('4302', '22100198', '1350285094', '0.09998362716558487', None, None, None, None, '2728592'), ('4302', '22100198', '1350285084', '0.09998362716558487', None, None, None, None, '2728592'), ('4302', '22100198', '1350285075', '0.09998362716558487', None, None, None, None, '2728592')] time used for this insertion : 0.01566791534423828 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06892085075378418 time spend to save output : 0.016021013259887695 total time spend for step 2 : 0.08494186401367188 step3:velours_tree Mon Apr 7 11:44:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22100198: [{'papier': 22100227, 'autre_refus': 22100228, 'flou': 22100229, 'Carton_brun': 22100230, 'cartonnette': 22100231, 'plastique': 22100232, 'environnement': 22100233, 'Carton_gris': 22100234, 'kraft': 22100235, 'metal': 22100236, 'mal_croppe': 22100237, 'Teint_Dans_La_Masse': 22100238}]} input_args_next_step : {22100198: ()} output_args : {22100198: [{'papier': 22100227, 'autre_refus': 22100228, 'flou': 22100229, 'Carton_brun': 22100230, 'cartonnette': 22100231, 'plastique': 22100232, 'environnement': 22100233, 'Carton_gris': 22100234, 'kraft': 22100235, 'metal': 22100236, 'mal_croppe': 22100237, 'Teint_Dans_La_Masse': 22100238}]} args : 22100198 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'papier': 22100227, 'autre_refus': 22100228, 'flou': 22100229, 'Carton_brun': 22100230, 'cartonnette': 22100231, 'plastique': 22100232, 'environnement': 22100233, 'Carton_gris': 22100234, 'kraft': 22100235, 'metal': 22100236, 'mal_croppe': 22100237, 'Teint_Dans_La_Masse': 22100238},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22100198) 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([22100198]) 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.30359506607055664 time spend to save output : 7.43865966796875e-05 total time spend for step 3 : 0.30366945266723633 step4:send_mail_cod Mon Apr 7 11:44:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1350285103: ('0.09998362716558487',), 1350285094: ('0.09998362716558487',), 1350285084: ('0.09998362716558487',), 1350285075: ('0.09998362716558487',)} input_args_next_step : {1350285103: ()} output_args : {1350285103: ('0.09998362716558487',), 1350285094: ('0.09998362716558487',), 1350285084: ('0.09998362716558487',), 1350285075: ('0.09998362716558487',)} args : 1350285103 depend.output_id : 0 input_args_next_step : {1350285103: ('0.09998362716558487',), 1350285094: ()} output_args : {1350285103: ('0.09998362716558487',), 1350285094: ('0.09998362716558487',), 1350285084: ('0.09998362716558487',), 1350285075: ('0.09998362716558487',)} args : 1350285094 depend.output_id : 0 input_args_next_step : {1350285103: ('0.09998362716558487',), 1350285094: ('0.09998362716558487',), 1350285084: ()} output_args : {1350285103: ('0.09998362716558487',), 1350285094: ('0.09998362716558487',), 1350285084: ('0.09998362716558487',), 1350285075: ('0.09998362716558487',)} args : 1350285084 depend.output_id : 0 input_args_next_step : {1350285103: ('0.09998362716558487',), 1350285094: ('0.09998362716558487',), 1350285084: ('0.09998362716558487',), 1350285075: ()} output_args : {1350285103: ('0.09998362716558487',), 1350285094: ('0.09998362716558487',), 1350285084: ('0.09998362716558487',), 1350285075: ('0.09998362716558487',)} args : 1350285075 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 : {22100198: [{'papier': 22100227, 'autre_refus': 22100228, 'flou': 22100229, 'Carton_brun': 22100230, 'cartonnette': 22100231, 'plastique': 22100232, 'environnement': 22100233, 'Carton_gris': 22100234, 'kraft': 22100235, 'metal': 22100236, 'mal_croppe': 22100237, 'Teint_Dans_La_Masse': 22100238}]} input_args_next_step : {1350285103: ('0.09998362716558487',), 1350285094: ('0.09998362716558487',), 1350285084: ('0.09998362716558487',), 1350285075: ('0.09998362716558487',), 22100198: ()} output_args : {22100198: [{'papier': 22100227, 'autre_refus': 22100228, 'flou': 22100229, 'Carton_brun': 22100230, 'cartonnette': 22100231, 'plastique': 22100232, 'environnement': 22100233, 'Carton_gris': 22100234, 'kraft': 22100235, 'metal': 22100236, 'mal_croppe': 22100237, 'Teint_Dans_La_Masse': 22100238}]} args : 22100198 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 :5, first value : ('0.09998362716558487',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22100198) 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 (1350285103,1350285094,1350285084,1350285075) Found this number of photos: 4 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350285075 begin to download photo : 1350285084 begin to download photo : 1350285094 begin to download photo : 1350285103 download finish for photo 1350285075 download finish for photo 1350285084 download finish for photo 1350285094 download finish for photo 1350285103 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 4 ; length of list_pids : 4 ; length of list_args : 4 results_Auto_P22100198_07-04-2025_11_44_59.pdf 22100228 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=22100228 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350284342: '1744018553_895405_1350283954_7a0f3c59764e41939dc73eb78a7435a2_rle_crop_3748801833_0.png', 1350284724: '1744018768_200505_1350284609_8e4b6e97f4f236311cc3589e3f233ae0_rle_crop_3748803470_0.png', 1350284725: '1744018768_200505_1350284589_c6ce73f04673499e903b3bfdc0bf67b1_rle_crop_3748803484_0.png', 1350284726: '1744018768_200505_1350284575_39bd03d5f3b701abb37853df11e515ca_rle_crop_3748803518_0.png', 1350285019: '1744018912_898679_1350284744_f7cf732f5ebaa13e1458cea13ad3d77e_rle_crop_3748805194_0.png', 1350285020: '1744018912_898679_1350284744_f7cf732f5ebaa13e1458cea13ad3d77e_rle_crop_3748805198_0.png', 1350285034: '1744018932_898921_1350284697_f5859fe09124520d1d9e5cba2347a115_rle_crop_3748805688_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/5557e2cfc62d70a675674a226c0829ea_37130004.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/44f1139d363b6615ca0679e353608df4_31230285.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/bd68daa9a48df0f186ebd3874e207518_76270628.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/0cdcda885c1ab5702ce50e251dab5b21_86918339.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/3b3bae0f85863bf73ba2256027e26be5_8570380.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/951cceffb49956effe05222ab8e2160a_34954373.png change filename to text .imagette221002281744019099/ imagette221002281744019099/1744018768_200505_1350284575_39bd03d5f3b701abb37853df11e515ca_rle_crop_3748803518_0.png.png imagette221002281744019099/1744018932_898921_1350284697_f5859fe09124520d1d9e5cba2347a115_rle_crop_3748805688_0.png.png imagette221002281744019099/1744018553_895405_1350283954_7a0f3c59764e41939dc73eb78a7435a2_rle_crop_3748801833_0.png.png imagette221002281744019099/1744018912_898679_1350284744_f7cf732f5ebaa13e1458cea13ad3d77e_rle_crop_3748805194_0.png.png imagette221002281744019099/1744018912_898679_1350284744_f7cf732f5ebaa13e1458cea13ad3d77e_rle_crop_3748805198_0.png.png imagette221002281744019099/1744018768_200505_1350284609_8e4b6e97f4f236311cc3589e3f233ae0_rle_crop_3748803470_0.png.png imagette221002281744019099/1744018768_200505_1350284589_c6ce73f04673499e903b3bfdc0bf67b1_rle_crop_3748803484_0.png.png imagette221002291744019099/ wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/104e3897dff539da6baf461a92da7bc9_51129396.png imagette221002281744019099 22100229 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=22100229 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221002291744019099 22100231 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=22100231 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350284377: '1744018553_895405_1350283963_686169cd009e7dd08af84ccc3413e34c_rle_crop_3748801816_0.png', 1350284379: '1744018553_895405_1350283954_7a0f3c59764e41939dc73eb78a7435a2_rle_crop_3748801831_0.png', 1350284576: '1744018645_197792_1350284283_b1d4e394d1f67e1c78881c46fe88b9f2_rle_crop_3748802991_0.png', 1350285035: '1744018932_898921_1350284688_357c962e7ab9440952b908aa3fdf85bf_rle_crop_3748805702_0.png', 1350285037: '1744018932_898921_1350284688_357c962e7ab9440952b908aa3fdf85bf_rle_crop_3748805707_0.png', 1350285303: '1744019012_899891_1350284978_1a2943b30fe9cda0d8801f88838db7e5_rle_crop_3748806144_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/abea981a4ddeb7cbe82702ada1f069cf_90974409.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/fb773fa0081ad7683e727fe5b426dcbc_20654372.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/503fe8d09c119ffb133cc92250e1d40b_8555515.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/ce54bbe7d0ab47a9e7f40d70cd8e1967_64082641.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/77a7ce1990f4d24e0575a0305185173e_69624483.png change filename to text .imagette221002311744019099/ imagette221002311744019099/1744018932_898921_1350284688_357c962e7ab9440952b908aa3fdf85bf_rle_crop_3748805702_0.png.png imagette221002311744019099/1744019012_899891_1350284978_1a2943b30fe9cda0d8801f88838db7e5_rle_crop_3748806144_0.png.png imagette221002311744019099/1744018553_895405_1350283954_7a0f3c59764e41939dc73eb78a7435a2_rle_crop_3748801831_0.png.png imagette221002311744019099/1744018645_197792_1350284283_b1d4e394d1f67e1c78881c46fe88b9f2_rle_crop_3748802991_0.png.png imagette221002311744019099/1744018932_898921_1350284688_357c962e7ab9440952b908aa3fdf85bf_rle_crop_3748805707_0.png.png imagette221002311744019099/1744018553_895405_1350283963_686169cd009e7dd08af84ccc3413e34c_rle_crop_3748801816_0.png.png imagette221002321744019100/ imagette221002351744019100/ imagette221002361744019100/ imagette221002371744019100/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/6c1eeb8414cb44c188ccc0403552601c_15158980.png imagette221002311744019099 22100232 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=22100232 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221002321744019100 22100235 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=22100235 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221002351744019100 22100236 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=22100236 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221002361744019100 22100237 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=22100237 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221002371744019100 22100230 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=22100230 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350284287: '1744018533_895236_1350283892_7c80a1958bdd229510c6e2b46d61fc42_rle_crop_3748801672_0.png', 1350284735: '1744018768_200505_1350284609_8e4b6e97f4f236311cc3589e3f233ae0_rle_crop_3748803466_0.png', 1350284736: '1744018768_200505_1350284609_8e4b6e97f4f236311cc3589e3f233ae0_rle_crop_3748803473_0.png', 1350284737: '1744018768_200505_1350284589_c6ce73f04673499e903b3bfdc0bf67b1_rle_crop_3748803486_0.png', 1350285021: '1744018912_898679_1350284744_f7cf732f5ebaa13e1458cea13ad3d77e_rle_crop_3748805200_0.png', 1350285044: '1744018932_898921_1350284697_f5859fe09124520d1d9e5cba2347a115_rle_crop_3748805693_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/bf27a41c5dd8324a38114391b31afaf1_50215323.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/9567e2c2eff9a29a6a949a661a261e18_3281441.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/b7fe110b3fc7fa1ecdf2d3b883e36e25_56596243.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/6a8e7531ade4ac86840178ef5789e51b_25202847.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/1196e48d4770a09cc15c646fe3fe7261_24498270.png change filename to text .imagette221002301744019100/ imagette221002301744019100/1744018768_200505_1350284589_c6ce73f04673499e903b3bfdc0bf67b1_rle_crop_3748803486_0.png.png imagette221002301744019100/1744018932_898921_1350284697_f5859fe09124520d1d9e5cba2347a115_rle_crop_3748805693_0.png.png imagette221002301744019100/1744018768_200505_1350284609_8e4b6e97f4f236311cc3589e3f233ae0_rle_crop_3748803466_0.png.png imagette221002301744019100/1744018768_200505_1350284609_8e4b6e97f4f236311cc3589e3f233ae0_rle_crop_3748803473_0.png.png imagette221002301744019100/1744018533_895236_1350283892_7c80a1958bdd229510c6e2b46d61fc42_rle_crop_3748801672_0.png.png imagette221002301744019100/1744018912_898679_1350284744_f7cf732f5ebaa13e1458cea13ad3d77e_rle_crop_3748805200_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/6fed530ab2f5304cc2dcaf4361bbd500_46563262.png imagette221002301744019100 22100234 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=22100234 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350284284: '1744018533_895236_1350283997_612ad27142cdca60e89f0b6d0c47da02_rle_crop_3748801665_0.png', 1350284285: '1744018533_895236_1350283889_3c6ab75c6b0d82b6729fcb1384cdf273_rle_crop_3748801676_0.png', 1350284508: '1744018645_197792_1350284283_b1d4e394d1f67e1c78881c46fe88b9f2_rle_crop_3748802985_0.png', 1350284727: '1744018768_200505_1350284609_8e4b6e97f4f236311cc3589e3f233ae0_rle_crop_3748803468_0.png', 1350284728: '1744018768_200505_1350284589_c6ce73f04673499e903b3bfdc0bf67b1_rle_crop_3748803483_0.png', 1350284729: '1744018768_200505_1350284575_39bd03d5f3b701abb37853df11e515ca_rle_crop_3748803516_0.png', 1350284730: '1744018768_200505_1350284575_39bd03d5f3b701abb37853df11e515ca_rle_crop_3748803521_0.png', 1350284731: '1744018768_200505_1350284575_39bd03d5f3b701abb37853df11e515ca_rle_crop_3748803520_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/f29cbce0da0eed184dfe19686ca67ba8_71034481.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/16524eb7c6c4847df043eed437dc6c7a_76451940.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/0dc304279497e37441a9d7d225794ef7_82754263.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/3281edb22c1aa7ec356dc9ec1b171d9c_21270263.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/62c35c75bc6e4e1f214adda846c4ca70_64836676.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/c5244ea7a2986b90c2caf9dac3a3fb65_35411811.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/f0a20ce88faee36cc27a4045abf0e656_55424629.png change filename to text .imagette221002341744019100/ imagette221002341744019100/1744018533_895236_1350283997_612ad27142cdca60e89f0b6d0c47da02_rle_crop_3748801665_0.png.png imagette221002341744019100/1744018768_200505_1350284589_c6ce73f04673499e903b3bfdc0bf67b1_rle_crop_3748803483_0.png.png imagette221002341744019100/1744018768_200505_1350284575_39bd03d5f3b701abb37853df11e515ca_rle_crop_3748803516_0.png.png imagette221002341744019100/1744018645_197792_1350284283_b1d4e394d1f67e1c78881c46fe88b9f2_rle_crop_3748802985_0.png.png imagette221002341744019100/1744018768_200505_1350284609_8e4b6e97f4f236311cc3589e3f233ae0_rle_crop_3748803468_0.png.png imagette221002341744019100/1744018768_200505_1350284575_39bd03d5f3b701abb37853df11e515ca_rle_crop_3748803521_0.png.png imagette221002341744019100/1744018533_895236_1350283889_3c6ab75c6b0d82b6729fcb1384cdf273_rle_crop_3748801676_0.png.png imagette221002341744019100/1744018768_200505_1350284575_39bd03d5f3b701abb37853df11e515ca_rle_crop_3748803520_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/2f21cb7f4c67be9989c7dc9958af1089_7008317.png imagette221002341744019100 22100238 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=22100238 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350284029: '1744018412_893640_1350283720_c49616c6022e04afef6e9f322a82d9da_rle_crop_3748799987_0.png', 1350285017: '1744018912_898679_1350284746_f9f133a2136e80afa19005af04ed9503_rle_crop_3748805184_0.png', 1350285018: '1744018912_898679_1350284746_f9f133a2136e80afa19005af04ed9503_rle_crop_3748805183_0.png', 1350285033: '1744018932_898921_1350284750_fc08a8048e13a51b4075d1193f1b7d21_rle_crop_3748805656_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/b9e3de229ded395a9d0a9d9243cb375a_99006193.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/ee02391874c0667fae7034b6789a3317_95959833.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/6c415ea4bf2138b3dd0b7a0d57ac1641_2499703.png change filename to text .imagette221002381744019101/ imagette221002381744019101/1744018912_898679_1350284746_f9f133a2136e80afa19005af04ed9503_rle_crop_3748805184_0.png.png imagette221002381744019101/1744018912_898679_1350284746_f9f133a2136e80afa19005af04ed9503_rle_crop_3748805183_0.png.png imagette221002381744019101/1744018412_893640_1350283720_c49616c6022e04afef6e9f322a82d9da_rle_crop_3748799987_0.png.png imagette221002381744019101/1744018932_898921_1350284750_fc08a8048e13a51b4075d1193f1b7d21_rle_crop_3748805656_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/c7e28b0efccc6b5ceb8019ab8f682696_42547857.png imagette221002381744019101 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22100198 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22100239,22100240,22100241,22100242,22100244,22100245,22100246,22100247,22100248,22100249,22100250,22100251?tags=papier,autre_refus,flou,Carton_brun,cartonnette,plastique,environnement,Carton_gris,kraft,metal,mal_croppe,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1350285103] : ('0.09998362716558487',) no score found for photo 1350285103 We are sending mail with results at report@fotonower.com args[1350285094] : ('0.09998362716558487',) no score found for photo 1350285094 We are sending mail with results at report@fotonower.com args[1350285084] : ('0.09998362716558487',) no score found for photo 1350285084 We are sending mail with results at report@fotonower.com args[1350285075] : ('0.09998362716558487',) no score found for photo 1350285075 We are sending mail with results at report@fotonower.com refus_total : 0.09998362716558487 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=22100198 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_P22100198_07-04-2025_11_44_59.pdf results_Auto_P22100198_07-04-2025_11_44_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22100198_07-04-2025_11_44_59.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','22100198','results_Auto_P22100198_07-04-2025_11_44_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22100198_07-04-2025_11_44_59.pdf','pdf','','0.22','0.09998362716558487') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22100198]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350285103, 1350285094, 1350285084, 1350285075] map_info['map_portfolio_photo'] : {22100198: [1350285103, 1350285094, 1350285084, 1350285075, 1350284978, 1350284960, 1350284818, 1350284814, 1350284750, 1350284746, 1350284744, 1350284703, 1350284697, 1350284688, 1350284683, 1350284622, 1350284609, 1350284589, 1350284575, 1350284452, 1350284312, 1350284291, 1350284283, 1350284155, 1350283997, 1350283963, 1350283954, 1350283897, 1350283892, 1350283889, 1350283727, 1350283721, 1350283720, 1350283413, 1350283411, 1350283408]} final : False mtd_id 4302 list_pids : [1350285103, 1350285094, 1350285084, 1350285075] 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, '2728592') ('4302', '22100198', '1350285103', None, None, None, None, None, '2728592') ('4302', None, None, None, None, None, None, None, '2728592') ('4302', '22100198', '1350285094', None, None, None, None, None, '2728592') ('4302', None, None, None, None, None, None, None, '2728592') ('4302', '22100198', '1350285084', None, None, None, None, None, '2728592') ('4302', None, None, None, None, None, None, None, '2728592') ('4302', '22100198', '1350285075', None, None, None, None, None, '2728592') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 4 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', '22100198', '1350285103', None, None, None, None, None, '2728592'), ('4302', '22100198', '1350285094', None, None, None, None, None, '2728592'), ('4302', '22100198', '1350285084', None, None, None, None, None, '2728592'), ('4302', '22100198', '1350285075', None, None, None, None, None, '2728592')] time used for this insertion : 0.018910646438598633 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.0202243328094482 time spend to save output : 0.019097328186035156 total time spend for step 4 : 3.0393216609954834 step5:split_time_score Mon Apr 7 11:45:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22100198'] 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 : [('22100198',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22100198) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350285075: {'path': 'temp/1744019099_118631_1350285075_5179481a5314aaf31dd9afe4744cc3f7.jpg', 'extension': 'jpg'}, 1350285084: {'path': 'temp/1744019099_118631_1350285084_2e311edfad944a586c61c278905127f4.jpg', 'extension': 'jpg'}, 1350285094: {'path': 'temp/1744019099_118631_1350285094_983096642d2aae8e1ff6f43a423bb4b9.jpg', 'extension': 'jpg'}, 1350285103: {'path': 'temp/1744019099_118631_1350285103_0719dec057008b8d24d964139f9b1728.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 = 22100198; (('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 = 22100198 group by h (('11', 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=22100198 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 (22100198) 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 (22100198) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07042025 22100198 Nombre de photos uploadées : 36 / 23040 (0%) 07042025 22100198 Nombre de photos taguées (types de déchets): 0 / 36 (0%) 07042025 22100198 Nombre de photos taguées (volume) : 0 / 36 (0%) [{'photo_id': 1350283413, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/dbdeebf06354212243405c9d155329d5.jpg', 'username': None, 'uploaded_at': 1744018267, 'text': 'image_07042025_11_30_05_010157m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350283411, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/2fb13a96db805a79191cf31d128c2911.jpg', 'username': None, 'uploaded_at': 1744018267, 'text': 'image_07042025_11_30_24_010135m0.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1350283408, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/2828728a50ad93b66bad210e6459a020.jpg', 'username': None, 'uploaded_at': 1744018267, 'text': 'image_07042025_11_30_34_010133m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1350283727, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/5dd1d20fc4abbe7354501c870116cc55.jpg', 'username': None, 'uploaded_at': 1744018328, 'text': 'image_07042025_11_30_44_010137m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.0994415283203125e-06 elapsed_time : order_list_meta_photo_and_scores 1.0251998901367188e-05 ???????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002765178680419922 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22100198, '2025-04-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1719143,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02847003936767578 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= 1719143 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1719143, 'dashboard_run_id': 1727532, 'mtr_portfolio_id': 22097995, 'dashboard_result_id': 9904220, '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_P22097995_07-04-2025_11_02_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22097998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22097999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22098000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22098001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22098002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22098003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22098004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22098005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22098006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22098007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22098008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22098009, 'pht': 3726}}"}, {'dashboat_entry_day': 1719143, 'dashboard_run_id': 1727532, 'mtr_portfolio_id': 22098735, 'dashboard_result_id': 9904221, '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_P22098735_07-04-2025_11_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22098762, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22098763, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22098764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22098765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22098766, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22098767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22098768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22098769, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22098770, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22098771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22098772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22098773, 'pht': 3726}}"}, {'dashboat_entry_day': 1719143, 'dashboard_run_id': 1727532, 'mtr_portfolio_id': 22099363, 'dashboard_result_id': 9904222, '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_P22099363_07-04-2025_11_32_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22099392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22099393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22099394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22099395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22099396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22099397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22099398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22099399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22099400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22099401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22099402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22099403, 'pht': 3726}}"}, {'dashboat_entry_day': 1719143, 'dashboard_run_id': 1727532, 'mtr_portfolio_id': 22100198, 'dashboard_result_id': 9904223, '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_P22100198_07-04-2025_11_43_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22100227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22100228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22100229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22100230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22100231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22100232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22100233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22100234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22100235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22100236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22100237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22100238, '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 = 22097995 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': 2728422, 'mtr_portfolio_id': 22097995, 'created_at': datetime.datetime(2025, 4, 7, 11, 2, 31), 'result': '0.04559058438842548', 'result_long': None, 'result_double': None}] Qualite : 0.04559058438842548 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22097995 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22097995_07-04-2025_11_02_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22097995 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_P22097995_07-04-2025_11_02_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22097998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22097999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22098000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22098001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22098002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22098003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22098004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22098005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22098006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22098007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22098008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22098009, 'pht': 3726}}" where mtr_portfolio_id = 22097995 and dashboard_run_id = 1727532 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`=22097995 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9904220, 0.04559058438842548, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22097995_07-04-2025_11_02_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22097998, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22097999, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22098000, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22098001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22098002, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22098003, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22098004, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22098005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22098006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22098007, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22098008, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22098009, '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 = 22098735 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': 2728493, 'mtr_portfolio_id': 22098735, 'created_at': datetime.datetime(2025, 4, 7, 11, 16, 59), 'result': '0.05181350074261624', 'result_long': None, 'result_double': None}] Qualite : 0.05181350074261624 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22098735 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22098735_07-04-2025_11_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22098735 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_P22098735_07-04-2025_11_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22098762, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22098763, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22098764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22098765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22098766, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22098767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22098768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22098769, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22098770, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22098771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22098772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22098773, 'pht': 3726}}" where mtr_portfolio_id = 22098735 and dashboard_run_id = 1727532 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`=22098735 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9904221, 0.05181350074261624, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22098735_07-04-2025_11_17_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22098762, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22098763, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22098764, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22098765, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22098766, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22098767, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22098768, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22098769, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22098770, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22098771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22098772, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22098773, '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 = 22099363 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': 2728532, 'mtr_portfolio_id': 22099363, 'created_at': datetime.datetime(2025, 4, 7, 11, 32, 35), 'result': '0.07267822864792925', 'result_long': None, 'result_double': None}] Qualite : 0.07267822864792925 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22099363 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22099363_07-04-2025_11_32_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22099363 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_P22099363_07-04-2025_11_32_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22099392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22099393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22099394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22099395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22099396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22099397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22099398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22099399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22099400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22099401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22099402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22099403, 'pht': 3726}}" where mtr_portfolio_id = 22099363 and dashboard_run_id = 1727532 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`=22099363 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9904222, 0.07267822864792925, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22099363_07-04-2025_11_32_35.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22099392, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22099393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22099394, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22099395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22099396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22099397, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22099398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22099399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22099400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22099401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22099402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22099403, '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 = 22100198 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': 2728592, 'mtr_portfolio_id': 22100198, 'created_at': datetime.datetime(2025, 4, 7, 11, 44, 59), 'result': '0.09998362716558487', 'result_long': None, 'result_double': None}] Qualite : 0.09998362716558487 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22100198 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22100198_07-04-2025_11_44_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22100198 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_P22100198_07-04-2025_11_44_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22100227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22100228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22100229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22100230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22100231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22100232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22100233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22100234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22100235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22100236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22100237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22100238, 'pht': 3726}}" where mtr_portfolio_id = 22100198 and dashboard_run_id = 1727532 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`=22100198 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9904223, 0.09998362716558487, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22100198_07-04-2025_11_44_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22100227, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22100228, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22100229, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22100230, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22100231, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22100232, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22100233, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22100234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22100235, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22100236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22100237, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22100238, '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 (22097995,22098735,22099363,22100198) result : ((1350271443,), (1350271447,), (1350271457,), (1350271463,), (1350271675,), (1350271707,), (1350271720,), (1350271747,), (1350271779,), (1350271974,), (1350272003,), (1350272008,), (1350272019,), (1350272379,), (1350272463,), (1350272601,), (1350272629,), (1350273307,), (1350273371,), (1350273421,), (1350273459,), (1350273523,), (1350273606,), (1350273781,), (1350273828,), (1350273879,), (1350273912,), (1350273944,), (1350274019,), (1350274039,), (1350274061,), (1350274330,), (1350274358,), (1350274371,), (1350274377,), (1350274387,), (1350274393,), (1350274433,), (1350274440,), (1350274445,), (1350274448,), (1350274455,), (1350274514,), (1350274519,), (1350274522,), (1350274527,), (1350274674,), (1350274678,), (1350274682,), (1350274687,), (1350274742,), (1350274747,), (1350274751,), (1350274755,), (1350274760,), (1350274766,), (1350274845,), (1350274867,), (1350274885,), (1350275362,), (1350275413,), (1350275462,), (1350275524,), (1350275713,), (1350275781,), (1350275837,), (1350275896,), (1350276520,), (1350276276,), (1350276369,), (1350276440,), (1350277010,), (1350277050,), (1350277082,), (1350277109,), (1350277572,), (1350277597,), (1350277633,), (1350277685,), (1350278157,), (1350278200,), (1350278228,), (1350278329,), (1350278785,), (1350278836,), (1350278913,), (1350278966,), (1350279017,), (1350279200,), (1350279209,), (1350279213,), (1350279275,), (1350279285,), (1350279289,), (1350279294,), (1350279302,), (1350279314,), (1350279503,), (1350279534,), (1350279541,), (1350279560,), (1350279701,), (1350279706,), (1350279717,), (1350279745,), (1350279828,), (1350279833,), (1350279855,), (1350279863,), (1350279869,), (1350279964,), (1350279970,), (1350279975,), (1350279981,), (1350280241,), (1350280258,), (1350280282,), (1350280305,), (1350280334,), (1350280358,), (1350280536,), (1350280545,), (1350280549,), (1350280717,), (1350280743,), (1350280762,), (1350280769,), (1350280777,), (1350280795,), (1350280858,), (1350280861,), (1350280868,), (1350280871,), (1350280932,), (1350280910,), (1350280921,), (1350280928,), (1350281018,), (1350281022,), (1350281039,), (1350281046,), (1350281048,), (1350281153,), (1350281157,), (1350281161,), (1350281170,), (1350281174,), (1350281178,), (1350281292,), (1350281300,), (1350281309,), (1350281315,), (1350281319,), (1350281607,), (1350281617,), (1350281620,), (1350281624,), (1350281631,), (1350281704,), (1350281706,), (1350281710,), (1350281819,), (1350281839,), (1350281872,), (1350281900,), (1350281917,), (1350282001,), (1350282008,), (1350282021,), (1350282248,), (1350282262,), (1350282266,), (1350282270,), (1350282330,), (1350282337,), (1350282339,), (1350282344,), (1350282447,), (1350282453,), (1350282468,), (1350282483,), (1350282498,), (1350282566,), (1350282839,), (1350282914,), (1350282921,), (1350282940,), (1350282947,), (1350283031,), (1350283038,), (1350283078,), (1350283085,), (1350283206,), (1350283234,), (1350283241,), (1350283245,), (1350283314,), (1350283316,), (1350283320,), (1350283332,), (1350283339,), (1350283424,), (1350283408,), (1350283411,), (1350283413,), (1350283720,), (1350283721,), (1350283727,), (1350283889,), (1350283892,), (1350283897,), (1350283954,), (1350283963,), (1350283997,), (1350284155,), (1350284283,), (1350284291,), (1350284312,), (1350284452,), (1350284575,), (1350284589,), (1350284609,), (1350284622,), (1350284683,), (1350284688,), (1350284697,), (1350284703,), (1350284744,), (1350284746,), (1350284750,), (1350284814,), (1350284818,), (1350284960,), (1350284978,), (1350285075,), (1350285084,), (1350285094,), (1350285103,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07042025': {'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([22100198]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350285103, 1350285094, 1350285084, 1350285075] map_info['map_portfolio_photo'] : {22100198: [1350285103, 1350285094, 1350285084, 1350285075, 1350284978, 1350284960, 1350284818, 1350284814, 1350284750, 1350284746, 1350284744, 1350284703, 1350284697, 1350284688, 1350284683, 1350284622, 1350284609, 1350284589, 1350284575, 1350284452, 1350284312, 1350284291, 1350284283, 1350284155, 1350283997, 1350283963, 1350283954, 1350283897, 1350283892, 1350283889, 1350283727, 1350283721, 1350283720, 1350283413, 1350283411, 1350283408]} final : True mtd_id 4302 list_pids : [1350285103, 1350285094, 1350285084, 1350285075] Looping around the photos to save general results len do output : 1 /22100198Didn'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, '2728592') ('4302', '22100198', '1350285103', None, None, None, None, None, '2728592') ('4302', None, None, None, None, None, None, None, '2728592') ('4302', '22100198', '1350285094', None, None, None, None, None, '2728592') ('4302', None, None, None, None, None, None, None, '2728592') ('4302', '22100198', '1350285084', None, None, None, None, None, '2728592') ('4302', None, None, None, None, None, None, None, '2728592') ('4302', '22100198', '1350285075', None, None, None, None, None, '2728592') 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', None, '22100198', 'None', None, None, None, None, '2728592'), ('4302', '22100198', '1350285103', None, None, None, None, None, '2728592'), ('4302', '22100198', '1350285094', None, None, None, None, None, '2728592'), ('4302', '22100198', '1350285084', None, None, None, None, None, '2728592'), ('4302', '22100198', '1350285075', None, None, None, None, None, '2728592')] time used for this insertion : 0.015898942947387695 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.35986971855163574 time spend to save output : 0.01609015464782715 total time spend for step 5 : 0.3759598731994629 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 (2728592) 2.02user 2.55system 0:07.06elapsed 64%CPU (0avgtext+0avgdata 162956maxresident)k 424inputs+10288outputs (3major+64971minor)pagefaults 0swaps