(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 22153541 , 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=22153496 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 (22153541) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22153496) result : ((1350838105,), (1350838817,), (1350838822,), (1350838924,), (1350839311,), (1350839362,), (1350839405,), (1350839764,), (1350839782,), (1350839793,), (1350839807,), (1350839812,), (1350839818,), (1350840088,), (1350840163,), (1350840255,), (1350840278,), (1350840296,), (1350840311,), (1350840322,), (1350840356,), (1350840359,), (1350840363,), (1350840369,), (1350840396,), (1350840432,), (1350840823,), (1350840854,), (1350840909,), (1350840966,)) 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 22153542 , 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=22153496 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 (22153542) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22153496) result : ((1350838105,), (1350838817,), (1350838822,), (1350838924,), (1350839311,), (1350839362,), (1350839405,), (1350839764,), (1350839782,), (1350839793,), (1350839807,), (1350839812,), (1350839818,), (1350840088,), (1350840163,), (1350840255,), (1350840278,), (1350840296,), (1350840311,), (1350840322,), (1350840356,), (1350840359,), (1350840363,), (1350840369,), (1350840396,), (1350840432,), (1350840823,), (1350840854,), (1350840909,), (1350840966,)) 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 22153543 , 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=22153496 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='cartonnette' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22153543) result : ((1350840476,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22153496) result : ((1350838105,), (1350838817,), (1350838822,), (1350838924,), (1350839311,), (1350839362,), (1350839405,), (1350839764,), (1350839782,), (1350839793,), (1350839807,), (1350839812,), (1350839818,), (1350840088,), (1350840163,), (1350840255,), (1350840278,), (1350840296,), (1350840311,), (1350840322,), (1350840356,), (1350840359,), (1350840363,), (1350840369,), (1350840396,), (1350840432,), (1350840823,), (1350840854,), (1350840909,), (1350840966,)) 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 22153544 , 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=22153496 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_gris' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22153544) result : ((1350840235,), (1350840236,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22153496) result : ((1350838105,), (1350838817,), (1350838822,), (1350838924,), (1350839311,), (1350839362,), (1350839405,), (1350839764,), (1350839782,), (1350839793,), (1350839807,), (1350839812,), (1350839818,), (1350840088,), (1350840163,), (1350840255,), (1350840278,), (1350840296,), (1350840311,), (1350840322,), (1350840356,), (1350840359,), (1350840363,), (1350840369,), (1350840396,), (1350840432,), (1350840823,), (1350840854,), (1350840909,), (1350840966,)) 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 22153545 , 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=22153496 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 (22153545) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22153496) result : ((1350838105,), (1350838817,), (1350838822,), (1350838924,), (1350839311,), (1350839362,), (1350839405,), (1350839764,), (1350839782,), (1350839793,), (1350839807,), (1350839812,), (1350839818,), (1350840088,), (1350840163,), (1350840255,), (1350840278,), (1350840296,), (1350840311,), (1350840322,), (1350840356,), (1350840359,), (1350840363,), (1350840369,), (1350840396,), (1350840432,), (1350840823,), (1350840854,), (1350840909,), (1350840966,)) 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 22153546 , 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=22153496 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 (22153546) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22153496) result : ((1350838105,), (1350838817,), (1350838822,), (1350838924,), (1350839311,), (1350839362,), (1350839405,), (1350839764,), (1350839782,), (1350839793,), (1350839807,), (1350839812,), (1350839818,), (1350840088,), (1350840163,), (1350840255,), (1350840278,), (1350840296,), (1350840311,), (1350840322,), (1350840356,), (1350840359,), (1350840363,), (1350840369,), (1350840396,), (1350840432,), (1350840823,), (1350840854,), (1350840909,), (1350840966,)) 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 22153547 , 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=22153496 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 (22153547) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22153496) result : ((1350838105,), (1350838817,), (1350838822,), (1350838924,), (1350839311,), (1350839362,), (1350839405,), (1350839764,), (1350839782,), (1350839793,), (1350839807,), (1350839812,), (1350839818,), (1350840088,), (1350840163,), (1350840255,), (1350840278,), (1350840296,), (1350840311,), (1350840322,), (1350840356,), (1350840359,), (1350840363,), (1350840369,), (1350840396,), (1350840432,), (1350840823,), (1350840854,), (1350840909,), (1350840966,)) 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`=22153496 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','Carton_gris','mal_croppe','environnement','plastique','flou','metal','Carton_brun','Teint_Dans_La_Masse','cartonnette','kraft')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22153496 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','Carton_gris','mal_croppe','environnement','plastique','flou','metal','Carton_brun','Teint_Dans_La_Masse','cartonnette','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 22153496, 'sub_port_id': 22153548, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14632895, 'last_updated_at': datetime.datetime(2025, 4, 17, 21, 11), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 21, 11), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 21, 11)}, 'kraft': {'main_port_id': 22153496, 'sub_port_id': 22153549, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14632896, 'last_updated_at': datetime.datetime(2025, 4, 17, 21, 11), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 21, 11), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 21, 11)}, 'autre_refus': {'main_port_id': 22153496, 'sub_port_id': 22153550, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14632897, 'last_updated_at': datetime.datetime(2025, 4, 17, 21, 11), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 21, 11), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 21, 11)}, 'environnement': {'main_port_id': 22153496, 'sub_port_id': 22153551, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14632898, 'last_updated_at': datetime.datetime(2025, 4, 17, 21, 11), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 21, 11), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 21, 11)}, 'metal': {'main_port_id': 22153496, 'sub_port_id': 22153552, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14632899, 'last_updated_at': datetime.datetime(2025, 4, 17, 21, 11), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 21, 11), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 21, 11)}, 'plastique': {'main_port_id': 22153496, 'sub_port_id': 22153553, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14632900, 'last_updated_at': datetime.datetime(2025, 4, 17, 21, 11), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 21, 11), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 21, 11)}, 'mal_croppe': {'main_port_id': 22153496, 'sub_port_id': 22153554, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14632901, 'last_updated_at': datetime.datetime(2025, 4, 17, 21, 11), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 21, 11), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 21, 11)}, 'cartonnette': {'main_port_id': 22153496, 'sub_port_id': 22153555, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14632902, 'last_updated_at': datetime.datetime(2025, 4, 17, 21, 11), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 21, 11), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 21, 11)}, 'Carton_gris': {'main_port_id': 22153496, 'sub_port_id': 22153556, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14632903, 'last_updated_at': datetime.datetime(2025, 4, 17, 21, 11), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 21, 11), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 21, 11)}, 'flou': {'main_port_id': 22153496, 'sub_port_id': 22153557, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14632904, 'last_updated_at': datetime.datetime(2025, 4, 17, 21, 11), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 21, 11), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 21, 11)}, 'papier': {'main_port_id': 22153496, 'sub_port_id': 22153558, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14632905, 'last_updated_at': datetime.datetime(2025, 4, 17, 21, 11), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 21, 11), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 21, 11)}, 'Carton_brun': {'main_port_id': 22153496, 'sub_port_id': 22153559, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14632906, 'last_updated_at': datetime.datetime(2025, 4, 17, 21, 11, 1), 'last_updated_at_desc': datetime.datetime(2025, 4, 17, 21, 11, 1), 'last_updated_at_asc': datetime.datetime(2025, 4, 17, 21, 11)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22153548,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22153536 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22153549,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22153537 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22153550,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22153538 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22153551,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22153539 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22153552,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22153540 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22153553,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22153541 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22153554,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22153542 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22153555,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22153543 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22153556,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22153544 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22153557,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22153545 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22153558,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22153546 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22153559,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22153547 lien utilise dans velours : https://www.fotonower.com/velours/22153548,22153549,22153550,22153551,22153552,22153553,22153554,22153555,22153556,22153557,22153558,22153559?tags=Teint_Dans_La_Masse,kraft,autre_refus,environnement,metal,plastique,mal_croppe,cartonnette,Carton_gris,flou,papier,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22153496]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350840966, 1350840909, 1350840854, 1350840823, 1350840432, 1350840396, 1350840369, 1350840363, 1350840359, 1350840356, 1350840322, 1350840311, 1350840296, 1350840278] map_info['map_portfolio_photo'] : {22153496: [1350840966, 1350840909, 1350840854, 1350840823, 1350840432, 1350840396, 1350840369, 1350840363, 1350840359, 1350840356, 1350840322, 1350840311, 1350840296, 1350840278, 1350840255, 1350840163, 1350840088, 1350839818, 1350839812, 1350839807, 1350839793, 1350839782, 1350839764, 1350839405, 1350839362, 1350839311, 1350838924, 1350838822, 1350838817, 1350838105]} final : False mtd_id 4302 list_pids : [1350840966, 1350840909, 1350840854, 1350840823, 1350840432, 1350840396, 1350840369, 1350840363, 1350840359, 1350840356, 1350840322, 1350840311, 1350840296, 1350840278] Looping around the photos to save general results len do output : 1 /22153496. 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, '2732620') ('4302', '22153496', '1350840966', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840909', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840854', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840823', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840432', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840396', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840369', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840363', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840359', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840356', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840322', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840311', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840296', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840278', None, None, None, None, None, '2732620') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22153496', "{'Teint_Dans_La_Masse': 22153536, 'kraft': 22153537, 'autre_refus': 22153538, 'environnement': 22153539, 'metal': 22153540, 'plastique': 22153541, 'mal_croppe': 22153542, 'cartonnette': 22153543, 'Carton_gris': 22153544, 'flou': 22153545, 'papier': 22153546, 'Carton_brun': 22153547}", None, None, None, None, '2732620'), ('4302', '22153496', '1350840966', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840909', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840854', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840823', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840432', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840396', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840369', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840363', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840359', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840356', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840322', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840311', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840296', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840278', None, None, None, None, None, '2732620')] time used for this insertion : 0.01889657974243164 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.468533992767334 time spend to save output : 0.019223928451538086 total time spend for step 1 : 1.487757921218872 step2:final Thu Apr 17 21:12: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 (22153496) 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 22153496 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350838105,1350838822,1350838817,1350838924,1350839405,1350839362,1350839311,1350839818,1350839812,1350839807,1350839793,1350839782,1350839764,1350840163,1350840088,1350840322,1350840311,1350840296,1350840255,1350840278,1350840432,1350840396,1350840369,1350840363,1350840359,1350840356,1350840966,1350840909,1350840854,1350840823); 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([22153496]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ('0.0382806626432813',), 1350840432: ('0.0382806626432813',), 1350840396: ('0.0382806626432813',), 1350840369: ('0.0382806626432813',), 1350840363: ('0.0382806626432813',), 1350840359: ('0.0382806626432813',), 1350840356: ('0.0382806626432813',), 1350840322: ('0.0382806626432813',), 1350840311: ('0.0382806626432813',), 1350840296: ('0.0382806626432813',), 1350840278: ('0.0382806626432813',)} new output for save of step final : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ('0.0382806626432813',), 1350840432: ('0.0382806626432813',), 1350840396: ('0.0382806626432813',), 1350840369: ('0.0382806626432813',), 1350840363: ('0.0382806626432813',), 1350840359: ('0.0382806626432813',), 1350840356: ('0.0382806626432813',), 1350840322: ('0.0382806626432813',), 1350840311: ('0.0382806626432813',), 1350840296: ('0.0382806626432813',), 1350840278: ('0.0382806626432813',)} [1350840966, 1350840909, 1350840854, 1350840823, 1350840432, 1350840396, 1350840369, 1350840363, 1350840359, 1350840356, 1350840322, 1350840311, 1350840296, 1350840278] map_info['map_portfolio_photo'] : {22153496: [1350840966, 1350840909, 1350840854, 1350840823, 1350840432, 1350840396, 1350840369, 1350840363, 1350840359, 1350840356, 1350840322, 1350840311, 1350840296, 1350840278, 1350840255, 1350840163, 1350840088, 1350839818, 1350839812, 1350839807, 1350839793, 1350839782, 1350839764, 1350839405, 1350839362, 1350839311, 1350838924, 1350838822, 1350838817, 1350838105]} final : False mtd_id 4302 list_pids : [1350840966, 1350840909, 1350840854, 1350840823, 1350840432, 1350840396, 1350840369, 1350840363, 1350840359, 1350840356, 1350840322, 1350840311, 1350840296, 1350840278] Looping around the photos to save general results len do output : 14 /1350840966.Didn't retrieve data . /1350840909.Didn't retrieve data . /1350840854.Didn't retrieve data . /1350840823.Didn't retrieve data . /1350840432.Didn't retrieve data . /1350840396.Didn't retrieve data . /1350840369.Didn't retrieve data . /1350840363.Didn't retrieve data . /1350840359.Didn't retrieve data . /1350840356.Didn't retrieve data . /1350840322.Didn't retrieve data . /1350840311.Didn't retrieve data . /1350840296.Didn't retrieve data . /1350840278.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, '2732620') ('4302', '22153496', '1350840966', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840909', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840854', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840823', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840432', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840396', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840369', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840363', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840359', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840356', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840322', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840311', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840296', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840278', None, None, None, None, None, '2732620') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22153496', '1350840966', '0.0382806626432813', None, None, None, None, '2732620'), ('4302', '22153496', '1350840909', '0.0382806626432813', None, None, None, None, '2732620'), ('4302', '22153496', '1350840854', '0.0382806626432813', None, None, None, None, '2732620'), ('4302', '22153496', '1350840823', '0.0382806626432813', None, None, None, None, '2732620'), ('4302', '22153496', '1350840432', '0.0382806626432813', None, None, None, None, '2732620'), ('4302', '22153496', '1350840396', '0.0382806626432813', None, None, None, None, '2732620'), ('4302', '22153496', '1350840369', '0.0382806626432813', None, None, None, None, '2732620'), ('4302', '22153496', '1350840363', '0.0382806626432813', None, None, None, None, '2732620'), ('4302', '22153496', '1350840359', '0.0382806626432813', None, None, None, None, '2732620'), ('4302', '22153496', '1350840356', '0.0382806626432813', None, None, None, None, '2732620'), ('4302', '22153496', '1350840322', '0.0382806626432813', None, None, None, None, '2732620'), ('4302', '22153496', '1350840311', '0.0382806626432813', None, None, None, None, '2732620'), ('4302', '22153496', '1350840296', '0.0382806626432813', None, None, None, None, '2732620'), ('4302', '22153496', '1350840278', '0.0382806626432813', None, None, None, None, '2732620')] time used for this insertion : 0.0153961181640625 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06662130355834961 time spend to save output : 0.01615309715270996 total time spend for step 2 : 0.08277440071105957 step3:velours_tree Thu Apr 17 21:12: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 : {22153496: [{'Teint_Dans_La_Masse': 22153536, 'kraft': 22153537, 'autre_refus': 22153538, 'environnement': 22153539, 'metal': 22153540, 'plastique': 22153541, 'mal_croppe': 22153542, 'cartonnette': 22153543, 'Carton_gris': 22153544, 'flou': 22153545, 'papier': 22153546, 'Carton_brun': 22153547}]} input_args_next_step : {22153496: ()} output_args : {22153496: [{'Teint_Dans_La_Masse': 22153536, 'kraft': 22153537, 'autre_refus': 22153538, 'environnement': 22153539, 'metal': 22153540, 'plastique': 22153541, 'mal_croppe': 22153542, 'cartonnette': 22153543, 'Carton_gris': 22153544, 'flou': 22153545, 'papier': 22153546, 'Carton_brun': 22153547}]} args : 22153496 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 : ({'Teint_Dans_La_Masse': 22153536, 'kraft': 22153537, 'autre_refus': 22153538, 'environnement': 22153539, 'metal': 22153540, 'plastique': 22153541, 'mal_croppe': 22153542, 'cartonnette': 22153543, 'Carton_gris': 22153544, 'flou': 22153545, 'papier': 22153546, 'Carton_brun': 22153547},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22153496) 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([22153496]) 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.40720391273498535 time spend to save output : 7.867813110351562e-05 total time spend for step 3 : 0.40728259086608887 step4:send_mail_cod Thu Apr 17 21:12: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 : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ('0.0382806626432813',), 1350840432: ('0.0382806626432813',), 1350840396: ('0.0382806626432813',), 1350840369: ('0.0382806626432813',), 1350840363: ('0.0382806626432813',), 1350840359: ('0.0382806626432813',), 1350840356: ('0.0382806626432813',), 1350840322: ('0.0382806626432813',), 1350840311: ('0.0382806626432813',), 1350840296: ('0.0382806626432813',), 1350840278: ('0.0382806626432813',)} input_args_next_step : {1350840966: ()} output_args : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ('0.0382806626432813',), 1350840432: ('0.0382806626432813',), 1350840396: ('0.0382806626432813',), 1350840369: ('0.0382806626432813',), 1350840363: ('0.0382806626432813',), 1350840359: ('0.0382806626432813',), 1350840356: ('0.0382806626432813',), 1350840322: ('0.0382806626432813',), 1350840311: ('0.0382806626432813',), 1350840296: ('0.0382806626432813',), 1350840278: ('0.0382806626432813',)} args : 1350840966 depend.output_id : 0 input_args_next_step : {1350840966: ('0.0382806626432813',), 1350840909: ()} output_args : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ('0.0382806626432813',), 1350840432: ('0.0382806626432813',), 1350840396: ('0.0382806626432813',), 1350840369: ('0.0382806626432813',), 1350840363: ('0.0382806626432813',), 1350840359: ('0.0382806626432813',), 1350840356: ('0.0382806626432813',), 1350840322: ('0.0382806626432813',), 1350840311: ('0.0382806626432813',), 1350840296: ('0.0382806626432813',), 1350840278: ('0.0382806626432813',)} args : 1350840909 depend.output_id : 0 input_args_next_step : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ()} output_args : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ('0.0382806626432813',), 1350840432: ('0.0382806626432813',), 1350840396: ('0.0382806626432813',), 1350840369: ('0.0382806626432813',), 1350840363: ('0.0382806626432813',), 1350840359: ('0.0382806626432813',), 1350840356: ('0.0382806626432813',), 1350840322: ('0.0382806626432813',), 1350840311: ('0.0382806626432813',), 1350840296: ('0.0382806626432813',), 1350840278: ('0.0382806626432813',)} args : 1350840854 depend.output_id : 0 input_args_next_step : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ()} output_args : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ('0.0382806626432813',), 1350840432: ('0.0382806626432813',), 1350840396: ('0.0382806626432813',), 1350840369: ('0.0382806626432813',), 1350840363: ('0.0382806626432813',), 1350840359: ('0.0382806626432813',), 1350840356: ('0.0382806626432813',), 1350840322: ('0.0382806626432813',), 1350840311: ('0.0382806626432813',), 1350840296: ('0.0382806626432813',), 1350840278: ('0.0382806626432813',)} args : 1350840823 depend.output_id : 0 input_args_next_step : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ('0.0382806626432813',), 1350840432: ()} output_args : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ('0.0382806626432813',), 1350840432: ('0.0382806626432813',), 1350840396: ('0.0382806626432813',), 1350840369: ('0.0382806626432813',), 1350840363: ('0.0382806626432813',), 1350840359: ('0.0382806626432813',), 1350840356: ('0.0382806626432813',), 1350840322: ('0.0382806626432813',), 1350840311: ('0.0382806626432813',), 1350840296: ('0.0382806626432813',), 1350840278: ('0.0382806626432813',)} args : 1350840432 depend.output_id : 0 input_args_next_step : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ('0.0382806626432813',), 1350840432: ('0.0382806626432813',), 1350840396: ()} output_args : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ('0.0382806626432813',), 1350840432: ('0.0382806626432813',), 1350840396: ('0.0382806626432813',), 1350840369: ('0.0382806626432813',), 1350840363: ('0.0382806626432813',), 1350840359: ('0.0382806626432813',), 1350840356: ('0.0382806626432813',), 1350840322: ('0.0382806626432813',), 1350840311: ('0.0382806626432813',), 1350840296: ('0.0382806626432813',), 1350840278: ('0.0382806626432813',)} args : 1350840396 depend.output_id : 0 input_args_next_step : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ('0.0382806626432813',), 1350840432: ('0.0382806626432813',), 1350840396: ('0.0382806626432813',), 1350840369: ()} output_args : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ('0.0382806626432813',), 1350840432: ('0.0382806626432813',), 1350840396: ('0.0382806626432813',), 1350840369: ('0.0382806626432813',), 1350840363: ('0.0382806626432813',), 1350840359: ('0.0382806626432813',), 1350840356: ('0.0382806626432813',), 1350840322: ('0.0382806626432813',), 1350840311: ('0.0382806626432813',), 1350840296: ('0.0382806626432813',), 1350840278: ('0.0382806626432813',)} args : 1350840369 depend.output_id : 0 input_args_next_step : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ('0.0382806626432813',), 1350840432: ('0.0382806626432813',), 1350840396: ('0.0382806626432813',), 1350840369: ('0.0382806626432813',), 1350840363: ()} output_args : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ('0.0382806626432813',), 1350840432: ('0.0382806626432813',), 1350840396: ('0.0382806626432813',), 1350840369: ('0.0382806626432813',), 1350840363: ('0.0382806626432813',), 1350840359: ('0.0382806626432813',), 1350840356: ('0.0382806626432813',), 1350840322: ('0.0382806626432813',), 1350840311: ('0.0382806626432813',), 1350840296: ('0.0382806626432813',), 1350840278: ('0.0382806626432813',)} args : 1350840363 depend.output_id : 0 input_args_next_step : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ('0.0382806626432813',), 1350840432: ('0.0382806626432813',), 1350840396: ('0.0382806626432813',), 1350840369: ('0.0382806626432813',), 1350840363: ('0.0382806626432813',), 1350840359: ()} output_args : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ('0.0382806626432813',), 1350840432: ('0.0382806626432813',), 1350840396: ('0.0382806626432813',), 1350840369: ('0.0382806626432813',), 1350840363: ('0.0382806626432813',), 1350840359: ('0.0382806626432813',), 1350840356: ('0.0382806626432813',), 1350840322: ('0.0382806626432813',), 1350840311: ('0.0382806626432813',), 1350840296: ('0.0382806626432813',), 1350840278: ('0.0382806626432813',)} args : 1350840359 depend.output_id : 0 input_args_next_step : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ('0.0382806626432813',), 1350840432: ('0.0382806626432813',), 1350840396: ('0.0382806626432813',), 1350840369: ('0.0382806626432813',), 1350840363: ('0.0382806626432813',), 1350840359: ('0.0382806626432813',), 1350840356: ()} output_args : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ('0.0382806626432813',), 1350840432: ('0.0382806626432813',), 1350840396: ('0.0382806626432813',), 1350840369: ('0.0382806626432813',), 1350840363: ('0.0382806626432813',), 1350840359: ('0.0382806626432813',), 1350840356: ('0.0382806626432813',), 1350840322: ('0.0382806626432813',), 1350840311: ('0.0382806626432813',), 1350840296: ('0.0382806626432813',), 1350840278: ('0.0382806626432813',)} args : 1350840356 depend.output_id : 0 input_args_next_step : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ('0.0382806626432813',), 1350840432: ('0.0382806626432813',), 1350840396: ('0.0382806626432813',), 1350840369: ('0.0382806626432813',), 1350840363: ('0.0382806626432813',), 1350840359: ('0.0382806626432813',), 1350840356: ('0.0382806626432813',), 1350840322: ()} output_args : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ('0.0382806626432813',), 1350840432: ('0.0382806626432813',), 1350840396: ('0.0382806626432813',), 1350840369: ('0.0382806626432813',), 1350840363: ('0.0382806626432813',), 1350840359: ('0.0382806626432813',), 1350840356: ('0.0382806626432813',), 1350840322: ('0.0382806626432813',), 1350840311: ('0.0382806626432813',), 1350840296: ('0.0382806626432813',), 1350840278: ('0.0382806626432813',)} args : 1350840322 depend.output_id : 0 input_args_next_step : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ('0.0382806626432813',), 1350840432: ('0.0382806626432813',), 1350840396: ('0.0382806626432813',), 1350840369: ('0.0382806626432813',), 1350840363: ('0.0382806626432813',), 1350840359: ('0.0382806626432813',), 1350840356: ('0.0382806626432813',), 1350840322: ('0.0382806626432813',), 1350840311: ()} output_args : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ('0.0382806626432813',), 1350840432: ('0.0382806626432813',), 1350840396: ('0.0382806626432813',), 1350840369: ('0.0382806626432813',), 1350840363: ('0.0382806626432813',), 1350840359: ('0.0382806626432813',), 1350840356: ('0.0382806626432813',), 1350840322: ('0.0382806626432813',), 1350840311: ('0.0382806626432813',), 1350840296: ('0.0382806626432813',), 1350840278: ('0.0382806626432813',)} args : 1350840311 depend.output_id : 0 input_args_next_step : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ('0.0382806626432813',), 1350840432: ('0.0382806626432813',), 1350840396: ('0.0382806626432813',), 1350840369: ('0.0382806626432813',), 1350840363: ('0.0382806626432813',), 1350840359: ('0.0382806626432813',), 1350840356: ('0.0382806626432813',), 1350840322: ('0.0382806626432813',), 1350840311: ('0.0382806626432813',), 1350840296: ()} output_args : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ('0.0382806626432813',), 1350840432: ('0.0382806626432813',), 1350840396: ('0.0382806626432813',), 1350840369: ('0.0382806626432813',), 1350840363: ('0.0382806626432813',), 1350840359: ('0.0382806626432813',), 1350840356: ('0.0382806626432813',), 1350840322: ('0.0382806626432813',), 1350840311: ('0.0382806626432813',), 1350840296: ('0.0382806626432813',), 1350840278: ('0.0382806626432813',)} args : 1350840296 depend.output_id : 0 input_args_next_step : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ('0.0382806626432813',), 1350840432: ('0.0382806626432813',), 1350840396: ('0.0382806626432813',), 1350840369: ('0.0382806626432813',), 1350840363: ('0.0382806626432813',), 1350840359: ('0.0382806626432813',), 1350840356: ('0.0382806626432813',), 1350840322: ('0.0382806626432813',), 1350840311: ('0.0382806626432813',), 1350840296: ('0.0382806626432813',), 1350840278: ()} output_args : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ('0.0382806626432813',), 1350840432: ('0.0382806626432813',), 1350840396: ('0.0382806626432813',), 1350840369: ('0.0382806626432813',), 1350840363: ('0.0382806626432813',), 1350840359: ('0.0382806626432813',), 1350840356: ('0.0382806626432813',), 1350840322: ('0.0382806626432813',), 1350840311: ('0.0382806626432813',), 1350840296: ('0.0382806626432813',), 1350840278: ('0.0382806626432813',)} args : 1350840278 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 : {22153496: [{'Teint_Dans_La_Masse': 22153536, 'kraft': 22153537, 'autre_refus': 22153538, 'environnement': 22153539, 'metal': 22153540, 'plastique': 22153541, 'mal_croppe': 22153542, 'cartonnette': 22153543, 'Carton_gris': 22153544, 'flou': 22153545, 'papier': 22153546, 'Carton_brun': 22153547}]} input_args_next_step : {1350840966: ('0.0382806626432813',), 1350840909: ('0.0382806626432813',), 1350840854: ('0.0382806626432813',), 1350840823: ('0.0382806626432813',), 1350840432: ('0.0382806626432813',), 1350840396: ('0.0382806626432813',), 1350840369: ('0.0382806626432813',), 1350840363: ('0.0382806626432813',), 1350840359: ('0.0382806626432813',), 1350840356: ('0.0382806626432813',), 1350840322: ('0.0382806626432813',), 1350840311: ('0.0382806626432813',), 1350840296: ('0.0382806626432813',), 1350840278: ('0.0382806626432813',), 22153496: ()} output_args : {22153496: [{'Teint_Dans_La_Masse': 22153536, 'kraft': 22153537, 'autre_refus': 22153538, 'environnement': 22153539, 'metal': 22153540, 'plastique': 22153541, 'mal_croppe': 22153542, 'cartonnette': 22153543, 'Carton_gris': 22153544, 'flou': 22153545, 'papier': 22153546, 'Carton_brun': 22153547}]} args : 22153496 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :15, first value : ('0.0382806626432813',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22153496) 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 (1350840966,1350840909,1350840854,1350840823,1350840432,1350840396,1350840369,1350840363,1350840359,1350840356,1350840322,1350840311,1350840296,1350840278) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350840278 begin to download photo : 1350840322 begin to download photo : 1350840363 begin to download photo : 1350840432 begin to download photo : 1350840909 download finish for photo 1350840322 begin to download photo : 1350840356 download finish for photo 1350840278 begin to download photo : 1350840296 download finish for photo 1350840432 begin to download photo : 1350840823 download finish for photo 1350840363 begin to download photo : 1350840369 download finish for photo 1350840909 begin to download photo : 1350840966 download finish for photo 1350840356 begin to download photo : 1350840359 download finish for photo 1350840369 begin to download photo : 1350840396 download finish for photo 1350840823 begin to download photo : 1350840854 download finish for photo 1350840296 begin to download photo : 1350840311 download finish for photo 1350840966 download finish for photo 1350840359 download finish for photo 1350840854 download finish for photo 1350840311 download finish for photo 1350840396 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette221535371744917152/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P22153496_17-04-2025_21_12_32.pdf 22153537 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=22153537 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221535371744917152 22153538 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=22153538 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350839593: '1744916830_3288197_1350838924_b3af24c760e8642468362dd478e455c0_rle_crop_3752487247_0.png', 1350840225: '1744916942_3289213_1350839311_2154008b0deb20e459cf85e417dde96a_rle_crop_3752496786_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/0f3a65fb0b82a303ea42e85d6b225a54_90376295.png change filename to text .imagette221535381744917152/ imagette221535381744917152/1744916942_3289213_1350839311_2154008b0deb20e459cf85e417dde96a_rle_crop_3752496786_0.png.png imagette221535381744917152/1744916830_3288197_1350838924_b3af24c760e8642468362dd478e455c0_rle_crop_3752487247_0.png.png imagette221535401744917152/ imagette221535411744917152/ imagette221535421744917152/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/77631fae8f4ef3cf1c608c9298a34f1a_19353671.png imagette221535381744917152 22153540 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=22153540 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221535401744917152 22153541 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=22153541 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221535411744917152 22153542 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=22153542 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221535421744917152 22153543 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=22153543 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350840476: '1744917072_3290506_1350839818_829f8180b3aa8a50c609babfc5e26ddf_rle_crop_3752498901_0.png'} change filename to text .imagette221535431744917152/ imagette221535431744917152/1744917072_3290506_1350839818_829f8180b3aa8a50c609babfc5e26ddf_rle_crop_3752498901_0.png.png imagette221535451744917152/ imagette221535361744917152/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/6229a703f5aa5dcac5612f707deb871f_49509140.png imagette221535431744917152 22153545 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=22153545 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221535451744917152 22153536 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=22153536 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221535361744917152 22153544 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=22153544 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350840235: '1744916942_3289213_1350839362_688f01127ad323f9645dff3f9723573e_rle_crop_3752496768_0.png', 1350840236: '1744916942_3289213_1350839311_2154008b0deb20e459cf85e417dde96a_rle_crop_3752496782_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/09f5d81c0d6df3b6eda6334edfb221af_22423710.png change filename to text .imagette221535441744917152/ imagette221535441744917152/1744916942_3289213_1350839362_688f01127ad323f9645dff3f9723573e_rle_crop_3752496768_0.png.png imagette221535441744917152/1744916942_3289213_1350839311_2154008b0deb20e459cf85e417dde96a_rle_crop_3752496782_0.png.png imagette221535471744917152/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/c3b773991b09db40cb5b1c0f4341956c_7200461.png imagette221535441744917152 22153547 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=22153547 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221535471744917152 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22153496 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22153548,22153549,22153550,22153551,22153552,22153553,22153554,22153555,22153556,22153557,22153558,22153559?tags=Teint_Dans_La_Masse,kraft,autre_refus,environnement,metal,plastique,mal_croppe,cartonnette,Carton_gris,flou,papier,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1350840966] : ('0.0382806626432813',) no score found for photo 1350840966 We are sending mail with results at report@fotonower.com args[1350840909] : ('0.0382806626432813',) no score found for photo 1350840909 We are sending mail with results at report@fotonower.com args[1350840854] : ('0.0382806626432813',) no score found for photo 1350840854 We are sending mail with results at report@fotonower.com args[1350840823] : ('0.0382806626432813',) no score found for photo 1350840823 We are sending mail with results at report@fotonower.com args[1350840432] : ('0.0382806626432813',) no score found for photo 1350840432 We are sending mail with results at report@fotonower.com args[1350840396] : ('0.0382806626432813',) no score found for photo 1350840396 We are sending mail with results at report@fotonower.com args[1350840369] : ('0.0382806626432813',) no score found for photo 1350840369 We are sending mail with results at report@fotonower.com args[1350840363] : ('0.0382806626432813',) no score found for photo 1350840363 We are sending mail with results at report@fotonower.com args[1350840359] : ('0.0382806626432813',) no score found for photo 1350840359 We are sending mail with results at report@fotonower.com args[1350840356] : ('0.0382806626432813',) no score found for photo 1350840356 We are sending mail with results at report@fotonower.com args[1350840322] : ('0.0382806626432813',) no score found for photo 1350840322 We are sending mail with results at report@fotonower.com args[1350840311] : ('0.0382806626432813',) no score found for photo 1350840311 We are sending mail with results at report@fotonower.com args[1350840296] : ('0.0382806626432813',) no score found for photo 1350840296 We are sending mail with results at report@fotonower.com args[1350840278] : ('0.0382806626432813',) no score found for photo 1350840278 We are sending mail with results at report@fotonower.com refus_total : 0.0382806626432813 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=22153496 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_P22153496_17-04-2025_21_12_32.pdf results_Auto_P22153496_17-04-2025_21_12_32.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22153496_17-04-2025_21_12_32.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','22153496','results_Auto_P22153496_17-04-2025_21_12_32.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22153496_17-04-2025_21_12_32.pdf','pdf','','0.14','0.0382806626432813') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22153496]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350840966, 1350840909, 1350840854, 1350840823, 1350840432, 1350840396, 1350840369, 1350840363, 1350840359, 1350840356, 1350840322, 1350840311, 1350840296, 1350840278] map_info['map_portfolio_photo'] : {22153496: [1350840966, 1350840909, 1350840854, 1350840823, 1350840432, 1350840396, 1350840369, 1350840363, 1350840359, 1350840356, 1350840322, 1350840311, 1350840296, 1350840278, 1350840255, 1350840163, 1350840088, 1350839818, 1350839812, 1350839807, 1350839793, 1350839782, 1350839764, 1350839405, 1350839362, 1350839311, 1350838924, 1350838822, 1350838817, 1350838105]} final : False mtd_id 4302 list_pids : [1350840966, 1350840909, 1350840854, 1350840823, 1350840432, 1350840396, 1350840369, 1350840363, 1350840359, 1350840356, 1350840322, 1350840311, 1350840296, 1350840278] 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, '2732620') ('4302', '22153496', '1350840966', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840909', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840854', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840823', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840432', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840396', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840369', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840363', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840359', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840356', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840322', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840311', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840296', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840278', None, None, None, None, None, '2732620') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22153496', '1350840966', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840909', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840854', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840823', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840432', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840396', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840369', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840363', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840359', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840356', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840322', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840311', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840296', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840278', None, None, None, None, None, '2732620')] time used for this insertion : 0.016205310821533203 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.9286565780639648 time spend to save output : 0.016587257385253906 total time spend for step 4 : 1.9452438354492188 step5:split_time_score Thu Apr 17 21:12:34 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 : ['22153496'] 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 : [('22153496',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22153496) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350840909: {'path': 'temp/1744917152_2571641_1350840909_43f1815cde1f809a0c788d8947735f36.jpg', 'extension': 'jpg'}, 1350840966: {'path': 'temp/1744917152_2571641_1350840966_0dfa006180add044fcad569f00b44ca8.jpg', 'extension': 'jpg'}, 1350840322: {'path': 'temp/1744917152_2571641_1350840322_c3ff441a6ca21a0f2b8a519ff344cad6.jpg', 'extension': 'jpg'}, 1350840356: {'path': 'temp/1744917152_2571641_1350840356_077fc1c32a1c5700b636f7826d95436c.jpg', 'extension': 'jpg'}, 1350840359: {'path': 'temp/1744917152_2571641_1350840359_3baa7df8bad4fb28853c42dbc9a4ad6a.jpg', 'extension': 'jpg'}, 1350840432: {'path': 'temp/1744917152_2571641_1350840432_5d6e239945e4ae67372b1979e1565ced.jpg', 'extension': 'jpg'}, 1350840823: {'path': 'temp/1744917152_2571641_1350840823_59e70ef4244846ef04576c87a8e35f99.jpg', 'extension': 'jpg'}, 1350840854: {'path': 'temp/1744917152_2571641_1350840854_4fdd228993ab48a9954c77924175f0fc.jpg', 'extension': 'jpg'}, 1350840278: {'path': 'temp/1744917152_2571641_1350840278_4c904002ab6290257e190aa8790584a1.jpg', 'extension': 'jpg'}, 1350840296: {'path': 'temp/1744917152_2571641_1350840296_6657edf36686ecfbc6ac63edd66a652b.jpg', 'extension': 'jpg'}, 1350840311: {'path': 'temp/1744917152_2571641_1350840311_dec2c9f59c0d7435de2c1a47195068fc.jpg', 'extension': 'jpg'}, 1350840363: {'path': 'temp/1744917152_2571641_1350840363_83cc2463b73e5aaf32308d42c76020ff.jpg', 'extension': 'jpg'}, 1350840369: {'path': 'temp/1744917152_2571641_1350840369_542aff67e451d844fcd2e4850a68a6da.jpg', 'extension': 'jpg'}, 1350840396: {'path': 'temp/1744917152_2571641_1350840396_83ad19cdfb07945307b1ff51c6e6c623.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 = 22153496; (('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 = 22153496 group by h (('21', 30),) 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=22153496 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 (22153496) 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 (22153496) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 17042025 22153496 Nombre de photos uploadées : 30 / 23040 (0%) 17042025 22153496 Nombre de photos taguées (types de déchets): 0 / 30 (0%) 17042025 22153496 Nombre de photos taguées (volume) : 0 / 30 (0%) [{'photo_id': 1350838105, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/8a579a1cfb0442d071a58ec061ec6adc.jpg', 'username': None, 'uploaded_at': 1744916472, 'text': 'image_17042025_21_00_24_10139.jpg'}, {'photo_id': 1350838822, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/992f0cb2947a346cd6479a64f04862cc.jpg', 'username': None, 'uploaded_at': 1744916587, 'text': 'image_17042025_21_01_24_10150.jpg'}, {'photo_id': 1350838817, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/8d483ecd7fd81a887f59f01ce8263788.jpg', 'username': None, 'uploaded_at': 1744916587, 'text': 'image_17042025_21_02_14_010133m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350838924, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/17/b3af24c760e8642468362dd478e455c0.jpg', 'username': None, 'uploaded_at': 1744916708, 'text': 'image_17042025_21_02_23_009122m0.jpg 2e-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.821487426757812e-06 ?????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0015790462493896484 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22153496, '2025-04-17' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1721208,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.03336524963378906 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= 1721208 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1721208, 'dashboard_run_id': 1732168, 'mtr_portfolio_id': 22151606, 'dashboard_result_id': 9949236, '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_P22151606_17-04-2025_20_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22151608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22151609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22151610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22151611, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22151612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22151613, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22151614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22151615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22151616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22151617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22151618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22151619, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1732168, 'mtr_portfolio_id': 22151992, 'dashboard_result_id': 9949237, '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_P22151992_17-04-2025_21_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22152053, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22152054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22152055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22152056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22152057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22152058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22152059, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22152060, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22152061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22152062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22152063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22152065, 'pht': 3726}}"}, {'dashboat_entry_day': 1721208, 'dashboard_run_id': 1732168, 'mtr_portfolio_id': 22153496, 'dashboard_result_id': 9949238, '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_P22153496_17-04-2025_21_11_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22153536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22153537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22153538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22153539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22153540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22153541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22153542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22153543, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22153544, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22153545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22153546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22153547, '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 = 22151606 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': 2732439, 'mtr_portfolio_id': 22151606, 'created_at': datetime.datetime(2025, 4, 17, 20, 32, 57), 'result': '0.05243456456753769', 'result_long': None, 'result_double': None}] Qualite : 0.05243456456753769 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22151606 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22151606_17-04-2025_20_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22151606 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_P22151606_17-04-2025_20_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22151608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22151609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22151610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22151611, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22151612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22151613, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22151614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22151615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22151616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22151617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22151618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22151619, 'pht': 3726}}" where mtr_portfolio_id = 22151606 and dashboard_run_id = 1732168 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`=22151606 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9949236, 0.05243456456753769, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22151606_17-04-2025_20_32_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22151608, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22151609, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22151610, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22151611, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22151612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22151613, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22151614, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22151615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22151616, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22151617, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22151618, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22151619, '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 = 22151992 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': 2732486, 'mtr_portfolio_id': 22151992, 'created_at': datetime.datetime(2025, 4, 17, 21, 3), 'result': '0.04713630305415385', 'result_long': None, 'result_double': None}] Qualite : 0.04713630305415385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22151992 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22151992_17-04-2025_21_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22151992 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_P22151992_17-04-2025_21_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22152053, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22152054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22152055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22152056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22152057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22152058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22152059, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22152060, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22152061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22152062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22152063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22152065, 'pht': 3726}}" where mtr_portfolio_id = 22151992 and dashboard_run_id = 1732168 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`=22151992 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9949237, 0.04713630305415385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22151992_17-04-2025_21_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22152053, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22152054, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22152055, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22152056, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22152057, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22152058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22152059, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22152060, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22152061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22152062, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22152063, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22152065, '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 = 22153496 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': 2732620, 'mtr_portfolio_id': 22153496, 'created_at': datetime.datetime(2025, 4, 17, 21, 12, 31), 'result': '0.0382806626432813', 'result_long': None, 'result_double': None}] Qualite : 0.0382806626432813 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22153496 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22153496_17-04-2025_21_12_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22153496 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_P22153496_17-04-2025_21_12_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22153536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22153537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22153538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22153539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22153540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22153541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22153542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22153543, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22153544, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22153545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22153546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22153547, 'pht': 3726}}" where mtr_portfolio_id = 22153496 and dashboard_run_id = 1732168 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`=22153496 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9949238, 0.0382806626432813, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22153496_17-04-2025_21_12_32.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22153536, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22153537, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22153538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22153539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22153540, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22153541, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22153542, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22153543, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22153544, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22153545, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22153546, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22153547, '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 (22151606,22151992,22153496) result : ((1350826861,), (1350827329,), (1350827363,), (1350827369,), (1350827503,), (1350827511,), (1350827522,), (1350828132,), (1350828136,), (1350828141,), (1350828146,), (1350828159,), (1350828175,), (1350828479,), (1350828508,), (1350828578,), (1350828627,), (1350828630,), (1350828636,), (1350828844,), (1350828848,), (1350828852,), (1350829161,), (1350829191,), (1350829225,), (1350829249,), (1350829296,), (1350829300,), (1350829305,), (1350829311,), (1350829323,), (1350829369,), (1350829374,), (1350829375,), (1350829377,), (1350829441,), (1350829459,), (1350829468,), (1350829473,), (1350829484,), (1350829487,), (1350829590,), (1350829592,), (1350829594,), (1350829901,), (1350829904,), (1350829910,), (1350829915,), (1350829961,), (1350829965,), (1350829969,), (1350829974,), (1350829978,), (1350829984,), (1350830017,), (1350830020,), (1350830022,), (1350830026,), (1350830089,), (1350830098,), (1350830100,), (1350830103,), (1350830105,), (1350830185,), (1350830147,), (1350830155,), (1350830167,), (1350830180,), (1350830240,), (1350830242,), (1350830245,), (1350830248,), (1350830343,), (1350830378,), (1350830415,), (1350830444,), (1350830467,), (1350830847,), (1350830850,), (1350830870,), (1350830898,), (1350830962,), (1350831075,), (1350831242,), (1350831255,), (1350831260,), (1350831264,), (1350831306,), (1350831308,), (1350831319,), (1350831326,), (1350831331,), (1350831694,), (1350831726,), (1350831772,), (1350831820,), (1350832015,), (1350832017,), (1350832038,), (1350832418,), (1350832430,), (1350832435,), (1350832455,), (1350832476,), (1350832479,), (1350832530,), (1350832537,), (1350832539,), (1350832541,), (1350832543,), (1350832590,), (1350832593,), (1350832597,), (1350832648,), (1350832650,), (1350838590,), (1350838105,), (1350838817,), (1350838822,), (1350838924,), (1350839311,), (1350839362,), (1350839405,), (1350839764,), (1350839782,), (1350839793,), (1350839807,), (1350839812,), (1350839818,), (1350840088,), (1350840163,), (1350840255,), (1350840278,), (1350840296,), (1350840311,), (1350840322,), (1350840356,), (1350840359,), (1350840363,), (1350840369,), (1350840396,), (1350840432,), (1350840823,), (1350840854,), (1350840909,), (1350840966,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'17042025': {'nb_upload': 30, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22153496]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350840966, 1350840909, 1350840854, 1350840823, 1350840432, 1350840396, 1350840369, 1350840363, 1350840359, 1350840356, 1350840322, 1350840311, 1350840296, 1350840278] map_info['map_portfolio_photo'] : {22153496: [1350840966, 1350840909, 1350840854, 1350840823, 1350840432, 1350840396, 1350840369, 1350840363, 1350840359, 1350840356, 1350840322, 1350840311, 1350840296, 1350840278, 1350840255, 1350840163, 1350840088, 1350839818, 1350839812, 1350839807, 1350839793, 1350839782, 1350839764, 1350839405, 1350839362, 1350839311, 1350838924, 1350838822, 1350838817, 1350838105]} final : True mtd_id 4302 list_pids : [1350840966, 1350840909, 1350840854, 1350840823, 1350840432, 1350840396, 1350840369, 1350840363, 1350840359, 1350840356, 1350840322, 1350840311, 1350840296, 1350840278] Looping around the photos to save general results len do output : 1 /22153496Didn'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, '2732620') ('4302', '22153496', '1350840966', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840909', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840854', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840823', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840432', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840396', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840369', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840363', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840359', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840356', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840322', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840311', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840296', None, None, None, None, None, '2732620') ('4302', None, None, None, None, None, None, None, '2732620') ('4302', '22153496', '1350840278', None, None, None, None, None, '2732620') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22153496', 'None', None, None, None, None, '2732620'), ('4302', '22153496', '1350840966', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840909', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840854', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840823', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840432', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840396', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840369', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840363', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840359', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840356', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840322', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840311', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840296', None, None, None, None, None, '2732620'), ('4302', '22153496', '1350840278', None, None, None, None, None, '2732620')] time used for this insertion : 0.015861034393310547 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.30777597427368164 time spend to save output : 0.01617884635925293 total time spend for step 5 : 0.32395482063293457 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 (2732620) 2.59user 2.54system 0:08.47elapsed 60%CPU (0avgtext+0avgdata 159288maxresident)k 5760inputs+7784outputs (55major+76855minor)pagefaults 0swaps