insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22719620 , 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=22719615 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 (22719620) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22719615) result : ((1356376612,), (1356376616,), (1356376621,), (1356376766,), (1356376771,), (1356376776,), (1356376781,), (1356376969,), (1356376974,), (1356376978,), (1356376980,), (1356376983,), (1356377048,), (1356377061,), (1356377071,), (1356377080,), (1356377086,), (1356377091,), (1356377101,), (1356377112,), (1356377115,), (1356377120,), (1356377193,), (1356377242,), (1356377250,), (1356377267,), (1356377288,), (1356377292,), (1356377314,), (1356377319,), (1356377327,), (1356377339,), (1356377463,), (1356377495,), (1356377524,), (1356377573,), (1356377618,), (1356378085,), (1356378114,), (1356378136,), (1356378142,), (1356378145,)) 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 22719621 , 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=22719615 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 (22719621) result : ((1356377143,), (1356377161,), (1356377345,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22719615) result : ((1356376612,), (1356376616,), (1356376621,), (1356376766,), (1356376771,), (1356376776,), (1356376781,), (1356376969,), (1356376974,), (1356376978,), (1356376980,), (1356376983,), (1356377048,), (1356377061,), (1356377071,), (1356377080,), (1356377086,), (1356377091,), (1356377101,), (1356377112,), (1356377115,), (1356377120,), (1356377193,), (1356377242,), (1356377250,), (1356377267,), (1356377288,), (1356377292,), (1356377314,), (1356377319,), (1356377327,), (1356377339,), (1356377463,), (1356377495,), (1356377524,), (1356377573,), (1356377618,), (1356378085,), (1356378114,), (1356378136,), (1356378142,), (1356378145,)) 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 22719622 , 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=22719615 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_brun' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22719622) result : ((1356377246,), (1356377247,), (1356377344,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22719615) result : ((1356376612,), (1356376616,), (1356376621,), (1356376766,), (1356376771,), (1356376776,), (1356376781,), (1356376969,), (1356376974,), (1356376978,), (1356376980,), (1356376983,), (1356377048,), (1356377061,), (1356377071,), (1356377080,), (1356377086,), (1356377091,), (1356377101,), (1356377112,), (1356377115,), (1356377120,), (1356377193,), (1356377242,), (1356377250,), (1356377267,), (1356377288,), (1356377292,), (1356377314,), (1356377319,), (1356377327,), (1356377339,), (1356377463,), (1356377495,), (1356377524,), (1356377573,), (1356377618,), (1356378085,), (1356378114,), (1356378136,), (1356378142,), (1356378145,)) 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 22719623 , 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=22719615 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 (22719623) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22719615) result : ((1356376612,), (1356376616,), (1356376621,), (1356376766,), (1356376771,), (1356376776,), (1356376781,), (1356376969,), (1356376974,), (1356376978,), (1356376980,), (1356376983,), (1356377048,), (1356377061,), (1356377071,), (1356377080,), (1356377086,), (1356377091,), (1356377101,), (1356377112,), (1356377115,), (1356377120,), (1356377193,), (1356377242,), (1356377250,), (1356377267,), (1356377288,), (1356377292,), (1356377314,), (1356377319,), (1356377327,), (1356377339,), (1356377463,), (1356377495,), (1356377524,), (1356377573,), (1356377618,), (1356378085,), (1356378114,), (1356378136,), (1356378142,), (1356378145,)) 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 22719624 , 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=22719615 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='flou' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22719624) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22719615) result : ((1356376612,), (1356376616,), (1356376621,), (1356376766,), (1356376771,), (1356376776,), (1356376781,), (1356376969,), (1356376974,), (1356376978,), (1356376980,), (1356376983,), (1356377048,), (1356377061,), (1356377071,), (1356377080,), (1356377086,), (1356377091,), (1356377101,), (1356377112,), (1356377115,), (1356377120,), (1356377193,), (1356377242,), (1356377250,), (1356377267,), (1356377288,), (1356377292,), (1356377314,), (1356377319,), (1356377327,), (1356377339,), (1356377463,), (1356377495,), (1356377524,), (1356377573,), (1356377618,), (1356378085,), (1356378114,), (1356378136,), (1356378142,), (1356378145,)) 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 22719625 , 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=22719615 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 (22719625) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22719615) result : ((1356376612,), (1356376616,), (1356376621,), (1356376766,), (1356376771,), (1356376776,), (1356376781,), (1356376969,), (1356376974,), (1356376978,), (1356376980,), (1356376983,), (1356377048,), (1356377061,), (1356377071,), (1356377080,), (1356377086,), (1356377091,), (1356377101,), (1356377112,), (1356377115,), (1356377120,), (1356377193,), (1356377242,), (1356377250,), (1356377267,), (1356377288,), (1356377292,), (1356377314,), (1356377319,), (1356377327,), (1356377339,), (1356377463,), (1356377495,), (1356377524,), (1356377573,), (1356377618,), (1356378085,), (1356378114,), (1356378136,), (1356378142,), (1356378145,)) 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 22719626 , 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=22719615 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 (22719626) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22719615) result : ((1356376612,), (1356376616,), (1356376621,), (1356376766,), (1356376771,), (1356376776,), (1356376781,), (1356376969,), (1356376974,), (1356376978,), (1356376980,), (1356376983,), (1356377048,), (1356377061,), (1356377071,), (1356377080,), (1356377086,), (1356377091,), (1356377101,), (1356377112,), (1356377115,), (1356377120,), (1356377193,), (1356377242,), (1356377250,), (1356377267,), (1356377288,), (1356377292,), (1356377314,), (1356377319,), (1356377327,), (1356377339,), (1356377463,), (1356377495,), (1356377524,), (1356377573,), (1356377618,), (1356378085,), (1356378114,), (1356378136,), (1356378142,), (1356378145,)) 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 22719627 , 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=22719615 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 (22719627) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22719615) result : ((1356376612,), (1356376616,), (1356376621,), (1356376766,), (1356376771,), (1356376776,), (1356376781,), (1356376969,), (1356376974,), (1356376978,), (1356376980,), (1356376983,), (1356377048,), (1356377061,), (1356377071,), (1356377080,), (1356377086,), (1356377091,), (1356377101,), (1356377112,), (1356377115,), (1356377120,), (1356377193,), (1356377242,), (1356377250,), (1356377267,), (1356377288,), (1356377292,), (1356377314,), (1356377319,), (1356377327,), (1356377339,), (1356377463,), (1356377495,), (1356377524,), (1356377573,), (1356377618,), (1356378085,), (1356378114,), (1356378136,), (1356378142,), (1356378145,)) 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`=22719615 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','papier','autre_refus','flou','cartonnette','environnement','mal_croppe','Carton_brun','Carton_gris','plastique','kraft','metal')) 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`=22719615 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','papier','autre_refus','flou','cartonnette','environnement','mal_croppe','Carton_brun','Carton_gris','plastique','kraft','metal')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 22719615, 'sub_port_id': 22719628, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15135257, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 7), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 7), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 7)}, 'autre_refus': {'main_port_id': 22719615, 'sub_port_id': 22719629, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15135258, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 7), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 7), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 7)}, 'Carton_gris': {'main_port_id': 22719615, 'sub_port_id': 22719630, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15135259, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 7), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 7), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 7)}, 'Teint_Dans_La_Masse': {'main_port_id': 22719615, 'sub_port_id': 22719631, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15135260, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 7), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 7), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 7)}, 'papier': {'main_port_id': 22719615, 'sub_port_id': 22719632, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15135261, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 7), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 7), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 7)}, 'plastique': {'main_port_id': 22719615, 'sub_port_id': 22719633, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15135262, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 7), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 7), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 7)}, 'Carton_brun': {'main_port_id': 22719615, 'sub_port_id': 22719634, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15135263, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 7), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 7), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 7)}, 'metal': {'main_port_id': 22719615, 'sub_port_id': 22719635, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15135264, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 7), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 7), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 7)}, 'flou': {'main_port_id': 22719615, 'sub_port_id': 22719636, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15135265, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 7), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 7), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 7)}, 'environnement': {'main_port_id': 22719615, 'sub_port_id': 22719637, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15135266, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 7), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 7), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 7)}, 'mal_croppe': {'main_port_id': 22719615, 'sub_port_id': 22719638, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15135267, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 7), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 7), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 7)}, 'kraft': {'main_port_id': 22719615, 'sub_port_id': 22719639, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 15135268, 'last_updated_at': datetime.datetime(2025, 5, 6, 18, 10, 31), 'last_updated_at_desc': datetime.datetime(2025, 5, 6, 18, 10, 31), 'last_updated_at_asc': datetime.datetime(2025, 5, 6, 18, 7)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22719628,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22719616 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22719629,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22719617 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22719630,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22719618 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22719631,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22719619 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22719632,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22719620 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22719633,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22719621 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22719634,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22719622 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22719635,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22719623 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22719636,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22719624 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22719637,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22719625 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22719638,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22719626 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22719639,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22719627 lien utilise dans velours : https://www.fotonower.com/velours/22719628,22719629,22719630,22719631,22719632,22719633,22719634,22719635,22719636,22719637,22719638,22719639?tags=cartonnette,autre_refus,Carton_gris,Teint_Dans_La_Masse,papier,plastique,Carton_brun,metal,flou,environnement,mal_croppe,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22719615]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1356378145, 1356378142, 1356378136, 1356378114, 1356378085, 1356377618, 1356377573, 1356377524, 1356377495, 1356377463, 1356377339, 1356377327, 1356377319, 1356377314, 1356377292, 1356377288, 1356377267, 1356377250, 1356377242, 1356377193] map_info['map_portfolio_photo'] : {22719615: [1356378145, 1356378142, 1356378136, 1356378114, 1356378085, 1356377618, 1356377573, 1356377524, 1356377495, 1356377463, 1356377339, 1356377327, 1356377319, 1356377314, 1356377292, 1356377288, 1356377267, 1356377250, 1356377242, 1356377193, 1356377120, 1356377115, 1356377112, 1356377101, 1356377091, 1356377086, 1356377080, 1356377071, 1356377061, 1356377048, 1356376983, 1356376980, 1356376978, 1356376974, 1356376969, 1356376781, 1356376776, 1356376771, 1356376766, 1356376621, 1356376616, 1356376612]} final : False mtd_id 4302 list_pids : [1356378145, 1356378142, 1356378136, 1356378114, 1356378085, 1356377618, 1356377573, 1356377524, 1356377495, 1356377463, 1356377339, 1356377327, 1356377319, 1356377314, 1356377292, 1356377288, 1356377267, 1356377250, 1356377242, 1356377193] Looping around the photos to save general results len do output : 1 /22719615. 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, '2798142') ('4302', '22719615', '1356378145', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356378142', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356378136', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356378114', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356378085', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377618', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377573', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377524', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377495', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377463', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377339', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377327', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377319', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377314', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377292', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377288', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377267', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377250', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377242', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377193', None, None, None, None, None, '2798142') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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, '22719615', "{'cartonnette': 22719616, 'autre_refus': 22719617, 'Carton_gris': 22719618, 'Teint_Dans_La_Masse': 22719619, 'papier': 22719620, 'plastique': 22719621, 'Carton_brun': 22719622, 'metal': 22719623, 'flou': 22719624, 'environnement': 22719625, 'mal_croppe': 22719626, 'kraft': 22719627}", None, None, None, None, '2798142'), ('4302', '22719615', '1356378145', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356378142', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356378136', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356378114', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356378085', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377618', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377573', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377524', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377495', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377463', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377339', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377327', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377319', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377314', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377292', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377288', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377267', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377250', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377242', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377193', None, None, None, None, None, '2798142')] time used for this insertion : 0.017275094985961914 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.482165813446045 time spend to save output : 0.01760554313659668 total time spend for step 1 : 1.4997713565826416 step2:final Tue May 6 18:14:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 (22719615) 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 22719615 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1356376621,1356376616,1356376612,1356376781,1356376776,1356376771,1356376766,1356376983,1356376980,1356376978,1356376974,1356376969,1356377091,1356377086,1356377080,1356377071,1356377061,1356377048,1356377120,1356377115,1356377112,1356377101,1356377292,1356377288,1356377267,1356377250,1356377242,1356377193,1356377339,1356377327,1356377319,1356377314,1356377618,1356377573,1356377524,1356377495,1356377463,1356378145,1356378142,1356378136,1356378114,1356378085); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22719615]) Inside saveOutput : final : False verbose : True original output for save of step final : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ('0.03465711620311917',), 1356377267: ('0.03465711620311917',), 1356377250: ('0.03465711620311917',), 1356377242: ('0.03465711620311917',), 1356377193: ('0.03465711620311917',)} new output for save of step final : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ('0.03465711620311917',), 1356377267: ('0.03465711620311917',), 1356377250: ('0.03465711620311917',), 1356377242: ('0.03465711620311917',), 1356377193: ('0.03465711620311917',)} [1356378145, 1356378142, 1356378136, 1356378114, 1356378085, 1356377618, 1356377573, 1356377524, 1356377495, 1356377463, 1356377339, 1356377327, 1356377319, 1356377314, 1356377292, 1356377288, 1356377267, 1356377250, 1356377242, 1356377193] map_info['map_portfolio_photo'] : {22719615: [1356378145, 1356378142, 1356378136, 1356378114, 1356378085, 1356377618, 1356377573, 1356377524, 1356377495, 1356377463, 1356377339, 1356377327, 1356377319, 1356377314, 1356377292, 1356377288, 1356377267, 1356377250, 1356377242, 1356377193, 1356377120, 1356377115, 1356377112, 1356377101, 1356377091, 1356377086, 1356377080, 1356377071, 1356377061, 1356377048, 1356376983, 1356376980, 1356376978, 1356376974, 1356376969, 1356376781, 1356376776, 1356376771, 1356376766, 1356376621, 1356376616, 1356376612]} final : False mtd_id 4302 list_pids : [1356378145, 1356378142, 1356378136, 1356378114, 1356378085, 1356377618, 1356377573, 1356377524, 1356377495, 1356377463, 1356377339, 1356377327, 1356377319, 1356377314, 1356377292, 1356377288, 1356377267, 1356377250, 1356377242, 1356377193] Looping around the photos to save general results len do output : 20 /1356378145.Didn't retrieve data . /1356378142.Didn't retrieve data . /1356378136.Didn't retrieve data . /1356378114.Didn't retrieve data . /1356378085.Didn't retrieve data . /1356377618.Didn't retrieve data . /1356377573.Didn't retrieve data . /1356377524.Didn't retrieve data . /1356377495.Didn't retrieve data . /1356377463.Didn't retrieve data . /1356377339.Didn't retrieve data . /1356377327.Didn't retrieve data . /1356377319.Didn't retrieve data . /1356377314.Didn't retrieve data . /1356377292.Didn't retrieve data . /1356377288.Didn't retrieve data . /1356377267.Didn't retrieve data . /1356377250.Didn't retrieve data . /1356377242.Didn't retrieve data . /1356377193.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, '2798142') ('4302', '22719615', '1356378145', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356378142', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356378136', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356378114', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356378085', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377618', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377573', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377524', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377495', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377463', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377339', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377327', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377319', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377314', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377292', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377288', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377267', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377250', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377242', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377193', None, None, None, None, None, '2798142') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 60 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', '22719615', '1356378145', '0.03465711620311917', None, None, None, None, '2798142'), ('4302', '22719615', '1356378142', '0.03465711620311917', None, None, None, None, '2798142'), ('4302', '22719615', '1356378136', '0.03465711620311917', None, None, None, None, '2798142'), ('4302', '22719615', '1356378114', '0.03465711620311917', None, None, None, None, '2798142'), ('4302', '22719615', '1356378085', '0.03465711620311917', None, None, None, None, '2798142'), ('4302', '22719615', '1356377618', '0.03465711620311917', None, None, None, None, '2798142'), ('4302', '22719615', '1356377573', '0.03465711620311917', None, None, None, None, '2798142'), ('4302', '22719615', '1356377524', '0.03465711620311917', None, None, None, None, '2798142'), ('4302', '22719615', '1356377495', '0.03465711620311917', None, None, None, None, '2798142'), ('4302', '22719615', '1356377463', '0.03465711620311917', None, None, None, None, '2798142'), ('4302', '22719615', '1356377339', '0.03465711620311917', None, None, None, None, '2798142'), ('4302', '22719615', '1356377327', '0.03465711620311917', None, None, None, None, '2798142'), ('4302', '22719615', '1356377319', '0.03465711620311917', None, None, None, None, '2798142'), ('4302', '22719615', '1356377314', '0.03465711620311917', None, None, None, None, '2798142'), ('4302', '22719615', '1356377292', '0.03465711620311917', None, None, None, None, '2798142'), ('4302', '22719615', '1356377288', '0.03465711620311917', None, None, None, None, '2798142'), ('4302', '22719615', '1356377267', '0.03465711620311917', None, None, None, None, '2798142'), ('4302', '22719615', '1356377250', '0.03465711620311917', None, None, None, None, '2798142'), ('4302', '22719615', '1356377242', '0.03465711620311917', None, None, None, None, '2798142'), ('4302', '22719615', '1356377193', '0.03465711620311917', None, None, None, None, '2798142')] time used for this insertion : 0.015031099319458008 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0697929859161377 time spend to save output : 0.015969038009643555 total time spend for step 2 : 0.08576202392578125 step3:velours_tree Tue May 6 18:14:31 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22719615: [{'cartonnette': 22719616, 'autre_refus': 22719617, 'Carton_gris': 22719618, 'Teint_Dans_La_Masse': 22719619, 'papier': 22719620, 'plastique': 22719621, 'Carton_brun': 22719622, 'metal': 22719623, 'flou': 22719624, 'environnement': 22719625, 'mal_croppe': 22719626, 'kraft': 22719627}]} input_args_next_step : {22719615: ()} output_args : {22719615: [{'cartonnette': 22719616, 'autre_refus': 22719617, 'Carton_gris': 22719618, 'Teint_Dans_La_Masse': 22719619, 'papier': 22719620, 'plastique': 22719621, 'Carton_brun': 22719622, 'metal': 22719623, 'flou': 22719624, 'environnement': 22719625, 'mal_croppe': 22719626, 'kraft': 22719627}]} args : 22719615 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 : ({'cartonnette': 22719616, 'autre_refus': 22719617, 'Carton_gris': 22719618, 'Teint_Dans_La_Masse': 22719619, 'papier': 22719620, 'plastique': 22719621, 'Carton_brun': 22719622, 'metal': 22719623, 'flou': 22719624, 'environnement': 22719625, 'mal_croppe': 22719626, 'kraft': 22719627},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22719615) 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([22719615]) 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.8841001987457275 time spend to save output : 5.14984130859375e-05 total time spend for step 3 : 0.8841516971588135 step4:send_mail_cod Tue May 6 18:14:32 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 : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ('0.03465711620311917',), 1356377267: ('0.03465711620311917',), 1356377250: ('0.03465711620311917',), 1356377242: ('0.03465711620311917',), 1356377193: ('0.03465711620311917',)} input_args_next_step : {1356378145: ()} output_args : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ('0.03465711620311917',), 1356377267: ('0.03465711620311917',), 1356377250: ('0.03465711620311917',), 1356377242: ('0.03465711620311917',), 1356377193: ('0.03465711620311917',)} args : 1356378145 depend.output_id : 0 input_args_next_step : {1356378145: ('0.03465711620311917',), 1356378142: ()} output_args : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ('0.03465711620311917',), 1356377267: ('0.03465711620311917',), 1356377250: ('0.03465711620311917',), 1356377242: ('0.03465711620311917',), 1356377193: ('0.03465711620311917',)} args : 1356378142 depend.output_id : 0 input_args_next_step : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ()} output_args : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ('0.03465711620311917',), 1356377267: ('0.03465711620311917',), 1356377250: ('0.03465711620311917',), 1356377242: ('0.03465711620311917',), 1356377193: ('0.03465711620311917',)} args : 1356378136 depend.output_id : 0 input_args_next_step : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ()} output_args : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ('0.03465711620311917',), 1356377267: ('0.03465711620311917',), 1356377250: ('0.03465711620311917',), 1356377242: ('0.03465711620311917',), 1356377193: ('0.03465711620311917',)} args : 1356378114 depend.output_id : 0 input_args_next_step : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ()} output_args : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ('0.03465711620311917',), 1356377267: ('0.03465711620311917',), 1356377250: ('0.03465711620311917',), 1356377242: ('0.03465711620311917',), 1356377193: ('0.03465711620311917',)} args : 1356378085 depend.output_id : 0 input_args_next_step : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ()} output_args : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ('0.03465711620311917',), 1356377267: ('0.03465711620311917',), 1356377250: ('0.03465711620311917',), 1356377242: ('0.03465711620311917',), 1356377193: ('0.03465711620311917',)} args : 1356377618 depend.output_id : 0 input_args_next_step : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ()} output_args : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ('0.03465711620311917',), 1356377267: ('0.03465711620311917',), 1356377250: ('0.03465711620311917',), 1356377242: ('0.03465711620311917',), 1356377193: ('0.03465711620311917',)} args : 1356377573 depend.output_id : 0 input_args_next_step : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ()} output_args : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ('0.03465711620311917',), 1356377267: ('0.03465711620311917',), 1356377250: ('0.03465711620311917',), 1356377242: ('0.03465711620311917',), 1356377193: ('0.03465711620311917',)} args : 1356377524 depend.output_id : 0 input_args_next_step : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ()} output_args : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ('0.03465711620311917',), 1356377267: ('0.03465711620311917',), 1356377250: ('0.03465711620311917',), 1356377242: ('0.03465711620311917',), 1356377193: ('0.03465711620311917',)} args : 1356377495 depend.output_id : 0 input_args_next_step : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ()} output_args : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ('0.03465711620311917',), 1356377267: ('0.03465711620311917',), 1356377250: ('0.03465711620311917',), 1356377242: ('0.03465711620311917',), 1356377193: ('0.03465711620311917',)} args : 1356377463 depend.output_id : 0 input_args_next_step : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ()} output_args : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ('0.03465711620311917',), 1356377267: ('0.03465711620311917',), 1356377250: ('0.03465711620311917',), 1356377242: ('0.03465711620311917',), 1356377193: ('0.03465711620311917',)} args : 1356377339 depend.output_id : 0 input_args_next_step : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ()} output_args : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ('0.03465711620311917',), 1356377267: ('0.03465711620311917',), 1356377250: ('0.03465711620311917',), 1356377242: ('0.03465711620311917',), 1356377193: ('0.03465711620311917',)} args : 1356377327 depend.output_id : 0 input_args_next_step : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ()} output_args : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ('0.03465711620311917',), 1356377267: ('0.03465711620311917',), 1356377250: ('0.03465711620311917',), 1356377242: ('0.03465711620311917',), 1356377193: ('0.03465711620311917',)} args : 1356377319 depend.output_id : 0 input_args_next_step : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ()} output_args : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ('0.03465711620311917',), 1356377267: ('0.03465711620311917',), 1356377250: ('0.03465711620311917',), 1356377242: ('0.03465711620311917',), 1356377193: ('0.03465711620311917',)} args : 1356377314 depend.output_id : 0 input_args_next_step : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ()} output_args : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ('0.03465711620311917',), 1356377267: ('0.03465711620311917',), 1356377250: ('0.03465711620311917',), 1356377242: ('0.03465711620311917',), 1356377193: ('0.03465711620311917',)} args : 1356377292 depend.output_id : 0 input_args_next_step : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ()} output_args : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ('0.03465711620311917',), 1356377267: ('0.03465711620311917',), 1356377250: ('0.03465711620311917',), 1356377242: ('0.03465711620311917',), 1356377193: ('0.03465711620311917',)} args : 1356377288 depend.output_id : 0 input_args_next_step : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ('0.03465711620311917',), 1356377267: ()} output_args : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ('0.03465711620311917',), 1356377267: ('0.03465711620311917',), 1356377250: ('0.03465711620311917',), 1356377242: ('0.03465711620311917',), 1356377193: ('0.03465711620311917',)} args : 1356377267 depend.output_id : 0 input_args_next_step : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ('0.03465711620311917',), 1356377267: ('0.03465711620311917',), 1356377250: ()} output_args : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ('0.03465711620311917',), 1356377267: ('0.03465711620311917',), 1356377250: ('0.03465711620311917',), 1356377242: ('0.03465711620311917',), 1356377193: ('0.03465711620311917',)} args : 1356377250 depend.output_id : 0 input_args_next_step : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ('0.03465711620311917',), 1356377267: ('0.03465711620311917',), 1356377250: ('0.03465711620311917',), 1356377242: ()} output_args : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ('0.03465711620311917',), 1356377267: ('0.03465711620311917',), 1356377250: ('0.03465711620311917',), 1356377242: ('0.03465711620311917',), 1356377193: ('0.03465711620311917',)} args : 1356377242 depend.output_id : 0 input_args_next_step : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ('0.03465711620311917',), 1356377267: ('0.03465711620311917',), 1356377250: ('0.03465711620311917',), 1356377242: ('0.03465711620311917',), 1356377193: ()} output_args : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ('0.03465711620311917',), 1356377267: ('0.03465711620311917',), 1356377250: ('0.03465711620311917',), 1356377242: ('0.03465711620311917',), 1356377193: ('0.03465711620311917',)} args : 1356377193 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 : {22719615: [{'cartonnette': 22719616, 'autre_refus': 22719617, 'Carton_gris': 22719618, 'Teint_Dans_La_Masse': 22719619, 'papier': 22719620, 'plastique': 22719621, 'Carton_brun': 22719622, 'metal': 22719623, 'flou': 22719624, 'environnement': 22719625, 'mal_croppe': 22719626, 'kraft': 22719627}]} input_args_next_step : {1356378145: ('0.03465711620311917',), 1356378142: ('0.03465711620311917',), 1356378136: ('0.03465711620311917',), 1356378114: ('0.03465711620311917',), 1356378085: ('0.03465711620311917',), 1356377618: ('0.03465711620311917',), 1356377573: ('0.03465711620311917',), 1356377524: ('0.03465711620311917',), 1356377495: ('0.03465711620311917',), 1356377463: ('0.03465711620311917',), 1356377339: ('0.03465711620311917',), 1356377327: ('0.03465711620311917',), 1356377319: ('0.03465711620311917',), 1356377314: ('0.03465711620311917',), 1356377292: ('0.03465711620311917',), 1356377288: ('0.03465711620311917',), 1356377267: ('0.03465711620311917',), 1356377250: ('0.03465711620311917',), 1356377242: ('0.03465711620311917',), 1356377193: ('0.03465711620311917',), 22719615: ()} output_args : {22719615: [{'cartonnette': 22719616, 'autre_refus': 22719617, 'Carton_gris': 22719618, 'Teint_Dans_La_Masse': 22719619, 'papier': 22719620, 'plastique': 22719621, 'Carton_brun': 22719622, 'metal': 22719623, 'flou': 22719624, 'environnement': 22719625, 'mal_croppe': 22719626, 'kraft': 22719627}]} args : 22719615 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 :21, first value : ('0.03465711620311917',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22719615) 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 (1356378145,1356378142,1356378136,1356378114,1356378085,1356377618,1356377573,1356377524,1356377495,1356377463,1356377339,1356377327,1356377319,1356377314,1356377292,1356377288,1356377267,1356377250,1356377242,1356377193) Found this number of photos: 20 ##### Call download_photos : nb_thread : 5 begin to download photo : 1356377193 begin to download photo : 1356377292 begin to download photo : 1356377463 begin to download photo : 1356378085 download finish for photo 1356377292 begin to download photo : 1356377314 download finish for photo 1356377463 begin to download photo : 1356377495 download finish for photo 1356378085 begin to download photo : 1356378114 download finish for photo 1356377193 begin to download photo : 1356377242 download finish for photo 1356377495 begin to download photo : 1356377524 download finish for photo 1356378114 begin to download photo : 1356378136 download finish for photo 1356377314 begin to download photo : 1356377319 download finish for photo 1356377242 begin to download photo : 1356377250 download finish for photo 1356377524 begin to download photo : 1356377573 download finish for photo 1356378136 begin to download photo : 1356378142 download finish for photo 1356377319 begin to download photo : 1356377327 download finish for photo 1356377250 begin to download photo : 1356377267 download finish for photo 1356378142 begin to download photo : 1356378145 download finish for photo 1356377327 begin to download photo : 1356377339 download finish for photo 1356377573 begin to download photo : 1356377618 download finish for photo 1356377267 begin to download photo : 1356377288 download finish for photo 1356378145 download finish for photo 1356377339 download finish for photo 1356377618 download finish for photo 1356377288 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 20 ; length of list_pids : 20 ; length of list_args : 20 results_Auto_P22719615_06-05-2025_18_14_33.pdf 22719616 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=22719616 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356377159: '1746547751_1661200_1356376771_c2496987fc7079ff34b3a615002a6047_rle_crop_3786612482_0.png', 1356377967: '1746547934_1664582_1356377086_c8b714a11852d0a6e38e1b54286bebac_rle_crop_3786614131_0.png', 1356377968: '1746547934_1664582_1356377080_274de9c75f97468fc38ad0d9feef9177_rle_crop_3786614139_0.png', 1356377969: '1746547934_1664582_1356377071_9863e3c2fe747d0abfd17059ec133867_rle_crop_3786614161_0.png', 1356377970: '1746547934_1664582_1356377048_c2de51a75be02620848290b5eb0d012b_rle_crop_3786614182_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/a1fbc59bbc41c7ebbe0c7cd91084fdaa_93683124.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/85904c60503ebf58936491877eff9d12_14959633.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/6119eb98b1cdee35232c41007e3b2c98_88839778.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/45806ffb3c3d36637eddc8849200008a_66455927.png change filename to text .imagette227196161746548073/ imagette227196161746548073/1746547751_1661200_1356376771_c2496987fc7079ff34b3a615002a6047_rle_crop_3786612482_0.png.png imagette227196161746548073/1746547934_1664582_1356377086_c8b714a11852d0a6e38e1b54286bebac_rle_crop_3786614131_0.png.png imagette227196161746548073/1746547934_1664582_1356377080_274de9c75f97468fc38ad0d9feef9177_rle_crop_3786614139_0.png.png imagette227196161746548073/1746547934_1664582_1356377048_c2de51a75be02620848290b5eb0d012b_rle_crop_3786614182_0.png.png imagette227196161746548073/1746547934_1664582_1356377071_9863e3c2fe747d0abfd17059ec133867_rle_crop_3786614161_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/ad2f270b79a7fe115856515cfbd86b65_6246225.png imagette227196161746548073 22719617 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=22719617 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356377140: '1746547740_1660931_1356376974_b4171214a33de974ab728eb50305b9c1_rle_crop_3786612400_0.png', 1356377946: '1746547934_1664582_1356377071_9863e3c2fe747d0abfd17059ec133867_rle_crop_3786614158_0.png', 1356377947: '1746547934_1664582_1356377071_9863e3c2fe747d0abfd17059ec133867_rle_crop_3786614164_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/ba6133a5de882921d1a9742271cf38c7_59522118.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/45455a5b3fdf767fea502ac3513a0f5d_56993828.png change filename to text .imagette227196171746548073/ imagette227196171746548073/1746547934_1664582_1356377071_9863e3c2fe747d0abfd17059ec133867_rle_crop_3786614158_0.png.png imagette227196171746548073/1746547934_1664582_1356377071_9863e3c2fe747d0abfd17059ec133867_rle_crop_3786614164_0.png.png imagette227196171746548073/1746547740_1660931_1356376974_b4171214a33de974ab728eb50305b9c1_rle_crop_3786612400_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/d559774dd9037a1155685013b522e015_11978882.png imagette227196171746548073 22719621 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=22719621 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356377143: '1746547740_1660931_1356376974_b4171214a33de974ab728eb50305b9c1_rle_crop_3786612401_0.png', 1356377161: '1746547751_1661200_1356376766_52cba6bf8190d173bb425b5b21941362_rle_crop_3786612525_0.png', 1356377345: '1746547871_1663524_1356377101_29a9e79ab435573ad42ac389e7485830_rle_crop_3786613872_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/cbb600ae7b4675031d99d29183e3cc2c_96137838.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/03f2a6d1bda0c61e21f957f2339f9507_58198302.png change filename to text .imagette227196211746548073/ imagette227196211746548073/1746547751_1661200_1356376766_52cba6bf8190d173bb425b5b21941362_rle_crop_3786612525_0.png.png imagette227196211746548073/1746547871_1663524_1356377101_29a9e79ab435573ad42ac389e7485830_rle_crop_3786613872_0.png.png imagette227196211746548073/1746547740_1660931_1356376974_b4171214a33de974ab728eb50305b9c1_rle_crop_3786612401_0.png.png imagette227196231746548073/ imagette227196241746548073/ imagette227196261746548073/ imagette227196271746548073/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/abef9701741a127ee73ab085da9e27e3_5375489.png imagette227196211746548073 22719623 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=22719623 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227196231746548073 22719624 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=22719624 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227196241746548073 22719626 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=22719626 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227196261746548073 22719627 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=22719627 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette227196271746548073 22719618 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=22719618 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356377141: '1746547740_1660931_1356376978_91bf237d548b62ac6cf430fae3a28212_rle_crop_3786612388_0.png', 1356377142: '1746547740_1660931_1356376974_b4171214a33de974ab728eb50305b9c1_rle_crop_3786612396_0.png', 1356377957: '1746547934_1664582_1356377061_a80a00475a9b1002e1260e3a066c24cc_rle_crop_3786614174_0.png', 1356378181: '1746547993_1665563_1356377267_963bfac0527bcb5e22e706940435c270_rle_crop_3786614402_0.png', 1356378182: '1746547993_1665563_1356377193_5474afe1279e28dbd5d93467e2fb373f_rle_crop_3786614438_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/1d019c133c945bbf4ed62362b02d29ed_63820826.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/77c1c13fb2ecbda8953477d6ceafb0dd_81892213.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/8a0c55b4ca9b3ae056ca06a5d3c37a2c_61682898.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/871f0c3d2d3aa1bc3199dff435231553_76609718.png change filename to text .imagette227196181746548073/ imagette227196181746548073/1746547740_1660931_1356376974_b4171214a33de974ab728eb50305b9c1_rle_crop_3786612396_0.png.png imagette227196181746548073/1746547993_1665563_1356377193_5474afe1279e28dbd5d93467e2fb373f_rle_crop_3786614438_0.png.png imagette227196181746548073/1746547740_1660931_1356376978_91bf237d548b62ac6cf430fae3a28212_rle_crop_3786612388_0.png.png imagette227196181746548073/1746547993_1665563_1356377267_963bfac0527bcb5e22e706940435c270_rle_crop_3786614402_0.png.png imagette227196181746548073/1746547934_1664582_1356377061_a80a00475a9b1002e1260e3a066c24cc_rle_crop_3786614174_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/dce91d0071163c7dd6b07370f507d963_86875044.png imagette227196181746548073 22719619 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=22719619 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356377154: '1746547751_1661200_1356376776_087c80ed1d955db1c710963e6d71f60f_rle_crop_3786612475_0.png', 1356377155: '1746547751_1661200_1356376776_087c80ed1d955db1c710963e6d71f60f_rle_crop_3786612472_0.png', 1356377156: '1746547751_1661200_1356376776_087c80ed1d955db1c710963e6d71f60f_rle_crop_3786612474_0.png', 1356377157: '1746547751_1661200_1356376771_c2496987fc7079ff34b3a615002a6047_rle_crop_3786612487_0.png', 1356377158: '1746547751_1661200_1356376771_c2496987fc7079ff34b3a615002a6047_rle_crop_3786612486_0.png', 1356377243: '1746547811_1662522_1356376781_bf623e054bfc71d224e5949788c0a44f_rle_crop_3786613232_0.png', 1356377244: '1746547811_1662522_1356376781_bf623e054bfc71d224e5949788c0a44f_rle_crop_3786613235_0.png', 1356377856: '1746547934_1664582_1356377080_274de9c75f97468fc38ad0d9feef9177_rle_crop_3786614145_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/8802c44f187089f0ba10665211abe86f_87811272.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/314bd9b415111c4ca23442535355a827_7327748.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/a73aa7b16119d01ae5657f52514eca81_99045690.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/a8aab66ae6d41c7a152d52a32bfa40f5_94673843.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/2ea474cb9d3436b13660f06094ed4d54_65728430.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/f4b301abe2d48567f0b4b3e9d355c584_27956378.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/619158d75121e8f78dd4b07f36956d00_84276399.png change filename to text .imagette227196191746548074/ imagette227196191746548074/1746547751_1661200_1356376776_087c80ed1d955db1c710963e6d71f60f_rle_crop_3786612472_0.png.png imagette227196191746548074/1746547751_1661200_1356376771_c2496987fc7079ff34b3a615002a6047_rle_crop_3786612486_0.png.png imagette227196191746548074/1746547751_1661200_1356376776_087c80ed1d955db1c710963e6d71f60f_rle_crop_3786612475_0.png.png imagette227196191746548074/1746547934_1664582_1356377080_274de9c75f97468fc38ad0d9feef9177_rle_crop_3786614145_0.png.png imagette227196191746548074/1746547751_1661200_1356376771_c2496987fc7079ff34b3a615002a6047_rle_crop_3786612487_0.png.png imagette227196191746548074/1746547811_1662522_1356376781_bf623e054bfc71d224e5949788c0a44f_rle_crop_3786613235_0.png.png imagette227196191746548074/1746547751_1661200_1356376776_087c80ed1d955db1c710963e6d71f60f_rle_crop_3786612474_0.png.png imagette227196191746548074/1746547811_1662522_1356376781_bf623e054bfc71d224e5949788c0a44f_rle_crop_3786613232_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/9bd9917bb8b178cf827b8c98f4737e5e_34616060.png imagette227196191746548074 22719622 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=22719622 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1356377246: '1746547811_1662522_1356376621_ec03e476b90f0dcc323388cb9514648e_rle_crop_3786613253_0.png', 1356377247: '1746547811_1662522_1356376621_ec03e476b90f0dcc323388cb9514648e_rle_crop_3786613248_0.png', 1356377344: '1746547871_1663524_1356377101_29a9e79ab435573ad42ac389e7485830_rle_crop_3786613875_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/813f50c5546f05837a3ebee575156eef_68861585.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/7a4d414b9cc31cc8f167b7dcb1228338_3675709.png change filename to text .imagette227196221746548074/ imagette227196221746548074/1746547811_1662522_1356376621_ec03e476b90f0dcc323388cb9514648e_rle_crop_3786613253_0.png.png imagette227196221746548074/1746547871_1663524_1356377101_29a9e79ab435573ad42ac389e7485830_rle_crop_3786613875_0.png.png imagette227196221746548074/1746547811_1662522_1356376621_ec03e476b90f0dcc323388cb9514648e_rle_crop_3786613248_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/84f8dedd32e15518a05add16cdac66d8_333289.png imagette227196221746548074 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22719615 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22719628,22719629,22719630,22719631,22719632,22719633,22719634,22719635,22719636,22719637,22719638,22719639?tags=cartonnette,autre_refus,Carton_gris,Teint_Dans_La_Masse,papier,plastique,Carton_brun,metal,flou,environnement,mal_croppe,kraft your option no_mail is active, we will not send the real mail to your client args[1356378145] : ('0.03465711620311917',) no score found for photo 1356378145 We are sending mail with results at report@fotonower.com args[1356378142] : ('0.03465711620311917',) no score found for photo 1356378142 We are sending mail with results at report@fotonower.com args[1356378136] : ('0.03465711620311917',) no score found for photo 1356378136 We are sending mail with results at report@fotonower.com args[1356378114] : ('0.03465711620311917',) no score found for photo 1356378114 We are sending mail with results at report@fotonower.com args[1356378085] : ('0.03465711620311917',) no score found for photo 1356378085 We are sending mail with results at report@fotonower.com args[1356377618] : ('0.03465711620311917',) no score found for photo 1356377618 We are sending mail with results at report@fotonower.com args[1356377573] : ('0.03465711620311917',) no score found for photo 1356377573 We are sending mail with results at report@fotonower.com args[1356377524] : ('0.03465711620311917',) no score found for photo 1356377524 We are sending mail with results at report@fotonower.com args[1356377495] : ('0.03465711620311917',) no score found for photo 1356377495 We are sending mail with results at report@fotonower.com args[1356377463] : ('0.03465711620311917',) no score found for photo 1356377463 We are sending mail with results at report@fotonower.com args[1356377339] : ('0.03465711620311917',) no score found for photo 1356377339 We are sending mail with results at report@fotonower.com args[1356377327] : ('0.03465711620311917',) no score found for photo 1356377327 We are sending mail with results at report@fotonower.com args[1356377319] : ('0.03465711620311917',) no score found for photo 1356377319 We are sending mail with results at report@fotonower.com args[1356377314] : ('0.03465711620311917',) no score found for photo 1356377314 We are sending mail with results at report@fotonower.com args[1356377292] : ('0.03465711620311917',) no score found for photo 1356377292 We are sending mail with results at report@fotonower.com args[1356377288] : ('0.03465711620311917',) no score found for photo 1356377288 We are sending mail with results at report@fotonower.com args[1356377267] : ('0.03465711620311917',) no score found for photo 1356377267 We are sending mail with results at report@fotonower.com args[1356377250] : ('0.03465711620311917',) no score found for photo 1356377250 We are sending mail with results at report@fotonower.com args[1356377242] : ('0.03465711620311917',) no score found for photo 1356377242 We are sending mail with results at report@fotonower.com args[1356377193] : ('0.03465711620311917',) no score found for photo 1356377193 We are sending mail with results at report@fotonower.com refus_total : 0.03465711620311917 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=22719615 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_P22719615_06-05-2025_18_14_33.pdf results_Auto_P22719615_06-05-2025_18_14_33.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22719615_06-05-2025_18_14_33.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','22719615','results_Auto_P22719615_06-05-2025_18_14_33.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22719615_06-05-2025_18_14_33.pdf','pdf','','0.23','0.03465711620311917') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22719615]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1356378145, 1356378142, 1356378136, 1356378114, 1356378085, 1356377618, 1356377573, 1356377524, 1356377495, 1356377463, 1356377339, 1356377327, 1356377319, 1356377314, 1356377292, 1356377288, 1356377267, 1356377250, 1356377242, 1356377193] map_info['map_portfolio_photo'] : {22719615: [1356378145, 1356378142, 1356378136, 1356378114, 1356378085, 1356377618, 1356377573, 1356377524, 1356377495, 1356377463, 1356377339, 1356377327, 1356377319, 1356377314, 1356377292, 1356377288, 1356377267, 1356377250, 1356377242, 1356377193, 1356377120, 1356377115, 1356377112, 1356377101, 1356377091, 1356377086, 1356377080, 1356377071, 1356377061, 1356377048, 1356376983, 1356376980, 1356376978, 1356376974, 1356376969, 1356376781, 1356376776, 1356376771, 1356376766, 1356376621, 1356376616, 1356376612]} final : False mtd_id 4302 list_pids : [1356378145, 1356378142, 1356378136, 1356378114, 1356378085, 1356377618, 1356377573, 1356377524, 1356377495, 1356377463, 1356377339, 1356377327, 1356377319, 1356377314, 1356377292, 1356377288, 1356377267, 1356377250, 1356377242, 1356377193] 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, '2798142') ('4302', '22719615', '1356378145', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356378142', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356378136', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356378114', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356378085', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377618', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377573', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377524', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377495', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377463', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377339', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377327', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377319', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377314', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377292', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377288', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377267', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377250', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377242', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377193', None, None, None, None, None, '2798142') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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', '22719615', '1356378145', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356378142', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356378136', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356378114', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356378085', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377618', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377573', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377524', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377495', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377463', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377339', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377327', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377319', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377314', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377292', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377288', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377267', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377250', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377242', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377193', None, None, None, None, None, '2798142')] time used for this insertion : 0.014839649200439453 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.595059394836426 time spend to save output : 0.015152931213378906 total time spend for step 4 : 3.6102123260498047 step5:split_time_score Tue May 6 18:14:36 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 : ['22719615'] 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 : [('22719615',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22719615) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1356378085: {'path': 'temp/1746548072_1399433_1356378085_31edd06722bed7e1698367bf04709ce3.jpg', 'extension': 'jpg'}, 1356378114: {'path': 'temp/1746548072_1399433_1356378114_ac25524917d4bf3e79ed33bebd0d4cdc.jpg', 'extension': 'jpg'}, 1356378136: {'path': 'temp/1746548072_1399433_1356378136_5c850ce0250ed8cd4009c9a98d74ab52.jpg', 'extension': 'jpg'}, 1356378142: {'path': 'temp/1746548072_1399433_1356378142_7ae0901cda7e412f493875d6ff6122f9.jpg', 'extension': 'jpg'}, 1356378145: {'path': 'temp/1746548072_1399433_1356378145_2c5c3e1401702d0e5c55352fb01993fc.jpg', 'extension': 'jpg'}, 1356377292: {'path': 'temp/1746548072_1399433_1356377292_a5c0c87e3bdb7b811b9477969224dacd.jpg', 'extension': 'jpg'}, 1356377314: {'path': 'temp/1746548072_1399433_1356377314_201db153d2492d5e6c584584aadd4d9c.jpg', 'extension': 'jpg'}, 1356377319: {'path': 'temp/1746548072_1399433_1356377319_2102ddd25b1f08eb153e13f7e25916ee.jpg', 'extension': 'jpg'}, 1356377327: {'path': 'temp/1746548072_1399433_1356377327_2b337faaf484e774b411702f98ba53a6.jpg', 'extension': 'jpg'}, 1356377339: {'path': 'temp/1746548072_1399433_1356377339_5ce227c1b6af1b7d42027f5d177192be.jpg', 'extension': 'jpg'}, 1356377463: {'path': 'temp/1746548072_1399433_1356377463_71dd4b5cf18d59db5dbfbb6adc212af3.jpg', 'extension': 'jpg'}, 1356377495: {'path': 'temp/1746548072_1399433_1356377495_9a222490542284506e48f897a23bf9b6.jpg', 'extension': 'jpg'}, 1356377524: {'path': 'temp/1746548072_1399433_1356377524_9568c2409d5d647a6ca137b509a4114a.jpg', 'extension': 'jpg'}, 1356377573: {'path': 'temp/1746548072_1399433_1356377573_fce2e3d1e90df7a3d521c1b950808d94.jpg', 'extension': 'jpg'}, 1356377618: {'path': 'temp/1746548072_1399433_1356377618_ac824738ab7abb44b528184d19d51bb9.jpg', 'extension': 'jpg'}, 1356377193: {'path': 'temp/1746548072_1399433_1356377193_5474afe1279e28dbd5d93467e2fb373f.jpg', 'extension': 'jpg'}, 1356377242: {'path': 'temp/1746548072_1399433_1356377242_3ef6d18873049ff9747aa1fc011b4157.jpg', 'extension': 'jpg'}, 1356377250: {'path': 'temp/1746548072_1399433_1356377250_af3acff00afb23456ba10c51c765fa52.jpg', 'extension': 'jpg'}, 1356377267: {'path': 'temp/1746548072_1399433_1356377267_963bfac0527bcb5e22e706940435c270.jpg', 'extension': 'jpg'}, 1356377288: {'path': 'temp/1746548072_1399433_1356377288_f6babe3cbecbf8de28dd7c4e018478d9.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 = 22719615; (('arc_en_ciel_jrm_live',), ('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 = 22719615 group by h (('18', 42),) 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=22719615 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 (22719615) 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 (22719615) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 06052025 22719615 Nombre de photos uploadées : 42 / 23040 (0%) 06052025 22719615 Nombre de photos taguées (types de déchets): 0 / 42 (0%) 06052025 22719615 Nombre de photos taguées (volume) : 0 / 42 (0%) [{'photo_id': 1356376621, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/ec03e476b90f0dcc323388cb9514648e.jpg', 'username': None, 'uploaded_at': 1746547538, 'text': 'image_06052025_18_04_04_010139m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1356376616, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/2361edeea6f2ce35d4ecec4889fa9b1e.jpg', 'username': None, 'uploaded_at': 1746547538, 'text': 'image_06052025_18_04_24_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1356376612, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/4d5f358ac4cbf8f2fe87264c3066837e.jpg', 'username': None, 'uploaded_at': 1746547538, 'text': 'image_06052025_18_04_34_010136m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1356376781, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/5/6/bf623e054bfc71d224e5949788c0a44f.jpg', 'username': None, 'uploaded_at': 1746547573, 'text': 'image_06052025_18_04_44_010135m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 8.344650268554688e-06 ?????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001321554183959961 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22719615, '2025-05-06' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1777292,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.022612571716308594 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= 1777292 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787013, 'mtr_portfolio_id': 22701347, 'dashboard_result_id': 10339188, '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_P22701347_06-05-2025_00_50_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22701348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22701349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22701350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22701351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22701352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22701353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22701354, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22701355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22701356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22701357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22701358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22701359, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787013, 'mtr_portfolio_id': 22702995, 'dashboard_result_id': 10339189, '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_P22702995_06-05-2025_05_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22702996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22702997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22702998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22702999, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22703000, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22703001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22703002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22703003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22703004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22703005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22703006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22703007, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787013, 'mtr_portfolio_id': 22703230, 'dashboard_result_id': 10339190, '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_P22703230_06-05-2025_05_40_40.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22703232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22703233, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22703234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22703235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22703236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22703237, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22703238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22703239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22703240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22703241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22703242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22703243, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787013, 'mtr_portfolio_id': 22703472, 'dashboard_result_id': 10339191, '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_P22703472_06-05-2025_05_49_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22703479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22703480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22703481, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22703482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22703483, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22703484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22703485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22703486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22703487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22703488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22703489, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22703490, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787013, 'mtr_portfolio_id': 22704016, 'dashboard_result_id': 10339192, '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_P22704016_06-05-2025_06_03_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22704043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22704044, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22704045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22704046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22704047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22704048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22704049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22704050, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22704051, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22704052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22704053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22704054, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787013, 'mtr_portfolio_id': 22704427, 'dashboard_result_id': 10339193, '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_P22704427_06-05-2025_06_18_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22704428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22704429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22704430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22704431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22704432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22704433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22704434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22704435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22704436, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22704437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22704438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22704439, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787013, 'mtr_portfolio_id': 22704969, 'dashboard_result_id': 10339194, '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_P22704969_06-05-2025_06_34_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22704995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22704996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22704997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22704998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22704999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22705000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22705001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22705002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22705003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22705004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22705005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22705006, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787013, 'mtr_portfolio_id': 22705529, 'dashboard_result_id': 10339195, '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_P22705529_06-05-2025_06_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22705530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22705531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22705532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22705533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22705534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22705535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22705536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22705537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22705538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22705539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22705540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22705541, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787013, 'mtr_portfolio_id': 22705714, 'dashboard_result_id': 10339196, '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_P22705714_06-05-2025_07_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22705746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22705747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22705748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22705749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22705750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22705751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22705752, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22705753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22705754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22705755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22705756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22705757, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787013, 'mtr_portfolio_id': 22706282, 'dashboard_result_id': 10339197, '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_P22706282_06-05-2025_07_18_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22706327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22706328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22706329, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22706330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22706331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22706332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22706333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22706334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22706335, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22706336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22706337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22706338, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787013, 'mtr_portfolio_id': 22707050, 'dashboard_result_id': 10339198, '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_P22707050_06-05-2025_07_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22707078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22707079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22707080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22707081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22707082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22707083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22707084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22707085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22707086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22707087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22707088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22707089, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787013, 'mtr_portfolio_id': 22707600, 'dashboard_result_id': 10339199, '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_P22707600_06-05-2025_07_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22707632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22707633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22707634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22707635, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22707636, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22707637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22707638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22707639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22707640, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22707641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22707642, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22707643, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787013, 'mtr_portfolio_id': 22708159, 'dashboard_result_id': 10339200, '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_P22708159_06-05-2025_08_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22708167, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22708168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22708169, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22708170, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22708171, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22708172, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22708173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22708174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22708175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22708176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22708177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22708178, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787013, 'mtr_portfolio_id': 22708833, 'dashboard_result_id': 10339201, '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_P22708833_06-05-2025_08_19_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22708835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22708836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22708837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22708838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22708839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22708840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22708841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22708842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22708843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22708844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22708845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22708846, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787013, 'mtr_portfolio_id': 22709529, 'dashboard_result_id': 10339202, '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_P22709529_06-05-2025_08_33_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22709625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22709626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22709627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22709628, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22709629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22709630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22709631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22709632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22709633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22709634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22709635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22709636, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787013, 'mtr_portfolio_id': 22710140, 'dashboard_result_id': 10339203, '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_P22710140_06-05-2025_08_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22710145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22710146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22710147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22710148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22710149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22710150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22710151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22710152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22710153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22710154, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22710155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22710156, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787013, 'mtr_portfolio_id': 22710502, 'dashboard_result_id': 10339204, '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_P22710502_06-05-2025_09_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22710583, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22710584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22710585, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22710586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22710587, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22710588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22710589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22710590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22710591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22710592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22710593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22710594, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787013, 'mtr_portfolio_id': 22711348, 'dashboard_result_id': 10339205, '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_P22711348_06-05-2025_11_11_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22711398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22711399, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22711400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22711401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22711402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22711403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22711404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22711405, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22711406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22711407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22711408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22711409, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787013, 'mtr_portfolio_id': 22716068, 'dashboard_result_id': 10339206, '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_P22716068_06-05-2025_13_46_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22716069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22716070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22716071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22716072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22716073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22716074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22716075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22716076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22716077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22716078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22716079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22716080, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787013, 'mtr_portfolio_id': 22716946, 'dashboard_result_id': 10339207, '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_P22716946_06-05-2025_17_56_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22716971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22716972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22716973, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22716974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22716975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22716976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22716977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22716978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22716979, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22716980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22716981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22716982, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787013, 'mtr_portfolio_id': 22719344, 'dashboard_result_id': 10339208, '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_P22719344_06-05-2025_18_07_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22719363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22719364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22719365, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22719366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22719367, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22719368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22719369, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22719370, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22719371, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22719372, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22719373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22719374, 'pht': 3726}}"}, {'dashboat_entry_day': 1777292, 'dashboard_run_id': 1787013, 'mtr_portfolio_id': 22719615, 'dashboard_result_id': 10339209, '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_P22719615_06-05-2025_18_10_32.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22719616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22719617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22719618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22719619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22719620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22719621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22719622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22719623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22719624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22719625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22719626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22719627, 'pht': 3726}}"}] 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 = 22701347 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': 2795298, 'mtr_portfolio_id': 22701347, 'created_at': datetime.datetime(2025, 5, 6, 0, 50, 31), 'result': '0.061271229522416266', 'result_long': None, 'result_double': None}] Qualite : 0.061271229522416266 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22701347 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22701347_06-05-2025_00_50_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22701347 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_P22701347_06-05-2025_00_50_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22701348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22701349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22701350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22701351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22701352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22701353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22701354, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22701355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22701356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22701357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22701358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22701359, 'pht': 3726}}" where mtr_portfolio_id = 22701347 and dashboard_run_id = 1787013 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`=22701347 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10339188, 0.061271229522416266, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22701347_06-05-2025_00_50_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22701348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22701349, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22701350, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22701351, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22701352, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22701353, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22701354, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22701355, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22701356, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22701357, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22701358, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22701359, '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 = 22702995 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': 2795802, 'mtr_portfolio_id': 22702995, 'created_at': datetime.datetime(2025, 5, 6, 5, 18, 59), 'result': '0.0684839965169909', 'result_long': None, 'result_double': None}] Qualite : 0.0684839965169909 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22702995 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22702995_06-05-2025_05_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22702995 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_P22702995_06-05-2025_05_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22702996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22702997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22702998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22702999, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22703000, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22703001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22703002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22703003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22703004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22703005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22703006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22703007, 'pht': 3726}}" where mtr_portfolio_id = 22702995 and dashboard_run_id = 1787013 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`=22702995 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10339189, 0.0684839965169909, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22702995_06-05-2025_05_18_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22702996, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22702997, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22702998, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22702999, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22703000, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22703001, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22703002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22703003, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22703004, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22703005, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22703006, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22703007, '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 = 22703230 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': 2795926, 'mtr_portfolio_id': 22703230, 'created_at': datetime.datetime(2025, 5, 6, 5, 40, 38), 'result': '0.03097189694725738', 'result_long': None, 'result_double': None}] Qualite : 0.03097189694725738 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22703230 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22703230_06-05-2025_05_40_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22703230 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_P22703230_06-05-2025_05_40_40.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22703232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22703233, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22703234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22703235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22703236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22703237, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22703238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22703239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22703240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22703241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22703242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22703243, 'pht': 3726}}" where mtr_portfolio_id = 22703230 and dashboard_run_id = 1787013 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`=22703230 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10339190, 0.03097189694725738, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22703230_06-05-2025_05_40_40.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22703232, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22703233, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22703234, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22703235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22703236, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22703237, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22703238, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22703239, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22703240, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22703241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22703242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22703243, '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 = 22703472 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': 2795861, 'mtr_portfolio_id': 22703472, 'created_at': datetime.datetime(2025, 5, 6, 5, 49), 'result': '0.042620227607790634', 'result_long': None, 'result_double': None}] Qualite : 0.042620227607790634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22703472 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22703472_06-05-2025_05_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22703472 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_P22703472_06-05-2025_05_49_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22703479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22703480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22703481, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22703482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22703483, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22703484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22703485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22703486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22703487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22703488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22703489, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22703490, 'pht': 3726}}" where mtr_portfolio_id = 22703472 and dashboard_run_id = 1787013 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`=22703472 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10339191, 0.042620227607790634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22703472_06-05-2025_05_49_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22703479, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22703480, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22703481, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22703482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22703483, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22703484, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22703485, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22703486, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22703487, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22703488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22703489, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22703490, '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 = 22704016 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': 2795979, 'mtr_portfolio_id': 22704016, 'created_at': datetime.datetime(2025, 5, 6, 6, 3, 30), 'result': '0.04419198382997931', 'result_long': None, 'result_double': None}] Qualite : 0.04419198382997931 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22704016 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22704016_06-05-2025_06_03_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22704016 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_P22704016_06-05-2025_06_03_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22704043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22704044, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22704045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22704046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22704047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22704048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22704049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22704050, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22704051, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22704052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22704053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22704054, 'pht': 3726}}" where mtr_portfolio_id = 22704016 and dashboard_run_id = 1787013 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`=22704016 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10339192, 0.04419198382997931, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22704016_06-05-2025_06_03_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22704043, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22704044, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22704045, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22704046, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22704047, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22704048, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22704049, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22704050, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22704051, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22704052, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22704053, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22704054, '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 = 22704427 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': 2796030, 'mtr_portfolio_id': 22704427, 'created_at': datetime.datetime(2025, 5, 6, 6, 18, 56), 'result': '0.03451485623587217', 'result_long': None, 'result_double': None}] Qualite : 0.03451485623587217 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22704427 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22704427_06-05-2025_06_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22704427 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_P22704427_06-05-2025_06_18_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22704428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22704429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22704430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22704431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22704432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22704433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22704434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22704435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22704436, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22704437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22704438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22704439, 'pht': 3726}}" where mtr_portfolio_id = 22704427 and dashboard_run_id = 1787013 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`=22704427 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10339193, 0.03451485623587217, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22704427_06-05-2025_06_18_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22704428, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22704429, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22704430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22704431, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22704432, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22704433, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22704434, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22704435, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22704436, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22704437, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22704438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22704439, '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 = 22704969 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': 2796072, 'mtr_portfolio_id': 22704969, 'created_at': datetime.datetime(2025, 5, 6, 6, 34, 58), 'result': '0.04822745631611439', 'result_long': None, 'result_double': None}] Qualite : 0.04822745631611439 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22704969 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22704969_06-05-2025_06_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22704969 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_P22704969_06-05-2025_06_34_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22704995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22704996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22704997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22704998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22704999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22705000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22705001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22705002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22705003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22705004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22705005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22705006, 'pht': 3726}}" where mtr_portfolio_id = 22704969 and dashboard_run_id = 1787013 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`=22704969 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10339194, 0.04822745631611439, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22704969_06-05-2025_06_34_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22704995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22704996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22704997, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22704998, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22704999, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22705000, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22705001, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22705002, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22705003, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22705004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22705005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22705006, '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 = 22705529 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': 2796119, 'mtr_portfolio_id': 22705529, 'created_at': datetime.datetime(2025, 5, 6, 6, 46, 59), 'result': '0.020981443968970746', 'result_long': None, 'result_double': None}] Qualite : 0.020981443968970746 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22705529 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22705529_06-05-2025_06_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22705529 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_P22705529_06-05-2025_06_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22705530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22705531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22705532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22705533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22705534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22705535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22705536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22705537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22705538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22705539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22705540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22705541, 'pht': 3726}}" where mtr_portfolio_id = 22705529 and dashboard_run_id = 1787013 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`=22705529 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10339195, 0.020981443968970746, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22705529_06-05-2025_06_47_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22705530, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22705531, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22705532, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22705533, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22705534, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22705535, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22705536, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22705537, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22705538, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22705539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22705540, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22705541, '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 = 22705714 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': 2796165, 'mtr_portfolio_id': 22705714, 'created_at': datetime.datetime(2025, 5, 6, 7, 2, 59), 'result': '0.06151307291766843', 'result_long': None, 'result_double': None}] Qualite : 0.06151307291766843 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22705714 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22705714_06-05-2025_07_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22705714 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_P22705714_06-05-2025_07_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22705746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22705747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22705748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22705749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22705750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22705751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22705752, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22705753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22705754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22705755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22705756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22705757, 'pht': 3726}}" where mtr_portfolio_id = 22705714 and dashboard_run_id = 1787013 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`=22705714 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10339196, 0.06151307291766843, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22705714_06-05-2025_07_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22705746, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22705747, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22705748, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22705749, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22705750, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22705751, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22705752, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22705753, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22705754, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22705755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22705756, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22705757, '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 = 22706282 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': 2796253, 'mtr_portfolio_id': 22706282, 'created_at': datetime.datetime(2025, 5, 6, 7, 18, 58), 'result': '0.06884771410429064', 'result_long': None, 'result_double': None}] Qualite : 0.06884771410429064 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22706282 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22706282_06-05-2025_07_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22706282 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_P22706282_06-05-2025_07_18_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22706327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22706328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22706329, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22706330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22706331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22706332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22706333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22706334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22706335, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22706336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22706337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22706338, 'pht': 3726}}" where mtr_portfolio_id = 22706282 and dashboard_run_id = 1787013 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`=22706282 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10339197, 0.06884771410429064, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22706282_06-05-2025_07_18_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22706327, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22706328, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22706329, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22706330, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22706331, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22706332, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22706333, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22706334, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22706335, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22706336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22706337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22706338, '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 = 22707050 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': 2796322, 'mtr_portfolio_id': 22707050, 'created_at': datetime.datetime(2025, 5, 6, 7, 35), 'result': '0.05215601012812166', 'result_long': None, 'result_double': None}] Qualite : 0.05215601012812166 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22707050 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22707050_06-05-2025_07_35_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22707050 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_P22707050_06-05-2025_07_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22707078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22707079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22707080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22707081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22707082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22707083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22707084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22707085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22707086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22707087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22707088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22707089, 'pht': 3726}}" where mtr_portfolio_id = 22707050 and dashboard_run_id = 1787013 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`=22707050 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10339198, 0.05215601012812166, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22707050_06-05-2025_07_35_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22707078, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22707079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22707080, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22707081, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22707082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22707083, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22707084, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22707085, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22707086, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22707087, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22707088, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22707089, '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 = 22707600 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': 2796392, 'mtr_portfolio_id': 22707600, 'created_at': datetime.datetime(2025, 5, 6, 7, 49), 'result': '0.058143903126625436', 'result_long': None, 'result_double': None}] Qualite : 0.058143903126625436 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22707600 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22707600_06-05-2025_07_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22707600 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_P22707600_06-05-2025_07_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22707632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22707633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22707634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22707635, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22707636, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22707637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22707638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22707639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22707640, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22707641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22707642, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22707643, 'pht': 3726}}" where mtr_portfolio_id = 22707600 and dashboard_run_id = 1787013 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`=22707600 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10339199, 0.058143903126625436, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22707600_06-05-2025_07_49_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22707632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22707633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22707634, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22707635, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22707636, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22707637, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22707638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22707639, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22707640, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22707641, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22707642, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22707643, '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 = 22708159 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': 2796449, 'mtr_portfolio_id': 22708159, 'created_at': datetime.datetime(2025, 5, 6, 8, 3), 'result': '0.040786254764013825', 'result_long': None, 'result_double': None}] Qualite : 0.040786254764013825 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22708159 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22708159_06-05-2025_08_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22708159 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_P22708159_06-05-2025_08_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22708167, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22708168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22708169, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22708170, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22708171, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22708172, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22708173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22708174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22708175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22708176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22708177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22708178, 'pht': 3726}}" where mtr_portfolio_id = 22708159 and dashboard_run_id = 1787013 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`=22708159 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10339200, 0.040786254764013825, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22708159_06-05-2025_08_03_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22708167, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22708168, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22708169, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22708170, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22708171, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22708172, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22708173, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22708174, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22708175, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22708176, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22708177, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22708178, '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 = 22708833 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': 2796528, 'mtr_portfolio_id': 22708833, 'created_at': datetime.datetime(2025, 5, 6, 8, 19, 1), 'result': '0.03949586309169898', 'result_long': None, 'result_double': None}] Qualite : 0.03949586309169898 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22708833 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22708833_06-05-2025_08_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22708833 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_P22708833_06-05-2025_08_19_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22708835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22708836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22708837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22708838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22708839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22708840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22708841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22708842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22708843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22708844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22708845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22708846, 'pht': 3726}}" where mtr_portfolio_id = 22708833 and dashboard_run_id = 1787013 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`=22708833 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10339201, 0.03949586309169898, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22708833_06-05-2025_08_19_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22708835, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22708836, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22708837, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22708838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22708839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22708840, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22708841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22708842, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22708843, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22708844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22708845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22708846, '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 = 22709529 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': 2796619, 'mtr_portfolio_id': 22709529, 'created_at': datetime.datetime(2025, 5, 6, 8, 33, 30), 'result': '0.03926093730258733', 'result_long': None, 'result_double': None}] Qualite : 0.03926093730258733 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22709529 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22709529_06-05-2025_08_33_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22709529 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_P22709529_06-05-2025_08_33_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22709625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22709626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22709627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22709628, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22709629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22709630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22709631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22709632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22709633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22709634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22709635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22709636, 'pht': 3726}}" where mtr_portfolio_id = 22709529 and dashboard_run_id = 1787013 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`=22709529 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10339202, 0.03926093730258733, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22709529_06-05-2025_08_33_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22709625, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22709626, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22709627, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22709628, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22709629, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22709630, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22709631, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22709632, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22709633, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22709634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22709635, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22709636, '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 = 22710140 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': 2796672, 'mtr_portfolio_id': 22710140, 'created_at': datetime.datetime(2025, 5, 6, 8, 47), 'result': '0.04276854917567416', 'result_long': None, 'result_double': None}] Qualite : 0.04276854917567416 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22710140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22710140_06-05-2025_08_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22710140 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_P22710140_06-05-2025_08_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22710145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22710146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22710147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22710148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22710149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22710150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22710151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22710152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22710153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22710154, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22710155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22710156, 'pht': 3726}}" where mtr_portfolio_id = 22710140 and dashboard_run_id = 1787013 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`=22710140 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10339203, 0.04276854917567416, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22710140_06-05-2025_08_47_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22710145, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22710146, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22710147, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22710148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22710149, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22710150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22710151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22710152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22710153, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22710154, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22710155, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22710156, '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 = 22710502 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': 2796735, 'mtr_portfolio_id': 22710502, 'created_at': datetime.datetime(2025, 5, 6, 9, 2, 59), 'result': '0.05758271041044393', 'result_long': None, 'result_double': None}] Qualite : 0.05758271041044393 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22710502 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22710502_06-05-2025_09_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22710502 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_P22710502_06-05-2025_09_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22710583, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22710584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22710585, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22710586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22710587, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22710588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22710589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22710590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22710591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22710592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22710593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22710594, 'pht': 3726}}" where mtr_portfolio_id = 22710502 and dashboard_run_id = 1787013 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`=22710502 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10339204, 0.05758271041044393, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22710502_06-05-2025_09_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22710583, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22710584, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22710585, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22710586, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22710587, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22710588, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22710589, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22710590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22710591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22710592, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22710593, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22710594, '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 = 22711348 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': 2796809, 'mtr_portfolio_id': 22711348, 'created_at': datetime.datetime(2025, 5, 6, 11, 11), 'result': '0.029305356586870474', 'result_long': None, 'result_double': None}] Qualite : 0.029305356586870474 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22711348 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22711348_06-05-2025_11_11_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22711348 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_P22711348_06-05-2025_11_11_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22711398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22711399, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22711400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22711401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22711402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22711403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22711404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22711405, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22711406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22711407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22711408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22711409, 'pht': 3726}}" where mtr_portfolio_id = 22711348 and dashboard_run_id = 1787013 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`=22711348 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10339205, 0.029305356586870474, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22711348_06-05-2025_11_11_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22711398, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22711399, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22711400, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22711401, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22711402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22711403, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22711404, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22711405, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22711406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22711407, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22711408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22711409, '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 = 22716068 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': 2797722, 'mtr_portfolio_id': 22716068, 'created_at': datetime.datetime(2025, 5, 6, 13, 49), 'result': '0.03906976949786384', 'result_long': None, 'result_double': None}] Qualite : 0.03906976949786384 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22716068 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22716068_06-05-2025_13_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22716068 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_P22716068_06-05-2025_13_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22716069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22716070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22716071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22716072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22716073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22716074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22716075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22716076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22716077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22716078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22716079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22716080, 'pht': 3726}}" where mtr_portfolio_id = 22716068 and dashboard_run_id = 1787013 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`=22716068 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10339206, 0.03906976949786384, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22716068_06-05-2025_13_49_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22716069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22716070, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22716071, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22716072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22716073, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22716074, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22716075, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22716076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22716077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22716078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22716079, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22716080, '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 = 22716946 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': 2797799, 'mtr_portfolio_id': 22716946, 'created_at': datetime.datetime(2025, 5, 6, 17, 56, 59), 'result': '0.03760167639037917', 'result_long': None, 'result_double': None}] Qualite : 0.03760167639037917 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22716946 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22716946_06-05-2025_17_56_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22716946 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_P22716946_06-05-2025_17_56_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22716971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22716972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22716973, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22716974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22716975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22716976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22716977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22716978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22716979, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22716980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22716981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22716982, 'pht': 3726}}" where mtr_portfolio_id = 22716946 and dashboard_run_id = 1787013 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`=22716946 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10339207, 0.03760167639037917, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22716946_06-05-2025_17_56_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22716971, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22716972, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22716973, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22716974, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22716975, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22716976, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22716977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22716978, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22716979, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22716980, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22716981, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22716982, '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 = 22719344 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 = 22719344 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 = 22719344 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22719344 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 = 22719344 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 = 22719344 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22719344_06-05-2025_18_07_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22719344 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_P22719344_06-05-2025_18_07_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22719363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22719364, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22719365, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22719366, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22719367, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22719368, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22719369, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22719370, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22719371, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22719372, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22719373, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22719374, 'pht': 3726}}" where mtr_portfolio_id = 22719344 and dashboard_run_id = 1787013 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 = 22719615 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': 2798142, 'mtr_portfolio_id': 22719615, 'created_at': datetime.datetime(2025, 5, 6, 18, 14, 31), 'result': '0.03465711620311917', 'result_long': None, 'result_double': None}] Qualite : 0.03465711620311917 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22719615 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22719615_06-05-2025_18_14_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22719615 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_P22719615_06-05-2025_18_14_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22719616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22719617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22719618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22719619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22719620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22719621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22719622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22719623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22719624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22719625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22719626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22719627, 'pht': 3726}}" where mtr_portfolio_id = 22719615 and dashboard_run_id = 1787013 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`=22719615 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10339209, 0.03465711620311917, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22719615_06-05-2025_18_14_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22719616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22719617, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22719618, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22719619, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22719620, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22719621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22719622, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22719623, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22719624, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22719625, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22719626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22719627, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22701347,22702995,22703230,22703472,22704016,22704427,22704969,22705529,22705714,22706282,22707050,22707600,22708159,22708833,22709529,22710140,22710502,22711348,22716068,22716946,22719344,22719615) result : ((1356270985,), (1356271232,), (1356271255,), (1356271277,), (1356271367,), (1356271370,), (1356271443,), (1356271528,), (1356287898,), (1356288002,), (1356288054,), (1356288056,), (1356288057,), (1356288081,), (1356288082,), (1356288083,), (1356288084,), (1356288115,), (1356288116,), (1356288117,), (1356288118,), (1356288144,), (1356288149,), (1356288153,), (1356288156,), (1356288182,), (1356288183,), (1356288184,), (1356288185,), (1356288239,), (1356288240,), (1356288241,), (1356288280,), (1356288281,), (1356288282,), (1356288307,), (1356288337,), (1356288365,), (1356288442,), (1356288447,), (1356288450,), (1356288470,), (1356288471,), (1356288474,), (1356288476,), (1356288516,), (1356288518,), (1356288521,), (1356288526,), (1356288531,), (1356288565,), (1356288568,), (1356288571,), (1356288576,), (1356288579,), (1356288583,), (1356288608,), (1356288613,), (1356288618,), (1356288677,), (1356288681,), (1356288684,), (1356288689,), (1356288695,), (1356288700,), (1356288714,), (1356288716,), (1356288719,), (1356288721,), (1356288764,), (1356288766,), (1356288767,), (1356288769,), (1356288773,), (1356288776,), (1356288798,), (1356288799,), (1356288801,), (1356288827,), (1356288856,), (1356288863,), (1356288866,), (1356288869,), (1356288873,), (1356288877,), (1356288908,), (1356288909,), (1356288911,), (1356288913,), (1356288917,), (1356288944,), (1356288947,), (1356288950,), (1356288952,), (1356288954,), (1356288995,), (1356288988,), (1356288990,), (1356288991,), (1356288992,), (1356289017,), (1356289019,), (1356289020,), (1356289021,), (1356289022,), (1356289025,), (1356289048,), (1356289049,), (1356289050,), (1356289051,), (1356289087,), (1356289089,), (1356289091,), (1356289092,), (1356289094,), (1356289096,), (1356289124,), (1356289126,), (1356289127,), (1356289130,), (1356289133,), (1356289158,), (1356289160,), (1356289161,), (1356289164,), (1356289167,), (1356289169,), (1356289202,), (1356289204,), (1356289205,), (1356289206,), (1356289239,), (1356289241,), (1356289242,), (1356289243,), (1356289245,), (1356289246,), (1356289288,), (1356289290,), (1356289292,), (1356289294,), (1356289336,), (1356289338,), (1356289340,), (1356289342,), (1356289346,), (1356289350,), (1356289364,), (1356289366,), (1356289367,), (1356289368,), (1356289370,), (1356289414,), (1356289416,), (1356289417,), (1356289419,), (1356289449,), (1356289451,), (1356289453,), (1356289455,), (1356289459,), (1356289461,), (1356289492,), (1356289494,), (1356289496,), (1356289526,), (1356289530,), (1356289533,), (1356289536,), (1356289541,), (1356289546,), (1356289580,), (1356289573,), (1356289576,), (1356289578,), (1356289609,), (1356289611,), (1356289613,), (1356289615,), (1356289619,), (1356289640,), (1356289643,), (1356289645,), (1356289647,), (1356289651,), (1356289655,), (1356289683,), (1356289685,), (1356289687,), (1356289689,), (1356289729,), (1356289732,), (1356289733,), (1356289734,), (1356289737,), (1356289740,), (1356289764,), (1356289766,), (1356289769,), (1356289774,), (1356289805,), (1356289809,), (1356289811,), (1356289837,), (1356289838,), (1356289839,), (1356289840,), (1356289842,), (1356289844,), (1356289876,), (1356289878,), (1356289879,), (1356289880,), (1356289915,), (1356289917,), (1356289918,), (1356289919,), (1356289922,), (1356289925,), (1356289958,), (1356289959,), (1356289960,), (1356289961,), (1356289988,), (1356289989,), (1356289990,), (1356289991,), (1356289998,), (1356290031,), (1356290292,), (1356290320,), (1356290346,), (1356290372,), (1356290398,), (1356290861,), (1356290889,), (1356290921,), (1356290966,), (1356291061,), (1356291107,), (1356291135,), (1356291168,), (1356291195,), (1356291417,), (1356291336,), (1356291363,), (1356291392,), (1356291461,), (1356291463,), (1356291465,), (1356291472,), (1356291674,), (1356291677,), (1356291681,), (1356291684,), (1356291717,), (1356291720,), (1356291723,), (1356291726,), (1356291729,), (1356291732,), (1356291758,), (1356291761,), (1356291763,), (1356291765,), (1356291792,), (1356291795,), (1356291797,), (1356291799,), (1356291802,), (1356291830,), (1356291833,), (1356291836,), (1356291841,), (1356291845,), (1356291850,), (1356291869,), (1356291871,), (1356291873,), (1356291875,), (1356291879,), (1356291897,), (1356291899,), (1356291900,), (1356291901,), (1356291905,), (1356291953,), (1356291955,), (1356291957,), (1356291959,), (1356291963,), (1356291965,), (1356291987,), (1356291990,), (1356291992,), (1356291994,), (1356292014,), (1356292017,), (1356292019,), (1356292021,), (1356292026,), (1356292029,), (1356292046,), (1356292048,), (1356292052,), (1356292081,), (1356292083,), (1356292084,), (1356292086,), (1356292088,), (1356292092,), (1356292116,), (1356292118,), (1356292119,), (1356292120,), (1356292122,), (1356292161,), (1356292157,), (1356292159,), (1356292160,), (1356292193,), (1356292196,), (1356292198,), (1356292222,), (1356292224,), (1356292226,), (1356292256,), (1356292258,), (1356292299,), (1356292327,), (1356292328,), (1356292359,), (1356292361,), (1356292362,), (1356292363,), (1356292387,), (1356292388,), (1356292389,), (1356292390,), (1356292420,), (1356292422,), (1356292423,), (1356292424,), (1356292426,), (1356292459,), (1356292461,), (1356292462,), (1356292464,), (1356292467,), (1356292495,), (1356292501,), (1356292504,), (1356292506,), (1356292531,), (1356292534,), (1356292536,), (1356292538,), (1356292542,), (1356292544,), (1356292571,), (1356292574,), (1356292575,), (1356292577,), (1356292602,), (1356292604,), (1356292606,), (1356292608,), (1356292611,), (1356292641,), (1356292645,), (1356292647,), (1356292650,), (1356292701,), (1356292698,), (1356292699,), (1356292700,), (1356292740,), (1356292742,), (1356292743,), (1356292744,), (1356292746,), (1356292750,), (1356292777,), (1356292778,), (1356292779,), (1356292780,), (1356292785,), (1356292788,), (1356292811,), (1356292812,), (1356292813,), (1356292845,), (1356292848,), (1356292850,), (1356292851,), (1356292854,), (1356292857,), (1356292886,), (1356292889,), (1356292892,), (1356292897,), (1356292901,), (1356292907,), (1356292929,), (1356292931,), (1356292932,), (1356292933,), (1356292935,), (1356292973,), (1356292975,), (1356292979,), (1356292981,), (1356292989,), (1356293017,), (1356293018,), (1356293019,), (1356293020,), (1356293024,), (1356293028,), (1356293061,), (1356293063,), (1356293065,), (1356293067,), (1356293070,), (1356293149,), (1356293150,), (1356293151,), (1356293152,), (1356293155,), (1356293159,), (1356293193,), (1356293195,), (1356293197,), (1356293198,), (1356293200,), (1356293204,), (1356293244,), (1356293246,), (1356293247,), (1356293248,), (1356293249,), (1356293251,), (1356293283,), (1356293285,), (1356293286,), (1356293331,), (1356293334,), (1356293335,), (1356293337,), (1356293341,), (1356293344,), (1356293398,), (1356293396,), (1356293397,), (1356293434,), (1356293436,), (1356293439,), (1356293480,), (1356293482,), (1356293483,), (1356293484,), (1356293529,), (1356293532,), (1356293534,), (1356293536,), (1356293539,), (1356293543,), (1356293582,), (1356293585,), (1356293587,), (1356293589,), (1356293592,), (1356293596,), (1356293679,), (1356293681,), (1356293682,), (1356293683,), (1356293729,), (1356293733,), (1356293735,), (1356293737,), (1356293741,), (1356293770,), (1356293772,), (1356293773,), (1356293774,), (1356293775,), (1356293778,), (1356293808,), (1356293813,), (1356293817,), (1356293851,), (1356293853,), (1356293854,), (1356293855,), (1356293857,), (1356293861,), (1356293897,), (1356293900,), (1356293902,), (1356293904,), (1356293940,), (1356293942,), (1356293943,), (1356293944,), (1356293948,), (1356293952,), (1356294176,), (1356294204,), (1356294231,), (1356294257,), (1356295790,), (1356295846,), (1356295906,), (1356295987,), (1356296061,), (1356296144,), (1356296515,), (1356296589,), (1356296665,), (1356296787,), (1356297445,), (1356297178,), (1356297233,), (1356297286,), (1356297338,), (1356297884,), (1356297939,), (1356297967,), (1356297996,), (1356298405,), (1356298460,), (1356298514,), (1356298545,), (1356298580,), (1356298636,), (1356298743,), (1356298756,), (1356298760,), (1356298768,), (1356298826,), (1356298830,), (1356298835,), (1356298838,), (1356298842,), (1356298885,), (1356298889,), (1356298892,), (1356298896,), (1356298929,), (1356298934,), (1356298939,), (1356298942,), (1356298948,), (1356298960,), (1356299004,), (1356299009,), (1356299012,), (1356299015,), (1356299079,), (1356299083,), (1356299088,), (1356299092,), (1356299096,), (1356299100,), (1356299149,), (1356299152,), (1356299168,), (1356299197,), (1356299234,), (1356299502,), (1356299515,), (1356299543,), (1356299569,), (1356299578,), (1356299668,), (1356299674,), (1356299677,), (1356299679,), (1356299684,), (1356299687,), (1356299782,), (1356299785,), (1356299789,), (1356299796,), (1356299921,), (1356299951,), (1356299964,), (1356299967,), (1356299972,), (1356299978,), (1356300011,), (1356300016,), (1356300020,), (1356300023,), (1356300087,), (1356300071,), (1356300074,), (1356300077,), (1356300080,), (1356300083,), (1356300129,), (1356300140,), (1356300147,), (1356300155,), (1356300165,), (1356300177,), (1356300211,), (1356300220,), (1356300226,), (1356300230,), (1356300235,), (1356300265,), (1356300272,), (1356300276,), (1356300280,), (1356300284,), (1356300288,), (1356300332,), (1356300341,), (1356300348,), (1356300350,), (1356300354,), (1356300418,), (1356300422,), (1356300426,), (1356300430,), (1356300435,), (1356300441,), (1356300475,), (1356300488,), (1356300498,), (1356300501,), (1356300506,), (1356300545,), (1356300550,), (1356300554,), (1356300598,), (1356300606,), (1356300611,), (1356300615,), (1356300618,), (1356300623,), (1356300650,), (1356300655,), (1356300658,), (1356300669,), (1356300698,), (1356300703,), (1356300708,), (1356300710,), (1356300715,), (1356300718,), (1356300753,), (1356300758,), (1356300763,), (1356300768,), (1356300770,), (1356300805,), (1356300813,), (1356300818,), (1356300823,), (1356300829,), (1356300832,), (1356300865,), (1356300868,), (1356300872,), (1356300875,), (1356300924,), (1356300931,), (1356300937,), (1356300943,), (1356300947,), (1356300954,), (1356301011,), (1356300999,), (1356301004,), (1356301008,), (1356301072,), (1356301075,), (1356301079,), (1356301083,), (1356301088,), (1356301122,), (1356301126,), (1356301131,), (1356301136,), (1356301141,), (1356301145,), (1356301193,), (1356301194,), (1356301196,), (1356301198,), (1356301233,), (1356301238,), (1356301244,), (1356301249,), (1356301254,), (1356301258,), (1356301285,), (1356301418,), (1356301421,), (1356301427,), (1356301432,), (1356301474,), (1356301485,), (1356301494,), (1356301515,), (1356301524,), (1356301531,), (1356301566,), (1356301568,), (1356301570,), (1356301572,), (1356301612,), (1356301721,), (1356301724,), (1356301727,), (1356301730,), (1356301734,), (1356301739,), (1356301781,), (1356301786,), (1356301789,), (1356301793,), (1356301798,), (1356301872,), (1356301879,), (1356301884,), (1356301886,), (1356301893,), (1356301976,), (1356301979,), (1356301983,), (1356301985,), (1356302027,), (1356302031,), (1356302085,), (1356302093,), (1356302105,), (1356302115,), (1356302118,), (1356302157,), (1356302160,), (1356302162,), (1356302165,), (1356302168,), (1356302198,), (1356302207,), (1356302209,), (1356302214,), (1356302265,), (1356302246,), (1356302253,), (1356302257,), (1356302260,), (1356302299,), (1356302303,), (1356302307,), (1356302310,), (1356302313,), (1356302319,), (1356302360,), (1356302366,), (1356302370,), (1356302372,), (1356302450,), (1356302453,), (1356302457,), (1356302466,), (1356302473,), (1356302478,), (1356302529,), (1356302533,), (1356302535,), (1356302538,), (1356302541,), (1356302645,), (1356302658,), (1356302663,), (1356302679,), (1356302687,), (1356302705,), (1356302736,), (1356302745,), (1356302749,), (1356302752,), (1356302789,), (1356302791,), (1356302793,), (1356302795,), (1356302799,), (1356302803,), (1356302865,), (1356302873,), (1356302887,), (1356302889,), (1356302984,), (1356302987,), (1356303027,), (1356303035,), (1356303045,), (1356303050,), (1356303128,), (1356303132,), (1356303134,), (1356303451,), (1356303481,), (1356303512,), (1356303539,), (1356303565,), (1356303596,), (1356303849,), (1356303904,), (1356303932,), (1356303968,), (1356304014,), (1356304783,), (1356304819,), (1356304850,), (1356304912,), (1356304921,), (1356304927,), (1356305185,), (1356305067,), (1356305073,), (1356305095,), (1356305178,), (1356305284,), (1356305294,), (1356305299,), (1356305303,), (1356305308,), (1356305381,), (1356305390,), (1356305393,), (1356305398,), (1356305403,), (1356305432,), (1356305434,), (1356305446,), (1356305457,), (1356305462,), (1356305578,), (1356305604,), (1356305616,), (1356305621,), (1356305625,), (1356305630,), (1356305664,), (1356305670,), (1356305673,), (1356305675,), (1356305804,), (1356305805,), (1356305807,), (1356305809,), (1356305813,), (1356305815,), (1356305852,), (1356305857,), (1356305859,), (1356305862,), (1356305927,), (1356305934,), (1356305938,), (1356305950,), (1356305955,), (1356305957,), (1356306048,), (1356306060,), (1356306074,), (1356306079,), (1356306225,), (1356306243,), (1356306327,), (1356306399,), (1356306407,), (1356306412,), (1356306483,), (1356306485,), (1356306490,), (1356306493,), (1356306495,), (1356306595,), (1356306609,), (1356306611,), (1356306615,), (1356306619,), (1356306655,), (1356306765,), (1356306811,), (1356306816,), (1356306820,), (1356306822,), (1356306915,), (1356306931,), (1356306940,), (1356306979,), (1356307158,), (1356307161,), (1356307194,), (1356307195,), (1356307198,), (1356307204,), (1356307242,), (1356307248,), (1356307252,), (1356307257,), (1356307263,), (1356307321,), (1356307324,), (1356307335,), (1356307340,), (1356307344,), (1356307386,), (1356307394,), (1356307398,), (1356307402,), (1356307407,), (1356307451,), (1356307454,), (1356307458,), (1356307460,), (1356307465,), (1356307502,), (1356307505,), (1356307509,), (1356307513,), (1356307519,), (1356307551,), (1356307559,), (1356307565,), (1356307569,), (1356307579,), (1356307674,), (1356307677,), (1356307679,), (1356307688,), (1356307713,), (1356307799,), (1356307802,), (1356307805,), (1356307806,), (1356307811,), (1356307888,), (1356307890,), (1356307892,), (1356307894,), (1356307896,), (1356307899,), (1356308012,), (1356308016,), (1356308020,), (1356308024,), (1356308113,), (1356308115,), (1356308117,), (1356308119,), (1356308123,), (1356308127,), (1356308221,), (1356308201,), (1356308209,), (1356308212,), (1356308216,), (1356308252,), (1356308261,), (1356308267,), (1356308270,), (1356308271,), (1356308275,), (1356308327,), (1356308331,), (1356308333,), (1356308403,), (1356308405,), (1356308407,), (1356308409,), (1356308412,), (1356308415,), (1356308453,), (1356308454,), (1356308456,), (1356308458,), (1356308497,), (1356308501,), (1356308504,), (1356308507,), (1356308512,), (1356308516,), (1356308543,), (1356308545,), (1356308546,), (1356308548,), (1356308553,), (1356308557,), (1356308584,), (1356308585,), (1356308587,), (1356308589,), (1356308591,), (1356308595,), (1356308625,), (1356308627,), (1356308629,), (1356308632,), (1356308670,), (1356308671,), (1356308673,), (1356308675,), (1356308678,), (1356308682,), (1356308748,), (1356308750,), (1356308751,), (1356308754,), (1356308756,), (1356308922,), (1356308928,), (1356308934,), (1356308936,), (1356308970,), (1356308972,), (1356308974,), (1356308976,), (1356308978,), (1356308982,), (1356309008,), (1356309012,), (1356309014,), (1356309027,), (1356309031,), (1356309082,), (1356309083,), (1356309085,), (1356309087,), (1356309089,), (1356309094,), (1356309138,), (1356309129,), (1356309132,), (1356309135,), (1356309212,), (1356309214,), (1356309216,), (1356309218,), (1356309219,), (1356309223,), (1356309249,), (1356309258,), (1356309264,), (1356309266,), (1356309270,), (1356309311,), (1356309315,), (1356309319,), (1356309322,), (1356309326,), (1356309330,), (1356309379,), (1356309387,), (1356309391,), (1356309398,), (1356309406,), (1356309532,), (1356309534,), (1356309540,), (1356309545,), (1356309562,), (1356309628,), (1356309659,), (1356309694,), (1356309742,), (1356309762,), (1356309838,), (1356309843,), (1356309847,), (1356309854,), (1356309861,), (1356309866,), (1356309962,), (1356309967,), (1356309971,), (1356309973,), (1356309979,), (1356310008,), (1356310010,), (1356310020,), (1356310023,), (1356310045,), (1356310053,), (1356310134,), (1356310138,), (1356310157,), (1356310166,), (1356310279,), (1356310286,), (1356310289,), (1356310292,), (1356310297,), (1356310301,), (1356310460,), (1356310483,), (1356310511,), (1356311113,), (1356311167,), (1356311218,), (1356311268,), (1356311300,), (1356311333,), (1356311462,), (1356311494,), (1356311521,), (1356311567,), (1356311767,), (1356311678,), (1356311689,), (1356311698,), (1356311705,), (1356311718,), (1356311972,), (1356312008,), (1356312020,), (1356312027,), (1356312090,), (1356312102,), (1356312105,), (1356312109,), (1356321447,), (1356355384,), (1356355416,), (1356355446,), (1356355891,), (1356355893,), (1356355915,), (1356355951,), (1356356337,), (1356356345,), (1356356348,), (1356356351,), (1356356371,), (1356356768,), (1356356796,), (1356356826,), (1356357435,), (1356357489,), (1356357834,), (1356357836,), (1356357838,), (1356357890,), (1356361470,), (1356361475,), (1356361480,), (1356361485,), (1356361489,), (1356361495,), (1356361508,), (1356361509,), (1356361511,), (1356361515,), (1356361520,), (1356361526,), (1356361541,), (1356361544,), (1356361547,), (1356361552,), (1356361558,), (1356361562,), (1356361578,), (1356361586,), (1356361592,), (1356361599,), (1356361607,), (1356361617,), (1356361634,), (1356361640,), (1356361646,), (1356361650,), (1356361678,), (1356361682,), (1356361688,), (1356361722,), (1356361805,), (1356361838,), (1356361870,), (1356361943,), (1356361949,), (1356361957,), (1356362136,), (1356362138,), (1356362143,), (1356362149,), (1356362188,), (1356362197,), (1356362201,), (1356362207,), (1356362217,), (1356362221,), (1356362366,), (1356362395,), (1356362409,), (1356362414,), (1356362646,), (1356362676,), (1356362687,), (1356362704,), (1356362710,), (1356362715,), (1356362717,), (1356362725,), (1356362726,), (1356362736,), (1356362818,), (1356362844,), (1356362849,), (1356362872,), (1356362876,), (1356363120,), (1356363141,), (1356363146,), (1356363152,), (1356363160,), (1356363235,), (1356363237,), (1356363241,), (1356363248,), (1356363259,), (1356372175,), (1356370264,), (1356372645,), (1356376625,), (1356376612,), (1356376616,), (1356376621,), (1356376766,), (1356376771,), (1356376776,), (1356376781,), (1356376969,), (1356376974,), (1356376978,), (1356376980,), (1356376983,), (1356377048,), (1356377061,), (1356377071,), (1356377080,), (1356377086,), (1356377091,), (1356377101,), (1356377112,), (1356377115,), (1356377120,), (1356377193,), (1356377242,), (1356377250,), (1356377267,), (1356377288,), (1356377292,), (1356377314,), (1356377319,), (1356377327,), (1356377339,), (1356377463,), (1356377495,), (1356377524,), (1356377573,), (1356377618,), (1356378085,), (1356378114,), (1356378136,), (1356378142,), (1356378145,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'06052025': {'nb_upload': 42, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22719615]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1356378145, 1356378142, 1356378136, 1356378114, 1356378085, 1356377618, 1356377573, 1356377524, 1356377495, 1356377463, 1356377339, 1356377327, 1356377319, 1356377314, 1356377292, 1356377288, 1356377267, 1356377250, 1356377242, 1356377193] map_info['map_portfolio_photo'] : {22719615: [1356378145, 1356378142, 1356378136, 1356378114, 1356378085, 1356377618, 1356377573, 1356377524, 1356377495, 1356377463, 1356377339, 1356377327, 1356377319, 1356377314, 1356377292, 1356377288, 1356377267, 1356377250, 1356377242, 1356377193, 1356377120, 1356377115, 1356377112, 1356377101, 1356377091, 1356377086, 1356377080, 1356377071, 1356377061, 1356377048, 1356376983, 1356376980, 1356376978, 1356376974, 1356376969, 1356376781, 1356376776, 1356376771, 1356376766, 1356376621, 1356376616, 1356376612]} final : True mtd_id 4302 list_pids : [1356378145, 1356378142, 1356378136, 1356378114, 1356378085, 1356377618, 1356377573, 1356377524, 1356377495, 1356377463, 1356377339, 1356377327, 1356377319, 1356377314, 1356377292, 1356377288, 1356377267, 1356377250, 1356377242, 1356377193] Looping around the photos to save general results len do output : 1 /22719615Didn'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, '2798142') ('4302', '22719615', '1356378145', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356378142', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356378136', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356378114', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356378085', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377618', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377573', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377524', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377495', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377463', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377339', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377327', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377319', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377314', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377292', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377288', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377267', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377250', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377242', None, None, None, None, None, '2798142') ('4302', None, None, None, None, None, None, None, '2798142') ('4302', '22719615', '1356377193', None, None, None, None, None, '2798142') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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, '22719615', 'None', None, None, None, None, '2798142'), ('4302', '22719615', '1356378145', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356378142', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356378136', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356378114', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356378085', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377618', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377573', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377524', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377495', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377463', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377339', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377327', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377319', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377314', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377292', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377288', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377267', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377250', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377242', None, None, None, None, None, '2798142'), ('4302', '22719615', '1356377193', None, None, None, None, None, '2798142')] time used for this insertion : 0.017910480499267578 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4071025848388672 time spend to save output : 0.01816725730895996 total time spend for step 5 : 1.4252698421478271 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 (2798142) 2.88user 2.31system 0:12.20elapsed 42%CPU (0avgtext+0avgdata 163328maxresident)k 28400inputs+14568outputs (143major+79030minor)pagefaults 0swaps