SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22168535) result : ((1350931268,), (1350931299,), (1350931329,), (1350931360,), (1350933846,), (1350933849,), (1350933852,), (1350933984,), (1350934011,), (1350934038,), (1350934064,), (1350934374,), (1350934376,), (1350934394,), (1350934411,), (1350934415,), (1350934420,)) 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 22168544 , 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=22168535 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 (22168544) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22168535) result : ((1350931268,), (1350931299,), (1350931329,), (1350931360,), (1350933846,), (1350933849,), (1350933852,), (1350933984,), (1350934011,), (1350934038,), (1350934064,), (1350934374,), (1350934376,), (1350934394,), (1350934411,), (1350934415,), (1350934420,)) 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 22168545 , 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=22168535 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 (22168545) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22168535) result : ((1350931268,), (1350931299,), (1350931329,), (1350931360,), (1350933846,), (1350933849,), (1350933852,), (1350933984,), (1350934011,), (1350934038,), (1350934064,), (1350934374,), (1350934376,), (1350934394,), (1350934411,), (1350934415,), (1350934420,)) 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 22168546 , 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=22168535 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 (22168546) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22168535) result : ((1350931268,), (1350931299,), (1350931329,), (1350931360,), (1350933846,), (1350933849,), (1350933852,), (1350933984,), (1350934011,), (1350934038,), (1350934064,), (1350934374,), (1350934376,), (1350934394,), (1350934411,), (1350934415,), (1350934420,)) 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 22168547 , 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=22168535 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 (22168547) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22168535) result : ((1350931268,), (1350931299,), (1350931329,), (1350931360,), (1350933846,), (1350933849,), (1350933852,), (1350933984,), (1350934011,), (1350934038,), (1350934064,), (1350934374,), (1350934376,), (1350934394,), (1350934411,), (1350934415,), (1350934420,)) 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`=22168535 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','mal_croppe','plastique','cartonnette','Carton_brun','autre_refus','Teint_Dans_La_Masse','metal','papier','environnement','flou')) 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`=22168535 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','mal_croppe','plastique','cartonnette','Carton_brun','autre_refus','Teint_Dans_La_Masse','metal','papier','environnement','flou')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18042025_03_00_14_10209_4417_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18042025_03_00_14_10209_4417_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18042025_03_00_14_10209_4417_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18042025_03_00_14_10209_4417_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18042025_03_00_14_10209_4417_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18042025_03_00_14_10209_4417_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18042025_03_00_14_10209_4417_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18042025_03_00_14_10209_4417_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18042025_03_00_14_10209_4417_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18042025_03_00_14_10209_4417_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18042025_03_00_14_10209_4417_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18042025_03_00_14_10209_4417_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[22168535, 22168548, 4417, 0.5, 2107753020, 979], [22168535, 22168549, 4417, 0.5, 493202403, 979], [22168535, 22168550, 4417, 0.5, 2107755527, 979], [22168535, 22168551, 4417, 0.5, 492725882, 979], [22168535, 22168552, 4417, 0.5, 702398920, 979], [22168535, 22168553, 4417, 0.5, 2107753024, 979], [22168535, 22168554, 4417, 0.5, 2107752406, 979], [22168535, 22168555, 4417, 0.5, 2107752385, 979], [22168535, 22168556, 4417, 0.5, 492628673, 979], [22168535, 22168557, 4417, 0.5, 492668766, 979], [22168535, 22168558, 4417, 0.5, 493012381, 979], [22168535, 22168559, 4417, 0.5, 492777938, 979]] 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`=22168535 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','mal_croppe','plastique','cartonnette','Carton_brun','autre_refus','Teint_Dans_La_Masse','metal','papier','environnement','flou')) 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`=22168535 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','mal_croppe','plastique','cartonnette','Carton_brun','autre_refus','Teint_Dans_La_Masse','metal','papier','environnement','flou')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_gris': {'main_port_id': 22168535, 'sub_port_id': 22168548, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14646809, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 8, 59)}, 'kraft': {'main_port_id': 22168535, 'sub_port_id': 22168549, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14646810, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 8, 59)}, 'mal_croppe': {'main_port_id': 22168535, 'sub_port_id': 22168550, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14646811, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 8, 59)}, 'plastique': {'main_port_id': 22168535, 'sub_port_id': 22168551, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14646812, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 8, 59)}, 'cartonnette': {'main_port_id': 22168535, 'sub_port_id': 22168552, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14646813, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 8, 59)}, 'Carton_brun': {'main_port_id': 22168535, 'sub_port_id': 22168553, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14646814, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 8, 59)}, 'autre_refus': {'main_port_id': 22168535, 'sub_port_id': 22168554, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14646815, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 8, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22168535, 'sub_port_id': 22168555, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14646816, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 8, 59)}, 'metal': {'main_port_id': 22168535, 'sub_port_id': 22168556, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14646817, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 8, 59)}, 'papier': {'main_port_id': 22168535, 'sub_port_id': 22168557, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14646818, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 8, 59)}, 'environnement': {'main_port_id': 22168535, 'sub_port_id': 22168558, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14646819, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 8, 59)}, 'flou': {'main_port_id': 22168535, 'sub_port_id': 22168559, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14646820, 'last_updated_at': datetime.datetime(2025, 4, 18, 3, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 3, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 3, 8, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168548,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168536 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168549,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168537 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168550,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168538 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168551,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168539 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168552,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168540 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168553,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168541 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168554,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168542 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168555,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168543 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168556,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168544 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168557,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168545 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168558,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168546 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168559,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168547 lien utilise dans velours : https://www.fotonower.com/velours/22168548,22168549,22168550,22168551,22168552,22168553,22168554,22168555,22168556,22168557,22168558,22168559?tags=Carton_gris,kraft,mal_croppe,plastique,cartonnette,Carton_brun,autre_refus,Teint_Dans_La_Masse,metal,papier,environnement,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22168535]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350934420, 1350934415, 1350934411, 1350934394, 1350934376, 1350934374, 1350934064, 1350934038, 1350934011, 1350933984, 1350933852, 1350933849, 1350933846, 1350931360, 1350931329, 1350931299, 1350931268] map_info['map_portfolio_photo'] : {22168535: [1350934420, 1350934415, 1350934411, 1350934394, 1350934376, 1350934374, 1350934064, 1350934038, 1350934011, 1350933984, 1350933852, 1350933849, 1350933846, 1350931360, 1350931329, 1350931299, 1350931268]} final : False mtd_id 4302 list_pids : [1350934420, 1350934415, 1350934411, 1350934394, 1350934376, 1350934374, 1350934064, 1350934038, 1350934011, 1350933984, 1350933852, 1350933849, 1350933846, 1350931360, 1350931329, 1350931299, 1350931268] Looping around the photos to save general results len do output : 1 /22168535. 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, '2733800') ('4302', '22168535', '1350934420', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934415', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934411', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934394', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934376', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934374', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934064', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934038', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934011', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350933984', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350933852', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350933849', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350933846', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350931360', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350931329', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350931299', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350931268', None, None, None, None, None, '2733800') 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', None, '22168535', "{'Carton_gris': 22168536, 'kraft': 22168537, 'mal_croppe': 22168538, 'plastique': 22168539, 'cartonnette': 22168540, 'Carton_brun': 22168541, 'autre_refus': 22168542, 'Teint_Dans_La_Masse': 22168543, 'metal': 22168544, 'papier': 22168545, 'environnement': 22168546, 'flou': 22168547}", None, None, None, None, '2733800'), ('4302', '22168535', '1350934420', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350934415', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350934411', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350934394', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350934376', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350934374', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350934064', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350934038', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350934011', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350933984', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350933852', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350933849', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350933846', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350931360', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350931329', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350931299', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350931268', None, None, None, None, None, '2733800')] time used for this insertion : 0.01492166519165039 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.028646945953369 time spend to save output : 0.015267610549926758 total time spend for step 1 : 2.043914556503296 step2:final Fri Apr 18 03:09: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 (22168535) 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 22168535 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350931360,1350931329,1350931299,1350931268,1350933852,1350933849,1350933846,1350934064,1350934038,1350934011,1350933984,1350934420,1350934415,1350934411,1350934394,1350934376,1350934374); 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([22168535]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ('0.0538553273134663',), 1350933852: ('0.0538553273134663',), 1350933849: ('0.0538553273134663',), 1350933846: ('0.0538553273134663',), 1350931360: ('0.0538553273134663',), 1350931329: ('0.0538553273134663',), 1350931299: ('0.0538553273134663',), 1350931268: ('0.0538553273134663',)} new output for save of step final : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ('0.0538553273134663',), 1350933852: ('0.0538553273134663',), 1350933849: ('0.0538553273134663',), 1350933846: ('0.0538553273134663',), 1350931360: ('0.0538553273134663',), 1350931329: ('0.0538553273134663',), 1350931299: ('0.0538553273134663',), 1350931268: ('0.0538553273134663',)} [1350934420, 1350934415, 1350934411, 1350934394, 1350934376, 1350934374, 1350934064, 1350934038, 1350934011, 1350933984, 1350933852, 1350933849, 1350933846, 1350931360, 1350931329, 1350931299, 1350931268] map_info['map_portfolio_photo'] : {22168535: [1350934420, 1350934415, 1350934411, 1350934394, 1350934376, 1350934374, 1350934064, 1350934038, 1350934011, 1350933984, 1350933852, 1350933849, 1350933846, 1350931360, 1350931329, 1350931299, 1350931268]} final : False mtd_id 4302 list_pids : [1350934420, 1350934415, 1350934411, 1350934394, 1350934376, 1350934374, 1350934064, 1350934038, 1350934011, 1350933984, 1350933852, 1350933849, 1350933846, 1350931360, 1350931329, 1350931299, 1350931268] Looping around the photos to save general results len do output : 17 /1350934420.Didn't retrieve data . /1350934415.Didn't retrieve data . /1350934411.Didn't retrieve data . /1350934394.Didn't retrieve data . /1350934376.Didn't retrieve data . /1350934374.Didn't retrieve data . /1350934064.Didn't retrieve data . /1350934038.Didn't retrieve data . /1350934011.Didn't retrieve data . /1350933984.Didn't retrieve data . /1350933852.Didn't retrieve data . /1350933849.Didn't retrieve data . /1350933846.Didn't retrieve data . /1350931360.Didn't retrieve data . /1350931329.Didn't retrieve data . /1350931299.Didn't retrieve data . /1350931268.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, '2733800') ('4302', '22168535', '1350934420', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934415', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934411', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934394', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934376', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934374', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934064', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934038', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934011', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350933984', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350933852', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350933849', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350933846', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350931360', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350931329', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350931299', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350931268', None, None, None, None, None, '2733800') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 51 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', '22168535', '1350934420', '0.0538553273134663', None, None, None, None, '2733800'), ('4302', '22168535', '1350934415', '0.0538553273134663', None, None, None, None, '2733800'), ('4302', '22168535', '1350934411', '0.0538553273134663', None, None, None, None, '2733800'), ('4302', '22168535', '1350934394', '0.0538553273134663', None, None, None, None, '2733800'), ('4302', '22168535', '1350934376', '0.0538553273134663', None, None, None, None, '2733800'), ('4302', '22168535', '1350934374', '0.0538553273134663', None, None, None, None, '2733800'), ('4302', '22168535', '1350934064', '0.0538553273134663', None, None, None, None, '2733800'), ('4302', '22168535', '1350934038', '0.0538553273134663', None, None, None, None, '2733800'), ('4302', '22168535', '1350934011', '0.0538553273134663', None, None, None, None, '2733800'), ('4302', '22168535', '1350933984', '0.0538553273134663', None, None, None, None, '2733800'), ('4302', '22168535', '1350933852', '0.0538553273134663', None, None, None, None, '2733800'), ('4302', '22168535', '1350933849', '0.0538553273134663', None, None, None, None, '2733800'), ('4302', '22168535', '1350933846', '0.0538553273134663', None, None, None, None, '2733800'), ('4302', '22168535', '1350931360', '0.0538553273134663', None, None, None, None, '2733800'), ('4302', '22168535', '1350931329', '0.0538553273134663', None, None, None, None, '2733800'), ('4302', '22168535', '1350931299', '0.0538553273134663', None, None, None, None, '2733800'), ('4302', '22168535', '1350931268', '0.0538553273134663', None, None, None, None, '2733800')] time used for this insertion : 0.017122268676757812 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.026996612548828125 time spend to save output : 0.017862558364868164 total time spend for step 2 : 0.04485917091369629 step3:velours_tree Fri Apr 18 03:09: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 : {22168535: [{'Carton_gris': 22168536, 'kraft': 22168537, 'mal_croppe': 22168538, 'plastique': 22168539, 'cartonnette': 22168540, 'Carton_brun': 22168541, 'autre_refus': 22168542, 'Teint_Dans_La_Masse': 22168543, 'metal': 22168544, 'papier': 22168545, 'environnement': 22168546, 'flou': 22168547}]} input_args_next_step : {22168535: ()} output_args : {22168535: [{'Carton_gris': 22168536, 'kraft': 22168537, 'mal_croppe': 22168538, 'plastique': 22168539, 'cartonnette': 22168540, 'Carton_brun': 22168541, 'autre_refus': 22168542, 'Teint_Dans_La_Masse': 22168543, 'metal': 22168544, 'papier': 22168545, 'environnement': 22168546, 'flou': 22168547}]} args : 22168535 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 : ({'Carton_gris': 22168536, 'kraft': 22168537, 'mal_croppe': 22168538, 'plastique': 22168539, 'cartonnette': 22168540, 'Carton_brun': 22168541, 'autre_refus': 22168542, 'Teint_Dans_La_Masse': 22168543, 'metal': 22168544, 'papier': 22168545, 'environnement': 22168546, 'flou': 22168547},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22168535) 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([22168535]) 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.3366677761077881 time spend to save output : 6.651878356933594e-05 total time spend for step 3 : 0.3367342948913574 step4:send_mail_cod Fri Apr 18 03:09: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 : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ('0.0538553273134663',), 1350933852: ('0.0538553273134663',), 1350933849: ('0.0538553273134663',), 1350933846: ('0.0538553273134663',), 1350931360: ('0.0538553273134663',), 1350931329: ('0.0538553273134663',), 1350931299: ('0.0538553273134663',), 1350931268: ('0.0538553273134663',)} input_args_next_step : {1350934420: ()} output_args : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ('0.0538553273134663',), 1350933852: ('0.0538553273134663',), 1350933849: ('0.0538553273134663',), 1350933846: ('0.0538553273134663',), 1350931360: ('0.0538553273134663',), 1350931329: ('0.0538553273134663',), 1350931299: ('0.0538553273134663',), 1350931268: ('0.0538553273134663',)} args : 1350934420 depend.output_id : 0 input_args_next_step : {1350934420: ('0.0538553273134663',), 1350934415: ()} output_args : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ('0.0538553273134663',), 1350933852: ('0.0538553273134663',), 1350933849: ('0.0538553273134663',), 1350933846: ('0.0538553273134663',), 1350931360: ('0.0538553273134663',), 1350931329: ('0.0538553273134663',), 1350931299: ('0.0538553273134663',), 1350931268: ('0.0538553273134663',)} args : 1350934415 depend.output_id : 0 input_args_next_step : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ()} output_args : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ('0.0538553273134663',), 1350933852: ('0.0538553273134663',), 1350933849: ('0.0538553273134663',), 1350933846: ('0.0538553273134663',), 1350931360: ('0.0538553273134663',), 1350931329: ('0.0538553273134663',), 1350931299: ('0.0538553273134663',), 1350931268: ('0.0538553273134663',)} args : 1350934411 depend.output_id : 0 input_args_next_step : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ()} output_args : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ('0.0538553273134663',), 1350933852: ('0.0538553273134663',), 1350933849: ('0.0538553273134663',), 1350933846: ('0.0538553273134663',), 1350931360: ('0.0538553273134663',), 1350931329: ('0.0538553273134663',), 1350931299: ('0.0538553273134663',), 1350931268: ('0.0538553273134663',)} args : 1350934394 depend.output_id : 0 input_args_next_step : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ()} output_args : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ('0.0538553273134663',), 1350933852: ('0.0538553273134663',), 1350933849: ('0.0538553273134663',), 1350933846: ('0.0538553273134663',), 1350931360: ('0.0538553273134663',), 1350931329: ('0.0538553273134663',), 1350931299: ('0.0538553273134663',), 1350931268: ('0.0538553273134663',)} args : 1350934376 depend.output_id : 0 input_args_next_step : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ()} output_args : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ('0.0538553273134663',), 1350933852: ('0.0538553273134663',), 1350933849: ('0.0538553273134663',), 1350933846: ('0.0538553273134663',), 1350931360: ('0.0538553273134663',), 1350931329: ('0.0538553273134663',), 1350931299: ('0.0538553273134663',), 1350931268: ('0.0538553273134663',)} args : 1350934374 depend.output_id : 0 input_args_next_step : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ()} output_args : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ('0.0538553273134663',), 1350933852: ('0.0538553273134663',), 1350933849: ('0.0538553273134663',), 1350933846: ('0.0538553273134663',), 1350931360: ('0.0538553273134663',), 1350931329: ('0.0538553273134663',), 1350931299: ('0.0538553273134663',), 1350931268: ('0.0538553273134663',)} args : 1350934064 depend.output_id : 0 input_args_next_step : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ()} output_args : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ('0.0538553273134663',), 1350933852: ('0.0538553273134663',), 1350933849: ('0.0538553273134663',), 1350933846: ('0.0538553273134663',), 1350931360: ('0.0538553273134663',), 1350931329: ('0.0538553273134663',), 1350931299: ('0.0538553273134663',), 1350931268: ('0.0538553273134663',)} args : 1350934038 depend.output_id : 0 input_args_next_step : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ()} output_args : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ('0.0538553273134663',), 1350933852: ('0.0538553273134663',), 1350933849: ('0.0538553273134663',), 1350933846: ('0.0538553273134663',), 1350931360: ('0.0538553273134663',), 1350931329: ('0.0538553273134663',), 1350931299: ('0.0538553273134663',), 1350931268: ('0.0538553273134663',)} args : 1350934011 depend.output_id : 0 input_args_next_step : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ()} output_args : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ('0.0538553273134663',), 1350933852: ('0.0538553273134663',), 1350933849: ('0.0538553273134663',), 1350933846: ('0.0538553273134663',), 1350931360: ('0.0538553273134663',), 1350931329: ('0.0538553273134663',), 1350931299: ('0.0538553273134663',), 1350931268: ('0.0538553273134663',)} args : 1350933984 depend.output_id : 0 input_args_next_step : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ('0.0538553273134663',), 1350933852: ()} output_args : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ('0.0538553273134663',), 1350933852: ('0.0538553273134663',), 1350933849: ('0.0538553273134663',), 1350933846: ('0.0538553273134663',), 1350931360: ('0.0538553273134663',), 1350931329: ('0.0538553273134663',), 1350931299: ('0.0538553273134663',), 1350931268: ('0.0538553273134663',)} args : 1350933852 depend.output_id : 0 input_args_next_step : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ('0.0538553273134663',), 1350933852: ('0.0538553273134663',), 1350933849: ()} output_args : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ('0.0538553273134663',), 1350933852: ('0.0538553273134663',), 1350933849: ('0.0538553273134663',), 1350933846: ('0.0538553273134663',), 1350931360: ('0.0538553273134663',), 1350931329: ('0.0538553273134663',), 1350931299: ('0.0538553273134663',), 1350931268: ('0.0538553273134663',)} args : 1350933849 depend.output_id : 0 input_args_next_step : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ('0.0538553273134663',), 1350933852: ('0.0538553273134663',), 1350933849: ('0.0538553273134663',), 1350933846: ()} output_args : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ('0.0538553273134663',), 1350933852: ('0.0538553273134663',), 1350933849: ('0.0538553273134663',), 1350933846: ('0.0538553273134663',), 1350931360: ('0.0538553273134663',), 1350931329: ('0.0538553273134663',), 1350931299: ('0.0538553273134663',), 1350931268: ('0.0538553273134663',)} args : 1350933846 depend.output_id : 0 input_args_next_step : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ('0.0538553273134663',), 1350933852: ('0.0538553273134663',), 1350933849: ('0.0538553273134663',), 1350933846: ('0.0538553273134663',), 1350931360: ()} output_args : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ('0.0538553273134663',), 1350933852: ('0.0538553273134663',), 1350933849: ('0.0538553273134663',), 1350933846: ('0.0538553273134663',), 1350931360: ('0.0538553273134663',), 1350931329: ('0.0538553273134663',), 1350931299: ('0.0538553273134663',), 1350931268: ('0.0538553273134663',)} args : 1350931360 depend.output_id : 0 input_args_next_step : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ('0.0538553273134663',), 1350933852: ('0.0538553273134663',), 1350933849: ('0.0538553273134663',), 1350933846: ('0.0538553273134663',), 1350931360: ('0.0538553273134663',), 1350931329: ()} output_args : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ('0.0538553273134663',), 1350933852: ('0.0538553273134663',), 1350933849: ('0.0538553273134663',), 1350933846: ('0.0538553273134663',), 1350931360: ('0.0538553273134663',), 1350931329: ('0.0538553273134663',), 1350931299: ('0.0538553273134663',), 1350931268: ('0.0538553273134663',)} args : 1350931329 depend.output_id : 0 input_args_next_step : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ('0.0538553273134663',), 1350933852: ('0.0538553273134663',), 1350933849: ('0.0538553273134663',), 1350933846: ('0.0538553273134663',), 1350931360: ('0.0538553273134663',), 1350931329: ('0.0538553273134663',), 1350931299: ()} output_args : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ('0.0538553273134663',), 1350933852: ('0.0538553273134663',), 1350933849: ('0.0538553273134663',), 1350933846: ('0.0538553273134663',), 1350931360: ('0.0538553273134663',), 1350931329: ('0.0538553273134663',), 1350931299: ('0.0538553273134663',), 1350931268: ('0.0538553273134663',)} args : 1350931299 depend.output_id : 0 input_args_next_step : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ('0.0538553273134663',), 1350933852: ('0.0538553273134663',), 1350933849: ('0.0538553273134663',), 1350933846: ('0.0538553273134663',), 1350931360: ('0.0538553273134663',), 1350931329: ('0.0538553273134663',), 1350931299: ('0.0538553273134663',), 1350931268: ()} output_args : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ('0.0538553273134663',), 1350933852: ('0.0538553273134663',), 1350933849: ('0.0538553273134663',), 1350933846: ('0.0538553273134663',), 1350931360: ('0.0538553273134663',), 1350931329: ('0.0538553273134663',), 1350931299: ('0.0538553273134663',), 1350931268: ('0.0538553273134663',)} args : 1350931268 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 : {22168535: [{'Carton_gris': 22168536, 'kraft': 22168537, 'mal_croppe': 22168538, 'plastique': 22168539, 'cartonnette': 22168540, 'Carton_brun': 22168541, 'autre_refus': 22168542, 'Teint_Dans_La_Masse': 22168543, 'metal': 22168544, 'papier': 22168545, 'environnement': 22168546, 'flou': 22168547}]} input_args_next_step : {1350934420: ('0.0538553273134663',), 1350934415: ('0.0538553273134663',), 1350934411: ('0.0538553273134663',), 1350934394: ('0.0538553273134663',), 1350934376: ('0.0538553273134663',), 1350934374: ('0.0538553273134663',), 1350934064: ('0.0538553273134663',), 1350934038: ('0.0538553273134663',), 1350934011: ('0.0538553273134663',), 1350933984: ('0.0538553273134663',), 1350933852: ('0.0538553273134663',), 1350933849: ('0.0538553273134663',), 1350933846: ('0.0538553273134663',), 1350931360: ('0.0538553273134663',), 1350931329: ('0.0538553273134663',), 1350931299: ('0.0538553273134663',), 1350931268: ('0.0538553273134663',), 22168535: ()} output_args : {22168535: [{'Carton_gris': 22168536, 'kraft': 22168537, 'mal_croppe': 22168538, 'plastique': 22168539, 'cartonnette': 22168540, 'Carton_brun': 22168541, 'autre_refus': 22168542, 'Teint_Dans_La_Masse': 22168543, 'metal': 22168544, 'papier': 22168545, 'environnement': 22168546, 'flou': 22168547}]} args : 22168535 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 :18, first value : ('0.0538553273134663',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22168535) 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 (1350934420,1350934415,1350934411,1350934394,1350934376,1350934374,1350934064,1350934038,1350934011,1350933984,1350933852,1350933849,1350933846,1350931360,1350931329,1350931299,1350931268) Found this number of photos: 17 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350931268 begin to download photo : 1350933846 begin to download photo : 1350934011 begin to download photo : 1350934376 begin to download photo : 1350934420 download finish for photo 1350934376 begin to download photo : 1350934394 download finish for photo 1350934420 download finish for photo 1350931268 begin to download photo : 1350931299 download finish for photo 1350934011 begin to download photo : 1350934038 download finish for photo 1350933846 begin to download photo : 1350933849 download finish for photo 1350934394 begin to download photo : 1350934411 download finish for photo 1350934038 begin to download photo : 1350934064 download finish for photo 1350931299 begin to download photo : 1350931329 download finish for photo 1350934064 begin to download photo : 1350934374 download finish for photo 1350934411 begin to download photo : 1350934415 download finish for photo 1350933849 begin to download photo : 1350933852 download finish for photo 1350931329 begin to download photo : 1350931360 download finish for photo 1350934374 download finish for photo 1350933852 begin to download photo : 1350933984 download finish for photo 1350931360 download finish for photo 1350934415 download finish for photo 1350933984 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette221685371744938540/ imagette221685381744938540/ length of list_filenames : 17 ; length of list_pids : 17 ; length of list_args : 17 results_Auto_P22168535_18-04-2025_03_09_00.pdf 22168537 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=22168537 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221685371744938540 22168538 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=22168538 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221685381744938540 22168539 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=22168539 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350932757: '1744938192_3605029_1350931329_b1a5673968b42906a0297123ada950e3_rle_crop_3753181629_0.png', 1350932758: '1744938192_3605029_1350931268_e84fb136d80859f36273e2b2f544d7fd_rle_crop_3753181664_0.png', 1350934183: '1744938433_3606952_1350933852_e3f712a9ee47d3e5a0196eee2b480b77_rle_crop_3753182097_0.png', 1350934362: '1744938462_1795298_1350933849_49dbfba40701862210113e7d286f49bf_rle_crop_3753182162_0.png', 1350934363: '1744938462_1795298_1350933846_ed24d94275a4a9ae5575ef259b215189_rle_crop_3753182184_0.png', 1350934364: '1744938462_1795298_1350933846_ed24d94275a4a9ae5575ef259b215189_rle_crop_3753182178_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/949552075672ca98d1e020f8e9a7391e_26371943.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/3829df0267cdbb37c49c3a1bd15b63c4_30048203.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/464ba81e0fe5dec26cfc3f2197948ce4_75419947.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/ce39db56000c7924209d1c912bb6d323_37236698.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/61e372961b9df4560f4e9cfed5d6a252_43684679.png change filename to text .imagette221685391744938540/ imagette221685391744938540/1744938462_1795298_1350933849_49dbfba40701862210113e7d286f49bf_rle_crop_3753182162_0.png.png imagette221685391744938540/1744938462_1795298_1350933846_ed24d94275a4a9ae5575ef259b215189_rle_crop_3753182184_0.png.png imagette221685391744938540/1744938462_1795298_1350933846_ed24d94275a4a9ae5575ef259b215189_rle_crop_3753182178_0.png.png imagette221685391744938540/1744938192_3605029_1350931329_b1a5673968b42906a0297123ada950e3_rle_crop_3753181629_0.png.png imagette221685391744938540/1744938192_3605029_1350931268_e84fb136d80859f36273e2b2f544d7fd_rle_crop_3753181664_0.png.png imagette221685391744938540/1744938433_3606952_1350933852_e3f712a9ee47d3e5a0196eee2b480b77_rle_crop_3753182097_0.png.png imagette221685401744938541/ imagette221685421744938541/ imagette221685441744938541/ imagette221685471744938541/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/e7fb839c783809792e0ad0d10afb9bbf_71442025.png imagette221685391744938540 22168540 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=22168540 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221685401744938541 22168542 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=22168542 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221685421744938541 22168544 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=22168544 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221685441744938541 22168547 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=22168547 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221685471744938541 22168536 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=22168536 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350932732: '1744938192_3605029_1350931268_e84fb136d80859f36273e2b2f544d7fd_rle_crop_3753181659_0.png', 1350934178: '1744938433_3606952_1350933852_e3f712a9ee47d3e5a0196eee2b480b77_rle_crop_3753182093_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/3c2400d3f8bd6de81e1ae3cadfaa39ef_61572911.png change filename to text .imagette221685361744938541/ imagette221685361744938541/1744938192_3605029_1350931268_e84fb136d80859f36273e2b2f544d7fd_rle_crop_3753181659_0.png.png imagette221685361744938541/1744938433_3606952_1350933852_e3f712a9ee47d3e5a0196eee2b480b77_rle_crop_3753182093_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/227a614c81c83508e336b1e8dd04cefd_2222207.png imagette221685361744938541 22168541 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=22168541 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350932744: '1744938192_3605029_1350931360_42cefbe6cbfcb9b4027e130494fe6d6d_rle_crop_3753181606_0.png', 1350932745: '1744938192_3605029_1350931329_b1a5673968b42906a0297123ada950e3_rle_crop_3753181632_0.png', 1350932746: '1744938192_3605029_1350931329_b1a5673968b42906a0297123ada950e3_rle_crop_3753181623_0.png', 1350932748: '1744938192_3605029_1350931299_a54ac2da76a5ffda68957c107a02dc17_rle_crop_3753181651_0.png', 1350932749: '1744938192_3605029_1350931268_e84fb136d80859f36273e2b2f544d7fd_rle_crop_3753181660_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/380478f8a5bca032975b1abba03fb474_82498243.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/5cd11a506dff49f3a457b9f39ee04fa7_46500585.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/978609a48f0e746ad036472f18888931_53853016.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/e86a6e6d7fa33e3d369e411ab87d4b40_9136416.png change filename to text .imagette221685411744938541/ imagette221685411744938541/1744938192_3605029_1350931329_b1a5673968b42906a0297123ada950e3_rle_crop_3753181632_0.png.png imagette221685411744938541/1744938192_3605029_1350931360_42cefbe6cbfcb9b4027e130494fe6d6d_rle_crop_3753181606_0.png.png imagette221685411744938541/1744938192_3605029_1350931268_e84fb136d80859f36273e2b2f544d7fd_rle_crop_3753181660_0.png.png imagette221685411744938541/1744938192_3605029_1350931329_b1a5673968b42906a0297123ada950e3_rle_crop_3753181623_0.png.png imagette221685411744938541/1744938192_3605029_1350931299_a54ac2da76a5ffda68957c107a02dc17_rle_crop_3753181651_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/6b4247d83d0207812286b6d6e88e60ae_61987777.png imagette221685411744938541 22168543 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=22168543 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350932725: '1744938192_3605029_1350931329_b1a5673968b42906a0297123ada950e3_rle_crop_3753181618_0.png'} change filename to text .imagette221685431744938541/ imagette221685431744938541/1744938192_3605029_1350931329_b1a5673968b42906a0297123ada950e3_rle_crop_3753181618_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/70496f307e4b8865d5d006dff3b42b1c_75786707.png imagette221685431744938541 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22168535 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22168548,22168549,22168550,22168551,22168552,22168553,22168554,22168555,22168556,22168557,22168558,22168559?tags=Carton_gris,kraft,mal_croppe,plastique,cartonnette,Carton_brun,autre_refus,Teint_Dans_La_Masse,metal,papier,environnement,flou your option no_mail is active, we will not send the real mail to your client args[1350934420] : ('0.0538553273134663',) no score found for photo 1350934420 We are sending mail with results at report@fotonower.com args[1350934415] : ('0.0538553273134663',) no score found for photo 1350934415 We are sending mail with results at report@fotonower.com args[1350934411] : ('0.0538553273134663',) no score found for photo 1350934411 We are sending mail with results at report@fotonower.com args[1350934394] : ('0.0538553273134663',) no score found for photo 1350934394 We are sending mail with results at report@fotonower.com args[1350934376] : ('0.0538553273134663',) no score found for photo 1350934376 We are sending mail with results at report@fotonower.com args[1350934374] : ('0.0538553273134663',) no score found for photo 1350934374 We are sending mail with results at report@fotonower.com args[1350934064] : ('0.0538553273134663',) no score found for photo 1350934064 We are sending mail with results at report@fotonower.com args[1350934038] : ('0.0538553273134663',) no score found for photo 1350934038 We are sending mail with results at report@fotonower.com args[1350934011] : ('0.0538553273134663',) no score found for photo 1350934011 We are sending mail with results at report@fotonower.com args[1350933984] : ('0.0538553273134663',) no score found for photo 1350933984 We are sending mail with results at report@fotonower.com args[1350933852] : ('0.0538553273134663',) no score found for photo 1350933852 We are sending mail with results at report@fotonower.com args[1350933849] : ('0.0538553273134663',) no score found for photo 1350933849 We are sending mail with results at report@fotonower.com args[1350933846] : ('0.0538553273134663',) no score found for photo 1350933846 We are sending mail with results at report@fotonower.com args[1350931360] : ('0.0538553273134663',) no score found for photo 1350931360 We are sending mail with results at report@fotonower.com args[1350931329] : ('0.0538553273134663',) no score found for photo 1350931329 We are sending mail with results at report@fotonower.com args[1350931299] : ('0.0538553273134663',) no score found for photo 1350931299 We are sending mail with results at report@fotonower.com args[1350931268] : ('0.0538553273134663',) no score found for photo 1350931268 We are sending mail with results at report@fotonower.com refus_total : 0.0538553273134663 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=22168535 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_P22168535_18-04-2025_03_09_00.pdf results_Auto_P22168535_18-04-2025_03_09_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22168535_18-04-2025_03_09_00.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','22168535','results_Auto_P22168535_18-04-2025_03_09_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22168535_18-04-2025_03_09_00.pdf','pdf','','0.19','0.0538553273134663') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22168535]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350934420, 1350934415, 1350934411, 1350934394, 1350934376, 1350934374, 1350934064, 1350934038, 1350934011, 1350933984, 1350933852, 1350933849, 1350933846, 1350931360, 1350931329, 1350931299, 1350931268] map_info['map_portfolio_photo'] : {22168535: [1350934420, 1350934415, 1350934411, 1350934394, 1350934376, 1350934374, 1350934064, 1350934038, 1350934011, 1350933984, 1350933852, 1350933849, 1350933846, 1350931360, 1350931329, 1350931299, 1350931268]} final : False mtd_id 4302 list_pids : [1350934420, 1350934415, 1350934411, 1350934394, 1350934376, 1350934374, 1350934064, 1350934038, 1350934011, 1350933984, 1350933852, 1350933849, 1350933846, 1350931360, 1350931329, 1350931299, 1350931268] 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, '2733800') ('4302', '22168535', '1350934420', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934415', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934411', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934394', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934376', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934374', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934064', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934038', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934011', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350933984', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350933852', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350933849', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350933846', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350931360', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350931329', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350931299', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350931268', None, None, None, None, None, '2733800') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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', '22168535', '1350934420', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350934415', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350934411', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350934394', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350934376', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350934374', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350934064', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350934038', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350934011', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350933984', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350933852', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350933849', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350933846', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350931360', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350931329', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350931299', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350931268', None, None, None, None, None, '2733800')] time used for this insertion : 0.014762639999389648 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.5635859966278076 time spend to save output : 0.015045404434204102 total time spend for step 4 : 3.5786314010620117 step5:split_time_score Fri Apr 18 03:09:03 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 : ['22168535'] 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 : [('22168535',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22168535) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350934420: {'path': 'temp/1744938540_4179480_1350934420_baa20205b50f562f5896313d050c6e58.jpg', 'extension': 'jpg'}, 1350934011: {'path': 'temp/1744938540_4179480_1350934011_538797ee13328233d301a973a00b730d.jpg', 'extension': 'jpg'}, 1350934038: {'path': 'temp/1744938540_4179480_1350934038_e10d5c5a4b6bbcd36c5aa860ba6601e7.jpg', 'extension': 'jpg'}, 1350934064: {'path': 'temp/1744938540_4179480_1350934064_5e1fbd1933a3891abf550e4cfec10d08.jpg', 'extension': 'jpg'}, 1350934374: {'path': 'temp/1744938540_4179480_1350934374_cb356d9b466ab2f4d450593cab1542c4.jpg', 'extension': 'jpg'}, 1350931268: {'path': 'temp/1744938540_4179480_1350931268_e84fb136d80859f36273e2b2f544d7fd.jpg', 'extension': 'jpg'}, 1350931299: {'path': 'temp/1744938540_4179480_1350931299_a54ac2da76a5ffda68957c107a02dc17.jpg', 'extension': 'jpg'}, 1350931329: {'path': 'temp/1744938540_4179480_1350931329_b1a5673968b42906a0297123ada950e3.jpg', 'extension': 'jpg'}, 1350931360: {'path': 'temp/1744938540_4179480_1350931360_42cefbe6cbfcb9b4027e130494fe6d6d.jpg', 'extension': 'jpg'}, 1350934376: {'path': 'temp/1744938540_4179480_1350934376_06635fcc307b5bb66b27525255ff93cb.jpg', 'extension': 'jpg'}, 1350934394: {'path': 'temp/1744938540_4179480_1350934394_7f2416e5ddc22931a3d23f8473c07d73.jpg', 'extension': 'jpg'}, 1350934411: {'path': 'temp/1744938540_4179480_1350934411_8b7f7a93234ff75ef920a56ce05a1fcf.jpg', 'extension': 'jpg'}, 1350934415: {'path': 'temp/1744938540_4179480_1350934415_ab420f351fbd07c9d1ebcdd176961d18.jpg', 'extension': 'jpg'}, 1350933846: {'path': 'temp/1744938540_4179480_1350933846_ed24d94275a4a9ae5575ef259b215189.jpg', 'extension': 'jpg'}, 1350933849: {'path': 'temp/1744938540_4179480_1350933849_49dbfba40701862210113e7d286f49bf.jpg', 'extension': 'jpg'}, 1350933852: {'path': 'temp/1744938540_4179480_1350933852_e3f712a9ee47d3e5a0196eee2b480b77.jpg', 'extension': 'jpg'}, 1350933984: {'path': 'temp/1744938540_4179480_1350933984_fc3601645e067ba12fe194aace1fe03b.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 = 22168535; (('arc_en_ciel_jrm',),) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 22168535 group by h (('03', 17),) 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=22168535 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 (22168535) 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 (22168535) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18042025 22168535 Nombre de photos uploadées : 17 / 23040 (0%) 18042025 22168535 Nombre de photos taguées (types de déchets): 0 / 17 (0%) 18042025 22168535 Nombre de photos taguées (volume) : 0 / 17 (0%) [{'photo_id': 1350931360, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/42cefbe6cbfcb9b4027e130494fe6d6d.jpg', 'username': None, 'uploaded_at': 1744938072, 'text': 'image_18042025_03_00_14_010208m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350931329, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/b1a5673968b42906a0297123ada950e3.jpg', 'username': None, 'uploaded_at': 1744938072, 'text': 'image_18042025_03_00_24_010138m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350931299, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/a54ac2da76a5ffda68957c107a02dc17.jpg', 'username': None, 'uploaded_at': 1744938072, 'text': 'image_18042025_03_00_34_010145m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350931268, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/e84fb136d80859f36273e2b2f544d7fd.jpg', 'username': None, 'uploaded_at': 1744938072, 'text': 'image_18042025_03_00_44_010145m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0017843246459960938 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22168535, '2025-04-18' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1725253,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02494668960571289 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= 1725253 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1725253, 'dashboard_run_id': 1733038, 'mtr_portfolio_id': 22166799, 'dashboard_result_id': 9960812, '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_P22166799_18-04-2025_02_33_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22166801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22166802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22166803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22166804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22166805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22166806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22166807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22166808, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22166809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22166810, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22166811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22166812, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1733038, 'mtr_portfolio_id': 22167282, 'dashboard_result_id': 9960814, '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_P22167282_18-04-2025_02_46_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22167286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167288, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167290, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167294, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1733038, 'mtr_portfolio_id': 22167840, 'dashboard_result_id': 9960815, '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_P22167840_18-04-2025_03_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22167847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167852, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1733038, 'mtr_portfolio_id': 22168535, 'dashboard_result_id': 9960818, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}] 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 = 22166799 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': 2733672, 'mtr_portfolio_id': 22166799, 'created_at': datetime.datetime(2025, 4, 18, 2, 33, 28), 'result': '0.05064965434483151', 'result_long': None, 'result_double': None}] Qualite : 0.05064965434483151 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22166799 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22166799_18-04-2025_02_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22166799 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_P22166799_18-04-2025_02_33_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22166801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22166802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22166803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22166804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22166805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22166806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22166807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22166808, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22166809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22166810, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22166811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22166812, 'pht': 3726}}" where mtr_portfolio_id = 22166799 and dashboard_run_id = 1733038 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`=22166799 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9960812, 0.05064965434483151, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22166799_18-04-2025_02_33_29.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22166801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22166802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22166803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22166804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22166805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22166806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22166807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22166808, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22166809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22166810, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22166811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22166812, '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 = 22167282 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': 2733708, 'mtr_portfolio_id': 22167282, 'created_at': datetime.datetime(2025, 4, 18, 2, 46, 29), 'result': '0.07598048553157151', 'result_long': None, 'result_double': None}] Qualite : 0.07598048553157151 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22167282 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22167282_18-04-2025_02_46_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22167282 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_P22167282_18-04-2025_02_46_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22167286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167288, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167290, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167294, 'pht': 3726}}" where mtr_portfolio_id = 22167282 and dashboard_run_id = 1733038 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`=22167282 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9960814, 0.07598048553157151, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22167282_18-04-2025_02_46_29.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167283, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167284, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167285, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22167286, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167287, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167288, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167289, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167290, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167292, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167293, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167294, '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 = 22167840 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': 2733747, 'mtr_portfolio_id': 22167840, 'created_at': datetime.datetime(2025, 4, 18, 3, 2, 58), 'result': '0.05046370152599812', 'result_long': None, 'result_double': None}] Qualite : 0.05046370152599812 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22167840 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22167840_18-04-2025_03_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22167840 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_P22167840_18-04-2025_03_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22167847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167852, 'pht': 3726}}" where mtr_portfolio_id = 22167840 and dashboard_run_id = 1733038 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`=22167840 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9960815, 0.05046370152599812, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22167840_18-04-2025_03_02_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167841, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167843, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22167847, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167848, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167852, '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 = 22168535 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': 2733800, 'mtr_portfolio_id': 22168535, 'created_at': datetime.datetime(2025, 4, 18, 3, 9), 'result': '0.0538553273134663', 'result_long': None, 'result_double': None}] Qualite : 0.0538553273134663 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22168535 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22168535_18-04-2025_03_09_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22168535 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_P22168535_18-04-2025_03_09_00.pdf'}" where mtr_portfolio_id = 22168535 and dashboard_run_id = 1733038 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`=22168535 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9960818, 0.0538553273134663, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22168535_18-04-2025_03_09_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22168536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22168537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22168538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22168539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22168540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22168541, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22168542, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22168543, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22168544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22168545, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22168546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22168547, '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 (22166799,22167282,22167840,22168535) result : ((1350927214,), (1350927216,), (1350927277,), (1350927517,), (1350927709,), (1350928273,), (1350928275,), (1350928277,), (1350928279,), (1350928316,), (1350928318,), (1350928319,), (1350928321,), (1350928325,), (1350928442,), (1350928874,), (1350928877,), (1350928880,), (1350928883,), (1350928885,), (1350928887,), (1350928906,), (1350928909,), (1350928914,), (1350928922,), (1350928926,), (1350928929,), (1350928931,), (1350928932,), (1350928933,), (1350929016,), (1350929029,), (1350929038,), (1350929044,), (1350929048,), (1350929052,), (1350929073,), (1350929074,), (1350929075,), (1350929096,), (1350929097,), (1350929117,), (1350929162,), (1350929167,), (1350929171,), (1350929175,), (1350929179,), (1350929201,), (1350929211,), (1350929213,), (1350929216,), (1350929235,), (1350929237,), (1350929241,), (1350929246,), (1350929251,), (1350929254,), (1350929270,), (1350929272,), (1350929274,), (1350929277,), (1350929280,), (1350929288,), (1350929298,), (1350929300,), (1350929302,), (1350929333,), (1350929338,), (1350929343,), (1350929347,), (1350929350,), (1350929427,), (1350929378,), (1350929379,), (1350929380,), (1350929403,), (1350929422,), (1350929450,), (1350929456,), (1350929458,), (1350929495,), (1350929501,), (1350929506,), (1350929509,), (1350929513,), (1350929515,), (1350929543,), (1350929546,), (1350929548,), (1350929551,), (1350929557,), (1350929593,), (1350929596,), (1350929598,), (1350929600,), (1350929634,), (1350929635,), (1350929636,), (1350929637,), (1350929639,), (1350929664,), (1350929667,), (1350929670,), (1350929673,), (1350929696,), (1350929702,), (1350929718,), (1350929724,), (1350929729,), (1350929758,), (1350929760,), (1350929762,), (1350929764,), (1350929802,), (1350929809,), (1350929811,), (1350929813,), (1350929817,), (1350929822,), (1350929880,), (1350929882,), (1350929884,), (1350929886,), (1350929925,), (1350929930,), (1350929933,), (1350929938,), (1350930056,), (1350930057,), (1350930109,), (1350930097,), (1350930105,), (1350930107,), (1350930139,), (1350930141,), (1350930143,), (1350930146,), (1350930148,), (1350930183,), (1350930192,), (1350930194,), (1350930197,), (1350930200,), (1350930209,), (1350930220,), (1350930224,), (1350930228,), (1350930258,), (1350930263,), (1350930270,), (1350930302,), (1350930304,), (1350930306,), (1350930307,), (1350930309,), (1350930342,), (1350930344,), (1350930345,), (1350930359,), (1350930361,), (1350930363,), (1350930364,), (1350930365,), (1350930398,), (1350930401,), (1350930403,), (1350930404,), (1350930407,), (1350930408,), (1350930411,), (1350930413,), (1350930415,), (1350930419,), (1350930422,), (1350930428,), (1350930439,), (1350930442,), (1350930445,), (1350930454,), (1350930456,), (1350930458,), (1350930473,), (1350930478,), (1350930479,), (1350930480,), (1350930482,), (1350930485,), (1350930625,), (1350930652,), (1350930681,), (1350930710,), (1350930732,), (1350930985,), (1350930992,), (1350931001,), (1350931020,), (1350931390,), (1350931268,), (1350931299,), (1350931329,), (1350931360,), (1350933846,), (1350933849,), (1350933852,), (1350933984,), (1350934011,), (1350934038,), (1350934064,), (1350934374,), (1350934376,), (1350934394,), (1350934411,), (1350934415,), (1350934420,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18042025': {'nb_upload': 17, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22168535]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350934420, 1350934415, 1350934411, 1350934394, 1350934376, 1350934374, 1350934064, 1350934038, 1350934011, 1350933984, 1350933852, 1350933849, 1350933846, 1350931360, 1350931329, 1350931299, 1350931268] map_info['map_portfolio_photo'] : {22168535: [1350934420, 1350934415, 1350934411, 1350934394, 1350934376, 1350934374, 1350934064, 1350934038, 1350934011, 1350933984, 1350933852, 1350933849, 1350933846, 1350931360, 1350931329, 1350931299, 1350931268]} final : True mtd_id 4302 list_pids : [1350934420, 1350934415, 1350934411, 1350934394, 1350934376, 1350934374, 1350934064, 1350934038, 1350934011, 1350933984, 1350933852, 1350933849, 1350933846, 1350931360, 1350931329, 1350931299, 1350931268] Looping around the photos to save general results len do output : 1 /22168535Didn'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, '2733800') ('4302', '22168535', '1350934420', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934415', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934411', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934394', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934376', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934374', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934064', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934038', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350934011', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350933984', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350933852', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350933849', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350933846', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350931360', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350931329', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350931299', None, None, None, None, None, '2733800') ('4302', None, None, None, None, None, None, None, '2733800') ('4302', '22168535', '1350931268', None, None, None, None, None, '2733800') 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', None, '22168535', 'None', None, None, None, None, '2733800'), ('4302', '22168535', '1350934420', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350934415', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350934411', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350934394', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350934376', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350934374', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350934064', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350934038', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350934011', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350933984', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350933852', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350933849', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350933846', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350931360', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350931329', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350931299', None, None, None, None, None, '2733800'), ('4302', '22168535', '1350931268', None, None, None, None, None, '2733800')] time used for this insertion : 0.014299154281616211 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3304026126861572 time spend to save output : 0.014585733413696289 total time spend for step 5 : 0.3449883460998535 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 (2733800) 2.23user 2.24system 0:09.63elapsed 46%CPU (0avgtext+0avgdata 161600maxresident)k 88inputs+12624outputs (4major+72609minor)pagefaults 0swaps