(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 21628672 , 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=21628663 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 (21628672) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21628663) result : ((1346710804,), (1346710806,), (1346710807,), (1346710809,), (1346710821,), (1346710871,), (1346710874,), (1346710879,), (1346710886,), (1346710939,), (1346710940,), (1346710941,), (1346710942,)) 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 21628673 , 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=21628663 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Teint_Dans_La_Masse' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21628673) result : ((1346710985,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21628663) result : ((1346710804,), (1346710806,), (1346710807,), (1346710809,), (1346710821,), (1346710871,), (1346710874,), (1346710879,), (1346710886,), (1346710939,), (1346710940,), (1346710941,), (1346710942,)) 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 21628674 , 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=21628663 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='autre_refus' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21628674) result : ((1346710987,), (1346710988,), (1346710989,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21628663) result : ((1346710804,), (1346710806,), (1346710807,), (1346710809,), (1346710821,), (1346710871,), (1346710874,), (1346710879,), (1346710886,), (1346710939,), (1346710940,), (1346710941,), (1346710942,)) 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 21628675 , 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=21628663 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='cartonnette' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21628675) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21628663) result : ((1346710804,), (1346710806,), (1346710807,), (1346710809,), (1346710821,), (1346710871,), (1346710874,), (1346710879,), (1346710886,), (1346710939,), (1346710940,), (1346710941,), (1346710942,)) 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`=21628663 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','mal_croppe','Carton_brun','metal','flou','plastique','kraft','environnement','Carton_gris','Teint_Dans_La_Masse','autre_refus','cartonnette')) 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`=21628663 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','mal_croppe','Carton_brun','metal','flou','plastique','kraft','environnement','Carton_gris','Teint_Dans_La_Masse','autre_refus','cartonnette')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__24032025_06_30_04_10155_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__24032025_06_30_04_10155_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__24032025_06_30_04_10155_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__24032025_06_30_04_10155_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__24032025_06_30_04_10155_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__24032025_06_30_04_10155_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__24032025_06_30_04_10155_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__24032025_06_30_04_10155_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__24032025_06_30_04_10155_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__24032025_06_30_04_10155_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__24032025_06_30_04_10155_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__24032025_06_30_04_10155_4417_cartonnette_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)[[21628663, 21628688, 4417, 0.5, 492668766, 979], [21628663, 21628689, 4417, 0.5, 2107755527, 979], [21628663, 21628690, 4417, 0.5, 2107753024, 979], [21628663, 21628691, 4417, 0.5, 492628673, 979], [21628663, 21628692, 4417, 0.5, 492777938, 979], [21628663, 21628693, 4417, 0.5, 492725882, 979], [21628663, 21628699, 4417, 0.5, 493202403, 979], [21628663, 21628703, 4417, 0.5, 493012381, 979], [21628663, 21628706, 4417, 0.5, 2107753020, 979], [21628663, 21628709, 4417, 0.5, 2107752385, 979], [21628663, 21628710, 4417, 0.5, 2107752406, 979], [21628663, 21628711, 4417, 0.5, 702398920, 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`=21628663 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','mal_croppe','Carton_brun','metal','flou','plastique','kraft','environnement','Carton_gris','Teint_Dans_La_Masse','autre_refus','cartonnette')) 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`=21628663 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','mal_croppe','Carton_brun','metal','flou','plastique','kraft','environnement','Carton_gris','Teint_Dans_La_Masse','autre_refus','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'papier': {'main_port_id': 21628663, 'sub_port_id': 21628688, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167086, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 35, 29)}, 'mal_croppe': {'main_port_id': 21628663, 'sub_port_id': 21628689, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167087, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 35, 29)}, 'Carton_brun': {'main_port_id': 21628663, 'sub_port_id': 21628690, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167088, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 35, 29)}, 'metal': {'main_port_id': 21628663, 'sub_port_id': 21628691, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167089, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 35, 29)}, 'flou': {'main_port_id': 21628663, 'sub_port_id': 21628692, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167090, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 35, 29)}, 'plastique': {'main_port_id': 21628663, 'sub_port_id': 21628693, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167091, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 35, 29)}, 'kraft': {'main_port_id': 21628663, 'sub_port_id': 21628699, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167092, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 35, 29)}, 'environnement': {'main_port_id': 21628663, 'sub_port_id': 21628703, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167093, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 35, 29)}, 'Carton_gris': {'main_port_id': 21628663, 'sub_port_id': 21628706, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167094, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 35, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 21628663, 'sub_port_id': 21628709, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167095, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 35, 29)}, 'autre_refus': {'main_port_id': 21628663, 'sub_port_id': 21628710, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167096, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 35, 29)}, 'cartonnette': {'main_port_id': 21628663, 'sub_port_id': 21628711, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14167097, 'last_updated_at': datetime.datetime(2025, 3, 24, 6, 35, 29), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 6, 35, 29), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 6, 35, 29)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21628688,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21628664 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21628689,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21628665 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21628690,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21628666 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21628691,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21628667 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21628692,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21628668 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21628693,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21628669 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21628699,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21628670 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21628703,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21628671 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21628706,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21628672 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21628709,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21628673 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21628710,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21628674 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21628711,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21628675 lien utilise dans velours : https://www.fotonower.com/velours/21628688,21628689,21628690,21628691,21628692,21628693,21628699,21628703,21628706,21628709,21628710,21628711?tags=papier,mal_croppe,Carton_brun,metal,flou,plastique,kraft,environnement,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21628663]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1346710942, 1346710941, 1346710940, 1346710939, 1346710886, 1346710879, 1346710874, 1346710871, 1346710821, 1346710809, 1346710807, 1346710806, 1346710804] map_info['map_portfolio_photo'] : {21628663: [1346710942, 1346710941, 1346710940, 1346710939, 1346710886, 1346710879, 1346710874, 1346710871, 1346710821, 1346710809, 1346710807, 1346710806, 1346710804]} final : False mtd_id 4302 list_pids : [1346710942, 1346710941, 1346710940, 1346710939, 1346710886, 1346710879, 1346710874, 1346710871, 1346710821, 1346710809, 1346710807, 1346710806, 1346710804] Looping around the photos to save general results len do output : 1 /21628663. 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, '2684015') ('4302', '21628663', '1346710942', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710941', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710940', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710939', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710886', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710879', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710874', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710871', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710821', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710809', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710807', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710806', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710804', None, None, None, None, None, '2684015') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21628663', "{'papier': 21628664, 'mal_croppe': 21628665, 'Carton_brun': 21628666, 'metal': 21628667, 'flou': 21628668, 'plastique': 21628669, 'kraft': 21628670, 'environnement': 21628671, 'Carton_gris': 21628672, 'Teint_Dans_La_Masse': 21628673, 'autre_refus': 21628674, 'cartonnette': 21628675}", None, None, None, None, '2684015'), ('4302', '21628663', '1346710942', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710941', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710940', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710939', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710886', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710879', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710874', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710871', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710821', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710809', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710807', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710806', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710804', None, None, None, None, None, '2684015')] time used for this insertion : 0.2996063232421875 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.315142869949341 time spend to save output : 0.2999410629272461 total time spend for step 1 : 2.615083932876587 step2:final Mon Mar 24 06:35:29 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 (21628663) 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 21628663 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1346710821,1346710809,1346710807,1346710806,1346710804,1346710886,1346710879,1346710874,1346710871,1346710942,1346710941,1346710940,1346710939); 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([21628663]) Inside saveOutput : final : False verbose : True original output for save of step final : {1346710942: ('0.0585437538064549',), 1346710941: ('0.0585437538064549',), 1346710940: ('0.0585437538064549',), 1346710939: ('0.0585437538064549',), 1346710886: ('0.0585437538064549',), 1346710879: ('0.0585437538064549',), 1346710874: ('0.0585437538064549',), 1346710871: ('0.0585437538064549',), 1346710821: ('0.0585437538064549',), 1346710809: ('0.0585437538064549',), 1346710807: ('0.0585437538064549',), 1346710806: ('0.0585437538064549',), 1346710804: ('0.0585437538064549',)} new output for save of step final : {1346710942: ('0.0585437538064549',), 1346710941: ('0.0585437538064549',), 1346710940: ('0.0585437538064549',), 1346710939: ('0.0585437538064549',), 1346710886: ('0.0585437538064549',), 1346710879: ('0.0585437538064549',), 1346710874: ('0.0585437538064549',), 1346710871: ('0.0585437538064549',), 1346710821: ('0.0585437538064549',), 1346710809: ('0.0585437538064549',), 1346710807: ('0.0585437538064549',), 1346710806: ('0.0585437538064549',), 1346710804: ('0.0585437538064549',)} [1346710942, 1346710941, 1346710940, 1346710939, 1346710886, 1346710879, 1346710874, 1346710871, 1346710821, 1346710809, 1346710807, 1346710806, 1346710804] map_info['map_portfolio_photo'] : {21628663: [1346710942, 1346710941, 1346710940, 1346710939, 1346710886, 1346710879, 1346710874, 1346710871, 1346710821, 1346710809, 1346710807, 1346710806, 1346710804]} final : False mtd_id 4302 list_pids : [1346710942, 1346710941, 1346710940, 1346710939, 1346710886, 1346710879, 1346710874, 1346710871, 1346710821, 1346710809, 1346710807, 1346710806, 1346710804] Looping around the photos to save general results len do output : 13 /1346710942.Didn't retrieve data . /1346710941.Didn't retrieve data . /1346710940.Didn't retrieve data . /1346710939.Didn't retrieve data . /1346710886.Didn't retrieve data . /1346710879.Didn't retrieve data . /1346710874.Didn't retrieve data . /1346710871.Didn't retrieve data . /1346710821.Didn't retrieve data . /1346710809.Didn't retrieve data . /1346710807.Didn't retrieve data . /1346710806.Didn't retrieve data . /1346710804.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, '2684015') ('4302', '21628663', '1346710942', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710941', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710940', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710939', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710886', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710879', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710874', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710871', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710821', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710809', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710807', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710806', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710804', None, None, None, None, None, '2684015') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21628663', '1346710942', '0.0585437538064549', None, None, None, None, '2684015'), ('4302', '21628663', '1346710941', '0.0585437538064549', None, None, None, None, '2684015'), ('4302', '21628663', '1346710940', '0.0585437538064549', None, None, None, None, '2684015'), ('4302', '21628663', '1346710939', '0.0585437538064549', None, None, None, None, '2684015'), ('4302', '21628663', '1346710886', '0.0585437538064549', None, None, None, None, '2684015'), ('4302', '21628663', '1346710879', '0.0585437538064549', None, None, None, None, '2684015'), ('4302', '21628663', '1346710874', '0.0585437538064549', None, None, None, None, '2684015'), ('4302', '21628663', '1346710871', '0.0585437538064549', None, None, None, None, '2684015'), ('4302', '21628663', '1346710821', '0.0585437538064549', None, None, None, None, '2684015'), ('4302', '21628663', '1346710809', '0.0585437538064549', None, None, None, None, '2684015'), ('4302', '21628663', '1346710807', '0.0585437538064549', None, None, None, None, '2684015'), ('4302', '21628663', '1346710806', '0.0585437538064549', None, None, None, None, '2684015'), ('4302', '21628663', '1346710804', '0.0585437538064549', None, None, None, None, '2684015')] time used for this insertion : 0.019100427627563477 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.03359651565551758 time spend to save output : 0.019643783569335938 total time spend for step 2 : 0.053240299224853516 step3:velours_tree Mon Mar 24 06:35:29 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 : {21628663: [{'papier': 21628664, 'mal_croppe': 21628665, 'Carton_brun': 21628666, 'metal': 21628667, 'flou': 21628668, 'plastique': 21628669, 'kraft': 21628670, 'environnement': 21628671, 'Carton_gris': 21628672, 'Teint_Dans_La_Masse': 21628673, 'autre_refus': 21628674, 'cartonnette': 21628675}]} input_args_next_step : {21628663: ()} output_args : {21628663: [{'papier': 21628664, 'mal_croppe': 21628665, 'Carton_brun': 21628666, 'metal': 21628667, 'flou': 21628668, 'plastique': 21628669, 'kraft': 21628670, 'environnement': 21628671, 'Carton_gris': 21628672, 'Teint_Dans_La_Masse': 21628673, 'autre_refus': 21628674, 'cartonnette': 21628675}]} args : 21628663 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'papier': 21628664, 'mal_croppe': 21628665, 'Carton_brun': 21628666, 'metal': 21628667, 'flou': 21628668, 'plastique': 21628669, 'kraft': 21628670, 'environnement': 21628671, 'Carton_gris': 21628672, 'Teint_Dans_La_Masse': 21628673, 'autre_refus': 21628674, 'cartonnette': 21628675},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21628663) 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([21628663]) 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.35811328887939453 time spend to save output : 7.557868957519531e-05 total time spend for step 3 : 0.3581888675689697 step4:send_mail_cod Mon Mar 24 06:35:30 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 : {1346710942: ('0.0585437538064549',), 1346710941: ('0.0585437538064549',), 1346710940: ('0.0585437538064549',), 1346710939: ('0.0585437538064549',), 1346710886: ('0.0585437538064549',), 1346710879: ('0.0585437538064549',), 1346710874: ('0.0585437538064549',), 1346710871: ('0.0585437538064549',), 1346710821: ('0.0585437538064549',), 1346710809: ('0.0585437538064549',), 1346710807: ('0.0585437538064549',), 1346710806: ('0.0585437538064549',), 1346710804: ('0.0585437538064549',)} input_args_next_step : {1346710942: ()} output_args : {1346710942: ('0.0585437538064549',), 1346710941: ('0.0585437538064549',), 1346710940: ('0.0585437538064549',), 1346710939: ('0.0585437538064549',), 1346710886: ('0.0585437538064549',), 1346710879: ('0.0585437538064549',), 1346710874: ('0.0585437538064549',), 1346710871: ('0.0585437538064549',), 1346710821: ('0.0585437538064549',), 1346710809: ('0.0585437538064549',), 1346710807: ('0.0585437538064549',), 1346710806: ('0.0585437538064549',), 1346710804: ('0.0585437538064549',)} args : 1346710942 depend.output_id : 0 input_args_next_step : {1346710942: ('0.0585437538064549',), 1346710941: ()} output_args : {1346710942: ('0.0585437538064549',), 1346710941: ('0.0585437538064549',), 1346710940: ('0.0585437538064549',), 1346710939: ('0.0585437538064549',), 1346710886: ('0.0585437538064549',), 1346710879: ('0.0585437538064549',), 1346710874: ('0.0585437538064549',), 1346710871: ('0.0585437538064549',), 1346710821: ('0.0585437538064549',), 1346710809: ('0.0585437538064549',), 1346710807: ('0.0585437538064549',), 1346710806: ('0.0585437538064549',), 1346710804: ('0.0585437538064549',)} args : 1346710941 depend.output_id : 0 input_args_next_step : {1346710942: ('0.0585437538064549',), 1346710941: ('0.0585437538064549',), 1346710940: ()} output_args : {1346710942: ('0.0585437538064549',), 1346710941: ('0.0585437538064549',), 1346710940: ('0.0585437538064549',), 1346710939: ('0.0585437538064549',), 1346710886: ('0.0585437538064549',), 1346710879: ('0.0585437538064549',), 1346710874: ('0.0585437538064549',), 1346710871: ('0.0585437538064549',), 1346710821: ('0.0585437538064549',), 1346710809: ('0.0585437538064549',), 1346710807: ('0.0585437538064549',), 1346710806: ('0.0585437538064549',), 1346710804: ('0.0585437538064549',)} args : 1346710940 depend.output_id : 0 input_args_next_step : {1346710942: ('0.0585437538064549',), 1346710941: ('0.0585437538064549',), 1346710940: ('0.0585437538064549',), 1346710939: ()} output_args : {1346710942: ('0.0585437538064549',), 1346710941: ('0.0585437538064549',), 1346710940: ('0.0585437538064549',), 1346710939: ('0.0585437538064549',), 1346710886: ('0.0585437538064549',), 1346710879: ('0.0585437538064549',), 1346710874: ('0.0585437538064549',), 1346710871: ('0.0585437538064549',), 1346710821: ('0.0585437538064549',), 1346710809: ('0.0585437538064549',), 1346710807: ('0.0585437538064549',), 1346710806: ('0.0585437538064549',), 1346710804: ('0.0585437538064549',)} args : 1346710939 depend.output_id : 0 input_args_next_step : {1346710942: ('0.0585437538064549',), 1346710941: ('0.0585437538064549',), 1346710940: ('0.0585437538064549',), 1346710939: ('0.0585437538064549',), 1346710886: ()} output_args : {1346710942: ('0.0585437538064549',), 1346710941: ('0.0585437538064549',), 1346710940: ('0.0585437538064549',), 1346710939: ('0.0585437538064549',), 1346710886: ('0.0585437538064549',), 1346710879: ('0.0585437538064549',), 1346710874: ('0.0585437538064549',), 1346710871: ('0.0585437538064549',), 1346710821: ('0.0585437538064549',), 1346710809: ('0.0585437538064549',), 1346710807: ('0.0585437538064549',), 1346710806: ('0.0585437538064549',), 1346710804: ('0.0585437538064549',)} args : 1346710886 depend.output_id : 0 input_args_next_step : {1346710942: ('0.0585437538064549',), 1346710941: ('0.0585437538064549',), 1346710940: ('0.0585437538064549',), 1346710939: ('0.0585437538064549',), 1346710886: ('0.0585437538064549',), 1346710879: ()} output_args : {1346710942: ('0.0585437538064549',), 1346710941: ('0.0585437538064549',), 1346710940: ('0.0585437538064549',), 1346710939: ('0.0585437538064549',), 1346710886: ('0.0585437538064549',), 1346710879: ('0.0585437538064549',), 1346710874: ('0.0585437538064549',), 1346710871: ('0.0585437538064549',), 1346710821: ('0.0585437538064549',), 1346710809: ('0.0585437538064549',), 1346710807: ('0.0585437538064549',), 1346710806: ('0.0585437538064549',), 1346710804: ('0.0585437538064549',)} args : 1346710879 depend.output_id : 0 input_args_next_step : {1346710942: ('0.0585437538064549',), 1346710941: ('0.0585437538064549',), 1346710940: ('0.0585437538064549',), 1346710939: ('0.0585437538064549',), 1346710886: ('0.0585437538064549',), 1346710879: ('0.0585437538064549',), 1346710874: ()} output_args : {1346710942: ('0.0585437538064549',), 1346710941: ('0.0585437538064549',), 1346710940: ('0.0585437538064549',), 1346710939: ('0.0585437538064549',), 1346710886: ('0.0585437538064549',), 1346710879: ('0.0585437538064549',), 1346710874: ('0.0585437538064549',), 1346710871: ('0.0585437538064549',), 1346710821: ('0.0585437538064549',), 1346710809: ('0.0585437538064549',), 1346710807: ('0.0585437538064549',), 1346710806: ('0.0585437538064549',), 1346710804: ('0.0585437538064549',)} args : 1346710874 depend.output_id : 0 input_args_next_step : {1346710942: ('0.0585437538064549',), 1346710941: ('0.0585437538064549',), 1346710940: ('0.0585437538064549',), 1346710939: ('0.0585437538064549',), 1346710886: ('0.0585437538064549',), 1346710879: ('0.0585437538064549',), 1346710874: ('0.0585437538064549',), 1346710871: ()} output_args : {1346710942: ('0.0585437538064549',), 1346710941: ('0.0585437538064549',), 1346710940: ('0.0585437538064549',), 1346710939: ('0.0585437538064549',), 1346710886: ('0.0585437538064549',), 1346710879: ('0.0585437538064549',), 1346710874: ('0.0585437538064549',), 1346710871: ('0.0585437538064549',), 1346710821: ('0.0585437538064549',), 1346710809: ('0.0585437538064549',), 1346710807: ('0.0585437538064549',), 1346710806: ('0.0585437538064549',), 1346710804: ('0.0585437538064549',)} args : 1346710871 depend.output_id : 0 input_args_next_step : {1346710942: ('0.0585437538064549',), 1346710941: ('0.0585437538064549',), 1346710940: ('0.0585437538064549',), 1346710939: ('0.0585437538064549',), 1346710886: ('0.0585437538064549',), 1346710879: ('0.0585437538064549',), 1346710874: ('0.0585437538064549',), 1346710871: ('0.0585437538064549',), 1346710821: ()} output_args : {1346710942: ('0.0585437538064549',), 1346710941: ('0.0585437538064549',), 1346710940: ('0.0585437538064549',), 1346710939: ('0.0585437538064549',), 1346710886: ('0.0585437538064549',), 1346710879: ('0.0585437538064549',), 1346710874: ('0.0585437538064549',), 1346710871: ('0.0585437538064549',), 1346710821: ('0.0585437538064549',), 1346710809: ('0.0585437538064549',), 1346710807: ('0.0585437538064549',), 1346710806: ('0.0585437538064549',), 1346710804: ('0.0585437538064549',)} args : 1346710821 depend.output_id : 0 input_args_next_step : {1346710942: ('0.0585437538064549',), 1346710941: ('0.0585437538064549',), 1346710940: ('0.0585437538064549',), 1346710939: ('0.0585437538064549',), 1346710886: ('0.0585437538064549',), 1346710879: ('0.0585437538064549',), 1346710874: ('0.0585437538064549',), 1346710871: ('0.0585437538064549',), 1346710821: ('0.0585437538064549',), 1346710809: ()} output_args : {1346710942: ('0.0585437538064549',), 1346710941: ('0.0585437538064549',), 1346710940: ('0.0585437538064549',), 1346710939: ('0.0585437538064549',), 1346710886: ('0.0585437538064549',), 1346710879: ('0.0585437538064549',), 1346710874: ('0.0585437538064549',), 1346710871: ('0.0585437538064549',), 1346710821: ('0.0585437538064549',), 1346710809: ('0.0585437538064549',), 1346710807: ('0.0585437538064549',), 1346710806: ('0.0585437538064549',), 1346710804: ('0.0585437538064549',)} args : 1346710809 depend.output_id : 0 input_args_next_step : {1346710942: ('0.0585437538064549',), 1346710941: ('0.0585437538064549',), 1346710940: ('0.0585437538064549',), 1346710939: ('0.0585437538064549',), 1346710886: ('0.0585437538064549',), 1346710879: ('0.0585437538064549',), 1346710874: ('0.0585437538064549',), 1346710871: ('0.0585437538064549',), 1346710821: ('0.0585437538064549',), 1346710809: ('0.0585437538064549',), 1346710807: ()} output_args : {1346710942: ('0.0585437538064549',), 1346710941: ('0.0585437538064549',), 1346710940: ('0.0585437538064549',), 1346710939: ('0.0585437538064549',), 1346710886: ('0.0585437538064549',), 1346710879: ('0.0585437538064549',), 1346710874: ('0.0585437538064549',), 1346710871: ('0.0585437538064549',), 1346710821: ('0.0585437538064549',), 1346710809: ('0.0585437538064549',), 1346710807: ('0.0585437538064549',), 1346710806: ('0.0585437538064549',), 1346710804: ('0.0585437538064549',)} args : 1346710807 depend.output_id : 0 input_args_next_step : {1346710942: ('0.0585437538064549',), 1346710941: ('0.0585437538064549',), 1346710940: ('0.0585437538064549',), 1346710939: ('0.0585437538064549',), 1346710886: ('0.0585437538064549',), 1346710879: ('0.0585437538064549',), 1346710874: ('0.0585437538064549',), 1346710871: ('0.0585437538064549',), 1346710821: ('0.0585437538064549',), 1346710809: ('0.0585437538064549',), 1346710807: ('0.0585437538064549',), 1346710806: ()} output_args : {1346710942: ('0.0585437538064549',), 1346710941: ('0.0585437538064549',), 1346710940: ('0.0585437538064549',), 1346710939: ('0.0585437538064549',), 1346710886: ('0.0585437538064549',), 1346710879: ('0.0585437538064549',), 1346710874: ('0.0585437538064549',), 1346710871: ('0.0585437538064549',), 1346710821: ('0.0585437538064549',), 1346710809: ('0.0585437538064549',), 1346710807: ('0.0585437538064549',), 1346710806: ('0.0585437538064549',), 1346710804: ('0.0585437538064549',)} args : 1346710806 depend.output_id : 0 input_args_next_step : {1346710942: ('0.0585437538064549',), 1346710941: ('0.0585437538064549',), 1346710940: ('0.0585437538064549',), 1346710939: ('0.0585437538064549',), 1346710886: ('0.0585437538064549',), 1346710879: ('0.0585437538064549',), 1346710874: ('0.0585437538064549',), 1346710871: ('0.0585437538064549',), 1346710821: ('0.0585437538064549',), 1346710809: ('0.0585437538064549',), 1346710807: ('0.0585437538064549',), 1346710806: ('0.0585437538064549',), 1346710804: ()} output_args : {1346710942: ('0.0585437538064549',), 1346710941: ('0.0585437538064549',), 1346710940: ('0.0585437538064549',), 1346710939: ('0.0585437538064549',), 1346710886: ('0.0585437538064549',), 1346710879: ('0.0585437538064549',), 1346710874: ('0.0585437538064549',), 1346710871: ('0.0585437538064549',), 1346710821: ('0.0585437538064549',), 1346710809: ('0.0585437538064549',), 1346710807: ('0.0585437538064549',), 1346710806: ('0.0585437538064549',), 1346710804: ('0.0585437538064549',)} args : 1346710804 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 : {21628663: [{'papier': 21628664, 'mal_croppe': 21628665, 'Carton_brun': 21628666, 'metal': 21628667, 'flou': 21628668, 'plastique': 21628669, 'kraft': 21628670, 'environnement': 21628671, 'Carton_gris': 21628672, 'Teint_Dans_La_Masse': 21628673, 'autre_refus': 21628674, 'cartonnette': 21628675}]} input_args_next_step : {1346710942: ('0.0585437538064549',), 1346710941: ('0.0585437538064549',), 1346710940: ('0.0585437538064549',), 1346710939: ('0.0585437538064549',), 1346710886: ('0.0585437538064549',), 1346710879: ('0.0585437538064549',), 1346710874: ('0.0585437538064549',), 1346710871: ('0.0585437538064549',), 1346710821: ('0.0585437538064549',), 1346710809: ('0.0585437538064549',), 1346710807: ('0.0585437538064549',), 1346710806: ('0.0585437538064549',), 1346710804: ('0.0585437538064549',), 21628663: ()} output_args : {21628663: [{'papier': 21628664, 'mal_croppe': 21628665, 'Carton_brun': 21628666, 'metal': 21628667, 'flou': 21628668, 'plastique': 21628669, 'kraft': 21628670, 'environnement': 21628671, 'Carton_gris': 21628672, 'Teint_Dans_La_Masse': 21628673, 'autre_refus': 21628674, 'cartonnette': 21628675}]} args : 21628663 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :14, first value : ('0.0585437538064549',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21628663) 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 (1346710942,1346710941,1346710940,1346710939,1346710886,1346710879,1346710874,1346710871,1346710821,1346710809,1346710807,1346710806,1346710804) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1346710804 begin to download photo : 1346710809 begin to download photo : 1346710874 begin to download photo : 1346710939 begin to download photo : 1346710942 download finish for photo 1346710804 begin to download photo : 1346710806 download finish for photo 1346710874 begin to download photo : 1346710879 download finish for photo 1346710939 begin to download photo : 1346710940 download finish for photo 1346710942 download finish for photo 1346710809 begin to download photo : 1346710821 download finish for photo 1346710806 begin to download photo : 1346710807 download finish for photo 1346710879 begin to download photo : 1346710886 download finish for photo 1346710821 begin to download photo : 1346710871 download finish for photo 1346710940 begin to download photo : 1346710941 download finish for photo 1346710807 download finish for photo 1346710886 download finish for photo 1346710941 download finish for photo 1346710871 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette216286651742794530/ imagette216286671742794530/ imagette216286681742794530/ imagette216286691742794530/ imagette216286701742794530/ length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P21628663_24-03-2025_06_35_30.pdf 21628665 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=21628665 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216286651742794530 21628667 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=21628667 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216286671742794530 21628668 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=21628668 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216286681742794530 21628669 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=21628669 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216286691742794530 21628670 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=21628670 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216286701742794530 21628674 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=21628674 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346710987: '1742794492_2593071_1346710879_1dd7028c1549bbf241bbf84fb4b57997_rle_crop_3726193614_0.png', 1346710988: '1742794492_2593071_1346710874_b3650e0b0bc7fca8ba025fd5561d8aec_rle_crop_3726193625_0.png', 1346710989: '1742794492_2593071_1346710871_4ab4c14baf0abb861dd1c3df7bd76006_rle_crop_3726193634_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/6c9052f2bc6900a10cd348cffc214afa_10850754.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/3b872a6fc68989b33a81fc4430b9cc51_87991196.png change filename to text .imagette216286741742794530/ imagette216286741742794530/1742794492_2593071_1346710874_b3650e0b0bc7fca8ba025fd5561d8aec_rle_crop_3726193625_0.png.png imagette216286741742794530/1742794492_2593071_1346710871_4ab4c14baf0abb861dd1c3df7bd76006_rle_crop_3726193634_0.png.png imagette216286741742794530/1742794492_2593071_1346710879_1dd7028c1549bbf241bbf84fb4b57997_rle_crop_3726193614_0.png.png imagette216286751742794530/ imagette216286661742794530/ imagette216286721742794530/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/19d2089983a44fc5eb3e038db6baa046_45782697.png imagette216286741742794530 21628675 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=21628675 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216286751742794530 21628666 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=21628666 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216286661742794530 21628672 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=21628672 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216286721742794530 21628673 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=21628673 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346710985: '1742794492_2593071_1346710879_1dd7028c1549bbf241bbf84fb4b57997_rle_crop_3726193615_0.png'} change filename to text .imagette216286731742794530/ imagette216286731742794530/1742794492_2593071_1346710879_1dd7028c1549bbf241bbf84fb4b57997_rle_crop_3726193615_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/f7a405e0b0c28b6525d452224c9ee896_43472261.png imagette216286731742794530 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21628663 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21628688,21628689,21628690,21628691,21628692,21628693,21628699,21628703,21628706,21628709,21628710,21628711?tags=papier,mal_croppe,Carton_brun,metal,flou,plastique,kraft,environnement,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette your option no_mail is active, we will not send the real mail to your client args[1346710942] : ('0.0585437538064549',) no score found for photo 1346710942 We are sending mail with results at report@fotonower.com args[1346710941] : ('0.0585437538064549',) no score found for photo 1346710941 We are sending mail with results at report@fotonower.com args[1346710940] : ('0.0585437538064549',) no score found for photo 1346710940 We are sending mail with results at report@fotonower.com args[1346710939] : ('0.0585437538064549',) no score found for photo 1346710939 We are sending mail with results at report@fotonower.com args[1346710886] : ('0.0585437538064549',) no score found for photo 1346710886 We are sending mail with results at report@fotonower.com args[1346710879] : ('0.0585437538064549',) no score found for photo 1346710879 We are sending mail with results at report@fotonower.com args[1346710874] : ('0.0585437538064549',) no score found for photo 1346710874 We are sending mail with results at report@fotonower.com args[1346710871] : ('0.0585437538064549',) no score found for photo 1346710871 We are sending mail with results at report@fotonower.com args[1346710821] : ('0.0585437538064549',) no score found for photo 1346710821 We are sending mail with results at report@fotonower.com args[1346710809] : ('0.0585437538064549',) no score found for photo 1346710809 We are sending mail with results at report@fotonower.com args[1346710807] : ('0.0585437538064549',) no score found for photo 1346710807 We are sending mail with results at report@fotonower.com args[1346710806] : ('0.0585437538064549',) no score found for photo 1346710806 We are sending mail with results at report@fotonower.com args[1346710804] : ('0.0585437538064549',) no score found for photo 1346710804 We are sending mail with results at report@fotonower.com refus_total : 0.0585437538064549 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=21628663 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_P21628663_24-03-2025_06_35_30.pdf results_Auto_P21628663_24-03-2025_06_35_30.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21628663_24-03-2025_06_35_30.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','21628663','results_Auto_P21628663_24-03-2025_06_35_30.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21628663_24-03-2025_06_35_30.pdf','pdf','','0.14','0.0585437538064549') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21628663]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1346710942, 1346710941, 1346710940, 1346710939, 1346710886, 1346710879, 1346710874, 1346710871, 1346710821, 1346710809, 1346710807, 1346710806, 1346710804] map_info['map_portfolio_photo'] : {21628663: [1346710942, 1346710941, 1346710940, 1346710939, 1346710886, 1346710879, 1346710874, 1346710871, 1346710821, 1346710809, 1346710807, 1346710806, 1346710804]} final : False mtd_id 4302 list_pids : [1346710942, 1346710941, 1346710940, 1346710939, 1346710886, 1346710879, 1346710874, 1346710871, 1346710821, 1346710809, 1346710807, 1346710806, 1346710804] 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, '2684015') ('4302', '21628663', '1346710942', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710941', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710940', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710939', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710886', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710879', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710874', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710871', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710821', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710809', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710807', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710806', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710804', None, None, None, None, None, '2684015') 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', '21628663', '1346710942', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710941', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710940', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710939', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710886', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710879', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710874', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710871', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710821', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710809', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710807', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710806', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710804', None, None, None, None, None, '2684015')] time used for this insertion : 0.016765832901000977 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7029061317443848 time spend to save output : 0.017048358917236328 total time spend for step 4 : 1.719954490661621 step5:split_time_score Mon Mar 24 06:35:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21628663'] 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 : [('21628663',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21628663) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1346710942: {'path': 'temp/1742794530_2972289_1346710942_c37582d1bb02bebccd190d2b68142512.jpg', 'extension': 'jpg'}, 1346710804: {'path': 'temp/1742794530_2972289_1346710804_21ca0978078270a15742286a9cc14217.jpg', 'extension': 'jpg'}, 1346710806: {'path': 'temp/1742794530_2972289_1346710806_142865d4f1eeb3df9dd29d46b0608323.jpg', 'extension': 'jpg'}, 1346710807: {'path': 'temp/1742794530_2972289_1346710807_45796097321fe741e33c3fa9adde3f93.jpg', 'extension': 'jpg'}, 1346710874: {'path': 'temp/1742794530_2972289_1346710874_b3650e0b0bc7fca8ba025fd5561d8aec.jpg', 'extension': 'jpg'}, 1346710879: {'path': 'temp/1742794530_2972289_1346710879_1dd7028c1549bbf241bbf84fb4b57997.jpg', 'extension': 'jpg'}, 1346710886: {'path': 'temp/1742794530_2972289_1346710886_af4489a1aafd4588b5cf01e1e368c214.jpg', 'extension': 'jpg'}, 1346710939: {'path': 'temp/1742794530_2972289_1346710939_ed846f23f3575a514dee1e7dace856a6.jpg', 'extension': 'jpg'}, 1346710940: {'path': 'temp/1742794530_2972289_1346710940_afba217791d5cb08667222ebd339d5dd.jpg', 'extension': 'jpg'}, 1346710941: {'path': 'temp/1742794530_2972289_1346710941_aef3d2ddd1811e36640d5095bd89d297.jpg', 'extension': 'jpg'}, 1346710809: {'path': 'temp/1742794530_2972289_1346710809_5746bd81a317cde1ddcdfe2ad1fbb84f.jpg', 'extension': 'jpg'}, 1346710821: {'path': 'temp/1742794530_2972289_1346710821_4babd6e3985cc162378faf180215fa22.jpg', 'extension': 'jpg'}, 1346710871: {'path': 'temp/1742794530_2972289_1346710871_4ab4c14baf0abb861dd1c3df7bd76006.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 = 21628663; (('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 = 21628663 group by h (('06', 13),) 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=21628663 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 (21628663) 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 (21628663) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24032025 21628663 Nombre de photos uploadées : 13 / 23040 (0%) 24032025 21628663 Nombre de photos taguées (types de déchets): 0 / 13 (0%) 24032025 21628663 Nombre de photos taguées (volume) : 0 / 13 (0%) [{'photo_id': 1346710821, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/4babd6e3985cc162378faf180215fa22.jpg', 'username': None, 'uploaded_at': 1742794329, 'text': 'image_24032025_06_30_04_10154.jpg'}, {'photo_id': 1346710809, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/5746bd81a317cde1ddcdfe2ad1fbb84f.jpg', 'username': None, 'uploaded_at': 1742794329, 'text': 'image_24032025_06_30_13_9128.jpg'}, {'photo_id': 1346710807, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/45796097321fe741e33c3fa9adde3f93.jpg', 'username': None, 'uploaded_at': 1742794329, 'text': 'image_24032025_06_30_23_10140.jpg'}, {'photo_id': 1346710806, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/142865d4f1eeb3df9dd29d46b0608323.jpg', 'username': None, 'uploaded_at': 1742794329, 'text': 'image_24032025_06_30_33_10144.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.1457672119140625e-06 elapsed_time : order_list_meta_photo_and_scores 1.4543533325195312e-05 ????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0005941390991210938 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21628663, '2025-03-24' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1682789,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02622818946838379 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= 1682789 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1682789, 'dashboard_run_id': 1690389, 'mtr_portfolio_id': 21627257, 'dashboard_result_id': 9565484, '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_P21627257_24-03-2025_06_04_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21627258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21627259, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21627260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21627261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21627262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21627263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21627264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21627265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21627266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21627267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21627268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21627269, 'pht': 3726}}"}, {'dashboat_entry_day': 1682789, 'dashboard_run_id': 1690389, 'mtr_portfolio_id': 21627692, 'dashboard_result_id': 9565485, '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_P21627692_24-03-2025_06_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21627693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21627694, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21627695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21627696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21627697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21627698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21627699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21627700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21627701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21627702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21627703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21627704, 'pht': 3726}}"}, {'dashboat_entry_day': 1682789, 'dashboard_run_id': 1690389, 'mtr_portfolio_id': 21628109, 'dashboard_result_id': 9565486, '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_P21628109_24-03-2025_06_34_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21628134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21628135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21628136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21628137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21628138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21628139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21628140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21628141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21628142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21628143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21628144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21628145, 'pht': 3726}}"}, {'dashboat_entry_day': 1682789, 'dashboard_run_id': 1690389, 'mtr_portfolio_id': 21628663, 'dashboard_result_id': 9565487, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': ''}"}] 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 = 21627257 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': 2683904, 'mtr_portfolio_id': 21627257, 'created_at': datetime.datetime(2025, 3, 24, 6, 4, 28), 'result': '0.07161588389273395', 'result_long': None, 'result_double': None}] Qualite : 0.07161588389273395 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21627257 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21627257_24-03-2025_06_04_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21627257 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_P21627257_24-03-2025_06_04_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21627258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21627259, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21627260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21627261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21627262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21627263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21627264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21627265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21627266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21627267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21627268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21627269, 'pht': 3726}}" where mtr_portfolio_id = 21627257 and dashboard_run_id = 1690389 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`=21627257 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9565484, 0.07161588389273395, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21627257_24-03-2025_06_04_29.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21627258, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21627259, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21627260, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21627261, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21627262, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21627263, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21627264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21627265, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21627266, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21627267, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21627268, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21627269, '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 = 21627692 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': 2683943, 'mtr_portfolio_id': 21627692, 'created_at': datetime.datetime(2025, 3, 24, 6, 18, 59), 'result': '0.053208171598301206', 'result_long': None, 'result_double': None}] Qualite : 0.053208171598301206 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21627692 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21627692_24-03-2025_06_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21627692 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_P21627692_24-03-2025_06_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21627693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21627694, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21627695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21627696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21627697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21627698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21627699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21627700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21627701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21627702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21627703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21627704, 'pht': 3726}}" where mtr_portfolio_id = 21627692 and dashboard_run_id = 1690389 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`=21627692 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9565485, 0.053208171598301206, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21627692_24-03-2025_06_19_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21627693, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21627694, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21627695, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21627696, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21627697, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21627698, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21627699, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21627700, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21627701, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21627702, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21627703, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21627704, '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 = 21628109 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': 2683976, 'mtr_portfolio_id': 21628109, 'created_at': datetime.datetime(2025, 3, 24, 6, 34, 59), 'result': '0.068073349335327', 'result_long': None, 'result_double': None}] Qualite : 0.068073349335327 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21628109 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21628109_24-03-2025_06_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21628109 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_P21628109_24-03-2025_06_34_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21628134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21628135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21628136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21628137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21628138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21628139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21628140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21628141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21628142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21628143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21628144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21628145, 'pht': 3726}}" where mtr_portfolio_id = 21628109 and dashboard_run_id = 1690389 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`=21628109 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9565486, 0.068073349335327, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21628109_24-03-2025_06_34_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21628134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21628135, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21628136, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21628137, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21628138, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21628139, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21628140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21628141, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21628142, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21628143, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21628144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21628145, '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 = 21628663 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': 2684015, 'mtr_portfolio_id': 21628663, 'created_at': datetime.datetime(2025, 3, 24, 6, 35, 29), 'result': '0.0585437538064549', 'result_long': None, 'result_double': None}] Qualite : 0.0585437538064549 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21628663 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21628663_24-03-2025_06_35_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21628663 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_P21628663_24-03-2025_06_35_30.pdf'}" where mtr_portfolio_id = 21628663 and dashboard_run_id = 1690389 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`=21628663 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9565487, 0.0585437538064549, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21628663_24-03-2025_06_35_30.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21628664, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21628665, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21628666, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21628667, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21628668, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21628669, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21628670, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21628671, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21628672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21628673, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21628674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21628675, '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 (21627257,21627692,21628109,21628663) result : ((1346707202,), (1346707206,), (1346707209,), (1346707290,), (1346707292,), (1346707294,), (1346707322,), (1346707331,), (1346707334,), (1346707338,), (1346707342,), (1346707365,), (1346707368,), (1346707371,), (1346707374,), (1346707378,), (1346707434,), (1346707437,), (1346707441,), (1346707445,), (1346707449,), (1346707470,), (1346707472,), (1346707474,), (1346707476,), (1346707479,), (1346707509,), (1346707517,), (1346707520,), (1346707523,), (1346707524,), (1346707527,), (1346707547,), (1346707549,), (1346707551,), (1346707553,), (1346707556,), (1346707589,), (1346707592,), (1346707595,), (1346707602,), (1346707631,), (1346707633,), (1346707635,), (1346707637,), (1346707640,), (1346707642,), (1346707875,), (1346707904,), (1346707931,), (1346707958,), (1346708002,), (1346708060,), (1346708213,), (1346708225,), (1346708229,), (1346708231,), (1346708256,), (1346708265,), (1346708273,), (1346708898,), (1346708926,), (1346708929,), (1346708956,), (1346708971,), (1346708976,), (1346708982,), (1346708984,), (1346708988,), (1346708991,), (1346708993,), (1346709199,), (1346709094,), (1346709135,), (1346709166,), (1346709369,), (1346709373,), (1346709378,), (1346709393,), (1346709401,), (1346709404,), (1346709423,), (1346709427,), (1346709430,), (1346709433,), (1346709466,), (1346709472,), (1346709482,), (1346709529,), (1346709532,), (1346709534,), (1346709537,), (1346709567,), (1346709571,), (1346709583,), (1346709598,), (1346709630,), (1346709634,), (1346709637,), (1346709640,), (1346709646,), (1346709669,), (1346709672,), (1346709675,), (1346709678,), (1346709728,), (1346709732,), (1346709737,), (1346709741,), (1346709746,), (1346709775,), (1346709778,), (1346709782,), (1346709789,), (1346709826,), (1346709829,), (1346709832,), (1346709835,), (1346709864,), (1346709868,), (1346709872,), (1346709876,), (1346709910,), (1346709913,), (1346709916,), (1346709919,), (1346709945,), (1346709959,), (1346709965,), (1346709969,), (1346709977,), (1346709986,), (1346710006,), (1346710009,), (1346710012,), (1346710015,), (1346710021,), (1346710081,), (1346710065,), (1346710073,), (1346710077,), (1346710117,), (1346710119,), (1346710121,), (1346710123,), (1346710128,), (1346710156,), (1346710159,), (1346710162,), (1346710210,), (1346710212,), (1346710214,), (1346710279,), (1346710282,), (1346710286,), (1346710296,), (1346710302,), (1346710356,), (1346710358,), (1346710360,), (1346710362,), (1346710367,), (1346710370,), (1346710394,), (1346710397,), (1346710400,), (1346710403,), (1346710407,), (1346710433,), (1346710435,), (1346710437,), (1346710439,), (1346710443,), (1346710446,), (1346710469,), (1346710472,), (1346710476,), (1346710479,), (1346710522,), (1346710528,), (1346710538,), (1346710542,), (1346710545,), (1346710547,), (1346710569,), (1346710572,), (1346710575,), (1346710578,), (1346710626,), (1346710635,), (1346710645,), (1346710671,), (1346710674,), (1346710676,), (1346710679,), (1346710725,), (1346710727,), (1346710728,), (1346710729,), (1346710732,), (1346710765,), (1346710767,), (1346710830,), (1346710804,), (1346710806,), (1346710807,), (1346710809,), (1346710821,), (1346710871,), (1346710874,), (1346710879,), (1346710886,), (1346710939,), (1346710940,), (1346710941,), (1346710942,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24032025': {'nb_upload': 13, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21628663]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1346710942, 1346710941, 1346710940, 1346710939, 1346710886, 1346710879, 1346710874, 1346710871, 1346710821, 1346710809, 1346710807, 1346710806, 1346710804] map_info['map_portfolio_photo'] : {21628663: [1346710942, 1346710941, 1346710940, 1346710939, 1346710886, 1346710879, 1346710874, 1346710871, 1346710821, 1346710809, 1346710807, 1346710806, 1346710804]} final : True mtd_id 4302 list_pids : [1346710942, 1346710941, 1346710940, 1346710939, 1346710886, 1346710879, 1346710874, 1346710871, 1346710821, 1346710809, 1346710807, 1346710806, 1346710804] Looping around the photos to save general results len do output : 1 /21628663Didn'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, '2684015') ('4302', '21628663', '1346710942', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710941', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710940', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710939', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710886', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710879', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710874', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710871', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710821', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710809', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710807', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710806', None, None, None, None, None, '2684015') ('4302', None, None, None, None, None, None, None, '2684015') ('4302', '21628663', '1346710804', None, None, None, None, None, '2684015') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21628663', 'None', None, None, None, None, '2684015'), ('4302', '21628663', '1346710942', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710941', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710940', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710939', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710886', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710879', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710874', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710871', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710821', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710809', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710807', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710806', None, None, None, None, None, '2684015'), ('4302', '21628663', '1346710804', None, None, None, None, None, '2684015')] time used for this insertion : 0.17451024055480957 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.39321231842041016 time spend to save output : 0.1748363971710205 total time spend for step 5 : 0.5680487155914307 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 (2684015) 2.29user 2.00system 0:07.73elapsed 55%CPU (0avgtext+0avgdata 161916maxresident)k 400inputs+9240outputs (14major+77154minor)pagefaults 0swaps