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 : 2435902 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 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 (1353934500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22454789 , 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=22454771 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 (22454789) result : ((1353934628,), (1353934642,), (1353934955,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22454771) result : ((1353934356,), (1353934359,), (1353934364,), (1353934415,), (1353934417,), (1353934419,), (1353934422,), (1353934424,), (1353934428,), (1353934500,), (1353934508,), (1353934527,), (1353934604,), (1353934608,), (1353934611,), (1353934615,), (1353934618,), (1353934622,), (1353934687,), (1353934693,), (1353934696,), (1353934701,), (1353934716,), (1353934719,), (1353934726,), (1353934732,), (1353934744,), (1353934762,), (1353934831,), (1353934838,), (1353934841,), (1353934844,), (1353934847,), (1353934850,), (1353934901,), (1353934904,), (1353934907,)) 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 (1353934500) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22454790 , 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=22454771 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_brun' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22454790) result : ((1353934629,), (1353934630,), (1353934646,), (1353934647,), (1353934648,), (1353934649,), (1353934957,), (1353934959,), (1353934960,), (1353934961,), (1353934962,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22454771) result : ((1353934356,), (1353934359,), (1353934364,), (1353934415,), (1353934417,), (1353934419,), (1353934422,), (1353934424,), (1353934428,), (1353934500,), (1353934508,), (1353934527,), (1353934604,), (1353934608,), (1353934611,), (1353934615,), (1353934618,), (1353934622,), (1353934687,), (1353934693,), (1353934696,), (1353934701,), (1353934716,), (1353934719,), (1353934726,), (1353934732,), (1353934744,), (1353934762,), (1353934831,), (1353934838,), (1353934841,), (1353934844,), (1353934847,), (1353934850,), (1353934901,), (1353934904,), (1353934907,)) 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 (1353934500) and cspi.crop_hashtag_id = chi.id; 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`=22454771 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','mal_croppe','Carton_gris','cartonnette','Teint_Dans_La_Masse','flou','Carton_brun','papier','metal','kraft','autre_refus')) 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`=22454771 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','plastique','mal_croppe','Carton_gris','cartonnette','Teint_Dans_La_Masse','flou','Carton_brun','papier','metal','kraft','autre_refus')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 22454771, 'sub_port_id': 22454791, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898695, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 30)}, 'plastique': {'main_port_id': 22454771, 'sub_port_id': 22454792, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898696, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 30)}, 'environnement': {'main_port_id': 22454771, 'sub_port_id': 22454793, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898697, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 30)}, 'Carton_gris': {'main_port_id': 22454771, 'sub_port_id': 22454794, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898698, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 30)}, 'metal': {'main_port_id': 22454771, 'sub_port_id': 22454795, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898699, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 22454771, 'sub_port_id': 22454796, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898700, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 30)}, 'kraft': {'main_port_id': 22454771, 'sub_port_id': 22454797, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898701, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 30)}, 'mal_croppe': {'main_port_id': 22454771, 'sub_port_id': 22454798, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898702, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 30)}, 'papier': {'main_port_id': 22454771, 'sub_port_id': 22454799, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898703, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 30)}, 'autre_refus': {'main_port_id': 22454771, 'sub_port_id': 22454800, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898704, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 30)}, 'cartonnette': {'main_port_id': 22454771, 'sub_port_id': 22454801, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898705, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 19, 30), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 30)}, 'Carton_brun': {'main_port_id': 22454771, 'sub_port_id': 22454802, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14898706, 'last_updated_at': datetime.datetime(2025, 4, 28, 15, 22, 57), 'last_updated_at_desc': datetime.datetime(2025, 4, 28, 15, 22, 57), 'last_updated_at_asc': datetime.datetime(2025, 4, 28, 15, 19, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22454791,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22454779 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22454792,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22454780 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22454793,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22454781 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22454794,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22454782 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22454795,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22454783 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22454796,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22454784 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22454797,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22454785 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22454798,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22454786 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22454799,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22454787 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22454800,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22454788 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22454801,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22454789 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22454802,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22454790 lien utilise dans velours : https://www.fotonower.com/velours/22454791,22454792,22454793,22454794,22454795,22454796,22454797,22454798,22454799,22454800,22454801,22454802?tags=flou,plastique,environnement,Carton_gris,metal,Teint_Dans_La_Masse,kraft,mal_croppe,papier,autre_refus,cartonnette,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22454771]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1353934907, 1353934904, 1353934901, 1353934850, 1353934847, 1353934844, 1353934841, 1353934838, 1353934831] map_info['map_portfolio_photo'] : {22454771: [1353934907, 1353934904, 1353934901, 1353934850, 1353934847, 1353934844, 1353934841, 1353934838, 1353934831, 1353934762, 1353934744, 1353934732, 1353934726, 1353934719, 1353934716, 1353934701, 1353934696, 1353934693, 1353934687, 1353934622, 1353934618, 1353934615, 1353934611, 1353934608, 1353934604, 1353934527, 1353934508, 1353934500, 1353934428, 1353934424, 1353934422, 1353934419, 1353934417, 1353934415, 1353934364, 1353934359, 1353934356]} final : False mtd_id 4302 list_pids : [1353934907, 1353934904, 1353934901, 1353934850, 1353934847, 1353934844, 1353934841, 1353934838, 1353934831] Looping around the photos to save general results len do output : 1 /22454771. 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, '2764642') ('4302', '22454771', '1353934907', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934904', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934901', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934850', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934847', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934844', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934841', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934838', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934831', None, None, None, None, None, '2764642') 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, '22454771', "{'flou': 22454779, 'plastique': 22454780, 'environnement': 22454781, 'Carton_gris': 22454782, 'metal': 22454783, 'Teint_Dans_La_Masse': 22454784, 'kraft': 22454785, 'mal_croppe': 22454786, 'papier': 22454787, 'autre_refus': 22454788, 'cartonnette': 22454789, 'Carton_brun': 22454790}", None, None, None, None, '2764642'), ('4302', '22454771', '1353934907', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353934904', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353934901', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353934850', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353934847', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353934844', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353934841', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353934838', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353934831', None, None, None, None, None, '2764642')] time used for this insertion : 0.014771223068237305 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4762561321258545 time spend to save output : 0.01510930061340332 total time spend for step 1 : 0.4913654327392578 step2:final Mon Apr 28 15:24:29 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 (22454771) 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 22454771 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1353934364,1353934359,1353934356,1353934428,1353934424,1353934422,1353934419,1353934417,1353934415,1353934527,1353934508,1353934500,1353934622,1353934618,1353934615,1353934611,1353934608,1353934604,1353934719,1353934716,1353934701,1353934696,1353934693,1353934687,1353934762,1353934744,1353934732,1353934726,1353934850,1353934847,1353934844,1353934841,1353934838,1353934831,1353934907,1353934904,1353934901); 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([22454771]) Inside saveOutput : final : False verbose : True original output for save of step final : {1353934907: ('0.05579093804619444',), 1353934904: ('0.05579093804619444',), 1353934901: ('0.05579093804619444',), 1353934850: ('0.05579093804619444',), 1353934847: ('0.05579093804619444',), 1353934844: ('0.05579093804619444',), 1353934841: ('0.05579093804619444',), 1353934838: ('0.05579093804619444',), 1353934831: ('0.05579093804619444',)} new output for save of step final : {1353934907: ('0.05579093804619444',), 1353934904: ('0.05579093804619444',), 1353934901: ('0.05579093804619444',), 1353934850: ('0.05579093804619444',), 1353934847: ('0.05579093804619444',), 1353934844: ('0.05579093804619444',), 1353934841: ('0.05579093804619444',), 1353934838: ('0.05579093804619444',), 1353934831: ('0.05579093804619444',)} [1353934907, 1353934904, 1353934901, 1353934850, 1353934847, 1353934844, 1353934841, 1353934838, 1353934831] map_info['map_portfolio_photo'] : {22454771: [1353934907, 1353934904, 1353934901, 1353934850, 1353934847, 1353934844, 1353934841, 1353934838, 1353934831, 1353934762, 1353934744, 1353934732, 1353934726, 1353934719, 1353934716, 1353934701, 1353934696, 1353934693, 1353934687, 1353934622, 1353934618, 1353934615, 1353934611, 1353934608, 1353934604, 1353934527, 1353934508, 1353934500, 1353934428, 1353934424, 1353934422, 1353934419, 1353934417, 1353934415, 1353934364, 1353934359, 1353934356]} final : False mtd_id 4302 list_pids : [1353934907, 1353934904, 1353934901, 1353934850, 1353934847, 1353934844, 1353934841, 1353934838, 1353934831] Looping around the photos to save general results len do output : 9 /1353934907.Didn't retrieve data . /1353934904.Didn't retrieve data . /1353934901.Didn't retrieve data . /1353934850.Didn't retrieve data . /1353934847.Didn't retrieve data . /1353934844.Didn't retrieve data . /1353934841.Didn't retrieve data . /1353934838.Didn't retrieve data . /1353934831.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, '2764642') ('4302', '22454771', '1353934907', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934904', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934901', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934850', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934847', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934844', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934841', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934838', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934831', None, None, None, None, None, '2764642') 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', '22454771', '1353934907', '0.05579093804619444', None, None, None, None, '2764642'), ('4302', '22454771', '1353934904', '0.05579093804619444', None, None, None, None, '2764642'), ('4302', '22454771', '1353934901', '0.05579093804619444', None, None, None, None, '2764642'), ('4302', '22454771', '1353934850', '0.05579093804619444', None, None, None, None, '2764642'), ('4302', '22454771', '1353934847', '0.05579093804619444', None, None, None, None, '2764642'), ('4302', '22454771', '1353934844', '0.05579093804619444', None, None, None, None, '2764642'), ('4302', '22454771', '1353934841', '0.05579093804619444', None, None, None, None, '2764642'), ('4302', '22454771', '1353934838', '0.05579093804619444', None, None, None, None, '2764642'), ('4302', '22454771', '1353934831', '0.05579093804619444', None, None, None, None, '2764642')] time used for this insertion : 0.013732194900512695 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06887197494506836 time spend to save output : 0.014143943786621094 total time spend for step 2 : 0.08301591873168945 step3:velours_tree Mon Apr 28 15:24:29 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 : {22454771: [{'flou': 22454779, 'plastique': 22454780, 'environnement': 22454781, 'Carton_gris': 22454782, 'metal': 22454783, 'Teint_Dans_La_Masse': 22454784, 'kraft': 22454785, 'mal_croppe': 22454786, 'papier': 22454787, 'autre_refus': 22454788, 'cartonnette': 22454789, 'Carton_brun': 22454790}]} input_args_next_step : {22454771: ()} output_args : {22454771: [{'flou': 22454779, 'plastique': 22454780, 'environnement': 22454781, 'Carton_gris': 22454782, 'metal': 22454783, 'Teint_Dans_La_Masse': 22454784, 'kraft': 22454785, 'mal_croppe': 22454786, 'papier': 22454787, 'autre_refus': 22454788, 'cartonnette': 22454789, 'Carton_brun': 22454790}]} args : 22454771 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'flou': 22454779, 'plastique': 22454780, 'environnement': 22454781, 'Carton_gris': 22454782, 'metal': 22454783, 'Teint_Dans_La_Masse': 22454784, 'kraft': 22454785, 'mal_croppe': 22454786, 'papier': 22454787, 'autre_refus': 22454788, 'cartonnette': 22454789, 'Carton_brun': 22454790},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22454771) 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([22454771]) 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.40012598037719727 time spend to save output : 5.91278076171875e-05 total time spend for step 3 : 0.40018510818481445 step4:send_mail_cod Mon Apr 28 15:24:29 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 : {1353934907: ('0.05579093804619444',), 1353934904: ('0.05579093804619444',), 1353934901: ('0.05579093804619444',), 1353934850: ('0.05579093804619444',), 1353934847: ('0.05579093804619444',), 1353934844: ('0.05579093804619444',), 1353934841: ('0.05579093804619444',), 1353934838: ('0.05579093804619444',), 1353934831: ('0.05579093804619444',)} input_args_next_step : {1353934907: ()} output_args : {1353934907: ('0.05579093804619444',), 1353934904: ('0.05579093804619444',), 1353934901: ('0.05579093804619444',), 1353934850: ('0.05579093804619444',), 1353934847: ('0.05579093804619444',), 1353934844: ('0.05579093804619444',), 1353934841: ('0.05579093804619444',), 1353934838: ('0.05579093804619444',), 1353934831: ('0.05579093804619444',)} args : 1353934907 depend.output_id : 0 input_args_next_step : {1353934907: ('0.05579093804619444',), 1353934904: ()} output_args : {1353934907: ('0.05579093804619444',), 1353934904: ('0.05579093804619444',), 1353934901: ('0.05579093804619444',), 1353934850: ('0.05579093804619444',), 1353934847: ('0.05579093804619444',), 1353934844: ('0.05579093804619444',), 1353934841: ('0.05579093804619444',), 1353934838: ('0.05579093804619444',), 1353934831: ('0.05579093804619444',)} args : 1353934904 depend.output_id : 0 input_args_next_step : {1353934907: ('0.05579093804619444',), 1353934904: ('0.05579093804619444',), 1353934901: ()} output_args : {1353934907: ('0.05579093804619444',), 1353934904: ('0.05579093804619444',), 1353934901: ('0.05579093804619444',), 1353934850: ('0.05579093804619444',), 1353934847: ('0.05579093804619444',), 1353934844: ('0.05579093804619444',), 1353934841: ('0.05579093804619444',), 1353934838: ('0.05579093804619444',), 1353934831: ('0.05579093804619444',)} args : 1353934901 depend.output_id : 0 input_args_next_step : {1353934907: ('0.05579093804619444',), 1353934904: ('0.05579093804619444',), 1353934901: ('0.05579093804619444',), 1353934850: ()} output_args : {1353934907: ('0.05579093804619444',), 1353934904: ('0.05579093804619444',), 1353934901: ('0.05579093804619444',), 1353934850: ('0.05579093804619444',), 1353934847: ('0.05579093804619444',), 1353934844: ('0.05579093804619444',), 1353934841: ('0.05579093804619444',), 1353934838: ('0.05579093804619444',), 1353934831: ('0.05579093804619444',)} args : 1353934850 depend.output_id : 0 input_args_next_step : {1353934907: ('0.05579093804619444',), 1353934904: ('0.05579093804619444',), 1353934901: ('0.05579093804619444',), 1353934850: ('0.05579093804619444',), 1353934847: ()} output_args : {1353934907: ('0.05579093804619444',), 1353934904: ('0.05579093804619444',), 1353934901: ('0.05579093804619444',), 1353934850: ('0.05579093804619444',), 1353934847: ('0.05579093804619444',), 1353934844: ('0.05579093804619444',), 1353934841: ('0.05579093804619444',), 1353934838: ('0.05579093804619444',), 1353934831: ('0.05579093804619444',)} args : 1353934847 depend.output_id : 0 input_args_next_step : {1353934907: ('0.05579093804619444',), 1353934904: ('0.05579093804619444',), 1353934901: ('0.05579093804619444',), 1353934850: ('0.05579093804619444',), 1353934847: ('0.05579093804619444',), 1353934844: ()} output_args : {1353934907: ('0.05579093804619444',), 1353934904: ('0.05579093804619444',), 1353934901: ('0.05579093804619444',), 1353934850: ('0.05579093804619444',), 1353934847: ('0.05579093804619444',), 1353934844: ('0.05579093804619444',), 1353934841: ('0.05579093804619444',), 1353934838: ('0.05579093804619444',), 1353934831: ('0.05579093804619444',)} args : 1353934844 depend.output_id : 0 input_args_next_step : {1353934907: ('0.05579093804619444',), 1353934904: ('0.05579093804619444',), 1353934901: ('0.05579093804619444',), 1353934850: ('0.05579093804619444',), 1353934847: ('0.05579093804619444',), 1353934844: ('0.05579093804619444',), 1353934841: ()} output_args : {1353934907: ('0.05579093804619444',), 1353934904: ('0.05579093804619444',), 1353934901: ('0.05579093804619444',), 1353934850: ('0.05579093804619444',), 1353934847: ('0.05579093804619444',), 1353934844: ('0.05579093804619444',), 1353934841: ('0.05579093804619444',), 1353934838: ('0.05579093804619444',), 1353934831: ('0.05579093804619444',)} args : 1353934841 depend.output_id : 0 input_args_next_step : {1353934907: ('0.05579093804619444',), 1353934904: ('0.05579093804619444',), 1353934901: ('0.05579093804619444',), 1353934850: ('0.05579093804619444',), 1353934847: ('0.05579093804619444',), 1353934844: ('0.05579093804619444',), 1353934841: ('0.05579093804619444',), 1353934838: ()} output_args : {1353934907: ('0.05579093804619444',), 1353934904: ('0.05579093804619444',), 1353934901: ('0.05579093804619444',), 1353934850: ('0.05579093804619444',), 1353934847: ('0.05579093804619444',), 1353934844: ('0.05579093804619444',), 1353934841: ('0.05579093804619444',), 1353934838: ('0.05579093804619444',), 1353934831: ('0.05579093804619444',)} args : 1353934838 depend.output_id : 0 input_args_next_step : {1353934907: ('0.05579093804619444',), 1353934904: ('0.05579093804619444',), 1353934901: ('0.05579093804619444',), 1353934850: ('0.05579093804619444',), 1353934847: ('0.05579093804619444',), 1353934844: ('0.05579093804619444',), 1353934841: ('0.05579093804619444',), 1353934838: ('0.05579093804619444',), 1353934831: ()} output_args : {1353934907: ('0.05579093804619444',), 1353934904: ('0.05579093804619444',), 1353934901: ('0.05579093804619444',), 1353934850: ('0.05579093804619444',), 1353934847: ('0.05579093804619444',), 1353934844: ('0.05579093804619444',), 1353934841: ('0.05579093804619444',), 1353934838: ('0.05579093804619444',), 1353934831: ('0.05579093804619444',)} args : 1353934831 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 : {22454771: [{'flou': 22454779, 'plastique': 22454780, 'environnement': 22454781, 'Carton_gris': 22454782, 'metal': 22454783, 'Teint_Dans_La_Masse': 22454784, 'kraft': 22454785, 'mal_croppe': 22454786, 'papier': 22454787, 'autre_refus': 22454788, 'cartonnette': 22454789, 'Carton_brun': 22454790}]} input_args_next_step : {1353934907: ('0.05579093804619444',), 1353934904: ('0.05579093804619444',), 1353934901: ('0.05579093804619444',), 1353934850: ('0.05579093804619444',), 1353934847: ('0.05579093804619444',), 1353934844: ('0.05579093804619444',), 1353934841: ('0.05579093804619444',), 1353934838: ('0.05579093804619444',), 1353934831: ('0.05579093804619444',), 22454771: ()} output_args : {22454771: [{'flou': 22454779, 'plastique': 22454780, 'environnement': 22454781, 'Carton_gris': 22454782, 'metal': 22454783, 'Teint_Dans_La_Masse': 22454784, 'kraft': 22454785, 'mal_croppe': 22454786, 'papier': 22454787, 'autre_refus': 22454788, 'cartonnette': 22454789, 'Carton_brun': 22454790}]} args : 22454771 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.05579093804619444',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22454771) 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 (1353934907,1353934904,1353934901,1353934850,1353934847,1353934844,1353934841,1353934838,1353934831) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1353934831 begin to download photo : 1353934841 begin to download photo : 1353934847 begin to download photo : 1353934901 begin to download photo : 1353934907 download finish for photo 1353934901 begin to download photo : 1353934904 download finish for photo 1353934847 begin to download photo : 1353934850 download finish for photo 1353934907 download finish for photo 1353934831 begin to download photo : 1353934838 download finish for photo 1353934841 begin to download photo : 1353934844 download finish for photo 1353934904 download finish for photo 1353934838 download finish for photo 1353934850 download finish for photo 1353934844 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette224547791745846669/ length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P22454771_28-04-2025_15_24_29.pdf Dont find os.environ['TEMPS'] 22454779 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=22454779 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224547791745846669 22454780 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=22454780 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353934909: '1745846591_3335227_1353934726_25089bc1b26f1fda8abee17046f02362_rle_crop_3771087644_0.png', 1353934964: '1745846621_2706424_1353934701_0b1ddb25e6cd847cafae413ba93235f2_rle_crop_3771087894_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/e2cce7890717f81616a189c295a17cba_84784684.png change filename to text .imagette224547801745846669/ imagette224547801745846669/1745846621_2706424_1353934701_0b1ddb25e6cd847cafae413ba93235f2_rle_crop_3771087894_0.png.png imagette224547801745846669/1745846591_3335227_1353934726_25089bc1b26f1fda8abee17046f02362_rle_crop_3771087644_0.png.png imagette224547831745846669/ imagette224547851745846670/ imagette224547861745846670/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/9fb486172b0c029337861b68fb00e0f7_99970287.png imagette224547801745846669 22454783 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=22454783 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224547831745846669 22454785 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=22454785 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224547851745846670 22454786 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=22454786 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette224547861745846670 22454788 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=22454788 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353934947: '1745846621_2706424_1353934716_5c827d5cfd33f5bbd825c2c99662bdef_rle_crop_3771087865_0.png'} change filename to text .imagette224547881745846670/ imagette224547881745846670/1745846621_2706424_1353934716_5c827d5cfd33f5bbd825c2c99662bdef_rle_crop_3771087865_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/d79e016b8ae54fab26fd73b4e47e6d8f_97183869.png imagette224547881745846670 22454789 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=22454789 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353934628: '1745846352_3332726_1353934359_bc648baba13fc8e4181d81e9c9c9c9ef_rle_crop_3771071837_0.png', 1353934642: '1745846366_351478_1353934419_d6c6960d112bd67a33c67633920f7bad_rle_crop_3771071878_0.png', 1353934955: '1745846621_2706424_1353934701_0b1ddb25e6cd847cafae413ba93235f2_rle_crop_3771087888_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/7b4ec81ec868c9c0fdc6afa861572f75_36521685.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/91dc872fd2dccb967704f72a6dfedadd_35219453.png change filename to text .imagette224547891745846670/ imagette224547891745846670/1745846366_351478_1353934419_d6c6960d112bd67a33c67633920f7bad_rle_crop_3771071878_0.png.png imagette224547891745846670/1745846352_3332726_1353934359_bc648baba13fc8e4181d81e9c9c9c9ef_rle_crop_3771071837_0.png.png imagette224547891745846670/1745846621_2706424_1353934701_0b1ddb25e6cd847cafae413ba93235f2_rle_crop_3771087888_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/3bd607f40bcedbd231fd689c1905d106_46720647.png imagette224547891745846670 22454782 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=22454782 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353934641: '1745846366_351478_1353934422_782ccc845d7d25f257ce2d9f7f84b14b_rle_crop_3771071862_0.png', 1353934948: '1745846621_2706424_1353934693_1671d05ad9e97a252016948562d4f370_rle_crop_3771087918_0.png', 1353934949: '1745846621_2706424_1353934693_1671d05ad9e97a252016948562d4f370_rle_crop_3771087920_0.png', 1353934950: '1745846621_2706424_1353934687_c89a67c8b9d724de783f5683984048f3_rle_crop_3771087930_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/edc1f43290867d1dd45d0b819430bf00_85864478.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/753066652e38b7a3d59fcaacf31fadc3_50537115.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/ef7f8fe2472d3843b9cf3c9447ba7998_39227342.png change filename to text .imagette224547821745846670/ imagette224547821745846670/1745846621_2706424_1353934687_c89a67c8b9d724de783f5683984048f3_rle_crop_3771087930_0.png.png imagette224547821745846670/1745846621_2706424_1353934693_1671d05ad9e97a252016948562d4f370_rle_crop_3771087918_0.png.png imagette224547821745846670/1745846366_351478_1353934422_782ccc845d7d25f257ce2d9f7f84b14b_rle_crop_3771071862_0.png.png imagette224547821745846670/1745846621_2706424_1353934693_1671d05ad9e97a252016948562d4f370_rle_crop_3771087920_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/782735cafe63337e2c2d89600b4ebf4f_63851601.png imagette224547821745846670 22454784 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=22454784 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353934627: '1745846352_3332726_1353934428_ea2262106350884d7b5bc2738dbba32c_rle_crop_3771071812_0.png', 1353934942: '1745846621_2706424_1353934762_c4cb221f48a7885557ec48dc97a14801_rle_crop_3771087854_0.png', 1353934943: '1745846621_2706424_1353934716_5c827d5cfd33f5bbd825c2c99662bdef_rle_crop_3771087870_0.png', 1353934944: '1745846621_2706424_1353934696_a276c311805698b1bc71f0ecacc01975_rle_crop_3771087904_0.png', 1353934945: '1745846621_2706424_1353934696_a276c311805698b1bc71f0ecacc01975_rle_crop_3771087905_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/58f06667226ff4a17eda20e09903b1b2_52320040.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/03f8f565ba3a29bfcd460916585f27d6_81614900.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/20c28969a89b159ea71188fef93ccce7_91454783.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/50c7dab1ea95fb422fe890a5c57ae5cb_78511163.png change filename to text .imagette224547841745846670/ imagette224547841745846670/1745846621_2706424_1353934696_a276c311805698b1bc71f0ecacc01975_rle_crop_3771087905_0.png.png imagette224547841745846670/1745846352_3332726_1353934428_ea2262106350884d7b5bc2738dbba32c_rle_crop_3771071812_0.png.png imagette224547841745846670/1745846621_2706424_1353934762_c4cb221f48a7885557ec48dc97a14801_rle_crop_3771087854_0.png.png imagette224547841745846670/1745846621_2706424_1353934696_a276c311805698b1bc71f0ecacc01975_rle_crop_3771087904_0.png.png imagette224547841745846670/1745846621_2706424_1353934716_5c827d5cfd33f5bbd825c2c99662bdef_rle_crop_3771087870_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/4970e4fa085e014f24ff93644641f386_28845768.png imagette224547841745846670 22454790 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=22454790 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1353934629: '1745846352_3332726_1353934428_ea2262106350884d7b5bc2738dbba32c_rle_crop_3771071806_0.png', 1353934630: '1745846352_3332726_1353934359_bc648baba13fc8e4181d81e9c9c9c9ef_rle_crop_3771071838_0.png', 1353934646: '1745846366_351478_1353934422_782ccc845d7d25f257ce2d9f7f84b14b_rle_crop_3771071864_0.png', 1353934647: '1745846366_351478_1353934422_782ccc845d7d25f257ce2d9f7f84b14b_rle_crop_3771071865_0.png', 1353934648: '1745846366_351478_1353934422_782ccc845d7d25f257ce2d9f7f84b14b_rle_crop_3771071858_0.png', 1353934649: '1745846366_351478_1353934419_d6c6960d112bd67a33c67633920f7bad_rle_crop_3771071881_0.png', 1353934957: '1745846621_2706424_1353934716_5c827d5cfd33f5bbd825c2c99662bdef_rle_crop_3771087874_0.png', 1353934959: '1745846621_2706424_1353934701_0b1ddb25e6cd847cafae413ba93235f2_rle_crop_3771087890_0.png', 1353934960: '1745846621_2706424_1353934701_0b1ddb25e6cd847cafae413ba93235f2_rle_crop_3771087889_0.png', 1353934961: '1745846621_2706424_1353934696_a276c311805698b1bc71f0ecacc01975_rle_crop_3771087908_0.png', 1353934962: '1745846621_2706424_1353934696_a276c311805698b1bc71f0ecacc01975_rle_crop_3771087910_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/39a27031d444b9f2611ddbe2c129c755_84096997.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/3057bf7fd4f823c561408878e3447d7f_57138784.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/c98a6d2b907e3526aa2492a55203b074_14200151.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/c9bc0a4f5cf3974504422fbcf2941da7_90267354.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/57f0946eaf8ce5f633ad6ce431773787_30545419.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/07ee3ba642ef3863bf70d876a4aa6daa_5804482.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/d7a22865b30ba755736afd62367229a6_27661127.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/8a1b18d281fae0e46d3fe012454cb459_48594145.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/eab4ca946f4e7b3c68bc41d7a4a2db18_75534015.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/94ca6e739e94921b432092778dfeecdf_91404238.png change filename to text .imagette224547901745846670/ imagette224547901745846670/1745846621_2706424_1353934701_0b1ddb25e6cd847cafae413ba93235f2_rle_crop_3771087889_0.png.png imagette224547901745846670/1745846366_351478_1353934422_782ccc845d7d25f257ce2d9f7f84b14b_rle_crop_3771071864_0.png.png imagette224547901745846670/1745846366_351478_1353934422_782ccc845d7d25f257ce2d9f7f84b14b_rle_crop_3771071865_0.png.png imagette224547901745846670/1745846621_2706424_1353934716_5c827d5cfd33f5bbd825c2c99662bdef_rle_crop_3771087874_0.png.png imagette224547901745846670/1745846366_351478_1353934422_782ccc845d7d25f257ce2d9f7f84b14b_rle_crop_3771071858_0.png.png imagette224547901745846670/1745846621_2706424_1353934701_0b1ddb25e6cd847cafae413ba93235f2_rle_crop_3771087890_0.png.png imagette224547901745846670/1745846621_2706424_1353934696_a276c311805698b1bc71f0ecacc01975_rle_crop_3771087908_0.png.png imagette224547901745846670/1745846621_2706424_1353934696_a276c311805698b1bc71f0ecacc01975_rle_crop_3771087910_0.png.png imagette224547901745846670/1745846366_351478_1353934419_d6c6960d112bd67a33c67633920f7bad_rle_crop_3771071881_0.png.png imagette224547901745846670/1745846352_3332726_1353934428_ea2262106350884d7b5bc2738dbba32c_rle_crop_3771071806_0.png.png imagette224547901745846670/1745846352_3332726_1353934359_bc648baba13fc8e4181d81e9c9c9c9ef_rle_crop_3771071838_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/56ec834bdef1c327f40162ea1c4ee0de_34404993.png imagette224547901745846670 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22454771 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22454791,22454792,22454793,22454794,22454795,22454796,22454797,22454798,22454799,22454800,22454801,22454802?tags=flou,plastique,environnement,Carton_gris,metal,Teint_Dans_La_Masse,kraft,mal_croppe,papier,autre_refus,cartonnette,Carton_brun Dont find os.environ['TEMPS'] your option no_mail is active, we will not send the real mail to your client args[1353934907] : ('0.05579093804619444',) no score found for photo 1353934907 We are sending mail with results at report@fotonower.com args[1353934904] : ('0.05579093804619444',) no score found for photo 1353934904 We are sending mail with results at report@fotonower.com args[1353934901] : ('0.05579093804619444',) no score found for photo 1353934901 We are sending mail with results at report@fotonower.com args[1353934850] : ('0.05579093804619444',) no score found for photo 1353934850 We are sending mail with results at report@fotonower.com args[1353934847] : ('0.05579093804619444',) no score found for photo 1353934847 We are sending mail with results at report@fotonower.com args[1353934844] : ('0.05579093804619444',) no score found for photo 1353934844 We are sending mail with results at report@fotonower.com args[1353934841] : ('0.05579093804619444',) no score found for photo 1353934841 We are sending mail with results at report@fotonower.com args[1353934838] : ('0.05579093804619444',) no score found for photo 1353934838 We are sending mail with results at report@fotonower.com args[1353934831] : ('0.05579093804619444',) no score found for photo 1353934831 We are sending mail with results at report@fotonower.com refus_total : 0.05579093804619444 2022-04-13 10:29:59 0 Dont find os.environ['TEMPS'] 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=22454771 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_P22454771_28-04-2025_15_24_29.pdf results_Auto_P22454771_28-04-2025_15_24_29.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22454771_28-04-2025_15_24_29.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22454771','results_Auto_P22454771_28-04-2025_15_24_29.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22454771_28-04-2025_15_24_29.pdf','pdf','','0.18','0.05579093804619444') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22454771]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1353934907, 1353934904, 1353934901, 1353934850, 1353934847, 1353934844, 1353934841, 1353934838, 1353934831] map_info['map_portfolio_photo'] : {22454771: [1353934907, 1353934904, 1353934901, 1353934850, 1353934847, 1353934844, 1353934841, 1353934838, 1353934831, 1353934762, 1353934744, 1353934732, 1353934726, 1353934719, 1353934716, 1353934701, 1353934696, 1353934693, 1353934687, 1353934622, 1353934618, 1353934615, 1353934611, 1353934608, 1353934604, 1353934527, 1353934508, 1353934500, 1353934428, 1353934424, 1353934422, 1353934419, 1353934417, 1353934415, 1353934364, 1353934359, 1353934356]} final : False mtd_id 4302 list_pids : [1353934907, 1353934904, 1353934901, 1353934850, 1353934847, 1353934844, 1353934841, 1353934838, 1353934831] 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, '2764642') ('4302', '22454771', '1353934907', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934904', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934901', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934850', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934847', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934844', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934841', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934838', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934831', None, None, None, None, None, '2764642') 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', '22454771', '1353934907', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353934904', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353934901', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353934850', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353934847', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353934844', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353934841', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353934838', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353934831', None, None, None, None, None, '2764642')] time used for this insertion : 0.01362752914428711 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.907309055328369 time spend to save output : 0.014051675796508789 total time spend for step 4 : 2.921360731124878 step5:split_time_score Mon Apr 28 15:24:32 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22454771'] 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 : [('22454771',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22454771) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1353934907: {'path': 'temp/1745846669_2435902_1353934907_07fe93e1803d3d6c386cf9304a477655.jpg', 'extension': 'jpg'}, 1353934901: {'path': 'temp/1745846669_2435902_1353934901_7c5c47370ee42e9ba00a44649cf0fe2b.jpg', 'extension': 'jpg'}, 1353934904: {'path': 'temp/1745846669_2435902_1353934904_8d899dcda966bd906c0e1676642f72c9.jpg', 'extension': 'jpg'}, 1353934831: {'path': 'temp/1745846669_2435902_1353934831_79baa8b588d3e8442c67b24b6874d261.jpg', 'extension': 'jpg'}, 1353934838: {'path': 'temp/1745846669_2435902_1353934838_3be7f3676de40da9f497715a92a4f2ac.jpg', 'extension': 'jpg'}, 1353934847: {'path': 'temp/1745846669_2435902_1353934847_e6a695873887ac1ea36931edf7c75cff.jpg', 'extension': 'jpg'}, 1353934850: {'path': 'temp/1745846669_2435902_1353934850_d332124e1d8b141eda99a55c5919ca93.jpg', 'extension': 'jpg'}, 1353934841: {'path': 'temp/1745846669_2435902_1353934841_fc3a67ddda3cebfaef349bd716edf644.jpg', 'extension': 'jpg'}, 1353934844: {'path': 'temp/1745846669_2435902_1353934844_f1d2ba07c5fff511cc7abb58db8ac2b1.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 = 22454771; (('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 = 22454771 group by h (('15', 37),) 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=22454771 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 (22454771) 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 (22454771) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 28042025 22454771 Nombre de photos uploadées : 37 / 23040 (0%) 28042025 22454771 Nombre de photos taguées (types de déchets): 0 / 37 (0%) 28042025 22454771 Nombre de photos taguées (volume) : 0 / 37 (0%) [{'photo_id': 1353934364, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/36167d839cb9ed5e850212b4d2f72e26.jpg', 'username': None, 'uploaded_at': 1745846177, 'text': 'image_28042025_15_15_04_010139m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353934359, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/bc648baba13fc8e4181d81e9c9c9c9ef.jpg', 'username': None, 'uploaded_at': 1745846177, 'text': 'image_28042025_15_15_14_009124m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353934356, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/c8051d4f14f43b0b2a6d7b122f69b84d.jpg', 'username': None, 'uploaded_at': 1745846177, 'text': 'image_28042025_15_15_24_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1353934428, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/28/ea2262106350884d7b5bc2738dbba32c.jpg', 'username': None, 'uploaded_at': 1745846237, 'text': 'image_28042025_15_15_54_010132m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.337860107421875e-06 elapsed_time : order_list_meta_photo_and_scores 9.298324584960938e-06 ????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0032820701599121094 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22454771, '2025-04-28' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1750587,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024608850479125977 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= 1750587 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1750587, 'dashboard_run_id': 1758810, 'mtr_portfolio_id': 22453259, 'dashboard_result_id': 10115496, '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_P22453259_28-04-2025_14_52_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22453287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22453288, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22453289, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22453290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22453291, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22453292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22453293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22453294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22453295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22453296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22453297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22453298, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1758810, 'mtr_portfolio_id': 22453714, 'dashboard_result_id': 10115497, '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_P22453714_28-04-2025_15_02_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22453718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22453719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22453720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22453721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22453722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22453723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22453724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22453725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22453726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22453727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22453728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22453729, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1758810, 'mtr_portfolio_id': 22454148, 'dashboard_result_id': 10115498, '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_P22454148_28-04-2025_15_19_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22454168, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22454169, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22454170, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22454171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22454172, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22454173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22454174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22454175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22454176, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22454177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22454178, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22454179, 'pht': 3726}}"}, {'dashboat_entry_day': 1750587, 'dashboard_run_id': 1758810, 'mtr_portfolio_id': 22454771, 'dashboard_result_id': 10115499, '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_P22454771_28-04-2025_15_22_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22454779, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22454780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22454781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22454782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22454783, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22454784, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22454785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22454786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22454787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22454788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22454789, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22454790, '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 = 22453259 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': 2764491, 'mtr_portfolio_id': 22453259, 'created_at': datetime.datetime(2025, 4, 28, 14, 52, 59), 'result': '0.03556250229126262', 'result_long': None, 'result_double': None}] Qualite : 0.03556250229126262 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22453259 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22453259_28-04-2025_14_52_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22453259 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_P22453259_28-04-2025_14_52_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22453287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22453288, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22453289, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22453290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22453291, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22453292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22453293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22453294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22453295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22453296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22453297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22453298, 'pht': 3726}}" where mtr_portfolio_id = 22453259 and dashboard_run_id = 1758810 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`=22453259 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10115496, 0.03556250229126262, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22453259_28-04-2025_14_52_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22453287, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22453288, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22453289, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22453290, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22453291, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22453292, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22453293, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22453294, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22453295, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22453296, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22453297, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22453298, '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 = 22453714 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': 2764539, 'mtr_portfolio_id': 22453714, 'created_at': datetime.datetime(2025, 4, 28, 15, 2, 30), 'result': '0.07443313121988651', 'result_long': None, 'result_double': None}] Qualite : 0.07443313121988651 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22453714 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22453714_28-04-2025_15_02_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22453714 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_P22453714_28-04-2025_15_02_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22453718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22453719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22453720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22453721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22453722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22453723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22453724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22453725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22453726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22453727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22453728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22453729, 'pht': 3726}}" where mtr_portfolio_id = 22453714 and dashboard_run_id = 1758810 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`=22453714 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10115497, 0.07443313121988651, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22453714_28-04-2025_15_02_32.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22453718, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22453719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22453720, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22453721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22453722, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22453723, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22453724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22453725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22453726, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22453727, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22453728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22453729, '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 = 22454148 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': 2764583, 'mtr_portfolio_id': 22454148, 'created_at': datetime.datetime(2025, 4, 28, 15, 19), 'result': '0.05319964641723295', 'result_long': None, 'result_double': None}] Qualite : 0.05319964641723295 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22454148 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22454148_28-04-2025_15_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22454148 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_P22454148_28-04-2025_15_19_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22454168, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22454169, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22454170, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22454171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22454172, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22454173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22454174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22454175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22454176, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22454177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22454178, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22454179, 'pht': 3726}}" where mtr_portfolio_id = 22454148 and dashboard_run_id = 1758810 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`=22454148 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10115498, 0.05319964641723295, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22454148_28-04-2025_15_19_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22454168, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22454169, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22454170, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22454171, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22454172, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22454173, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22454174, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22454175, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22454176, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22454177, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22454178, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22454179, '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 = 22454771 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': 2764642, 'mtr_portfolio_id': 22454771, 'created_at': datetime.datetime(2025, 4, 28, 15, 24, 29), 'result': '0.05579093804619444', 'result_long': None, 'result_double': None}] Qualite : 0.05579093804619444 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22454771 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22454771_28-04-2025_15_24_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22454771 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_P22454771_28-04-2025_15_24_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22454779, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22454780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22454781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22454782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22454783, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22454784, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22454785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22454786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22454787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22454788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22454789, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22454790, 'pht': 3726}}" where mtr_portfolio_id = 22454771 and dashboard_run_id = 1758810 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`=22454771 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (10115499, 0.05579093804619444, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22454771_28-04-2025_15_24_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22454779, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22454780, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22454781, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22454782, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22454783, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22454784, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22454785, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22454786, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22454787, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22454788, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22454789, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22454790, '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 (22453259,22453714,22454148,22454771) result : ((1353924456,), (1353924462,), (1353924466,), (1353924471,), (1353924523,), (1353924527,), (1353924532,), (1353924535,), (1353924538,), (1353924594,), (1353924595,), (1353924599,), (1353924600,), (1353924605,), (1353924606,), (1353924611,), (1353924612,), (1353924619,), (1353924621,), (1353924813,), (1353924825,), (1353924934,), (1353924936,), (1353924942,), (1353924944,), (1353924948,), (1353924950,), (1353924955,), (1353924956,), (1353924960,), (1353924961,), (1353925017,), (1353925023,), (1353925030,), (1353925036,), (1353925041,), (1353925051,), (1353925055,), (1353925103,), (1353925117,), (1353925209,), (1353925215,), (1353925465,), (1353925884,), (1353928474,), (1353928460,), (1353928465,), (1353928470,), (1353928640,), (1353928644,), (1353928675,), (1353928707,), (1353928736,), (1353929110,), (1353929112,), (1353929140,), (1353929159,), (1353929169,), (1353929190,), (1353931215,), (1353931351,), (1353931414,), (1353932029,), (1353932068,), (1353932107,), (1353932148,), (1353932190,), (1353932226,), (1353932335,), (1353932363,), (1353932409,), (1353932437,), (1353932551,), (1353932532,), (1353932537,), (1353932542,), (1353932546,), (1353932817,), (1353932842,), (1353932857,), (1353932861,), (1353932936,), (1353932945,), (1353932948,), (1353932953,), (1353932957,), (1353933040,), (1353933057,), (1353933059,), (1353933061,), (1353933064,), (1353933151,), (1353933153,), (1353933156,), (1353933158,), (1353933173,), (1353933180,), (1353933184,), (1353933190,), (1353933234,), (1353933237,), (1353933242,), (1353933248,), (1353933252,), (1353933255,), (1353933268,), (1353933272,), (1353933278,), (1353933283,), (1353933286,), (1353933290,), (1353933340,), (1353933347,), (1353933353,), (1353933358,), (1353933423,), (1353933427,), (1353933431,), (1353933434,), (1353933438,), (1353933521,), (1353933525,), (1353933527,), (1353933528,), (1353933542,), (1353933543,), (1353933561,), (1353933567,), (1353933644,), (1353933647,), (1353933660,), (1353933699,), (1353933728,), (1353933742,), (1353933761,), (1353933766,), (1353933773,), (1353933779,), (1353933833,), (1353933839,), (1353933843,), (1353933847,), (1353933861,), (1353933868,), (1353933984,), (1353933986,), (1353933990,), (1353933992,), (1353934006,), (1353934028,), (1353934032,), (1353934210,), (1353934301,), (1353934334,), (1353934343,), (1353934367,), (1353934356,), (1353934359,), (1353934364,), (1353934415,), (1353934417,), (1353934419,), (1353934422,), (1353934424,), (1353934428,), (1353934500,), (1353934508,), (1353934527,), (1353934604,), (1353934608,), (1353934611,), (1353934615,), (1353934618,), (1353934622,), (1353934687,), (1353934693,), (1353934696,), (1353934701,), (1353934716,), (1353934719,), (1353934726,), (1353934732,), (1353934744,), (1353934762,), (1353934831,), (1353934838,), (1353934841,), (1353934844,), (1353934847,), (1353934850,), (1353934901,), (1353934904,), (1353934907,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'28042025': {'nb_upload': 37, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22454771]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1353934907, 1353934904, 1353934901, 1353934850, 1353934847, 1353934844, 1353934841, 1353934838, 1353934831] map_info['map_portfolio_photo'] : {22454771: [1353934907, 1353934904, 1353934901, 1353934850, 1353934847, 1353934844, 1353934841, 1353934838, 1353934831, 1353934762, 1353934744, 1353934732, 1353934726, 1353934719, 1353934716, 1353934701, 1353934696, 1353934693, 1353934687, 1353934622, 1353934618, 1353934615, 1353934611, 1353934608, 1353934604, 1353934527, 1353934508, 1353934500, 1353934428, 1353934424, 1353934422, 1353934419, 1353934417, 1353934415, 1353934364, 1353934359, 1353934356]} final : True mtd_id 4302 list_pids : [1353934907, 1353934904, 1353934901, 1353934850, 1353934847, 1353934844, 1353934841, 1353934838, 1353934831] Looping around the photos to save general results len do output : 1 /22454771Didn'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, '2764642') ('4302', '22454771', '1353934907', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934904', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934901', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934850', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934847', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934844', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934841', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934838', None, None, None, None, None, '2764642') ('4302', None, None, None, None, None, None, None, '2764642') ('4302', '22454771', '1353934831', None, None, None, None, None, '2764642') 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, '22454771', 'None', None, None, None, None, '2764642'), ('4302', '22454771', '1353934907', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353934904', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353934901', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353934850', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353934847', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353934844', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353934841', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353934838', None, None, None, None, None, '2764642'), ('4302', '22454771', '1353934831', None, None, None, None, None, '2764642')] time used for this insertion : 0.013093948364257812 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.35044240951538086 time spend to save output : 0.013308525085449219 total time spend for step 5 : 0.3637509346008301 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 (2764642) 2.47user 2.16system 0:08.51elapsed 54%CPU (0avgtext+0avgdata 159924maxresident)k 28736inputs+9456outputs (255major+76008minor)pagefaults 0swaps