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 : 308668 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 w 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`=21684719 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Teint_Dans_La_Masse','metal','cartonnette','Carton_brun','autre_refus','papier','flou','Carton_gris','environnement','plastique','kraft')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25032025_08_15_05_10157_4417_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25032025_08_15_05_10157_4417_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25032025_08_15_05_10157_4417_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25032025_08_15_05_10157_4417_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25032025_08_15_05_10157_4417_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25032025_08_15_05_10157_4417_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25032025_08_15_05_10157_4417_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25032025_08_15_05_10157_4417_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25032025_08_15_05_10157_4417_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25032025_08_15_05_10157_4417_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25032025_08_15_05_10157_4417_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__25032025_08_15_05_10157_4417_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[21684719, 21684759, 4417, 0.5, 2107755527, 979], [21684719, 21684760, 4417, 0.5, 2107752385, 979], [21684719, 21684761, 4417, 0.5, 492628673, 979], [21684719, 21684762, 4417, 0.5, 702398920, 979], [21684719, 21684763, 4417, 0.5, 2107753024, 979], [21684719, 21684764, 4417, 0.5, 2107752406, 979], [21684719, 21684765, 4417, 0.5, 492668766, 979], [21684719, 21684766, 4417, 0.5, 492777938, 979], [21684719, 21684767, 4417, 0.5, 2107753020, 979], [21684719, 21684768, 4417, 0.5, 493012381, 979], [21684719, 21684769, 4417, 0.5, 492725882, 979], [21684719, 21684770, 4417, 0.5, 493202403, 979]] 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`=21684719 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Teint_Dans_La_Masse','metal','cartonnette','Carton_brun','autre_refus','papier','flou','Carton_gris','environnement','plastique','kraft')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=21684719 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('mal_croppe','Teint_Dans_La_Masse','metal','cartonnette','Carton_brun','autre_refus','papier','flou','Carton_gris','environnement','plastique','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 21684719, 'sub_port_id': 21684759, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14217078, 'last_updated_at': datetime.datetime(2025, 3, 25, 8, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 8, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 8, 21, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 21684719, 'sub_port_id': 21684760, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14217079, 'last_updated_at': datetime.datetime(2025, 3, 25, 8, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 8, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 8, 21, 31)}, 'metal': {'main_port_id': 21684719, 'sub_port_id': 21684761, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14217080, 'last_updated_at': datetime.datetime(2025, 3, 25, 8, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 8, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 8, 21, 31)}, 'cartonnette': {'main_port_id': 21684719, 'sub_port_id': 21684762, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14217081, 'last_updated_at': datetime.datetime(2025, 3, 25, 8, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 8, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 8, 21, 31)}, 'Carton_brun': {'main_port_id': 21684719, 'sub_port_id': 21684763, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14217082, 'last_updated_at': datetime.datetime(2025, 3, 25, 8, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 8, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 8, 21, 31)}, 'autre_refus': {'main_port_id': 21684719, 'sub_port_id': 21684764, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14217083, 'last_updated_at': datetime.datetime(2025, 3, 25, 8, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 8, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 8, 21, 31)}, 'papier': {'main_port_id': 21684719, 'sub_port_id': 21684765, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14217084, 'last_updated_at': datetime.datetime(2025, 3, 25, 8, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 8, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 8, 21, 31)}, 'flou': {'main_port_id': 21684719, 'sub_port_id': 21684766, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14217085, 'last_updated_at': datetime.datetime(2025, 3, 25, 8, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 8, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 8, 21, 31)}, 'Carton_gris': {'main_port_id': 21684719, 'sub_port_id': 21684767, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14217086, 'last_updated_at': datetime.datetime(2025, 3, 25, 8, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 8, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 8, 21, 31)}, 'environnement': {'main_port_id': 21684719, 'sub_port_id': 21684768, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14217087, 'last_updated_at': datetime.datetime(2025, 3, 25, 8, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 8, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 8, 21, 31)}, 'plastique': {'main_port_id': 21684719, 'sub_port_id': 21684769, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14217088, 'last_updated_at': datetime.datetime(2025, 3, 25, 8, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 8, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 8, 21, 31)}, 'kraft': {'main_port_id': 21684719, 'sub_port_id': 21684770, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14217089, 'last_updated_at': datetime.datetime(2025, 3, 25, 8, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 3, 25, 8, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 3, 25, 8, 21, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21684759,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21684747 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21684760,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21684748 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21684761,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21684749 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21684762,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21684750 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21684763,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21684751 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21684764,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21684752 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21684765,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21684753 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21684766,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21684754 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21684767,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21684755 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21684768,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21684756 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21684769,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21684757 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 21684770,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21684758 lien utilise dans velours : https://www.fotonower.com/velours/21684759,21684760,21684761,21684762,21684763,21684764,21684765,21684766,21684767,21684768,21684769,21684770?tags=mal_croppe,Teint_Dans_La_Masse,metal,cartonnette,Carton_brun,autre_refus,papier,flou,Carton_gris,environnement,plastique,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21684719]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1347116604, 1347116558, 1347116511, 1347116495, 1347116470, 1347116461, 1347116226, 1347116176, 1347116113, 1347116046, 1347116011, 1347115756, 1347115728, 1347115693, 1347115684, 1347115680] map_info['map_portfolio_photo'] : {21684719: [1347116604, 1347116558, 1347116511, 1347116495, 1347116470, 1347116461, 1347116226, 1347116176, 1347116113, 1347116046, 1347116011, 1347115756, 1347115728, 1347115693, 1347115684, 1347115680]} final : False mtd_id 4302 list_pids : [1347116604, 1347116558, 1347116511, 1347116495, 1347116470, 1347116461, 1347116226, 1347116176, 1347116113, 1347116046, 1347116011, 1347115756, 1347115728, 1347115693, 1347115684, 1347115680] Looping around the photos to save general results len do output : 1 /21684719. 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, '2688618') ('4302', '21684719', '1347116604', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116558', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116511', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116495', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116470', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116461', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116226', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116176', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116113', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116046', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116011', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347115756', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347115728', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347115693', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347115684', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347115680', None, None, None, None, None, '2688618') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '21684719', "{'mal_croppe': 21684747, 'Teint_Dans_La_Masse': 21684748, 'metal': 21684749, 'cartonnette': 21684750, 'Carton_brun': 21684751, 'autre_refus': 21684752, 'papier': 21684753, 'flou': 21684754, 'Carton_gris': 21684755, 'environnement': 21684756, 'plastique': 21684757, 'kraft': 21684758}", None, None, None, None, '2688618'), ('4302', '21684719', '1347116604', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116558', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116511', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116495', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116470', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116461', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116226', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116176', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116113', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116046', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116011', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347115756', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347115728', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347115693', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347115684', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347115680', None, None, None, None, None, '2688618')] time used for this insertion : 1.4215986728668213 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.443737030029297 time spend to save output : 1.421989917755127 total time spend for step 1 : 4.865726947784424 step2:final Tue Mar 25 08:21:34 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 (21684719) 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 21684719 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1347115756,1347115728,1347115693,1347115684,1347115680,1347116226,1347116176,1347116113,1347116046,1347116011,1347116604,1347116558,1347116511,1347116495,1347116470,1347116461); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21684719]) Inside saveOutput : final : False verbose : True original output for save of step final : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ('0.0',), 1347116113: ('0.0',), 1347116046: ('0.0',), 1347116011: ('0.0',), 1347115756: ('0.0',), 1347115728: ('0.0',), 1347115693: ('0.0',), 1347115684: ('0.0',), 1347115680: ('0.0',)} new output for save of step final : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ('0.0',), 1347116113: ('0.0',), 1347116046: ('0.0',), 1347116011: ('0.0',), 1347115756: ('0.0',), 1347115728: ('0.0',), 1347115693: ('0.0',), 1347115684: ('0.0',), 1347115680: ('0.0',)} [1347116604, 1347116558, 1347116511, 1347116495, 1347116470, 1347116461, 1347116226, 1347116176, 1347116113, 1347116046, 1347116011, 1347115756, 1347115728, 1347115693, 1347115684, 1347115680] map_info['map_portfolio_photo'] : {21684719: [1347116604, 1347116558, 1347116511, 1347116495, 1347116470, 1347116461, 1347116226, 1347116176, 1347116113, 1347116046, 1347116011, 1347115756, 1347115728, 1347115693, 1347115684, 1347115680]} final : False mtd_id 4302 list_pids : [1347116604, 1347116558, 1347116511, 1347116495, 1347116470, 1347116461, 1347116226, 1347116176, 1347116113, 1347116046, 1347116011, 1347115756, 1347115728, 1347115693, 1347115684, 1347115680] Looping around the photos to save general results len do output : 16 /1347116604.Didn't retrieve data . /1347116558.Didn't retrieve data . /1347116511.Didn't retrieve data . /1347116495.Didn't retrieve data . /1347116470.Didn't retrieve data . /1347116461.Didn't retrieve data . /1347116226.Didn't retrieve data . /1347116176.Didn't retrieve data . /1347116113.Didn't retrieve data . /1347116046.Didn't retrieve data . /1347116011.Didn't retrieve data . /1347115756.Didn't retrieve data . /1347115728.Didn't retrieve data . /1347115693.Didn't retrieve data . /1347115684.Didn't retrieve data . /1347115680.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, '2688618') ('4302', '21684719', '1347116604', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116558', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116511', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116495', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116470', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116461', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116226', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116176', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116113', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116046', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116011', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347115756', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347115728', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347115693', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347115684', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347115680', None, None, None, None, None, '2688618') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 48 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', '21684719', '1347116604', '0.0', None, None, None, None, '2688618'), ('4302', '21684719', '1347116558', '0.0', None, None, None, None, '2688618'), ('4302', '21684719', '1347116511', '0.0', None, None, None, None, '2688618'), ('4302', '21684719', '1347116495', '0.0', None, None, None, None, '2688618'), ('4302', '21684719', '1347116470', '0.0', None, None, None, None, '2688618'), ('4302', '21684719', '1347116461', '0.0', None, None, None, None, '2688618'), ('4302', '21684719', '1347116226', '0.0', None, None, None, None, '2688618'), ('4302', '21684719', '1347116176', '0.0', None, None, None, None, '2688618'), ('4302', '21684719', '1347116113', '0.0', None, None, None, None, '2688618'), ('4302', '21684719', '1347116046', '0.0', None, None, None, None, '2688618'), ('4302', '21684719', '1347116011', '0.0', None, None, None, None, '2688618'), ('4302', '21684719', '1347115756', '0.0', None, None, None, None, '2688618'), ('4302', '21684719', '1347115728', '0.0', None, None, None, None, '2688618'), ('4302', '21684719', '1347115693', '0.0', None, None, None, None, '2688618'), ('4302', '21684719', '1347115684', '0.0', None, None, None, None, '2688618'), ('4302', '21684719', '1347115680', '0.0', None, None, None, None, '2688618')] time used for this insertion : 0.018325090408325195 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.013859748840332031 time spend to save output : 0.019120454788208008 total time spend for step 2 : 0.03298020362854004 step3:velours_tree Tue Mar 25 08:21:34 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21684719: [{'mal_croppe': 21684747, 'Teint_Dans_La_Masse': 21684748, 'metal': 21684749, 'cartonnette': 21684750, 'Carton_brun': 21684751, 'autre_refus': 21684752, 'papier': 21684753, 'flou': 21684754, 'Carton_gris': 21684755, 'environnement': 21684756, 'plastique': 21684757, 'kraft': 21684758}]} input_args_next_step : {21684719: ()} output_args : {21684719: [{'mal_croppe': 21684747, 'Teint_Dans_La_Masse': 21684748, 'metal': 21684749, 'cartonnette': 21684750, 'Carton_brun': 21684751, 'autre_refus': 21684752, 'papier': 21684753, 'flou': 21684754, 'Carton_gris': 21684755, 'environnement': 21684756, 'plastique': 21684757, 'kraft': 21684758}]} args : 21684719 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 : ({'mal_croppe': 21684747, 'Teint_Dans_La_Masse': 21684748, 'metal': 21684749, 'cartonnette': 21684750, 'Carton_brun': 21684751, 'autre_refus': 21684752, 'papier': 21684753, 'flou': 21684754, 'Carton_gris': 21684755, 'environnement': 21684756, 'plastique': 21684757, 'kraft': 21684758},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21684719) 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([21684719]) 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.32666587829589844 time spend to save output : 6.461143493652344e-05 total time spend for step 3 : 0.32673048973083496 step4:send_mail_cod Tue Mar 25 08:21:34 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ('0.0',), 1347116113: ('0.0',), 1347116046: ('0.0',), 1347116011: ('0.0',), 1347115756: ('0.0',), 1347115728: ('0.0',), 1347115693: ('0.0',), 1347115684: ('0.0',), 1347115680: ('0.0',)} input_args_next_step : {1347116604: ()} output_args : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ('0.0',), 1347116113: ('0.0',), 1347116046: ('0.0',), 1347116011: ('0.0',), 1347115756: ('0.0',), 1347115728: ('0.0',), 1347115693: ('0.0',), 1347115684: ('0.0',), 1347115680: ('0.0',)} args : 1347116604 depend.output_id : 0 input_args_next_step : {1347116604: ('0.0',), 1347116558: ()} output_args : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ('0.0',), 1347116113: ('0.0',), 1347116046: ('0.0',), 1347116011: ('0.0',), 1347115756: ('0.0',), 1347115728: ('0.0',), 1347115693: ('0.0',), 1347115684: ('0.0',), 1347115680: ('0.0',)} args : 1347116558 depend.output_id : 0 input_args_next_step : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ()} output_args : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ('0.0',), 1347116113: ('0.0',), 1347116046: ('0.0',), 1347116011: ('0.0',), 1347115756: ('0.0',), 1347115728: ('0.0',), 1347115693: ('0.0',), 1347115684: ('0.0',), 1347115680: ('0.0',)} args : 1347116511 depend.output_id : 0 input_args_next_step : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ()} output_args : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ('0.0',), 1347116113: ('0.0',), 1347116046: ('0.0',), 1347116011: ('0.0',), 1347115756: ('0.0',), 1347115728: ('0.0',), 1347115693: ('0.0',), 1347115684: ('0.0',), 1347115680: ('0.0',)} args : 1347116495 depend.output_id : 0 input_args_next_step : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ()} output_args : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ('0.0',), 1347116113: ('0.0',), 1347116046: ('0.0',), 1347116011: ('0.0',), 1347115756: ('0.0',), 1347115728: ('0.0',), 1347115693: ('0.0',), 1347115684: ('0.0',), 1347115680: ('0.0',)} args : 1347116470 depend.output_id : 0 input_args_next_step : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ()} output_args : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ('0.0',), 1347116113: ('0.0',), 1347116046: ('0.0',), 1347116011: ('0.0',), 1347115756: ('0.0',), 1347115728: ('0.0',), 1347115693: ('0.0',), 1347115684: ('0.0',), 1347115680: ('0.0',)} args : 1347116461 depend.output_id : 0 input_args_next_step : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ()} output_args : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ('0.0',), 1347116113: ('0.0',), 1347116046: ('0.0',), 1347116011: ('0.0',), 1347115756: ('0.0',), 1347115728: ('0.0',), 1347115693: ('0.0',), 1347115684: ('0.0',), 1347115680: ('0.0',)} args : 1347116226 depend.output_id : 0 input_args_next_step : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ()} output_args : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ('0.0',), 1347116113: ('0.0',), 1347116046: ('0.0',), 1347116011: ('0.0',), 1347115756: ('0.0',), 1347115728: ('0.0',), 1347115693: ('0.0',), 1347115684: ('0.0',), 1347115680: ('0.0',)} args : 1347116176 depend.output_id : 0 input_args_next_step : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ('0.0',), 1347116113: ()} output_args : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ('0.0',), 1347116113: ('0.0',), 1347116046: ('0.0',), 1347116011: ('0.0',), 1347115756: ('0.0',), 1347115728: ('0.0',), 1347115693: ('0.0',), 1347115684: ('0.0',), 1347115680: ('0.0',)} args : 1347116113 depend.output_id : 0 input_args_next_step : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ('0.0',), 1347116113: ('0.0',), 1347116046: ()} output_args : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ('0.0',), 1347116113: ('0.0',), 1347116046: ('0.0',), 1347116011: ('0.0',), 1347115756: ('0.0',), 1347115728: ('0.0',), 1347115693: ('0.0',), 1347115684: ('0.0',), 1347115680: ('0.0',)} args : 1347116046 depend.output_id : 0 input_args_next_step : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ('0.0',), 1347116113: ('0.0',), 1347116046: ('0.0',), 1347116011: ()} output_args : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ('0.0',), 1347116113: ('0.0',), 1347116046: ('0.0',), 1347116011: ('0.0',), 1347115756: ('0.0',), 1347115728: ('0.0',), 1347115693: ('0.0',), 1347115684: ('0.0',), 1347115680: ('0.0',)} args : 1347116011 depend.output_id : 0 input_args_next_step : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ('0.0',), 1347116113: ('0.0',), 1347116046: ('0.0',), 1347116011: ('0.0',), 1347115756: ()} output_args : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ('0.0',), 1347116113: ('0.0',), 1347116046: ('0.0',), 1347116011: ('0.0',), 1347115756: ('0.0',), 1347115728: ('0.0',), 1347115693: ('0.0',), 1347115684: ('0.0',), 1347115680: ('0.0',)} args : 1347115756 depend.output_id : 0 input_args_next_step : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ('0.0',), 1347116113: ('0.0',), 1347116046: ('0.0',), 1347116011: ('0.0',), 1347115756: ('0.0',), 1347115728: ()} output_args : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ('0.0',), 1347116113: ('0.0',), 1347116046: ('0.0',), 1347116011: ('0.0',), 1347115756: ('0.0',), 1347115728: ('0.0',), 1347115693: ('0.0',), 1347115684: ('0.0',), 1347115680: ('0.0',)} args : 1347115728 depend.output_id : 0 input_args_next_step : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ('0.0',), 1347116113: ('0.0',), 1347116046: ('0.0',), 1347116011: ('0.0',), 1347115756: ('0.0',), 1347115728: ('0.0',), 1347115693: ()} output_args : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ('0.0',), 1347116113: ('0.0',), 1347116046: ('0.0',), 1347116011: ('0.0',), 1347115756: ('0.0',), 1347115728: ('0.0',), 1347115693: ('0.0',), 1347115684: ('0.0',), 1347115680: ('0.0',)} args : 1347115693 depend.output_id : 0 input_args_next_step : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ('0.0',), 1347116113: ('0.0',), 1347116046: ('0.0',), 1347116011: ('0.0',), 1347115756: ('0.0',), 1347115728: ('0.0',), 1347115693: ('0.0',), 1347115684: ()} output_args : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ('0.0',), 1347116113: ('0.0',), 1347116046: ('0.0',), 1347116011: ('0.0',), 1347115756: ('0.0',), 1347115728: ('0.0',), 1347115693: ('0.0',), 1347115684: ('0.0',), 1347115680: ('0.0',)} args : 1347115684 depend.output_id : 0 input_args_next_step : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ('0.0',), 1347116113: ('0.0',), 1347116046: ('0.0',), 1347116011: ('0.0',), 1347115756: ('0.0',), 1347115728: ('0.0',), 1347115693: ('0.0',), 1347115684: ('0.0',), 1347115680: ()} output_args : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ('0.0',), 1347116113: ('0.0',), 1347116046: ('0.0',), 1347116011: ('0.0',), 1347115756: ('0.0',), 1347115728: ('0.0',), 1347115693: ('0.0',), 1347115684: ('0.0',), 1347115680: ('0.0',)} args : 1347115680 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 : {21684719: [{'mal_croppe': 21684747, 'Teint_Dans_La_Masse': 21684748, 'metal': 21684749, 'cartonnette': 21684750, 'Carton_brun': 21684751, 'autre_refus': 21684752, 'papier': 21684753, 'flou': 21684754, 'Carton_gris': 21684755, 'environnement': 21684756, 'plastique': 21684757, 'kraft': 21684758}]} input_args_next_step : {1347116604: ('0.0',), 1347116558: ('0.0',), 1347116511: ('0.0',), 1347116495: ('0.0',), 1347116470: ('0.0',), 1347116461: ('0.0',), 1347116226: ('0.0',), 1347116176: ('0.0',), 1347116113: ('0.0',), 1347116046: ('0.0',), 1347116011: ('0.0',), 1347115756: ('0.0',), 1347115728: ('0.0',), 1347115693: ('0.0',), 1347115684: ('0.0',), 1347115680: ('0.0',), 21684719: ()} output_args : {21684719: [{'mal_croppe': 21684747, 'Teint_Dans_La_Masse': 21684748, 'metal': 21684749, 'cartonnette': 21684750, 'Carton_brun': 21684751, 'autre_refus': 21684752, 'papier': 21684753, 'flou': 21684754, 'Carton_gris': 21684755, 'environnement': 21684756, 'plastique': 21684757, 'kraft': 21684758}]} args : 21684719 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 :17, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21684719) 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 (1347116604,1347116558,1347116511,1347116495,1347116470,1347116461,1347116226,1347116176,1347116113,1347116046,1347116011,1347115756,1347115728,1347115693,1347115684,1347115680) Found this number of photos: 16 ##### Call download_photos : nb_thread : 5 begin to download photo : 1347115680 begin to download photo : 1347115756 begin to download photo : 1347116176 begin to download photo : 1347116495 download finish for photo 1347115680 begin to download photo : 1347115684 download finish for photo 1347116176 begin to download photo : 1347116226 download finish for photo 1347116495 begin to download photo : 1347116511 download finish for photo 1347115756 begin to download photo : 1347116011 download finish for photo 1347115684 begin to download photo : 1347115693 download finish for photo 1347116511 begin to download photo : 1347116558 download finish for photo 1347116226 begin to download photo : 1347116461 download finish for photo 1347116011 begin to download photo : 1347116046 download finish for photo 1347116461 begin to download photo : 1347116470 download finish for photo 1347116558 begin to download photo : 1347116604 download finish for photo 1347115693 begin to download photo : 1347115728 download finish for photo 1347116046 begin to download photo : 1347116113 download finish for photo 1347116604 download finish for photo 1347115728 download finish for photo 1347116113 download finish for photo 1347116470 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette216847471742887295/ imagette216847491742887295/ imagette216847501742887295/ imagette216847521742887295/ imagette216847541742887295/ imagette216847571742887295/ imagette216847581742887295/ imagette216847481742887295/ imagette216847511742887295/ imagette216847551742887295/ length of list_filenames : 16 ; length of list_pids : 16 ; length of list_args : 16 results_Auto_P21684719_25-03-2025_08_21_35.pdf 21684747 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=21684747 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216847471742887295 21684749 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=21684749 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216847491742887295 21684750 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=21684750 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216847501742887295 21684752 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=21684752 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216847521742887295 21684754 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=21684754 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216847541742887295 21684757 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=21684757 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216847571742887295 21684758 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=21684758 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216847581742887295 21684748 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=21684748 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216847481742887295 21684751 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=21684751 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216847511742887295 21684755 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=21684755 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette216847551742887295 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21684719 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21684759,21684760,21684761,21684762,21684763,21684764,21684765,21684766,21684767,21684768,21684769,21684770?tags=mal_croppe,Teint_Dans_La_Masse,metal,cartonnette,Carton_brun,autre_refus,papier,flou,Carton_gris,environnement,plastique,kraft your option no_mail is active, we will not send the real mail to your client args[1347116604] : ('0.0',) no score found for photo 1347116604 We are sending mail with results at report@fotonower.com args[1347116558] : ('0.0',) no score found for photo 1347116558 We are sending mail with results at report@fotonower.com args[1347116511] : ('0.0',) no score found for photo 1347116511 We are sending mail with results at report@fotonower.com args[1347116495] : ('0.0',) no score found for photo 1347116495 We are sending mail with results at report@fotonower.com args[1347116470] : ('0.0',) no score found for photo 1347116470 We are sending mail with results at report@fotonower.com args[1347116461] : ('0.0',) no score found for photo 1347116461 We are sending mail with results at report@fotonower.com args[1347116226] : ('0.0',) no score found for photo 1347116226 We are sending mail with results at report@fotonower.com args[1347116176] : ('0.0',) no score found for photo 1347116176 We are sending mail with results at report@fotonower.com args[1347116113] : ('0.0',) no score found for photo 1347116113 We are sending mail with results at report@fotonower.com args[1347116046] : ('0.0',) no score found for photo 1347116046 We are sending mail with results at report@fotonower.com args[1347116011] : ('0.0',) no score found for photo 1347116011 We are sending mail with results at report@fotonower.com args[1347115756] : ('0.0',) no score found for photo 1347115756 We are sending mail with results at report@fotonower.com args[1347115728] : ('0.0',) no score found for photo 1347115728 We are sending mail with results at report@fotonower.com args[1347115693] : ('0.0',) no score found for photo 1347115693 We are sending mail with results at report@fotonower.com args[1347115684] : ('0.0',) no score found for photo 1347115684 We are sending mail with results at report@fotonower.com args[1347115680] : ('0.0',) no score found for photo 1347115680 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=21684719 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_P21684719_25-03-2025_08_21_35.pdf results_Auto_P21684719_25-03-2025_08_21_35.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21684719_25-03-2025_08_21_35.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','21684719','results_Auto_P21684719_25-03-2025_08_21_35.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21684719_25-03-2025_08_21_35.pdf','pdf','','0.15','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21684719]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1347116604, 1347116558, 1347116511, 1347116495, 1347116470, 1347116461, 1347116226, 1347116176, 1347116113, 1347116046, 1347116011, 1347115756, 1347115728, 1347115693, 1347115684, 1347115680] map_info['map_portfolio_photo'] : {21684719: [1347116604, 1347116558, 1347116511, 1347116495, 1347116470, 1347116461, 1347116226, 1347116176, 1347116113, 1347116046, 1347116011, 1347115756, 1347115728, 1347115693, 1347115684, 1347115680]} final : False mtd_id 4302 list_pids : [1347116604, 1347116558, 1347116511, 1347116495, 1347116470, 1347116461, 1347116226, 1347116176, 1347116113, 1347116046, 1347116011, 1347115756, 1347115728, 1347115693, 1347115684, 1347115680] 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, '2688618') ('4302', '21684719', '1347116604', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116558', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116511', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116495', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116470', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116461', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116226', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116176', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116113', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116046', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116011', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347115756', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347115728', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347115693', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347115684', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347115680', None, None, None, None, None, '2688618') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 16 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', '21684719', '1347116604', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116558', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116511', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116495', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116470', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116461', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116226', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116176', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116113', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116046', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116011', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347115756', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347115728', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347115693', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347115684', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347115680', None, None, None, None, None, '2688618')] time used for this insertion : 0.017708539962768555 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.980590581893921 time spend to save output : 0.01859903335571289 total time spend for step 4 : 1.9991896152496338 step5:split_time_score Tue Mar 25 08:21:36 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21684719'] 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 : [('21684719',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21684719) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1347116495: {'path': 'temp/1742887294_308668_1347116495_8d3a46b607a3c0e1507f5a675573d8bb.jpg', 'extension': 'jpg'}, 1347116511: {'path': 'temp/1742887294_308668_1347116511_84ef58f1c6b909a4a6dc8a0adcad79e0.jpg', 'extension': 'jpg'}, 1347116558: {'path': 'temp/1742887294_308668_1347116558_8b61a0700cb2600af793e655b68cec1a.jpg', 'extension': 'jpg'}, 1347116604: {'path': 'temp/1742887294_308668_1347116604_9ec83e0f8c8c4c53731e1748bf9313ee.jpg', 'extension': 'jpg'}, 1347115680: {'path': 'temp/1742887294_308668_1347115680_b898a9692dcfe9cae969e5e901183d33.jpg', 'extension': 'jpg'}, 1347115684: {'path': 'temp/1742887294_308668_1347115684_d06d9dd68416151e0f4805fbc71ec588.jpg', 'extension': 'jpg'}, 1347115693: {'path': 'temp/1742887294_308668_1347115693_ecf20ca952a909fd542f5c3d0d16ec96.jpg', 'extension': 'jpg'}, 1347115728: {'path': 'temp/1742887294_308668_1347115728_13ff1268515d682170a059e5a5b05abc.jpg', 'extension': 'jpg'}, 1347115756: {'path': 'temp/1742887294_308668_1347115756_10dd7a7513182990bf7df30bc2d5e9c3.jpg', 'extension': 'jpg'}, 1347116011: {'path': 'temp/1742887294_308668_1347116011_74251dc0f1629200d892575c9ce005f6.jpg', 'extension': 'jpg'}, 1347116046: {'path': 'temp/1742887294_308668_1347116046_0e038da1d86686e8371c3e6923eef0ff.jpg', 'extension': 'jpg'}, 1347116113: {'path': 'temp/1742887294_308668_1347116113_cc01612dc7a588c11d13051fbf5f2322.jpg', 'extension': 'jpg'}, 1347116176: {'path': 'temp/1742887294_308668_1347116176_22d62dda8b989f16c7346abf36d4f4a6.jpg', 'extension': 'jpg'}, 1347116226: {'path': 'temp/1742887294_308668_1347116226_e1246346ee32c00b86444bbf7f14cc6d.jpg', 'extension': 'jpg'}, 1347116461: {'path': 'temp/1742887294_308668_1347116461_9fa039cc12c1a3b85b6c404bae654247.jpg', 'extension': 'jpg'}, 1347116470: {'path': 'temp/1742887294_308668_1347116470_211e4e4341e6909331e26d444ab303dc.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 = 21684719; (('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 = 21684719 group by h (('08', 16),) 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=21684719 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 (21684719) 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 (21684719) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 25032025 21684719 Nombre de photos uploadées : 16 / 23040 (0%) 25032025 21684719 Nombre de photos taguées (types de déchets): 0 / 16 (0%) 25032025 21684719 Nombre de photos taguées (volume) : 0 / 16 (0%) [{'photo_id': 1347115756, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/10dd7a7513182990bf7df30bc2d5e9c3.jpg', 'username': None, 'uploaded_at': 1742887036, 'text': 'image_25032025_08_15_05_10155.jpg'}, {'photo_id': 1347115728, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/13ff1268515d682170a059e5a5b05abc.jpg', 'username': None, 'uploaded_at': 1742887036, 'text': 'image_25032025_08_15_15_10137.jpg'}, {'photo_id': 1347115693, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/ecf20ca952a909fd542f5c3d0d16ec96.jpg', 'username': None, 'uploaded_at': 1742887036, 'text': 'image_25032025_08_15_25_10135.jpg'}, {'photo_id': 1347115684, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/25/d06d9dd68416151e0f4805fbc71ec588.jpg', 'username': None, 'uploaded_at': 1742887036, 'text': 'image_25032025_08_15_34_9125.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.5762786865234375e-06 elapsed_time : order_list_meta_photo_and_scores 9.5367431640625e-06 ???????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0011572837829589844 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21684719, '2025-03-25' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1685799,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.024796485900878906 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= 1685799 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1685799, 'dashboard_run_id': 1694281, 'mtr_portfolio_id': 21682484, 'dashboard_result_id': 9606114, '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_P21682484_25-03-2025_07_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21682545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21682546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21682547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21682548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21682549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21682550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21682551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21682552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21682553, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21682554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21682555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21682556, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1694281, 'mtr_portfolio_id': 21683084, 'dashboard_result_id': 9606115, '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_P21683084_25-03-2025_08_05_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21683085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21683086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21683087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21683088, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21683089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21683090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21683091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21683092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21683093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21683094, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21683095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21683096, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1694281, 'mtr_portfolio_id': 21683744, 'dashboard_result_id': 9606116, '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_P21683744_25-03-2025_08_21_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21683745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21683746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21683747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21683748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21683749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21683750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21683751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21683752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21683753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21683754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21683755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21683756, 'pht': 3726}}"}, {'dashboat_entry_day': 1685799, 'dashboard_run_id': 1694281, 'mtr_portfolio_id': 21684719, 'dashboard_result_id': 9606119, '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 = 21682484 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': 2688417, 'mtr_portfolio_id': 21682484, 'created_at': datetime.datetime(2025, 3, 25, 7, 49, 1), 'result': '0.07021499748483895', 'result_long': None, 'result_double': None}] Qualite : 0.07021499748483895 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21682484 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21682484_25-03-2025_07_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21682484 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_P21682484_25-03-2025_07_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21682545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21682546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21682547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21682548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21682549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21682550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21682551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21682552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21682553, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21682554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21682555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21682556, 'pht': 3726}}" where mtr_portfolio_id = 21682484 and dashboard_run_id = 1694281 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`=21682484 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9606114, 0.07021499748483895, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21682484_25-03-2025_07_49_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21682545, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21682546, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21682547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21682548, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21682549, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21682550, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21682551, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21682552, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21682553, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21682554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21682555, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21682556, '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 = 21683084 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': 2688453, 'mtr_portfolio_id': 21683084, 'created_at': datetime.datetime(2025, 3, 25, 8, 5, 31), 'result': '0.08025751073227201', 'result_long': None, 'result_double': None}] Qualite : 0.08025751073227201 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21683084 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21683084_25-03-2025_08_05_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21683084 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_P21683084_25-03-2025_08_05_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21683085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21683086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21683087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21683088, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21683089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21683090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21683091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21683092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21683093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21683094, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21683095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21683096, 'pht': 3726}}" where mtr_portfolio_id = 21683084 and dashboard_run_id = 1694281 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`=21683084 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9606115, 0.08025751073227201, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21683084_25-03-2025_08_05_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21683085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21683086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21683087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21683088, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21683089, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21683090, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21683091, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21683092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21683093, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21683094, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21683095, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21683096, '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 = 21683744 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': 2688544, 'mtr_portfolio_id': 21683744, 'created_at': datetime.datetime(2025, 3, 25, 8, 20, 59), 'result': '0.07941035170903972', 'result_long': None, 'result_double': None}] Qualite : 0.07941035170903972 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21683744 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21683744_25-03-2025_08_21_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21683744 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_P21683744_25-03-2025_08_21_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21683745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21683746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21683747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21683748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21683749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21683750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21683751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21683752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21683753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21683754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21683755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21683756, 'pht': 3726}}" where mtr_portfolio_id = 21683744 and dashboard_run_id = 1694281 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`=21683744 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9606116, 0.07941035170903972, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21683744_25-03-2025_08_21_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21683745, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21683746, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21683747, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21683748, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21683749, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21683750, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21683751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21683752, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21683753, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21683754, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21683755, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21683756, '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 = 21684719 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 = 21684719 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 = 21684719 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 21684719 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 = 21684719 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 = 21684719 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21684719_25-03-2025_08_21_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21684719 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_P21684719_25-03-2025_08_21_35.pdf'}" where mtr_portfolio_id = 21684719 and dashboard_run_id = 1694281 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (21682484,21683084,21683744,21684719) result : ((1347105202,), (1347105224,), (1347105233,), (1347105245,), (1347105338,), (1347105346,), (1347105351,), (1347105362,), (1347105504,), (1347105511,), (1347105514,), (1347105572,), (1347105590,), (1347105705,), (1347105736,), (1347105751,), (1347105757,), (1347105897,), (1347105929,), (1347105950,), (1347105958,), (1347105974,), (1347105982,), (1347106156,), (1347106164,), (1347106166,), (1347106324,), (1347106331,), (1347106335,), (1347106343,), (1347106353,), (1347106360,), (1347106393,), (1347106404,), (1347106413,), (1347106419,), (1347106468,), (1347106471,), (1347106479,), (1347106495,), (1347106511,), (1347106721,), (1347106733,), (1347106736,), (1347106745,), (1347106748,), (1347106756,), (1347106793,), (1347106798,), (1347106801,), (1347106860,), (1347106863,), (1347106866,), (1347106918,), (1347106923,), (1347107024,), (1347107027,), (1347107029,), (1347107040,), (1347107048,), (1347107055,), (1347107221,), (1347107224,), (1347107228,), (1347107298,), (1347107465,), (1347107470,), (1347107475,), (1347107481,), (1347107484,), (1347107492,), (1347107681,), (1347107610,), (1347107619,), (1347107671,), (1347107768,), (1347107773,), (1347107778,), (1347107784,), (1347107789,), (1347107817,), (1347107967,), (1347108010,), (1347108018,), (1347108105,), (1347108109,), (1347108113,), (1347108119,), (1347108177,), (1347108179,), (1347108180,), (1347108186,), (1347108293,), (1347108297,), (1347108301,), (1347108311,), (1347108322,), (1347108544,), (1347108555,), (1347108562,), (1347108570,), (1347108580,), (1347108842,), (1347108849,), (1347108901,), (1347108905,), (1347108910,), (1347108970,), (1347108976,), (1347108980,), (1347108988,), (1347108992,), (1347108997,), (1347109304,), (1347109342,), (1347109414,), (1347109433,), (1347109565,), (1347109566,), (1347109583,), (1347109646,), (1347109717,), (1347109801,), (1347110063,), (1347110066,), (1347110070,), (1347110093,), (1347110108,), (1347110116,), (1347110195,), (1347110206,), (1347110209,), (1347110212,), (1347110239,), (1347110243,), (1347111070,), (1347111101,), (1347111156,), (1347111205,), (1347111255,), (1347111654,), (1347111485,), (1347111538,), (1347111605,), (1347111872,), (1347111913,), (1347112024,), (1347112166,), (1347112235,), (1347112304,), (1347112619,), (1347112676,), (1347112705,), (1347112721,), (1347113014,), (1347113024,), (1347113036,), (1347113075,), (1347113083,), (1347113088,), (1347113137,), (1347113302,), (1347113448,), (1347113535,), (1347113566,), (1347113583,), (1347113868,), (1347113908,), (1347114256,), (1347114278,), (1347114302,), (1347114327,), (1347114348,), (1347114365,), (1347114414,), (1347114418,), (1347114424,), (1347114430,), (1347114439,), (1347114446,), (1347114516,), (1347114532,), (1347114544,), (1347114550,), (1347114679,), (1347114684,), (1347114701,), (1347114707,), (1347114735,), (1347114749,), (1347115304,), (1347115332,), (1347115350,), (1347115356,), (1347115363,), (1347115390,), (1347115468,), (1347115530,), (1347115589,), (1347115612,), (1347115637,), (1347115780,), (1347115680,), (1347115684,), (1347115693,), (1347115728,), (1347115756,), (1347116011,), (1347116046,), (1347116113,), (1347116176,), (1347116226,), (1347116461,), (1347116470,), (1347116495,), (1347116511,), (1347116558,), (1347116604,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'25032025': {'nb_upload': 16, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21684719]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1347116604, 1347116558, 1347116511, 1347116495, 1347116470, 1347116461, 1347116226, 1347116176, 1347116113, 1347116046, 1347116011, 1347115756, 1347115728, 1347115693, 1347115684, 1347115680] map_info['map_portfolio_photo'] : {21684719: [1347116604, 1347116558, 1347116511, 1347116495, 1347116470, 1347116461, 1347116226, 1347116176, 1347116113, 1347116046, 1347116011, 1347115756, 1347115728, 1347115693, 1347115684, 1347115680]} final : True mtd_id 4302 list_pids : [1347116604, 1347116558, 1347116511, 1347116495, 1347116470, 1347116461, 1347116226, 1347116176, 1347116113, 1347116046, 1347116011, 1347115756, 1347115728, 1347115693, 1347115684, 1347115680] Looping around the photos to save general results len do output : 1 /21684719Didn'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, '2688618') ('4302', '21684719', '1347116604', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116558', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116511', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116495', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116470', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116461', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116226', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116176', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116113', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116046', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347116011', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347115756', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347115728', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347115693', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347115684', None, None, None, None, None, '2688618') ('4302', None, None, None, None, None, None, None, '2688618') ('4302', '21684719', '1347115680', None, None, None, None, None, '2688618') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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, '21684719', 'None', None, None, None, None, '2688618'), ('4302', '21684719', '1347116604', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116558', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116511', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116495', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116470', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116461', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116226', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116176', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116113', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116046', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347116011', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347115756', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347115728', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347115693', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347115684', None, None, None, None, None, '2688618'), ('4302', '21684719', '1347115680', None, None, None, None, None, '2688618')] time used for this insertion : 0.017538785934448242 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.45116519927978516 time spend to save output : 0.01787543296813965 total time spend for step 5 : 0.4690406322479248 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 (2688618) 2.67user 2.25system 0:11.17elapsed 44%CPU (0avgtext+0avgdata 160396maxresident)k 1248inputs+9728outputs (31major+78243minor)pagefaults 0swaps