python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4302 -v ' -s datou_current_4302 -M 0 -S 0 -U 95,95,120 import MySQLdb succeeded Import error (python version) ['/Users/moilerat/Documents/Fotonower/install/caffe/distribute/python', '/home/admin/workarea/git/Velours/python/prod', '/home/admin/workarea/install/caffe_cuda8_python3/python', '/home/admin/workarea/install/darknet', '/home/admin/workarea/git/Velours/python', '/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python', '/home/admin/mtr/.credentials', '/home/admin/workarea/install/caffe/python', '/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools', '/home/admin/workarea/git/fotonowerpip', '/home/admin/workarea/install/segment-anything', '/home/admin/workarea/git/pyfvs', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/admin/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] Namespace(auto=False, cert_args='/home/fotonower/https/cert.pem', contextDataFile='', custom_size=0, database='', datou_id='4302', datou_id_excluded='', fifo=False, host='', is_cpu_mode=False, job='batch_current', json_args='', key_args='/home/fotonower/https/vision.fotonower.com.key', limit=1000, list_photo_ids='', local='', mtr_current_id=0, mtr_portfolio_ids='', nb_thread=1, no_current=False, offset=0, only_client=False, output_file='', password='', port=5100, rand=0, save=2, use_client=False, user_id=440, username='', verbose=True) process id : 1867626 load datou : 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 ! Unexpected type seems boolean for variable list_input_json ERROR or WARNING : can't parse json string Expecting value: line 1 column 1 (char 0) Tried to parse : None insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22168557 , 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=22168475 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 (22168557) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22168475) result : ((1350801813,), (1350801818,), (1350801823,), (1350801828,), (1350801955,), (1350801973,), (1350801997,), (1350802013,), (1350802027,), (1350802126,), (1350802128,), (1350802237,), (1350802242,), (1350802248,), (1350802254,), (1350802307,), (1350802318,), (1350802322,)) 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 22168558 , 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=22168475 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 (22168558) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22168475) result : ((1350801813,), (1350801818,), (1350801823,), (1350801828,), (1350801955,), (1350801973,), (1350801997,), (1350802013,), (1350802027,), (1350802126,), (1350802128,), (1350802237,), (1350802242,), (1350802248,), (1350802254,), (1350802307,), (1350802318,), (1350802322,)) 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 22168559 , 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=22168475 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 (22168559) result : ((1350802304,), (1350802305,), (1350802306,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22168475) result : ((1350801813,), (1350801818,), (1350801823,), (1350801828,), (1350801955,), (1350801973,), (1350801997,), (1350802013,), (1350802027,), (1350802126,), (1350802128,), (1350802237,), (1350802242,), (1350802248,), (1350802254,), (1350802307,), (1350802318,), (1350802322,)) 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 22168560 , 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=22168475 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Teint_Dans_La_Masse' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22168560) result : ((1350802279,), (1350802295,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22168475) result : ((1350801813,), (1350801818,), (1350801823,), (1350801828,), (1350801955,), (1350801973,), (1350801997,), (1350802013,), (1350802027,), (1350802126,), (1350802128,), (1350802237,), (1350802242,), (1350802248,), (1350802254,), (1350802307,), (1350802318,), (1350802322,)) 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 22168561 , 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=22168475 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 (22168561) result : ((1350802316,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22168475) result : ((1350801813,), (1350801818,), (1350801823,), (1350801828,), (1350801955,), (1350801973,), (1350801997,), (1350802013,), (1350802027,), (1350802126,), (1350802128,), (1350802237,), (1350802242,), (1350802248,), (1350802254,), (1350802307,), (1350802318,), (1350802322,)) 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 22168562 , 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=22168475 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 (22168562) result : ((1350802283,), (1350802308,), (1350802309,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22168475) result : ((1350801813,), (1350801818,), (1350801823,), (1350801828,), (1350801955,), (1350801973,), (1350801997,), (1350802013,), (1350802027,), (1350802126,), (1350802128,), (1350802237,), (1350802242,), (1350802248,), (1350802254,), (1350802307,), (1350802318,), (1350802322,)) 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 22168563 , 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=22168475 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='kraft' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22168563) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22168475) result : ((1350801813,), (1350801818,), (1350801823,), (1350801828,), (1350801955,), (1350801973,), (1350801997,), (1350802013,), (1350802027,), (1350802126,), (1350802128,), (1350802237,), (1350802242,), (1350802248,), (1350802254,), (1350802307,), (1350802318,), (1350802322,)) 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`=22168475 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','kraft','Carton_gris','Carton_brun','metal','plastique','flou','papier','cartonnette','mal_croppe','Teint_Dans_La_Masse')) 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`=22168475 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','autre_refus','kraft','Carton_gris','Carton_brun','metal','plastique','flou','papier','cartonnette','mal_croppe','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22168475, 'sub_port_id': 22168564, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14644313, 'last_updated_at': datetime.datetime(2025, 4, 9, 16, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 16, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 16, 19, 32)}, 'metal': {'main_port_id': 22168475, 'sub_port_id': 22168565, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14644314, 'last_updated_at': datetime.datetime(2025, 4, 9, 16, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 16, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 16, 19, 32)}, 'autre_refus': {'main_port_id': 22168475, 'sub_port_id': 22168566, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14644315, 'last_updated_at': datetime.datetime(2025, 4, 9, 16, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 16, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 16, 19, 32)}, 'environnement': {'main_port_id': 22168475, 'sub_port_id': 22168567, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14644316, 'last_updated_at': datetime.datetime(2025, 4, 9, 16, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 16, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 16, 19, 32)}, 'papier': {'main_port_id': 22168475, 'sub_port_id': 22168568, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14644317, 'last_updated_at': datetime.datetime(2025, 4, 9, 16, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 16, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 16, 19, 32)}, 'mal_croppe': {'main_port_id': 22168475, 'sub_port_id': 22168569, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14644318, 'last_updated_at': datetime.datetime(2025, 4, 9, 16, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 16, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 16, 19, 32)}, 'flou': {'main_port_id': 22168475, 'sub_port_id': 22168570, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14644319, 'last_updated_at': datetime.datetime(2025, 4, 9, 16, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 16, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 16, 19, 32)}, 'Carton_gris': {'main_port_id': 22168475, 'sub_port_id': 22168571, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14644320, 'last_updated_at': datetime.datetime(2025, 4, 9, 16, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 16, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 16, 19, 32)}, 'Teint_Dans_La_Masse': {'main_port_id': 22168475, 'sub_port_id': 22168572, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14644321, 'last_updated_at': datetime.datetime(2025, 4, 9, 16, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 16, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 16, 19, 32)}, 'plastique': {'main_port_id': 22168475, 'sub_port_id': 22168573, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14644322, 'last_updated_at': datetime.datetime(2025, 4, 9, 16, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 16, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 16, 19, 32)}, 'cartonnette': {'main_port_id': 22168475, 'sub_port_id': 22168574, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14644323, 'last_updated_at': datetime.datetime(2025, 4, 9, 16, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 16, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 16, 19, 32)}, 'kraft': {'main_port_id': 22168475, 'sub_port_id': 22168575, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14644324, 'last_updated_at': datetime.datetime(2025, 4, 9, 16, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 9, 16, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 9, 16, 19, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168564,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168552 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168565,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168553 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168566,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168554 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168567,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168555 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168568,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168556 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168569,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168557 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168570,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168558 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168571,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168559 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168572,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168560 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168573,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168561 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168574,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168562 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22168575,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22168563 lien utilise dans velours : https://www.fotonower.com/velours/22168564,22168565,22168566,22168567,22168568,22168569,22168570,22168571,22168572,22168573,22168574,22168575?tags=Carton_brun,metal,autre_refus,environnement,papier,mal_croppe,flou,Carton_gris,Teint_Dans_La_Masse,plastique,cartonnette,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22168475]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350802322, 1350802318, 1350802307, 1350802254, 1350802248, 1350802242, 1350802237, 1350802128, 1350802126] map_info['map_portfolio_photo'] : {22168475: [1350802322, 1350802318, 1350802307, 1350802254, 1350802248, 1350802242, 1350802237, 1350802128, 1350802126, 1350802027, 1350802013, 1350801997, 1350801973, 1350801955, 1350801828, 1350801823, 1350801818, 1350801813]} final : False mtd_id 4302 list_pids : [1350802322, 1350802318, 1350802307, 1350802254, 1350802248, 1350802242, 1350802237, 1350802128, 1350802126] Looping around the photos to save general results len do output : 1 /22168475. 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, '2735042') ('4302', '22168475', '1350802322', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802318', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802307', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802254', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802248', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802242', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802237', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802128', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802126', None, None, None, None, None, '2735042') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '22168475', "{'Carton_brun': 22168552, 'metal': 22168553, 'autre_refus': 22168554, 'environnement': 22168555, 'papier': 22168556, 'mal_croppe': 22168557, 'flou': 22168558, 'Carton_gris': 22168559, 'Teint_Dans_La_Masse': 22168560, 'plastique': 22168561, 'cartonnette': 22168562, 'kraft': 22168563}", None, None, None, None, '2735042'), ('4302', '22168475', '1350802322', None, None, None, None, None, '2735042'), ('4302', '22168475', '1350802318', None, None, None, None, None, '2735042'), ('4302', '22168475', '1350802307', None, None, None, None, None, '2735042'), ('4302', '22168475', '1350802254', None, None, None, None, None, '2735042'), ('4302', '22168475', '1350802248', None, None, None, None, None, '2735042'), ('4302', '22168475', '1350802242', None, None, None, None, None, '2735042'), ('4302', '22168475', '1350802237', None, None, None, None, None, '2735042'), ('4302', '22168475', '1350802128', None, None, None, None, None, '2735042'), ('4302', '22168475', '1350802126', None, None, None, None, None, '2735042')] time used for this insertion : 0.015708446502685547 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.456831455230713 time spend to save output : 0.016089677810668945 total time spend for step 1 : 1.4729211330413818 step2:final Wed Apr 9 16:21:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22168475) 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 22168475 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350801828,1350801823,1350801818,1350801813,1350802027,1350802013,1350801997,1350801973,1350801955,1350802128,1350802126,1350802254,1350802248,1350802242,1350802237,1350802322,1350802318,1350802307); 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([22168475]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350802322: ('0.049812921023645075',), 1350802318: ('0.049812921023645075',), 1350802307: ('0.049812921023645075',), 1350802254: ('0.049812921023645075',), 1350802248: ('0.049812921023645075',), 1350802242: ('0.049812921023645075',), 1350802237: ('0.049812921023645075',), 1350802128: ('0.049812921023645075',), 1350802126: ('0.049812921023645075',)} new output for save of step final : {1350802322: ('0.049812921023645075',), 1350802318: ('0.049812921023645075',), 1350802307: ('0.049812921023645075',), 1350802254: ('0.049812921023645075',), 1350802248: ('0.049812921023645075',), 1350802242: ('0.049812921023645075',), 1350802237: ('0.049812921023645075',), 1350802128: ('0.049812921023645075',), 1350802126: ('0.049812921023645075',)} [1350802322, 1350802318, 1350802307, 1350802254, 1350802248, 1350802242, 1350802237, 1350802128, 1350802126] map_info['map_portfolio_photo'] : {22168475: [1350802322, 1350802318, 1350802307, 1350802254, 1350802248, 1350802242, 1350802237, 1350802128, 1350802126, 1350802027, 1350802013, 1350801997, 1350801973, 1350801955, 1350801828, 1350801823, 1350801818, 1350801813]} final : False mtd_id 4302 list_pids : [1350802322, 1350802318, 1350802307, 1350802254, 1350802248, 1350802242, 1350802237, 1350802128, 1350802126] Looping around the photos to save general results len do output : 9 /1350802322.Didn't retrieve data . /1350802318.Didn't retrieve data . /1350802307.Didn't retrieve data . /1350802254.Didn't retrieve data . /1350802248.Didn't retrieve data . /1350802242.Didn't retrieve data . /1350802237.Didn't retrieve data . /1350802128.Didn't retrieve data . /1350802126.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, '2735042') ('4302', '22168475', '1350802322', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802318', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802307', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802254', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802248', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802242', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802237', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802128', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802126', None, None, None, None, None, '2735042') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '22168475', '1350802322', '0.049812921023645075', None, None, None, None, '2735042'), ('4302', '22168475', '1350802318', '0.049812921023645075', None, None, None, None, '2735042'), ('4302', '22168475', '1350802307', '0.049812921023645075', None, None, None, None, '2735042'), ('4302', '22168475', '1350802254', '0.049812921023645075', None, None, None, None, '2735042'), ('4302', '22168475', '1350802248', '0.049812921023645075', None, None, None, None, '2735042'), ('4302', '22168475', '1350802242', '0.049812921023645075', None, None, None, None, '2735042'), ('4302', '22168475', '1350802237', '0.049812921023645075', None, None, None, None, '2735042'), ('4302', '22168475', '1350802128', '0.049812921023645075', None, None, None, None, '2735042'), ('4302', '22168475', '1350802126', '0.049812921023645075', None, None, None, None, '2735042')] time used for this insertion : 0.01377415657043457 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06941771507263184 time spend to save output : 0.014371156692504883 total time spend for step 2 : 0.08378887176513672 step3:velours_tree Wed Apr 9 16:21:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22168475: [{'Carton_brun': 22168552, 'metal': 22168553, 'autre_refus': 22168554, 'environnement': 22168555, 'papier': 22168556, 'mal_croppe': 22168557, 'flou': 22168558, 'Carton_gris': 22168559, 'Teint_Dans_La_Masse': 22168560, 'plastique': 22168561, 'cartonnette': 22168562, 'kraft': 22168563}]} input_args_next_step : {22168475: ()} output_args : {22168475: [{'Carton_brun': 22168552, 'metal': 22168553, 'autre_refus': 22168554, 'environnement': 22168555, 'papier': 22168556, 'mal_croppe': 22168557, 'flou': 22168558, 'Carton_gris': 22168559, 'Teint_Dans_La_Masse': 22168560, 'plastique': 22168561, 'cartonnette': 22168562, 'kraft': 22168563}]} args : 22168475 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 : ({'Carton_brun': 22168552, 'metal': 22168553, 'autre_refus': 22168554, 'environnement': 22168555, 'papier': 22168556, 'mal_croppe': 22168557, 'flou': 22168558, 'Carton_gris': 22168559, 'Teint_Dans_La_Masse': 22168560, 'plastique': 22168561, 'cartonnette': 22168562, 'kraft': 22168563},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22168475) 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([22168475]) 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.3661534786224365 time spend to save output : 5.8650970458984375e-05 total time spend for step 3 : 0.3662121295928955 step4:send_mail_cod Wed Apr 9 16:21:01 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 : {1350802322: ('0.049812921023645075',), 1350802318: ('0.049812921023645075',), 1350802307: ('0.049812921023645075',), 1350802254: ('0.049812921023645075',), 1350802248: ('0.049812921023645075',), 1350802242: ('0.049812921023645075',), 1350802237: ('0.049812921023645075',), 1350802128: ('0.049812921023645075',), 1350802126: ('0.049812921023645075',)} input_args_next_step : {1350802322: ()} output_args : {1350802322: ('0.049812921023645075',), 1350802318: ('0.049812921023645075',), 1350802307: ('0.049812921023645075',), 1350802254: ('0.049812921023645075',), 1350802248: ('0.049812921023645075',), 1350802242: ('0.049812921023645075',), 1350802237: ('0.049812921023645075',), 1350802128: ('0.049812921023645075',), 1350802126: ('0.049812921023645075',)} args : 1350802322 depend.output_id : 0 input_args_next_step : {1350802322: ('0.049812921023645075',), 1350802318: ()} output_args : {1350802322: ('0.049812921023645075',), 1350802318: ('0.049812921023645075',), 1350802307: ('0.049812921023645075',), 1350802254: ('0.049812921023645075',), 1350802248: ('0.049812921023645075',), 1350802242: ('0.049812921023645075',), 1350802237: ('0.049812921023645075',), 1350802128: ('0.049812921023645075',), 1350802126: ('0.049812921023645075',)} args : 1350802318 depend.output_id : 0 input_args_next_step : {1350802322: ('0.049812921023645075',), 1350802318: ('0.049812921023645075',), 1350802307: ()} output_args : {1350802322: ('0.049812921023645075',), 1350802318: ('0.049812921023645075',), 1350802307: ('0.049812921023645075',), 1350802254: ('0.049812921023645075',), 1350802248: ('0.049812921023645075',), 1350802242: ('0.049812921023645075',), 1350802237: ('0.049812921023645075',), 1350802128: ('0.049812921023645075',), 1350802126: ('0.049812921023645075',)} args : 1350802307 depend.output_id : 0 input_args_next_step : {1350802322: ('0.049812921023645075',), 1350802318: ('0.049812921023645075',), 1350802307: ('0.049812921023645075',), 1350802254: ()} output_args : {1350802322: ('0.049812921023645075',), 1350802318: ('0.049812921023645075',), 1350802307: ('0.049812921023645075',), 1350802254: ('0.049812921023645075',), 1350802248: ('0.049812921023645075',), 1350802242: ('0.049812921023645075',), 1350802237: ('0.049812921023645075',), 1350802128: ('0.049812921023645075',), 1350802126: ('0.049812921023645075',)} args : 1350802254 depend.output_id : 0 input_args_next_step : {1350802322: ('0.049812921023645075',), 1350802318: ('0.049812921023645075',), 1350802307: ('0.049812921023645075',), 1350802254: ('0.049812921023645075',), 1350802248: ()} output_args : {1350802322: ('0.049812921023645075',), 1350802318: ('0.049812921023645075',), 1350802307: ('0.049812921023645075',), 1350802254: ('0.049812921023645075',), 1350802248: ('0.049812921023645075',), 1350802242: ('0.049812921023645075',), 1350802237: ('0.049812921023645075',), 1350802128: ('0.049812921023645075',), 1350802126: ('0.049812921023645075',)} args : 1350802248 depend.output_id : 0 input_args_next_step : {1350802322: ('0.049812921023645075',), 1350802318: ('0.049812921023645075',), 1350802307: ('0.049812921023645075',), 1350802254: ('0.049812921023645075',), 1350802248: ('0.049812921023645075',), 1350802242: ()} output_args : {1350802322: ('0.049812921023645075',), 1350802318: ('0.049812921023645075',), 1350802307: ('0.049812921023645075',), 1350802254: ('0.049812921023645075',), 1350802248: ('0.049812921023645075',), 1350802242: ('0.049812921023645075',), 1350802237: ('0.049812921023645075',), 1350802128: ('0.049812921023645075',), 1350802126: ('0.049812921023645075',)} args : 1350802242 depend.output_id : 0 input_args_next_step : {1350802322: ('0.049812921023645075',), 1350802318: ('0.049812921023645075',), 1350802307: ('0.049812921023645075',), 1350802254: ('0.049812921023645075',), 1350802248: ('0.049812921023645075',), 1350802242: ('0.049812921023645075',), 1350802237: ()} output_args : {1350802322: ('0.049812921023645075',), 1350802318: ('0.049812921023645075',), 1350802307: ('0.049812921023645075',), 1350802254: ('0.049812921023645075',), 1350802248: ('0.049812921023645075',), 1350802242: ('0.049812921023645075',), 1350802237: ('0.049812921023645075',), 1350802128: ('0.049812921023645075',), 1350802126: ('0.049812921023645075',)} args : 1350802237 depend.output_id : 0 input_args_next_step : {1350802322: ('0.049812921023645075',), 1350802318: ('0.049812921023645075',), 1350802307: ('0.049812921023645075',), 1350802254: ('0.049812921023645075',), 1350802248: ('0.049812921023645075',), 1350802242: ('0.049812921023645075',), 1350802237: ('0.049812921023645075',), 1350802128: ()} output_args : {1350802322: ('0.049812921023645075',), 1350802318: ('0.049812921023645075',), 1350802307: ('0.049812921023645075',), 1350802254: ('0.049812921023645075',), 1350802248: ('0.049812921023645075',), 1350802242: ('0.049812921023645075',), 1350802237: ('0.049812921023645075',), 1350802128: ('0.049812921023645075',), 1350802126: ('0.049812921023645075',)} args : 1350802128 depend.output_id : 0 input_args_next_step : {1350802322: ('0.049812921023645075',), 1350802318: ('0.049812921023645075',), 1350802307: ('0.049812921023645075',), 1350802254: ('0.049812921023645075',), 1350802248: ('0.049812921023645075',), 1350802242: ('0.049812921023645075',), 1350802237: ('0.049812921023645075',), 1350802128: ('0.049812921023645075',), 1350802126: ()} output_args : {1350802322: ('0.049812921023645075',), 1350802318: ('0.049812921023645075',), 1350802307: ('0.049812921023645075',), 1350802254: ('0.049812921023645075',), 1350802248: ('0.049812921023645075',), 1350802242: ('0.049812921023645075',), 1350802237: ('0.049812921023645075',), 1350802128: ('0.049812921023645075',), 1350802126: ('0.049812921023645075',)} args : 1350802126 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 : {22168475: [{'Carton_brun': 22168552, 'metal': 22168553, 'autre_refus': 22168554, 'environnement': 22168555, 'papier': 22168556, 'mal_croppe': 22168557, 'flou': 22168558, 'Carton_gris': 22168559, 'Teint_Dans_La_Masse': 22168560, 'plastique': 22168561, 'cartonnette': 22168562, 'kraft': 22168563}]} input_args_next_step : {1350802322: ('0.049812921023645075',), 1350802318: ('0.049812921023645075',), 1350802307: ('0.049812921023645075',), 1350802254: ('0.049812921023645075',), 1350802248: ('0.049812921023645075',), 1350802242: ('0.049812921023645075',), 1350802237: ('0.049812921023645075',), 1350802128: ('0.049812921023645075',), 1350802126: ('0.049812921023645075',), 22168475: ()} output_args : {22168475: [{'Carton_brun': 22168552, 'metal': 22168553, 'autre_refus': 22168554, 'environnement': 22168555, 'papier': 22168556, 'mal_croppe': 22168557, 'flou': 22168558, 'Carton_gris': 22168559, 'Teint_Dans_La_Masse': 22168560, 'plastique': 22168561, 'cartonnette': 22168562, 'kraft': 22168563}]} args : 22168475 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 :10, first value : ('0.049812921023645075',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22168475) 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 (1350802322,1350802318,1350802307,1350802254,1350802248,1350802242,1350802237,1350802128,1350802126) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350802126 begin to download photo : 1350802237 begin to download photo : 1350802248 begin to download photo : 1350802307 begin to download photo : 1350802322 download finish for photo 1350802248 begin to download photo : 1350802254 download finish for photo 1350802126 begin to download photo : 1350802128 download finish for photo 1350802322 download finish for photo 1350802237 begin to download photo : 1350802242 download finish for photo 1350802307 begin to download photo : 1350802318 download finish for photo 1350802242 download finish for photo 1350802254 download finish for photo 1350802318 download finish for photo 1350802128 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette221685531744208461/ length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P22168475_09-04-2025_16_21_01.pdf 22168553 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=22168553 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221685531744208461 22168554 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=22168554 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350802281: '1744208365_2989563_1350801955_e2ad6c0411a6a76e233c276d59b6fba9_rle_crop_3751686845_0.png', 1350802302: '1744208354_2886565_1350802027_cb1aa6ac1fc41a282b8ac79b8fc4ce04_rle_crop_3751686859_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/d5f1d271350554a17907fcf4102d2718_97094670.png change filename to text .imagette221685541744208461/ imagette221685541744208461/1744208365_2989563_1350801955_e2ad6c0411a6a76e233c276d59b6fba9_rle_crop_3751686845_0.png.png imagette221685541744208461/1744208354_2886565_1350802027_cb1aa6ac1fc41a282b8ac79b8fc4ce04_rle_crop_3751686859_0.png.png imagette221685571744208461/ imagette221685581744208461/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/38be310c19ec2cc1b50e8758d2e634f7_81752451.png imagette221685541744208461 22168557 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=22168557 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221685571744208461 22168558 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=22168558 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221685581744208461 22168561 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=22168561 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350802316: '1744208354_2886565_1350801828_948bd33c3ddd157c38e415aaff1ae26f_rle_crop_3751686873_0.png'} change filename to text .imagette221685611744208461/ imagette221685611744208461/1744208354_2886565_1350801828_948bd33c3ddd157c38e415aaff1ae26f_rle_crop_3751686873_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/2bc9a7d05c8cba454beedd1925df1549_22007674.png imagette221685611744208461 22168562 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=22168562 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350802283: '1744208365_2989563_1350801973_d9ff7489fd588fee132bd0bd83371aa5_rle_crop_3751686826_0.png', 1350802308: '1744208354_2886565_1350801828_948bd33c3ddd157c38e415aaff1ae26f_rle_crop_3751686870_0.png', 1350802309: '1744208354_2886565_1350801813_bd334fe805d79bc34a8b4a7f393944e4_rle_crop_3751686911_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/d776b90749dde2f7604546d8e2ee2b68_33541278.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/48caf42b3154eee7553ac9d7f867fd72_61195255.png change filename to text .imagette221685621744208461/ imagette221685621744208461/1744208354_2886565_1350801828_948bd33c3ddd157c38e415aaff1ae26f_rle_crop_3751686870_0.png.png imagette221685621744208461/1744208354_2886565_1350801813_bd334fe805d79bc34a8b4a7f393944e4_rle_crop_3751686911_0.png.png imagette221685621744208461/1744208365_2989563_1350801973_d9ff7489fd588fee132bd0bd83371aa5_rle_crop_3751686826_0.png.png imagette221685631744208461/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/c6e71b2d16cd59aa7de50ae75bae5606_99108876.png imagette221685621744208461 22168563 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=22168563 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221685631744208461 22168552 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=22168552 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350802285: '1744208365_2989563_1350802013_4448074c548ea5b9ae1e4747ded330e1_rle_crop_3751686804_0.png', 1350802286: '1744208365_2989563_1350802013_4448074c548ea5b9ae1e4747ded330e1_rle_crop_3751686799_0.png', 1350802287: '1744208365_2989563_1350801997_8fe8770ee088afbdd64c00d7b71a1cab_rle_crop_3751686816_0.png', 1350802288: '1744208365_2989563_1350801973_d9ff7489fd588fee132bd0bd83371aa5_rle_crop_3751686835_0.png', 1350802290: '1744208365_2989563_1350801973_d9ff7489fd588fee132bd0bd83371aa5_rle_crop_3751686829_0.png', 1350802291: '1744208365_2989563_1350801955_e2ad6c0411a6a76e233c276d59b6fba9_rle_crop_3751686848_0.png', 1350802315: '1744208354_2886565_1350801818_8096d4b29e06fe230fbc2a08a5238f59_rle_crop_3751686895_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/793aecafb6aba2f3cb2f7bd5d3b5d70e_1659040.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/acbfe0dd3a926bc4187b78db679983b2_81071668.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/21270058c5293e96a01a508d1221c7d3_1327797.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/3dfed67579dc01d6da01aac1d430900b_76131632.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/1c0e6147759108421700b5eee35d5772_90382708.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/a908b7ec0ee85ff8aa7709712a0bc7c2_68281078.png change filename to text .imagette221685521744208461/ imagette221685521744208461/1744208354_2886565_1350801818_8096d4b29e06fe230fbc2a08a5238f59_rle_crop_3751686895_0.png.png imagette221685521744208461/1744208365_2989563_1350801973_d9ff7489fd588fee132bd0bd83371aa5_rle_crop_3751686829_0.png.png imagette221685521744208461/1744208365_2989563_1350801955_e2ad6c0411a6a76e233c276d59b6fba9_rle_crop_3751686848_0.png.png imagette221685521744208461/1744208365_2989563_1350801973_d9ff7489fd588fee132bd0bd83371aa5_rle_crop_3751686835_0.png.png imagette221685521744208461/1744208365_2989563_1350802013_4448074c548ea5b9ae1e4747ded330e1_rle_crop_3751686799_0.png.png imagette221685521744208461/1744208365_2989563_1350802013_4448074c548ea5b9ae1e4747ded330e1_rle_crop_3751686804_0.png.png imagette221685521744208461/1744208365_2989563_1350801997_8fe8770ee088afbdd64c00d7b71a1cab_rle_crop_3751686816_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/1394d129c0891c9efcd281a723450e56_39851755.png imagette221685521744208461 22168559 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=22168559 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350802304: '1744208354_2886565_1350801823_5a96ed587917009d2e70e4171ac6288c_rle_crop_3751686879_0.png', 1350802305: '1744208354_2886565_1350801823_5a96ed587917009d2e70e4171ac6288c_rle_crop_3751686876_0.png', 1350802306: '1744208354_2886565_1350801818_8096d4b29e06fe230fbc2a08a5238f59_rle_crop_3751686892_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/98743b3a736d308b76b1ca9ec9d56bed_85434422.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/82ff1e6c0d4243638f0f3632dbcf28a1_66726518.png change filename to text .imagette221685591744208462/ imagette221685591744208462/1744208354_2886565_1350801823_5a96ed587917009d2e70e4171ac6288c_rle_crop_3751686876_0.png.png imagette221685591744208462/1744208354_2886565_1350801818_8096d4b29e06fe230fbc2a08a5238f59_rle_crop_3751686892_0.png.png imagette221685591744208462/1744208354_2886565_1350801823_5a96ed587917009d2e70e4171ac6288c_rle_crop_3751686879_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/1b997425f145074143ac76d39a0a3de2_95140022.png imagette221685591744208462 22168560 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=22168560 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350802279: '1744208365_2989563_1350801955_e2ad6c0411a6a76e233c276d59b6fba9_rle_crop_3751686849_0.png', 1350802295: '1744208354_2886565_1350801818_8096d4b29e06fe230fbc2a08a5238f59_rle_crop_3751686901_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/3e32651ea05850beb57088ce5202e309_3339376.png change filename to text .imagette221685601744208462/ imagette221685601744208462/1744208365_2989563_1350801955_e2ad6c0411a6a76e233c276d59b6fba9_rle_crop_3751686849_0.png.png imagette221685601744208462/1744208354_2886565_1350801818_8096d4b29e06fe230fbc2a08a5238f59_rle_crop_3751686901_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/7823afe21418b5cd91787a028f42e831_76843922.png imagette221685601744208462 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22168475 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22168564,22168565,22168566,22168567,22168568,22168569,22168570,22168571,22168572,22168573,22168574,22168575?tags=Carton_brun,metal,autre_refus,environnement,papier,mal_croppe,flou,Carton_gris,Teint_Dans_La_Masse,plastique,cartonnette,kraft your option no_mail is active, we will not send the real mail to your client args[1350802322] : ('0.049812921023645075',) no score found for photo 1350802322 We are sending mail with results at report@fotonower.com args[1350802318] : ('0.049812921023645075',) no score found for photo 1350802318 We are sending mail with results at report@fotonower.com args[1350802307] : ('0.049812921023645075',) no score found for photo 1350802307 We are sending mail with results at report@fotonower.com args[1350802254] : ('0.049812921023645075',) no score found for photo 1350802254 We are sending mail with results at report@fotonower.com args[1350802248] : ('0.049812921023645075',) no score found for photo 1350802248 We are sending mail with results at report@fotonower.com args[1350802242] : ('0.049812921023645075',) no score found for photo 1350802242 We are sending mail with results at report@fotonower.com args[1350802237] : ('0.049812921023645075',) no score found for photo 1350802237 We are sending mail with results at report@fotonower.com args[1350802128] : ('0.049812921023645075',) no score found for photo 1350802128 We are sending mail with results at report@fotonower.com args[1350802126] : ('0.049812921023645075',) no score found for photo 1350802126 We are sending mail with results at report@fotonower.com refus_total : 0.049812921023645075 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=22168475 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_P22168475_09-04-2025_16_21_01.pdf results_Auto_P22168475_09-04-2025_16_21_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22168475_09-04-2025_16_21_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22168475','results_Auto_P22168475_09-04-2025_16_21_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22168475_09-04-2025_16_21_01.pdf','pdf','','0.13','0.049812921023645075') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22168475]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350802322, 1350802318, 1350802307, 1350802254, 1350802248, 1350802242, 1350802237, 1350802128, 1350802126] map_info['map_portfolio_photo'] : {22168475: [1350802322, 1350802318, 1350802307, 1350802254, 1350802248, 1350802242, 1350802237, 1350802128, 1350802126, 1350802027, 1350802013, 1350801997, 1350801973, 1350801955, 1350801828, 1350801823, 1350801818, 1350801813]} final : False mtd_id 4302 list_pids : [1350802322, 1350802318, 1350802307, 1350802254, 1350802248, 1350802242, 1350802237, 1350802128, 1350802126] 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, '2735042') ('4302', '22168475', '1350802322', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802318', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802307', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802254', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802248', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802242', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802237', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802128', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802126', None, None, None, None, None, '2735042') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '22168475', '1350802322', None, None, None, None, None, '2735042'), ('4302', '22168475', '1350802318', None, None, None, None, None, '2735042'), ('4302', '22168475', '1350802307', None, None, None, None, None, '2735042'), ('4302', '22168475', '1350802254', None, None, None, None, None, '2735042'), ('4302', '22168475', '1350802248', None, None, None, None, None, '2735042'), ('4302', '22168475', '1350802242', None, None, None, None, None, '2735042'), ('4302', '22168475', '1350802237', None, None, None, None, None, '2735042'), ('4302', '22168475', '1350802128', None, None, None, None, None, '2735042'), ('4302', '22168475', '1350802126', None, None, None, None, None, '2735042')] time used for this insertion : 0.01264810562133789 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.2754101753234863 time spend to save output : 0.013091325759887695 total time spend for step 4 : 2.288501501083374 step5:split_time_score Wed Apr 9 16:21:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22168475'] 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 : [('22168475',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22168475) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350802322: {'path': 'temp/1744208461_1867626_1350802322_a6263c5d6c862330f36e027be9336a8a.jpg', 'extension': 'jpg'}, 1350802237: {'path': 'temp/1744208461_1867626_1350802237_926280ba319961a3acad58269b20becd.jpg', 'extension': 'jpg'}, 1350802242: {'path': 'temp/1744208461_1867626_1350802242_ccb636d1ebcc495fa8358d114bed8533.jpg', 'extension': 'jpg'}, 1350802248: {'path': 'temp/1744208461_1867626_1350802248_345f494bb6baf9e9c2dbf8abacb84526.jpg', 'extension': 'jpg'}, 1350802254: {'path': 'temp/1744208461_1867626_1350802254_aa4bb11ea8c629a9a1e455f819f2c865.jpg', 'extension': 'jpg'}, 1350802307: {'path': 'temp/1744208461_1867626_1350802307_7f4134ed73769ae5670f60bdb9ffa249.jpg', 'extension': 'jpg'}, 1350802318: {'path': 'temp/1744208461_1867626_1350802318_e6070378c8dce416a403f6ea2c017cf3.jpg', 'extension': 'jpg'}, 1350802126: {'path': 'temp/1744208461_1867626_1350802126_099793de140f9d6798e9c128023f2e2f.jpg', 'extension': 'jpg'}, 1350802128: {'path': 'temp/1744208461_1867626_1350802128_4ca8beeba3181f8ddd16cc747ab75335.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 = 22168475; (('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 = 22168475 group by h (('16', 18),) 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=22168475 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 (22168475) 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 (22168475) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 09042025 22168475 Nombre de photos uploadées : 18 / 23040 (0%) 09042025 22168475 Nombre de photos taguées (types de déchets): 0 / 18 (0%) 09042025 22168475 Nombre de photos taguées (volume) : 0 / 18 (0%) [{'photo_id': 1350801828, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/948bd33c3ddd157c38e415aaff1ae26f.jpg', 'username': None, 'uploaded_at': 1744208167, 'text': 'image_09042025_16_15_04_10150.jpg'}, {'photo_id': 1350801823, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/5a96ed587917009d2e70e4171ac6288c.jpg', 'username': None, 'uploaded_at': 1744208167, 'text': 'image_09042025_16_15_23_10141.jpg'}, {'photo_id': 1350801818, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/8096d4b29e06fe230fbc2a08a5238f59.jpg', 'username': None, 'uploaded_at': 1744208167, 'text': 'image_09042025_16_15_34_10147.jpg'}, {'photo_id': 1350801813, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/9/bd334fe805d79bc34a8b4a7f393944e4.jpg', 'username': None, 'uploaded_at': 1744208167, 'text': 'image_09042025_16_15_44_10141.jpg'}] 0 [] elapsed_time : load_data_split_time_score 5.0067901611328125e-06 elapsed_time : order_list_meta_photo_and_scores 1.3828277587890625e-05 ?????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0010013580322265625 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22168475, '2025-04-09' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1725367,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.023998737335205078 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= 1725367 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1725367, 'dashboard_run_id': 1734245, 'mtr_portfolio_id': 22166636, 'dashboard_result_id': 9947570, '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_P22166636_09-04-2025_15_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22166639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22166640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22166641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22166642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22166643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22166644, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22166645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22166646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22166647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22166648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22166649, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22166650, 'pht': 3726}}"}, {'dashboat_entry_day': 1725367, 'dashboard_run_id': 1734245, 'mtr_portfolio_id': 22167333, 'dashboard_result_id': 9947571, '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_P22167333_09-04-2025_16_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22167337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167340, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167343, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167344, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167348, 'pht': 3726}}"}, {'dashboat_entry_day': 1725367, 'dashboard_run_id': 1734245, 'mtr_portfolio_id': 22167941, 'dashboard_result_id': 9947572, '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_P22167941_09-04-2025_16_19_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167948, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22167950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167952, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167955, 'pht': 3726}}"}, {'dashboat_entry_day': 1725367, 'dashboard_run_id': 1734245, 'mtr_portfolio_id': 22168475, 'dashboard_result_id': 9947573, '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_P22168475_09-04-2025_16_19_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22168552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22168553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22168554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22168555, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22168556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22168557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22168558, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22168559, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22168560, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22168561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22168562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22168563, '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 = 22166636 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': 2734893, 'mtr_portfolio_id': 22166636, 'created_at': datetime.datetime(2025, 4, 9, 15, 46, 58), 'result': '0.035680221660550814', 'result_long': None, 'result_double': None}] Qualite : 0.035680221660550814 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22166636 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22166636_09-04-2025_15_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22166636 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_P22166636_09-04-2025_15_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22166639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22166640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22166641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22166642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22166643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22166644, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22166645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22166646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22166647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22166648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22166649, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22166650, 'pht': 3726}}" where mtr_portfolio_id = 22166636 and dashboard_run_id = 1734245 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`=22166636 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9947570, 0.035680221660550814, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22166636_09-04-2025_15_46_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22166639, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22166640, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22166641, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22166642, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22166643, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22166644, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22166645, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22166646, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22166647, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22166648, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22166649, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22166650, '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 = 22167333 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': 2734942, 'mtr_portfolio_id': 22167333, 'created_at': datetime.datetime(2025, 4, 9, 16, 2, 58), 'result': '0.04610585789001337', 'result_long': None, 'result_double': None}] Qualite : 0.04610585789001337 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22167333 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22167333_09-04-2025_16_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22167333 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_P22167333_09-04-2025_16_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22167337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167340, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167343, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167344, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167348, 'pht': 3726}}" where mtr_portfolio_id = 22167333 and dashboard_run_id = 1734245 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`=22167333 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9947571, 0.04610585789001337, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22167333_09-04-2025_16_02_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22167337, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167338, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167340, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167341, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167342, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167343, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167344, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167346, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167347, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167348, '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 = 22167941 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': 2735002, 'mtr_portfolio_id': 22167941, 'created_at': datetime.datetime(2025, 4, 9, 16, 19, 2), 'result': '0.0473829788016905', 'result_long': None, 'result_double': None}] Qualite : 0.0473829788016905 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22167941 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22167941_09-04-2025_16_19_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22167941 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_P22167941_09-04-2025_16_19_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167948, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22167950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167952, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167955, 'pht': 3726}}" where mtr_portfolio_id = 22167941 and dashboard_run_id = 1734245 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`=22167941 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9947572, 0.0473829788016905, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22167941_09-04-2025_16_19_03.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22167944, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22167945, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22167946, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22167947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22167948, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22167949, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22167950, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22167951, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22167952, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22167953, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22167954, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22167955, '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 = 22168475 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': 2735042, 'mtr_portfolio_id': 22168475, 'created_at': datetime.datetime(2025, 4, 9, 16, 21), 'result': '0.049812921023645075', 'result_long': None, 'result_double': None}] Qualite : 0.049812921023645075 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22168475 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22168475_09-04-2025_16_21_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22168475 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_P22168475_09-04-2025_16_21_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22168552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22168553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22168554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22168555, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22168556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22168557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22168558, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22168559, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22168560, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22168561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22168562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22168563, 'pht': 3726}}" where mtr_portfolio_id = 22168475 and dashboard_run_id = 1734245 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`=22168475 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9947573, 0.049812921023645075, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22168475_09-04-2025_16_21_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22168552, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22168553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22168554, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22168555, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22168556, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22168557, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22168558, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22168559, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22168560, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22168561, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22168562, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22168563, '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 (22166636,22167333,22167941,22168475) result : ((1350795142,), (1350795179,), (1350795182,), (1350795193,), (1350795338,), (1350795352,), (1350795388,), (1350795424,), (1350795478,), (1350795482,), (1350795493,), (1350795504,), (1350795512,), (1350795660,), (1350795664,), (1350795669,), (1350795673,), (1350795676,), (1350795680,), (1350795707,), (1350795711,), (1350795715,), (1350795723,), (1350795852,), (1350795870,), (1350795872,), (1350795877,), (1350796026,), (1350796030,), (1350796042,), (1350796046,), (1350796053,), (1350796057,), (1350796332,), (1350796343,), (1350796489,), (1350796501,), (1350796509,), (1350796515,), (1350796530,), (1350796684,), (1350796688,), (1350796734,), (1350796804,), (1350796807,), (1350796811,), (1350796816,), (1350796819,), (1350796833,), (1350796879,), (1350796888,), (1350796894,), (1350796899,), (1350796947,), (1350796949,), (1350796952,), (1350796956,), (1350796960,), (1350797008,), (1350797011,), (1350797015,), (1350797019,), (1350797023,), (1350797026,), (1350797089,), (1350797078,), (1350797082,), (1350797086,), (1350797323,), (1350797327,), (1350797330,), (1350797334,), (1350797359,), (1350797363,), (1350797366,), (1350797374,), (1350797442,), (1350797544,), (1350797547,), (1350797550,), (1350797556,), (1350797561,), (1350797574,), (1350797628,), (1350797641,), (1350797646,), (1350797702,), (1350797730,), (1350797755,), (1350797759,), (1350797762,), (1350797794,), (1350797795,), (1350797804,), (1350797812,), (1350797819,), (1350797850,), (1350797852,), (1350797856,), (1350797909,), (1350797959,), (1350798033,), (1350798339,), (1350798342,), (1350798355,), (1350798362,), (1350798364,), (1350798390,), (1350798480,), (1350798481,), (1350798487,), (1350798492,), (1350798504,), (1350798604,), (1350798688,), (1350798701,), (1350798714,), (1350798731,), (1350798791,), (1350798824,), (1350798855,), (1350798876,), (1350799194,), (1350799202,), (1350799211,), (1350799218,), (1350799228,), (1350799237,), (1350799401,), (1350799310,), (1350799335,), (1350799360,), (1350799387,), (1350799669,), (1350799696,), (1350799734,), (1350799754,), (1350799826,), (1350799830,), (1350799921,), (1350799950,), (1350799978,), (1350800428,), (1350800432,), (1350800455,), (1350800601,), (1350800653,), (1350800657,), (1350800661,), (1350800667,), (1350800669,), (1350800673,), (1350800739,), (1350800743,), (1350800746,), (1350800772,), (1350800780,), (1350801028,), (1350801044,), (1350801050,), (1350801057,), (1350801220,), (1350801285,), (1350801334,), (1350801369,), (1350801400,), (1350801553,), (1350801560,), (1350801566,), (1350801585,), (1350801590,), (1350801600,), (1350801680,), (1350801685,), (1350801700,), (1350801710,), (1350801717,), (1350801757,), (1350801764,), (1350801771,), (1350801777,), (1350801833,), (1350801813,), (1350801818,), (1350801823,), (1350801828,), (1350801955,), (1350801973,), (1350801997,), (1350802013,), (1350802027,), (1350802126,), (1350802128,), (1350802237,), (1350802242,), (1350802248,), (1350802254,), (1350802307,), (1350802318,), (1350802322,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'09042025': {'nb_upload': 18, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22168475]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350802322, 1350802318, 1350802307, 1350802254, 1350802248, 1350802242, 1350802237, 1350802128, 1350802126] map_info['map_portfolio_photo'] : {22168475: [1350802322, 1350802318, 1350802307, 1350802254, 1350802248, 1350802242, 1350802237, 1350802128, 1350802126, 1350802027, 1350802013, 1350801997, 1350801973, 1350801955, 1350801828, 1350801823, 1350801818, 1350801813]} final : True mtd_id 4302 list_pids : [1350802322, 1350802318, 1350802307, 1350802254, 1350802248, 1350802242, 1350802237, 1350802128, 1350802126] Looping around the photos to save general results len do output : 1 /22168475Didn'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, '2735042') ('4302', '22168475', '1350802322', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802318', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802307', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802254', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802248', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802242', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802237', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802128', None, None, None, None, None, '2735042') ('4302', None, None, None, None, None, None, None, '2735042') ('4302', '22168475', '1350802126', None, None, None, None, None, '2735042') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '22168475', 'None', None, None, None, None, '2735042'), ('4302', '22168475', '1350802322', None, None, None, None, None, '2735042'), ('4302', '22168475', '1350802318', None, None, None, None, None, '2735042'), ('4302', '22168475', '1350802307', None, None, None, None, None, '2735042'), ('4302', '22168475', '1350802254', None, None, None, None, None, '2735042'), ('4302', '22168475', '1350802248', None, None, None, None, None, '2735042'), ('4302', '22168475', '1350802242', None, None, None, None, None, '2735042'), ('4302', '22168475', '1350802237', None, None, None, None, None, '2735042'), ('4302', '22168475', '1350802128', None, None, None, None, None, '2735042'), ('4302', '22168475', '1350802126', None, None, None, None, None, '2735042')] time used for this insertion : 0.015642166137695312 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3603076934814453 time spend to save output : 0.015892982482910156 total time spend for step 5 : 0.37620067596435547 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 (2735042) 2.22user 2.26system 0:08.48elapsed 52%CPU (0avgtext+0avgdata 159308maxresident)k 13784inputs+6816outputs (118major+74632minor)pagefaults 0swaps