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 21365120 , 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=21365113 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='environnement' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21365120) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21365113) result : ((1343563415,), (1343563416,), (1343563432,), (1343563433,), (1343563452,), (1343563454,), (1343563479,), (1343563484,), (1343563487,), (1343563492,), (1343563561,), (1343563571,), (1343563597,)) 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 21365121 , 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=21365113 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 (21365121) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21365113) result : ((1343563415,), (1343563416,), (1343563432,), (1343563433,), (1343563452,), (1343563454,), (1343563479,), (1343563484,), (1343563487,), (1343563492,), (1343563561,), (1343563571,), (1343563597,)) 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 21365122 , 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=21365113 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 (21365122) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21365113) result : ((1343563415,), (1343563416,), (1343563432,), (1343563433,), (1343563452,), (1343563454,), (1343563479,), (1343563484,), (1343563487,), (1343563492,), (1343563561,), (1343563571,), (1343563597,)) 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 21365123 , 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=21365113 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='cartonnette' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21365123) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21365113) result : ((1343563415,), (1343563416,), (1343563432,), (1343563433,), (1343563452,), (1343563454,), (1343563479,), (1343563484,), (1343563487,), (1343563492,), (1343563561,), (1343563571,), (1343563597,)) 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 21365124 , 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=21365113 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_brun' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21365124) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21365113) result : ((1343563415,), (1343563416,), (1343563432,), (1343563433,), (1343563452,), (1343563454,), (1343563479,), (1343563484,), (1343563487,), (1343563492,), (1343563561,), (1343563571,), (1343563597,)) 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 21365125 , 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=21365113 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='kraft' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21365125) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21365113) result : ((1343563415,), (1343563416,), (1343563432,), (1343563433,), (1343563452,), (1343563454,), (1343563479,), (1343563484,), (1343563487,), (1343563492,), (1343563561,), (1343563571,), (1343563597,)) 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`=21365113 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','plastique','Carton_brun','flou','Carton_gris','mal_croppe','cartonnette','metal','environnement','papier','kraft')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21365113 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','plastique','Carton_brun','flou','Carton_gris','mal_croppe','cartonnette','metal','environnement','papier','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 21365113, 'sub_port_id': 21365126, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943547, 'last_updated_at': datetime.datetime(2025, 3, 12, 19, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 19, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 19, 47, 28)}, 'flou': {'main_port_id': 21365113, 'sub_port_id': 21365127, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943548, 'last_updated_at': datetime.datetime(2025, 3, 12, 19, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 19, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 19, 47, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 21365113, 'sub_port_id': 21365128, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943549, 'last_updated_at': datetime.datetime(2025, 3, 12, 19, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 19, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 19, 47, 28)}, 'Carton_gris': {'main_port_id': 21365113, 'sub_port_id': 21365129, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943550, 'last_updated_at': datetime.datetime(2025, 3, 12, 19, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 19, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 19, 47, 28)}, 'metal': {'main_port_id': 21365113, 'sub_port_id': 21365130, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943551, 'last_updated_at': datetime.datetime(2025, 3, 12, 19, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 19, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 19, 47, 28)}, 'papier': {'main_port_id': 21365113, 'sub_port_id': 21365131, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943552, 'last_updated_at': datetime.datetime(2025, 3, 12, 19, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 19, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 19, 47, 28)}, 'environnement': {'main_port_id': 21365113, 'sub_port_id': 21365132, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943553, 'last_updated_at': datetime.datetime(2025, 3, 12, 19, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 19, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 19, 47, 28)}, 'autre_refus': {'main_port_id': 21365113, 'sub_port_id': 21365133, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943554, 'last_updated_at': datetime.datetime(2025, 3, 12, 19, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 19, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 19, 47, 28)}, 'plastique': {'main_port_id': 21365113, 'sub_port_id': 21365134, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943555, 'last_updated_at': datetime.datetime(2025, 3, 12, 19, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 19, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 19, 47, 28)}, 'cartonnette': {'main_port_id': 21365113, 'sub_port_id': 21365135, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943556, 'last_updated_at': datetime.datetime(2025, 3, 12, 19, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 19, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 19, 47, 28)}, 'Carton_brun': {'main_port_id': 21365113, 'sub_port_id': 21365136, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943557, 'last_updated_at': datetime.datetime(2025, 3, 12, 19, 47, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 12, 19, 47, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 19, 47, 28)}, 'kraft': {'main_port_id': 21365113, 'sub_port_id': 21365137, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 13943558, 'last_updated_at': datetime.datetime(2025, 3, 25, 16, 39, 32), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 16, 39, 32), 'last_updated_at_asc': datetime.datetime(2025, 3, 12, 19, 47, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21365126,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21365114 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21365127,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21365115 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21365128,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21365116 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21365129,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21365117 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21365130,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21365118 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21365131,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21365119 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21365132,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21365120 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21365133,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21365121 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21365134,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21365122 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21365135,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21365123 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21365136,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21365124 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21365137,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21365125 lien utilise dans velours : https://www.fotonower.com/velours/21365126,21365127,21365128,21365129,21365130,21365131,21365132,21365133,21365134,21365135,21365136,21365137?tags=mal_croppe,flou,Teint_Dans_La_Masse,Carton_gris,metal,papier,environnement,autre_refus,plastique,cartonnette,Carton_brun,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21365113]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1343563597, 1343563571, 1343563561, 1343563492, 1343563487, 1343563484, 1343563479, 1343563454, 1343563452, 1343563433, 1343563432, 1343563416, 1343563415] map_info['map_portfolio_photo'] : {21365113: [1343563597, 1343563571, 1343563561, 1343563492, 1343563487, 1343563484, 1343563479, 1343563454, 1343563452, 1343563433, 1343563432, 1343563416, 1343563415]} final : False mtd_id 4302 list_pids : [1343563597, 1343563571, 1343563561, 1343563492, 1343563487, 1343563484, 1343563479, 1343563454, 1343563452, 1343563433, 1343563432, 1343563416, 1343563415] Looping around the photos to save general results len do output : 1 /21365113. 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, '2708867') ('4302', '21365113', '1343563597', None, None, None, None, None, '2708867') ('4302', None, None, None, None, None, None, None, '2708867') ('4302', '21365113', '1343563571', None, None, None, None, None, '2708867') ('4302', None, None, None, None, None, None, None, '2708867') ('4302', '21365113', '1343563561', None, None, None, None, None, '2708867') ('4302', None, None, None, None, None, None, None, '2708867') ('4302', '21365113', '1343563492', None, None, None, None, None, '2708867') ('4302', None, None, None, None, None, None, None, '2708867') ('4302', '21365113', '1343563487', None, None, None, None, None, '2708867') ('4302', None, None, None, None, None, None, None, '2708867') ('4302', '21365113', '1343563484', None, None, None, None, None, '2708867') ('4302', None, None, None, None, None, None, None, '2708867') ('4302', '21365113', '1343563479', None, None, None, None, None, '2708867') ('4302', None, None, None, None, None, None, None, '2708867') ('4302', '21365113', '1343563454', None, None, None, None, None, '2708867') ('4302', None, None, None, None, None, None, None, '2708867') ('4302', '21365113', '1343563452', None, None, None, None, None, '2708867') ('4302', None, None, None, None, None, None, None, '2708867') ('4302', '21365113', '1343563433', None, None, None, None, None, '2708867') ('4302', None, None, None, None, None, None, None, '2708867') ('4302', '21365113', '1343563432', None, None, None, None, None, '2708867') ('4302', None, None, None, None, None, None, None, '2708867') ('4302', '21365113', '1343563416', None, None, None, None, None, '2708867') ('4302', None, None, None, None, None, None, None, '2708867') ('4302', '21365113', '1343563415', None, None, None, None, None, '2708867') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '21365113', "{'mal_croppe': 21365114, 'flou': 21365115, 'Teint_Dans_La_Masse': 21365116, 'Carton_gris': 21365117, 'metal': 21365118, 'papier': 21365119, 'environnement': 21365120, 'autre_refus': 21365121, 'plastique': 21365122, 'cartonnette': 21365123, 'Carton_brun': 21365124, 'kraft': 21365125}", None, None, None, None, '2708867'), ('4302', '21365113', '1343563597', None, None, None, None, None, '2708867'), ('4302', '21365113', '1343563571', None, None, None, None, None, '2708867'), ('4302', '21365113', '1343563561', None, None, None, None, None, '2708867'), ('4302', '21365113', '1343563492', None, None, None, None, None, '2708867'), ('4302', '21365113', '1343563487', None, None, None, None, None, '2708867'), ('4302', '21365113', '1343563484', None, None, None, None, None, '2708867'), ('4302', '21365113', '1343563479', None, None, None, None, None, '2708867'), ('4302', '21365113', '1343563454', None, None, None, None, None, '2708867'), ('4302', '21365113', '1343563452', None, None, None, None, None, '2708867'), ('4302', '21365113', '1343563433', None, None, None, None, None, '2708867'), ('4302', '21365113', '1343563432', None, None, None, None, None, '2708867'), ('4302', '21365113', '1343563416', None, None, None, None, None, '2708867'), ('4302', '21365113', '1343563415', None, None, None, None, None, '2708867')] time used for this insertion : 0.013488531112670898 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.3787660598754883 time spend to save output : 0.013910293579101562 total time spend for step 1 : 1.3926763534545898 step2:final Mon Mar 31 13:05:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (21365113) 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 21365113 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1343563415,1343563416,1343563433,1343563454,1343563484,1343563492,1343563432,1343563452,1343563479,1343563487,1343563571,1343563561,1343563597); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21365113]) Inside saveOutput : final : False verbose : True original output for save of step final : {1343563597: ('0.0',), 1343563571: ('0.0',), 1343563561: ('0.0',), 1343563492: ('0.0',), 1343563487: ('0.0',), 1343563484: ('0.0',), 1343563479: ('0.0',), 1343563454: ('0.0',), 1343563452: ('0.0',), 1343563433: ('0.0',), 1343563432: ('0.0',), 1343563416: ('0.0',), 1343563415: ('0.0',)} new output for save of step final : {1343563597: ('0.0',), 1343563571: ('0.0',), 1343563561: ('0.0',), 1343563492: ('0.0',), 1343563487: ('0.0',), 1343563484: ('0.0',), 1343563479: ('0.0',), 1343563454: ('0.0',), 1343563452: ('0.0',), 1343563433: ('0.0',), 1343563432: ('0.0',), 1343563416: ('0.0',), 1343563415: ('0.0',)} [1343563597, 1343563571, 1343563561, 1343563492, 1343563487, 1343563484, 1343563479, 1343563454, 1343563452, 1343563433, 1343563432, 1343563416, 1343563415] map_info['map_portfolio_photo'] : {21365113: [1343563597, 1343563571, 1343563561, 1343563492, 1343563487, 1343563484, 1343563479, 1343563454, 1343563452, 1343563433, 1343563432, 1343563416, 1343563415]} final : False mtd_id 4302 list_pids : [1343563597, 1343563571, 1343563561, 1343563492, 1343563487, 1343563484, 1343563479, 1343563454, 1343563452, 1343563433, 1343563432, 1343563416, 1343563415] Looping around the photos to save general results len do output : 13 /1343563597.Didn't retrieve data . /1343563571.Didn't retrieve data . /1343563561.Didn't retrieve data . /1343563492.Didn't retrieve data . /1343563487.Didn't retrieve data . /1343563484.Didn't retrieve data . /1343563479.Didn't retrieve data . /1343563454.Didn't retrieve data . /1343563452.Didn't retrieve data . /1343563433.Didn't retrieve data . /1343563432.Didn't retrieve data . /1343563416.Didn't retrieve data . /1343563415.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, '2708867') ('4302', '21365113', '1343563597', None, None, None, None, None, '2708867') ('4302', None, None, None, None, None, None, None, '2708867') ('4302', '21365113', '1343563571', None, None, None, None, None, '2708867') ('4302', None, None, None, None, None, None, None, '2708867') ('4302', '21365113', '1343563561', None, None, None, None, None, '2708867') ('4302', None, None, None, None, None, None, None, '2708867') ('4302', '21365113', '1343563492', None, None, None, None, None, '2708867') ('4302', None, None, None, None, None, None, None, '2708867') ('4302', '21365113', '1343563487', None, None, None, None, None, '2708867') ('4302', None, None, None, None, None, None, None, '2708867') ('4302', '21365113', '1343563484', None, None, None, None, None, '2708867') ('4302', None, None, None, None, None, None, None, '2708867') ('4302', '21365113', '1343563479', None, None, None, None, None, '2708867') ('4302', None, None, None, None, None, None, None, '2708867') ('4302', '21365113', '1343563454', None, None, None, None, None, '2708867') ('4302', None, None, None, None, None, None, None, '2708867') ('4302', '21365113', '1343563452', None, None, None, None, None, '2708867') ('4302', None, None, None, None, None, None, None, '2708867') ('4302', '21365113', '1343563433', None, None, None, None, None, '2708867') ('4302', None, None, None, None, None, None, None, '2708867') ('4302', '21365113', '1343563432', None, None, None, None, None, '2708867') ('4302', None, None, None, None, None, None, None, '2708867') ('4302', '21365113', '1343563416', None, None, None, None, None, '2708867') ('4302', None, None, None, None, None, None, None, '2708867') ('4302', '21365113', '1343563415', None, None, None, None, None, '2708867') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '21365113', '1343563597', '0.0', None, None, None, None, '2708867'), ('4302', '21365113', '1343563571', '0.0', None, None, None, None, '2708867'), ('4302', '21365113', '1343563561', '0.0', None, None, None, None, '2708867'), ('4302', '21365113', '1343563492', '0.0', None, None, None, None, '2708867'), ('4302', '21365113', '1343563487', '0.0', None, None, None, None, '2708867'), ('4302', '21365113', '1343563484', '0.0', None, None, None, None, '2708867'), ('4302', '21365113', '1343563479', '0.0', None, None, None, None, '2708867'), ('4302', '21365113', '1343563454', '0.0', None, None, None, None, '2708867'), ('4302', '21365113', '1343563452', '0.0', None, None, None, None, '2708867'), ('4302', '21365113', '1343563433', '0.0', None, None, None, None, '2708867'), ('4302', '21365113', '1343563432', '0.0', None, None, None, None, '2708867'), ('4302', '21365113', '1343563416', '0.0', None, None, None, None, '2708867'), ('4302', '21365113', '1343563415', '0.0', None, None, None, None, '2708867')] time used for this insertion : 0.013466119766235352 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.05028963088989258 time spend to save output : 0.014085531234741211 total time spend for step 2 : 0.06437516212463379 step3:velours_tree Mon Mar 31 13:05:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21365113: [{'mal_croppe': 21365114, 'flou': 21365115, 'Teint_Dans_La_Masse': 21365116, 'Carton_gris': 21365117, 'metal': 21365118, 'papier': 21365119, 'environnement': 21365120, 'autre_refus': 21365121, 'plastique': 21365122, 'cartonnette': 21365123, 'Carton_brun': 21365124, 'kraft': 21365125}]} input_args_next_step : {21365113: ()} output_args : {21365113: [{'mal_croppe': 21365114, 'flou': 21365115, 'Teint_Dans_La_Masse': 21365116, 'Carton_gris': 21365117, 'metal': 21365118, 'papier': 21365119, 'environnement': 21365120, 'autre_refus': 21365121, 'plastique': 21365122, 'cartonnette': 21365123, 'Carton_brun': 21365124, 'kraft': 21365125}]} args : 21365113 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 : ({'mal_croppe': 21365114, 'flou': 21365115, 'Teint_Dans_La_Masse': 21365116, 'Carton_gris': 21365117, 'metal': 21365118, 'papier': 21365119, 'environnement': 21365120, 'autre_refus': 21365121, 'plastique': 21365122, 'cartonnette': 21365123, 'Carton_brun': 21365124, 'kraft': 21365125},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21365113) 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([21365113]) 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.3386063575744629 time spend to save output : 4.1961669921875e-05 total time spend for step 3 : 0.33864831924438477 step4:send_mail_cod Mon Mar 31 13:05:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1343563597: ('0.0',), 1343563571: ('0.0',), 1343563561: ('0.0',), 1343563492: ('0.0',), 1343563487: ('0.0',), 1343563484: ('0.0',), 1343563479: ('0.0',), 1343563454: ('0.0',), 1343563452: ('0.0',), 1343563433: ('0.0',), 1343563432: ('0.0',), 1343563416: ('0.0',), 1343563415: ('0.0',)} input_args_next_step : {1343563597: ()} output_args : {1343563597: ('0.0',), 1343563571: ('0.0',), 1343563561: ('0.0',), 1343563492: ('0.0',), 1343563487: ('0.0',), 1343563484: ('0.0',), 1343563479: ('0.0',), 1343563454: ('0.0',), 1343563452: ('0.0',), 1343563433: ('0.0',), 1343563432: ('0.0',), 1343563416: ('0.0',), 1343563415: ('0.0',)} args : 1343563597 depend.output_id : 0 input_args_next_step : {1343563597: ('0.0',), 1343563571: ()} output_args : {1343563597: ('0.0',), 1343563571: ('0.0',), 1343563561: ('0.0',), 1343563492: ('0.0',), 1343563487: ('0.0',), 1343563484: ('0.0',), 1343563479: ('0.0',), 1343563454: ('0.0',), 1343563452: ('0.0',), 1343563433: ('0.0',), 1343563432: ('0.0',), 1343563416: ('0.0',), 1343563415: ('0.0',)} args : 1343563571 depend.output_id : 0 input_args_next_step : {1343563597: ('0.0',), 1343563571: ('0.0',), 1343563561: ()} output_args : {1343563597: ('0.0',), 1343563571: ('0.0',), 1343563561: ('0.0',), 1343563492: ('0.0',), 1343563487: ('0.0',), 1343563484: ('0.0',), 1343563479: ('0.0',), 1343563454: ('0.0',), 1343563452: ('0.0',), 1343563433: ('0.0',), 1343563432: ('0.0',), 1343563416: ('0.0',), 1343563415: ('0.0',)} args : 1343563561 depend.output_id : 0 input_args_next_step : {1343563597: ('0.0',), 1343563571: ('0.0',), 1343563561: ('0.0',), 1343563492: ()} output_args : {1343563597: ('0.0',), 1343563571: ('0.0',), 1343563561: ('0.0',), 1343563492: ('0.0',), 1343563487: ('0.0',), 1343563484: ('0.0',), 1343563479: ('0.0',), 1343563454: ('0.0',), 1343563452: ('0.0',), 1343563433: ('0.0',), 1343563432: ('0.0',), 1343563416: ('0.0',), 1343563415: ('0.0',)} args : 1343563492 depend.output_id : 0 input_args_next_step : {1343563597: ('0.0',), 1343563571: ('0.0',), 1343563561: ('0.0',), 1343563492: ('0.0',), 1343563487: ()} output_args : {1343563597: ('0.0',), 1343563571: ('0.0',), 1343563561: ('0.0',), 1343563492: ('0.0',), 1343563487: ('0.0',), 1343563484: ('0.0',), 1343563479: ('0.0',), 1343563454: ('0.0',), 1343563452: ('0.0',), 1343563433: ('0.0',), 1343563432: ('0.0',), 1343563416: ('0.0',), 1343563415: ('0.0',)} args : 1343563487 depend.output_id : 0 input_args_next_step : {1343563597: ('0.0',), 1343563571: ('0.0',), 1343563561: ('0.0',), 1343563492: ('0.0',), 1343563487: ('0.0',), 1343563484: ()} output_args : {1343563597: ('0.0',), 1343563571: ('0.0',), 1343563561: ('0.0',), 1343563492: ('0.0',), 1343563487: ('0.0',), 1343563484: ('0.0',), 1343563479: ('0.0',), 1343563454: ('0.0',), 1343563452: ('0.0',), 1343563433: ('0.0',), 1343563432: ('0.0',), 1343563416: ('0.0',), 1343563415: ('0.0',)} args : 1343563484 depend.output_id : 0 input_args_next_step : {1343563597: ('0.0',), 1343563571: ('0.0',), 1343563561: ('0.0',), 1343563492: ('0.0',), 1343563487: ('0.0',), 1343563484: ('0.0',), 1343563479: ()} output_args : {1343563597: ('0.0',), 1343563571: ('0.0',), 1343563561: ('0.0',), 1343563492: ('0.0',), 1343563487: ('0.0',), 1343563484: ('0.0',), 1343563479: ('0.0',), 1343563454: ('0.0',), 1343563452: ('0.0',), 1343563433: ('0.0',), 1343563432: ('0.0',), 1343563416: ('0.0',), 1343563415: ('0.0',)} args : 1343563479 depend.output_id : 0 input_args_next_step : {1343563597: ('0.0',), 1343563571: ('0.0',), 1343563561: ('0.0',), 1343563492: ('0.0',), 1343563487: ('0.0',), 1343563484: ('0.0',), 1343563479: ('0.0',), 1343563454: ()} output_args : {1343563597: ('0.0',), 1343563571: ('0.0',), 1343563561: ('0.0',), 1343563492: ('0.0',), 1343563487: ('0.0',), 1343563484: ('0.0',), 1343563479: ('0.0',), 1343563454: ('0.0',), 1343563452: ('0.0',), 1343563433: ('0.0',), 1343563432: ('0.0',), 1343563416: ('0.0',), 1343563415: ('0.0',)} args : 1343563454 depend.output_id : 0 input_args_next_step : {1343563597: ('0.0',), 1343563571: ('0.0',), 1343563561: ('0.0',), 1343563492: ('0.0',), 1343563487: ('0.0',), 1343563484: ('0.0',), 1343563479: ('0.0',), 1343563454: ('0.0',), 1343563452: ()} output_args : {1343563597: ('0.0',), 1343563571: ('0.0',), 1343563561: ('0.0',), 1343563492: ('0.0',), 1343563487: ('0.0',), 1343563484: ('0.0',), 1343563479: ('0.0',), 1343563454: ('0.0',), 1343563452: ('0.0',), 1343563433: ('0.0',), 1343563432: ('0.0',), 1343563416: ('0.0',), 1343563415: ('0.0',)} args : 1343563452 depend.output_id : 0 input_args_next_step : {1343563597: ('0.0',), 1343563571: ('0.0',), 1343563561: ('0.0',), 1343563492: ('0.0',), 1343563487: ('0.0',), 1343563484: ('0.0',), 1343563479: ('0.0',), 1343563454: ('0.0',), 1343563452: ('0.0',), 1343563433: ()} output_args : {1343563597: ('0.0',), 1343563571: ('0.0',), 1343563561: ('0.0',), 1343563492: ('0.0',), 1343563487: ('0.0',), 1343563484: ('0.0',), 1343563479: ('0.0',), 1343563454: ('0.0',), 1343563452: ('0.0',), 1343563433: ('0.0',), 1343563432: ('0.0',), 1343563416: ('0.0',), 1343563415: ('0.0',)} args : 1343563433 depend.output_id : 0 input_args_next_step : {1343563597: ('0.0',), 1343563571: ('0.0',), 1343563561: ('0.0',), 1343563492: ('0.0',), 1343563487: ('0.0',), 1343563484: ('0.0',), 1343563479: ('0.0',), 1343563454: ('0.0',), 1343563452: ('0.0',), 1343563433: ('0.0',), 1343563432: ()} output_args : {1343563597: ('0.0',), 1343563571: ('0.0',), 1343563561: ('0.0',), 1343563492: ('0.0',), 1343563487: ('0.0',), 1343563484: ('0.0',), 1343563479: ('0.0',), 1343563454: ('0.0',), 1343563452: ('0.0',), 1343563433: ('0.0',), 1343563432: ('0.0',), 1343563416: ('0.0',), 1343563415: ('0.0',)} args : 1343563432 depend.output_id : 0 input_args_next_step : {1343563597: ('0.0',), 1343563571: ('0.0',), 1343563561: ('0.0',), 1343563492: ('0.0',), 1343563487: ('0.0',), 1343563484: ('0.0',), 1343563479: ('0.0',), 1343563454: ('0.0',), 1343563452: ('0.0',), 1343563433: ('0.0',), 1343563432: ('0.0',), 1343563416: ()} output_args : {1343563597: ('0.0',), 1343563571: ('0.0',), 1343563561: ('0.0',), 1343563492: ('0.0',), 1343563487: ('0.0',), 1343563484: ('0.0',), 1343563479: ('0.0',), 1343563454: ('0.0',), 1343563452: ('0.0',), 1343563433: ('0.0',), 1343563432: ('0.0',), 1343563416: ('0.0',), 1343563415: ('0.0',)} args : 1343563416 depend.output_id : 0 input_args_next_step : {1343563597: ('0.0',), 1343563571: ('0.0',), 1343563561: ('0.0',), 1343563492: ('0.0',), 1343563487: ('0.0',), 1343563484: ('0.0',), 1343563479: ('0.0',), 1343563454: ('0.0',), 1343563452: ('0.0',), 1343563433: ('0.0',), 1343563432: ('0.0',), 1343563416: ('0.0',), 1343563415: ()} output_args : {1343563597: ('0.0',), 1343563571: ('0.0',), 1343563561: ('0.0',), 1343563492: ('0.0',), 1343563487: ('0.0',), 1343563484: ('0.0',), 1343563479: ('0.0',), 1343563454: ('0.0',), 1343563452: ('0.0',), 1343563433: ('0.0',), 1343563432: ('0.0',), 1343563416: ('0.0',), 1343563415: ('0.0',)} args : 1343563415 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 : {21365113: [{'mal_croppe': 21365114, 'flou': 21365115, 'Teint_Dans_La_Masse': 21365116, 'Carton_gris': 21365117, 'metal': 21365118, 'papier': 21365119, 'environnement': 21365120, 'autre_refus': 21365121, 'plastique': 21365122, 'cartonnette': 21365123, 'Carton_brun': 21365124, 'kraft': 21365125}]} input_args_next_step : {1343563597: ('0.0',), 1343563571: ('0.0',), 1343563561: ('0.0',), 1343563492: ('0.0',), 1343563487: ('0.0',), 1343563484: ('0.0',), 1343563479: ('0.0',), 1343563454: ('0.0',), 1343563452: ('0.0',), 1343563433: ('0.0',), 1343563432: ('0.0',), 1343563416: ('0.0',), 1343563415: ('0.0',), 21365113: ()} output_args : {21365113: [{'mal_croppe': 21365114, 'flou': 21365115, 'Teint_Dans_La_Masse': 21365116, 'Carton_gris': 21365117, 'metal': 21365118, 'papier': 21365119, 'environnement': 21365120, 'autre_refus': 21365121, 'plastique': 21365122, 'cartonnette': 21365123, 'Carton_brun': 21365124, 'kraft': 21365125}]} args : 21365113 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 :14, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21365113) 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 (1343563597,1343563571,1343563561,1343563492,1343563487,1343563484,1343563479,1343563454,1343563452,1343563433,1343563432,1343563416,1343563415) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1343563415 begin to download photo : 1343563433 begin to download photo : 1343563479 begin to download photo : 1343563492 begin to download photo : 1343563597 HTTP Error 404: Not Found can't download the photo : 1343563492 complete_path : /home/admin/workarea/git/Velours/python/temp/1743419100_3290293_1343563492_f7d52cd4624abbf5be37f1381810c24e.jpg download finish for photo 1343563492 begin to download photo : 1343563561 HTTP Error 404: Not Found can't download the photo : 1343563597 complete_path : /home/admin/workarea/git/Velours/python/temp/1743419100_3290293_1343563597_f7397322661a115c4e5201b8aa647c34.jpg download finish for photo 1343563597 HTTP Error 404: Not Found can't download the photo : 1343563433 complete_path : /home/admin/workarea/git/Velours/python/temp/1743419100_3290293_1343563433_5aabb7226128b5bbe879aab24e81a84b.jpg download finish for photo 1343563433 begin to download photo : 1343563452 HTTP Error 404: Not Found can't download the photo : 1343563415 complete_path : /home/admin/workarea/git/Velours/python/temp/1743419100_3290293_1343563415_dcb860b35b70433db6be981fb7b6a3fd.jpg download finish for photo 1343563415 begin to download photo : 1343563416 HTTP Error 404: Not Found can't download the photo : 1343563479 complete_path : /home/admin/workarea/git/Velours/python/temp/1743419100_3290293_1343563479_5be663fd67bffe47d925e0e571422207.jpg download finish for photo 1343563479 begin to download photo : 1343563484 HTTP Error 404: Not Found can't download the photo : 1343563561 complete_path : /home/admin/workarea/git/Velours/python/temp/1743419100_3290293_1343563561_3702b63cf8043b073323e81bdc36a8ca.jpg download finish for photo 1343563561 begin to download photo : 1343563571 HTTP Error 404: Not Found can't download the photo : 1343563452 complete_path : /home/admin/workarea/git/Velours/python/temp/1743419100_3290293_1343563452_fa40ebc92d79d8fb6081f1c9cb2b27f6.jpg download finish for photo 1343563452 begin to download photo : 1343563454 HTTP Error 404: Not Found can't download the photo : 1343563416 complete_path : /home/admin/workarea/git/Velours/python/temp/1743419100_3290293_1343563416_bf4d7824812915daf2faaf86b2478104.jpg download finish for photo 1343563416 begin to download photo : 1343563432 HTTP Error 404: Not Found can't download the photo : 1343563484 complete_path : /home/admin/workarea/git/Velours/python/temp/1743419100_3290293_1343563484_42742d41d0349efbe83593d3705adf90.jpg download finish for photo 1343563484 begin to download photo : 1343563487 HTTP Error 404: Not Found can't download the photo : 1343563454 complete_path : /home/admin/workarea/git/Velours/python/temp/1743419100_3290293_1343563454_46f2c234ccdf61d9e100a82a96e033cb.jpg download finish for photo 1343563454 HTTP Error 404: Not Found can't download the photo : 1343563571 complete_path : /home/admin/workarea/git/Velours/python/temp/1743419100_3290293_1343563571_dd46db42d1aa234f1fa97d1d4c2af124.jpg download finish for photo 1343563571 HTTP Error 404: Not Found can't download the photo : 1343563487 complete_path : /home/admin/workarea/git/Velours/python/temp/1743419100_3290293_1343563487_8a23cdf281d26473212c915da87e0054.jpg download finish for photo 1343563487 HTTP Error 404: Not Found can't download the photo : 1343563432 complete_path : /home/admin/workarea/git/Velours/python/temp/1743419100_3290293_1343563432_e09732d2c5a05410f652093416cac074.jpg download finish for photo 1343563432 we have missing 13 photos in the step downloads : photo missing : [1343563597, 1343563433, 1343563452, 1343563454, 1343563492, 1343563561, 1343563571, 1343563479, 1343563484, 1343563487, 1343563415, 1343563416, 1343563432] try to delete the photos missing in DB Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1343563597 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1343563433 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1343563452 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1343563454 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1343563492 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1343563561 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1343563571 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1343563479 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1343563484 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1343563487 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1343563415 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1343563416 Url missing : :https://www.fotonower.com/api/v1/photo/onerrorloadautomation/1343563432 ##### After download_photos length of list_filenames : 0 ; length of list_pids : 0 ; length of list_args : 0 ERROR in datou_step_exec, will save and exit ! 1343563597 File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 2329, in datou_exec output = datou_step_exec(sNext, args, cache, context, map_info, verbose, mtr_user_id) File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 2646, in datou_step_exec return send_or_copy.datou_step_exec_send_mail_cod(param, json_param, args, context, map_info, verbose) File "/home/admin/workarea/git/Velours/python/mtr/datou/lib_step_exec/lib_step_send_or_copy.py", line 757, in datou_step_exec_send_mail_cod list_photo_path.append(os.path.join(work_area, map_info["map_photo_id_path_extension"][photo_id]["path"])) [1343563597, 1343563571, 1343563561, 1343563492, 1343563487, 1343563484, 1343563479, 1343563454, 1343563452, 1343563433, 1343563432, 1343563416, 1343563415] map_info['map_portfolio_photo'] : {21365113: [1343563597, 1343563571, 1343563561, 1343563492, 1343563487, 1343563484, 1343563479, 1343563454, 1343563452, 1343563433, 1343563432, 1343563416, 1343563415]} final : True mtd_id 4302 list_pids : [1343563597, 1343563571, 1343563561, 1343563492, 1343563487, 1343563484, 1343563479, 1343563454, 1343563452, 1343563433, 1343563432, 1343563416, 1343563415] begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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', '21365113', '1343563597', "[>, , , , '1343563597']", '-1', '-1.0', '501120777', '1.0', '2708867'), ('4302', '21365113', '1343563571', "[>, , , , '1343563597']", '-1', '-1.0', '501120777', '1.0', '2708867'), ('4302', '21365113', '1343563561', "[>, , , , '1343563597']", '-1', '-1.0', '501120777', '1.0', '2708867'), ('4302', '21365113', '1343563492', "[>, , , , '1343563597']", '-1', '-1.0', '501120777', '1.0', '2708867'), ('4302', '21365113', '1343563487', "[>, , , , '1343563597']", '-1', '-1.0', '501120777', '1.0', '2708867'), ('4302', '21365113', '1343563484', "[>, , , , '1343563597']", '-1', '-1.0', '501120777', '1.0', '2708867'), ('4302', '21365113', '1343563479', "[>, , , , '1343563597']", '-1', '-1.0', '501120777', '1.0', '2708867'), ('4302', '21365113', '1343563454', "[>, , , , '1343563597']", '-1', '-1.0', '501120777', '1.0', '2708867'), ('4302', '21365113', '1343563452', "[>, , , , '1343563597']", '-1', '-1.0', '501120777', '1.0', '2708867'), ('4302', '21365113', '1343563433', "[>, , , , '1343563597']", '-1', '-1.0', '501120777', '1.0', '2708867'), ('4302', '21365113', '1343563432', "[>, , , , '1343563597']", '-1', '-1.0', '501120777', '1.0', '2708867'), ('4302', '21365113', '1343563416', "[>, , , , '1343563597']", '-1', '-1.0', '501120777', '1.0', '2708867'), ('4302', '21365113', '1343563415', "[>, , , , '1343563597']", '-1', '-1.0', '501120777', '1.0', '2708867')] time used for this insertion : 0.01498103141784668 save_final ERROR in last step send_mail_cod, 1343563597 time spend for datou_step_exec : 4.251284122467041 time spend to save output : 0.01658177375793457 total time spend for step 3 : 4.267865896224976 UPDATE MTRPhoto.mtr_datou_current SET state=0, hostname='marlene' WHERE id in (2708867) 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 (2708867) 1.85user 2.06system 0:10.09elapsed 38%CPU (0avgtext+0avgdata 144088maxresident)k 232inputs+192outputs (14major+56518minor)pagefaults 0swaps