result : ((1356529399,), (1356529402,), (1356529404,), (1356529431,), (1356529434,), (1356529458,), (1356529557,), (1356529675,), (1356529794,), (1356530410,), (1356530440,), (1356530477,), (1356530580,), (1356531356,), (1356531437,), (1356531633,), (1356531681,), (1356532294,), (1356532343,), (1356532397,), (1356532472,), (1356532568,), (1356532573,), (1356532576,), (1356532577,), (1356532581,), (1356532599,), (1356532888,), (1356532942,), (1356532993,), (1356533043,), (1356533437,), (1356533468,), (1356533509,), (1356533555,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22742325 , 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=22742314 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 (22742325) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22742314) result : ((1356529399,), (1356529402,), (1356529404,), (1356529431,), (1356529434,), (1356529458,), (1356529557,), (1356529675,), (1356529794,), (1356530410,), (1356530440,), (1356530477,), (1356530580,), (1356531356,), (1356531437,), (1356531633,), (1356531681,), (1356532294,), (1356532343,), (1356532397,), (1356532472,), (1356532568,), (1356532573,), (1356532576,), (1356532577,), (1356532581,), (1356532599,), (1356532888,), (1356532942,), (1356532993,), (1356533043,), (1356533437,), (1356533468,), (1356533509,), (1356533555,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22742326 , 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=22742314 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 (22742326) result : ((1356532185,), (1356532189,), (1356533668,), (1356533669,), (1356533819,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22742314) result : ((1356529399,), (1356529402,), (1356529404,), (1356529431,), (1356529434,), (1356529458,), (1356529557,), (1356529675,), (1356529794,), (1356530410,), (1356530440,), (1356530477,), (1356530580,), (1356531356,), (1356531437,), (1356531633,), (1356531681,), (1356532294,), (1356532343,), (1356532397,), (1356532472,), (1356532568,), (1356532573,), (1356532576,), (1356532577,), (1356532581,), (1356532599,), (1356532888,), (1356532942,), (1356532993,), (1356533043,), (1356533437,), (1356533468,), (1356533509,), (1356533555,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22742327 , 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=22742314 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 (22742327) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22742314) result : ((1356529399,), (1356529402,), (1356529404,), (1356529431,), (1356529434,), (1356529458,), (1356529557,), (1356529675,), (1356529794,), (1356530410,), (1356530440,), (1356530477,), (1356530580,), (1356531356,), (1356531437,), (1356531633,), (1356531681,), (1356532294,), (1356532343,), (1356532397,), (1356532472,), (1356532568,), (1356532573,), (1356532576,), (1356532577,), (1356532581,), (1356532599,), (1356532888,), (1356532942,), (1356532993,), (1356533043,), (1356533437,), (1356533468,), (1356533509,), (1356533555,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22742328 , 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=22742314 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 (22742328) result : ((1356530342,), (1356532071,), (1356533670,), (1356533827,), (1356533828,), (1356533829,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22742314) result : ((1356529399,), (1356529402,), (1356529404,), (1356529431,), (1356529434,), (1356529458,), (1356529557,), (1356529675,), (1356529794,), (1356530410,), (1356530440,), (1356530477,), (1356530580,), (1356531356,), (1356531437,), (1356531633,), (1356531681,), (1356532294,), (1356532343,), (1356532397,), (1356532472,), (1356532568,), (1356532573,), (1356532576,), (1356532577,), (1356532581,), (1356532599,), (1356532888,), (1356532942,), (1356532993,), (1356533043,), (1356533437,), (1356533468,), (1356533509,), (1356533555,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22742329 , 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=22742314 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 (22742329) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22742314) result : ((1356529399,), (1356529402,), (1356529404,), (1356529431,), (1356529434,), (1356529458,), (1356529557,), (1356529675,), (1356529794,), (1356530410,), (1356530440,), (1356530477,), (1356530580,), (1356531356,), (1356531437,), (1356531633,), (1356531681,), (1356532294,), (1356532343,), (1356532397,), (1356532472,), (1356532568,), (1356532573,), (1356532576,), (1356532577,), (1356532581,), (1356532599,), (1356532888,), (1356532942,), (1356532993,), (1356533043,), (1356533437,), (1356533468,), (1356533509,), (1356533555,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22742330 , 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=22742314 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='papier' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22742330) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22742314) result : ((1356529399,), (1356529402,), (1356529404,), (1356529431,), (1356529434,), (1356529458,), (1356529557,), (1356529675,), (1356529794,), (1356530410,), (1356530440,), (1356530477,), (1356530580,), (1356531356,), (1356531437,), (1356531633,), (1356531681,), (1356532294,), (1356532343,), (1356532397,), (1356532472,), (1356532568,), (1356532573,), (1356532576,), (1356532577,), (1356532581,), (1356532599,), (1356532888,), (1356532942,), (1356532993,), (1356533043,), (1356533437,), (1356533468,), (1356533509,), (1356533555,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22742331 , 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=22742314 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 (22742331) result : ((1356532233,), (1356532236,), (1356533673,), (1356533853,), (1356533855,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22742314) result : ((1356529399,), (1356529402,), (1356529404,), (1356529431,), (1356529434,), (1356529458,), (1356529557,), (1356529675,), (1356529794,), (1356530410,), (1356530440,), (1356530477,), (1356530580,), (1356531356,), (1356531437,), (1356531633,), (1356531681,), (1356532294,), (1356532343,), (1356532397,), (1356532472,), (1356532568,), (1356532573,), (1356532576,), (1356532577,), (1356532581,), (1356532599,), (1356532888,), (1356532942,), (1356532993,), (1356533043,), (1356533437,), (1356533468,), (1356533509,), (1356533555,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22742314 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','environnement','metal','papier','kraft','cartonnette','autre_refus','plastique','mal_croppe','flou','Teint_Dans_La_Masse','Carton_brun')) 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`=22742314 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','environnement','metal','papier','kraft','cartonnette','autre_refus','plastique','mal_croppe','flou','Teint_Dans_La_Masse','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22742314, 'sub_port_id': 22742332, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15156299, 'last_updated_at': datetime.datetime(2025, 5, 7, 0, 47), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 0, 47), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 0, 47)}, 'kraft': {'main_port_id': 22742314, 'sub_port_id': 22742333, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15156300, 'last_updated_at': datetime.datetime(2025, 5, 7, 0, 47), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 0, 47), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 0, 47)}, 'environnement': {'main_port_id': 22742314, 'sub_port_id': 22742334, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15156301, 'last_updated_at': datetime.datetime(2025, 5, 7, 0, 47), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 0, 47), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 0, 47)}, 'cartonnette': {'main_port_id': 22742314, 'sub_port_id': 22742335, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15156302, 'last_updated_at': datetime.datetime(2025, 5, 7, 0, 47), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 0, 47), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 0, 47)}, 'Carton_brun': {'main_port_id': 22742314, 'sub_port_id': 22742336, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15156303, 'last_updated_at': datetime.datetime(2025, 5, 7, 0, 47), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 0, 47), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 0, 47)}, 'mal_croppe': {'main_port_id': 22742314, 'sub_port_id': 22742337, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15156304, 'last_updated_at': datetime.datetime(2025, 5, 7, 0, 47), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 0, 47), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 0, 47)}, 'autre_refus': {'main_port_id': 22742314, 'sub_port_id': 22742338, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15156305, 'last_updated_at': datetime.datetime(2025, 5, 7, 0, 47), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 0, 47), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 0, 47)}, 'metal': {'main_port_id': 22742314, 'sub_port_id': 22742339, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15156306, 'last_updated_at': datetime.datetime(2025, 5, 7, 0, 47), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 0, 47), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 0, 47)}, 'Carton_gris': {'main_port_id': 22742314, 'sub_port_id': 22742340, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15156307, 'last_updated_at': datetime.datetime(2025, 5, 7, 0, 47), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 0, 47), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 0, 47)}, 'flou': {'main_port_id': 22742314, 'sub_port_id': 22742341, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15156308, 'last_updated_at': datetime.datetime(2025, 5, 7, 0, 47), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 0, 47), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 0, 47)}, 'papier': {'main_port_id': 22742314, 'sub_port_id': 22742342, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15156309, 'last_updated_at': datetime.datetime(2025, 5, 7, 0, 47), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 0, 47), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 0, 47)}, 'plastique': {'main_port_id': 22742314, 'sub_port_id': 22742343, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15156310, 'last_updated_at': datetime.datetime(2025, 5, 7, 0, 50, 59), 'last_updated_at_desc': datetime.datetime(2025, 5, 7, 0, 50, 59), 'last_updated_at_asc': datetime.datetime(2025, 5, 7, 0, 47)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22742332,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22742320 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22742333,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22742321 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22742334,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22742322 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22742335,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22742323 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22742336,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22742324 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22742337,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22742325 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22742338,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22742326 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22742339,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22742327 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22742340,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22742328 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22742341,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22742329 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22742342,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22742330 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22742343,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22742331 lien utilise dans velours : https://www.fotonower.com/velours/22742332,22742333,22742334,22742335,22742336,22742337,22742338,22742339,22742340,22742341,22742342,22742343?tags=Teint_Dans_La_Masse,kraft,environnement,cartonnette,Carton_brun,mal_croppe,autre_refus,metal,Carton_gris,flou,papier,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22742314]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1356533555, 1356533509, 1356533468, 1356533437, 1356533043, 1356532993, 1356532942, 1356532888, 1356532599, 1356532581, 1356532577, 1356532576, 1356532573, 1356532568, 1356532472, 1356532397, 1356532343, 1356532294] map_info['map_portfolio_photo'] : {22742314: [1356533555, 1356533509, 1356533468, 1356533437, 1356533043, 1356532993, 1356532942, 1356532888, 1356532599, 1356532581, 1356532577, 1356532576, 1356532573, 1356532568, 1356532472, 1356532397, 1356532343, 1356532294, 1356531681, 1356531633, 1356531437, 1356531356, 1356530580, 1356530477, 1356530440, 1356530410, 1356529794, 1356529675, 1356529557, 1356529458, 1356529434, 1356529431, 1356529404, 1356529402, 1356529399]} final : False mtd_id 4302 list_pids : [1356533555, 1356533509, 1356533468, 1356533437, 1356533043, 1356532993, 1356532942, 1356532888, 1356532599, 1356532581, 1356532577, 1356532576, 1356532573, 1356532568, 1356532472, 1356532397, 1356532343, 1356532294] Looping around the photos to save general results len do output : 1 /22742314. 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, '2800017') ('4302', '22742314', '1356533555', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356533509', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356533468', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356533437', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356533043', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532993', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532942', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532888', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532599', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532581', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532577', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532576', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532573', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532568', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532472', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532397', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532343', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532294', None, None, None, None, None, '2800017') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '22742314', "{'Teint_Dans_La_Masse': 22742320, 'kraft': 22742321, 'environnement': 22742322, 'cartonnette': 22742323, 'Carton_brun': 22742324, 'mal_croppe': 22742325, 'autre_refus': 22742326, 'metal': 22742327, 'Carton_gris': 22742328, 'flou': 22742329, 'papier': 22742330, 'plastique': 22742331}", None, None, None, None, '2800017'), ('4302', '22742314', '1356533555', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356533509', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356533468', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356533437', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356533043', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532993', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532942', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532888', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532599', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532581', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532577', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532576', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532573', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532568', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532472', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532397', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532343', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532294', None, None, None, None, None, '2800017')] time used for this insertion : 0.3569827079772949 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5100715160369873 time spend to save output : 0.35733795166015625 total time spend for step 1 : 1.8674094676971436 step2:final Wed May 7 00:54:31 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 (22742314) 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 22742314 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1356529404,1356529402,1356529399,1356529794,1356529675,1356529557,1356529458,1356529434,1356529431,1356530580,1356530477,1356530440,1356530410,1356531681,1356531633,1356531437,1356531356,1356532472,1356532397,1356532343,1356532294,1356532599,1356532581,1356532577,1356532576,1356532573,1356532568,1356533043,1356532993,1356532942,1356532888,1356533555,1356533509,1356533468,1356533437); 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([22742314]) Inside saveOutput : final : False verbose : True original output for save of step final : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ('0.031929849835931966',), 1356532573: ('0.031929849835931966',), 1356532568: ('0.031929849835931966',), 1356532472: ('0.031929849835931966',), 1356532397: ('0.031929849835931966',), 1356532343: ('0.031929849835931966',), 1356532294: ('0.031929849835931966',)} new output for save of step final : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ('0.031929849835931966',), 1356532573: ('0.031929849835931966',), 1356532568: ('0.031929849835931966',), 1356532472: ('0.031929849835931966',), 1356532397: ('0.031929849835931966',), 1356532343: ('0.031929849835931966',), 1356532294: ('0.031929849835931966',)} [1356533555, 1356533509, 1356533468, 1356533437, 1356533043, 1356532993, 1356532942, 1356532888, 1356532599, 1356532581, 1356532577, 1356532576, 1356532573, 1356532568, 1356532472, 1356532397, 1356532343, 1356532294] map_info['map_portfolio_photo'] : {22742314: [1356533555, 1356533509, 1356533468, 1356533437, 1356533043, 1356532993, 1356532942, 1356532888, 1356532599, 1356532581, 1356532577, 1356532576, 1356532573, 1356532568, 1356532472, 1356532397, 1356532343, 1356532294, 1356531681, 1356531633, 1356531437, 1356531356, 1356530580, 1356530477, 1356530440, 1356530410, 1356529794, 1356529675, 1356529557, 1356529458, 1356529434, 1356529431, 1356529404, 1356529402, 1356529399]} final : False mtd_id 4302 list_pids : [1356533555, 1356533509, 1356533468, 1356533437, 1356533043, 1356532993, 1356532942, 1356532888, 1356532599, 1356532581, 1356532577, 1356532576, 1356532573, 1356532568, 1356532472, 1356532397, 1356532343, 1356532294] Looping around the photos to save general results len do output : 18 /1356533555.Didn't retrieve data . /1356533509.Didn't retrieve data . /1356533468.Didn't retrieve data . /1356533437.Didn't retrieve data . /1356533043.Didn't retrieve data . /1356532993.Didn't retrieve data . /1356532942.Didn't retrieve data . /1356532888.Didn't retrieve data . /1356532599.Didn't retrieve data . /1356532581.Didn't retrieve data . /1356532577.Didn't retrieve data . /1356532576.Didn't retrieve data . /1356532573.Didn't retrieve data . /1356532568.Didn't retrieve data . /1356532472.Didn't retrieve data . /1356532397.Didn't retrieve data . /1356532343.Didn't retrieve data . /1356532294.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, '2800017') ('4302', '22742314', '1356533555', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356533509', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356533468', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356533437', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356533043', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532993', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532942', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532888', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532599', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532581', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532577', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532576', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532573', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532568', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532472', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532397', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532343', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532294', None, None, None, None, None, '2800017') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 54 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', '22742314', '1356533555', '0.031929849835931966', None, None, None, None, '2800017'), ('4302', '22742314', '1356533509', '0.031929849835931966', None, None, None, None, '2800017'), ('4302', '22742314', '1356533468', '0.031929849835931966', None, None, None, None, '2800017'), ('4302', '22742314', '1356533437', '0.031929849835931966', None, None, None, None, '2800017'), ('4302', '22742314', '1356533043', '0.031929849835931966', None, None, None, None, '2800017'), ('4302', '22742314', '1356532993', '0.031929849835931966', None, None, None, None, '2800017'), ('4302', '22742314', '1356532942', '0.031929849835931966', None, None, None, None, '2800017'), ('4302', '22742314', '1356532888', '0.031929849835931966', None, None, None, None, '2800017'), ('4302', '22742314', '1356532599', '0.031929849835931966', None, None, None, None, '2800017'), ('4302', '22742314', '1356532581', '0.031929849835931966', None, None, None, None, '2800017'), ('4302', '22742314', '1356532577', '0.031929849835931966', None, None, None, None, '2800017'), ('4302', '22742314', '1356532576', '0.031929849835931966', None, None, None, None, '2800017'), ('4302', '22742314', '1356532573', '0.031929849835931966', None, None, None, None, '2800017'), ('4302', '22742314', '1356532568', '0.031929849835931966', None, None, None, None, '2800017'), ('4302', '22742314', '1356532472', '0.031929849835931966', None, None, None, None, '2800017'), ('4302', '22742314', '1356532397', '0.031929849835931966', None, None, None, None, '2800017'), ('4302', '22742314', '1356532343', '0.031929849835931966', None, None, None, None, '2800017'), ('4302', '22742314', '1356532294', '0.031929849835931966', None, None, None, None, '2800017')] time used for this insertion : 0.1665799617767334 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.1440880298614502 time spend to save output : 0.16749930381774902 total time spend for step 2 : 0.3115873336791992 step3:velours_tree Wed May 7 00:54:31 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 : {22742314: [{'Teint_Dans_La_Masse': 22742320, 'kraft': 22742321, 'environnement': 22742322, 'cartonnette': 22742323, 'Carton_brun': 22742324, 'mal_croppe': 22742325, 'autre_refus': 22742326, 'metal': 22742327, 'Carton_gris': 22742328, 'flou': 22742329, 'papier': 22742330, 'plastique': 22742331}]} input_args_next_step : {22742314: ()} output_args : {22742314: [{'Teint_Dans_La_Masse': 22742320, 'kraft': 22742321, 'environnement': 22742322, 'cartonnette': 22742323, 'Carton_brun': 22742324, 'mal_croppe': 22742325, 'autre_refus': 22742326, 'metal': 22742327, 'Carton_gris': 22742328, 'flou': 22742329, 'papier': 22742330, 'plastique': 22742331}]} args : 22742314 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 : ({'Teint_Dans_La_Masse': 22742320, 'kraft': 22742321, 'environnement': 22742322, 'cartonnette': 22742323, 'Carton_brun': 22742324, 'mal_croppe': 22742325, 'autre_refus': 22742326, 'metal': 22742327, 'Carton_gris': 22742328, 'flou': 22742329, 'papier': 22742330, 'plastique': 22742331},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22742314) 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([22742314]) 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.4127483367919922 time spend to save output : 7.462501525878906e-05 total time spend for step 3 : 0.412822961807251 step4:send_mail_cod Wed May 7 00:54:32 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 : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ('0.031929849835931966',), 1356532573: ('0.031929849835931966',), 1356532568: ('0.031929849835931966',), 1356532472: ('0.031929849835931966',), 1356532397: ('0.031929849835931966',), 1356532343: ('0.031929849835931966',), 1356532294: ('0.031929849835931966',)} input_args_next_step : {1356533555: ()} output_args : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ('0.031929849835931966',), 1356532573: ('0.031929849835931966',), 1356532568: ('0.031929849835931966',), 1356532472: ('0.031929849835931966',), 1356532397: ('0.031929849835931966',), 1356532343: ('0.031929849835931966',), 1356532294: ('0.031929849835931966',)} args : 1356533555 depend.output_id : 0 input_args_next_step : {1356533555: ('0.031929849835931966',), 1356533509: ()} output_args : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ('0.031929849835931966',), 1356532573: ('0.031929849835931966',), 1356532568: ('0.031929849835931966',), 1356532472: ('0.031929849835931966',), 1356532397: ('0.031929849835931966',), 1356532343: ('0.031929849835931966',), 1356532294: ('0.031929849835931966',)} args : 1356533509 depend.output_id : 0 input_args_next_step : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ()} output_args : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ('0.031929849835931966',), 1356532573: ('0.031929849835931966',), 1356532568: ('0.031929849835931966',), 1356532472: ('0.031929849835931966',), 1356532397: ('0.031929849835931966',), 1356532343: ('0.031929849835931966',), 1356532294: ('0.031929849835931966',)} args : 1356533468 depend.output_id : 0 input_args_next_step : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ()} output_args : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ('0.031929849835931966',), 1356532573: ('0.031929849835931966',), 1356532568: ('0.031929849835931966',), 1356532472: ('0.031929849835931966',), 1356532397: ('0.031929849835931966',), 1356532343: ('0.031929849835931966',), 1356532294: ('0.031929849835931966',)} args : 1356533437 depend.output_id : 0 input_args_next_step : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ()} output_args : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ('0.031929849835931966',), 1356532573: ('0.031929849835931966',), 1356532568: ('0.031929849835931966',), 1356532472: ('0.031929849835931966',), 1356532397: ('0.031929849835931966',), 1356532343: ('0.031929849835931966',), 1356532294: ('0.031929849835931966',)} args : 1356533043 depend.output_id : 0 input_args_next_step : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ()} output_args : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ('0.031929849835931966',), 1356532573: ('0.031929849835931966',), 1356532568: ('0.031929849835931966',), 1356532472: ('0.031929849835931966',), 1356532397: ('0.031929849835931966',), 1356532343: ('0.031929849835931966',), 1356532294: ('0.031929849835931966',)} args : 1356532993 depend.output_id : 0 input_args_next_step : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ()} output_args : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ('0.031929849835931966',), 1356532573: ('0.031929849835931966',), 1356532568: ('0.031929849835931966',), 1356532472: ('0.031929849835931966',), 1356532397: ('0.031929849835931966',), 1356532343: ('0.031929849835931966',), 1356532294: ('0.031929849835931966',)} args : 1356532942 depend.output_id : 0 input_args_next_step : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ()} output_args : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ('0.031929849835931966',), 1356532573: ('0.031929849835931966',), 1356532568: ('0.031929849835931966',), 1356532472: ('0.031929849835931966',), 1356532397: ('0.031929849835931966',), 1356532343: ('0.031929849835931966',), 1356532294: ('0.031929849835931966',)} args : 1356532888 depend.output_id : 0 input_args_next_step : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ()} output_args : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ('0.031929849835931966',), 1356532573: ('0.031929849835931966',), 1356532568: ('0.031929849835931966',), 1356532472: ('0.031929849835931966',), 1356532397: ('0.031929849835931966',), 1356532343: ('0.031929849835931966',), 1356532294: ('0.031929849835931966',)} args : 1356532599 depend.output_id : 0 input_args_next_step : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ()} output_args : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ('0.031929849835931966',), 1356532573: ('0.031929849835931966',), 1356532568: ('0.031929849835931966',), 1356532472: ('0.031929849835931966',), 1356532397: ('0.031929849835931966',), 1356532343: ('0.031929849835931966',), 1356532294: ('0.031929849835931966',)} args : 1356532581 depend.output_id : 0 input_args_next_step : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ()} output_args : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ('0.031929849835931966',), 1356532573: ('0.031929849835931966',), 1356532568: ('0.031929849835931966',), 1356532472: ('0.031929849835931966',), 1356532397: ('0.031929849835931966',), 1356532343: ('0.031929849835931966',), 1356532294: ('0.031929849835931966',)} args : 1356532577 depend.output_id : 0 input_args_next_step : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ()} output_args : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ('0.031929849835931966',), 1356532573: ('0.031929849835931966',), 1356532568: ('0.031929849835931966',), 1356532472: ('0.031929849835931966',), 1356532397: ('0.031929849835931966',), 1356532343: ('0.031929849835931966',), 1356532294: ('0.031929849835931966',)} args : 1356532576 depend.output_id : 0 input_args_next_step : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ('0.031929849835931966',), 1356532573: ()} output_args : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ('0.031929849835931966',), 1356532573: ('0.031929849835931966',), 1356532568: ('0.031929849835931966',), 1356532472: ('0.031929849835931966',), 1356532397: ('0.031929849835931966',), 1356532343: ('0.031929849835931966',), 1356532294: ('0.031929849835931966',)} args : 1356532573 depend.output_id : 0 input_args_next_step : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ('0.031929849835931966',), 1356532573: ('0.031929849835931966',), 1356532568: ()} output_args : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ('0.031929849835931966',), 1356532573: ('0.031929849835931966',), 1356532568: ('0.031929849835931966',), 1356532472: ('0.031929849835931966',), 1356532397: ('0.031929849835931966',), 1356532343: ('0.031929849835931966',), 1356532294: ('0.031929849835931966',)} args : 1356532568 depend.output_id : 0 input_args_next_step : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ('0.031929849835931966',), 1356532573: ('0.031929849835931966',), 1356532568: ('0.031929849835931966',), 1356532472: ()} output_args : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ('0.031929849835931966',), 1356532573: ('0.031929849835931966',), 1356532568: ('0.031929849835931966',), 1356532472: ('0.031929849835931966',), 1356532397: ('0.031929849835931966',), 1356532343: ('0.031929849835931966',), 1356532294: ('0.031929849835931966',)} args : 1356532472 depend.output_id : 0 input_args_next_step : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ('0.031929849835931966',), 1356532573: ('0.031929849835931966',), 1356532568: ('0.031929849835931966',), 1356532472: ('0.031929849835931966',), 1356532397: ()} output_args : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ('0.031929849835931966',), 1356532573: ('0.031929849835931966',), 1356532568: ('0.031929849835931966',), 1356532472: ('0.031929849835931966',), 1356532397: ('0.031929849835931966',), 1356532343: ('0.031929849835931966',), 1356532294: ('0.031929849835931966',)} args : 1356532397 depend.output_id : 0 input_args_next_step : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ('0.031929849835931966',), 1356532573: ('0.031929849835931966',), 1356532568: ('0.031929849835931966',), 1356532472: ('0.031929849835931966',), 1356532397: ('0.031929849835931966',), 1356532343: ()} output_args : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ('0.031929849835931966',), 1356532573: ('0.031929849835931966',), 1356532568: ('0.031929849835931966',), 1356532472: ('0.031929849835931966',), 1356532397: ('0.031929849835931966',), 1356532343: ('0.031929849835931966',), 1356532294: ('0.031929849835931966',)} args : 1356532343 depend.output_id : 0 input_args_next_step : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ('0.031929849835931966',), 1356532573: ('0.031929849835931966',), 1356532568: ('0.031929849835931966',), 1356532472: ('0.031929849835931966',), 1356532397: ('0.031929849835931966',), 1356532343: ('0.031929849835931966',), 1356532294: ()} output_args : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ('0.031929849835931966',), 1356532573: ('0.031929849835931966',), 1356532568: ('0.031929849835931966',), 1356532472: ('0.031929849835931966',), 1356532397: ('0.031929849835931966',), 1356532343: ('0.031929849835931966',), 1356532294: ('0.031929849835931966',)} args : 1356532294 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 : {22742314: [{'Teint_Dans_La_Masse': 22742320, 'kraft': 22742321, 'environnement': 22742322, 'cartonnette': 22742323, 'Carton_brun': 22742324, 'mal_croppe': 22742325, 'autre_refus': 22742326, 'metal': 22742327, 'Carton_gris': 22742328, 'flou': 22742329, 'papier': 22742330, 'plastique': 22742331}]} input_args_next_step : {1356533555: ('0.031929849835931966',), 1356533509: ('0.031929849835931966',), 1356533468: ('0.031929849835931966',), 1356533437: ('0.031929849835931966',), 1356533043: ('0.031929849835931966',), 1356532993: ('0.031929849835931966',), 1356532942: ('0.031929849835931966',), 1356532888: ('0.031929849835931966',), 1356532599: ('0.031929849835931966',), 1356532581: ('0.031929849835931966',), 1356532577: ('0.031929849835931966',), 1356532576: ('0.031929849835931966',), 1356532573: ('0.031929849835931966',), 1356532568: ('0.031929849835931966',), 1356532472: ('0.031929849835931966',), 1356532397: ('0.031929849835931966',), 1356532343: ('0.031929849835931966',), 1356532294: ('0.031929849835931966',), 22742314: ()} output_args : {22742314: [{'Teint_Dans_La_Masse': 22742320, 'kraft': 22742321, 'environnement': 22742322, 'cartonnette': 22742323, 'Carton_brun': 22742324, 'mal_croppe': 22742325, 'autre_refus': 22742326, 'metal': 22742327, 'Carton_gris': 22742328, 'flou': 22742329, 'papier': 22742330, 'plastique': 22742331}]} args : 22742314 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 :19, first value : ('0.031929849835931966',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22742314) 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 (1356533555,1356533509,1356533468,1356533437,1356533043,1356532993,1356532942,1356532888,1356532599,1356532581,1356532577,1356532576,1356532573,1356532568,1356532472,1356532397,1356532343,1356532294) Found this number of photos: 18 ##### Call download_photos : nb_thread : 5 begin to download photo : 1356532294 begin to download photo : 1356532568 begin to download photo : 1356532581 begin to download photo : 1356532993 begin to download photo : 1356533509 download finish for photo 1356533509 begin to download photo : 1356533555 download finish for photo 1356532294 begin to download photo : 1356532343 download finish for photo 1356532568 begin to download photo : 1356532573 download finish for photo 1356532581 begin to download photo : 1356532599 download finish for photo 1356532993 begin to download photo : 1356533043 download finish for photo 1356533555 download finish for photo 1356532573 begin to download photo : 1356532576 download finish for photo 1356532343 begin to download photo : 1356532397 download finish for photo 1356533043 begin to download photo : 1356533437 download finish for photo 1356532599 begin to download photo : 1356532888 download finish for photo 1356533437 begin to download photo : 1356533468 download finish for photo 1356532397 begin to download photo : 1356532472 download finish for photo 1356532576 begin to download photo : 1356532577 download finish for photo 1356532888 begin to download photo : 1356532942 download finish for photo 1356533468 download finish for photo 1356532472 download finish for photo 1356532577 download finish for photo 1356532942 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 : 18 ; length of list_pids : 18 ; length of list_args : 18 results_Auto_P22742314_07-05-2025_00_54_32.pdf 22742321 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=22742321 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356533862: '1746571993_1987462_1356532577_2f909b9c2b10d090058af522c2c1c44e_rle_crop_3787595347_0.png'} change filename to text .imagette227423211746572072/ imagette227423211746572072/1746571993_1987462_1356532577_2f909b9c2b10d090058af522c2c1c44e_rle_crop_3787595347_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/c2358744fcb719ab3c8e89632feefaff_80907851.png imagette227423211746572072 22742323 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=22742323 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356532202: '1746571765_3943764_1356530580_f1cbcec8abacb80bf588d9fc5d9db0e6_rle_crop_3787592359_0.png'} change filename to text .imagette227423231746572072/ imagette227423231746572072/1746571765_3943764_1356530580_f1cbcec8abacb80bf588d9fc5d9db0e6_rle_crop_3787592359_0.png.png imagette227423251746572072/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/2f1a9b99471ec7993bbbdaf0cef9f1f5_42538141.png imagette227423231746572072 22742325 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=22742325 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227423251746572072 22742326 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=22742326 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356532185: '1746571765_3943764_1356529458_c410b8348cfb26454c77da95b660e606_rle_crop_3787592681_0.png', 1356532189: '1746571765_3943764_1356529458_c410b8348cfb26454c77da95b660e606_rle_crop_3787592679_0.png', 1356533668: '1746572007_3947968_1356532888_4201d5978dbae8081b334f7c7cfb9da2_rle_crop_3787595240_0.png', 1356533669: '1746572007_3947968_1356532888_4201d5978dbae8081b334f7c7cfb9da2_rle_crop_3787595244_0.png', 1356533819: '1746571993_1987462_1356532573_64b48662fadd56ebf7788ae444a3ec80_rle_crop_3787595479_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/91360f68e83b64af3a08187a5a110160_20267754.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/4ec0f902c483913c3018fdaa61516e04_25913682.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/aa5f1b04ac5e8c10700f9201f3da7655_36172535.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/9e38c99721e7db0481a15cf2263c5634_6806354.png change filename to text .imagette227423261746572072/ imagette227423261746572072/1746571765_3943764_1356529458_c410b8348cfb26454c77da95b660e606_rle_crop_3787592681_0.png.png imagette227423261746572072/1746572007_3947968_1356532888_4201d5978dbae8081b334f7c7cfb9da2_rle_crop_3787595240_0.png.png imagette227423261746572072/1746571993_1987462_1356532573_64b48662fadd56ebf7788ae444a3ec80_rle_crop_3787595479_0.png.png imagette227423261746572072/1746572007_3947968_1356532888_4201d5978dbae8081b334f7c7cfb9da2_rle_crop_3787595244_0.png.png imagette227423261746572072/1746571765_3943764_1356529458_c410b8348cfb26454c77da95b660e606_rle_crop_3787592679_0.png.png imagette227423271746572072/ imagette227423291746572073/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/7f6c95ab3ac2f420a5e1edd0ce99fd2c_85900365.png imagette227423261746572072 22742327 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=22742327 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227423271746572072 22742329 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=22742329 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227423291746572073 22742331 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=22742331 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356532233: '1746571765_3943764_1356530580_f1cbcec8abacb80bf588d9fc5d9db0e6_rle_crop_3787592362_0.png', 1356532236: '1746571765_3943764_1356529431_7f4790a728fc1ee91acdd2aaa78c6a70_rle_crop_3787592752_0.png', 1356533673: '1746572007_3947968_1356532993_d2d0c16f34c0188693facf9009517778_rle_crop_3787595212_0.png', 1356533853: '1746571993_1987462_1356532573_64b48662fadd56ebf7788ae444a3ec80_rle_crop_3787595476_0.png', 1356533855: '1746571993_1987462_1356532568_b377a63a55e43920310db596907575ce_rle_crop_3787595513_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/7e3bb9f458c1dbe35e96f88f1021aa15_82995044.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/ac5743e2259e1f061ade8b4635bfe448_29548597.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/678725330f703b016bdb516ccb09a4a7_96449741.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/0bc1cca3a1e6715028a8f1dafd57aff6_93125245.png change filename to text .imagette227423311746572073/ imagette227423311746572073/1746571765_3943764_1356530580_f1cbcec8abacb80bf588d9fc5d9db0e6_rle_crop_3787592362_0.png.png imagette227423311746572073/1746571765_3943764_1356529431_7f4790a728fc1ee91acdd2aaa78c6a70_rle_crop_3787592752_0.png.png imagette227423311746572073/1746571993_1987462_1356532568_b377a63a55e43920310db596907575ce_rle_crop_3787595513_0.png.png imagette227423311746572073/1746571993_1987462_1356532573_64b48662fadd56ebf7788ae444a3ec80_rle_crop_3787595476_0.png.png imagette227423311746572073/1746572007_3947968_1356532993_d2d0c16f34c0188693facf9009517778_rle_crop_3787595212_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/94f7918dcfba815fc5d433d579c800e7_88309660.png imagette227423311746572073 22742320 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=22742320 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356533808: '1746571993_1987462_1356532581_b28b32acd686ab8f952573c4b850449f_rle_crop_3787595288_0.png', 1356533809: '1746571993_1987462_1356532576_e9f8ee1dd9afac83f7dc22ff15c4028d_rle_crop_3787595457_0.png', 1356533810: '1746571993_1987462_1356532573_64b48662fadd56ebf7788ae444a3ec80_rle_crop_3787595483_0.png', 1356533811: '1746571993_1987462_1356532568_b377a63a55e43920310db596907575ce_rle_crop_3787595519_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/e6cb1eabd838b832478e82300b8827b2_62200431.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/d96253a5540358e6e9006e69ea045826_27067831.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/a7b3f21c0f23d7175f941a106c1d5090_4340759.png change filename to text .imagette227423201746572073/ imagette227423201746572073/1746571993_1987462_1356532573_64b48662fadd56ebf7788ae444a3ec80_rle_crop_3787595483_0.png.png imagette227423201746572073/1746571993_1987462_1356532576_e9f8ee1dd9afac83f7dc22ff15c4028d_rle_crop_3787595457_0.png.png imagette227423201746572073/1746571993_1987462_1356532568_b377a63a55e43920310db596907575ce_rle_crop_3787595519_0.png.png imagette227423201746572073/1746571993_1987462_1356532581_b28b32acd686ab8f952573c4b850449f_rle_crop_3787595288_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/c756224541d957f9e00f4645aa161d38_79847304.png imagette227423201746572073 22742324 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=22742324 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356532215: '1746571765_3943764_1356530580_f1cbcec8abacb80bf588d9fc5d9db0e6_rle_crop_3787592366_0.png', 1356533671: '1746572007_3947968_1356532888_4201d5978dbae8081b334f7c7cfb9da2_rle_crop_3787595243_0.png', 1356533672: '1746572007_3947968_1356532888_4201d5978dbae8081b334f7c7cfb9da2_rle_crop_3787595241_0.png', 1356533838: '1746571993_1987462_1356533043_9292e5245eb083259055493eedd0a278_rle_crop_3787595259_0.png', 1356533839: '1746571993_1987462_1356532581_b28b32acd686ab8f952573c4b850449f_rle_crop_3787595287_0.png', 1356533841: '1746571993_1987462_1356532577_2f909b9c2b10d090058af522c2c1c44e_rle_crop_3787595351_0.png', 1356533842: '1746571993_1987462_1356532568_b377a63a55e43920310db596907575ce_rle_crop_3787595515_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/fb4f395ead99519db6e2f39d7f624cff_28275404.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/612fb03f4c804d8524efff6b048adb27_56549310.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/60dd17ba485635dfea5ac57bf38b155a_16715842.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/8f6899761b9d079c0240367443176366_91739246.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/2eb3edc426ee44687ae46116a236a4ed_45691213.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/8bd7b63514f01b94ff79db7aa1441ae7_88973866.png change filename to text .imagette227423241746572073/ imagette227423241746572073/1746571765_3943764_1356530580_f1cbcec8abacb80bf588d9fc5d9db0e6_rle_crop_3787592366_0.png.png imagette227423241746572073/1746571993_1987462_1356533043_9292e5245eb083259055493eedd0a278_rle_crop_3787595259_0.png.png imagette227423241746572073/1746572007_3947968_1356532888_4201d5978dbae8081b334f7c7cfb9da2_rle_crop_3787595243_0.png.png imagette227423241746572073/1746572007_3947968_1356532888_4201d5978dbae8081b334f7c7cfb9da2_rle_crop_3787595241_0.png.png imagette227423241746572073/1746571993_1987462_1356532568_b377a63a55e43920310db596907575ce_rle_crop_3787595515_0.png.png imagette227423241746572073/1746571993_1987462_1356532581_b28b32acd686ab8f952573c4b850449f_rle_crop_3787595287_0.png.png imagette227423241746572073/1746571993_1987462_1356532577_2f909b9c2b10d090058af522c2c1c44e_rle_crop_3787595351_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/906d3b049d46425cf9bacff5fa4d0cd7_24705827.png imagette227423241746572073 22742328 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=22742328 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356530342: '1746571633_1984107_1356529404_9b166e03a0becc131e8023cb28a4982e_rle_crop_3787585533_0.png', 1356532071: '1746571752_1985407_1356530440_c99c5bf5e21aea1705291a19801cdcd3_rle_crop_3787592617_0.png', 1356533670: '1746572007_3947968_1356532993_d2d0c16f34c0188693facf9009517778_rle_crop_3787595216_0.png', 1356533827: '1746571993_1987462_1356533043_9292e5245eb083259055493eedd0a278_rle_crop_3787595254_0.png', 1356533828: '1746571993_1987462_1356533043_9292e5245eb083259055493eedd0a278_rle_crop_3787595255_0.png', 1356533829: '1746571993_1987462_1356532577_2f909b9c2b10d090058af522c2c1c44e_rle_crop_3787595345_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/e0f157ff5ecd8bb0396e3423792bdd4c_98362259.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/5bc7c792a31f753cfcdf648e64e5958a_22720248.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/54fb2237d9e512c6b4f5cba51fb65e91_28907887.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/cddc921c1b389408f8a8935d10107929_29205981.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/4f6f692e60132db69275c0d296475722_57310098.png change filename to text .imagette227423281746572073/ imagette227423281746572073/1746571752_1985407_1356530440_c99c5bf5e21aea1705291a19801cdcd3_rle_crop_3787592617_0.png.png imagette227423281746572073/1746571993_1987462_1356533043_9292e5245eb083259055493eedd0a278_rle_crop_3787595254_0.png.png imagette227423281746572073/1746571993_1987462_1356533043_9292e5245eb083259055493eedd0a278_rle_crop_3787595255_0.png.png imagette227423281746572073/1746571993_1987462_1356532577_2f909b9c2b10d090058af522c2c1c44e_rle_crop_3787595345_0.png.png imagette227423281746572073/1746572007_3947968_1356532993_d2d0c16f34c0188693facf9009517778_rle_crop_3787595216_0.png.png imagette227423281746572073/1746571633_1984107_1356529404_9b166e03a0becc131e8023cb28a4982e_rle_crop_3787585533_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/74a4c285e5eee5c50b966166a3cf6fbf_34153534.png imagette227423281746572073 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22742314 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22742332,22742333,22742334,22742335,22742336,22742337,22742338,22742339,22742340,22742341,22742342,22742343?tags=Teint_Dans_La_Masse,kraft,environnement,cartonnette,Carton_brun,mal_croppe,autre_refus,metal,Carton_gris,flou,papier,plastique your option no_mail is active, we will not send the real mail to your client args[1356533555] : ('0.031929849835931966',) no score found for photo 1356533555 We are sending mail with results at report@fotonower.com args[1356533509] : ('0.031929849835931966',) no score found for photo 1356533509 We are sending mail with results at report@fotonower.com args[1356533468] : ('0.031929849835931966',) no score found for photo 1356533468 We are sending mail with results at report@fotonower.com args[1356533437] : ('0.031929849835931966',) no score found for photo 1356533437 We are sending mail with results at report@fotonower.com args[1356533043] : ('0.031929849835931966',) no score found for photo 1356533043 We are sending mail with results at report@fotonower.com args[1356532993] : ('0.031929849835931966',) no score found for photo 1356532993 We are sending mail with results at report@fotonower.com args[1356532942] : ('0.031929849835931966',) no score found for photo 1356532942 We are sending mail with results at report@fotonower.com args[1356532888] : ('0.031929849835931966',) no score found for photo 1356532888 We are sending mail with results at report@fotonower.com args[1356532599] : ('0.031929849835931966',) no score found for photo 1356532599 We are sending mail with results at report@fotonower.com args[1356532581] : ('0.031929849835931966',) no score found for photo 1356532581 We are sending mail with results at report@fotonower.com args[1356532577] : ('0.031929849835931966',) no score found for photo 1356532577 We are sending mail with results at report@fotonower.com args[1356532576] : ('0.031929849835931966',) no score found for photo 1356532576 We are sending mail with results at report@fotonower.com args[1356532573] : ('0.031929849835931966',) no score found for photo 1356532573 We are sending mail with results at report@fotonower.com args[1356532568] : ('0.031929849835931966',) no score found for photo 1356532568 We are sending mail with results at report@fotonower.com args[1356532472] : ('0.031929849835931966',) no score found for photo 1356532472 We are sending mail with results at report@fotonower.com args[1356532397] : ('0.031929849835931966',) no score found for photo 1356532397 We are sending mail with results at report@fotonower.com args[1356532343] : ('0.031929849835931966',) no score found for photo 1356532343 We are sending mail with results at report@fotonower.com args[1356532294] : ('0.031929849835931966',) no score found for photo 1356532294 We are sending mail with results at report@fotonower.com refus_total : 0.031929849835931966 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=22742314 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_P22742314_07-05-2025_00_54_32.pdf results_Auto_P22742314_07-05-2025_00_54_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22742314_07-05-2025_00_54_32.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','22742314','results_Auto_P22742314_07-05-2025_00_54_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22742314_07-05-2025_00_54_32.pdf','pdf','','0.22','0.031929849835931966') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22742314]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1356533555, 1356533509, 1356533468, 1356533437, 1356533043, 1356532993, 1356532942, 1356532888, 1356532599, 1356532581, 1356532577, 1356532576, 1356532573, 1356532568, 1356532472, 1356532397, 1356532343, 1356532294] map_info['map_portfolio_photo'] : {22742314: [1356533555, 1356533509, 1356533468, 1356533437, 1356533043, 1356532993, 1356532942, 1356532888, 1356532599, 1356532581, 1356532577, 1356532576, 1356532573, 1356532568, 1356532472, 1356532397, 1356532343, 1356532294, 1356531681, 1356531633, 1356531437, 1356531356, 1356530580, 1356530477, 1356530440, 1356530410, 1356529794, 1356529675, 1356529557, 1356529458, 1356529434, 1356529431, 1356529404, 1356529402, 1356529399]} final : False mtd_id 4302 list_pids : [1356533555, 1356533509, 1356533468, 1356533437, 1356533043, 1356532993, 1356532942, 1356532888, 1356532599, 1356532581, 1356532577, 1356532576, 1356532573, 1356532568, 1356532472, 1356532397, 1356532343, 1356532294] 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, '2800017') ('4302', '22742314', '1356533555', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356533509', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356533468', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356533437', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356533043', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532993', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532942', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532888', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532599', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532581', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532577', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532576', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532573', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532568', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532472', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532397', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532343', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532294', None, None, None, None, None, '2800017') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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', '22742314', '1356533555', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356533509', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356533468', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356533437', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356533043', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532993', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532942', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532888', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532599', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532581', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532577', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532576', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532573', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532568', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532472', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532397', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532343', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532294', None, None, None, None, None, '2800017')] time used for this insertion : 0.36638450622558594 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.4574196338653564 time spend to save output : 0.366687536239624 total time spend for step 4 : 3.8241071701049805 step5:split_time_score Wed May 7 00:54:35 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 : ['22742314'] 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 : [('22742314',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22742314) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1356533509: {'path': 'temp/1746572072_2766532_1356533509_368e0b706a09929aafe81cddfff21f67.jpg', 'extension': 'jpg'}, 1356533555: {'path': 'temp/1746572072_2766532_1356533555_d094d3fc8fa50b7de7a0056feff65a22.jpg', 'extension': 'jpg'}, 1356532993: {'path': 'temp/1746572072_2766532_1356532993_d2d0c16f34c0188693facf9009517778.jpg', 'extension': 'jpg'}, 1356533043: {'path': 'temp/1746572072_2766532_1356533043_9292e5245eb083259055493eedd0a278.jpg', 'extension': 'jpg'}, 1356533437: {'path': 'temp/1746572072_2766532_1356533437_cb7acbc83ce56c869792443ae2b00ece.jpg', 'extension': 'jpg'}, 1356533468: {'path': 'temp/1746572072_2766532_1356533468_e4b41db098e46be1e69f0045cd13ca50.jpg', 'extension': 'jpg'}, 1356532294: {'path': 'temp/1746572072_2766532_1356532294_ca7b7f8c16490e9865b364b14972a839.jpg', 'extension': 'jpg'}, 1356532343: {'path': 'temp/1746572072_2766532_1356532343_0a2828a8c674b72d49e665049d56f292.jpg', 'extension': 'jpg'}, 1356532397: {'path': 'temp/1746572072_2766532_1356532397_fa94b9b83a711d2d4cda09cb061d47de.jpg', 'extension': 'jpg'}, 1356532472: {'path': 'temp/1746572072_2766532_1356532472_d1f224de15321409bc66272de76f9ba4.jpg', 'extension': 'jpg'}, 1356532568: {'path': 'temp/1746572072_2766532_1356532568_b377a63a55e43920310db596907575ce.jpg', 'extension': 'jpg'}, 1356532573: {'path': 'temp/1746572072_2766532_1356532573_64b48662fadd56ebf7788ae444a3ec80.jpg', 'extension': 'jpg'}, 1356532576: {'path': 'temp/1746572072_2766532_1356532576_e9f8ee1dd9afac83f7dc22ff15c4028d.jpg', 'extension': 'jpg'}, 1356532577: {'path': 'temp/1746572072_2766532_1356532577_2f909b9c2b10d090058af522c2c1c44e.jpg', 'extension': 'jpg'}, 1356532581: {'path': 'temp/1746572072_2766532_1356532581_b28b32acd686ab8f952573c4b850449f.jpg', 'extension': 'jpg'}, 1356532599: {'path': 'temp/1746572072_2766532_1356532599_9aa019130d1c96eea51353a0181e9177.jpg', 'extension': 'jpg'}, 1356532888: {'path': 'temp/1746572072_2766532_1356532888_4201d5978dbae8081b334f7c7cfb9da2.jpg', 'extension': 'jpg'}, 1356532942: {'path': 'temp/1746572072_2766532_1356532942_9ef70c6644d168f5b072363599870b8d.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 = 22742314; (('arc_en_ciel_jrm_live',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22742314 group by h (('00', 35),) 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=22742314 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 (22742314) 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 (22742314) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07052025 22742314 Nombre de photos uploadées : 35 / 23040 (0%) 07052025 22742314 Nombre de photos taguées (types de déchets): 0 / 35 (0%) 07052025 22742314 Nombre de photos taguées (volume) : 0 / 35 (0%) [{'photo_id': 1356529404, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/9b166e03a0becc131e8023cb28a4982e.jpg', 'username': None, 'uploaded_at': 1746571567, 'text': 'image_07052025_00_45_04_10147.jpg'}, {'photo_id': 1356529402, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/a7b7d40c594c7c221d3463f34658cc36.jpg', 'username': None, 'uploaded_at': 1746571567, 'text': 'image_07052025_00_45_14_10133.jpg'}, {'photo_id': 1356529399, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/b5662e2039f5da99d7d593ea6a2a4434.jpg', 'username': None, 'uploaded_at': 1746571567, 'text': 'image_07052025_00_45_44_10133.jpg'}, {'photo_id': 1356529794, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/7/86a2fa7f7c1308233996d69f1e72d03f.jpg', 'username': None, 'uploaded_at': 1746571627, 'text': 'image_07052025_00_45_54_10133.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 4.5299530029296875e-06 ??????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0026464462280273438 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 22742314, '2025-05-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1780886,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.026211977005004883 We will return after consolidate but for now we need the day, how to get it, for now depending on the previous heavy steps SELECT dri.dashboard_entry_day, dr.dashboard_run_id, dr.mtr_portfolio_id, dr.id, dr.hashtag, dr.completion_json FROM MTRPhoto.dashboard_results dr, MTRPhoto.dashboard_run_ids dri, MTRPhoto.dashboard_entry_day ded WHERE ded.id= 1780886 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1780886, 'dashboard_run_id': 1788471, 'mtr_portfolio_id': 22740041, 'dashboard_result_id': 10357385, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22740041_07-05-2025_00_20_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22740060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22740061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22740062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22740063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22740064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22740065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22740066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22740067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22740068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22740069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22740070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22740071, 'pht': 3726}}"}, {'dashboat_entry_day': 1780886, 'dashboard_run_id': 1788471, 'mtr_portfolio_id': 22741189, 'dashboard_result_id': 10357386, '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_P22741189_07-05-2025_00_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22741238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741241, 'pht': 3726}}"}, {'dashboat_entry_day': 1780886, 'dashboard_run_id': 1788471, 'mtr_portfolio_id': 22741710, 'dashboard_result_id': 10357387, '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_P22741710_07-05-2025_00_47_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22741715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741726, 'pht': 3726}}"}, {'dashboat_entry_day': 1780886, 'dashboard_run_id': 1788471, 'mtr_portfolio_id': 22742314, 'dashboard_result_id': 10357388, '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_P22742314_07-05-2025_00_50_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22742320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22742321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22742322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22742323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22742324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22742325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22742326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22742327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22742328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22742329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22742330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22742331, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22740041 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 2799894, 'mtr_portfolio_id': 22740041, 'created_at': datetime.datetime(2025, 5, 7, 0, 20, 59), 'result': '0.04471122665630952', 'result_long': None, 'result_double': None}] Qualite : 0.04471122665630952 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22740041 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22740041_07-05-2025_00_20_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22740041 order by id desc limit 1 update MTRPhoto.dashboard_results set completion_json = "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22740041_07-05-2025_00_20_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22740060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22740061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22740062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22740063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22740064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22740065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22740066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22740067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22740068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22740069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22740070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22740071, 'pht': 3726}}" where mtr_portfolio_id = 22740041 and dashboard_run_id = 1788471 SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify TODO Duplicate data, are they consistent 3 ? Duplicate data, are they consistent 4 ? SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22740041 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10357385, 0.04471122665630952, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22740041_07-05-2025_00_20_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22740060, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22740061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22740062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22740063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22740064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22740065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22740066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22740067, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22740068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22740069, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22740070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22740071, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22741189 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': 2799947, 'mtr_portfolio_id': 22741189, 'created_at': datetime.datetime(2025, 5, 7, 0, 32, 59), 'result': '0.051507258021020234', 'result_long': None, 'result_double': None}] Qualite : 0.051507258021020234 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22741189 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22741189_07-05-2025_00_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22741189 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_P22741189_07-05-2025_00_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22741238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741241, 'pht': 3726}}" where mtr_portfolio_id = 22741189 and dashboard_run_id = 1788471 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`=22741189 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10357386, 0.051507258021020234, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22741189_07-05-2025_00_32_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741230, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741235, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741237, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22741238, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741240, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741241, '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 = 22741710 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': 2799979, 'mtr_portfolio_id': 22741710, 'created_at': datetime.datetime(2025, 5, 7, 0, 47, 27), 'result': '0.062164212888669274', 'result_long': None, 'result_double': None}] Qualite : 0.062164212888669274 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22741710 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22741710_07-05-2025_00_47_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22741710 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_P22741710_07-05-2025_00_47_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22741715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741726, 'pht': 3726}}" where mtr_portfolio_id = 22741710 and dashboard_run_id = 1788471 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`=22741710 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10357387, 0.062164212888669274, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22741710_07-05-2025_00_47_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22741715, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22741716, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22741717, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22741718, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22741719, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22741720, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22741721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22741722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22741723, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22741724, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22741725, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22741726, '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 = 22742314 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': 2800017, 'mtr_portfolio_id': 22742314, 'created_at': datetime.datetime(2025, 5, 7, 0, 54, 31), 'result': '0.031929849835931966', 'result_long': None, 'result_double': None}] Qualite : 0.031929849835931966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22742314 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22742314_07-05-2025_00_54_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22742314 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_P22742314_07-05-2025_00_54_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22742320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22742321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22742322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22742323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22742324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22742325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22742326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22742327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22742328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22742329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22742330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22742331, 'pht': 3726}}" where mtr_portfolio_id = 22742314 and dashboard_run_id = 1788471 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`=22742314 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10357388, 0.031929849835931966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22742314_07-05-2025_00_54_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22742320, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22742321, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22742322, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22742323, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22742324, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22742325, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22742326, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22742327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22742328, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22742329, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22742330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22742331, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22740041,22741189,22741710,22742314) result : ((1356510147,), (1356510155,), (1356510161,), (1356510216,), (1356510244,), (1356510275,), (1356510905,), (1356510935,), (1356511118,), (1356511163,), (1356511215,), (1356511248,), (1356511465,), (1356511503,), (1356511529,), (1356511552,), (1356511556,), (1356511557,), (1356511778,), (1356511794,), (1356511829,), (1356515156,), (1356515208,), (1356515901,), (1356515952,), (1356516009,), (1356516068,), (1356516118,), (1356516709,), (1356516768,), (1356516802,), (1356517611,), (1356517205,), (1356517282,), (1356517353,), (1356517432,), (1356517511,), (1356518522,), (1356518642,), (1356518772,), (1356520657,), (1356520772,), (1356520880,), (1356520942,), (1356521561,), (1356521613,), (1356521662,), (1356521710,), (1356521766,), (1356521814,), (1356521967,), (1356522017,), (1356522065,), (1356522762,), (1356522842,), (1356522931,), (1356522962,), (1356522997,), (1356523046,), (1356523401,), (1356523447,), (1356523501,), (1356523551,), (1356523604,), (1356523663,), (1356524321,), (1356524362,), (1356525241,), (1356525301,), (1356525336,), (1356525381,), (1356525424,), (1356525488,), (1356525876,), (1356525905,), (1356525912,), (1356525916,), (1356525920,), (1356526224,), (1356526289,), (1356526355,), (1356526529,), (1356526599,), (1356526888,), (1356526916,), (1356526943,), (1356526977,), (1356527139,), (1356527144,), (1356527199,), (1356527283,), (1356527286,), (1356527289,), (1356527297,), (1356527302,), (1356527305,), (1356527328,), (1356527330,), (1356527333,), (1356527336,), (1356527340,), (1356527398,), (1356527388,), (1356527390,), (1356527392,), (1356527394,), (1356527420,), (1356527434,), (1356527575,), (1356527577,), (1356527579,), (1356527598,), (1356527622,), (1356527823,), (1356527833,), (1356527838,), (1356527840,), (1356527842,), (1356527859,), (1356527861,), (1356527864,), (1356527867,), (1356527891,), (1356527895,), (1356527897,), (1356527982,), (1356527986,), (1356527991,), (1356527999,), (1356528003,), (1356528011,), (1356528184,), (1356528189,), (1356528198,), (1356528204,), (1356528209,), (1356528214,), (1356528324,), (1356528352,), (1356528387,), (1356528414,), (1356528872,), (1356528898,), (1356528919,), (1356528924,), (1356529012,), (1356529017,), (1356529019,), (1356529022,), (1356529025,), (1356529113,), (1356529117,), (1356529120,), (1356529170,), (1356529182,), (1356529186,), (1356529237,), (1356529247,), (1356529250,), (1356529261,), (1356529264,), (1356529266,), (1356529406,), (1356529399,), (1356529402,), (1356529404,), (1356529431,), (1356529434,), (1356529458,), (1356529557,), (1356529675,), (1356529794,), (1356530410,), (1356530440,), (1356530477,), (1356530580,), (1356531356,), (1356531437,), (1356531633,), (1356531681,), (1356532294,), (1356532343,), (1356532397,), (1356532472,), (1356532568,), (1356532573,), (1356532576,), (1356532577,), (1356532581,), (1356532599,), (1356532888,), (1356532942,), (1356532993,), (1356533043,), (1356533437,), (1356533468,), (1356533509,), (1356533555,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07052025': {'nb_upload': 35, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22742314]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1356533555, 1356533509, 1356533468, 1356533437, 1356533043, 1356532993, 1356532942, 1356532888, 1356532599, 1356532581, 1356532577, 1356532576, 1356532573, 1356532568, 1356532472, 1356532397, 1356532343, 1356532294] map_info['map_portfolio_photo'] : {22742314: [1356533555, 1356533509, 1356533468, 1356533437, 1356533043, 1356532993, 1356532942, 1356532888, 1356532599, 1356532581, 1356532577, 1356532576, 1356532573, 1356532568, 1356532472, 1356532397, 1356532343, 1356532294, 1356531681, 1356531633, 1356531437, 1356531356, 1356530580, 1356530477, 1356530440, 1356530410, 1356529794, 1356529675, 1356529557, 1356529458, 1356529434, 1356529431, 1356529404, 1356529402, 1356529399]} final : True mtd_id 4302 list_pids : [1356533555, 1356533509, 1356533468, 1356533437, 1356533043, 1356532993, 1356532942, 1356532888, 1356532599, 1356532581, 1356532577, 1356532576, 1356532573, 1356532568, 1356532472, 1356532397, 1356532343, 1356532294] Looping around the photos to save general results len do output : 1 /22742314Didn'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, '2800017') ('4302', '22742314', '1356533555', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356533509', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356533468', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356533437', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356533043', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532993', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532942', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532888', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532599', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532581', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532577', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532576', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532573', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532568', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532472', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532397', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532343', None, None, None, None, None, '2800017') ('4302', None, None, None, None, None, None, None, '2800017') ('4302', '22742314', '1356532294', None, None, None, None, None, '2800017') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 19 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, '22742314', 'None', None, None, None, None, '2800017'), ('4302', '22742314', '1356533555', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356533509', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356533468', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356533437', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356533043', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532993', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532942', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532888', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532599', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532581', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532577', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532576', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532573', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532568', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532472', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532397', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532343', None, None, None, None, None, '2800017'), ('4302', '22742314', '1356532294', None, None, None, None, None, '2800017')] time used for this insertion : 0.01978325843811035 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3453855514526367 time spend to save output : 0.020059585571289062 total time spend for step 5 : 0.3654451370239258 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 (2800017) 2.37user 2.30system 0:11.04elapsed 42%CPU (0avgtext+0avgdata 161400maxresident)k 15232inputs+13712outputs (112major+77703minor)pagefaults 0swaps