SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21784774) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21784732) result : ((1347813893,), (1347813917,), (1347813948,), (1347813974,), (1347814386,), (1347814430,), (1347814480,), (1347814526,), (1347814571,), (1347814617,), (1347815076,), (1347815234,), (1347816000,), (1347816017,), (1347816100,), (1347816204,), (1347816336,), (1347816596,), (1347816608,), (1347816630,), (1347816648,), (1347816715,), (1347816958,), (1347817001,), (1347817043,), (1347817055,), (1347817329,), (1347817369,), (1347817434,), (1347817467,), (1347817770,), (1347817821,), (1347817865,), (1347817912,), (1347817948,), (1347818184,), (1347818211,), (1347818245,), (1347818547,), (1347818553,), (1347818602,), (1347818629,), (1347818670,), (1347818710,), (1347818905,), (1347818928,), (1347818954,), (1347818981,), (1347819015,), (1347819046,), (1347819202,), (1347819205,), (1347819223,)) 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 (1347816100,1347816000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21784775 , 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=21784732 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 (21784775) result : ((1347818174,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21784732) result : ((1347813893,), (1347813917,), (1347813948,), (1347813974,), (1347814386,), (1347814430,), (1347814480,), (1347814526,), (1347814571,), (1347814617,), (1347815076,), (1347815234,), (1347816000,), (1347816017,), (1347816100,), (1347816204,), (1347816336,), (1347816596,), (1347816608,), (1347816630,), (1347816648,), (1347816715,), (1347816958,), (1347817001,), (1347817043,), (1347817055,), (1347817329,), (1347817369,), (1347817434,), (1347817467,), (1347817770,), (1347817821,), (1347817865,), (1347817912,), (1347817948,), (1347818184,), (1347818211,), (1347818245,), (1347818547,), (1347818553,), (1347818602,), (1347818629,), (1347818670,), (1347818710,), (1347818905,), (1347818928,), (1347818954,), (1347818981,), (1347819015,), (1347819046,), (1347819202,), (1347819205,), (1347819223,)) 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 (1347816100,1347816000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21784776 , 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=21784732 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 (21784776) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21784732) result : ((1347813893,), (1347813917,), (1347813948,), (1347813974,), (1347814386,), (1347814430,), (1347814480,), (1347814526,), (1347814571,), (1347814617,), (1347815076,), (1347815234,), (1347816000,), (1347816017,), (1347816100,), (1347816204,), (1347816336,), (1347816596,), (1347816608,), (1347816630,), (1347816648,), (1347816715,), (1347816958,), (1347817001,), (1347817043,), (1347817055,), (1347817329,), (1347817369,), (1347817434,), (1347817467,), (1347817770,), (1347817821,), (1347817865,), (1347817912,), (1347817948,), (1347818184,), (1347818211,), (1347818245,), (1347818547,), (1347818553,), (1347818602,), (1347818629,), (1347818670,), (1347818710,), (1347818905,), (1347818928,), (1347818954,), (1347818981,), (1347819015,), (1347819046,), (1347819202,), (1347819205,), (1347819223,)) 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 (1347816100,1347816000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21784777 , 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=21784732 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 (21784777) result : ((1347817198,), (1347817200,), (1347818405,), (1347818406,), (1347818407,), (1347818409,), (1347818986,), (1347818987,), (1347818988,), (1347818989,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21784732) result : ((1347813893,), (1347813917,), (1347813948,), (1347813974,), (1347814386,), (1347814430,), (1347814480,), (1347814526,), (1347814571,), (1347814617,), (1347815076,), (1347815234,), (1347816000,), (1347816017,), (1347816100,), (1347816204,), (1347816336,), (1347816596,), (1347816608,), (1347816630,), (1347816648,), (1347816715,), (1347816958,), (1347817001,), (1347817043,), (1347817055,), (1347817329,), (1347817369,), (1347817434,), (1347817467,), (1347817770,), (1347817821,), (1347817865,), (1347817912,), (1347817948,), (1347818184,), (1347818211,), (1347818245,), (1347818547,), (1347818553,), (1347818602,), (1347818629,), (1347818670,), (1347818710,), (1347818905,), (1347818928,), (1347818954,), (1347818981,), (1347819015,), (1347819046,), (1347819202,), (1347819205,), (1347819223,)) 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 (1347816100,1347816000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21784778 , 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=21784732 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 (21784778) result : ((1347817230,), (1347818168,), (1347818213,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21784732) result : ((1347813893,), (1347813917,), (1347813948,), (1347813974,), (1347814386,), (1347814430,), (1347814480,), (1347814526,), (1347814571,), (1347814617,), (1347815076,), (1347815234,), (1347816000,), (1347816017,), (1347816100,), (1347816204,), (1347816336,), (1347816596,), (1347816608,), (1347816630,), (1347816648,), (1347816715,), (1347816958,), (1347817001,), (1347817043,), (1347817055,), (1347817329,), (1347817369,), (1347817434,), (1347817467,), (1347817770,), (1347817821,), (1347817865,), (1347817912,), (1347817948,), (1347818184,), (1347818211,), (1347818245,), (1347818547,), (1347818553,), (1347818602,), (1347818629,), (1347818670,), (1347818710,), (1347818905,), (1347818928,), (1347818954,), (1347818981,), (1347819015,), (1347819046,), (1347819202,), (1347819205,), (1347819223,)) 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 (1347816100,1347816000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21784779 , 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=21784732 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 (21784779) result : ((1347819043,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21784732) result : ((1347813893,), (1347813917,), (1347813948,), (1347813974,), (1347814386,), (1347814430,), (1347814480,), (1347814526,), (1347814571,), (1347814617,), (1347815076,), (1347815234,), (1347816000,), (1347816017,), (1347816100,), (1347816204,), (1347816336,), (1347816596,), (1347816608,), (1347816630,), (1347816648,), (1347816715,), (1347816958,), (1347817001,), (1347817043,), (1347817055,), (1347817329,), (1347817369,), (1347817434,), (1347817467,), (1347817770,), (1347817821,), (1347817865,), (1347817912,), (1347817948,), (1347818184,), (1347818211,), (1347818245,), (1347818547,), (1347818553,), (1347818602,), (1347818629,), (1347818670,), (1347818710,), (1347818905,), (1347818928,), (1347818954,), (1347818981,), (1347819015,), (1347819046,), (1347819202,), (1347819205,), (1347819223,)) 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 (1347816100,1347816000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21784780 , 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=21784732 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 (21784780) result : ((1347817310,), (1347819036,), (1347819037,), (1347819038,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21784732) result : ((1347813893,), (1347813917,), (1347813948,), (1347813974,), (1347814386,), (1347814430,), (1347814480,), (1347814526,), (1347814571,), (1347814617,), (1347815076,), (1347815234,), (1347816000,), (1347816017,), (1347816100,), (1347816204,), (1347816336,), (1347816596,), (1347816608,), (1347816630,), (1347816648,), (1347816715,), (1347816958,), (1347817001,), (1347817043,), (1347817055,), (1347817329,), (1347817369,), (1347817434,), (1347817467,), (1347817770,), (1347817821,), (1347817865,), (1347817912,), (1347817948,), (1347818184,), (1347818211,), (1347818245,), (1347818547,), (1347818553,), (1347818602,), (1347818629,), (1347818670,), (1347818710,), (1347818905,), (1347818928,), (1347818954,), (1347818981,), (1347819015,), (1347819046,), (1347819202,), (1347819205,), (1347819223,)) 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 (1347816100,1347816000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21784781 , 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=21784732 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 (21784781) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21784732) result : ((1347813893,), (1347813917,), (1347813948,), (1347813974,), (1347814386,), (1347814430,), (1347814480,), (1347814526,), (1347814571,), (1347814617,), (1347815076,), (1347815234,), (1347816000,), (1347816017,), (1347816100,), (1347816204,), (1347816336,), (1347816596,), (1347816608,), (1347816630,), (1347816648,), (1347816715,), (1347816958,), (1347817001,), (1347817043,), (1347817055,), (1347817329,), (1347817369,), (1347817434,), (1347817467,), (1347817770,), (1347817821,), (1347817865,), (1347817912,), (1347817948,), (1347818184,), (1347818211,), (1347818245,), (1347818547,), (1347818553,), (1347818602,), (1347818629,), (1347818670,), (1347818710,), (1347818905,), (1347818928,), (1347818954,), (1347818981,), (1347819015,), (1347819046,), (1347819202,), (1347819205,), (1347819223,)) 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 (1347816100,1347816000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21784782 , 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=21784732 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 (21784782) result : ((1347817272,), (1347817274,), (1347817276,), (1347818218,), (1347818430,), (1347818656,), (1347819017,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21784732) result : ((1347813893,), (1347813917,), (1347813948,), (1347813974,), (1347814386,), (1347814430,), (1347814480,), (1347814526,), (1347814571,), (1347814617,), (1347815076,), (1347815234,), (1347816000,), (1347816017,), (1347816100,), (1347816204,), (1347816336,), (1347816596,), (1347816608,), (1347816630,), (1347816648,), (1347816715,), (1347816958,), (1347817001,), (1347817043,), (1347817055,), (1347817329,), (1347817369,), (1347817434,), (1347817467,), (1347817770,), (1347817821,), (1347817865,), (1347817912,), (1347817948,), (1347818184,), (1347818211,), (1347818245,), (1347818547,), (1347818553,), (1347818602,), (1347818629,), (1347818670,), (1347818710,), (1347818905,), (1347818928,), (1347818954,), (1347818981,), (1347819015,), (1347819046,), (1347819202,), (1347819205,), (1347819223,)) 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 (1347816100,1347816000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21784783 , 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=21784732 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 (21784783) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21784732) result : ((1347813893,), (1347813917,), (1347813948,), (1347813974,), (1347814386,), (1347814430,), (1347814480,), (1347814526,), (1347814571,), (1347814617,), (1347815076,), (1347815234,), (1347816000,), (1347816017,), (1347816100,), (1347816204,), (1347816336,), (1347816596,), (1347816608,), (1347816630,), (1347816648,), (1347816715,), (1347816958,), (1347817001,), (1347817043,), (1347817055,), (1347817329,), (1347817369,), (1347817434,), (1347817467,), (1347817770,), (1347817821,), (1347817865,), (1347817912,), (1347817948,), (1347818184,), (1347818211,), (1347818245,), (1347818547,), (1347818553,), (1347818602,), (1347818629,), (1347818670,), (1347818710,), (1347818905,), (1347818928,), (1347818954,), (1347818981,), (1347819015,), (1347819046,), (1347819202,), (1347819205,), (1347819223,)) 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 (1347816100,1347816000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21784784 , 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=21784732 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 (21784784) result : ((1347817254,), (1347817257,), (1347817259,), (1347817262,), (1347817264,), (1347818425,), (1347818426,), (1347818427,), (1347818428,), (1347818637,), (1347819004,), (1347819006,), (1347819007,), (1347819008,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21784732) result : ((1347813893,), (1347813917,), (1347813948,), (1347813974,), (1347814386,), (1347814430,), (1347814480,), (1347814526,), (1347814571,), (1347814617,), (1347815076,), (1347815234,), (1347816000,), (1347816017,), (1347816100,), (1347816204,), (1347816336,), (1347816596,), (1347816608,), (1347816630,), (1347816648,), (1347816715,), (1347816958,), (1347817001,), (1347817043,), (1347817055,), (1347817329,), (1347817369,), (1347817434,), (1347817467,), (1347817770,), (1347817821,), (1347817865,), (1347817912,), (1347817948,), (1347818184,), (1347818211,), (1347818245,), (1347818547,), (1347818553,), (1347818602,), (1347818629,), (1347818670,), (1347818710,), (1347818905,), (1347818928,), (1347818954,), (1347818981,), (1347819015,), (1347819046,), (1347819202,), (1347819205,), (1347819223,)) 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 (1347816100,1347816000) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21784785 , 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=21784732 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 (21784785) result : ((1347817283,), (1347817285,), (1347817287,), (1347818228,), (1347818434,), (1347818435,), (1347818437,), (1347819025,), (1347819026,), (1347819027,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21784732) result : ((1347813893,), (1347813917,), (1347813948,), (1347813974,), (1347814386,), (1347814430,), (1347814480,), (1347814526,), (1347814571,), (1347814617,), (1347815076,), (1347815234,), (1347816000,), (1347816017,), (1347816100,), (1347816204,), (1347816336,), (1347816596,), (1347816608,), (1347816630,), (1347816648,), (1347816715,), (1347816958,), (1347817001,), (1347817043,), (1347817055,), (1347817329,), (1347817369,), (1347817434,), (1347817467,), (1347817770,), (1347817821,), (1347817865,), (1347817912,), (1347817948,), (1347818184,), (1347818211,), (1347818245,), (1347818547,), (1347818553,), (1347818602,), (1347818629,), (1347818670,), (1347818710,), (1347818905,), (1347818928,), (1347818954,), (1347818981,), (1347819015,), (1347819046,), (1347819202,), (1347819205,), (1347819223,)) 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 (1347816100,1347816000) and cspi.crop_hashtag_id = chi.id; 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`=21784732 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','flou','Teint_Dans_La_Masse','cartonnette','mal_croppe','Carton_gris','Carton_brun','environnement','plastique','metal','autre_refus')) 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`=21784732 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','papier','flou','Teint_Dans_La_Masse','cartonnette','mal_croppe','Carton_gris','Carton_brun','environnement','plastique','metal','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 21784732, 'sub_port_id': 21784786, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305903, 'last_updated_at': datetime.datetime(2025, 3, 27, 11, 5, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 11, 5, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 11, 5, 31)}, 'kraft': {'main_port_id': 21784732, 'sub_port_id': 21784787, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305904, 'last_updated_at': datetime.datetime(2025, 3, 27, 11, 5, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 11, 5, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 11, 5, 31)}, 'flou': {'main_port_id': 21784732, 'sub_port_id': 21784788, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305905, 'last_updated_at': datetime.datetime(2025, 3, 27, 11, 5, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 11, 5, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 11, 5, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 21784732, 'sub_port_id': 21784789, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305906, 'last_updated_at': datetime.datetime(2025, 3, 27, 11, 5, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 11, 5, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 11, 5, 31)}, 'autre_refus': {'main_port_id': 21784732, 'sub_port_id': 21784790, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305907, 'last_updated_at': datetime.datetime(2025, 3, 27, 11, 5, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 11, 5, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 11, 5, 31)}, 'metal': {'main_port_id': 21784732, 'sub_port_id': 21784791, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305908, 'last_updated_at': datetime.datetime(2025, 3, 27, 11, 5, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 11, 5, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 11, 5, 31)}, 'plastique': {'main_port_id': 21784732, 'sub_port_id': 21784792, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305909, 'last_updated_at': datetime.datetime(2025, 3, 27, 11, 5, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 11, 5, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 11, 5, 31)}, 'mal_croppe': {'main_port_id': 21784732, 'sub_port_id': 21784793, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305910, 'last_updated_at': datetime.datetime(2025, 3, 27, 11, 5, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 11, 5, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 11, 5, 31)}, 'cartonnette': {'main_port_id': 21784732, 'sub_port_id': 21784794, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305911, 'last_updated_at': datetime.datetime(2025, 3, 27, 11, 5, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 11, 5, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 11, 5, 31)}, 'environnement': {'main_port_id': 21784732, 'sub_port_id': 21784795, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305912, 'last_updated_at': datetime.datetime(2025, 3, 27, 11, 5, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 11, 5, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 11, 5, 31)}, 'Carton_gris': {'main_port_id': 21784732, 'sub_port_id': 21784796, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305913, 'last_updated_at': datetime.datetime(2025, 3, 27, 11, 5, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 11, 5, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 11, 5, 31)}, 'Carton_brun': {'main_port_id': 21784732, 'sub_port_id': 21784797, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14305914, 'last_updated_at': datetime.datetime(2025, 3, 27, 11, 10, 59), 'last_updated_at_desc': datetime.datetime(2025, 3, 27, 11, 10, 59), 'last_updated_at_asc': datetime.datetime(2025, 3, 27, 11, 5, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21784786,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21784774 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21784787,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21784775 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21784788,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21784776 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21784789,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21784777 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21784790,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21784778 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21784791,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21784779 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21784792,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21784780 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21784793,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21784781 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21784794,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21784782 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21784795,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21784783 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21784796,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21784784 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21784797,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21784785 lien utilise dans velours : https://www.fotonower.com/velours/21784786,21784787,21784788,21784789,21784790,21784791,21784792,21784793,21784794,21784795,21784796,21784797?tags=papier,kraft,flou,Teint_Dans_La_Masse,autre_refus,metal,plastique,mal_croppe,cartonnette,environnement,Carton_gris,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21784732]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1347819223, 1347819205, 1347819202, 1347819046, 1347819015, 1347818981, 1347818954, 1347818928, 1347818905, 1347818710, 1347818670, 1347818629, 1347818602, 1347818553, 1347818547] map_info['map_portfolio_photo'] : {21784732: [1347819223, 1347819205, 1347819202, 1347819046, 1347819015, 1347818981, 1347818954, 1347818928, 1347818905, 1347818710, 1347818670, 1347818629, 1347818602, 1347818553, 1347818547, 1347818245, 1347818211, 1347818184, 1347817948, 1347817912, 1347817865, 1347817821, 1347817770, 1347817467, 1347817434, 1347817369, 1347817329, 1347817055, 1347817043, 1347817001, 1347816958, 1347816715, 1347816648, 1347816630, 1347816608, 1347816596, 1347816336, 1347816204, 1347816100, 1347816017, 1347816000, 1347815234, 1347815076, 1347814617, 1347814571, 1347814526, 1347814480, 1347814430, 1347814386, 1347813974, 1347813948, 1347813917, 1347813893]} final : False mtd_id 4302 list_pids : [1347819223, 1347819205, 1347819202, 1347819046, 1347819015, 1347818981, 1347818954, 1347818928, 1347818905, 1347818710, 1347818670, 1347818629, 1347818602, 1347818553, 1347818547] Looping around the photos to save general results len do output : 1 /21784732. 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, '2697061') ('4302', '21784732', '1347819223', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347819205', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347819202', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347819046', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347819015', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818981', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818954', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818928', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818905', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818710', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818670', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818629', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818602', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818553', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818547', None, None, None, None, None, '2697061') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21784732', "{'papier': 21784774, 'kraft': 21784775, 'flou': 21784776, 'Teint_Dans_La_Masse': 21784777, 'autre_refus': 21784778, 'metal': 21784779, 'plastique': 21784780, 'mal_croppe': 21784781, 'cartonnette': 21784782, 'environnement': 21784783, 'Carton_gris': 21784784, 'Carton_brun': 21784785}", None, None, None, None, '2697061'), ('4302', '21784732', '1347819223', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347819205', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347819202', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347819046', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347819015', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818981', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818954', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818928', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818905', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818710', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818670', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818629', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818602', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818553', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818547', None, None, None, None, None, '2697061')] time used for this insertion : 0.014666080474853516 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.596466064453125 time spend to save output : 0.015059471130371094 total time spend for step 1 : 0.6115255355834961 step2:final Thu Mar 27 11:13: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 (21784732) 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 21784732 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1347813974,1347813948,1347813917,1347813893,1347814617,1347814571,1347814526,1347814480,1347814430,1347814386,1347815234,1347815076,1347816336,1347816204,1347816100,1347816017,1347816000,1347816715,1347816648,1347816630,1347816608,1347816596,1347817055,1347817043,1347817001,1347816958,1347817467,1347817434,1347817369,1347817329,1347817948,1347817912,1347817865,1347817821,1347817770,1347818245,1347818211,1347818184,1347818710,1347818670,1347818629,1347818602,1347818553,1347818547,1347819046,1347819015,1347818981,1347818954,1347818928,1347819223,1347818905,1347819205,1347819202); 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([21784732]) Inside saveOutput : final : False verbose : True original output for save of step final : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ('0.043895218625160555',), 1347818954: ('0.043895218625160555',), 1347818928: ('0.043895218625160555',), 1347818905: ('0.043895218625160555',), 1347818710: ('0.043895218625160555',), 1347818670: ('0.043895218625160555',), 1347818629: ('0.043895218625160555',), 1347818602: ('0.043895218625160555',), 1347818553: ('0.043895218625160555',), 1347818547: ('0.043895218625160555',)} new output for save of step final : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ('0.043895218625160555',), 1347818954: ('0.043895218625160555',), 1347818928: ('0.043895218625160555',), 1347818905: ('0.043895218625160555',), 1347818710: ('0.043895218625160555',), 1347818670: ('0.043895218625160555',), 1347818629: ('0.043895218625160555',), 1347818602: ('0.043895218625160555',), 1347818553: ('0.043895218625160555',), 1347818547: ('0.043895218625160555',)} [1347819223, 1347819205, 1347819202, 1347819046, 1347819015, 1347818981, 1347818954, 1347818928, 1347818905, 1347818710, 1347818670, 1347818629, 1347818602, 1347818553, 1347818547] map_info['map_portfolio_photo'] : {21784732: [1347819223, 1347819205, 1347819202, 1347819046, 1347819015, 1347818981, 1347818954, 1347818928, 1347818905, 1347818710, 1347818670, 1347818629, 1347818602, 1347818553, 1347818547, 1347818245, 1347818211, 1347818184, 1347817948, 1347817912, 1347817865, 1347817821, 1347817770, 1347817467, 1347817434, 1347817369, 1347817329, 1347817055, 1347817043, 1347817001, 1347816958, 1347816715, 1347816648, 1347816630, 1347816608, 1347816596, 1347816336, 1347816204, 1347816100, 1347816017, 1347816000, 1347815234, 1347815076, 1347814617, 1347814571, 1347814526, 1347814480, 1347814430, 1347814386, 1347813974, 1347813948, 1347813917, 1347813893]} final : False mtd_id 4302 list_pids : [1347819223, 1347819205, 1347819202, 1347819046, 1347819015, 1347818981, 1347818954, 1347818928, 1347818905, 1347818710, 1347818670, 1347818629, 1347818602, 1347818553, 1347818547] Looping around the photos to save general results len do output : 15 /1347819223.Didn't retrieve data . /1347819205.Didn't retrieve data . /1347819202.Didn't retrieve data . /1347819046.Didn't retrieve data . /1347819015.Didn't retrieve data . /1347818981.Didn't retrieve data . /1347818954.Didn't retrieve data . /1347818928.Didn't retrieve data . /1347818905.Didn't retrieve data . /1347818710.Didn't retrieve data . /1347818670.Didn't retrieve data . /1347818629.Didn't retrieve data . /1347818602.Didn't retrieve data . /1347818553.Didn't retrieve data . /1347818547.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, '2697061') ('4302', '21784732', '1347819223', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347819205', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347819202', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347819046', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347819015', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818981', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818954', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818928', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818905', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818710', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818670', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818629', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818602', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818553', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818547', None, None, None, None, None, '2697061') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 45 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21784732', '1347819223', '0.043895218625160555', None, None, None, None, '2697061'), ('4302', '21784732', '1347819205', '0.043895218625160555', None, None, None, None, '2697061'), ('4302', '21784732', '1347819202', '0.043895218625160555', None, None, None, None, '2697061'), ('4302', '21784732', '1347819046', '0.043895218625160555', None, None, None, None, '2697061'), ('4302', '21784732', '1347819015', '0.043895218625160555', None, None, None, None, '2697061'), ('4302', '21784732', '1347818981', '0.043895218625160555', None, None, None, None, '2697061'), ('4302', '21784732', '1347818954', '0.043895218625160555', None, None, None, None, '2697061'), ('4302', '21784732', '1347818928', '0.043895218625160555', None, None, None, None, '2697061'), ('4302', '21784732', '1347818905', '0.043895218625160555', None, None, None, None, '2697061'), ('4302', '21784732', '1347818710', '0.043895218625160555', None, None, None, None, '2697061'), ('4302', '21784732', '1347818670', '0.043895218625160555', None, None, None, None, '2697061'), ('4302', '21784732', '1347818629', '0.043895218625160555', None, None, None, None, '2697061'), ('4302', '21784732', '1347818602', '0.043895218625160555', None, None, None, None, '2697061'), ('4302', '21784732', '1347818553', '0.043895218625160555', None, None, None, None, '2697061'), ('4302', '21784732', '1347818547', '0.043895218625160555', None, None, None, None, '2697061')] time used for this insertion : 0.11060428619384766 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07136940956115723 time spend to save output : 0.11142945289611816 total time spend for step 2 : 0.1827988624572754 step3:velours_tree Thu Mar 27 11:13: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 complete output_args for input 0 : {21784732: [{'papier': 21784774, 'kraft': 21784775, 'flou': 21784776, 'Teint_Dans_La_Masse': 21784777, 'autre_refus': 21784778, 'metal': 21784779, 'plastique': 21784780, 'mal_croppe': 21784781, 'cartonnette': 21784782, 'environnement': 21784783, 'Carton_gris': 21784784, 'Carton_brun': 21784785}]} input_args_next_step : {21784732: ()} output_args : {21784732: [{'papier': 21784774, 'kraft': 21784775, 'flou': 21784776, 'Teint_Dans_La_Masse': 21784777, 'autre_refus': 21784778, 'metal': 21784779, 'plastique': 21784780, 'mal_croppe': 21784781, 'cartonnette': 21784782, 'environnement': 21784783, 'Carton_gris': 21784784, 'Carton_brun': 21784785}]} args : 21784732 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': 21784774, 'kraft': 21784775, 'flou': 21784776, 'Teint_Dans_La_Masse': 21784777, 'autre_refus': 21784778, 'metal': 21784779, 'plastique': 21784780, 'mal_croppe': 21784781, 'cartonnette': 21784782, 'environnement': 21784783, 'Carton_gris': 21784784, 'Carton_brun': 21784785},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21784732) 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([21784732]) 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.32897424697875977 time spend to save output : 9.131431579589844e-05 total time spend for step 3 : 0.32906556129455566 step4:send_mail_cod Thu Mar 27 11:13: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 : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ('0.043895218625160555',), 1347818954: ('0.043895218625160555',), 1347818928: ('0.043895218625160555',), 1347818905: ('0.043895218625160555',), 1347818710: ('0.043895218625160555',), 1347818670: ('0.043895218625160555',), 1347818629: ('0.043895218625160555',), 1347818602: ('0.043895218625160555',), 1347818553: ('0.043895218625160555',), 1347818547: ('0.043895218625160555',)} input_args_next_step : {1347819223: ()} output_args : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ('0.043895218625160555',), 1347818954: ('0.043895218625160555',), 1347818928: ('0.043895218625160555',), 1347818905: ('0.043895218625160555',), 1347818710: ('0.043895218625160555',), 1347818670: ('0.043895218625160555',), 1347818629: ('0.043895218625160555',), 1347818602: ('0.043895218625160555',), 1347818553: ('0.043895218625160555',), 1347818547: ('0.043895218625160555',)} args : 1347819223 depend.output_id : 0 input_args_next_step : {1347819223: ('0.043895218625160555',), 1347819205: ()} output_args : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ('0.043895218625160555',), 1347818954: ('0.043895218625160555',), 1347818928: ('0.043895218625160555',), 1347818905: ('0.043895218625160555',), 1347818710: ('0.043895218625160555',), 1347818670: ('0.043895218625160555',), 1347818629: ('0.043895218625160555',), 1347818602: ('0.043895218625160555',), 1347818553: ('0.043895218625160555',), 1347818547: ('0.043895218625160555',)} args : 1347819205 depend.output_id : 0 input_args_next_step : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ()} output_args : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ('0.043895218625160555',), 1347818954: ('0.043895218625160555',), 1347818928: ('0.043895218625160555',), 1347818905: ('0.043895218625160555',), 1347818710: ('0.043895218625160555',), 1347818670: ('0.043895218625160555',), 1347818629: ('0.043895218625160555',), 1347818602: ('0.043895218625160555',), 1347818553: ('0.043895218625160555',), 1347818547: ('0.043895218625160555',)} args : 1347819202 depend.output_id : 0 input_args_next_step : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ()} output_args : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ('0.043895218625160555',), 1347818954: ('0.043895218625160555',), 1347818928: ('0.043895218625160555',), 1347818905: ('0.043895218625160555',), 1347818710: ('0.043895218625160555',), 1347818670: ('0.043895218625160555',), 1347818629: ('0.043895218625160555',), 1347818602: ('0.043895218625160555',), 1347818553: ('0.043895218625160555',), 1347818547: ('0.043895218625160555',)} args : 1347819046 depend.output_id : 0 input_args_next_step : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ()} output_args : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ('0.043895218625160555',), 1347818954: ('0.043895218625160555',), 1347818928: ('0.043895218625160555',), 1347818905: ('0.043895218625160555',), 1347818710: ('0.043895218625160555',), 1347818670: ('0.043895218625160555',), 1347818629: ('0.043895218625160555',), 1347818602: ('0.043895218625160555',), 1347818553: ('0.043895218625160555',), 1347818547: ('0.043895218625160555',)} args : 1347819015 depend.output_id : 0 input_args_next_step : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ()} output_args : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ('0.043895218625160555',), 1347818954: ('0.043895218625160555',), 1347818928: ('0.043895218625160555',), 1347818905: ('0.043895218625160555',), 1347818710: ('0.043895218625160555',), 1347818670: ('0.043895218625160555',), 1347818629: ('0.043895218625160555',), 1347818602: ('0.043895218625160555',), 1347818553: ('0.043895218625160555',), 1347818547: ('0.043895218625160555',)} args : 1347818981 depend.output_id : 0 input_args_next_step : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ('0.043895218625160555',), 1347818954: ()} output_args : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ('0.043895218625160555',), 1347818954: ('0.043895218625160555',), 1347818928: ('0.043895218625160555',), 1347818905: ('0.043895218625160555',), 1347818710: ('0.043895218625160555',), 1347818670: ('0.043895218625160555',), 1347818629: ('0.043895218625160555',), 1347818602: ('0.043895218625160555',), 1347818553: ('0.043895218625160555',), 1347818547: ('0.043895218625160555',)} args : 1347818954 depend.output_id : 0 input_args_next_step : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ('0.043895218625160555',), 1347818954: ('0.043895218625160555',), 1347818928: ()} output_args : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ('0.043895218625160555',), 1347818954: ('0.043895218625160555',), 1347818928: ('0.043895218625160555',), 1347818905: ('0.043895218625160555',), 1347818710: ('0.043895218625160555',), 1347818670: ('0.043895218625160555',), 1347818629: ('0.043895218625160555',), 1347818602: ('0.043895218625160555',), 1347818553: ('0.043895218625160555',), 1347818547: ('0.043895218625160555',)} args : 1347818928 depend.output_id : 0 input_args_next_step : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ('0.043895218625160555',), 1347818954: ('0.043895218625160555',), 1347818928: ('0.043895218625160555',), 1347818905: ()} output_args : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ('0.043895218625160555',), 1347818954: ('0.043895218625160555',), 1347818928: ('0.043895218625160555',), 1347818905: ('0.043895218625160555',), 1347818710: ('0.043895218625160555',), 1347818670: ('0.043895218625160555',), 1347818629: ('0.043895218625160555',), 1347818602: ('0.043895218625160555',), 1347818553: ('0.043895218625160555',), 1347818547: ('0.043895218625160555',)} args : 1347818905 depend.output_id : 0 input_args_next_step : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ('0.043895218625160555',), 1347818954: ('0.043895218625160555',), 1347818928: ('0.043895218625160555',), 1347818905: ('0.043895218625160555',), 1347818710: ()} output_args : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ('0.043895218625160555',), 1347818954: ('0.043895218625160555',), 1347818928: ('0.043895218625160555',), 1347818905: ('0.043895218625160555',), 1347818710: ('0.043895218625160555',), 1347818670: ('0.043895218625160555',), 1347818629: ('0.043895218625160555',), 1347818602: ('0.043895218625160555',), 1347818553: ('0.043895218625160555',), 1347818547: ('0.043895218625160555',)} args : 1347818710 depend.output_id : 0 input_args_next_step : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ('0.043895218625160555',), 1347818954: ('0.043895218625160555',), 1347818928: ('0.043895218625160555',), 1347818905: ('0.043895218625160555',), 1347818710: ('0.043895218625160555',), 1347818670: ()} output_args : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ('0.043895218625160555',), 1347818954: ('0.043895218625160555',), 1347818928: ('0.043895218625160555',), 1347818905: ('0.043895218625160555',), 1347818710: ('0.043895218625160555',), 1347818670: ('0.043895218625160555',), 1347818629: ('0.043895218625160555',), 1347818602: ('0.043895218625160555',), 1347818553: ('0.043895218625160555',), 1347818547: ('0.043895218625160555',)} args : 1347818670 depend.output_id : 0 input_args_next_step : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ('0.043895218625160555',), 1347818954: ('0.043895218625160555',), 1347818928: ('0.043895218625160555',), 1347818905: ('0.043895218625160555',), 1347818710: ('0.043895218625160555',), 1347818670: ('0.043895218625160555',), 1347818629: ()} output_args : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ('0.043895218625160555',), 1347818954: ('0.043895218625160555',), 1347818928: ('0.043895218625160555',), 1347818905: ('0.043895218625160555',), 1347818710: ('0.043895218625160555',), 1347818670: ('0.043895218625160555',), 1347818629: ('0.043895218625160555',), 1347818602: ('0.043895218625160555',), 1347818553: ('0.043895218625160555',), 1347818547: ('0.043895218625160555',)} args : 1347818629 depend.output_id : 0 input_args_next_step : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ('0.043895218625160555',), 1347818954: ('0.043895218625160555',), 1347818928: ('0.043895218625160555',), 1347818905: ('0.043895218625160555',), 1347818710: ('0.043895218625160555',), 1347818670: ('0.043895218625160555',), 1347818629: ('0.043895218625160555',), 1347818602: ()} output_args : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ('0.043895218625160555',), 1347818954: ('0.043895218625160555',), 1347818928: ('0.043895218625160555',), 1347818905: ('0.043895218625160555',), 1347818710: ('0.043895218625160555',), 1347818670: ('0.043895218625160555',), 1347818629: ('0.043895218625160555',), 1347818602: ('0.043895218625160555',), 1347818553: ('0.043895218625160555',), 1347818547: ('0.043895218625160555',)} args : 1347818602 depend.output_id : 0 input_args_next_step : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ('0.043895218625160555',), 1347818954: ('0.043895218625160555',), 1347818928: ('0.043895218625160555',), 1347818905: ('0.043895218625160555',), 1347818710: ('0.043895218625160555',), 1347818670: ('0.043895218625160555',), 1347818629: ('0.043895218625160555',), 1347818602: ('0.043895218625160555',), 1347818553: ()} output_args : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ('0.043895218625160555',), 1347818954: ('0.043895218625160555',), 1347818928: ('0.043895218625160555',), 1347818905: ('0.043895218625160555',), 1347818710: ('0.043895218625160555',), 1347818670: ('0.043895218625160555',), 1347818629: ('0.043895218625160555',), 1347818602: ('0.043895218625160555',), 1347818553: ('0.043895218625160555',), 1347818547: ('0.043895218625160555',)} args : 1347818553 depend.output_id : 0 input_args_next_step : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ('0.043895218625160555',), 1347818954: ('0.043895218625160555',), 1347818928: ('0.043895218625160555',), 1347818905: ('0.043895218625160555',), 1347818710: ('0.043895218625160555',), 1347818670: ('0.043895218625160555',), 1347818629: ('0.043895218625160555',), 1347818602: ('0.043895218625160555',), 1347818553: ('0.043895218625160555',), 1347818547: ()} output_args : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ('0.043895218625160555',), 1347818954: ('0.043895218625160555',), 1347818928: ('0.043895218625160555',), 1347818905: ('0.043895218625160555',), 1347818710: ('0.043895218625160555',), 1347818670: ('0.043895218625160555',), 1347818629: ('0.043895218625160555',), 1347818602: ('0.043895218625160555',), 1347818553: ('0.043895218625160555',), 1347818547: ('0.043895218625160555',)} args : 1347818547 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 : {21784732: [{'papier': 21784774, 'kraft': 21784775, 'flou': 21784776, 'Teint_Dans_La_Masse': 21784777, 'autre_refus': 21784778, 'metal': 21784779, 'plastique': 21784780, 'mal_croppe': 21784781, 'cartonnette': 21784782, 'environnement': 21784783, 'Carton_gris': 21784784, 'Carton_brun': 21784785}]} input_args_next_step : {1347819223: ('0.043895218625160555',), 1347819205: ('0.043895218625160555',), 1347819202: ('0.043895218625160555',), 1347819046: ('0.043895218625160555',), 1347819015: ('0.043895218625160555',), 1347818981: ('0.043895218625160555',), 1347818954: ('0.043895218625160555',), 1347818928: ('0.043895218625160555',), 1347818905: ('0.043895218625160555',), 1347818710: ('0.043895218625160555',), 1347818670: ('0.043895218625160555',), 1347818629: ('0.043895218625160555',), 1347818602: ('0.043895218625160555',), 1347818553: ('0.043895218625160555',), 1347818547: ('0.043895218625160555',), 21784732: ()} output_args : {21784732: [{'papier': 21784774, 'kraft': 21784775, 'flou': 21784776, 'Teint_Dans_La_Masse': 21784777, 'autre_refus': 21784778, 'metal': 21784779, 'plastique': 21784780, 'mal_croppe': 21784781, 'cartonnette': 21784782, 'environnement': 21784783, 'Carton_gris': 21784784, 'Carton_brun': 21784785}]} args : 21784732 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :16, first value : ('0.043895218625160555',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21784732) 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 (1347819223,1347819205,1347819202,1347819046,1347819015,1347818981,1347818954,1347818928,1347818905,1347818710,1347818670,1347818629,1347818602,1347818553,1347818547) Found this number of photos: 15 ##### Call download_photos : nb_thread : 5 begin to download photo : 1347818547 begin to download photo : 1347818670 begin to download photo : 1347818954 begin to download photo : 1347819202 download finish for photo 1347818954 begin to download photo : 1347818981 download finish for photo 1347819202 begin to download photo : 1347819205 download finish for photo 1347818670 begin to download photo : 1347818710 download finish for photo 1347818547 begin to download photo : 1347818553 download finish for photo 1347818981 begin to download photo : 1347819015 download finish for photo 1347819205 begin to download photo : 1347819223 download finish for photo 1347818710 begin to download photo : 1347818905 download finish for photo 1347818553 begin to download photo : 1347818602 download finish for photo 1347819223 download finish for photo 1347818905 begin to download photo : 1347818928 download finish for photo 1347818602 begin to download photo : 1347818629 download finish for photo 1347819015 begin to download photo : 1347819046 download finish for photo 1347818928 download finish for photo 1347818629 download finish for photo 1347819046 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 15 ; length of list_pids : 15 ; length of list_args : 15 results_Auto_P21784732_27-03-2025_11_13_59.pdf 21784775 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=21784775 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347818174: '1743070154_3354462_1347816336_0b9a4ea54d52c4579b564848ca819925_rle_crop_3733449110_0.png'} change filename to text .imagette217847751743070439/ imagette217847751743070439/1743070154_3354462_1347816336_0b9a4ea54d52c4579b564848ca819925_rle_crop_3733449110_0.png.png imagette217847761743070439/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/6b435763947cad4d815a5d6eb7c4aac2_49543834.png imagette217847751743070439 21784776 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=21784776 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217847761743070439 21784778 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=21784778 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347817230: '1743070003_524899_1347814526_b228c57a7eaa42452fe7d33b74f6000d_rle_crop_3733447272_0.png', 1347818168: '1743070154_3354462_1347816336_0b9a4ea54d52c4579b564848ca819925_rle_crop_3733449114_0.png', 1347818213: '1743070142_3354242_1347816648_0fa14cfb083cb8bd97237d3e6ff5856f_rle_crop_3733449120_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/c2a59ca50752fd84082add17808142e9_88323546.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/167d09c3e95ec144113de344fc069d6f_35706853.png change filename to text .imagette217847781743070439/ imagette217847781743070439/1743070142_3354242_1347816648_0fa14cfb083cb8bd97237d3e6ff5856f_rle_crop_3733449120_0.png.png imagette217847781743070439/1743070154_3354462_1347816336_0b9a4ea54d52c4579b564848ca819925_rle_crop_3733449114_0.png.png imagette217847781743070439/1743070003_524899_1347814526_b228c57a7eaa42452fe7d33b74f6000d_rle_crop_3733447272_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/96796e3c9a430216b537e8812314bd22_64452858.png imagette217847781743070439 21784779 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=21784779 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347819043: '1743070293_3356898_1347816017_36f3c8ac18979ec535497701ab68cb4c_rle_crop_3733449269_0.png'} change filename to text .imagette217847791743070439/ imagette217847791743070439/1743070293_3356898_1347816017_36f3c8ac18979ec535497701ab68cb4c_rle_crop_3733449269_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/b9f935833bca178eb714da0625d6b4b0_30961216.png imagette217847791743070439 21784780 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=21784780 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347817310: '1743070003_524899_1347814480_e00659f598e7cee0b69f517c582521b2_rle_crop_3733447291_0.png', 1347819036: '1743070293_3356898_1347816204_b08b2a6ac0176eafe6dbff8fa199208e_rle_crop_3733449228_0.png', 1347819037: '1743070293_3356898_1347816100_e5b9f6ca481284671e1de0538409d524_rle_crop_3733449241_0.png', 1347819038: '1743070293_3356898_1347816000_3bd8886335d227d1189cdcb3b7598a99_rle_crop_3733449295_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/f678b5656a5c11d665bf835337a0ba39_591793.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/1054b2957d1b56489dd83cc4774322d8_79815208.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/b3397fe91d43069a02d593fb760d8bae_15843686.png change filename to text .imagette217847801743070439/ imagette217847801743070439/1743070003_524899_1347814480_e00659f598e7cee0b69f517c582521b2_rle_crop_3733447291_0.png.png imagette217847801743070439/1743070293_3356898_1347816204_b08b2a6ac0176eafe6dbff8fa199208e_rle_crop_3733449228_0.png.png imagette217847801743070439/1743070293_3356898_1347816000_3bd8886335d227d1189cdcb3b7598a99_rle_crop_3733449295_0.png.png imagette217847801743070439/1743070293_3356898_1347816100_e5b9f6ca481284671e1de0538409d524_rle_crop_3733449241_0.png.png imagette217847811743070440/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/e36d4ff79a94e45f7ad7954c22975bf1_5218002.png imagette217847801743070439 21784781 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=21784781 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette217847811743070440 21784782 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=21784782 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347817272: '1743070003_524899_1347814571_9e05d549f9cb7b2354c87d270ae9edcf_rle_crop_3733447259_0.png', 1347817274: '1743070003_524899_1347814526_b228c57a7eaa42452fe7d33b74f6000d_rle_crop_3733447277_0.png', 1347817276: '1743070003_524899_1347814480_e00659f598e7cee0b69f517c582521b2_rle_crop_3733447284_0.png', 1347818218: '1743070142_3354242_1347816608_8fb827f84ddcc2b2fa5639b12b9f0138_rle_crop_3733449159_0.png', 1347818430: '1743070172_3354725_1347816017_36f3c8ac18979ec535497701ab68cb4c_rle_crop_3733449277_0.png', 1347818656: '1743070253_3356434_1347817948_dba76e4714d23c259e1190aa970b0df1_rle_crop_3733450014_0.png', 1347819017: '1743070293_3356898_1347816017_36f3c8ac18979ec535497701ab68cb4c_rle_crop_3733449277_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/55c0146d477e19148fe68ac5cfb261e1_57824150.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/66761f619ebfd038fd7c7d1be5747073_87853337.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/4595fe3a92694f37e3d8c18e030a5820_46174118.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/a603fd13c43701c7fc626949600d11d8_55086526.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/2e7dbd4587643ca541641a00d5578644_9022532.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/003bd921ef4b5c1dcdd886f2531157d7_86379842.png change filename to text .imagette217847821743070440/ imagette217847821743070440/1743070172_3354725_1347816017_36f3c8ac18979ec535497701ab68cb4c_rle_crop_3733449277_0.png.png imagette217847821743070440/1743070253_3356434_1347817948_dba76e4714d23c259e1190aa970b0df1_rle_crop_3733450014_0.png.png imagette217847821743070440/1743070003_524899_1347814571_9e05d549f9cb7b2354c87d270ae9edcf_rle_crop_3733447259_0.png.png imagette217847821743070440/1743070003_524899_1347814480_e00659f598e7cee0b69f517c582521b2_rle_crop_3733447284_0.png.png imagette217847821743070440/1743070293_3356898_1347816017_36f3c8ac18979ec535497701ab68cb4c_rle_crop_3733449277_0.png.png imagette217847821743070440/1743070003_524899_1347814526_b228c57a7eaa42452fe7d33b74f6000d_rle_crop_3733447277_0.png.png imagette217847821743070440/1743070142_3354242_1347816608_8fb827f84ddcc2b2fa5639b12b9f0138_rle_crop_3733449159_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/2e7dbd4587643ca541641a00d5578644_5661558.png imagette217847821743070440 21784777 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=21784777 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347817198: '1743070003_524899_1347814571_9e05d549f9cb7b2354c87d270ae9edcf_rle_crop_3733447261_0.png', 1347817200: '1743070003_524899_1347814571_9e05d549f9cb7b2354c87d270ae9edcf_rle_crop_3733447265_0.png', 1347818405: '1743070172_3354725_1347816204_b08b2a6ac0176eafe6dbff8fa199208e_rle_crop_3733449227_0.png', 1347818406: '1743070172_3354725_1347816204_b08b2a6ac0176eafe6dbff8fa199208e_rle_crop_3733449233_0.png', 1347818407: '1743070172_3354725_1347816100_e5b9f6ca481284671e1de0538409d524_rle_crop_3733449244_0.png', 1347818409: '1743070172_3354725_1347816017_36f3c8ac18979ec535497701ab68cb4c_rle_crop_3733449275_0.png', 1347818986: '1743070293_3356898_1347816204_b08b2a6ac0176eafe6dbff8fa199208e_rle_crop_3733449227_0.png', 1347818987: '1743070293_3356898_1347816204_b08b2a6ac0176eafe6dbff8fa199208e_rle_crop_3733449233_0.png', 1347818988: '1743070293_3356898_1347816100_e5b9f6ca481284671e1de0538409d524_rle_crop_3733449244_0.png', 1347818989: '1743070293_3356898_1347816017_36f3c8ac18979ec535497701ab68cb4c_rle_crop_3733449275_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/2ff84ced513d9efbe5256d2126d10977_92741072.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/2268b826c25af4672c2989fbb710aaf7_17460102.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/9082565a7d2ee60c60e10fb11b696dd8_88244531.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/738a327cbd8dd9bd2009dc3fefe8af09_47380889.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/f0cf0aca377311e64dc13ee5e83cabe7_63806456.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/734511c5665710fa3ebab101dc1e61d6_81217086.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/9082565a7d2ee60c60e10fb11b696dd8_84402446.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/738a327cbd8dd9bd2009dc3fefe8af09_33916138.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/f0cf0aca377311e64dc13ee5e83cabe7_88300728.png change filename to text .imagette217847771743070440/ imagette217847771743070440/1743070293_3356898_1347816100_e5b9f6ca481284671e1de0538409d524_rle_crop_3733449244_0.png.png imagette217847771743070440/1743070293_3356898_1347816204_b08b2a6ac0176eafe6dbff8fa199208e_rle_crop_3733449227_0.png.png imagette217847771743070440/1743070003_524899_1347814571_9e05d549f9cb7b2354c87d270ae9edcf_rle_crop_3733447265_0.png.png imagette217847771743070440/1743070293_3356898_1347816204_b08b2a6ac0176eafe6dbff8fa199208e_rle_crop_3733449233_0.png.png imagette217847771743070440/1743070172_3354725_1347816204_b08b2a6ac0176eafe6dbff8fa199208e_rle_crop_3733449233_0.png.png imagette217847771743070440/1743070293_3356898_1347816017_36f3c8ac18979ec535497701ab68cb4c_rle_crop_3733449275_0.png.png imagette217847771743070440/1743070172_3354725_1347816100_e5b9f6ca481284671e1de0538409d524_rle_crop_3733449244_0.png.png imagette217847771743070440/1743070172_3354725_1347816204_b08b2a6ac0176eafe6dbff8fa199208e_rle_crop_3733449227_0.png.png imagette217847771743070440/1743070172_3354725_1347816017_36f3c8ac18979ec535497701ab68cb4c_rle_crop_3733449275_0.png.png imagette217847771743070440/1743070003_524899_1347814571_9e05d549f9cb7b2354c87d270ae9edcf_rle_crop_3733447261_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/734511c5665710fa3ebab101dc1e61d6_83789131.png imagette217847771743070440 21784784 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=21784784 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347817254: '1743070003_524899_1347815234_e3c0cce50d860a17ac5e8af5b444ebb2_rle_crop_3733447243_0.png', 1347817257: '1743070003_524899_1347814571_9e05d549f9cb7b2354c87d270ae9edcf_rle_crop_3733447257_0.png', 1347817259: '1743070003_524899_1347814526_b228c57a7eaa42452fe7d33b74f6000d_rle_crop_3733447273_0.png', 1347817262: '1743070003_524899_1347814480_e00659f598e7cee0b69f517c582521b2_rle_crop_3733447292_0.png', 1347817264: '1743070003_524899_1347814386_8b4a09a02486f0a3f7271ca78819ba9d_rle_crop_3733447305_0.png', 1347818425: '1743070172_3354725_1347816204_b08b2a6ac0176eafe6dbff8fa199208e_rle_crop_3733449231_0.png', 1347818426: '1743070172_3354725_1347816100_e5b9f6ca481284671e1de0538409d524_rle_crop_3733449238_0.png', 1347818427: '1743070172_3354725_1347816100_e5b9f6ca481284671e1de0538409d524_rle_crop_3733449240_0.png', 1347818428: '1743070172_3354725_1347816000_3bd8886335d227d1189cdcb3b7598a99_rle_crop_3733449293_0.png', 1347818637: '1743070253_3356434_1347817329_3a2c84cf55f94d65146b0c5c519ef22e_rle_crop_3733450045_0.png', 1347819004: '1743070293_3356898_1347816204_b08b2a6ac0176eafe6dbff8fa199208e_rle_crop_3733449231_0.png', 1347819006: '1743070293_3356898_1347816100_e5b9f6ca481284671e1de0538409d524_rle_crop_3733449238_0.png', 1347819007: '1743070293_3356898_1347816100_e5b9f6ca481284671e1de0538409d524_rle_crop_3733449240_0.png', 1347819008: '1743070293_3356898_1347816000_3bd8886335d227d1189cdcb3b7598a99_rle_crop_3733449293_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/b273abf079a4d5def625f0965c7ad01c_49519580.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/871e81615a302d5fba0742c319929bd7_30531887.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/e47b60c43685c6a6f4e4bb4f947c053d_29681154.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/a0980b2a02e95ee9cb816e46ae96a1be_69096512.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/eb64364c0c31048e524ee2ad8d751bed_28206890.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/06150c01c1b3da1fc44343fcde3c5b98_7547350.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/d3353d5f79062908286b7756da155dcd_32413512.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/9092bbd32937873e3b068239db11fb19_43589350.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/dd257b623483046921b423aebb647623_40550631.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/7c7374b9f193e01930729065daa1e454_97104711.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/06150c01c1b3da1fc44343fcde3c5b98_83577410.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/d3353d5f79062908286b7756da155dcd_2981170.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/9092bbd32937873e3b068239db11fb19_16458801.png change filename to text .imagette217847841743070441/ imagette217847841743070441/1743070003_524899_1347814386_8b4a09a02486f0a3f7271ca78819ba9d_rle_crop_3733447305_0.png.png imagette217847841743070441/1743070172_3354725_1347816204_b08b2a6ac0176eafe6dbff8fa199208e_rle_crop_3733449231_0.png.png imagette217847841743070441/1743070293_3356898_1347816100_e5b9f6ca481284671e1de0538409d524_rle_crop_3733449238_0.png.png imagette217847841743070441/1743070003_524899_1347814571_9e05d549f9cb7b2354c87d270ae9edcf_rle_crop_3733447257_0.png.png imagette217847841743070441/1743070172_3354725_1347816100_e5b9f6ca481284671e1de0538409d524_rle_crop_3733449240_0.png.png imagette217847841743070441/1743070293_3356898_1347816204_b08b2a6ac0176eafe6dbff8fa199208e_rle_crop_3733449231_0.png.png imagette217847841743070441/1743070172_3354725_1347816000_3bd8886335d227d1189cdcb3b7598a99_rle_crop_3733449293_0.png.png imagette217847841743070441/1743070293_3356898_1347816100_e5b9f6ca481284671e1de0538409d524_rle_crop_3733449240_0.png.png imagette217847841743070441/1743070003_524899_1347814526_b228c57a7eaa42452fe7d33b74f6000d_rle_crop_3733447273_0.png.png imagette217847841743070441/1743070293_3356898_1347816000_3bd8886335d227d1189cdcb3b7598a99_rle_crop_3733449293_0.png.png imagette217847841743070441/1743070172_3354725_1347816100_e5b9f6ca481284671e1de0538409d524_rle_crop_3733449238_0.png.png imagette217847841743070441/1743070253_3356434_1347817329_3a2c84cf55f94d65146b0c5c519ef22e_rle_crop_3733450045_0.png.png imagette217847841743070441/1743070003_524899_1347815234_e3c0cce50d860a17ac5e8af5b444ebb2_rle_crop_3733447243_0.png.png imagette217847841743070441/1743070003_524899_1347814480_e00659f598e7cee0b69f517c582521b2_rle_crop_3733447292_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/dd257b623483046921b423aebb647623_75518125.png imagette217847841743070441 21784785 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=21784785 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1347817283: '1743070003_524899_1347815234_e3c0cce50d860a17ac5e8af5b444ebb2_rle_crop_3733447250_0.png', 1347817285: '1743070003_524899_1347814430_f7b4fa9c054baaa8e22f60f0ccd9d726_rle_crop_3733447299_0.png', 1347817287: '1743070003_524899_1347814386_8b4a09a02486f0a3f7271ca78819ba9d_rle_crop_3733447306_0.png', 1347818228: '1743070142_3354242_1347816608_8fb827f84ddcc2b2fa5639b12b9f0138_rle_crop_3733449169_0.png', 1347818434: '1743070172_3354725_1347816715_5ba27ce176766543b93cb6d783f4356c_rle_crop_3733449218_0.png', 1347818435: '1743070172_3354725_1347816017_36f3c8ac18979ec535497701ab68cb4c_rle_crop_3733449273_0.png', 1347818437: '1743070172_3354725_1347816000_3bd8886335d227d1189cdcb3b7598a99_rle_crop_3733449294_0.png', 1347819025: '1743070293_3356898_1347816715_5ba27ce176766543b93cb6d783f4356c_rle_crop_3733449218_0.png', 1347819026: '1743070293_3356898_1347816017_36f3c8ac18979ec535497701ab68cb4c_rle_crop_3733449273_0.png', 1347819027: '1743070293_3356898_1347816000_3bd8886335d227d1189cdcb3b7598a99_rle_crop_3733449294_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/09259290d23e1261df2c2f5388529683_59894852.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/e302a78a3a306a435a0bfea3ffd35fb1_40575297.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/a4a70443a80e417ba41e38d36c5f1c18_69313931.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/e7ec2d72f0b3c23a77b2c8341684e083_89766179.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/528e4c9b761aab16e5b648304183922e_21660980.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/5fece811b0db994c4d6e68c0c5e23f93_1759473.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/7542ac301788358eb89885019af33592_70483566.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/528e4c9b761aab16e5b648304183922e_55077262.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/5fece811b0db994c4d6e68c0c5e23f93_61247563.png change filename to text .imagette217847851743070442/ imagette217847851743070442/1743070293_3356898_1347816017_36f3c8ac18979ec535497701ab68cb4c_rle_crop_3733449273_0.png.png imagette217847851743070442/1743070172_3354725_1347816000_3bd8886335d227d1189cdcb3b7598a99_rle_crop_3733449294_0.png.png imagette217847851743070442/1743070172_3354725_1347816715_5ba27ce176766543b93cb6d783f4356c_rle_crop_3733449218_0.png.png imagette217847851743070442/1743070293_3356898_1347816000_3bd8886335d227d1189cdcb3b7598a99_rle_crop_3733449294_0.png.png imagette217847851743070442/1743070293_3356898_1347816715_5ba27ce176766543b93cb6d783f4356c_rle_crop_3733449218_0.png.png imagette217847851743070442/1743070003_524899_1347814430_f7b4fa9c054baaa8e22f60f0ccd9d726_rle_crop_3733447299_0.png.png imagette217847851743070442/1743070142_3354242_1347816608_8fb827f84ddcc2b2fa5639b12b9f0138_rle_crop_3733449169_0.png.png imagette217847851743070442/1743070003_524899_1347815234_e3c0cce50d860a17ac5e8af5b444ebb2_rle_crop_3733447250_0.png.png imagette217847851743070442/1743070172_3354725_1347816017_36f3c8ac18979ec535497701ab68cb4c_rle_crop_3733449273_0.png.png imagette217847851743070442/1743070003_524899_1347814386_8b4a09a02486f0a3f7271ca78819ba9d_rle_crop_3733447306_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/7542ac301788358eb89885019af33592_2770783.png imagette217847851743070442 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21784732 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21784786,21784787,21784788,21784789,21784790,21784791,21784792,21784793,21784794,21784795,21784796,21784797?tags=papier,kraft,flou,Teint_Dans_La_Masse,autre_refus,metal,plastique,mal_croppe,cartonnette,environnement,Carton_gris,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1347819223] : ('0.043895218625160555',) no score found for photo 1347819223 We are sending mail with results at report@fotonower.com args[1347819205] : ('0.043895218625160555',) no score found for photo 1347819205 We are sending mail with results at report@fotonower.com args[1347819202] : ('0.043895218625160555',) no score found for photo 1347819202 We are sending mail with results at report@fotonower.com args[1347819046] : ('0.043895218625160555',) no score found for photo 1347819046 We are sending mail with results at report@fotonower.com args[1347819015] : ('0.043895218625160555',) no score found for photo 1347819015 We are sending mail with results at report@fotonower.com args[1347818981] : ('0.043895218625160555',) no score found for photo 1347818981 We are sending mail with results at report@fotonower.com args[1347818954] : ('0.043895218625160555',) no score found for photo 1347818954 We are sending mail with results at report@fotonower.com args[1347818928] : ('0.043895218625160555',) no score found for photo 1347818928 We are sending mail with results at report@fotonower.com args[1347818905] : ('0.043895218625160555',) no score found for photo 1347818905 We are sending mail with results at report@fotonower.com args[1347818710] : ('0.043895218625160555',) no score found for photo 1347818710 We are sending mail with results at report@fotonower.com args[1347818670] : ('0.043895218625160555',) no score found for photo 1347818670 We are sending mail with results at report@fotonower.com args[1347818629] : ('0.043895218625160555',) no score found for photo 1347818629 We are sending mail with results at report@fotonower.com args[1347818602] : ('0.043895218625160555',) no score found for photo 1347818602 We are sending mail with results at report@fotonower.com args[1347818553] : ('0.043895218625160555',) no score found for photo 1347818553 We are sending mail with results at report@fotonower.com args[1347818547] : ('0.043895218625160555',) no score found for photo 1347818547 We are sending mail with results at report@fotonower.com refus_total : 0.043895218625160555 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=21784732 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_P21784732_27-03-2025_11_13_59.pdf results_Auto_P21784732_27-03-2025_11_13_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21784732_27-03-2025_11_13_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','21784732','results_Auto_P21784732_27-03-2025_11_13_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21784732_27-03-2025_11_13_59.pdf','pdf','','0.24','0.043895218625160555') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21784732]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1347819223, 1347819205, 1347819202, 1347819046, 1347819015, 1347818981, 1347818954, 1347818928, 1347818905, 1347818710, 1347818670, 1347818629, 1347818602, 1347818553, 1347818547] map_info['map_portfolio_photo'] : {21784732: [1347819223, 1347819205, 1347819202, 1347819046, 1347819015, 1347818981, 1347818954, 1347818928, 1347818905, 1347818710, 1347818670, 1347818629, 1347818602, 1347818553, 1347818547, 1347818245, 1347818211, 1347818184, 1347817948, 1347817912, 1347817865, 1347817821, 1347817770, 1347817467, 1347817434, 1347817369, 1347817329, 1347817055, 1347817043, 1347817001, 1347816958, 1347816715, 1347816648, 1347816630, 1347816608, 1347816596, 1347816336, 1347816204, 1347816100, 1347816017, 1347816000, 1347815234, 1347815076, 1347814617, 1347814571, 1347814526, 1347814480, 1347814430, 1347814386, 1347813974, 1347813948, 1347813917, 1347813893]} final : False mtd_id 4302 list_pids : [1347819223, 1347819205, 1347819202, 1347819046, 1347819015, 1347818981, 1347818954, 1347818928, 1347818905, 1347818710, 1347818670, 1347818629, 1347818602, 1347818553, 1347818547] 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, '2697061') ('4302', '21784732', '1347819223', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347819205', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347819202', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347819046', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347819015', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818981', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818954', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818928', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818905', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818710', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818670', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818629', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818602', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818553', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818547', None, None, None, None, None, '2697061') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21784732', '1347819223', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347819205', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347819202', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347819046', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347819015', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818981', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818954', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818928', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818905', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818710', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818670', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818629', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818602', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818553', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818547', None, None, None, None, None, '2697061')] time used for this insertion : 0.02068638801574707 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.1122846603393555 time spend to save output : 0.020962953567504883 total time spend for step 4 : 5.13324761390686 step5:split_time_score Thu Mar 27 11:14:04 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 : ['21784732'] 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 : [('21784732',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21784732) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1347819202: {'path': 'temp/1743070439_3980679_1347819202_218b6dfed173a0dce2992c83affc6e2c.jpg', 'extension': 'jpg'}, 1347819205: {'path': 'temp/1743070439_3980679_1347819205_f27b50f8b5e3d3d47510fe01950d1b2b.jpg', 'extension': 'jpg'}, 1347819223: {'path': 'temp/1743070439_3980679_1347819223_5955c767658f1e0f91f387fafdc3abb9.jpg', 'extension': 'jpg'}, 1347818670: {'path': 'temp/1743070439_3980679_1347818670_2f42ef0a03ad81522080759f6f5f06c6.jpg', 'extension': 'jpg'}, 1347818710: {'path': 'temp/1743070439_3980679_1347818710_cd535757f9565fb29979579d811708ec.jpg', 'extension': 'jpg'}, 1347818905: {'path': 'temp/1743070439_3980679_1347818905_3e88d8fb109187f21a393e58e2685890.jpg', 'extension': 'jpg'}, 1347818928: {'path': 'temp/1743070439_3980679_1347818928_3211b2d4e861c018e520050f06af0097.jpg', 'extension': 'jpg'}, 1347818547: {'path': 'temp/1743070439_3980679_1347818547_8b8a84b562519a1f2922044d222c6381.jpg', 'extension': 'jpg'}, 1347818553: {'path': 'temp/1743070439_3980679_1347818553_5d0bae9506be633e38be885f224af32f.jpg', 'extension': 'jpg'}, 1347818602: {'path': 'temp/1743070439_3980679_1347818602_c4085acc845c4eb3c57f08271b32f503.jpg', 'extension': 'jpg'}, 1347818629: {'path': 'temp/1743070439_3980679_1347818629_31be7dbb52f18c3666cec7cef3c25e9c.jpg', 'extension': 'jpg'}, 1347818954: {'path': 'temp/1743070439_3980679_1347818954_7a25fe5ac2b071416a69bc9a1f44ff4f.jpg', 'extension': 'jpg'}, 1347818981: {'path': 'temp/1743070439_3980679_1347818981_b3cfd327a659c432fa94c6e472316acc.jpg', 'extension': 'jpg'}, 1347819015: {'path': 'temp/1743070439_3980679_1347819015_212cb6cf7f799c14a6544eec264a80df.jpg', 'extension': 'jpg'}, 1347819046: {'path': 'temp/1743070439_3980679_1347819046_2a21c5c0e0023d2430d7cdab14e86e4a.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 = 21784732; (('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 = 21784732 group by h (('11', 53),) 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=21784732 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 (21784732) 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 (21784732) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 27032025 21784732 Nombre de photos uploadées : 53 / 23040 (0%) 27032025 21784732 Nombre de photos taguées (types de déchets): 0 / 53 (0%) 27032025 21784732 Nombre de photos taguées (volume) : 0 / 53 (0%) [{'photo_id': 1347813974, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/403a61a947c3c85aa0b045b6741bf81a.jpg', 'username': None, 'uploaded_at': 1743069736, 'text': 'image_27032025_11_00_03_10151.jpg'}, {'photo_id': 1347813948, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/8d9c5281f02009d5a4b5262ba66cc793.jpg', 'username': None, 'uploaded_at': 1743069736, 'text': 'image_27032025_11_00_24_10136.jpg'}, {'photo_id': 1347813917, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/9d2e3b0b68d297f2afff09328d0ad31f.jpg', 'username': None, 'uploaded_at': 1743069736, 'text': 'image_27032025_11_00_33_9123.jpg'}, {'photo_id': 1347813893, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/27/8e80ff70d4774a6a664662f20e8f4d97.jpg', 'username': None, 'uploaded_at': 1743069736, 'text': 'image_27032025_11_00_43_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002299070358276367 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21784732, '2025-03-27' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1692045,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02451157569885254 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1692045 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1692045, 'dashboard_run_id': 1701186, 'mtr_portfolio_id': 21782552, 'dashboard_result_id': 9674481, '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_P21782552_27-03-2025_10_36_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21782578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21782579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21782580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21782581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21782582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21782583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21782584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21782585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21782586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21782587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21782588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21782589, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1701186, 'mtr_portfolio_id': 21783391, 'dashboard_result_id': 9674482, '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_P21783391_27-03-2025_10_47_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21783392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21783393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21783394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21783395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21783396, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21783397, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21783398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21783399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21783400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21783401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21783402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21783403, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1701186, 'mtr_portfolio_id': 21784021, 'dashboard_result_id': 9674483, '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_P21784021_27-03-2025_11_04_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21784034, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21784035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21784036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21784037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21784038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21784039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21784040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21784041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21784042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21784043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21784044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21784045, 'pht': 3726}}"}, {'dashboat_entry_day': 1692045, 'dashboard_run_id': 1701186, 'mtr_portfolio_id': 21784732, 'dashboard_result_id': 9674484, '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_P21784732_27-03-2025_11_11_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21784774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21784775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21784776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21784777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21784778, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21784779, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21784780, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21784781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21784782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21784783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21784784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21784785, '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 = 21782552 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': 2696888, 'mtr_portfolio_id': 21782552, 'created_at': datetime.datetime(2025, 3, 27, 10, 36, 58), 'result': '0.036605559840080945', 'result_long': None, 'result_double': None}] Qualite : 0.036605559840080945 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21782552 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21782552_27-03-2025_10_36_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21782552 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_P21782552_27-03-2025_10_36_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21782578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21782579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21782580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21782581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21782582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21782583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21782584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21782585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21782586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21782587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21782588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21782589, 'pht': 3726}}" where mtr_portfolio_id = 21782552 and dashboard_run_id = 1701186 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`=21782552 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9674481, 0.036605559840080945, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21782552_27-03-2025_10_36_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21782578, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21782579, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21782580, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21782581, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21782582, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21782583, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21782584, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21782585, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21782586, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21782587, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21782588, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21782589, '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 = 21783391 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': 2696958, 'mtr_portfolio_id': 21783391, 'created_at': datetime.datetime(2025, 3, 27, 10, 47, 59), 'result': '0.04907128993033362', 'result_long': None, 'result_double': None}] Qualite : 0.04907128993033362 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21783391 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21783391_27-03-2025_10_47_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21783391 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_P21783391_27-03-2025_10_47_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21783392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21783393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21783394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21783395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21783396, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21783397, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21783398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21783399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21783400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21783401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21783402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21783403, 'pht': 3726}}" where mtr_portfolio_id = 21783391 and dashboard_run_id = 1701186 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`=21783391 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9674482, 0.04907128993033362, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21783391_27-03-2025_10_47_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21783392, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21783393, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21783394, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21783395, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21783396, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21783397, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21783398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21783399, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21783400, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21783401, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21783402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21783403, '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 = 21784021 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': 2696988, 'mtr_portfolio_id': 21784021, 'created_at': datetime.datetime(2025, 3, 27, 11, 4, 58), 'result': '0.03801661846194744', 'result_long': None, 'result_double': None}] Qualite : 0.03801661846194744 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21784021 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21784021_27-03-2025_11_04_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21784021 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_P21784021_27-03-2025_11_04_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21784034, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21784035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21784036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21784037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21784038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21784039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21784040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21784041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21784042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21784043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21784044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21784045, 'pht': 3726}}" where mtr_portfolio_id = 21784021 and dashboard_run_id = 1701186 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`=21784021 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9674483, 0.03801661846194744, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21784021_27-03-2025_11_04_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21784034, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21784035, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21784036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21784037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21784038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21784039, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21784040, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21784041, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21784042, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21784043, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21784044, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21784045, '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 = 21784732 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': 2697061, 'mtr_portfolio_id': 21784732, 'created_at': datetime.datetime(2025, 3, 27, 11, 13, 58), 'result': '0.043895218625160555', 'result_long': None, 'result_double': None}] Qualite : 0.043895218625160555 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21784732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21784732_27-03-2025_11_13_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21784732 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_P21784732_27-03-2025_11_13_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21784774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21784775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21784776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21784777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21784778, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21784779, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21784780, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21784781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21784782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21784783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21784784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21784785, 'pht': 3726}}" where mtr_portfolio_id = 21784732 and dashboard_run_id = 1701186 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`=21784732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9674484, 0.043895218625160555, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21784732_27-03-2025_11_13_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21784774, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21784775, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21784776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21784777, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21784778, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21784779, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21784780, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21784781, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21784782, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21784783, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21784784, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21784785, '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 (21782552,21783391,21784021,21784732) result : ((1347805186,), (1347805196,), (1347805204,), (1347805210,), (1347805293,), (1347805297,), (1347805300,), (1347805303,), (1347805404,), (1347805429,), (1347805448,), (1347805476,), (1347805493,), (1347805509,), (1347805553,), (1347805640,), (1347805647,), (1347805685,), (1347805689,), (1347805693,), (1347805714,), (1347805716,), (1347805722,), (1347805725,), (1347805762,), (1347805766,), (1347805772,), (1347805777,), (1347805781,), (1347805965,), (1347805970,), (1347805994,), (1347806009,), (1347806043,), (1347806046,), (1347806052,), (1347806058,), (1347806087,), (1347806092,), (1347806262,), (1347806264,), (1347806268,), (1347806420,), (1347806422,), (1347806427,), (1347806430,), (1347806472,), (1347806512,), (1347806581,), (1347806583,), (1347806589,), (1347806591,), (1347807297,), (1347807271,), (1347807290,), (1347807456,), (1347807473,), (1347807509,), (1347807547,), (1347807576,), (1347807650,), (1347807654,), (1347807659,), (1347807664,), (1347807670,), (1347807673,), (1347807708,), (1347807712,), (1347807720,), (1347807759,), (1347807765,), (1347807774,), (1347807779,), (1347807782,), (1347807786,), (1347807852,), (1347807858,), (1347807864,), (1347807890,), (1347807915,), (1347808308,), (1347808444,), (1347808489,), (1347808523,), (1347808555,), (1347808944,), (1347808985,), (1347809024,), (1347809048,), (1347809166,), (1347809170,), (1347809180,), (1347809183,), (1347809206,), (1347809218,), (1347809322,), (1347809329,), (1347809340,), (1347809673,), (1347809693,), (1347809737,), (1347809771,), (1347809798,), (1347810075,), (1347810169,), (1347810182,), (1347810198,), (1347810230,), (1347810264,), (1347810406,), (1347810372,), (1347810393,), (1347810696,), (1347810704,), (1347810728,), (1347810813,), (1347810823,), (1347811043,), (1347811046,), (1347811049,), (1347811056,), (1347811062,), (1347811125,), (1347811129,), (1347811137,), (1347811141,), (1347811301,), (1347811322,), (1347811742,), (1347811766,), (1347811801,), (1347811851,), (1347811903,), (1347812110,), (1347812117,), (1347812122,), (1347812127,), (1347812131,), (1347812141,), (1347812174,), (1347812176,), (1347812180,), (1347812183,), (1347812220,), (1347812242,), (1347812261,), (1347812275,), (1347812281,), (1347812293,), (1347812319,), (1347812322,), (1347812325,), (1347812327,), (1347812372,), (1347812374,), (1347812377,), (1347812428,), (1347812434,), (1347812437,), (1347812449,), (1347812615,), (1347812638,), (1347812671,), (1347812743,), (1347812776,), (1347813355,), (1347813395,), (1347813553,), (1347813586,), (1347813621,), (1347813658,), (1347814001,), (1347813893,), (1347813917,), (1347813948,), (1347813974,), (1347814386,), (1347814430,), (1347814480,), (1347814526,), (1347814571,), (1347814617,), (1347815076,), (1347815234,), (1347816000,), (1347816017,), (1347816100,), (1347816204,), (1347816336,), (1347816596,), (1347816608,), (1347816630,), (1347816648,), (1347816715,), (1347816958,), (1347817001,), (1347817043,), (1347817055,), (1347817329,), (1347817369,), (1347817434,), (1347817467,), (1347817770,), (1347817821,), (1347817865,), (1347817912,), (1347817948,), (1347818184,), (1347818211,), (1347818245,), (1347818547,), (1347818553,), (1347818602,), (1347818629,), (1347818670,), (1347818710,), (1347818905,), (1347818928,), (1347818954,), (1347818981,), (1347819015,), (1347819046,), (1347819202,), (1347819205,), (1347819223,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'27032025': {'nb_upload': 53, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21784732]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1347819223, 1347819205, 1347819202, 1347819046, 1347819015, 1347818981, 1347818954, 1347818928, 1347818905, 1347818710, 1347818670, 1347818629, 1347818602, 1347818553, 1347818547] map_info['map_portfolio_photo'] : {21784732: [1347819223, 1347819205, 1347819202, 1347819046, 1347819015, 1347818981, 1347818954, 1347818928, 1347818905, 1347818710, 1347818670, 1347818629, 1347818602, 1347818553, 1347818547, 1347818245, 1347818211, 1347818184, 1347817948, 1347817912, 1347817865, 1347817821, 1347817770, 1347817467, 1347817434, 1347817369, 1347817329, 1347817055, 1347817043, 1347817001, 1347816958, 1347816715, 1347816648, 1347816630, 1347816608, 1347816596, 1347816336, 1347816204, 1347816100, 1347816017, 1347816000, 1347815234, 1347815076, 1347814617, 1347814571, 1347814526, 1347814480, 1347814430, 1347814386, 1347813974, 1347813948, 1347813917, 1347813893]} final : True mtd_id 4302 list_pids : [1347819223, 1347819205, 1347819202, 1347819046, 1347819015, 1347818981, 1347818954, 1347818928, 1347818905, 1347818710, 1347818670, 1347818629, 1347818602, 1347818553, 1347818547] Looping around the photos to save general results len do output : 1 /21784732Didn'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, '2697061') ('4302', '21784732', '1347819223', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347819205', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347819202', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347819046', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347819015', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818981', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818954', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818928', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818905', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818710', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818670', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818629', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818602', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818553', None, None, None, None, None, '2697061') ('4302', None, None, None, None, None, None, None, '2697061') ('4302', '21784732', '1347818547', None, None, None, None, None, '2697061') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21784732', 'None', None, None, None, None, '2697061'), ('4302', '21784732', '1347819223', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347819205', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347819202', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347819046', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347819015', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818981', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818954', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818928', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818905', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818710', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818670', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818629', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818602', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818553', None, None, None, None, None, '2697061'), ('4302', '21784732', '1347818547', None, None, None, None, None, '2697061')] time used for this insertion : 0.018073558807373047 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.36965131759643555 time spend to save output : 0.01835799217224121 total time spend for step 5 : 0.38800930976867676 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 (2697061) 2.40user 2.62system 0:08.68elapsed 57%CPU (0avgtext+0avgdata 160208maxresident)k 1216inputs+16776outputs (23major+74784minor)pagefaults 0swaps