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 : 2037653 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 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`=21896296 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','kraft','mal_croppe','environnement','Teint_Dans_La_Masse','metal','Carton_gris','plastique','papier','Carton_brun','cartonnette','flou')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 21896296, 'sub_port_id': 21896335, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14404708, 'last_updated_at': datetime.datetime(2025, 3, 31, 6, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 6, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 6, 33, 30)}, 'kraft': {'main_port_id': 21896296, 'sub_port_id': 21896336, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14404709, 'last_updated_at': datetime.datetime(2025, 3, 31, 6, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 6, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 6, 33, 30)}, 'mal_croppe': {'main_port_id': 21896296, 'sub_port_id': 21896337, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14404710, 'last_updated_at': datetime.datetime(2025, 3, 31, 6, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 6, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 6, 33, 30)}, 'environnement': {'main_port_id': 21896296, 'sub_port_id': 21896338, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14404711, 'last_updated_at': datetime.datetime(2025, 3, 31, 6, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 6, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 6, 33, 30)}, 'Teint_Dans_La_Masse': {'main_port_id': 21896296, 'sub_port_id': 21896339, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14404712, 'last_updated_at': datetime.datetime(2025, 3, 31, 6, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 6, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 6, 33, 30)}, 'metal': {'main_port_id': 21896296, 'sub_port_id': 21896340, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14404713, 'last_updated_at': datetime.datetime(2025, 3, 31, 6, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 6, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 6, 33, 30)}, 'Carton_gris': {'main_port_id': 21896296, 'sub_port_id': 21896341, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14404714, 'last_updated_at': datetime.datetime(2025, 3, 31, 6, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 6, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 6, 33, 30)}, 'plastique': {'main_port_id': 21896296, 'sub_port_id': 21896342, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14404715, 'last_updated_at': datetime.datetime(2025, 3, 31, 6, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 6, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 6, 33, 30)}, 'papier': {'main_port_id': 21896296, 'sub_port_id': 21896343, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14404716, 'last_updated_at': datetime.datetime(2025, 3, 31, 6, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 6, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 6, 33, 30)}, 'Carton_brun': {'main_port_id': 21896296, 'sub_port_id': 21896344, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14404717, 'last_updated_at': datetime.datetime(2025, 3, 31, 6, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 6, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 6, 33, 30)}, 'cartonnette': {'main_port_id': 21896296, 'sub_port_id': 21896345, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14404718, 'last_updated_at': datetime.datetime(2025, 3, 31, 6, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 6, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 6, 33, 30)}, 'flou': {'main_port_id': 21896296, 'sub_port_id': 21896346, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14404719, 'last_updated_at': datetime.datetime(2025, 3, 31, 6, 33, 30), 'last_updated_at_desc': datetime.datetime(2025, 3, 31, 6, 33, 30), 'last_updated_at_asc': datetime.datetime(2025, 3, 31, 6, 33, 30)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21896335,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21896323 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21896336,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21896324 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21896337,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21896325 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21896338,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21896326 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21896339,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21896327 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21896340,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21896328 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21896341,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21896329 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21896342,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21896330 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21896343,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21896331 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21896344,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21896332 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21896345,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21896333 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21896346,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21896334 lien utilise dans velours : https://www.fotonower.com/velours/21896335,21896336,21896337,21896338,21896339,21896340,21896341,21896342,21896343,21896344,21896345,21896346?tags=autre_refus,kraft,mal_croppe,environnement,Teint_Dans_La_Masse,metal,Carton_gris,plastique,papier,Carton_brun,cartonnette,flou After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21896296]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1348942246, 1348942244, 1348942240, 1348942209, 1348942204, 1348942202, 1348942200, 1348942199] map_info['map_portfolio_photo'] : {21896296: [1348942246, 1348942244, 1348942240, 1348942209, 1348942204, 1348942202, 1348942200, 1348942199]} final : False mtd_id 4302 list_pids : [1348942246, 1348942244, 1348942240, 1348942209, 1348942204, 1348942202, 1348942200, 1348942199] Looping around the photos to save general results len do output : 1 /21896296. 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, '2707659') ('4302', '21896296', '1348942246', None, None, None, None, None, '2707659') ('4302', None, None, None, None, None, None, None, '2707659') ('4302', '21896296', '1348942244', None, None, None, None, None, '2707659') ('4302', None, None, None, None, None, None, None, '2707659') ('4302', '21896296', '1348942240', None, None, None, None, None, '2707659') ('4302', None, None, None, None, None, None, None, '2707659') ('4302', '21896296', '1348942209', None, None, None, None, None, '2707659') ('4302', None, None, None, None, None, None, None, '2707659') ('4302', '21896296', '1348942204', None, None, None, None, None, '2707659') ('4302', None, None, None, None, None, None, None, '2707659') ('4302', '21896296', '1348942202', None, None, None, None, None, '2707659') ('4302', None, None, None, None, None, None, None, '2707659') ('4302', '21896296', '1348942200', None, None, None, None, None, '2707659') ('4302', None, None, None, None, None, None, None, '2707659') ('4302', '21896296', '1348942199', None, None, None, None, None, '2707659') 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', None, '21896296', "{'autre_refus': 21896323, 'kraft': 21896324, 'mal_croppe': 21896325, 'environnement': 21896326, 'Teint_Dans_La_Masse': 21896327, 'metal': 21896328, 'Carton_gris': 21896329, 'plastique': 21896330, 'papier': 21896331, 'Carton_brun': 21896332, 'cartonnette': 21896333, 'flou': 21896334}", None, None, None, None, '2707659'), ('4302', '21896296', '1348942246', None, None, None, None, None, '2707659'), ('4302', '21896296', '1348942244', None, None, None, None, None, '2707659'), ('4302', '21896296', '1348942240', None, None, None, None, None, '2707659'), ('4302', '21896296', '1348942209', None, None, None, None, None, '2707659'), ('4302', '21896296', '1348942204', None, None, None, None, None, '2707659'), ('4302', '21896296', '1348942202', None, None, None, None, None, '2707659'), ('4302', '21896296', '1348942200', None, None, None, None, None, '2707659'), ('4302', '21896296', '1348942199', None, None, None, None, None, '2707659')] time used for this insertion : 0.014701366424560547 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.2499651908874512 time spend to save output : 0.015031576156616211 total time spend for step 1 : 1.2649967670440674 step2:final Mon Mar 31 06:33:30 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 (21896296) 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 21896296 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1348942209,1348942204,1348942202,1348942200,1348942199,1348942246,1348942244,1348942240); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21896296]) Inside saveOutput : final : False verbose : True original output for save of step final : {1348942246: ('0.0',), 1348942244: ('0.0',), 1348942240: ('0.0',), 1348942209: ('0.0',), 1348942204: ('0.0',), 1348942202: ('0.0',), 1348942200: ('0.0',), 1348942199: ('0.0',)} new output for save of step final : {1348942246: ('0.0',), 1348942244: ('0.0',), 1348942240: ('0.0',), 1348942209: ('0.0',), 1348942204: ('0.0',), 1348942202: ('0.0',), 1348942200: ('0.0',), 1348942199: ('0.0',)} [1348942246, 1348942244, 1348942240, 1348942209, 1348942204, 1348942202, 1348942200, 1348942199] map_info['map_portfolio_photo'] : {21896296: [1348942246, 1348942244, 1348942240, 1348942209, 1348942204, 1348942202, 1348942200, 1348942199]} final : False mtd_id 4302 list_pids : [1348942246, 1348942244, 1348942240, 1348942209, 1348942204, 1348942202, 1348942200, 1348942199] Looping around the photos to save general results len do output : 8 /1348942246.Didn't retrieve data . /1348942244.Didn't retrieve data . /1348942240.Didn't retrieve data . /1348942209.Didn't retrieve data . /1348942204.Didn't retrieve data . /1348942202.Didn't retrieve data . /1348942200.Didn't retrieve data . /1348942199.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, '2707659') ('4302', '21896296', '1348942246', None, None, None, None, None, '2707659') ('4302', None, None, None, None, None, None, None, '2707659') ('4302', '21896296', '1348942244', None, None, None, None, None, '2707659') ('4302', None, None, None, None, None, None, None, '2707659') ('4302', '21896296', '1348942240', None, None, None, None, None, '2707659') ('4302', None, None, None, None, None, None, None, '2707659') ('4302', '21896296', '1348942209', None, None, None, None, None, '2707659') ('4302', None, None, None, None, None, None, None, '2707659') ('4302', '21896296', '1348942204', None, None, None, None, None, '2707659') ('4302', None, None, None, None, None, None, None, '2707659') ('4302', '21896296', '1348942202', None, None, None, None, None, '2707659') ('4302', None, None, None, None, None, None, None, '2707659') ('4302', '21896296', '1348942200', None, None, None, None, None, '2707659') ('4302', None, None, None, None, None, None, None, '2707659') ('4302', '21896296', '1348942199', None, None, None, None, None, '2707659') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 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', '21896296', '1348942246', '0.0', None, None, None, None, '2707659'), ('4302', '21896296', '1348942244', '0.0', None, None, None, None, '2707659'), ('4302', '21896296', '1348942240', '0.0', None, None, None, None, '2707659'), ('4302', '21896296', '1348942209', '0.0', None, None, None, None, '2707659'), ('4302', '21896296', '1348942204', '0.0', None, None, None, None, '2707659'), ('4302', '21896296', '1348942202', '0.0', None, None, None, None, '2707659'), ('4302', '21896296', '1348942200', '0.0', None, None, None, None, '2707659'), ('4302', '21896296', '1348942199', '0.0', None, None, None, None, '2707659')] time used for this insertion : 0.013354301452636719 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.013210535049438477 time spend to save output : 0.013675689697265625 total time spend for step 2 : 0.0268862247467041 step3:velours_tree Mon Mar 31 06:33:30 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 : {21896296: [{'autre_refus': 21896323, 'kraft': 21896324, 'mal_croppe': 21896325, 'environnement': 21896326, 'Teint_Dans_La_Masse': 21896327, 'metal': 21896328, 'Carton_gris': 21896329, 'plastique': 21896330, 'papier': 21896331, 'Carton_brun': 21896332, 'cartonnette': 21896333, 'flou': 21896334}]} input_args_next_step : {21896296: ()} output_args : {21896296: [{'autre_refus': 21896323, 'kraft': 21896324, 'mal_croppe': 21896325, 'environnement': 21896326, 'Teint_Dans_La_Masse': 21896327, 'metal': 21896328, 'Carton_gris': 21896329, 'plastique': 21896330, 'papier': 21896331, 'Carton_brun': 21896332, 'cartonnette': 21896333, 'flou': 21896334}]} args : 21896296 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 : ({'autre_refus': 21896323, 'kraft': 21896324, 'mal_croppe': 21896325, 'environnement': 21896326, 'Teint_Dans_La_Masse': 21896327, 'metal': 21896328, 'Carton_gris': 21896329, 'plastique': 21896330, 'papier': 21896331, 'Carton_brun': 21896332, 'cartonnette': 21896333, 'flou': 21896334},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21896296) 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([21896296]) 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.2957572937011719 time spend to save output : 7.43865966796875e-05 total time spend for step 3 : 0.29583168029785156 step4:send_mail_cod Mon Mar 31 06:33:30 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 : {1348942246: ('0.0',), 1348942244: ('0.0',), 1348942240: ('0.0',), 1348942209: ('0.0',), 1348942204: ('0.0',), 1348942202: ('0.0',), 1348942200: ('0.0',), 1348942199: ('0.0',)} input_args_next_step : {1348942246: ()} output_args : {1348942246: ('0.0',), 1348942244: ('0.0',), 1348942240: ('0.0',), 1348942209: ('0.0',), 1348942204: ('0.0',), 1348942202: ('0.0',), 1348942200: ('0.0',), 1348942199: ('0.0',)} args : 1348942246 depend.output_id : 0 input_args_next_step : {1348942246: ('0.0',), 1348942244: ()} output_args : {1348942246: ('0.0',), 1348942244: ('0.0',), 1348942240: ('0.0',), 1348942209: ('0.0',), 1348942204: ('0.0',), 1348942202: ('0.0',), 1348942200: ('0.0',), 1348942199: ('0.0',)} args : 1348942244 depend.output_id : 0 input_args_next_step : {1348942246: ('0.0',), 1348942244: ('0.0',), 1348942240: ()} output_args : {1348942246: ('0.0',), 1348942244: ('0.0',), 1348942240: ('0.0',), 1348942209: ('0.0',), 1348942204: ('0.0',), 1348942202: ('0.0',), 1348942200: ('0.0',), 1348942199: ('0.0',)} args : 1348942240 depend.output_id : 0 input_args_next_step : {1348942246: ('0.0',), 1348942244: ('0.0',), 1348942240: ('0.0',), 1348942209: ()} output_args : {1348942246: ('0.0',), 1348942244: ('0.0',), 1348942240: ('0.0',), 1348942209: ('0.0',), 1348942204: ('0.0',), 1348942202: ('0.0',), 1348942200: ('0.0',), 1348942199: ('0.0',)} args : 1348942209 depend.output_id : 0 input_args_next_step : {1348942246: ('0.0',), 1348942244: ('0.0',), 1348942240: ('0.0',), 1348942209: ('0.0',), 1348942204: ()} output_args : {1348942246: ('0.0',), 1348942244: ('0.0',), 1348942240: ('0.0',), 1348942209: ('0.0',), 1348942204: ('0.0',), 1348942202: ('0.0',), 1348942200: ('0.0',), 1348942199: ('0.0',)} args : 1348942204 depend.output_id : 0 input_args_next_step : {1348942246: ('0.0',), 1348942244: ('0.0',), 1348942240: ('0.0',), 1348942209: ('0.0',), 1348942204: ('0.0',), 1348942202: ()} output_args : {1348942246: ('0.0',), 1348942244: ('0.0',), 1348942240: ('0.0',), 1348942209: ('0.0',), 1348942204: ('0.0',), 1348942202: ('0.0',), 1348942200: ('0.0',), 1348942199: ('0.0',)} args : 1348942202 depend.output_id : 0 input_args_next_step : {1348942246: ('0.0',), 1348942244: ('0.0',), 1348942240: ('0.0',), 1348942209: ('0.0',), 1348942204: ('0.0',), 1348942202: ('0.0',), 1348942200: ()} output_args : {1348942246: ('0.0',), 1348942244: ('0.0',), 1348942240: ('0.0',), 1348942209: ('0.0',), 1348942204: ('0.0',), 1348942202: ('0.0',), 1348942200: ('0.0',), 1348942199: ('0.0',)} args : 1348942200 depend.output_id : 0 input_args_next_step : {1348942246: ('0.0',), 1348942244: ('0.0',), 1348942240: ('0.0',), 1348942209: ('0.0',), 1348942204: ('0.0',), 1348942202: ('0.0',), 1348942200: ('0.0',), 1348942199: ()} output_args : {1348942246: ('0.0',), 1348942244: ('0.0',), 1348942240: ('0.0',), 1348942209: ('0.0',), 1348942204: ('0.0',), 1348942202: ('0.0',), 1348942200: ('0.0',), 1348942199: ('0.0',)} args : 1348942199 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 : {21896296: [{'autre_refus': 21896323, 'kraft': 21896324, 'mal_croppe': 21896325, 'environnement': 21896326, 'Teint_Dans_La_Masse': 21896327, 'metal': 21896328, 'Carton_gris': 21896329, 'plastique': 21896330, 'papier': 21896331, 'Carton_brun': 21896332, 'cartonnette': 21896333, 'flou': 21896334}]} input_args_next_step : {1348942246: ('0.0',), 1348942244: ('0.0',), 1348942240: ('0.0',), 1348942209: ('0.0',), 1348942204: ('0.0',), 1348942202: ('0.0',), 1348942200: ('0.0',), 1348942199: ('0.0',), 21896296: ()} output_args : {21896296: [{'autre_refus': 21896323, 'kraft': 21896324, 'mal_croppe': 21896325, 'environnement': 21896326, 'Teint_Dans_La_Masse': 21896327, 'metal': 21896328, 'Carton_gris': 21896329, 'plastique': 21896330, 'papier': 21896331, 'Carton_brun': 21896332, 'cartonnette': 21896333, 'flou': 21896334}]} args : 21896296 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 :9, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21896296) 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 (1348942246,1348942244,1348942240,1348942209,1348942204,1348942202,1348942200,1348942199) Found this number of photos: 8 ##### Call download_photos : nb_thread : 5 begin to download photo : 1348942199 begin to download photo : 1348942202 begin to download photo : 1348942209 begin to download photo : 1348942244 download finish for photo 1348942202 begin to download photo : 1348942204 download finish for photo 1348942244 begin to download photo : 1348942246 download finish for photo 1348942209 begin to download photo : 1348942240 download finish for photo 1348942199 begin to download photo : 1348942200 download finish for photo 1348942204 download finish for photo 1348942240 download finish for photo 1348942246 download finish for photo 1348942200 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette218963231743395611/ imagette218963241743395611/ imagette218963251743395611/ imagette218963281743395611/ imagette218963301743395611/ imagette218963331743395611/ imagette218963341743395611/ imagette218963271743395611/ imagette218963291743395611/ imagette218963321743395611/ length of list_filenames : 8 ; length of list_pids : 8 ; length of list_args : 8 results_Auto_P21896296_31-03-2025_06_33_31.pdf 21896323 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=21896323 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218963231743395611 21896324 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=21896324 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218963241743395611 21896325 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=21896325 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218963251743395611 21896328 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=21896328 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218963281743395611 21896330 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=21896330 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218963301743395611 21896333 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=21896333 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218963331743395611 21896334 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=21896334 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218963341743395611 21896327 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=21896327 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218963271743395611 21896329 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=21896329 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218963291743395611 21896332 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=21896332 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette218963321743395611 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21896296 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21896335,21896336,21896337,21896338,21896339,21896340,21896341,21896342,21896343,21896344,21896345,21896346?tags=autre_refus,kraft,mal_croppe,environnement,Teint_Dans_La_Masse,metal,Carton_gris,plastique,papier,Carton_brun,cartonnette,flou your option no_mail is active, we will not send the real mail to your client args[1348942246] : ('0.0',) no score found for photo 1348942246 We are sending mail with results at report@fotonower.com args[1348942244] : ('0.0',) no score found for photo 1348942244 We are sending mail with results at report@fotonower.com args[1348942240] : ('0.0',) no score found for photo 1348942240 We are sending mail with results at report@fotonower.com args[1348942209] : ('0.0',) no score found for photo 1348942209 We are sending mail with results at report@fotonower.com args[1348942204] : ('0.0',) no score found for photo 1348942204 We are sending mail with results at report@fotonower.com args[1348942202] : ('0.0',) no score found for photo 1348942202 We are sending mail with results at report@fotonower.com args[1348942200] : ('0.0',) no score found for photo 1348942200 We are sending mail with results at report@fotonower.com args[1348942199] : ('0.0',) no score found for photo 1348942199 We are sending mail with results at report@fotonower.com refus_total : 0.0 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=21896296 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_P21896296_31-03-2025_06_33_31.pdf results_Auto_P21896296_31-03-2025_06_33_31.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21896296_31-03-2025_06_33_31.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','21896296','results_Auto_P21896296_31-03-2025_06_33_31.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21896296_31-03-2025_06_33_31.pdf','pdf','','0.09','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21896296]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1348942246, 1348942244, 1348942240, 1348942209, 1348942204, 1348942202, 1348942200, 1348942199] map_info['map_portfolio_photo'] : {21896296: [1348942246, 1348942244, 1348942240, 1348942209, 1348942204, 1348942202, 1348942200, 1348942199]} final : False mtd_id 4302 list_pids : [1348942246, 1348942244, 1348942240, 1348942209, 1348942204, 1348942202, 1348942200, 1348942199] 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, '2707659') ('4302', '21896296', '1348942246', None, None, None, None, None, '2707659') ('4302', None, None, None, None, None, None, None, '2707659') ('4302', '21896296', '1348942244', None, None, None, None, None, '2707659') ('4302', None, None, None, None, None, None, None, '2707659') ('4302', '21896296', '1348942240', None, None, None, None, None, '2707659') ('4302', None, None, None, None, None, None, None, '2707659') ('4302', '21896296', '1348942209', None, None, None, None, None, '2707659') ('4302', None, None, None, None, None, None, None, '2707659') ('4302', '21896296', '1348942204', None, None, None, None, None, '2707659') ('4302', None, None, None, None, None, None, None, '2707659') ('4302', '21896296', '1348942202', None, None, None, None, None, '2707659') ('4302', None, None, None, None, None, None, None, '2707659') ('4302', '21896296', '1348942200', None, None, None, None, None, '2707659') ('4302', None, None, None, None, None, None, None, '2707659') ('4302', '21896296', '1348942199', None, None, None, None, None, '2707659') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 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', '21896296', '1348942246', None, None, None, None, None, '2707659'), ('4302', '21896296', '1348942244', None, None, None, None, None, '2707659'), ('4302', '21896296', '1348942240', None, None, None, None, None, '2707659'), ('4302', '21896296', '1348942209', None, None, None, None, None, '2707659'), ('4302', '21896296', '1348942204', None, None, None, None, None, '2707659'), ('4302', '21896296', '1348942202', None, None, None, None, None, '2707659'), ('4302', '21896296', '1348942200', None, None, None, None, None, '2707659'), ('4302', '21896296', '1348942199', None, None, None, None, None, '2707659')] time used for this insertion : 0.05182933807373047 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.521127462387085 time spend to save output : 0.052132368087768555 total time spend for step 4 : 1.5732598304748535 step5:split_time_score Mon Mar 31 06:33: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 : ['21896296'] 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 : [('21896296',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21896296) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1348942202: {'path': 'temp/1743395610_2037653_1348942202_df08ae66dbddd648c09171bf5b53bf84.jpg', 'extension': 'jpg'}, 1348942204: {'path': 'temp/1743395610_2037653_1348942204_5db9d6275daa60ce16746eda9f29c4eb.jpg', 'extension': 'jpg'}, 1348942209: {'path': 'temp/1743395610_2037653_1348942209_967b4e1761ca02d1ec033c1631aba36e.jpg', 'extension': 'jpg'}, 1348942240: {'path': 'temp/1743395610_2037653_1348942240_358a30fb27ab2534dedeb0a37d40705a.jpg', 'extension': 'jpg'}, 1348942244: {'path': 'temp/1743395610_2037653_1348942244_29f68c94c27f15eefcc24e808fb9cfc3.jpg', 'extension': 'jpg'}, 1348942246: {'path': 'temp/1743395610_2037653_1348942246_6d3f5d95cbd1aa8a000a4020fa33064d.jpg', 'extension': 'jpg'}, 1348942199: {'path': 'temp/1743395610_2037653_1348942199_c0e238cd530138f7ee2525f55ad8c878.jpg', 'extension': 'jpg'}, 1348942200: {'path': 'temp/1743395610_2037653_1348942200_49c3812bcb03508a0b570ec5b8e96b38.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 = 21896296; (('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 = 21896296 group by h (('06', 8),) 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=21896296 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 (21896296) 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 (21896296) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 31032025 21896296 Nombre de photos uploadées : 8 / 23040 (0%) 31032025 21896296 Nombre de photos taguées (types de déchets): 0 / 8 (0%) 31032025 21896296 Nombre de photos taguées (volume) : 0 / 8 (0%) [{'photo_id': 1348942209, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/967b4e1761ca02d1ec033c1631aba36e.jpg', 'username': None, 'uploaded_at': 1743395467, 'text': 'image_31032025_06_30_05_10165.jpg'}, {'photo_id': 1348942204, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/5db9d6275daa60ce16746eda9f29c4eb.jpg', 'username': None, 'uploaded_at': 1743395467, 'text': 'image_31032025_06_30_14_9127.jpg'}, {'photo_id': 1348942202, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/df08ae66dbddd648c09171bf5b53bf84.jpg', 'username': None, 'uploaded_at': 1743395467, 'text': 'image_31032025_06_30_24_10139.jpg'}, {'photo_id': 1348942200, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/49c3812bcb03508a0b570ec5b8e96b38.jpg', 'username': None, 'uploaded_at': 1743395467, 'text': 'image_31032025_06_30_34_10143.jpg'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 6.4373016357421875e-06 ???????? elapsed_time : fill_and_build_computed_from_old_data 0.0004477500915527344 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21896296, '2025-03-31' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1702716,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.061510562896728516 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= 1702716 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1702716, 'dashboard_run_id': 1710292, 'mtr_portfolio_id': 21894766, 'dashboard_result_id': 9748333, '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_P21894766_31-03-2025_05_46_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21894769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21894770, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21894771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21894772, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21894773, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21894774, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21894775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21894776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21894777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21894778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21894779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21894780, 'pht': 3726}}"}, {'dashboat_entry_day': 1702716, 'dashboard_run_id': 1710292, 'mtr_portfolio_id': 21895072, 'dashboard_result_id': 9748334, '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_P21895072_31-03-2025_06_02_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21895074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21895075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21895076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21895077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21895078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21895079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21895080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21895081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21895082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21895083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21895084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21895085, 'pht': 3726}}"}, {'dashboat_entry_day': 1702716, 'dashboard_run_id': 1710292, 'mtr_portfolio_id': 21895527, 'dashboard_result_id': 9748335, '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_P21895527_31-03-2025_06_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21895531, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21895532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21895533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21895534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21895535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21895536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21895537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21895538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21895539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21895540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21895541, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21895542, 'pht': 3726}}"}, {'dashboat_entry_day': 1702716, 'dashboard_run_id': 1710292, 'mtr_portfolio_id': 21895913, 'dashboard_result_id': 9748336, '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_P21895913_31-03-2025_06_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21895940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21895941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21895942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21895943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21895944, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21895945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21895946, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21895947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21895948, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21895949, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21895950, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21895951, 'pht': 3726}}"}, {'dashboat_entry_day': 1702716, 'dashboard_run_id': 1710292, 'mtr_portfolio_id': 21896296, 'dashboard_result_id': 9748337, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0, 'url_report': ''}"}] 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 = 21894766 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': 2707533, 'mtr_portfolio_id': 21894766, 'created_at': datetime.datetime(2025, 3, 31, 5, 46, 28), 'result': '0.04651116738950886', 'result_long': None, 'result_double': None}] Qualite : 0.04651116738950886 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21894766 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21894766_31-03-2025_05_46_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21894766 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_P21894766_31-03-2025_05_46_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21894769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21894770, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21894771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21894772, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21894773, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21894774, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21894775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21894776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21894777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21894778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21894779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21894780, 'pht': 3726}}" where mtr_portfolio_id = 21894766 and dashboard_run_id = 1710292 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`=21894766 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9748333, 0.04651116738950886, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21894766_31-03-2025_05_46_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21894769, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21894770, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21894771, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21894772, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21894773, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21894774, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21894775, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21894776, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21894777, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21894778, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21894779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21894780, '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 = 21895072 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': 2707556, 'mtr_portfolio_id': 21895072, 'created_at': datetime.datetime(2025, 3, 31, 6, 2, 30), 'result': '0.06015366598297821', 'result_long': None, 'result_double': None}] Qualite : 0.06015366598297821 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21895072 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21895072_31-03-2025_06_02_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21895072 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_P21895072_31-03-2025_06_02_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21895074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21895075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21895076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21895077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21895078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21895079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21895080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21895081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21895082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21895083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21895084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21895085, 'pht': 3726}}" where mtr_portfolio_id = 21895072 and dashboard_run_id = 1710292 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`=21895072 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9748334, 0.06015366598297821, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21895072_31-03-2025_06_02_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21895074, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21895075, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21895076, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21895077, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21895078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21895079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21895080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21895081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21895082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21895083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21895084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21895085, '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 = 21895527 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': 2707599, 'mtr_portfolio_id': 21895527, 'created_at': datetime.datetime(2025, 3, 31, 6, 16, 59), 'result': '0.05816836839600503', 'result_long': None, 'result_double': None}] Qualite : 0.05816836839600503 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21895527 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21895527_31-03-2025_06_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21895527 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_P21895527_31-03-2025_06_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21895531, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21895532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21895533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21895534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21895535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21895536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21895537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21895538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21895539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21895540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21895541, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21895542, 'pht': 3726}}" where mtr_portfolio_id = 21895527 and dashboard_run_id = 1710292 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`=21895527 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9748335, 0.05816836839600503, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21895527_31-03-2025_06_17_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21895531, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21895532, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21895533, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21895534, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21895535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21895536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21895537, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21895538, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21895539, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21895540, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21895541, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21895542, '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 = 21895913 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': 2707629, 'mtr_portfolio_id': 21895913, 'created_at': datetime.datetime(2025, 3, 31, 6, 32, 59), 'result': '0.055414999960161776', 'result_long': None, 'result_double': None}] Qualite : 0.055414999960161776 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21895913 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21895913_31-03-2025_06_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21895913 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_P21895913_31-03-2025_06_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21895940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21895941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21895942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21895943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21895944, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21895945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21895946, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21895947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21895948, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21895949, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21895950, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21895951, 'pht': 3726}}" where mtr_portfolio_id = 21895913 and dashboard_run_id = 1710292 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`=21895913 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9748336, 0.055414999960161776, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21895913_31-03-2025_06_32_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21895940, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21895941, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21895942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21895943, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21895944, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21895945, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21895946, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21895947, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21895948, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21895949, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21895950, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21895951, '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 = 21896296 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21896296 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 21896296 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21896296 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21896296 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21896296 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21896296_31-03-2025_06_33_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21896296 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_P21896296_31-03-2025_06_33_31.pdf'}" where mtr_portfolio_id = 21896296 and dashboard_run_id = 1710292 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21894766,21895072,21895527,21895913,21896296) result : ((1348938488,), (1348938517,), (1348938520,), (1348938546,), (1348938551,), (1348938555,), (1348938559,), (1348938564,), (1348938581,), (1348938584,), (1348938585,), (1348938587,), (1348938595,), (1348938619,), (1348938621,), (1348938646,), (1348938647,), (1348938648,), (1348938649,), (1348938686,), (1348938688,), (1348938690,), (1348938692,), (1348938694,), (1348938721,), (1348938723,), (1348938725,), (1348938729,), (1348938765,), (1348938767,), (1348938789,), (1348938791,), (1348938792,), (1348938795,), (1348938798,), (1348938806,), (1348938825,), (1348938827,), (1348938830,), (1348938833,), (1348938853,), (1348938855,), (1348938858,), (1348938860,), (1348938863,), (1348938872,), (1348938900,), (1348938894,), (1348938896,), (1348938898,), (1348938920,), (1348938924,), (1348938925,), (1348938928,), (1348938931,), (1348938933,), (1348938968,), (1348938971,), (1348938974,), (1348938978,), (1348938982,), (1348938983,), (1348938998,), (1348939001,), (1348939003,), (1348939035,), (1348939037,), (1348939039,), (1348939041,), (1348939042,), (1348939045,), (1348939068,), (1348939069,), (1348939070,), (1348939102,), (1348939108,), (1348939110,), (1348939132,), (1348939133,), (1348939135,), (1348939136,), (1348939137,), (1348939171,), (1348939180,), (1348939187,), (1348939189,), (1348939191,), (1348939212,), (1348939213,), (1348939214,), (1348939215,), (1348939254,), (1348939256,), (1348939258,), (1348939260,), (1348939262,), (1348939264,), (1348939284,), (1348939285,), (1348939286,), (1348939287,), (1348939297,), (1348939442,), (1348939468,), (1348939493,), (1348940518,), (1348940539,), (1348940565,), (1348940570,), (1348940581,), (1348940592,), (1348940809,), (1348940768,), (1348940796,), (1348940839,), (1348940843,), (1348940847,), (1348940853,), (1348940857,), (1348940884,), (1348940887,), (1348940888,), (1348940893,), (1348940898,), (1348940903,), (1348940934,), (1348940939,), (1348940943,), (1348940975,), (1348940979,), (1348940984,), (1348940989,), (1348940997,), (1348941022,), (1348941026,), (1348941036,), (1348941046,), (1348941050,), (1348941056,), (1348941076,), (1348941080,), (1348941083,), (1348941087,), (1348941117,), (1348941121,), (1348941125,), (1348941129,), (1348941131,), (1348941162,), (1348941165,), (1348941167,), (1348941170,), (1348941175,), (1348941218,), (1348941227,), (1348941230,), (1348941233,), (1348941239,), (1348941270,), (1348941281,), (1348941284,), (1348941289,), (1348941299,), (1348941308,), (1348941325,), (1348941329,), (1348941331,), (1348941364,), (1348941368,), (1348941372,), (1348941376,), (1348941381,), (1348941386,), (1348941415,), (1348941421,), (1348941433,), (1348941437,), (1348941441,), (1348941445,), (1348941464,), (1348941466,), (1348941470,), (1348941473,), (1348941522,), (1348941516,), (1348941519,), (1348941556,), (1348941558,), (1348941560,), (1348941562,), (1348941603,), (1348941606,), (1348941609,), (1348941612,), (1348941658,), (1348941660,), (1348941662,), (1348941665,), (1348941710,), (1348941713,), (1348941716,), (1348941719,), (1348941723,), (1348941728,), (1348941760,), (1348941763,), (1348941765,), (1348941767,), (1348941811,), (1348941812,), (1348941814,), (1348941816,), (1348941818,), (1348941852,), (1348941853,), (1348941855,), (1348941857,), (1348941860,), (1348941900,), (1348941906,), (1348941913,), (1348941952,), (1348941954,), (1348941956,), (1348941958,), (1348941962,), (1348941965,), (1348941991,), (1348941992,), (1348942001,), (1348942010,), (1348942013,), (1348942020,), (1348942045,), (1348942047,), (1348942049,), (1348942081,), (1348942083,), (1348942084,), (1348942086,), (1348942091,), (1348942093,), (1348942117,), (1348942120,), (1348942123,), (1348942126,), (1348942156,), (1348942157,), (1348942159,), (1348942167,), (1348942212,), (1348942199,), (1348942200,), (1348942202,), (1348942204,), (1348942209,), (1348942240,), (1348942244,), (1348942246,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'31032025': {'nb_upload': 8, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21896296]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1348942246, 1348942244, 1348942240, 1348942209, 1348942204, 1348942202, 1348942200, 1348942199] map_info['map_portfolio_photo'] : {21896296: [1348942246, 1348942244, 1348942240, 1348942209, 1348942204, 1348942202, 1348942200, 1348942199]} final : True mtd_id 4302 list_pids : [1348942246, 1348942244, 1348942240, 1348942209, 1348942204, 1348942202, 1348942200, 1348942199] Looping around the photos to save general results len do output : 1 /21896296Didn'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, '2707659') ('4302', '21896296', '1348942246', None, None, None, None, None, '2707659') ('4302', None, None, None, None, None, None, None, '2707659') ('4302', '21896296', '1348942244', None, None, None, None, None, '2707659') ('4302', None, None, None, None, None, None, None, '2707659') ('4302', '21896296', '1348942240', None, None, None, None, None, '2707659') ('4302', None, None, None, None, None, None, None, '2707659') ('4302', '21896296', '1348942209', None, None, None, None, None, '2707659') ('4302', None, None, None, None, None, None, None, '2707659') ('4302', '21896296', '1348942204', None, None, None, None, None, '2707659') ('4302', None, None, None, None, None, None, None, '2707659') ('4302', '21896296', '1348942202', None, None, None, None, None, '2707659') ('4302', None, None, None, None, None, None, None, '2707659') ('4302', '21896296', '1348942200', None, None, None, None, None, '2707659') ('4302', None, None, None, None, None, None, None, '2707659') ('4302', '21896296', '1348942199', None, None, None, None, None, '2707659') 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', None, '21896296', 'None', None, None, None, None, '2707659'), ('4302', '21896296', '1348942246', None, None, None, None, None, '2707659'), ('4302', '21896296', '1348942244', None, None, None, None, None, '2707659'), ('4302', '21896296', '1348942240', None, None, None, None, None, '2707659'), ('4302', '21896296', '1348942209', None, None, None, None, None, '2707659'), ('4302', '21896296', '1348942204', None, None, None, None, None, '2707659'), ('4302', '21896296', '1348942202', None, None, None, None, None, '2707659'), ('4302', '21896296', '1348942200', None, None, None, None, None, '2707659'), ('4302', '21896296', '1348942199', None, None, None, None, None, '2707659')] time used for this insertion : 0.04794573783874512 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.46376943588256836 time spend to save output : 0.04826927185058594 total time spend for step 5 : 0.5120387077331543 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 (2707659) 2.13user 2.03system 0:08.03elapsed 51%CPU (0avgtext+0avgdata 159964maxresident)k 368inputs+5296outputs (1major+64100minor)pagefaults 0swaps