SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21837339) result : ((1348223445,), (1348223447,), (1348223457,), (1348223462,), (1348223497,), (1348223759,), (1348223878,), (1348223940,), (1348223987,), (1348224216,), (1348224272,), (1348224284,), (1348224297,), (1348224302,)) 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 21837400 , 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=21837339 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 (21837400) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21837339) result : ((1348223445,), (1348223447,), (1348223457,), (1348223462,), (1348223497,), (1348223759,), (1348223878,), (1348223940,), (1348223987,), (1348224216,), (1348224272,), (1348224284,), (1348224297,), (1348224302,)) 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 21837401 , 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=21837339 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 (21837401) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21837339) result : ((1348223445,), (1348223447,), (1348223457,), (1348223462,), (1348223497,), (1348223759,), (1348223878,), (1348223940,), (1348223987,), (1348224216,), (1348224272,), (1348224284,), (1348224297,), (1348224302,)) 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 21837402 , 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=21837339 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 (21837402) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21837339) result : ((1348223445,), (1348223447,), (1348223457,), (1348223462,), (1348223497,), (1348223759,), (1348223878,), (1348223940,), (1348223987,), (1348224216,), (1348224272,), (1348224284,), (1348224297,), (1348224302,)) 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 21837403 , 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=21837339 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 (21837403) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21837339) result : ((1348223445,), (1348223447,), (1348223457,), (1348223462,), (1348223497,), (1348223759,), (1348223878,), (1348223940,), (1348223987,), (1348224216,), (1348224272,), (1348224284,), (1348224297,), (1348224302,)) 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 21837404 , 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=21837339 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 (21837404) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21837339) result : ((1348223445,), (1348223447,), (1348223457,), (1348223462,), (1348223497,), (1348223759,), (1348223878,), (1348223940,), (1348223987,), (1348224216,), (1348224272,), (1348224284,), (1348224297,), (1348224302,)) 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 21837405 , 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=21837339 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 (21837405) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21837339) result : ((1348223445,), (1348223447,), (1348223457,), (1348223462,), (1348223497,), (1348223759,), (1348223878,), (1348223940,), (1348223987,), (1348224216,), (1348224272,), (1348224284,), (1348224297,), (1348224302,)) 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 21837406 , 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=21837339 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 (21837406) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21837339) result : ((1348223445,), (1348223447,), (1348223457,), (1348223462,), (1348223497,), (1348223759,), (1348223878,), (1348223940,), (1348223987,), (1348224216,), (1348224272,), (1348224284,), (1348224297,), (1348224302,)) 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 21837407 , 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=21837339 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 (21837407) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21837339) result : ((1348223445,), (1348223447,), (1348223457,), (1348223462,), (1348223497,), (1348223759,), (1348223878,), (1348223940,), (1348223987,), (1348224216,), (1348224272,), (1348224284,), (1348224297,), (1348224302,)) 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 21837408 , 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=21837339 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 (21837408) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21837339) result : ((1348223445,), (1348223447,), (1348223457,), (1348223462,), (1348223497,), (1348223759,), (1348223878,), (1348223940,), (1348223987,), (1348224216,), (1348224272,), (1348224284,), (1348224297,), (1348224302,)) 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`=21837339 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_brun','Carton_gris','plastique','environnement','cartonnette','Teint_Dans_La_Masse','metal','mal_croppe','autre_refus','papier','kraft')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21837339 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_brun','Carton_gris','plastique','environnement','cartonnette','Teint_Dans_La_Masse','metal','mal_croppe','autre_refus','papier','kraft')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__28032025_10_30_04_10184_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__28032025_10_30_04_10184_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__28032025_10_30_04_10184_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__28032025_10_30_04_10184_4417_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__28032025_10_30_04_10184_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__28032025_10_30_04_10184_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__28032025_10_30_04_10184_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__28032025_10_30_04_10184_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__28032025_10_30_04_10184_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__28032025_10_30_04_10184_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__28032025_10_30_04_10184_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__28032025_10_30_04_10184_4417_kraft_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)[[21837339, 21837410, 4417, 0.5, 492777938, 979], [21837339, 21837411, 4417, 0.5, 2107753024, 979], [21837339, 21837412, 4417, 0.5, 2107753020, 979], [21837339, 21837413, 4417, 0.5, 492725882, 979], [21837339, 21837414, 4417, 0.5, 493012381, 979], [21837339, 21837415, 4417, 0.5, 702398920, 979], [21837339, 21837416, 4417, 0.5, 2107752385, 979], [21837339, 21837417, 4417, 0.5, 492628673, 979], [21837339, 21837418, 4417, 0.5, 2107755527, 979], [21837339, 21837419, 4417, 0.5, 2107752406, 979], [21837339, 21837420, 4417, 0.5, 492668766, 979], [21837339, 21837421, 4417, 0.5, 493202403, 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`=21837339 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_brun','Carton_gris','plastique','environnement','cartonnette','Teint_Dans_La_Masse','metal','mal_croppe','autre_refus','papier','kraft')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21837339 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('flou','Carton_brun','Carton_gris','plastique','environnement','cartonnette','Teint_Dans_La_Masse','metal','mal_croppe','autre_refus','papier','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 21837339, 'sub_port_id': 21837410, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14353196, 'last_updated_at': datetime.datetime(2025, 3, 28, 10, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 10, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 10, 36)}, 'Carton_brun': {'main_port_id': 21837339, 'sub_port_id': 21837411, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14353197, 'last_updated_at': datetime.datetime(2025, 3, 28, 10, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 10, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 10, 36)}, 'Carton_gris': {'main_port_id': 21837339, 'sub_port_id': 21837412, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14353198, 'last_updated_at': datetime.datetime(2025, 3, 28, 10, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 10, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 10, 36)}, 'plastique': {'main_port_id': 21837339, 'sub_port_id': 21837413, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14353199, 'last_updated_at': datetime.datetime(2025, 3, 28, 10, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 10, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 10, 36)}, 'environnement': {'main_port_id': 21837339, 'sub_port_id': 21837414, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14353200, 'last_updated_at': datetime.datetime(2025, 3, 28, 10, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 10, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 10, 36)}, 'cartonnette': {'main_port_id': 21837339, 'sub_port_id': 21837415, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14353201, 'last_updated_at': datetime.datetime(2025, 3, 28, 10, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 10, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 10, 36)}, 'Teint_Dans_La_Masse': {'main_port_id': 21837339, 'sub_port_id': 21837416, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14353202, 'last_updated_at': datetime.datetime(2025, 3, 28, 10, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 10, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 10, 36)}, 'metal': {'main_port_id': 21837339, 'sub_port_id': 21837417, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14353203, 'last_updated_at': datetime.datetime(2025, 3, 28, 10, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 10, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 10, 36)}, 'mal_croppe': {'main_port_id': 21837339, 'sub_port_id': 21837418, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14353204, 'last_updated_at': datetime.datetime(2025, 3, 28, 10, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 10, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 10, 36)}, 'autre_refus': {'main_port_id': 21837339, 'sub_port_id': 21837419, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14353205, 'last_updated_at': datetime.datetime(2025, 3, 28, 10, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 10, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 10, 36)}, 'papier': {'main_port_id': 21837339, 'sub_port_id': 21837420, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14353206, 'last_updated_at': datetime.datetime(2025, 3, 28, 10, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 10, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 10, 36)}, 'kraft': {'main_port_id': 21837339, 'sub_port_id': 21837421, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14353207, 'last_updated_at': datetime.datetime(2025, 3, 28, 10, 36), 'last_updated_at_desc': datetime.datetime(2025, 3, 28, 10, 36), 'last_updated_at_asc': datetime.datetime(2025, 3, 28, 10, 36)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21837410,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21837397 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21837411,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21837398 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21837412,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21837399 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21837413,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21837400 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21837414,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21837401 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21837415,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21837402 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21837416,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21837403 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21837417,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21837404 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21837418,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21837405 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21837419,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21837406 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21837420,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21837407 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21837421,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21837408 lien utilise dans velours : https://www.fotonower.com/velours/21837410,21837411,21837412,21837413,21837414,21837415,21837416,21837417,21837418,21837419,21837420,21837421?tags=flou,Carton_brun,Carton_gris,plastique,environnement,cartonnette,Teint_Dans_La_Masse,metal,mal_croppe,autre_refus,papier,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21837339]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1348224302, 1348224297, 1348224284, 1348224272, 1348224216, 1348223987, 1348223940, 1348223878, 1348223759, 1348223497, 1348223462, 1348223457, 1348223447, 1348223445] map_info['map_portfolio_photo'] : {21837339: [1348224302, 1348224297, 1348224284, 1348224272, 1348224216, 1348223987, 1348223940, 1348223878, 1348223759, 1348223497, 1348223462, 1348223457, 1348223447, 1348223445]} final : False mtd_id 4302 list_pids : [1348224302, 1348224297, 1348224284, 1348224272, 1348224216, 1348223987, 1348223940, 1348223878, 1348223759, 1348223497, 1348223462, 1348223457, 1348223447, 1348223445] Looping around the photos to save general results len do output : 1 /21837339. 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, '2701238') ('4302', '21837339', '1348224302', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348224297', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348224284', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348224272', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348224216', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223987', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223940', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223878', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223759', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223497', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223462', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223457', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223447', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223445', None, None, None, None, None, '2701238') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '21837339', "{'flou': 21837397, 'Carton_brun': 21837398, 'Carton_gris': 21837399, 'plastique': 21837400, 'environnement': 21837401, 'cartonnette': 21837402, 'Teint_Dans_La_Masse': 21837403, 'metal': 21837404, 'mal_croppe': 21837405, 'autre_refus': 21837406, 'papier': 21837407, 'kraft': 21837408}", None, None, None, None, '2701238'), ('4302', '21837339', '1348224302', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348224297', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348224284', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348224272', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348224216', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348223987', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348223940', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348223878', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348223759', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348223497', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348223462', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348223457', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348223447', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348223445', None, None, None, None, None, '2701238')] time used for this insertion : 0.01692819595336914 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.631178140640259 time spend to save output : 0.017324447631835938 total time spend for step 1 : 2.6485025882720947 step2:final Fri Mar 28 10:36:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21837339) 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 21837339 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1348223497,1348223462,1348223457,1348223447,1348223445,1348223987,1348223940,1348223878,1348223759,1348224302,1348224297,1348224284,1348224272,1348224216); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21837339]) Inside saveOutput : final : False verbose : True original output for save of step final : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ('0.0',), 1348224216: ('0.0',), 1348223987: ('0.0',), 1348223940: ('0.0',), 1348223878: ('0.0',), 1348223759: ('0.0',), 1348223497: ('0.0',), 1348223462: ('0.0',), 1348223457: ('0.0',), 1348223447: ('0.0',), 1348223445: ('0.0',)} new output for save of step final : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ('0.0',), 1348224216: ('0.0',), 1348223987: ('0.0',), 1348223940: ('0.0',), 1348223878: ('0.0',), 1348223759: ('0.0',), 1348223497: ('0.0',), 1348223462: ('0.0',), 1348223457: ('0.0',), 1348223447: ('0.0',), 1348223445: ('0.0',)} [1348224302, 1348224297, 1348224284, 1348224272, 1348224216, 1348223987, 1348223940, 1348223878, 1348223759, 1348223497, 1348223462, 1348223457, 1348223447, 1348223445] map_info['map_portfolio_photo'] : {21837339: [1348224302, 1348224297, 1348224284, 1348224272, 1348224216, 1348223987, 1348223940, 1348223878, 1348223759, 1348223497, 1348223462, 1348223457, 1348223447, 1348223445]} final : False mtd_id 4302 list_pids : [1348224302, 1348224297, 1348224284, 1348224272, 1348224216, 1348223987, 1348223940, 1348223878, 1348223759, 1348223497, 1348223462, 1348223457, 1348223447, 1348223445] Looping around the photos to save general results len do output : 14 /1348224302.Didn't retrieve data . /1348224297.Didn't retrieve data . /1348224284.Didn't retrieve data . /1348224272.Didn't retrieve data . /1348224216.Didn't retrieve data . /1348223987.Didn't retrieve data . /1348223940.Didn't retrieve data . /1348223878.Didn't retrieve data . /1348223759.Didn't retrieve data . /1348223497.Didn't retrieve data . /1348223462.Didn't retrieve data . /1348223457.Didn't retrieve data . /1348223447.Didn't retrieve data . /1348223445.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, '2701238') ('4302', '21837339', '1348224302', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348224297', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348224284', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348224272', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348224216', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223987', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223940', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223878', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223759', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223497', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223462', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223457', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223447', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223445', None, None, None, None, None, '2701238') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '21837339', '1348224302', '0.0', None, None, None, None, '2701238'), ('4302', '21837339', '1348224297', '0.0', None, None, None, None, '2701238'), ('4302', '21837339', '1348224284', '0.0', None, None, None, None, '2701238'), ('4302', '21837339', '1348224272', '0.0', None, None, None, None, '2701238'), ('4302', '21837339', '1348224216', '0.0', None, None, None, None, '2701238'), ('4302', '21837339', '1348223987', '0.0', None, None, None, None, '2701238'), ('4302', '21837339', '1348223940', '0.0', None, None, None, None, '2701238'), ('4302', '21837339', '1348223878', '0.0', None, None, None, None, '2701238'), ('4302', '21837339', '1348223759', '0.0', None, None, None, None, '2701238'), ('4302', '21837339', '1348223497', '0.0', None, None, None, None, '2701238'), ('4302', '21837339', '1348223462', '0.0', None, None, None, None, '2701238'), ('4302', '21837339', '1348223457', '0.0', None, None, None, None, '2701238'), ('4302', '21837339', '1348223447', '0.0', None, None, None, None, '2701238'), ('4302', '21837339', '1348223445', '0.0', None, None, None, None, '2701238')] time used for this insertion : 0.015253305435180664 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.013515472412109375 time spend to save output : 0.01598644256591797 total time spend for step 2 : 0.029501914978027344 step3:velours_tree Fri Mar 28 10:36:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21837339: [{'flou': 21837397, 'Carton_brun': 21837398, 'Carton_gris': 21837399, 'plastique': 21837400, 'environnement': 21837401, 'cartonnette': 21837402, 'Teint_Dans_La_Masse': 21837403, 'metal': 21837404, 'mal_croppe': 21837405, 'autre_refus': 21837406, 'papier': 21837407, 'kraft': 21837408}]} input_args_next_step : {21837339: ()} output_args : {21837339: [{'flou': 21837397, 'Carton_brun': 21837398, 'Carton_gris': 21837399, 'plastique': 21837400, 'environnement': 21837401, 'cartonnette': 21837402, 'Teint_Dans_La_Masse': 21837403, 'metal': 21837404, 'mal_croppe': 21837405, 'autre_refus': 21837406, 'papier': 21837407, 'kraft': 21837408}]} args : 21837339 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 : ({'flou': 21837397, 'Carton_brun': 21837398, 'Carton_gris': 21837399, 'plastique': 21837400, 'environnement': 21837401, 'cartonnette': 21837402, 'Teint_Dans_La_Masse': 21837403, 'metal': 21837404, 'mal_croppe': 21837405, 'autre_refus': 21837406, 'papier': 21837407, 'kraft': 21837408},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21837339) 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([21837339]) 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.3469276428222656 time spend to save output : 0.00010347366333007812 total time spend for step 3 : 0.3470311164855957 step4:send_mail_cod Fri Mar 28 10:36:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ('0.0',), 1348224216: ('0.0',), 1348223987: ('0.0',), 1348223940: ('0.0',), 1348223878: ('0.0',), 1348223759: ('0.0',), 1348223497: ('0.0',), 1348223462: ('0.0',), 1348223457: ('0.0',), 1348223447: ('0.0',), 1348223445: ('0.0',)} input_args_next_step : {1348224302: ()} output_args : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ('0.0',), 1348224216: ('0.0',), 1348223987: ('0.0',), 1348223940: ('0.0',), 1348223878: ('0.0',), 1348223759: ('0.0',), 1348223497: ('0.0',), 1348223462: ('0.0',), 1348223457: ('0.0',), 1348223447: ('0.0',), 1348223445: ('0.0',)} args : 1348224302 depend.output_id : 0 input_args_next_step : {1348224302: ('0.0',), 1348224297: ()} output_args : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ('0.0',), 1348224216: ('0.0',), 1348223987: ('0.0',), 1348223940: ('0.0',), 1348223878: ('0.0',), 1348223759: ('0.0',), 1348223497: ('0.0',), 1348223462: ('0.0',), 1348223457: ('0.0',), 1348223447: ('0.0',), 1348223445: ('0.0',)} args : 1348224297 depend.output_id : 0 input_args_next_step : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ()} output_args : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ('0.0',), 1348224216: ('0.0',), 1348223987: ('0.0',), 1348223940: ('0.0',), 1348223878: ('0.0',), 1348223759: ('0.0',), 1348223497: ('0.0',), 1348223462: ('0.0',), 1348223457: ('0.0',), 1348223447: ('0.0',), 1348223445: ('0.0',)} args : 1348224284 depend.output_id : 0 input_args_next_step : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ()} output_args : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ('0.0',), 1348224216: ('0.0',), 1348223987: ('0.0',), 1348223940: ('0.0',), 1348223878: ('0.0',), 1348223759: ('0.0',), 1348223497: ('0.0',), 1348223462: ('0.0',), 1348223457: ('0.0',), 1348223447: ('0.0',), 1348223445: ('0.0',)} args : 1348224272 depend.output_id : 0 input_args_next_step : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ('0.0',), 1348224216: ()} output_args : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ('0.0',), 1348224216: ('0.0',), 1348223987: ('0.0',), 1348223940: ('0.0',), 1348223878: ('0.0',), 1348223759: ('0.0',), 1348223497: ('0.0',), 1348223462: ('0.0',), 1348223457: ('0.0',), 1348223447: ('0.0',), 1348223445: ('0.0',)} args : 1348224216 depend.output_id : 0 input_args_next_step : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ('0.0',), 1348224216: ('0.0',), 1348223987: ()} output_args : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ('0.0',), 1348224216: ('0.0',), 1348223987: ('0.0',), 1348223940: ('0.0',), 1348223878: ('0.0',), 1348223759: ('0.0',), 1348223497: ('0.0',), 1348223462: ('0.0',), 1348223457: ('0.0',), 1348223447: ('0.0',), 1348223445: ('0.0',)} args : 1348223987 depend.output_id : 0 input_args_next_step : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ('0.0',), 1348224216: ('0.0',), 1348223987: ('0.0',), 1348223940: ()} output_args : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ('0.0',), 1348224216: ('0.0',), 1348223987: ('0.0',), 1348223940: ('0.0',), 1348223878: ('0.0',), 1348223759: ('0.0',), 1348223497: ('0.0',), 1348223462: ('0.0',), 1348223457: ('0.0',), 1348223447: ('0.0',), 1348223445: ('0.0',)} args : 1348223940 depend.output_id : 0 input_args_next_step : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ('0.0',), 1348224216: ('0.0',), 1348223987: ('0.0',), 1348223940: ('0.0',), 1348223878: ()} output_args : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ('0.0',), 1348224216: ('0.0',), 1348223987: ('0.0',), 1348223940: ('0.0',), 1348223878: ('0.0',), 1348223759: ('0.0',), 1348223497: ('0.0',), 1348223462: ('0.0',), 1348223457: ('0.0',), 1348223447: ('0.0',), 1348223445: ('0.0',)} args : 1348223878 depend.output_id : 0 input_args_next_step : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ('0.0',), 1348224216: ('0.0',), 1348223987: ('0.0',), 1348223940: ('0.0',), 1348223878: ('0.0',), 1348223759: ()} output_args : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ('0.0',), 1348224216: ('0.0',), 1348223987: ('0.0',), 1348223940: ('0.0',), 1348223878: ('0.0',), 1348223759: ('0.0',), 1348223497: ('0.0',), 1348223462: ('0.0',), 1348223457: ('0.0',), 1348223447: ('0.0',), 1348223445: ('0.0',)} args : 1348223759 depend.output_id : 0 input_args_next_step : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ('0.0',), 1348224216: ('0.0',), 1348223987: ('0.0',), 1348223940: ('0.0',), 1348223878: ('0.0',), 1348223759: ('0.0',), 1348223497: ()} output_args : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ('0.0',), 1348224216: ('0.0',), 1348223987: ('0.0',), 1348223940: ('0.0',), 1348223878: ('0.0',), 1348223759: ('0.0',), 1348223497: ('0.0',), 1348223462: ('0.0',), 1348223457: ('0.0',), 1348223447: ('0.0',), 1348223445: ('0.0',)} args : 1348223497 depend.output_id : 0 input_args_next_step : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ('0.0',), 1348224216: ('0.0',), 1348223987: ('0.0',), 1348223940: ('0.0',), 1348223878: ('0.0',), 1348223759: ('0.0',), 1348223497: ('0.0',), 1348223462: ()} output_args : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ('0.0',), 1348224216: ('0.0',), 1348223987: ('0.0',), 1348223940: ('0.0',), 1348223878: ('0.0',), 1348223759: ('0.0',), 1348223497: ('0.0',), 1348223462: ('0.0',), 1348223457: ('0.0',), 1348223447: ('0.0',), 1348223445: ('0.0',)} args : 1348223462 depend.output_id : 0 input_args_next_step : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ('0.0',), 1348224216: ('0.0',), 1348223987: ('0.0',), 1348223940: ('0.0',), 1348223878: ('0.0',), 1348223759: ('0.0',), 1348223497: ('0.0',), 1348223462: ('0.0',), 1348223457: ()} output_args : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ('0.0',), 1348224216: ('0.0',), 1348223987: ('0.0',), 1348223940: ('0.0',), 1348223878: ('0.0',), 1348223759: ('0.0',), 1348223497: ('0.0',), 1348223462: ('0.0',), 1348223457: ('0.0',), 1348223447: ('0.0',), 1348223445: ('0.0',)} args : 1348223457 depend.output_id : 0 input_args_next_step : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ('0.0',), 1348224216: ('0.0',), 1348223987: ('0.0',), 1348223940: ('0.0',), 1348223878: ('0.0',), 1348223759: ('0.0',), 1348223497: ('0.0',), 1348223462: ('0.0',), 1348223457: ('0.0',), 1348223447: ()} output_args : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ('0.0',), 1348224216: ('0.0',), 1348223987: ('0.0',), 1348223940: ('0.0',), 1348223878: ('0.0',), 1348223759: ('0.0',), 1348223497: ('0.0',), 1348223462: ('0.0',), 1348223457: ('0.0',), 1348223447: ('0.0',), 1348223445: ('0.0',)} args : 1348223447 depend.output_id : 0 input_args_next_step : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ('0.0',), 1348224216: ('0.0',), 1348223987: ('0.0',), 1348223940: ('0.0',), 1348223878: ('0.0',), 1348223759: ('0.0',), 1348223497: ('0.0',), 1348223462: ('0.0',), 1348223457: ('0.0',), 1348223447: ('0.0',), 1348223445: ()} output_args : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ('0.0',), 1348224216: ('0.0',), 1348223987: ('0.0',), 1348223940: ('0.0',), 1348223878: ('0.0',), 1348223759: ('0.0',), 1348223497: ('0.0',), 1348223462: ('0.0',), 1348223457: ('0.0',), 1348223447: ('0.0',), 1348223445: ('0.0',)} args : 1348223445 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 : {21837339: [{'flou': 21837397, 'Carton_brun': 21837398, 'Carton_gris': 21837399, 'plastique': 21837400, 'environnement': 21837401, 'cartonnette': 21837402, 'Teint_Dans_La_Masse': 21837403, 'metal': 21837404, 'mal_croppe': 21837405, 'autre_refus': 21837406, 'papier': 21837407, 'kraft': 21837408}]} input_args_next_step : {1348224302: ('0.0',), 1348224297: ('0.0',), 1348224284: ('0.0',), 1348224272: ('0.0',), 1348224216: ('0.0',), 1348223987: ('0.0',), 1348223940: ('0.0',), 1348223878: ('0.0',), 1348223759: ('0.0',), 1348223497: ('0.0',), 1348223462: ('0.0',), 1348223457: ('0.0',), 1348223447: ('0.0',), 1348223445: ('0.0',), 21837339: ()} output_args : {21837339: [{'flou': 21837397, 'Carton_brun': 21837398, 'Carton_gris': 21837399, 'plastique': 21837400, 'environnement': 21837401, 'cartonnette': 21837402, 'Teint_Dans_La_Masse': 21837403, 'metal': 21837404, 'mal_croppe': 21837405, 'autre_refus': 21837406, 'papier': 21837407, 'kraft': 21837408}]} args : 21837339 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 :15, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21837339) 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 (1348224302,1348224297,1348224284,1348224272,1348224216,1348223987,1348223940,1348223878,1348223759,1348223497,1348223462,1348223457,1348223447,1348223445) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1348223445 begin to download photo : 1348223462 begin to download photo : 1348223878 begin to download photo : 1348224216 begin to download photo : 1348224297 download finish for photo 1348224216 begin to download photo : 1348224272 download finish for photo 1348223462 begin to download photo : 1348223497 download finish for photo 1348223445 begin to download photo : 1348223447 download finish for photo 1348224297 begin to download photo : 1348224302 download finish for photo 1348223878 begin to download photo : 1348223940 download finish for photo 1348224272 begin to download photo : 1348224284 download finish for photo 1348224302 download finish for photo 1348223940 begin to download photo : 1348223987 download finish for photo 1348223497 begin to download photo : 1348223759 download finish for photo 1348223447 begin to download photo : 1348223457 download finish for photo 1348223987 download finish for photo 1348224284 download finish for photo 1348223759 download finish for photo 1348223457 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette218373971743154561/ imagette218374001743154561/ imagette218374021743154561/ imagette218374041743154561/ imagette218374051743154561/ imagette218374061743154561/ imagette218374081743154561/ imagette218373981743154561/ imagette218373991743154561/ imagette218374031743154561/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P21837339_28-03-2025_10_36_01.pdf 21837397 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=21837397 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218373971743154561 21837400 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=21837400 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218374001743154561 21837402 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=21837402 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218374021743154561 21837404 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=21837404 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218374041743154561 21837405 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=21837405 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218374051743154561 21837406 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=21837406 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218374061743154561 21837408 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=21837408 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218374081743154561 21837398 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=21837398 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218373981743154561 21837399 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=21837399 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218373991743154561 21837403 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=21837403 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218374031743154561 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21837339 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21837410,21837411,21837412,21837413,21837414,21837415,21837416,21837417,21837418,21837419,21837420,21837421?tags=flou,Carton_brun,Carton_gris,plastique,environnement,cartonnette,Teint_Dans_La_Masse,metal,mal_croppe,autre_refus,papier,kraft your option no_mail is active, we will not send the real mail to your client args[1348224302] : ('0.0',) no score found for photo 1348224302 We are sending mail with results at report@fotonower.com args[1348224297] : ('0.0',) no score found for photo 1348224297 We are sending mail with results at report@fotonower.com args[1348224284] : ('0.0',) no score found for photo 1348224284 We are sending mail with results at report@fotonower.com args[1348224272] : ('0.0',) no score found for photo 1348224272 We are sending mail with results at report@fotonower.com args[1348224216] : ('0.0',) no score found for photo 1348224216 We are sending mail with results at report@fotonower.com args[1348223987] : ('0.0',) no score found for photo 1348223987 We are sending mail with results at report@fotonower.com args[1348223940] : ('0.0',) no score found for photo 1348223940 We are sending mail with results at report@fotonower.com args[1348223878] : ('0.0',) no score found for photo 1348223878 We are sending mail with results at report@fotonower.com args[1348223759] : ('0.0',) no score found for photo 1348223759 We are sending mail with results at report@fotonower.com args[1348223497] : ('0.0',) no score found for photo 1348223497 We are sending mail with results at report@fotonower.com args[1348223462] : ('0.0',) no score found for photo 1348223462 We are sending mail with results at report@fotonower.com args[1348223457] : ('0.0',) no score found for photo 1348223457 We are sending mail with results at report@fotonower.com args[1348223447] : ('0.0',) no score found for photo 1348223447 We are sending mail with results at report@fotonower.com args[1348223445] : ('0.0',) no score found for photo 1348223445 We are sending mail with results at report@fotonower.com refus_total : 0.0 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=21837339 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_P21837339_28-03-2025_10_36_01.pdf results_Auto_P21837339_28-03-2025_10_36_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21837339_28-03-2025_10_36_01.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','21837339','results_Auto_P21837339_28-03-2025_10_36_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21837339_28-03-2025_10_36_01.pdf','pdf','','0.13','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21837339]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1348224302, 1348224297, 1348224284, 1348224272, 1348224216, 1348223987, 1348223940, 1348223878, 1348223759, 1348223497, 1348223462, 1348223457, 1348223447, 1348223445] map_info['map_portfolio_photo'] : {21837339: [1348224302, 1348224297, 1348224284, 1348224272, 1348224216, 1348223987, 1348223940, 1348223878, 1348223759, 1348223497, 1348223462, 1348223457, 1348223447, 1348223445]} final : False mtd_id 4302 list_pids : [1348224302, 1348224297, 1348224284, 1348224272, 1348224216, 1348223987, 1348223940, 1348223878, 1348223759, 1348223497, 1348223462, 1348223457, 1348223447, 1348223445] 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, '2701238') ('4302', '21837339', '1348224302', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348224297', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348224284', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348224272', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348224216', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223987', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223940', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223878', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223759', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223497', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223462', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223457', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223447', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223445', None, None, None, None, None, '2701238') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21837339', '1348224302', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348224297', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348224284', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348224272', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348224216', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348223987', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348223940', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348223878', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348223759', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348223497', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348223462', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348223457', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348223447', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348223445', None, None, None, None, None, '2701238')] time used for this insertion : 0.015495538711547852 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.2211997509002686 time spend to save output : 0.015817880630493164 total time spend for step 4 : 2.2370176315307617 step5:split_time_score Fri Mar 28 10:36:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21837339'] 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 : [('21837339',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21837339) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1348224297: {'path': 'temp/1743154560_1185519_1348224297_89141f50f184d80e56e1b77d8417e330.jpg', 'extension': 'jpg'}, 1348224302: {'path': 'temp/1743154560_1185519_1348224302_6329159764db48ce4d87e075ea743c6e.jpg', 'extension': 'jpg'}, 1348223878: {'path': 'temp/1743154560_1185519_1348223878_7f52045fbcb49231d69948181777b69c.jpg', 'extension': 'jpg'}, 1348223940: {'path': 'temp/1743154560_1185519_1348223940_99acc8fbc24e8c5173c81e24f01e8a05.jpg', 'extension': 'jpg'}, 1348223987: {'path': 'temp/1743154560_1185519_1348223987_d62597036dbbef79e2aad61929102cdf.jpg', 'extension': 'jpg'}, 1348224216: {'path': 'temp/1743154560_1185519_1348224216_7c0d8b311b49962aa4da3299c7f61c2e.jpg', 'extension': 'jpg'}, 1348224272: {'path': 'temp/1743154560_1185519_1348224272_9deccbd08bb1a6d1e8d8a8ff25d9ac6e.jpg', 'extension': 'jpg'}, 1348224284: {'path': 'temp/1743154560_1185519_1348224284_815645e5a9ee5405431e739fc0d0274f.jpg', 'extension': 'jpg'}, 1348223462: {'path': 'temp/1743154560_1185519_1348223462_d8ed4a2741ac8c7b6654c231f989090e.jpg', 'extension': 'jpg'}, 1348223497: {'path': 'temp/1743154560_1185519_1348223497_208c99890fd340e2b6ef6fd4bb37e091.jpg', 'extension': 'jpg'}, 1348223759: {'path': 'temp/1743154560_1185519_1348223759_c5a5ac9f153b25710139cbd73cbdd852.jpg', 'extension': 'jpg'}, 1348223445: {'path': 'temp/1743154560_1185519_1348223445_0ee8f7c5d7be7a21469965715f40fff2.jpg', 'extension': 'jpg'}, 1348223447: {'path': 'temp/1743154560_1185519_1348223447_734525b18de96a662599552b3467cdf5.jpg', 'extension': 'jpg'}, 1348223457: {'path': 'temp/1743154560_1185519_1348223457_e0be6094a00ed267b9147e71c2eabc7d.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 = 21837339; (('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 = 21837339 group by h (('10', 14),) 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=21837339 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 (21837339) 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 (21837339) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28032025 21837339 Nombre de photos uploadées : 14 / 23040 (0%) 28032025 21837339 Nombre de photos taguées (types de déchets): 0 / 14 (0%) 28032025 21837339 Nombre de photos taguées (volume) : 0 / 14 (0%) [{'photo_id': 1348223497, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/208c99890fd340e2b6ef6fd4bb37e091.jpg', 'username': None, 'uploaded_at': 1743154339, 'text': 'image_28032025_10_30_04_10183.jpg'}, {'photo_id': 1348223462, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/d8ed4a2741ac8c7b6654c231f989090e.jpg', 'username': None, 'uploaded_at': 1743154339, 'text': 'image_28032025_10_30_14_10136.jpg'}, {'photo_id': 1348223457, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/e0be6094a00ed267b9147e71c2eabc7d.jpg', 'username': None, 'uploaded_at': 1743154339, 'text': 'image_28032025_10_30_24_10136.jpg'}, {'photo_id': 1348223447, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/28/734525b18de96a662599552b3467cdf5.jpg', 'username': None, 'uploaded_at': 1743154339, 'text': 'image_28032025_10_30_35_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 1.0967254638671875e-05 ?????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0008687973022460938 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21837339, '2025-03-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1696037,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.1345360279083252 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= 1696037 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1696037, 'dashboard_run_id': 1704999, 'mtr_portfolio_id': 21835473, 'dashboard_result_id': 9713709, '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_P21835473_28-03-2025_10_06_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21835491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21835492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21835493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21835494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21835495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21835496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21835497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21835498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21835499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21835500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21835501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21835502, 'pht': 3726}}"}, {'dashboat_entry_day': 1696037, 'dashboard_run_id': 1704999, 'mtr_portfolio_id': 21836028, 'dashboard_result_id': 9713711, '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_P21836028_28-03-2025_10_19_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21836055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21836056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21836057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21836058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21836059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21836060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21836061, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21836062, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21836063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21836064, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21836065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21836066, 'pht': 3726}}"}, {'dashboat_entry_day': 1696037, 'dashboard_run_id': 1704999, 'mtr_portfolio_id': 21836532, 'dashboard_result_id': 9713713, '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_P21836532_28-03-2025_10_33_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21836564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21836565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21836566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21836567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21836568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21836569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21836570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21836571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21836572, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21836573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21836574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21836575, 'pht': 3726}}"}, {'dashboat_entry_day': 1696037, 'dashboard_run_id': 1704999, 'mtr_portfolio_id': 21837339, 'dashboard_result_id': 9713719, '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 = 21835473 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': 2701039, 'mtr_portfolio_id': 21835473, 'created_at': datetime.datetime(2025, 3, 28, 10, 6, 27), 'result': '0.047851354905441096', 'result_long': None, 'result_double': None}] Qualite : 0.047851354905441096 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21835473 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21835473_28-03-2025_10_06_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21835473 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_P21835473_28-03-2025_10_06_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21835491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21835492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21835493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21835494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21835495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21835496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21835497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21835498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21835499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21835500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21835501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21835502, 'pht': 3726}}" where mtr_portfolio_id = 21835473 and dashboard_run_id = 1704999 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`=21835473 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9713709, 0.047851354905441096, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21835473_28-03-2025_10_06_28.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21835491, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21835492, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21835493, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21835494, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21835495, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21835496, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21835497, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21835498, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21835499, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21835500, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21835501, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21835502, '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 = 21836028 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': 2701100, 'mtr_portfolio_id': 21836028, 'created_at': datetime.datetime(2025, 3, 28, 10, 19, 58), 'result': '0.06311253842733847', 'result_long': None, 'result_double': None}] Qualite : 0.06311253842733847 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21836028 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21836028_28-03-2025_10_19_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21836028 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_P21836028_28-03-2025_10_19_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21836055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21836056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21836057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21836058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21836059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21836060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21836061, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21836062, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21836063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21836064, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21836065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21836066, 'pht': 3726}}" where mtr_portfolio_id = 21836028 and dashboard_run_id = 1704999 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`=21836028 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9713711, 0.06311253842733847, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21836028_28-03-2025_10_19_58.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21836055, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21836056, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21836057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21836058, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21836059, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21836060, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21836061, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21836062, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21836063, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21836064, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21836065, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21836066, '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 = 21836532 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': 2701167, 'mtr_portfolio_id': 21836532, 'created_at': datetime.datetime(2025, 3, 28, 10, 33, 57), 'result': '0.06264991746557422', 'result_long': None, 'result_double': None}] Qualite : 0.06264991746557422 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21836532 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21836532_28-03-2025_10_33_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21836532 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_P21836532_28-03-2025_10_33_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21836564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21836565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21836566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21836567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21836568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21836569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21836570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21836571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21836572, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21836573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21836574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21836575, 'pht': 3726}}" where mtr_portfolio_id = 21836532 and dashboard_run_id = 1704999 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`=21836532 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9713713, 0.06264991746557422, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21836532_28-03-2025_10_33_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21836564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21836565, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21836566, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21836567, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21836568, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21836569, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21836570, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21836571, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21836572, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21836573, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21836574, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21836575, '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 = 21837339 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 21837339 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 21837339 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21837339 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21837339 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21837339 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21837339_28-03-2025_10_36_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21837339 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_P21837339_28-03-2025_10_36_01.pdf'}" where mtr_portfolio_id = 21837339 and dashboard_run_id = 1704999 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21835473,21836028,21836532,21837339) result : ((1348211895,), (1348211902,), (1348211911,), (1348211925,), (1348211932,), (1348212065,), (1348212098,), (1348212120,), (1348212125,), (1348212131,), (1348212230,), (1348212248,), (1348212272,), (1348212574,), (1348212579,), (1348212587,), (1348212620,), (1348212652,), (1348212665,), (1348212692,), (1348212715,), (1348212730,), (1348212801,), (1348213191,), (1348213213,), (1348213225,), (1348213306,), (1348213556,), (1348213561,), (1348213567,), (1348213571,), (1348213622,), (1348213626,), (1348213636,), (1348213639,), (1348213644,), (1348213647,), (1348213677,), (1348213680,), (1348213685,), (1348213690,), (1348213700,), (1348213757,), (1348213760,), (1348213774,), (1348213854,), (1348213856,), (1348213860,), (1348213863,), (1348213871,), (1348213874,), (1348214049,), (1348214059,), (1348214066,), (1348214086,), (1348214107,), (1348214144,), (1348214149,), (1348214155,), (1348214273,), (1348214280,), (1348214286,), (1348214594,), (1348214679,), (1348214710,), (1348214733,), (1348214759,), (1348214785,), (1348214821,), (1348215177,), (1348215210,), (1348214454,), (1348214480,), (1348214507,), (1348214537,), (1348214565,), (1348214980,), (1348215034,), (1348215083,), (1348215134,), (1348215416,), (1348215446,), (1348215596,), (1348215806,), (1348215865,), (1348215911,), (1348216298,), (1348216369,), (1348216424,), (1348216463,), (1348217280,), (1348217372,), (1348217468,), (1348218012,), (1348218057,), (1348218107,), (1348218159,), (1348218186,), (1348218278,), (1348218550,), (1348218596,), (1348218672,), (1348219155,), (1348219200,), (1348219252,), (1348219284,), (1348219339,), (1348219381,), (1348219628,), (1348219630,), (1348219654,), (1348219681,), (1348219716,), (1348219870,), (1348219913,), (1348219934,), (1348219977,), (1348220232,), (1348220259,), (1348220290,), (1348220318,), (1348220344,), (1348220578,), (1348220597,), (1348220634,), (1348220682,), (1348220720,), (1348220837,), (1348220852,), (1348220876,), (1348220896,), (1348220956,), (1348220959,), (1348220962,), (1348220966,), (1348220970,), (1348221003,), (1348221008,), (1348221011,), (1348221015,), (1348221020,), (1348221027,), (1348221204,), (1348221054,), (1348221056,), (1348221169,), (1348221277,), (1348221280,), (1348221286,), (1348221289,), (1348221296,), (1348221301,), (1348221332,), (1348221335,), (1348221339,), (1348221344,), (1348221350,), (1348221383,), (1348221523,), (1348221548,), (1348221570,), (1348221797,), (1348221846,), (1348221866,), (1348221874,), (1348221884,), (1348221924,), (1348221929,), (1348221933,), (1348221944,), (1348221953,), (1348221979,), (1348221986,), (1348222028,), (1348222057,), (1348222063,), (1348222072,), (1348222171,), (1348222185,), (1348222203,), (1348222359,), (1348222373,), (1348222400,), (1348222410,), (1348222430,), (1348222437,), (1348222453,), (1348222456,), (1348222462,), (1348222480,), (1348222483,), (1348222489,), (1348222509,), (1348222529,), (1348222550,), (1348222556,), (1348222588,), (1348222597,), (1348222657,), (1348222694,), (1348222771,), (1348223036,), (1348223058,), (1348223066,), (1348223114,), (1348223126,), (1348223164,), (1348223242,), (1348223282,), (1348223307,), (1348223320,), (1348223334,), (1348223396,), (1348223398,), (1348223404,), (1348223409,), (1348223414,), (1348223511,), (1348223445,), (1348223447,), (1348223457,), (1348223462,), (1348223497,), (1348223759,), (1348223878,), (1348223940,), (1348223987,), (1348224216,), (1348224272,), (1348224284,), (1348224297,), (1348224302,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28032025': {'nb_upload': 14, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21837339]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1348224302, 1348224297, 1348224284, 1348224272, 1348224216, 1348223987, 1348223940, 1348223878, 1348223759, 1348223497, 1348223462, 1348223457, 1348223447, 1348223445] map_info['map_portfolio_photo'] : {21837339: [1348224302, 1348224297, 1348224284, 1348224272, 1348224216, 1348223987, 1348223940, 1348223878, 1348223759, 1348223497, 1348223462, 1348223457, 1348223447, 1348223445]} final : True mtd_id 4302 list_pids : [1348224302, 1348224297, 1348224284, 1348224272, 1348224216, 1348223987, 1348223940, 1348223878, 1348223759, 1348223497, 1348223462, 1348223457, 1348223447, 1348223445] Looping around the photos to save general results len do output : 1 /21837339Didn'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, '2701238') ('4302', '21837339', '1348224302', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348224297', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348224284', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348224272', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348224216', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223987', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223940', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223878', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223759', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223497', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223462', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223457', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223447', None, None, None, None, None, '2701238') ('4302', None, None, None, None, None, None, None, '2701238') ('4302', '21837339', '1348223445', None, None, None, None, None, '2701238') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '21837339', 'None', None, None, None, None, '2701238'), ('4302', '21837339', '1348224302', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348224297', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348224284', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348224272', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348224216', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348223987', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348223940', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348223878', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348223759', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348223497', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348223462', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348223457', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348223447', None, None, None, None, None, '2701238'), ('4302', '21837339', '1348223445', None, None, None, None, None, '2701238')] time used for this insertion : 0.766047477722168 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5318353176116943 time spend to save output : 0.7664175033569336 total time spend for step 5 : 1.298252820968628 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 (2701238) 2.59user 2.60system 0:10.26elapsed 50%CPU (0avgtext+0avgdata 160656maxresident)k 152inputs+8336outputs (11major+75498minor)pagefaults 0swaps