(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 22236549 , 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=22236538 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_gris' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22236549) result : ((1351242330,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22236538) result : ((1351241027,), (1351241075,), (1351241137,), (1351241671,), (1351241730,), (1351241808,), (1351242209,), (1351242239,), (1351242270,), (1351242301,), (1351242357,), (1351242589,)) 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 22236550 , 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=22236538 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 (22236550) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22236538) result : ((1351241027,), (1351241075,), (1351241137,), (1351241671,), (1351241730,), (1351241808,), (1351242209,), (1351242239,), (1351242270,), (1351242301,), (1351242357,), (1351242589,)) 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 22236551 , 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=22236538 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_brun' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22236551) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22236538) result : ((1351241027,), (1351241075,), (1351241137,), (1351241671,), (1351241730,), (1351241808,), (1351242209,), (1351242239,), (1351242270,), (1351242301,), (1351242357,), (1351242589,)) 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 22236552 , 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=22236538 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 (22236552) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22236538) result : ((1351241027,), (1351241075,), (1351241137,), (1351241671,), (1351241730,), (1351241808,), (1351242209,), (1351242239,), (1351242270,), (1351242301,), (1351242357,), (1351242589,)) 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`=22236538 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','kraft','cartonnette','environnement','plastique','mal_croppe','autre_refus','Teint_Dans_La_Masse','Carton_gris','flou','Carton_brun','papier')) 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`=22236538 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','kraft','cartonnette','environnement','plastique','mal_croppe','autre_refus','Teint_Dans_La_Masse','Carton_gris','flou','Carton_brun','papier')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__10042025_18_03_54_010135_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__10042025_18_03_54_010135_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__10042025_18_03_54_010135_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__10042025_18_03_54_010135_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__10042025_18_03_54_010135_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__10042025_18_03_54_010135_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__10042025_18_03_54_010135_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__10042025_18_03_54_010135_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__10042025_18_03_54_010135_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__10042025_18_03_54_010135_4417_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__10042025_18_03_54_010135_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__10042025_18_03_54_010135_4417_papier_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)[[22236538, 22236553, 4417, 0.5, 492628673, 979], [22236538, 22236554, 4417, 0.5, 493202403, 979], [22236538, 22236555, 4417, 0.5, 702398920, 979], [22236538, 22236556, 4417, 0.5, 493012381, 979], [22236538, 22236557, 4417, 0.5, 492725882, 979], [22236538, 22236558, 4417, 0.5, 2107755527, 979], [22236538, 22236559, 4417, 0.5, 2107752406, 979], [22236538, 22236560, 4417, 0.5, 2107752385, 979], [22236538, 22236561, 4417, 0.5, 2107753020, 979], [22236538, 22236562, 4417, 0.5, 492777938, 979], [22236538, 22236563, 4417, 0.5, 2107753024, 979], [22236538, 22236564, 4417, 0.5, 492668766, 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`=22236538 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','kraft','cartonnette','environnement','plastique','mal_croppe','autre_refus','Teint_Dans_La_Masse','Carton_gris','flou','Carton_brun','papier')) 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`=22236538 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','kraft','cartonnette','environnement','plastique','mal_croppe','autre_refus','Teint_Dans_La_Masse','Carton_gris','flou','Carton_brun','papier')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 22236538, 'sub_port_id': 22236553, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14706955, 'last_updated_at': datetime.datetime(2025, 4, 10, 18, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 18, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 18, 8, 59)}, 'kraft': {'main_port_id': 22236538, 'sub_port_id': 22236554, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14706956, 'last_updated_at': datetime.datetime(2025, 4, 10, 18, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 18, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 18, 8, 59)}, 'cartonnette': {'main_port_id': 22236538, 'sub_port_id': 22236555, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14706957, 'last_updated_at': datetime.datetime(2025, 4, 10, 18, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 18, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 18, 8, 59)}, 'environnement': {'main_port_id': 22236538, 'sub_port_id': 22236556, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14706958, 'last_updated_at': datetime.datetime(2025, 4, 10, 18, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 18, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 18, 8, 59)}, 'plastique': {'main_port_id': 22236538, 'sub_port_id': 22236557, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14706959, 'last_updated_at': datetime.datetime(2025, 4, 10, 18, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 18, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 18, 8, 59)}, 'mal_croppe': {'main_port_id': 22236538, 'sub_port_id': 22236558, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14706960, 'last_updated_at': datetime.datetime(2025, 4, 10, 18, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 18, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 18, 8, 59)}, 'autre_refus': {'main_port_id': 22236538, 'sub_port_id': 22236559, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14706961, 'last_updated_at': datetime.datetime(2025, 4, 10, 18, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 18, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 18, 8, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22236538, 'sub_port_id': 22236560, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14706962, 'last_updated_at': datetime.datetime(2025, 4, 10, 18, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 18, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 18, 8, 59)}, 'Carton_gris': {'main_port_id': 22236538, 'sub_port_id': 22236561, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14706963, 'last_updated_at': datetime.datetime(2025, 4, 10, 18, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 18, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 18, 8, 59)}, 'flou': {'main_port_id': 22236538, 'sub_port_id': 22236562, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14706964, 'last_updated_at': datetime.datetime(2025, 4, 10, 18, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 18, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 18, 8, 59)}, 'Carton_brun': {'main_port_id': 22236538, 'sub_port_id': 22236563, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14706965, 'last_updated_at': datetime.datetime(2025, 4, 10, 18, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 18, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 18, 8, 59)}, 'papier': {'main_port_id': 22236538, 'sub_port_id': 22236564, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14706966, 'last_updated_at': datetime.datetime(2025, 4, 10, 18, 8, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 10, 18, 8, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 10, 18, 8, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22236553,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22236541 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22236554,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22236542 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22236555,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22236543 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22236556,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22236544 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22236557,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22236545 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22236558,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22236546 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22236559,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22236547 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22236560,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22236548 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22236561,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22236549 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22236562,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22236550 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22236563,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22236551 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22236564,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22236552 lien utilise dans velours : https://www.fotonower.com/velours/22236553,22236554,22236555,22236556,22236557,22236558,22236559,22236560,22236561,22236562,22236563,22236564?tags=metal,kraft,cartonnette,environnement,plastique,mal_croppe,autre_refus,Teint_Dans_La_Masse,Carton_gris,flou,Carton_brun,papier After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22236538]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1351242589, 1351242357, 1351242301, 1351242270, 1351242239, 1351242209, 1351241808, 1351241730, 1351241671, 1351241137, 1351241075, 1351241027] map_info['map_portfolio_photo'] : {22236538: [1351242589, 1351242357, 1351242301, 1351242270, 1351242239, 1351242209, 1351241808, 1351241730, 1351241671, 1351241137, 1351241075, 1351241027]} final : False mtd_id 4302 list_pids : [1351242589, 1351242357, 1351242301, 1351242270, 1351242239, 1351242209, 1351241808, 1351241730, 1351241671, 1351241137, 1351241075, 1351241027] Looping around the photos to save general results len do output : 1 /22236538. 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, '2740631') ('4302', '22236538', '1351242589', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351242357', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351242301', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351242270', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351242239', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351242209', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351241808', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351241730', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351241671', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351241137', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351241075', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351241027', None, None, None, None, None, '2740631') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22236538', "{'metal': 22236541, 'kraft': 22236542, 'cartonnette': 22236543, 'environnement': 22236544, 'plastique': 22236545, 'mal_croppe': 22236546, 'autre_refus': 22236547, 'Teint_Dans_La_Masse': 22236548, 'Carton_gris': 22236549, 'flou': 22236550, 'Carton_brun': 22236551, 'papier': 22236552}", None, None, None, None, '2740631'), ('4302', '22236538', '1351242589', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351242357', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351242301', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351242270', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351242239', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351242209', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351241808', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351241730', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351241671', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351241137', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351241075', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351241027', None, None, None, None, None, '2740631')] time used for this insertion : 0.020153284072875977 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.2700250148773193 time spend to save output : 0.0205535888671875 total time spend for step 1 : 2.290578603744507 step2:final Thu Apr 10 18:08:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (22236538) 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 22236538 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1351241137,1351241075,1351241027,1351241808,1351241730,1351241671,1351242357,1351242301,1351242270,1351242239,1351242209,1351242589); 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([22236538]) Inside saveOutput : final : False verbose : True original output for save of step final : {1351242589: ('0.023713053923297395',), 1351242357: ('0.023713053923297395',), 1351242301: ('0.023713053923297395',), 1351242270: ('0.023713053923297395',), 1351242239: ('0.023713053923297395',), 1351242209: ('0.023713053923297395',), 1351241808: ('0.023713053923297395',), 1351241730: ('0.023713053923297395',), 1351241671: ('0.023713053923297395',), 1351241137: ('0.023713053923297395',), 1351241075: ('0.023713053923297395',), 1351241027: ('0.023713053923297395',)} new output for save of step final : {1351242589: ('0.023713053923297395',), 1351242357: ('0.023713053923297395',), 1351242301: ('0.023713053923297395',), 1351242270: ('0.023713053923297395',), 1351242239: ('0.023713053923297395',), 1351242209: ('0.023713053923297395',), 1351241808: ('0.023713053923297395',), 1351241730: ('0.023713053923297395',), 1351241671: ('0.023713053923297395',), 1351241137: ('0.023713053923297395',), 1351241075: ('0.023713053923297395',), 1351241027: ('0.023713053923297395',)} [1351242589, 1351242357, 1351242301, 1351242270, 1351242239, 1351242209, 1351241808, 1351241730, 1351241671, 1351241137, 1351241075, 1351241027] map_info['map_portfolio_photo'] : {22236538: [1351242589, 1351242357, 1351242301, 1351242270, 1351242239, 1351242209, 1351241808, 1351241730, 1351241671, 1351241137, 1351241075, 1351241027]} final : False mtd_id 4302 list_pids : [1351242589, 1351242357, 1351242301, 1351242270, 1351242239, 1351242209, 1351241808, 1351241730, 1351241671, 1351241137, 1351241075, 1351241027] Looping around the photos to save general results len do output : 12 /1351242589.Didn't retrieve data . /1351242357.Didn't retrieve data . /1351242301.Didn't retrieve data . /1351242270.Didn't retrieve data . /1351242239.Didn't retrieve data . /1351242209.Didn't retrieve data . /1351241808.Didn't retrieve data . /1351241730.Didn't retrieve data . /1351241671.Didn't retrieve data . /1351241137.Didn't retrieve data . /1351241075.Didn't retrieve data . /1351241027.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, '2740631') ('4302', '22236538', '1351242589', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351242357', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351242301', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351242270', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351242239', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351242209', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351241808', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351241730', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351241671', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351241137', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351241075', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351241027', None, None, None, None, None, '2740631') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '22236538', '1351242589', '0.023713053923297395', None, None, None, None, '2740631'), ('4302', '22236538', '1351242357', '0.023713053923297395', None, None, None, None, '2740631'), ('4302', '22236538', '1351242301', '0.023713053923297395', None, None, None, None, '2740631'), ('4302', '22236538', '1351242270', '0.023713053923297395', None, None, None, None, '2740631'), ('4302', '22236538', '1351242239', '0.023713053923297395', None, None, None, None, '2740631'), ('4302', '22236538', '1351242209', '0.023713053923297395', None, None, None, None, '2740631'), ('4302', '22236538', '1351241808', '0.023713053923297395', None, None, None, None, '2740631'), ('4302', '22236538', '1351241730', '0.023713053923297395', None, None, None, None, '2740631'), ('4302', '22236538', '1351241671', '0.023713053923297395', None, None, None, None, '2740631'), ('4302', '22236538', '1351241137', '0.023713053923297395', None, None, None, None, '2740631'), ('4302', '22236538', '1351241075', '0.023713053923297395', None, None, None, None, '2740631'), ('4302', '22236538', '1351241027', '0.023713053923297395', None, None, None, None, '2740631')] time used for this insertion : 0.014145135879516602 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.02985382080078125 time spend to save output : 0.01472926139831543 total time spend for step 2 : 0.04458308219909668 step3:velours_tree Thu Apr 10 18:08:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22236538: [{'metal': 22236541, 'kraft': 22236542, 'cartonnette': 22236543, 'environnement': 22236544, 'plastique': 22236545, 'mal_croppe': 22236546, 'autre_refus': 22236547, 'Teint_Dans_La_Masse': 22236548, 'Carton_gris': 22236549, 'flou': 22236550, 'Carton_brun': 22236551, 'papier': 22236552}]} input_args_next_step : {22236538: ()} output_args : {22236538: [{'metal': 22236541, 'kraft': 22236542, 'cartonnette': 22236543, 'environnement': 22236544, 'plastique': 22236545, 'mal_croppe': 22236546, 'autre_refus': 22236547, 'Teint_Dans_La_Masse': 22236548, 'Carton_gris': 22236549, 'flou': 22236550, 'Carton_brun': 22236551, 'papier': 22236552}]} args : 22236538 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 : ({'metal': 22236541, 'kraft': 22236542, 'cartonnette': 22236543, 'environnement': 22236544, 'plastique': 22236545, 'mal_croppe': 22236546, 'autre_refus': 22236547, 'Teint_Dans_La_Masse': 22236548, 'Carton_gris': 22236549, 'flou': 22236550, 'Carton_brun': 22236551, 'papier': 22236552},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22236538) 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([22236538]) 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.5784759521484375 time spend to save output : 4.887580871582031e-05 total time spend for step 3 : 0.5785248279571533 step4:send_mail_cod Thu Apr 10 18:08:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1351242589: ('0.023713053923297395',), 1351242357: ('0.023713053923297395',), 1351242301: ('0.023713053923297395',), 1351242270: ('0.023713053923297395',), 1351242239: ('0.023713053923297395',), 1351242209: ('0.023713053923297395',), 1351241808: ('0.023713053923297395',), 1351241730: ('0.023713053923297395',), 1351241671: ('0.023713053923297395',), 1351241137: ('0.023713053923297395',), 1351241075: ('0.023713053923297395',), 1351241027: ('0.023713053923297395',)} input_args_next_step : {1351242589: ()} output_args : {1351242589: ('0.023713053923297395',), 1351242357: ('0.023713053923297395',), 1351242301: ('0.023713053923297395',), 1351242270: ('0.023713053923297395',), 1351242239: ('0.023713053923297395',), 1351242209: ('0.023713053923297395',), 1351241808: ('0.023713053923297395',), 1351241730: ('0.023713053923297395',), 1351241671: ('0.023713053923297395',), 1351241137: ('0.023713053923297395',), 1351241075: ('0.023713053923297395',), 1351241027: ('0.023713053923297395',)} args : 1351242589 depend.output_id : 0 input_args_next_step : {1351242589: ('0.023713053923297395',), 1351242357: ()} output_args : {1351242589: ('0.023713053923297395',), 1351242357: ('0.023713053923297395',), 1351242301: ('0.023713053923297395',), 1351242270: ('0.023713053923297395',), 1351242239: ('0.023713053923297395',), 1351242209: ('0.023713053923297395',), 1351241808: ('0.023713053923297395',), 1351241730: ('0.023713053923297395',), 1351241671: ('0.023713053923297395',), 1351241137: ('0.023713053923297395',), 1351241075: ('0.023713053923297395',), 1351241027: ('0.023713053923297395',)} args : 1351242357 depend.output_id : 0 input_args_next_step : {1351242589: ('0.023713053923297395',), 1351242357: ('0.023713053923297395',), 1351242301: ()} output_args : {1351242589: ('0.023713053923297395',), 1351242357: ('0.023713053923297395',), 1351242301: ('0.023713053923297395',), 1351242270: ('0.023713053923297395',), 1351242239: ('0.023713053923297395',), 1351242209: ('0.023713053923297395',), 1351241808: ('0.023713053923297395',), 1351241730: ('0.023713053923297395',), 1351241671: ('0.023713053923297395',), 1351241137: ('0.023713053923297395',), 1351241075: ('0.023713053923297395',), 1351241027: ('0.023713053923297395',)} args : 1351242301 depend.output_id : 0 input_args_next_step : {1351242589: ('0.023713053923297395',), 1351242357: ('0.023713053923297395',), 1351242301: ('0.023713053923297395',), 1351242270: ()} output_args : {1351242589: ('0.023713053923297395',), 1351242357: ('0.023713053923297395',), 1351242301: ('0.023713053923297395',), 1351242270: ('0.023713053923297395',), 1351242239: ('0.023713053923297395',), 1351242209: ('0.023713053923297395',), 1351241808: ('0.023713053923297395',), 1351241730: ('0.023713053923297395',), 1351241671: ('0.023713053923297395',), 1351241137: ('0.023713053923297395',), 1351241075: ('0.023713053923297395',), 1351241027: ('0.023713053923297395',)} args : 1351242270 depend.output_id : 0 input_args_next_step : {1351242589: ('0.023713053923297395',), 1351242357: ('0.023713053923297395',), 1351242301: ('0.023713053923297395',), 1351242270: ('0.023713053923297395',), 1351242239: ()} output_args : {1351242589: ('0.023713053923297395',), 1351242357: ('0.023713053923297395',), 1351242301: ('0.023713053923297395',), 1351242270: ('0.023713053923297395',), 1351242239: ('0.023713053923297395',), 1351242209: ('0.023713053923297395',), 1351241808: ('0.023713053923297395',), 1351241730: ('0.023713053923297395',), 1351241671: ('0.023713053923297395',), 1351241137: ('0.023713053923297395',), 1351241075: ('0.023713053923297395',), 1351241027: ('0.023713053923297395',)} args : 1351242239 depend.output_id : 0 input_args_next_step : {1351242589: ('0.023713053923297395',), 1351242357: ('0.023713053923297395',), 1351242301: ('0.023713053923297395',), 1351242270: ('0.023713053923297395',), 1351242239: ('0.023713053923297395',), 1351242209: ()} output_args : {1351242589: ('0.023713053923297395',), 1351242357: ('0.023713053923297395',), 1351242301: ('0.023713053923297395',), 1351242270: ('0.023713053923297395',), 1351242239: ('0.023713053923297395',), 1351242209: ('0.023713053923297395',), 1351241808: ('0.023713053923297395',), 1351241730: ('0.023713053923297395',), 1351241671: ('0.023713053923297395',), 1351241137: ('0.023713053923297395',), 1351241075: ('0.023713053923297395',), 1351241027: ('0.023713053923297395',)} args : 1351242209 depend.output_id : 0 input_args_next_step : {1351242589: ('0.023713053923297395',), 1351242357: ('0.023713053923297395',), 1351242301: ('0.023713053923297395',), 1351242270: ('0.023713053923297395',), 1351242239: ('0.023713053923297395',), 1351242209: ('0.023713053923297395',), 1351241808: ()} output_args : {1351242589: ('0.023713053923297395',), 1351242357: ('0.023713053923297395',), 1351242301: ('0.023713053923297395',), 1351242270: ('0.023713053923297395',), 1351242239: ('0.023713053923297395',), 1351242209: ('0.023713053923297395',), 1351241808: ('0.023713053923297395',), 1351241730: ('0.023713053923297395',), 1351241671: ('0.023713053923297395',), 1351241137: ('0.023713053923297395',), 1351241075: ('0.023713053923297395',), 1351241027: ('0.023713053923297395',)} args : 1351241808 depend.output_id : 0 input_args_next_step : {1351242589: ('0.023713053923297395',), 1351242357: ('0.023713053923297395',), 1351242301: ('0.023713053923297395',), 1351242270: ('0.023713053923297395',), 1351242239: ('0.023713053923297395',), 1351242209: ('0.023713053923297395',), 1351241808: ('0.023713053923297395',), 1351241730: ()} output_args : {1351242589: ('0.023713053923297395',), 1351242357: ('0.023713053923297395',), 1351242301: ('0.023713053923297395',), 1351242270: ('0.023713053923297395',), 1351242239: ('0.023713053923297395',), 1351242209: ('0.023713053923297395',), 1351241808: ('0.023713053923297395',), 1351241730: ('0.023713053923297395',), 1351241671: ('0.023713053923297395',), 1351241137: ('0.023713053923297395',), 1351241075: ('0.023713053923297395',), 1351241027: ('0.023713053923297395',)} args : 1351241730 depend.output_id : 0 input_args_next_step : {1351242589: ('0.023713053923297395',), 1351242357: ('0.023713053923297395',), 1351242301: ('0.023713053923297395',), 1351242270: ('0.023713053923297395',), 1351242239: ('0.023713053923297395',), 1351242209: ('0.023713053923297395',), 1351241808: ('0.023713053923297395',), 1351241730: ('0.023713053923297395',), 1351241671: ()} output_args : {1351242589: ('0.023713053923297395',), 1351242357: ('0.023713053923297395',), 1351242301: ('0.023713053923297395',), 1351242270: ('0.023713053923297395',), 1351242239: ('0.023713053923297395',), 1351242209: ('0.023713053923297395',), 1351241808: ('0.023713053923297395',), 1351241730: ('0.023713053923297395',), 1351241671: ('0.023713053923297395',), 1351241137: ('0.023713053923297395',), 1351241075: ('0.023713053923297395',), 1351241027: ('0.023713053923297395',)} args : 1351241671 depend.output_id : 0 input_args_next_step : {1351242589: ('0.023713053923297395',), 1351242357: ('0.023713053923297395',), 1351242301: ('0.023713053923297395',), 1351242270: ('0.023713053923297395',), 1351242239: ('0.023713053923297395',), 1351242209: ('0.023713053923297395',), 1351241808: ('0.023713053923297395',), 1351241730: ('0.023713053923297395',), 1351241671: ('0.023713053923297395',), 1351241137: ()} output_args : {1351242589: ('0.023713053923297395',), 1351242357: ('0.023713053923297395',), 1351242301: ('0.023713053923297395',), 1351242270: ('0.023713053923297395',), 1351242239: ('0.023713053923297395',), 1351242209: ('0.023713053923297395',), 1351241808: ('0.023713053923297395',), 1351241730: ('0.023713053923297395',), 1351241671: ('0.023713053923297395',), 1351241137: ('0.023713053923297395',), 1351241075: ('0.023713053923297395',), 1351241027: ('0.023713053923297395',)} args : 1351241137 depend.output_id : 0 input_args_next_step : {1351242589: ('0.023713053923297395',), 1351242357: ('0.023713053923297395',), 1351242301: ('0.023713053923297395',), 1351242270: ('0.023713053923297395',), 1351242239: ('0.023713053923297395',), 1351242209: ('0.023713053923297395',), 1351241808: ('0.023713053923297395',), 1351241730: ('0.023713053923297395',), 1351241671: ('0.023713053923297395',), 1351241137: ('0.023713053923297395',), 1351241075: ()} output_args : {1351242589: ('0.023713053923297395',), 1351242357: ('0.023713053923297395',), 1351242301: ('0.023713053923297395',), 1351242270: ('0.023713053923297395',), 1351242239: ('0.023713053923297395',), 1351242209: ('0.023713053923297395',), 1351241808: ('0.023713053923297395',), 1351241730: ('0.023713053923297395',), 1351241671: ('0.023713053923297395',), 1351241137: ('0.023713053923297395',), 1351241075: ('0.023713053923297395',), 1351241027: ('0.023713053923297395',)} args : 1351241075 depend.output_id : 0 input_args_next_step : {1351242589: ('0.023713053923297395',), 1351242357: ('0.023713053923297395',), 1351242301: ('0.023713053923297395',), 1351242270: ('0.023713053923297395',), 1351242239: ('0.023713053923297395',), 1351242209: ('0.023713053923297395',), 1351241808: ('0.023713053923297395',), 1351241730: ('0.023713053923297395',), 1351241671: ('0.023713053923297395',), 1351241137: ('0.023713053923297395',), 1351241075: ('0.023713053923297395',), 1351241027: ()} output_args : {1351242589: ('0.023713053923297395',), 1351242357: ('0.023713053923297395',), 1351242301: ('0.023713053923297395',), 1351242270: ('0.023713053923297395',), 1351242239: ('0.023713053923297395',), 1351242209: ('0.023713053923297395',), 1351241808: ('0.023713053923297395',), 1351241730: ('0.023713053923297395',), 1351241671: ('0.023713053923297395',), 1351241137: ('0.023713053923297395',), 1351241075: ('0.023713053923297395',), 1351241027: ('0.023713053923297395',)} args : 1351241027 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 : {22236538: [{'metal': 22236541, 'kraft': 22236542, 'cartonnette': 22236543, 'environnement': 22236544, 'plastique': 22236545, 'mal_croppe': 22236546, 'autre_refus': 22236547, 'Teint_Dans_La_Masse': 22236548, 'Carton_gris': 22236549, 'flou': 22236550, 'Carton_brun': 22236551, 'papier': 22236552}]} input_args_next_step : {1351242589: ('0.023713053923297395',), 1351242357: ('0.023713053923297395',), 1351242301: ('0.023713053923297395',), 1351242270: ('0.023713053923297395',), 1351242239: ('0.023713053923297395',), 1351242209: ('0.023713053923297395',), 1351241808: ('0.023713053923297395',), 1351241730: ('0.023713053923297395',), 1351241671: ('0.023713053923297395',), 1351241137: ('0.023713053923297395',), 1351241075: ('0.023713053923297395',), 1351241027: ('0.023713053923297395',), 22236538: ()} output_args : {22236538: [{'metal': 22236541, 'kraft': 22236542, 'cartonnette': 22236543, 'environnement': 22236544, 'plastique': 22236545, 'mal_croppe': 22236546, 'autre_refus': 22236547, 'Teint_Dans_La_Masse': 22236548, 'Carton_gris': 22236549, 'flou': 22236550, 'Carton_brun': 22236551, 'papier': 22236552}]} args : 22236538 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 :13, first value : ('0.023713053923297395',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22236538) 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 (1351242589,1351242357,1351242301,1351242270,1351242239,1351242209,1351241808,1351241730,1351241671,1351241137,1351241075,1351241027) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1351241027 begin to download photo : 1351241671 begin to download photo : 1351242209 begin to download photo : 1351242301 download finish for photo 1351242209 begin to download photo : 1351242239 download finish for photo 1351242301 begin to download photo : 1351242357 download finish for photo 1351241027 begin to download photo : 1351241075 download finish for photo 1351241671 begin to download photo : 1351241730 download finish for photo 1351242357 begin to download photo : 1351242589 download finish for photo 1351242239 begin to download photo : 1351242270 download finish for photo 1351241730 begin to download photo : 1351241808 download finish for photo 1351241075 begin to download photo : 1351241137 download finish for photo 1351241808 download finish for photo 1351242270 download finish for photo 1351242589 download finish for photo 1351241137 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette222365411744301340/ imagette222365421744301340/ imagette222365431744301340/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P22236538_10-04-2025_18_09_00.pdf 22236541 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=22236541 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222365411744301340 22236542 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=22236542 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222365421744301340 22236543 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=22236543 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222365431744301340 22236545 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=22236545 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351242337: '1744301211_433445_1351241075_90f90b6805647fe91b321b9ad8d5af8a_rle_crop_3754512802_0.png'} change filename to text .imagette222365451744301340/ imagette222365451744301340/1744301211_433445_1351241075_90f90b6805647fe91b321b9ad8d5af8a_rle_crop_3754512802_0.png.png imagette222365461744301340/ imagette222365471744301340/ imagette222365501744301340/ imagette222365481744301340/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/f9f29e507e6e5cf183a9d4b6fd4ee3b7_5128435.png imagette222365451744301340 22236546 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=22236546 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222365461744301340 22236547 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=22236547 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222365471744301340 22236550 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=22236550 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222365501744301340 22236548 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=22236548 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222365481744301340 22236549 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=22236549 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1351242330: '1744301211_433445_1351241075_90f90b6805647fe91b321b9ad8d5af8a_rle_crop_3754512805_0.png'} change filename to text .imagette222365491744301340/ imagette222365491744301340/1744301211_433445_1351241075_90f90b6805647fe91b321b9ad8d5af8a_rle_crop_3754512805_0.png.png imagette222365511744301340/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/30b376bd23b4e5306cd7d023f7fb18d6_56370234.png imagette222365491744301340 22236551 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=22236551 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette222365511744301340 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22236538 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22236553,22236554,22236555,22236556,22236557,22236558,22236559,22236560,22236561,22236562,22236563,22236564?tags=metal,kraft,cartonnette,environnement,plastique,mal_croppe,autre_refus,Teint_Dans_La_Masse,Carton_gris,flou,Carton_brun,papier your option no_mail is active, we will not send the real mail to your client args[1351242589] : ('0.023713053923297395',) no score found for photo 1351242589 We are sending mail with results at report@fotonower.com args[1351242357] : ('0.023713053923297395',) no score found for photo 1351242357 We are sending mail with results at report@fotonower.com args[1351242301] : ('0.023713053923297395',) no score found for photo 1351242301 We are sending mail with results at report@fotonower.com args[1351242270] : ('0.023713053923297395',) no score found for photo 1351242270 We are sending mail with results at report@fotonower.com args[1351242239] : ('0.023713053923297395',) no score found for photo 1351242239 We are sending mail with results at report@fotonower.com args[1351242209] : ('0.023713053923297395',) no score found for photo 1351242209 We are sending mail with results at report@fotonower.com args[1351241808] : ('0.023713053923297395',) no score found for photo 1351241808 We are sending mail with results at report@fotonower.com args[1351241730] : ('0.023713053923297395',) no score found for photo 1351241730 We are sending mail with results at report@fotonower.com args[1351241671] : ('0.023713053923297395',) no score found for photo 1351241671 We are sending mail with results at report@fotonower.com args[1351241137] : ('0.023713053923297395',) no score found for photo 1351241137 We are sending mail with results at report@fotonower.com args[1351241075] : ('0.023713053923297395',) no score found for photo 1351241075 We are sending mail with results at report@fotonower.com args[1351241027] : ('0.023713053923297395',) no score found for photo 1351241027 We are sending mail with results at report@fotonower.com refus_total : 0.023713053923297395 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=22236538 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_P22236538_10-04-2025_18_09_00.pdf results_Auto_P22236538_10-04-2025_18_09_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22236538_10-04-2025_18_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','22236538','results_Auto_P22236538_10-04-2025_18_09_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22236538_10-04-2025_18_09_00.pdf','pdf','','0.11','0.023713053923297395') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22236538]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1351242589, 1351242357, 1351242301, 1351242270, 1351242239, 1351242209, 1351241808, 1351241730, 1351241671, 1351241137, 1351241075, 1351241027] map_info['map_portfolio_photo'] : {22236538: [1351242589, 1351242357, 1351242301, 1351242270, 1351242239, 1351242209, 1351241808, 1351241730, 1351241671, 1351241137, 1351241075, 1351241027]} final : False mtd_id 4302 list_pids : [1351242589, 1351242357, 1351242301, 1351242270, 1351242239, 1351242209, 1351241808, 1351241730, 1351241671, 1351241137, 1351241075, 1351241027] 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, '2740631') ('4302', '22236538', '1351242589', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351242357', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351242301', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351242270', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351242239', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351242209', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351241808', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351241730', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351241671', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351241137', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351241075', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351241027', None, None, None, None, None, '2740631') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22236538', '1351242589', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351242357', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351242301', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351242270', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351242239', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351242209', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351241808', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351241730', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351241671', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351241137', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351241075', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351241027', None, None, None, None, None, '2740631')] time used for this insertion : 0.014943838119506836 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8763818740844727 time spend to save output : 0.015192270278930664 total time spend for step 4 : 1.8915741443634033 step5:split_time_score Thu Apr 10 18:09:01 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 : ['22236538'] 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 : [('22236538',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22236538) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1351241671: {'path': 'temp/1744301339_3629341_1351241671_c1fa715ae6241879db530337b4713a75.jpg', 'extension': 'jpg'}, 1351241730: {'path': 'temp/1744301339_3629341_1351241730_70053ced0a975cc093b7e0d1a4edb733.jpg', 'extension': 'jpg'}, 1351241808: {'path': 'temp/1744301339_3629341_1351241808_94df058f50e975c59bc5bf19ce1f27f9.jpg', 'extension': 'jpg'}, 1351242209: {'path': 'temp/1744301339_3629341_1351242209_975c50ec914e76283a331c7ef8a6f95f.jpg', 'extension': 'jpg'}, 1351242239: {'path': 'temp/1744301339_3629341_1351242239_9619c73d628cc5321195be59e991b0ad.jpg', 'extension': 'jpg'}, 1351242270: {'path': 'temp/1744301339_3629341_1351242270_412eb23d47671180233171e0218d998b.jpg', 'extension': 'jpg'}, 1351242301: {'path': 'temp/1744301339_3629341_1351242301_18847cf6a31422cb82fe5d03a74ea2ac.jpg', 'extension': 'jpg'}, 1351242357: {'path': 'temp/1744301339_3629341_1351242357_c0aad06d7e4d89d69bda06b5f774b04f.jpg', 'extension': 'jpg'}, 1351242589: {'path': 'temp/1744301339_3629341_1351242589_4ff151eb01ad54607ba04f244d74aee9.jpg', 'extension': 'jpg'}, 1351241027: {'path': 'temp/1744301339_3629341_1351241027_a3b9e26330e8de23971e386cdf8a3342.jpg', 'extension': 'jpg'}, 1351241075: {'path': 'temp/1744301339_3629341_1351241075_90f90b6805647fe91b321b9ad8d5af8a.jpg', 'extension': 'jpg'}, 1351241137: {'path': 'temp/1744301339_3629341_1351241137_a86b19de4c4bbcc696121fa369cf095c.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 = 22236538; (('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 = 22236538 group by h (('18', 12),) 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=22236538 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 (22236538) 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 (22236538) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10042025 22236538 Nombre de photos uploadées : 12 / 23040 (0%) 10042025 22236538 Nombre de photos taguées (types de déchets): 0 / 12 (0%) 10042025 22236538 Nombre de photos taguées (volume) : 0 / 12 (0%) [{'photo_id': 1351241137, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/a86b19de4c4bbcc696121fa369cf095c.jpg', 'username': None, 'uploaded_at': 1744301107, 'text': 'image_10042025_18_03_54_10135.jpg'}, {'photo_id': 1351241075, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/90f90b6805647fe91b321b9ad8d5af8a.jpg', 'username': None, 'uploaded_at': 1744301107, 'text': 'image_10042025_18_04_04_9138.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1351241027, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/a3b9e26330e8de23971e386cdf8a3342.jpg', 'username': None, 'uploaded_at': 1744301107, 'text': 'image_10042025_18_04_14_10136.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1351241808, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/10/94df058f50e975c59bc5bf19ce1f27f9.jpg', 'username': None, 'uploaded_at': 1744301168, 'text': 'image_10042025_18_04_54_10134.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 8.106231689453125e-06 ???????????? elapsed_time : fill_and_build_computed_from_old_data 0.0006241798400878906 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22236538, '2025-04-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1728450,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02437877655029297 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= 1728450 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1728450, 'dashboard_run_id': 1739648, 'mtr_portfolio_id': 22235354, 'dashboard_result_id': 9997563, '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_P22235354_10-04-2025_17_35_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22235396, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22235397, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22235398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22235399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22235400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22235401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22235402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22235403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22235404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22235405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22235406, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22235407, 'pht': 3726}}"}, {'dashboat_entry_day': 1728450, 'dashboard_run_id': 1739648, 'mtr_portfolio_id': 22236538, 'dashboard_result_id': 9997564, '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 = 22235354 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': 2740502, 'mtr_portfolio_id': 22235354, 'created_at': datetime.datetime(2025, 4, 10, 17, 35, 1), 'result': '0.03795140599273597', 'result_long': None, 'result_double': None}] Qualite : 0.03795140599273597 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22235354 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22235354_10-04-2025_17_35_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22235354 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_P22235354_10-04-2025_17_35_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22235396, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22235397, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22235398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22235399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22235400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22235401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22235402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22235403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22235404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22235405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22235406, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22235407, 'pht': 3726}}" where mtr_portfolio_id = 22235354 and dashboard_run_id = 1739648 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`=22235354 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9997563, 0.03795140599273597, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22235354_10-04-2025_17_35_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22235396, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22235397, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22235398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22235399, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22235400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22235401, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22235402, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22235403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22235404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22235405, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22235406, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22235407, '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 = 22236538 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': 2740631, 'mtr_portfolio_id': 22236538, 'created_at': datetime.datetime(2025, 4, 10, 18, 8, 59), 'result': '0.023713053923297395', 'result_long': None, 'result_double': None}] Qualite : 0.023713053923297395 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22236538 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22236538_10-04-2025_18_09_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22236538 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_P22236538_10-04-2025_18_09_00.pdf'}" where mtr_portfolio_id = 22236538 and dashboard_run_id = 1739648 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`=22236538 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9997564, 0.023713053923297395, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22236538_10-04-2025_18_09_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22236541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22236542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22236543, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22236544, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22236545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22236546, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22236547, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22236548, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22236549, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22236550, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22236551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22236552, '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 (22235354,22236538) result : ((1351228465,), (1351228485,), (1351228514,), (1351228530,), (1351228536,), (1351228545,), (1351228720,), (1351228760,), (1351228807,), (1351228829,), (1351228871,), (1351228964,), (1351228975,), (1351228987,), (1351229002,), (1351229328,), (1351229340,), (1351230111,), (1351230151,), (1351230623,), (1351230673,), (1351230771,), (1351230867,), (1351230958,), (1351231032,), (1351231461,), (1351241027,), (1351241075,), (1351241137,), (1351241671,), (1351241730,), (1351241808,), (1351242209,), (1351242239,), (1351242270,), (1351242301,), (1351242357,), (1351242589,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10042025': {'nb_upload': 12, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22236538]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1351242589, 1351242357, 1351242301, 1351242270, 1351242239, 1351242209, 1351241808, 1351241730, 1351241671, 1351241137, 1351241075, 1351241027] map_info['map_portfolio_photo'] : {22236538: [1351242589, 1351242357, 1351242301, 1351242270, 1351242239, 1351242209, 1351241808, 1351241730, 1351241671, 1351241137, 1351241075, 1351241027]} final : True mtd_id 4302 list_pids : [1351242589, 1351242357, 1351242301, 1351242270, 1351242239, 1351242209, 1351241808, 1351241730, 1351241671, 1351241137, 1351241075, 1351241027] Looping around the photos to save general results len do output : 1 /22236538Didn'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, '2740631') ('4302', '22236538', '1351242589', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351242357', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351242301', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351242270', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351242239', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351242209', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351241808', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351241730', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351241671', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351241137', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351241075', None, None, None, None, None, '2740631') ('4302', None, None, None, None, None, None, None, '2740631') ('4302', '22236538', '1351241027', None, None, None, None, None, '2740631') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22236538', 'None', None, None, None, None, '2740631'), ('4302', '22236538', '1351242589', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351242357', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351242301', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351242270', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351242239', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351242209', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351241808', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351241730', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351241671', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351241137', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351241075', None, None, None, None, None, '2740631'), ('4302', '22236538', '1351241027', None, None, None, None, None, '2740631')] time used for this insertion : 0.016056537628173828 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.22500085830688477 time spend to save output : 0.016353607177734375 total time spend for step 5 : 0.24135446548461914 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 (2740631) 2.12user 1.91system 0:07.40elapsed 54%CPU (0avgtext+0avgdata 160936maxresident)k 93360inputs+6632outputs (410major+87442minor)pagefaults 0swaps