SELECT id, mtr_user_id, name, pb_hashtag_id, hashtag_id_list, button_legend_list, portfolio_id_lists, photo_hashtag_type, photo_desc_type, svm_limit, limit_tagging, is_public, live, created_at, updated_at, type_classification FROM MTRDatou.classification_theme WHERE `id` IN (2725) thcls : [{'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'}] thcl {'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'} Update svm_hashtag_type_desc : 5186 remove imagettes from duplicated photo Iterating over portfolio : 21646350 get user id for portfolio 21646350 get sub ptf for main ptf 21646350, type 3726 and hashtags ['kraft', 'flou', 'metal', 'papier', 'Teint_Dans_La_Masse', 'Carton_brun', 'environnement', 'mal_croppe', 'cartonnette', 'autre_refus', 'Carton_gris', 'plastique'] 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`=21646350 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','flou','metal','papier','Teint_Dans_La_Masse','Carton_brun','environnement','mal_croppe','cartonnette','autre_refus','Carton_gris','plastique')) 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`=21646350 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','flou','metal','papier','Teint_Dans_La_Masse','Carton_brun','environnement','mal_croppe','cartonnette','autre_refus','Carton_gris','plastique')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__24032025_14_15_04_10139_3726_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_14_15_04_10139_3726_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_14_15_04_10139_3726_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_14_15_04_10139_3726_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_14_15_04_10139_3726_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_14_15_04_10139_3726_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_14_15_04_10139_3726_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_14_15_04_10139_3726_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_14_15_04_10139_3726_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__24032025_14_15_04_10139_3726_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_14_15_04_10139_3726_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_14_15_04_10139_3726_plastique_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)[[21646350, 21646351, 3726, 0.5, 493202403, 979], [21646350, 21646352, 3726, 0.5, 492777938, 979], [21646350, 21646353, 3726, 0.5, 492628673, 979], [21646350, 21646354, 3726, 0.5, 492668766, 979], [21646350, 21646355, 3726, 0.5, 2107752385, 979], [21646350, 21646356, 3726, 0.5, 2107753024, 979], [21646350, 21646357, 3726, 0.5, 493012381, 979], [21646350, 21646358, 3726, 0.5, 2107755527, 979], [21646350, 21646359, 3726, 0.5, 702398920, 979], [21646350, 21646360, 3726, 0.5, 2107752406, 979], [21646350, 21646361, 3726, 0.5, 2107753020, 979], [21646350, 21646362, 3726, 0.5, 492725882, 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`=21646350 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','flou','metal','papier','Teint_Dans_La_Masse','Carton_brun','environnement','mal_croppe','cartonnette','autre_refus','Carton_gris','plastique')) 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`=21646350 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','flou','metal','papier','Teint_Dans_La_Masse','Carton_brun','environnement','mal_croppe','cartonnette','autre_refus','Carton_gris','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 21646350, 'sub_port_id': 21646351, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14182872, 'last_updated_at': datetime.datetime(2025, 3, 24, 14, 23, 26), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 14, 23, 26), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 14, 23, 26)}, 'flou': {'main_port_id': 21646350, 'sub_port_id': 21646352, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14182873, 'last_updated_at': datetime.datetime(2025, 3, 24, 14, 23, 26), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 14, 23, 26), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 14, 23, 26)}, 'metal': {'main_port_id': 21646350, 'sub_port_id': 21646353, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14182874, 'last_updated_at': datetime.datetime(2025, 3, 24, 14, 23, 26), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 14, 23, 26), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 14, 23, 26)}, 'papier': {'main_port_id': 21646350, 'sub_port_id': 21646354, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14182875, 'last_updated_at': datetime.datetime(2025, 3, 24, 14, 23, 26), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 14, 23, 26), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 14, 23, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 21646350, 'sub_port_id': 21646355, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14182876, 'last_updated_at': datetime.datetime(2025, 3, 24, 14, 23, 26), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 14, 23, 26), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 14, 23, 26)}, 'Carton_brun': {'main_port_id': 21646350, 'sub_port_id': 21646356, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14182877, 'last_updated_at': datetime.datetime(2025, 3, 24, 14, 23, 26), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 14, 23, 26), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 14, 23, 26)}, 'environnement': {'main_port_id': 21646350, 'sub_port_id': 21646357, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14182878, 'last_updated_at': datetime.datetime(2025, 3, 24, 14, 23, 26), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 14, 23, 26), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 14, 23, 26)}, 'mal_croppe': {'main_port_id': 21646350, 'sub_port_id': 21646358, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14182879, 'last_updated_at': datetime.datetime(2025, 3, 24, 14, 23, 26), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 14, 23, 26), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 14, 23, 26)}, 'cartonnette': {'main_port_id': 21646350, 'sub_port_id': 21646359, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14182880, 'last_updated_at': datetime.datetime(2025, 3, 24, 14, 23, 26), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 14, 23, 26), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 14, 23, 26)}, 'autre_refus': {'main_port_id': 21646350, 'sub_port_id': 21646360, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14182881, 'last_updated_at': datetime.datetime(2025, 3, 24, 14, 23, 26), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 14, 23, 26), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 14, 23, 26)}, 'Carton_gris': {'main_port_id': 21646350, 'sub_port_id': 21646361, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14182882, 'last_updated_at': datetime.datetime(2025, 3, 24, 14, 23, 26), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 14, 23, 26), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 14, 23, 26)}, 'plastique': {'main_port_id': 21646350, 'sub_port_id': 21646362, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14182883, 'last_updated_at': datetime.datetime(2025, 3, 24, 14, 23, 26), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 14, 23, 26), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 14, 23, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 21646351 , 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=21646350 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='kraft' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21646351) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21646350) result : ((1346796868,), (1346796874,), (1346796877,), (1346796892,), (1346796912,), (1346797004,), (1346797013,), (1346797014,), (1346797142,), (1346797146,), (1346797153,), (1346797167,), (1346797243,), (1346797248,), (1346797326,), (1346797329,), (1346797333,), (1346797360,), (1346797371,), (1346797435,), (1346797441,), (1346797445,), (1346797503,), (1346797518,), (1346797524,)) 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 21646352 , 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=21646350 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='flou' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21646352) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21646350) result : ((1346796868,), (1346796874,), (1346796877,), (1346796892,), (1346796912,), (1346797004,), (1346797013,), (1346797014,), (1346797142,), (1346797146,), (1346797153,), (1346797167,), (1346797243,), (1346797248,), (1346797326,), (1346797329,), (1346797333,), (1346797360,), (1346797371,), (1346797435,), (1346797441,), (1346797445,), (1346797503,), (1346797518,), (1346797524,)) 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 21646353 , 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=21646350 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='metal' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21646353) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21646350) result : ((1346796868,), (1346796874,), (1346796877,), (1346796892,), (1346796912,), (1346797004,), (1346797013,), (1346797014,), (1346797142,), (1346797146,), (1346797153,), (1346797167,), (1346797243,), (1346797248,), (1346797326,), (1346797329,), (1346797333,), (1346797360,), (1346797371,), (1346797435,), (1346797441,), (1346797445,), (1346797503,), (1346797518,), (1346797524,)) 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 21646354 , 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=21646350 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='papier' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21646354) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21646350) result : ((1346796868,), (1346796874,), (1346796877,), (1346796892,), (1346796912,), (1346797004,), (1346797013,), (1346797014,), (1346797142,), (1346797146,), (1346797153,), (1346797167,), (1346797243,), (1346797248,), (1346797326,), (1346797329,), (1346797333,), (1346797360,), (1346797371,), (1346797435,), (1346797441,), (1346797445,), (1346797503,), (1346797518,), (1346797524,)) 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 21646355 , 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=21646350 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 (21646355) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21646350) result : ((1346796868,), (1346796874,), (1346796877,), (1346796892,), (1346796912,), (1346797004,), (1346797013,), (1346797014,), (1346797142,), (1346797146,), (1346797153,), (1346797167,), (1346797243,), (1346797248,), (1346797326,), (1346797329,), (1346797333,), (1346797360,), (1346797371,), (1346797435,), (1346797441,), (1346797445,), (1346797503,), (1346797518,), (1346797524,)) 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 21646356 , 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=21646350 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_brun' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21646356) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21646350) result : ((1346796868,), (1346796874,), (1346796877,), (1346796892,), (1346796912,), (1346797004,), (1346797013,), (1346797014,), (1346797142,), (1346797146,), (1346797153,), (1346797167,), (1346797243,), (1346797248,), (1346797326,), (1346797329,), (1346797333,), (1346797360,), (1346797371,), (1346797435,), (1346797441,), (1346797445,), (1346797503,), (1346797518,), (1346797524,)) 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 21646357 , 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=21646350 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='environnement' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21646357) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21646350) result : ((1346796868,), (1346796874,), (1346796877,), (1346796892,), (1346796912,), (1346797004,), (1346797013,), (1346797014,), (1346797142,), (1346797146,), (1346797153,), (1346797167,), (1346797243,), (1346797248,), (1346797326,), (1346797329,), (1346797333,), (1346797360,), (1346797371,), (1346797435,), (1346797441,), (1346797445,), (1346797503,), (1346797518,), (1346797524,)) 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 21646358 , 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=21646350 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='mal_croppe' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21646358) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21646350) result : ((1346796868,), (1346796874,), (1346796877,), (1346796892,), (1346796912,), (1346797004,), (1346797013,), (1346797014,), (1346797142,), (1346797146,), (1346797153,), (1346797167,), (1346797243,), (1346797248,), (1346797326,), (1346797329,), (1346797333,), (1346797360,), (1346797371,), (1346797435,), (1346797441,), (1346797445,), (1346797503,), (1346797518,), (1346797524,)) 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 21646359 , 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=21646350 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 (21646359) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21646350) result : ((1346796868,), (1346796874,), (1346796877,), (1346796892,), (1346796912,), (1346797004,), (1346797013,), (1346797014,), (1346797142,), (1346797146,), (1346797153,), (1346797167,), (1346797243,), (1346797248,), (1346797326,), (1346797329,), (1346797333,), (1346797360,), (1346797371,), (1346797435,), (1346797441,), (1346797445,), (1346797503,), (1346797518,), (1346797524,)) 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 21646360 , 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=21646350 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 (21646360) result : ((1346797480,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21646350) result : ((1346796868,), (1346796874,), (1346796877,), (1346796892,), (1346796912,), (1346797004,), (1346797013,), (1346797014,), (1346797142,), (1346797146,), (1346797153,), (1346797167,), (1346797243,), (1346797248,), (1346797326,), (1346797329,), (1346797333,), (1346797360,), (1346797371,), (1346797435,), (1346797441,), (1346797445,), (1346797503,), (1346797518,), (1346797524,)) 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 21646361 , 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=21646350 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 (21646361) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21646350) result : ((1346796868,), (1346796874,), (1346796877,), (1346796892,), (1346796912,), (1346797004,), (1346797013,), (1346797014,), (1346797142,), (1346797146,), (1346797153,), (1346797167,), (1346797243,), (1346797248,), (1346797326,), (1346797329,), (1346797333,), (1346797360,), (1346797371,), (1346797435,), (1346797441,), (1346797445,), (1346797503,), (1346797518,), (1346797524,)) 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 21646362 , 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=21646350 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='plastique' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21646362) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21646350) result : ((1346796868,), (1346796874,), (1346796877,), (1346796892,), (1346796912,), (1346797004,), (1346797013,), (1346797014,), (1346797142,), (1346797146,), (1346797153,), (1346797167,), (1346797243,), (1346797248,), (1346797326,), (1346797329,), (1346797333,), (1346797360,), (1346797371,), (1346797435,), (1346797441,), (1346797445,), (1346797503,), (1346797518,), (1346797524,)) 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`=21646350 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','flou','metal','papier','Teint_Dans_La_Masse','Carton_brun','environnement','mal_croppe','cartonnette','autre_refus','Carton_gris','plastique')) 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`=21646350 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','flou','metal','papier','Teint_Dans_La_Masse','Carton_brun','environnement','mal_croppe','cartonnette','autre_refus','Carton_gris','plastique')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__24032025_14_15_04_10139_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_14_15_04_10139_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_14_15_04_10139_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_14_15_04_10139_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_14_15_04_10139_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_14_15_04_10139_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_14_15_04_10139_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_14_15_04_10139_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_14_15_04_10139_4417_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__24032025_14_15_04_10139_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_14_15_04_10139_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_14_15_04_10139_4417_plastique_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)[[21646350, 21646363, 4417, 0.5, 493202403, 979], [21646350, 21646364, 4417, 0.5, 492777938, 979], [21646350, 21646365, 4417, 0.5, 492628673, 979], [21646350, 21646366, 4417, 0.5, 492668766, 979], [21646350, 21646367, 4417, 0.5, 2107752385, 979], [21646350, 21646368, 4417, 0.5, 2107753024, 979], [21646350, 21646369, 4417, 0.5, 493012381, 979], [21646350, 21646370, 4417, 0.5, 2107755527, 979], [21646350, 21646371, 4417, 0.5, 702398920, 979], [21646350, 21646372, 4417, 0.5, 2107752406, 979], [21646350, 21646373, 4417, 0.5, 2107753020, 979], [21646350, 21646374, 4417, 0.5, 492725882, 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`=21646350 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','flou','metal','papier','Teint_Dans_La_Masse','Carton_brun','environnement','mal_croppe','cartonnette','autre_refus','Carton_gris','plastique')) 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`=21646350 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','flou','metal','papier','Teint_Dans_La_Masse','Carton_brun','environnement','mal_croppe','cartonnette','autre_refus','Carton_gris','plastique')) AND mptpi.`min_score`=0.5 To do returned map {'kraft': {'main_port_id': 21646350, 'sub_port_id': 21646363, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14182884, 'last_updated_at': datetime.datetime(2025, 3, 24, 14, 23, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 14, 23, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 14, 23, 28)}, 'flou': {'main_port_id': 21646350, 'sub_port_id': 21646364, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14182885, 'last_updated_at': datetime.datetime(2025, 3, 24, 14, 23, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 14, 23, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 14, 23, 28)}, 'metal': {'main_port_id': 21646350, 'sub_port_id': 21646365, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14182886, 'last_updated_at': datetime.datetime(2025, 3, 24, 14, 23, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 14, 23, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 14, 23, 28)}, 'papier': {'main_port_id': 21646350, 'sub_port_id': 21646366, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14182887, 'last_updated_at': datetime.datetime(2025, 3, 24, 14, 23, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 14, 23, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 14, 23, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 21646350, 'sub_port_id': 21646367, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14182888, 'last_updated_at': datetime.datetime(2025, 3, 24, 14, 23, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 14, 23, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 14, 23, 28)}, 'Carton_brun': {'main_port_id': 21646350, 'sub_port_id': 21646368, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14182889, 'last_updated_at': datetime.datetime(2025, 3, 24, 14, 23, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 14, 23, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 14, 23, 28)}, 'environnement': {'main_port_id': 21646350, 'sub_port_id': 21646369, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14182890, 'last_updated_at': datetime.datetime(2025, 3, 24, 14, 23, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 14, 23, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 14, 23, 28)}, 'mal_croppe': {'main_port_id': 21646350, 'sub_port_id': 21646370, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14182891, 'last_updated_at': datetime.datetime(2025, 3, 24, 14, 23, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 14, 23, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 14, 23, 28)}, 'cartonnette': {'main_port_id': 21646350, 'sub_port_id': 21646371, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14182892, 'last_updated_at': datetime.datetime(2025, 3, 24, 14, 23, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 14, 23, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 14, 23, 28)}, 'autre_refus': {'main_port_id': 21646350, 'sub_port_id': 21646372, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14182893, 'last_updated_at': datetime.datetime(2025, 3, 24, 14, 23, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 14, 23, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 14, 23, 28)}, 'Carton_gris': {'main_port_id': 21646350, 'sub_port_id': 21646373, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14182894, 'last_updated_at': datetime.datetime(2025, 3, 24, 14, 23, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 14, 23, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 14, 23, 28)}, 'plastique': {'main_port_id': 21646350, 'sub_port_id': 21646374, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14182895, 'last_updated_at': datetime.datetime(2025, 3, 24, 14, 23, 28), 'last_updated_at_desc': datetime.datetime(2025, 3, 24, 14, 23, 28), 'last_updated_at_asc': datetime.datetime(2025, 3, 24, 14, 23, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21646363,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21646351 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21646364,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21646352 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21646365,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21646353 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21646366,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21646354 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21646367,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21646355 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21646368,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21646356 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21646369,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21646357 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21646370,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21646358 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21646371,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21646359 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21646372,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21646360 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21646373,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21646361 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21646374,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21646362 lien utilise dans velours : https://www.fotonower.com/velours/21646363,21646364,21646365,21646366,21646367,21646368,21646369,21646370,21646371,21646372,21646373,21646374?tags=kraft,flou,metal,papier,Teint_Dans_La_Masse,Carton_brun,environnement,mal_croppe,cartonnette,autre_refus,Carton_gris,plastique After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21646350]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1346797524, 1346797518, 1346797503, 1346797445, 1346797441, 1346797435, 1346797371, 1346797360, 1346797333, 1346797329, 1346797326, 1346797248, 1346797243, 1346797167, 1346797153, 1346797146, 1346797142, 1346797014, 1346797013, 1346797004, 1346796912, 1346796892, 1346796877, 1346796874, 1346796868] map_info['map_portfolio_photo'] : {21646350: [1346797524, 1346797518, 1346797503, 1346797445, 1346797441, 1346797435, 1346797371, 1346797360, 1346797333, 1346797329, 1346797326, 1346797248, 1346797243, 1346797167, 1346797153, 1346797146, 1346797142, 1346797014, 1346797013, 1346797004, 1346796912, 1346796892, 1346796877, 1346796874, 1346796868]} final : False mtd_id 4302 list_pids : [1346797524, 1346797518, 1346797503, 1346797445, 1346797441, 1346797435, 1346797371, 1346797360, 1346797333, 1346797329, 1346797326, 1346797248, 1346797243, 1346797167, 1346797153, 1346797146, 1346797142, 1346797014, 1346797013, 1346797004, 1346796912, 1346796892, 1346796877, 1346796874, 1346796868] Looping around the photos to save general results len do output : 1 /21646350. 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, '2685534') ('4302', '21646350', '1346797524', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797518', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797503', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797445', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797441', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797435', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797371', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797360', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797333', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797329', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797326', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797248', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797243', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797167', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797153', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797146', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797142', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797014', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797013', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797004', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346796912', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346796892', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346796877', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346796874', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346796868', None, None, None, None, None, '2685534') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 26 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, '21646350', "{'kraft': 21646351, 'flou': 21646352, 'metal': 21646353, 'papier': 21646354, 'Teint_Dans_La_Masse': 21646355, 'Carton_brun': 21646356, 'environnement': 21646357, 'mal_croppe': 21646358, 'cartonnette': 21646359, 'autre_refus': 21646360, 'Carton_gris': 21646361, 'plastique': 21646362}", None, None, None, None, '2685534'), ('4302', '21646350', '1346797524', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797518', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797503', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797445', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797441', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797435', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797371', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797360', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797333', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797329', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797326', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797248', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797243', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797167', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797153', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797146', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797142', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797014', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797013', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797004', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346796912', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346796892', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346796877', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346796874', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346796868', None, None, None, None, None, '2685534')] time used for this insertion : 0.019283533096313477 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.0732028484344482 time spend to save output : 0.01973581314086914 total time spend for step 1 : 2.0929386615753174 step2:final Mon Mar 24 14:23:28 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 (21646350) 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 21646350 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1346796912,1346796892,1346796877,1346796874,1346796868,1346797014,1346797013,1346797004,1346797248,1346797243,1346797167,1346797153,1346797146,1346797142,1346797371,1346797360,1346797333,1346797329,1346797326,1346797445,1346797441,1346797435,1346797524,1346797518,1346797503); 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([21646350]) Inside saveOutput : final : False verbose : True original output for save of step final : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',)} new output for save of step final : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',)} [1346797524, 1346797518, 1346797503, 1346797445, 1346797441, 1346797435, 1346797371, 1346797360, 1346797333, 1346797329, 1346797326, 1346797248, 1346797243, 1346797167, 1346797153, 1346797146, 1346797142, 1346797014, 1346797013, 1346797004, 1346796912, 1346796892, 1346796877, 1346796874, 1346796868] map_info['map_portfolio_photo'] : {21646350: [1346797524, 1346797518, 1346797503, 1346797445, 1346797441, 1346797435, 1346797371, 1346797360, 1346797333, 1346797329, 1346797326, 1346797248, 1346797243, 1346797167, 1346797153, 1346797146, 1346797142, 1346797014, 1346797013, 1346797004, 1346796912, 1346796892, 1346796877, 1346796874, 1346796868]} final : False mtd_id 4302 list_pids : [1346797524, 1346797518, 1346797503, 1346797445, 1346797441, 1346797435, 1346797371, 1346797360, 1346797333, 1346797329, 1346797326, 1346797248, 1346797243, 1346797167, 1346797153, 1346797146, 1346797142, 1346797014, 1346797013, 1346797004, 1346796912, 1346796892, 1346796877, 1346796874, 1346796868] Looping around the photos to save general results len do output : 25 /1346797524.Didn't retrieve data . /1346797518.Didn't retrieve data . /1346797503.Didn't retrieve data . /1346797445.Didn't retrieve data . /1346797441.Didn't retrieve data . /1346797435.Didn't retrieve data . /1346797371.Didn't retrieve data . /1346797360.Didn't retrieve data . /1346797333.Didn't retrieve data . /1346797329.Didn't retrieve data . /1346797326.Didn't retrieve data . /1346797248.Didn't retrieve data . /1346797243.Didn't retrieve data . /1346797167.Didn't retrieve data . /1346797153.Didn't retrieve data . /1346797146.Didn't retrieve data . /1346797142.Didn't retrieve data . /1346797014.Didn't retrieve data . /1346797013.Didn't retrieve data . /1346797004.Didn't retrieve data . /1346796912.Didn't retrieve data . /1346796892.Didn't retrieve data . /1346796877.Didn't retrieve data . /1346796874.Didn't retrieve data . /1346796868.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, '2685534') ('4302', '21646350', '1346797524', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797518', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797503', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797445', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797441', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797435', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797371', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797360', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797333', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797329', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797326', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797248', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797243', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797167', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797153', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797146', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797142', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797014', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797013', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797004', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346796912', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346796892', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346796877', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346796874', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346796868', None, None, None, None, None, '2685534') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 75 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', '21646350', '1346797524', '0.19530434820876508', None, None, None, None, '2685534'), ('4302', '21646350', '1346797518', '0.19530434820876508', None, None, None, None, '2685534'), ('4302', '21646350', '1346797503', '0.19530434820876508', None, None, None, None, '2685534'), ('4302', '21646350', '1346797445', '0.19530434820876508', None, None, None, None, '2685534'), ('4302', '21646350', '1346797441', '0.19530434820876508', None, None, None, None, '2685534'), ('4302', '21646350', '1346797435', '0.19530434820876508', None, None, None, None, '2685534'), ('4302', '21646350', '1346797371', '0.19530434820876508', None, None, None, None, '2685534'), ('4302', '21646350', '1346797360', '0.19530434820876508', None, None, None, None, '2685534'), ('4302', '21646350', '1346797333', '0.19530434820876508', None, None, None, None, '2685534'), ('4302', '21646350', '1346797329', '0.19530434820876508', None, None, None, None, '2685534'), ('4302', '21646350', '1346797326', '0.19530434820876508', None, None, None, None, '2685534'), ('4302', '21646350', '1346797248', '0.19530434820876508', None, None, None, None, '2685534'), ('4302', '21646350', '1346797243', '0.19530434820876508', None, None, None, None, '2685534'), ('4302', '21646350', '1346797167', '0.19530434820876508', None, None, None, None, '2685534'), ('4302', '21646350', '1346797153', '0.19530434820876508', None, None, None, None, '2685534'), ('4302', '21646350', '1346797146', '0.19530434820876508', None, None, None, None, '2685534'), ('4302', '21646350', '1346797142', '0.19530434820876508', None, None, None, None, '2685534'), ('4302', '21646350', '1346797014', '0.19530434820876508', None, None, None, None, '2685534'), ('4302', '21646350', '1346797013', '0.19530434820876508', None, None, None, None, '2685534'), ('4302', '21646350', '1346797004', '0.19530434820876508', None, None, None, None, '2685534'), ('4302', '21646350', '1346796912', '0.19530434820876508', None, None, None, None, '2685534'), ('4302', '21646350', '1346796892', '0.19530434820876508', None, None, None, None, '2685534'), ('4302', '21646350', '1346796877', '0.19530434820876508', None, None, None, None, '2685534'), ('4302', '21646350', '1346796874', '0.19530434820876508', None, None, None, None, '2685534'), ('4302', '21646350', '1346796868', '0.19530434820876508', None, None, None, None, '2685534')] time used for this insertion : 0.018271684646606445 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.031116724014282227 time spend to save output : 0.019732236862182617 total time spend for step 2 : 0.050848960876464844 step3:velours_tree Mon Mar 24 14:23:28 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 : {21646350: [{'kraft': 21646351, 'flou': 21646352, 'metal': 21646353, 'papier': 21646354, 'Teint_Dans_La_Masse': 21646355, 'Carton_brun': 21646356, 'environnement': 21646357, 'mal_croppe': 21646358, 'cartonnette': 21646359, 'autre_refus': 21646360, 'Carton_gris': 21646361, 'plastique': 21646362}]} input_args_next_step : {21646350: ()} output_args : {21646350: [{'kraft': 21646351, 'flou': 21646352, 'metal': 21646353, 'papier': 21646354, 'Teint_Dans_La_Masse': 21646355, 'Carton_brun': 21646356, 'environnement': 21646357, 'mal_croppe': 21646358, 'cartonnette': 21646359, 'autre_refus': 21646360, 'Carton_gris': 21646361, 'plastique': 21646362}]} args : 21646350 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 : ({'kraft': 21646351, 'flou': 21646352, 'metal': 21646353, 'papier': 21646354, 'Teint_Dans_La_Masse': 21646355, 'Carton_brun': 21646356, 'environnement': 21646357, 'mal_croppe': 21646358, 'cartonnette': 21646359, 'autre_refus': 21646360, 'Carton_gris': 21646361, 'plastique': 21646362},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21646350) 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([21646350]) 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.46602392196655273 time spend to save output : 4.57763671875e-05 total time spend for step 3 : 0.46606969833374023 step4:send_mail_cod Mon Mar 24 14:23:28 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 : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',)} input_args_next_step : {1346797524: ()} output_args : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',)} args : 1346797524 depend.output_id : 0 input_args_next_step : {1346797524: ('0.19530434820876508',), 1346797518: ()} output_args : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',)} args : 1346797518 depend.output_id : 0 input_args_next_step : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ()} output_args : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',)} args : 1346797503 depend.output_id : 0 input_args_next_step : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ()} output_args : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',)} args : 1346797445 depend.output_id : 0 input_args_next_step : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ()} output_args : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',)} args : 1346797441 depend.output_id : 0 input_args_next_step : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ()} output_args : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',)} args : 1346797435 depend.output_id : 0 input_args_next_step : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ()} output_args : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',)} args : 1346797371 depend.output_id : 0 input_args_next_step : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ()} output_args : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',)} args : 1346797360 depend.output_id : 0 input_args_next_step : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ()} output_args : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',)} args : 1346797333 depend.output_id : 0 input_args_next_step : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ()} output_args : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',)} args : 1346797329 depend.output_id : 0 input_args_next_step : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ()} output_args : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',)} args : 1346797326 depend.output_id : 0 input_args_next_step : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ()} output_args : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',)} args : 1346797248 depend.output_id : 0 input_args_next_step : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ()} output_args : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',)} args : 1346797243 depend.output_id : 0 input_args_next_step : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ()} output_args : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',)} args : 1346797167 depend.output_id : 0 input_args_next_step : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ()} output_args : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',)} args : 1346797153 depend.output_id : 0 input_args_next_step : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ()} output_args : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',)} args : 1346797146 depend.output_id : 0 input_args_next_step : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ()} output_args : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',)} args : 1346797142 depend.output_id : 0 input_args_next_step : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ()} output_args : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',)} args : 1346797014 depend.output_id : 0 input_args_next_step : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ()} output_args : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',)} args : 1346797013 depend.output_id : 0 input_args_next_step : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ()} output_args : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',)} args : 1346797004 depend.output_id : 0 input_args_next_step : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ()} output_args : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',)} args : 1346796912 depend.output_id : 0 input_args_next_step : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ()} output_args : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',)} args : 1346796892 depend.output_id : 0 input_args_next_step : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ()} output_args : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',)} args : 1346796877 depend.output_id : 0 input_args_next_step : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ()} output_args : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',)} args : 1346796874 depend.output_id : 0 input_args_next_step : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ()} output_args : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',)} args : 1346796868 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 : {21646350: [{'kraft': 21646351, 'flou': 21646352, 'metal': 21646353, 'papier': 21646354, 'Teint_Dans_La_Masse': 21646355, 'Carton_brun': 21646356, 'environnement': 21646357, 'mal_croppe': 21646358, 'cartonnette': 21646359, 'autre_refus': 21646360, 'Carton_gris': 21646361, 'plastique': 21646362}]} input_args_next_step : {1346797524: ('0.19530434820876508',), 1346797518: ('0.19530434820876508',), 1346797503: ('0.19530434820876508',), 1346797445: ('0.19530434820876508',), 1346797441: ('0.19530434820876508',), 1346797435: ('0.19530434820876508',), 1346797371: ('0.19530434820876508',), 1346797360: ('0.19530434820876508',), 1346797333: ('0.19530434820876508',), 1346797329: ('0.19530434820876508',), 1346797326: ('0.19530434820876508',), 1346797248: ('0.19530434820876508',), 1346797243: ('0.19530434820876508',), 1346797167: ('0.19530434820876508',), 1346797153: ('0.19530434820876508',), 1346797146: ('0.19530434820876508',), 1346797142: ('0.19530434820876508',), 1346797014: ('0.19530434820876508',), 1346797013: ('0.19530434820876508',), 1346797004: ('0.19530434820876508',), 1346796912: ('0.19530434820876508',), 1346796892: ('0.19530434820876508',), 1346796877: ('0.19530434820876508',), 1346796874: ('0.19530434820876508',), 1346796868: ('0.19530434820876508',), 21646350: ()} output_args : {21646350: [{'kraft': 21646351, 'flou': 21646352, 'metal': 21646353, 'papier': 21646354, 'Teint_Dans_La_Masse': 21646355, 'Carton_brun': 21646356, 'environnement': 21646357, 'mal_croppe': 21646358, 'cartonnette': 21646359, 'autre_refus': 21646360, 'Carton_gris': 21646361, 'plastique': 21646362}]} args : 21646350 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 :26, first value : ('0.19530434820876508',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21646350) 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 (1346797524,1346797518,1346797503,1346797445,1346797441,1346797435,1346797371,1346797360,1346797333,1346797329,1346797326,1346797248,1346797243,1346797167,1346797153,1346797146,1346797142,1346797014,1346797013,1346797004,1346796912,1346796892,1346796877,1346796874,1346796868) Found this number of photos: 25 ##### Call download_photos : nb_thread : 5 begin to download photo : 1346796868 begin to download photo : 1346797013 begin to download photo : 1346797243 begin to download photo : 1346797371 begin to download photo : 1346797524 download finish for photo 1346797524 download finish for photo 1346797243 begin to download photo : 1346797248 download finish for photo 1346797371 begin to download photo : 1346797435 download finish for photo 1346797013 begin to download photo : 1346797014 download finish for photo 1346796868 begin to download photo : 1346796874 download finish for photo 1346797435 begin to download photo : 1346797441 download finish for photo 1346797014 begin to download photo : 1346797142 download finish for photo 1346797248 begin to download photo : 1346797326 download finish for photo 1346796874 begin to download photo : 1346796877 download finish for photo 1346797441 begin to download photo : 1346797445 download finish for photo 1346797326 begin to download photo : 1346797329 download finish for photo 1346796877 begin to download photo : 1346796892 download finish for photo 1346797142 begin to download photo : 1346797146 download finish for photo 1346797329 begin to download photo : 1346797333 download finish for photo 1346797445 begin to download photo : 1346797503 download finish for photo 1346796892 begin to download photo : 1346796912 download finish for photo 1346797146 begin to download photo : 1346797153 download finish for photo 1346797333 begin to download photo : 1346797360 download finish for photo 1346797503 begin to download photo : 1346797518 download finish for photo 1346796912 begin to download photo : 1346797004 download finish for photo 1346797153 begin to download photo : 1346797167 download finish for photo 1346797518 download finish for photo 1346797360 download finish for photo 1346797004 download finish for photo 1346797167 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette216463511742822609/ imagette216463521742822609/ imagette216463531742822609/ imagette216463581742822609/ imagette216463591742822609/ length of list_filenames : 25 ; length of list_pids : 25 ; length of list_args : 25 results_Auto_P21646350_24-03-2025_14_23_29.pdf 21646351 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=21646351 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216463511742822609 21646352 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=21646352 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216463521742822609 21646353 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=21646353 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216463531742822609 21646358 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=21646358 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216463581742822609 21646359 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=21646359 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216463591742822609 21646360 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=21646360 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1346797480: '1742822442_1127237_1346797004_fa194ce4747bc91a8266f689cf18961c_rle_crop_3726768934_0.png'} change filename to text .imagette216463601742822609/ imagette216463601742822609/1742822442_1127237_1346797004_fa194ce4747bc91a8266f689cf18961c_rle_crop_3726768934_0.png.png imagette216463621742822609/ imagette216463551742822609/ imagette216463561742822609/ imagette216463611742822609/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/799608282addf991993aed8a33e6c4ab_55340885.png imagette216463601742822609 21646362 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=21646362 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216463621742822609 21646355 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=21646355 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216463551742822609 21646356 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=21646356 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216463561742822609 21646361 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=21646361 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216463611742822609 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21646350 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21646363,21646364,21646365,21646366,21646367,21646368,21646369,21646370,21646371,21646372,21646373,21646374?tags=kraft,flou,metal,papier,Teint_Dans_La_Masse,Carton_brun,environnement,mal_croppe,cartonnette,autre_refus,Carton_gris,plastique your option no_mail is active, we will not send the real mail to your client args[1346797524] : ('0.19530434820876508',) no score found for photo 1346797524 We are sending mail with results at report@fotonower.com args[1346797518] : ('0.19530434820876508',) no score found for photo 1346797518 We are sending mail with results at report@fotonower.com args[1346797503] : ('0.19530434820876508',) no score found for photo 1346797503 We are sending mail with results at report@fotonower.com args[1346797445] : ('0.19530434820876508',) no score found for photo 1346797445 We are sending mail with results at report@fotonower.com args[1346797441] : ('0.19530434820876508',) no score found for photo 1346797441 We are sending mail with results at report@fotonower.com args[1346797435] : ('0.19530434820876508',) no score found for photo 1346797435 We are sending mail with results at report@fotonower.com args[1346797371] : ('0.19530434820876508',) no score found for photo 1346797371 We are sending mail with results at report@fotonower.com args[1346797360] : ('0.19530434820876508',) no score found for photo 1346797360 We are sending mail with results at report@fotonower.com args[1346797333] : ('0.19530434820876508',) no score found for photo 1346797333 We are sending mail with results at report@fotonower.com args[1346797329] : ('0.19530434820876508',) no score found for photo 1346797329 We are sending mail with results at report@fotonower.com args[1346797326] : ('0.19530434820876508',) no score found for photo 1346797326 We are sending mail with results at report@fotonower.com args[1346797248] : ('0.19530434820876508',) no score found for photo 1346797248 We are sending mail with results at report@fotonower.com args[1346797243] : ('0.19530434820876508',) no score found for photo 1346797243 We are sending mail with results at report@fotonower.com args[1346797167] : ('0.19530434820876508',) no score found for photo 1346797167 We are sending mail with results at report@fotonower.com args[1346797153] : ('0.19530434820876508',) no score found for photo 1346797153 We are sending mail with results at report@fotonower.com args[1346797146] : ('0.19530434820876508',) no score found for photo 1346797146 We are sending mail with results at report@fotonower.com args[1346797142] : ('0.19530434820876508',) no score found for photo 1346797142 We are sending mail with results at report@fotonower.com args[1346797014] : ('0.19530434820876508',) no score found for photo 1346797014 We are sending mail with results at report@fotonower.com args[1346797013] : ('0.19530434820876508',) no score found for photo 1346797013 We are sending mail with results at report@fotonower.com args[1346797004] : ('0.19530434820876508',) no score found for photo 1346797004 We are sending mail with results at report@fotonower.com args[1346796912] : ('0.19530434820876508',) no score found for photo 1346796912 We are sending mail with results at report@fotonower.com args[1346796892] : ('0.19530434820876508',) no score found for photo 1346796892 We are sending mail with results at report@fotonower.com args[1346796877] : ('0.19530434820876508',) no score found for photo 1346796877 We are sending mail with results at report@fotonower.com args[1346796874] : ('0.19530434820876508',) no score found for photo 1346796874 We are sending mail with results at report@fotonower.com args[1346796868] : ('0.19530434820876508',) no score found for photo 1346796868 We are sending mail with results at report@fotonower.com refus_total : 0.19530434820876508 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=21646350 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_P21646350_24-03-2025_14_23_29.pdf results_Auto_P21646350_24-03-2025_14_23_29.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21646350_24-03-2025_14_23_29.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','21646350','results_Auto_P21646350_24-03-2025_14_23_29.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21646350_24-03-2025_14_23_29.pdf','pdf','','0.21','0.19530434820876508') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21646350]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1346797524, 1346797518, 1346797503, 1346797445, 1346797441, 1346797435, 1346797371, 1346797360, 1346797333, 1346797329, 1346797326, 1346797248, 1346797243, 1346797167, 1346797153, 1346797146, 1346797142, 1346797014, 1346797013, 1346797004, 1346796912, 1346796892, 1346796877, 1346796874, 1346796868] map_info['map_portfolio_photo'] : {21646350: [1346797524, 1346797518, 1346797503, 1346797445, 1346797441, 1346797435, 1346797371, 1346797360, 1346797333, 1346797329, 1346797326, 1346797248, 1346797243, 1346797167, 1346797153, 1346797146, 1346797142, 1346797014, 1346797013, 1346797004, 1346796912, 1346796892, 1346796877, 1346796874, 1346796868]} final : False mtd_id 4302 list_pids : [1346797524, 1346797518, 1346797503, 1346797445, 1346797441, 1346797435, 1346797371, 1346797360, 1346797333, 1346797329, 1346797326, 1346797248, 1346797243, 1346797167, 1346797153, 1346797146, 1346797142, 1346797014, 1346797013, 1346797004, 1346796912, 1346796892, 1346796877, 1346796874, 1346796868] 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, '2685534') ('4302', '21646350', '1346797524', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797518', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797503', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797445', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797441', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797435', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797371', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797360', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797333', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797329', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797326', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797248', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797243', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797167', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797153', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797146', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797142', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797014', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797013', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797004', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346796912', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346796892', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346796877', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346796874', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346796868', None, None, None, None, None, '2685534') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 25 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', '21646350', '1346797524', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797518', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797503', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797445', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797441', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797435', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797371', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797360', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797333', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797329', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797326', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797248', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797243', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797167', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797153', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797146', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797142', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797014', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797013', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797004', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346796912', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346796892', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346796877', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346796874', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346796868', None, None, None, None, None, '2685534')] time used for this insertion : 0.014565467834472656 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.3961305618286133 time spend to save output : 0.014792442321777344 total time spend for step 4 : 2.4109230041503906 step5:split_time_score Mon Mar 24 14:23: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 : ['21646350'] 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 : [('21646350',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21646350) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1346797524: {'path': 'temp/1742822608_421847_1346797524_63a970cbf8230c5fbb82e0bb61727a0e.jpg', 'extension': 'jpg'}, 1346797371: {'path': 'temp/1742822608_421847_1346797371_7484cb4db983a985379a8e5474bbf376.jpg', 'extension': 'jpg'}, 1346797435: {'path': 'temp/1742822608_421847_1346797435_b82f0af46ee54946056e63192262d5c0.jpg', 'extension': 'jpg'}, 1346797441: {'path': 'temp/1742822608_421847_1346797441_2d61df47aba777ac8f768a15b2f4b847.jpg', 'extension': 'jpg'}, 1346797445: {'path': 'temp/1742822608_421847_1346797445_65d185475e2ed48b67dfba4c9892ac18.jpg', 'extension': 'jpg'}, 1346797503: {'path': 'temp/1742822608_421847_1346797503_1acebae16b2875940a936f90f95d931a.jpg', 'extension': 'jpg'}, 1346797518: {'path': 'temp/1742822608_421847_1346797518_b9c35d63ac0e047bbbad3b27bce61f13.jpg', 'extension': 'jpg'}, 1346797243: {'path': 'temp/1742822608_421847_1346797243_abc97b7926a4ad608a2857323815e3a0.jpg', 'extension': 'jpg'}, 1346797248: {'path': 'temp/1742822608_421847_1346797248_2b977f4910768d484e57d3a190405e64.jpg', 'extension': 'jpg'}, 1346797326: {'path': 'temp/1742822608_421847_1346797326_3bb2561772e400160ccfd27caed58659.jpg', 'extension': 'jpg'}, 1346797329: {'path': 'temp/1742822608_421847_1346797329_26980f09f37a34e9af9bcd3c6d0dc7af.jpg', 'extension': 'jpg'}, 1346797333: {'path': 'temp/1742822608_421847_1346797333_be8c1ac22db595e58aff3b8cbc5339dc.jpg', 'extension': 'jpg'}, 1346797360: {'path': 'temp/1742822608_421847_1346797360_6f445f5ab3623996f8b89bb5ebf42d46.jpg', 'extension': 'jpg'}, 1346796868: {'path': 'temp/1742822608_421847_1346796868_72142dcfefa34e1decd18c7936bd8c81.jpg', 'extension': 'jpg'}, 1346796874: {'path': 'temp/1742822608_421847_1346796874_319ceafdc8fb7c4328e2f20a84cebd2c.jpg', 'extension': 'jpg'}, 1346796877: {'path': 'temp/1742822608_421847_1346796877_1f522cebdf4fae5030f79340198e40e7.jpg', 'extension': 'jpg'}, 1346796892: {'path': 'temp/1742822608_421847_1346796892_fc8eea8a3789218f28eeecc6b773c288.jpg', 'extension': 'jpg'}, 1346796912: {'path': 'temp/1742822608_421847_1346796912_086292f8bd45d04dd8d90c61c67bfe5b.jpg', 'extension': 'jpg'}, 1346797004: {'path': 'temp/1742822608_421847_1346797004_fa194ce4747bc91a8266f689cf18961c.jpg', 'extension': 'jpg'}, 1346797013: {'path': 'temp/1742822608_421847_1346797013_68a28040b83c8f9523c2cb5c2e9207d1.jpg', 'extension': 'jpg'}, 1346797014: {'path': 'temp/1742822608_421847_1346797014_8afb7380a407aba3df680df09c30b52b.jpg', 'extension': 'jpg'}, 1346797142: {'path': 'temp/1742822608_421847_1346797142_951dc4f978058bb3d2dc107cc9b33e8b.jpg', 'extension': 'jpg'}, 1346797146: {'path': 'temp/1742822608_421847_1346797146_f194321839e29e66f7206f8cffffbeee.jpg', 'extension': 'jpg'}, 1346797153: {'path': 'temp/1742822608_421847_1346797153_5e665ab95acf9eb77d4035ee2e6648a8.jpg', 'extension': 'jpg'}, 1346797167: {'path': 'temp/1742822608_421847_1346797167_04d38f7dcc7675359f8b7c7e560f7158.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 = 21646350; (('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 = 21646350 group by h (('14', 25),) 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=21646350 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 (21646350) 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 (21646350) 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 21646350 Nombre de photos uploadées : 25 / 23040 (0%) 24032025 21646350 Nombre de photos taguées (types de déchets): 0 / 25 (0%) 24032025 21646350 Nombre de photos taguées (volume) : 0 / 25 (0%) [{'photo_id': 1346796912, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/086292f8bd45d04dd8d90c61c67bfe5b.jpg', 'username': None, 'uploaded_at': 1742822229, 'text': 'image_24032025_14_15_04_10137.jpg'}, {'photo_id': 1346796892, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/fc8eea8a3789218f28eeecc6b773c288.jpg', 'username': None, 'uploaded_at': 1742822229, 'text': 'image_24032025_14_15_14_10134.jpg'}, {'photo_id': 1346796877, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/1f522cebdf4fae5030f79340198e40e7.jpg', 'username': None, 'uploaded_at': 1742822229, 'text': 'image_24032025_14_15_25_10137.jpg'}, {'photo_id': 1346796874, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/24/319ceafdc8fb7c4328e2f20a84cebd2c.jpg', 'username': None, 'uploaded_at': 1742822229, 'text': 'image_24032025_14_15_35_10146.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002493143081665039 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21646350, '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.022614479064941406 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': 1691563, 'mtr_portfolio_id': 21644902, 'dashboard_result_id': 9577795, '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_P21644902_24-03-2025_13_49_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21644903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21644904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21644905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21644906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21644907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21644908, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21644909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21644910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21644911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21644912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21644913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21644914, 'pht': 3726}}"}, {'dashboat_entry_day': 1682789, 'dashboard_run_id': 1691563, 'mtr_portfolio_id': 21645236, 'dashboard_result_id': 9577796, '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_P21645236_24-03-2025_14_05_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21645237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21645238, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21645239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21645240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21645241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21645242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21645243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21645244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21645245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21645246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21645247, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21645248, 'pht': 3726}}"}, {'dashboat_entry_day': 1682789, 'dashboard_run_id': 1691563, 'mtr_portfolio_id': 21645675, 'dashboard_result_id': 9577797, '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_P21645675_24-03-2025_14_18_39.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21645736, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21645737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21645738, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21645739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21645740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21645741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21645742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21645743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21645744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21645745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21645746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21645747, 'pht': 3726}}"}, {'dashboat_entry_day': 1682789, 'dashboard_run_id': 1691563, 'mtr_portfolio_id': 21646350, 'dashboard_result_id': 9577798, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21644902 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': 2685414, 'mtr_portfolio_id': 21644902, 'created_at': datetime.datetime(2025, 3, 24, 13, 49), 'result': '0.06508243107025931', 'result_long': None, 'result_double': None}] Qualite : 0.06508243107025931 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21644902 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21644902_24-03-2025_13_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21644902 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_P21644902_24-03-2025_13_49_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21644903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21644904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21644905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21644906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21644907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21644908, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21644909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21644910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21644911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21644912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21644913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21644914, 'pht': 3726}}" where mtr_portfolio_id = 21644902 and dashboard_run_id = 1691563 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`=21644902 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9577795, 0.06508243107025931, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21644902_24-03-2025_13_49_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21644903, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21644904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21644905, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21644906, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21644907, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21644908, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21644909, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21644910, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21644911, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21644912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21644913, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21644914, '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 = 21645236 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': 2685436, 'mtr_portfolio_id': 21645236, 'created_at': datetime.datetime(2025, 3, 24, 14, 5, 2), 'result': '0.07422231678637731', 'result_long': None, 'result_double': None}] Qualite : 0.07422231678637731 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21645236 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21645236_24-03-2025_14_05_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21645236 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_P21645236_24-03-2025_14_05_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21645237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21645238, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21645239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21645240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21645241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21645242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21645243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21645244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21645245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21645246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21645247, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21645248, 'pht': 3726}}" where mtr_portfolio_id = 21645236 and dashboard_run_id = 1691563 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`=21645236 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9577796, 0.07422231678637731, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21645236_24-03-2025_14_05_05.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21645237, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21645238, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21645239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21645240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21645241, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21645242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21645243, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21645244, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21645245, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21645246, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21645247, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21645248, '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 = 21645675 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': 2685485, 'mtr_portfolio_id': 21645675, 'created_at': datetime.datetime(2025, 3, 24, 14, 18, 34), 'result': '0.0674828750178672', 'result_long': None, 'result_double': None}] Qualite : 0.0674828750178672 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21645675 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21645675_24-03-2025_14_18_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21645675 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_P21645675_24-03-2025_14_18_39.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21645736, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21645737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21645738, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21645739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21645740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21645741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21645742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21645743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21645744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21645745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21645746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21645747, 'pht': 3726}}" where mtr_portfolio_id = 21645675 and dashboard_run_id = 1691563 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`=21645675 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9577797, 0.0674828750178672, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21645675_24-03-2025_14_18_39.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 21645736, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21645737, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21645738, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21645739, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21645740, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21645741, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21645742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21645743, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21645744, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21645745, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21645746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21645747, '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 = 21646350 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': 2685534, 'mtr_portfolio_id': 21646350, 'created_at': datetime.datetime(2025, 3, 24, 14, 23, 28), 'result': '0.19530434820876508', 'result_long': None, 'result_double': None}] Qualite : 0.19530434820876508 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21646350 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21646350_24-03-2025_14_23_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21646350 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_P21646350_24-03-2025_14_23_29.pdf'}" where mtr_portfolio_id = 21646350 and dashboard_run_id = 1691563 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`=21646350 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9577798, 0.19530434820876508, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21646350_24-03-2025_14_23_29.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21646351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21646352, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21646353, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21646354, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21646355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21646356, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21646357, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21646358, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21646359, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21646360, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21646361, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21646362, '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 (21644902,21645236,21645675,21646350) result : ((1346785731,), (1346785807,), (1346785810,), (1346785855,), (1346786027,), (1346786078,), (1346786180,), (1346786197,), (1346786220,), (1346786252,), (1346786885,), (1346786971,), (1346787060,), (1346787091,), (1346787093,), (1346787097,), (1346787152,), (1346787153,), (1346787559,), (1346787611,), (1346787661,), (1346787742,), (1346787793,), (1346788052,), (1346788055,), (1346788060,), (1346788066,), (1346788127,), (1346788156,), (1346788166,), (1346788203,), (1346788210,), (1346788239,), (1346788330,), (1346788333,), (1346788623,), (1346788536,), (1346788616,), (1346788802,), (1346788807,), (1346788848,), (1346788853,), (1346788868,), (1346788872,), (1346789020,), (1346789025,), (1346789048,), (1346789074,), (1346789176,), (1346789208,), (1346789237,), (1346789279,), (1346789298,), (1346789304,), (1346789413,), (1346789427,), (1346789435,), (1346789467,), (1346789501,), (1346789522,), (1346789618,), (1346789629,), (1346789632,), (1346789637,), (1346789653,), (1346789723,), (1346789730,), (1346789740,), (1346789754,), (1346789767,), (1346789836,), (1346789852,), (1346789856,), (1346789860,), (1346789872,), (1346789907,), (1346789920,), (1346789924,), (1346789928,), (1346790031,), (1346790036,), (1346790086,), (1346790090,), (1346790110,), (1346790131,), (1346790145,), (1346790168,), (1346790253,), (1346790279,), (1346790296,), (1346790305,), (1346790314,), (1346790343,), (1346790349,), (1346790358,), (1346790360,), (1346790362,), (1346790850,), (1346791707,), (1346791409,), (1346791516,), (1346791619,), (1346792079,), (1346792089,), (1346792130,), (1346792515,), (1346792564,), (1346792885,), (1346792933,), (1346793005,), (1346793707,), (1346793789,), (1346793821,), (1346794163,), (1346794183,), (1346794189,), (1346794192,), (1346794195,), (1346794284,), (1346794285,), (1346794305,), (1346794333,), (1346794360,), (1346794750,), (1346794778,), (1346794807,), (1346795155,), (1346795175,), (1346795199,), (1346795248,), (1346795295,), (1346795512,), (1346795543,), (1346795559,), (1346795591,), (1346795617,), (1346795807,), (1346795845,), (1346795885,), (1346795931,), (1346796200,), (1346796225,), (1346796252,), (1346796273,), (1346796288,), (1346796299,), (1346796432,), (1346796458,), (1346796478,), (1346796505,), (1346796527,), (1346796553,), (1346796674,), (1346796695,), (1346796719,), (1346796826,), (1346796834,), (1346796838,), (1346796845,), (1346796848,), (1346796919,), (1346796868,), (1346796874,), (1346796877,), (1346796892,), (1346796912,), (1346797004,), (1346797013,), (1346797014,), (1346797142,), (1346797146,), (1346797153,), (1346797167,), (1346797243,), (1346797248,), (1346797326,), (1346797329,), (1346797333,), (1346797360,), (1346797371,), (1346797435,), (1346797441,), (1346797445,), (1346797503,), (1346797518,), (1346797524,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24032025': {'nb_upload': 25, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21646350]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1346797524, 1346797518, 1346797503, 1346797445, 1346797441, 1346797435, 1346797371, 1346797360, 1346797333, 1346797329, 1346797326, 1346797248, 1346797243, 1346797167, 1346797153, 1346797146, 1346797142, 1346797014, 1346797013, 1346797004, 1346796912, 1346796892, 1346796877, 1346796874, 1346796868] map_info['map_portfolio_photo'] : {21646350: [1346797524, 1346797518, 1346797503, 1346797445, 1346797441, 1346797435, 1346797371, 1346797360, 1346797333, 1346797329, 1346797326, 1346797248, 1346797243, 1346797167, 1346797153, 1346797146, 1346797142, 1346797014, 1346797013, 1346797004, 1346796912, 1346796892, 1346796877, 1346796874, 1346796868]} final : True mtd_id 4302 list_pids : [1346797524, 1346797518, 1346797503, 1346797445, 1346797441, 1346797435, 1346797371, 1346797360, 1346797333, 1346797329, 1346797326, 1346797248, 1346797243, 1346797167, 1346797153, 1346797146, 1346797142, 1346797014, 1346797013, 1346797004, 1346796912, 1346796892, 1346796877, 1346796874, 1346796868] Looping around the photos to save general results len do output : 1 /21646350Didn'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, '2685534') ('4302', '21646350', '1346797524', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797518', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797503', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797445', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797441', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797435', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797371', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797360', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797333', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797329', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797326', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797248', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797243', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797167', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797153', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797146', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797142', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797014', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797013', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346797004', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346796912', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346796892', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346796877', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346796874', None, None, None, None, None, '2685534') ('4302', None, None, None, None, None, None, None, '2685534') ('4302', '21646350', '1346796868', None, None, None, None, None, '2685534') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 26 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, '21646350', 'None', None, None, None, None, '2685534'), ('4302', '21646350', '1346797524', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797518', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797503', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797445', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797441', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797435', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797371', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797360', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797333', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797329', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797326', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797248', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797243', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797167', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797153', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797146', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797142', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797014', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797013', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346797004', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346796912', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346796892', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346796877', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346796874', None, None, None, None, None, '2685534'), ('4302', '21646350', '1346796868', None, None, None, None, None, '2685534')] time used for this insertion : 0.015254497528076172 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.33039140701293945 time spend to save output : 0.01546621322631836 total time spend for step 5 : 0.3458576202392578 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 (2685534) 2.68user 2.17system 0:07.04elapsed 69%CPU (0avgtext+0avgdata 161304maxresident)k 54008inputs+14456outputs (204major+76695minor)pagefaults 0swaps