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 : 1466113 load datou : 4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! Unexpected type seems boolean for variable list_input_json ERROR or WARNING : can't parse json string Expecting value: line 1 column 1 (char 0) Tried to parse : None insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22078908 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22078873 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Teint_Dans_La_Masse' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22078908) result : ((1350274374,), (1350274376,), (1350274378,), (1350274826,), (1350274827,), (1350274828,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22078873) result : ((1350272875,), (1350272929,), (1350272986,), (1350273037,), (1350273384,), (1350273396,), (1350273401,), (1350273416,), (1350273698,), (1350273729,), (1350273768,), (1350273962,), (1350273997,), (1350274048,), (1350274377,), (1350274404,), (1350274447,), (1350274508,), (1350274573,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22078909 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22078873 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='metal' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22078909) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22078873) result : ((1350272875,), (1350272929,), (1350272986,), (1350273037,), (1350273384,), (1350273396,), (1350273401,), (1350273416,), (1350273698,), (1350273729,), (1350273768,), (1350273962,), (1350273997,), (1350274048,), (1350274377,), (1350274404,), (1350274447,), (1350274508,), (1350274573,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22078910 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22078873 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='cartonnette' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22078910) result : ((1350274388,), (1350274390,), (1350274392,), (1350274394,), (1350274396,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22078873) result : ((1350272875,), (1350272929,), (1350272986,), (1350273037,), (1350273384,), (1350273396,), (1350273401,), (1350273416,), (1350273698,), (1350273729,), (1350273768,), (1350273962,), (1350273997,), (1350274048,), (1350274377,), (1350274404,), (1350274447,), (1350274508,), (1350274573,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22078911 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22078873 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='environnement' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22078911) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22078873) result : ((1350272875,), (1350272929,), (1350272986,), (1350273037,), (1350273384,), (1350273396,), (1350273401,), (1350273416,), (1350273698,), (1350273729,), (1350273768,), (1350273962,), (1350273997,), (1350274048,), (1350274377,), (1350274404,), (1350274447,), (1350274508,), (1350274573,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22078912 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22078873 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='autre_refus' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22078912) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22078873) result : ((1350272875,), (1350272929,), (1350272986,), (1350273037,), (1350273384,), (1350273396,), (1350273401,), (1350273416,), (1350273698,), (1350273729,), (1350273768,), (1350273962,), (1350273997,), (1350274048,), (1350274377,), (1350274404,), (1350274447,), (1350274508,), (1350274573,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22078913 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22078873 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='plastique' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22078913) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22078873) result : ((1350272875,), (1350272929,), (1350272986,), (1350273037,), (1350273384,), (1350273396,), (1350273401,), (1350273416,), (1350273698,), (1350273729,), (1350273768,), (1350273962,), (1350273997,), (1350274048,), (1350274377,), (1350274404,), (1350274447,), (1350274508,), (1350274573,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 22078914 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=22078873 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='mal_croppe' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22078914) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22078873) result : ((1350272875,), (1350272929,), (1350272986,), (1350273037,), (1350273384,), (1350273396,), (1350273401,), (1350273416,), (1350273698,), (1350273729,), (1350273768,), (1350273962,), (1350273997,), (1350274048,), (1350274377,), (1350274404,), (1350274447,), (1350274508,), (1350274573,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22078873 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_brun','flou','mal_croppe','cartonnette','plastique','Carton_gris','Teint_Dans_La_Masse','kraft','autre_refus','environnement','papier')) 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`=22078873 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','Carton_brun','flou','mal_croppe','cartonnette','plastique','Carton_gris','Teint_Dans_La_Masse','kraft','autre_refus','environnement','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 22078873, 'sub_port_id': 22078915, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566067, 'last_updated_at': datetime.datetime(2025, 4, 16, 14, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 14, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 14, 19, 32)}, 'kraft': {'main_port_id': 22078873, 'sub_port_id': 22078916, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566068, 'last_updated_at': datetime.datetime(2025, 4, 16, 14, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 14, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 14, 19, 32)}, 'Carton_gris': {'main_port_id': 22078873, 'sub_port_id': 22078917, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566069, 'last_updated_at': datetime.datetime(2025, 4, 16, 14, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 14, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 14, 19, 32)}, 'papier': {'main_port_id': 22078873, 'sub_port_id': 22078918, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566070, 'last_updated_at': datetime.datetime(2025, 4, 16, 14, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 14, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 14, 19, 32)}, 'flou': {'main_port_id': 22078873, 'sub_port_id': 22078919, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566071, 'last_updated_at': datetime.datetime(2025, 4, 16, 14, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 14, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 14, 19, 32)}, 'Teint_Dans_La_Masse': {'main_port_id': 22078873, 'sub_port_id': 22078920, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566072, 'last_updated_at': datetime.datetime(2025, 4, 16, 14, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 14, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 14, 19, 32)}, 'metal': {'main_port_id': 22078873, 'sub_port_id': 22078922, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566073, 'last_updated_at': datetime.datetime(2025, 4, 16, 14, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 14, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 14, 19, 32)}, 'cartonnette': {'main_port_id': 22078873, 'sub_port_id': 22078924, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566074, 'last_updated_at': datetime.datetime(2025, 4, 16, 14, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 14, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 14, 19, 32)}, 'environnement': {'main_port_id': 22078873, 'sub_port_id': 22078926, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566075, 'last_updated_at': datetime.datetime(2025, 4, 16, 14, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 14, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 14, 19, 32)}, 'autre_refus': {'main_port_id': 22078873, 'sub_port_id': 22078928, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566076, 'last_updated_at': datetime.datetime(2025, 4, 16, 14, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 14, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 14, 19, 32)}, 'plastique': {'main_port_id': 22078873, 'sub_port_id': 22078930, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566077, 'last_updated_at': datetime.datetime(2025, 4, 16, 14, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 14, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 14, 19, 32)}, 'mal_croppe': {'main_port_id': 22078873, 'sub_port_id': 22078932, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14566078, 'last_updated_at': datetime.datetime(2025, 4, 16, 14, 19, 32), 'last_updated_at_desc': datetime.datetime(2025, 4, 16, 14, 19, 32), 'last_updated_at_asc': datetime.datetime(2025, 4, 16, 14, 19, 32)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22078915,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22078903 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22078916,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22078904 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22078917,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22078905 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22078918,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22078906 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22078919,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22078907 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22078920,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22078908 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22078922,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22078909 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22078924,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22078910 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22078926,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22078911 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22078928,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22078912 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22078930,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22078913 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22078932,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22078914 lien utilise dans velours : https://www.fotonower.com/velours/22078915,22078916,22078917,22078918,22078919,22078920,22078922,22078924,22078926,22078928,22078930,22078932?tags=Carton_brun,kraft,Carton_gris,papier,flou,Teint_Dans_La_Masse,metal,cartonnette,environnement,autre_refus,plastique,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22078873]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350274573, 1350274508, 1350274447, 1350274404, 1350274377, 1350274048, 1350273997, 1350273962] map_info['map_portfolio_photo'] : {22078873: [1350274573, 1350274508, 1350274447, 1350274404, 1350274377, 1350274048, 1350273997, 1350273962, 1350273768, 1350273729, 1350273698, 1350273416, 1350273401, 1350273396, 1350273384, 1350273037, 1350272986, 1350272929, 1350272875]} final : False mtd_id 4302 list_pids : [1350274573, 1350274508, 1350274447, 1350274404, 1350274377, 1350274048, 1350273997, 1350273962] Looping around the photos to save general results len do output : 1 /22078873. 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, '2726106') ('4302', '22078873', '1350274573', None, None, None, None, None, '2726106') ('4302', None, None, None, None, None, None, None, '2726106') ('4302', '22078873', '1350274508', None, None, None, None, None, '2726106') ('4302', None, None, None, None, None, None, None, '2726106') ('4302', '22078873', '1350274447', None, None, None, None, None, '2726106') ('4302', None, None, None, None, None, None, None, '2726106') ('4302', '22078873', '1350274404', None, None, None, None, None, '2726106') ('4302', None, None, None, None, None, None, None, '2726106') ('4302', '22078873', '1350274377', None, None, None, None, None, '2726106') ('4302', None, None, None, None, None, None, None, '2726106') ('4302', '22078873', '1350274048', None, None, None, None, None, '2726106') ('4302', None, None, None, None, None, None, None, '2726106') ('4302', '22078873', '1350273997', None, None, None, None, None, '2726106') ('4302', None, None, None, None, None, None, None, '2726106') ('4302', '22078873', '1350273962', None, None, None, None, None, '2726106') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22078873', "{'Carton_brun': 22078903, 'kraft': 22078904, 'Carton_gris': 22078905, 'papier': 22078906, 'flou': 22078907, 'Teint_Dans_La_Masse': 22078908, 'metal': 22078909, 'cartonnette': 22078910, 'environnement': 22078911, 'autre_refus': 22078912, 'plastique': 22078913, 'mal_croppe': 22078914}", None, None, None, None, '2726106'), ('4302', '22078873', '1350274573', None, None, None, None, None, '2726106'), ('4302', '22078873', '1350274508', None, None, None, None, None, '2726106'), ('4302', '22078873', '1350274447', None, None, None, None, None, '2726106'), ('4302', '22078873', '1350274404', None, None, None, None, None, '2726106'), ('4302', '22078873', '1350274377', None, None, None, None, None, '2726106'), ('4302', '22078873', '1350274048', None, None, None, None, None, '2726106'), ('4302', '22078873', '1350273997', None, None, None, None, None, '2726106'), ('4302', '22078873', '1350273962', None, None, None, None, None, '2726106')] time used for this insertion : 0.017505884170532227 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4284029006958008 time spend to save output : 0.017991065979003906 total time spend for step 1 : 1.4463939666748047 step2:final Wed Apr 16 14:21:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22078873) 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 22078873 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350273037,1350272986,1350272929,1350272875,1350273416,1350273401,1350273396,1350273384,1350273768,1350273729,1350273698,1350274048,1350273997,1350273962,1350274573,1350274508,1350274447,1350274404,1350274377); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22078873]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350274573: ('0.09424473248202207',), 1350274508: ('0.09424473248202207',), 1350274447: ('0.09424473248202207',), 1350274404: ('0.09424473248202207',), 1350274377: ('0.09424473248202207',), 1350274048: ('0.09424473248202207',), 1350273997: ('0.09424473248202207',), 1350273962: ('0.09424473248202207',)} new output for save of step final : {1350274573: ('0.09424473248202207',), 1350274508: ('0.09424473248202207',), 1350274447: ('0.09424473248202207',), 1350274404: ('0.09424473248202207',), 1350274377: ('0.09424473248202207',), 1350274048: ('0.09424473248202207',), 1350273997: ('0.09424473248202207',), 1350273962: ('0.09424473248202207',)} [1350274573, 1350274508, 1350274447, 1350274404, 1350274377, 1350274048, 1350273997, 1350273962] map_info['map_portfolio_photo'] : {22078873: [1350274573, 1350274508, 1350274447, 1350274404, 1350274377, 1350274048, 1350273997, 1350273962, 1350273768, 1350273729, 1350273698, 1350273416, 1350273401, 1350273396, 1350273384, 1350273037, 1350272986, 1350272929, 1350272875]} final : False mtd_id 4302 list_pids : [1350274573, 1350274508, 1350274447, 1350274404, 1350274377, 1350274048, 1350273997, 1350273962] Looping around the photos to save general results len do output : 8 /1350274573.Didn't retrieve data . /1350274508.Didn't retrieve data . /1350274447.Didn't retrieve data . /1350274404.Didn't retrieve data . /1350274377.Didn't retrieve data . /1350274048.Didn't retrieve data . /1350273997.Didn't retrieve data . /1350273962.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, '2726106') ('4302', '22078873', '1350274573', None, None, None, None, None, '2726106') ('4302', None, None, None, None, None, None, None, '2726106') ('4302', '22078873', '1350274508', None, None, None, None, None, '2726106') ('4302', None, None, None, None, None, None, None, '2726106') ('4302', '22078873', '1350274447', None, None, None, None, None, '2726106') ('4302', None, None, None, None, None, None, None, '2726106') ('4302', '22078873', '1350274404', None, None, None, None, None, '2726106') ('4302', None, None, None, None, None, None, None, '2726106') ('4302', '22078873', '1350274377', None, None, None, None, None, '2726106') ('4302', None, None, None, None, None, None, None, '2726106') ('4302', '22078873', '1350274048', None, None, None, None, None, '2726106') ('4302', None, None, None, None, None, None, None, '2726106') ('4302', '22078873', '1350273997', None, None, None, None, None, '2726106') ('4302', None, None, None, None, None, None, None, '2726106') ('4302', '22078873', '1350273962', None, None, None, None, None, '2726106') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 24 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22078873', '1350274573', '0.09424473248202207', None, None, None, None, '2726106'), ('4302', '22078873', '1350274508', '0.09424473248202207', None, None, None, None, '2726106'), ('4302', '22078873', '1350274447', '0.09424473248202207', None, None, None, None, '2726106'), ('4302', '22078873', '1350274404', '0.09424473248202207', None, None, None, None, '2726106'), ('4302', '22078873', '1350274377', '0.09424473248202207', None, None, None, None, '2726106'), ('4302', '22078873', '1350274048', '0.09424473248202207', None, None, None, None, '2726106'), ('4302', '22078873', '1350273997', '0.09424473248202207', None, None, None, None, '2726106'), ('4302', '22078873', '1350273962', '0.09424473248202207', None, None, None, None, '2726106')] time used for this insertion : 0.015928030014038086 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07006549835205078 time spend to save output : 0.016474008560180664 total time spend for step 2 : 0.08653950691223145 step3:velours_tree Wed Apr 16 14:21:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22078873: [{'Carton_brun': 22078903, 'kraft': 22078904, 'Carton_gris': 22078905, 'papier': 22078906, 'flou': 22078907, 'Teint_Dans_La_Masse': 22078908, 'metal': 22078909, 'cartonnette': 22078910, 'environnement': 22078911, 'autre_refus': 22078912, 'plastique': 22078913, 'mal_croppe': 22078914}]} input_args_next_step : {22078873: ()} output_args : {22078873: [{'Carton_brun': 22078903, 'kraft': 22078904, 'Carton_gris': 22078905, 'papier': 22078906, 'flou': 22078907, 'Teint_Dans_La_Masse': 22078908, 'metal': 22078909, 'cartonnette': 22078910, 'environnement': 22078911, 'autre_refus': 22078912, 'plastique': 22078913, 'mal_croppe': 22078914}]} args : 22078873 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Carton_brun': 22078903, 'kraft': 22078904, 'Carton_gris': 22078905, 'papier': 22078906, 'flou': 22078907, 'Teint_Dans_La_Masse': 22078908, 'metal': 22078909, 'cartonnette': 22078910, 'environnement': 22078911, 'autre_refus': 22078912, 'plastique': 22078913, 'mal_croppe': 22078914},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22078873) 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([22078873]) 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.8632230758666992 time spend to save output : 7.891654968261719e-05 total time spend for step 3 : 0.8633019924163818 step4:send_mail_cod Wed Apr 16 14:21:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1350274573: ('0.09424473248202207',), 1350274508: ('0.09424473248202207',), 1350274447: ('0.09424473248202207',), 1350274404: ('0.09424473248202207',), 1350274377: ('0.09424473248202207',), 1350274048: ('0.09424473248202207',), 1350273997: ('0.09424473248202207',), 1350273962: ('0.09424473248202207',)} input_args_next_step : {1350274573: ()} output_args : {1350274573: ('0.09424473248202207',), 1350274508: ('0.09424473248202207',), 1350274447: ('0.09424473248202207',), 1350274404: ('0.09424473248202207',), 1350274377: ('0.09424473248202207',), 1350274048: ('0.09424473248202207',), 1350273997: ('0.09424473248202207',), 1350273962: ('0.09424473248202207',)} args : 1350274573 depend.output_id : 0 input_args_next_step : {1350274573: ('0.09424473248202207',), 1350274508: ()} output_args : {1350274573: ('0.09424473248202207',), 1350274508: ('0.09424473248202207',), 1350274447: ('0.09424473248202207',), 1350274404: ('0.09424473248202207',), 1350274377: ('0.09424473248202207',), 1350274048: ('0.09424473248202207',), 1350273997: ('0.09424473248202207',), 1350273962: ('0.09424473248202207',)} args : 1350274508 depend.output_id : 0 input_args_next_step : {1350274573: ('0.09424473248202207',), 1350274508: ('0.09424473248202207',), 1350274447: ()} output_args : {1350274573: ('0.09424473248202207',), 1350274508: ('0.09424473248202207',), 1350274447: ('0.09424473248202207',), 1350274404: ('0.09424473248202207',), 1350274377: ('0.09424473248202207',), 1350274048: ('0.09424473248202207',), 1350273997: ('0.09424473248202207',), 1350273962: ('0.09424473248202207',)} args : 1350274447 depend.output_id : 0 input_args_next_step : {1350274573: ('0.09424473248202207',), 1350274508: ('0.09424473248202207',), 1350274447: ('0.09424473248202207',), 1350274404: ()} output_args : {1350274573: ('0.09424473248202207',), 1350274508: ('0.09424473248202207',), 1350274447: ('0.09424473248202207',), 1350274404: ('0.09424473248202207',), 1350274377: ('0.09424473248202207',), 1350274048: ('0.09424473248202207',), 1350273997: ('0.09424473248202207',), 1350273962: ('0.09424473248202207',)} args : 1350274404 depend.output_id : 0 input_args_next_step : {1350274573: ('0.09424473248202207',), 1350274508: ('0.09424473248202207',), 1350274447: ('0.09424473248202207',), 1350274404: ('0.09424473248202207',), 1350274377: ()} output_args : {1350274573: ('0.09424473248202207',), 1350274508: ('0.09424473248202207',), 1350274447: ('0.09424473248202207',), 1350274404: ('0.09424473248202207',), 1350274377: ('0.09424473248202207',), 1350274048: ('0.09424473248202207',), 1350273997: ('0.09424473248202207',), 1350273962: ('0.09424473248202207',)} args : 1350274377 depend.output_id : 0 input_args_next_step : {1350274573: ('0.09424473248202207',), 1350274508: ('0.09424473248202207',), 1350274447: ('0.09424473248202207',), 1350274404: ('0.09424473248202207',), 1350274377: ('0.09424473248202207',), 1350274048: ()} output_args : {1350274573: ('0.09424473248202207',), 1350274508: ('0.09424473248202207',), 1350274447: ('0.09424473248202207',), 1350274404: ('0.09424473248202207',), 1350274377: ('0.09424473248202207',), 1350274048: ('0.09424473248202207',), 1350273997: ('0.09424473248202207',), 1350273962: ('0.09424473248202207',)} args : 1350274048 depend.output_id : 0 input_args_next_step : {1350274573: ('0.09424473248202207',), 1350274508: ('0.09424473248202207',), 1350274447: ('0.09424473248202207',), 1350274404: ('0.09424473248202207',), 1350274377: ('0.09424473248202207',), 1350274048: ('0.09424473248202207',), 1350273997: ()} output_args : {1350274573: ('0.09424473248202207',), 1350274508: ('0.09424473248202207',), 1350274447: ('0.09424473248202207',), 1350274404: ('0.09424473248202207',), 1350274377: ('0.09424473248202207',), 1350274048: ('0.09424473248202207',), 1350273997: ('0.09424473248202207',), 1350273962: ('0.09424473248202207',)} args : 1350273997 depend.output_id : 0 input_args_next_step : {1350274573: ('0.09424473248202207',), 1350274508: ('0.09424473248202207',), 1350274447: ('0.09424473248202207',), 1350274404: ('0.09424473248202207',), 1350274377: ('0.09424473248202207',), 1350274048: ('0.09424473248202207',), 1350273997: ('0.09424473248202207',), 1350273962: ()} output_args : {1350274573: ('0.09424473248202207',), 1350274508: ('0.09424473248202207',), 1350274447: ('0.09424473248202207',), 1350274404: ('0.09424473248202207',), 1350274377: ('0.09424473248202207',), 1350274048: ('0.09424473248202207',), 1350273997: ('0.09424473248202207',), 1350273962: ('0.09424473248202207',)} args : 1350273962 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 : {22078873: [{'Carton_brun': 22078903, 'kraft': 22078904, 'Carton_gris': 22078905, 'papier': 22078906, 'flou': 22078907, 'Teint_Dans_La_Masse': 22078908, 'metal': 22078909, 'cartonnette': 22078910, 'environnement': 22078911, 'autre_refus': 22078912, 'plastique': 22078913, 'mal_croppe': 22078914}]} input_args_next_step : {1350274573: ('0.09424473248202207',), 1350274508: ('0.09424473248202207',), 1350274447: ('0.09424473248202207',), 1350274404: ('0.09424473248202207',), 1350274377: ('0.09424473248202207',), 1350274048: ('0.09424473248202207',), 1350273997: ('0.09424473248202207',), 1350273962: ('0.09424473248202207',), 22078873: ()} output_args : {22078873: [{'Carton_brun': 22078903, 'kraft': 22078904, 'Carton_gris': 22078905, 'papier': 22078906, 'flou': 22078907, 'Teint_Dans_La_Masse': 22078908, 'metal': 22078909, 'cartonnette': 22078910, 'environnement': 22078911, 'autre_refus': 22078912, 'plastique': 22078913, 'mal_croppe': 22078914}]} args : 22078873 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :9, first value : ('0.09424473248202207',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22078873) 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 (1350274573,1350274508,1350274447,1350274404,1350274377,1350274048,1350273997,1350273962) Found this number of photos: 8 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350273962 begin to download photo : 1350274048 begin to download photo : 1350274404 begin to download photo : 1350274508 download finish for photo 1350273962 begin to download photo : 1350273997 download finish for photo 1350274508 begin to download photo : 1350274573 download finish for photo 1350274048 begin to download photo : 1350274377 download finish for photo 1350274404 begin to download photo : 1350274447 download finish for photo 1350273997 download finish for photo 1350274377 download finish for photo 1350274573 download finish for photo 1350274447 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette220789041744806061/ imagette220789071744806061/ imagette220789091744806061/ length of list_filenames : 8 ; length of list_pids : 8 ; length of list_args : 8 results_Auto_P22078873_16-04-2025_14_21_01.pdf 22078904 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=22078904 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220789041744806061 22078907 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=22078907 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220789071744806061 22078909 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=22078909 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220789091744806061 22078910 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=22078910 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350274388: '1744805982_2800980_1350273037_35de8a5b966f9ac761ed15e6a5b111ba_rle_crop_3749070166_0.png', 1350274390: '1744805982_2800980_1350272986_3f54c9bfa5fdca349d2fb02814d9e578_rle_crop_3749070181_0.png', 1350274392: '1744805982_2800980_1350272929_0d89a2f09d6af8eb8c3f35689732be12_rle_crop_3749070199_0.png', 1350274394: '1744805982_2800980_1350272929_0d89a2f09d6af8eb8c3f35689732be12_rle_crop_3749070201_0.png', 1350274396: '1744805982_2800980_1350272875_b02337f4287d58dd0fbf4bdfc56956a8_rle_crop_3749070207_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/7c07e25733ae60e568a564dd4dbe50b9_15129562.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/611751d40c60000ee8bc6688cce55500_48685052.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/94b68801e5ffb200f25a48e58fdbea43_21312976.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/83e16fbafbd591b1aa8c2df418737ed4_20257125.png change filename to text .imagette220789101744806061/ imagette220789101744806061/1744805982_2800980_1350272929_0d89a2f09d6af8eb8c3f35689732be12_rle_crop_3749070201_0.png.png imagette220789101744806061/1744805982_2800980_1350272875_b02337f4287d58dd0fbf4bdfc56956a8_rle_crop_3749070207_0.png.png imagette220789101744806061/1744805982_2800980_1350272986_3f54c9bfa5fdca349d2fb02814d9e578_rle_crop_3749070181_0.png.png imagette220789101744806061/1744805982_2800980_1350272929_0d89a2f09d6af8eb8c3f35689732be12_rle_crop_3749070199_0.png.png imagette220789101744806061/1744805982_2800980_1350273037_35de8a5b966f9ac761ed15e6a5b111ba_rle_crop_3749070166_0.png.png imagette220789121744806062/ imagette220789131744806062/ imagette220789141744806062/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/59062fb411d5937eada1ab599ac154f7_63695698.png imagette220789101744806061 22078912 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=22078912 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220789121744806062 22078913 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=22078913 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220789131744806062 22078914 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=22078914 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220789141744806062 22078903 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=22078903 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350274837: '1744806011_1865077_1350273396_314d16ec4165d356e5263a4c2777d5a5_rle_crop_3749070515_0.png', 1350274838: '1744806011_1865077_1350273384_0d551a7a75e02cc5cd13f1404a57db9f_rle_crop_3749070523_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/927807647c828d5da3a084f05254c67d_33256407.png change filename to text .imagette220789031744806062/ imagette220789031744806062/1744806011_1865077_1350273396_314d16ec4165d356e5263a4c2777d5a5_rle_crop_3749070515_0.png.png imagette220789031744806062/1744806011_1865077_1350273384_0d551a7a75e02cc5cd13f1404a57db9f_rle_crop_3749070523_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/28c1bb005cd77a7da05063bfc5ce635e_63309285.png imagette220789031744806062 22078905 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=22078905 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350274381: '1744805982_2800980_1350272929_0d89a2f09d6af8eb8c3f35689732be12_rle_crop_3749070197_0.png', 1350274834: '1744806011_1865077_1350273384_0d551a7a75e02cc5cd13f1404a57db9f_rle_crop_3749070518_0.png', 1350274835: '1744806011_1865077_1350273384_0d551a7a75e02cc5cd13f1404a57db9f_rle_crop_3749070519_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/e0abbff91d294f48ff8df19da9627098_45564311.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/ae809efdab53e173dc5a748313382219_39959977.png change filename to text .imagette220789051744806062/ imagette220789051744806062/1744806011_1865077_1350273384_0d551a7a75e02cc5cd13f1404a57db9f_rle_crop_3749070518_0.png.png imagette220789051744806062/1744806011_1865077_1350273384_0d551a7a75e02cc5cd13f1404a57db9f_rle_crop_3749070519_0.png.png imagette220789051744806062/1744805982_2800980_1350272929_0d89a2f09d6af8eb8c3f35689732be12_rle_crop_3749070197_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/540d946c712cd28b00cf23834dcc194e_53018705.png imagette220789051744806062 22078908 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=22078908 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350274374: '1744805982_2800980_1350273037_35de8a5b966f9ac761ed15e6a5b111ba_rle_crop_3749070168_0.png', 1350274376: '1744805982_2800980_1350273037_35de8a5b966f9ac761ed15e6a5b111ba_rle_crop_3749070172_0.png', 1350274378: '1744805982_2800980_1350272986_3f54c9bfa5fdca349d2fb02814d9e578_rle_crop_3749070184_0.png', 1350274826: '1744806011_1865077_1350273768_ebf938841ca75c3fb24f9a04a5452670_rle_crop_3749070492_0.png', 1350274827: '1744806011_1865077_1350273401_3cbf13bd5932383d666859cd71547ba4_rle_crop_3749070506_0.png', 1350274828: '1744806011_1865077_1350273396_314d16ec4165d356e5263a4c2777d5a5_rle_crop_3749070516_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/159af2c0433c3337066f1b6e6d7fc6ef_528479.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/63d6dd796834a956f57b3a7bc7e6e3f2_67539789.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/0f34b2f966596059f030a139926eb253_84501216.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/1a8ab636c79348949a949495223235fd_92964208.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/0073b28c5606d2ac25f0dcc79c349032_76717737.png change filename to text .imagette220789081744806062/ imagette220789081744806062/1744805982_2800980_1350273037_35de8a5b966f9ac761ed15e6a5b111ba_rle_crop_3749070168_0.png.png imagette220789081744806062/1744806011_1865077_1350273396_314d16ec4165d356e5263a4c2777d5a5_rle_crop_3749070516_0.png.png imagette220789081744806062/1744806011_1865077_1350273401_3cbf13bd5932383d666859cd71547ba4_rle_crop_3749070506_0.png.png imagette220789081744806062/1744805982_2800980_1350272986_3f54c9bfa5fdca349d2fb02814d9e578_rle_crop_3749070184_0.png.png imagette220789081744806062/1744805982_2800980_1350273037_35de8a5b966f9ac761ed15e6a5b111ba_rle_crop_3749070172_0.png.png imagette220789081744806062/1744806011_1865077_1350273768_ebf938841ca75c3fb24f9a04a5452670_rle_crop_3749070492_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/dc621a88bf7078b48f8ea7df0b319d6f_22696712.png imagette220789081744806062 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22078873 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22078915,22078916,22078917,22078918,22078919,22078920,22078922,22078924,22078926,22078928,22078930,22078932?tags=Carton_brun,kraft,Carton_gris,papier,flou,Teint_Dans_La_Masse,metal,cartonnette,environnement,autre_refus,plastique,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1350274573] : ('0.09424473248202207',) no score found for photo 1350274573 We are sending mail with results at report@fotonower.com args[1350274508] : ('0.09424473248202207',) no score found for photo 1350274508 We are sending mail with results at report@fotonower.com args[1350274447] : ('0.09424473248202207',) no score found for photo 1350274447 We are sending mail with results at report@fotonower.com args[1350274404] : ('0.09424473248202207',) no score found for photo 1350274404 We are sending mail with results at report@fotonower.com args[1350274377] : ('0.09424473248202207',) no score found for photo 1350274377 We are sending mail with results at report@fotonower.com args[1350274048] : ('0.09424473248202207',) no score found for photo 1350274048 We are sending mail with results at report@fotonower.com args[1350273997] : ('0.09424473248202207',) no score found for photo 1350273997 We are sending mail with results at report@fotonower.com args[1350273962] : ('0.09424473248202207',) no score found for photo 1350273962 We are sending mail with results at report@fotonower.com refus_total : 0.09424473248202207 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=22078873 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_P22078873_16-04-2025_14_21_01.pdf results_Auto_P22078873_16-04-2025_14_21_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22078873_16-04-2025_14_21_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22078873','results_Auto_P22078873_16-04-2025_14_21_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22078873_16-04-2025_14_21_01.pdf','pdf','','0.13','0.09424473248202207') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22078873]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350274573, 1350274508, 1350274447, 1350274404, 1350274377, 1350274048, 1350273997, 1350273962] map_info['map_portfolio_photo'] : {22078873: [1350274573, 1350274508, 1350274447, 1350274404, 1350274377, 1350274048, 1350273997, 1350273962, 1350273768, 1350273729, 1350273698, 1350273416, 1350273401, 1350273396, 1350273384, 1350273037, 1350272986, 1350272929, 1350272875]} final : False mtd_id 4302 list_pids : [1350274573, 1350274508, 1350274447, 1350274404, 1350274377, 1350274048, 1350273997, 1350273962] 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, '2726106') ('4302', '22078873', '1350274573', None, None, None, None, None, '2726106') ('4302', None, None, None, None, None, None, None, '2726106') ('4302', '22078873', '1350274508', None, None, None, None, None, '2726106') ('4302', None, None, None, None, None, None, None, '2726106') ('4302', '22078873', '1350274447', None, None, None, None, None, '2726106') ('4302', None, None, None, None, None, None, None, '2726106') ('4302', '22078873', '1350274404', None, None, None, None, None, '2726106') ('4302', None, None, None, None, None, None, None, '2726106') ('4302', '22078873', '1350274377', None, None, None, None, None, '2726106') ('4302', None, None, None, None, None, None, None, '2726106') ('4302', '22078873', '1350274048', None, None, None, None, None, '2726106') ('4302', None, None, None, None, None, None, None, '2726106') ('4302', '22078873', '1350273997', None, None, None, None, None, '2726106') ('4302', None, None, None, None, None, None, None, '2726106') ('4302', '22078873', '1350273962', None, None, None, None, None, '2726106') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 8 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22078873', '1350274573', None, None, None, None, None, '2726106'), ('4302', '22078873', '1350274508', None, None, None, None, None, '2726106'), ('4302', '22078873', '1350274447', None, None, None, None, None, '2726106'), ('4302', '22078873', '1350274404', None, None, None, None, None, '2726106'), ('4302', '22078873', '1350274377', None, None, None, None, None, '2726106'), ('4302', '22078873', '1350274048', None, None, None, None, None, '2726106'), ('4302', '22078873', '1350273997', None, None, None, None, None, '2726106'), ('4302', '22078873', '1350273962', None, None, None, None, None, '2726106')] time used for this insertion : 0.016104698181152344 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.2217652797698975 time spend to save output : 0.016384363174438477 total time spend for step 4 : 2.238149642944336 step5:split_time_score Wed Apr 16 14:21:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['22078873'] 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 : [('22078873',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22078873) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350273962: {'path': 'temp/1744806061_1466113_1350273962_0bd17a89d3c7ae55c16ffc026a8f9b9b.jpg', 'extension': 'jpg'}, 1350273997: {'path': 'temp/1744806061_1466113_1350273997_5cf4470e4d035732c26d3978f482b36f.jpg', 'extension': 'jpg'}, 1350274048: {'path': 'temp/1744806061_1466113_1350274048_1a821adc9935ca59c7548dd2c2ba3ee9.jpg', 'extension': 'jpg'}, 1350274377: {'path': 'temp/1744806061_1466113_1350274377_7d7c9acc32665ffff74ce79d468b62cf.jpg', 'extension': 'jpg'}, 1350274508: {'path': 'temp/1744806061_1466113_1350274508_c1fe3bdab1bd9b595b9f3ac68633efdf.jpg', 'extension': 'jpg'}, 1350274573: {'path': 'temp/1744806061_1466113_1350274573_faa15d0b648997d0bc8e379d3a8fae5b.jpg', 'extension': 'jpg'}, 1350274404: {'path': 'temp/1744806061_1466113_1350274404_351e9ee168adab982938d89b4f38f314.jpg', 'extension': 'jpg'}, 1350274447: {'path': 'temp/1744806061_1466113_1350274447_743383c91a4e4234083c5d9eb9b882ac.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 = 22078873; (('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 = 22078873 group by h (('14', 19),) 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=22078873 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 (22078873) 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 (22078873) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 16042025 22078873 Nombre de photos uploadées : 19 / 23040 (0%) 16042025 22078873 Nombre de photos taguées (types de déchets): 0 / 19 (0%) 16042025 22078873 Nombre de photos taguées (volume) : 0 / 19 (0%) [{'photo_id': 1350273037, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/35de8a5b966f9ac761ed15e6a5b111ba.jpg', 'username': None, 'uploaded_at': 1744805768, 'text': 'image_16042025_14_15_03_10181.jpg'}, {'photo_id': 1350272986, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/3f54c9bfa5fdca349d2fb02814d9e578.jpg', 'username': None, 'uploaded_at': 1744805768, 'text': 'image_16042025_14_15_14_10148.jpg'}, {'photo_id': 1350272929, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/0d89a2f09d6af8eb8c3f35689732be12.jpg', 'username': None, 'uploaded_at': 1744805768, 'text': 'image_16042025_14_15_24_10141.jpg'}, {'photo_id': 1350272875, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/16/b02337f4287d58dd0fbf4bdfc56956a8.jpg', 'username': None, 'uploaded_at': 1744805768, 'text': 'image_16042025_14_15_34_10142.jpg'}] 0 [] elapsed_time : load_data_split_time_score 5.0067901611328125e-06 elapsed_time : order_list_meta_photo_and_scores 1.1682510375976562e-05 ??????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0008285045623779297 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22078873, '2025-04-16' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1717339,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02516484260559082 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= 1717339 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1717339, 'dashboard_run_id': 1726840, 'mtr_portfolio_id': 22077202, 'dashboard_result_id': 9884874, '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_P22077202_16-04-2025_13_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22077205, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22077206, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22077207, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22077208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22077209, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22077210, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22077211, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22077212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22077213, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22077214, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22077215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22077216, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1726840, 'mtr_portfolio_id': 22077619, 'dashboard_result_id': 9884876, '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_P22077619_16-04-2025_14_02_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22077623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22077624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22077625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22077626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22077627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22077628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22077629, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22077630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22077631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22077632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22077633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22077634, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1726840, 'mtr_portfolio_id': 22078155, 'dashboard_result_id': 9884877, '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_P22078155_16-04-2025_14_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22078156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22078157, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22078158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22078159, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22078160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22078161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22078162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22078163, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22078164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22078165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22078166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22078167, 'pht': 3726}}"}, {'dashboat_entry_day': 1717339, 'dashboard_run_id': 1726840, 'mtr_portfolio_id': 22078873, 'dashboard_result_id': 9884879, '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_P22078873_16-04-2025_14_19_33.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22078903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22078904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22078905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22078906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22078907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22078908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22078909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22078910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22078911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22078912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22078913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22078914, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22077202 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': 2725981, 'mtr_portfolio_id': 22077202, 'created_at': datetime.datetime(2025, 4, 16, 13, 47, 1), 'result': '0.023579662011599264', 'result_long': None, 'result_double': None}] Qualite : 0.023579662011599264 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22077202 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22077202_16-04-2025_13_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22077202 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_P22077202_16-04-2025_13_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22077205, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22077206, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22077207, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22077208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22077209, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22077210, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22077211, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22077212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22077213, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22077214, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22077215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22077216, 'pht': 3726}}" where mtr_portfolio_id = 22077202 and dashboard_run_id = 1726840 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`=22077202 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9884874, 0.023579662011599264, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22077202_16-04-2025_13_47_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22077205, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22077206, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22077207, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22077208, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22077209, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22077210, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22077211, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22077212, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22077213, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22077214, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22077215, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22077216, '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 = 22077619 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': 2726010, 'mtr_portfolio_id': 22077619, 'created_at': datetime.datetime(2025, 4, 16, 14, 1, 59), 'result': '0.06558759870142372', 'result_long': None, 'result_double': None}] Qualite : 0.06558759870142372 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22077619 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22077619_16-04-2025_14_02_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22077619 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_P22077619_16-04-2025_14_02_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22077623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22077624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22077625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22077626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22077627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22077628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22077629, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22077630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22077631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22077632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22077633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22077634, 'pht': 3726}}" where mtr_portfolio_id = 22077619 and dashboard_run_id = 1726840 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`=22077619 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9884876, 0.06558759870142372, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22077619_16-04-2025_14_02_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22077623, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22077624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22077625, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22077626, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22077627, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22077628, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22077629, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22077630, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22077631, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22077632, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22077633, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22077634, '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 = 22078155 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': 2726065, 'mtr_portfolio_id': 22078155, 'created_at': datetime.datetime(2025, 4, 16, 14, 18, 58), 'result': '0.03856775810629044', 'result_long': None, 'result_double': None}] Qualite : 0.03856775810629044 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22078155 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22078155_16-04-2025_14_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22078155 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_P22078155_16-04-2025_14_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22078156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22078157, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22078158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22078159, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22078160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22078161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22078162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22078163, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22078164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22078165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22078166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22078167, 'pht': 3726}}" where mtr_portfolio_id = 22078155 and dashboard_run_id = 1726840 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`=22078155 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9884877, 0.03856775810629044, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22078155_16-04-2025_14_18_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22078156, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22078157, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22078158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22078159, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22078160, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22078161, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22078162, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22078163, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22078164, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22078165, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22078166, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22078167, '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 = 22078873 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': 2726106, 'mtr_portfolio_id': 22078873, 'created_at': datetime.datetime(2025, 4, 16, 14, 21), 'result': '0.09424473248202207', 'result_long': None, 'result_double': None}] Qualite : 0.09424473248202207 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22078873 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22078873_16-04-2025_14_21_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22078873 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_P22078873_16-04-2025_14_21_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22078903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22078904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22078905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22078906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22078907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22078908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22078909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22078910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22078911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22078912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22078913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22078914, 'pht': 3726}}" where mtr_portfolio_id = 22078873 and dashboard_run_id = 1726840 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`=22078873 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9884879, 0.09424473248202207, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22078873_16-04-2025_14_21_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22078903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22078904, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22078905, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22078906, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22078907, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22078908, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22078909, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22078910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22078911, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22078912, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22078913, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22078914, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22077202,22077619,22078155,22078873) result : ((1350262728,), (1350263127,), (1350263132,), (1350263136,), (1350263239,), (1350263248,), (1350263256,), (1350263267,), (1350263268,), (1350263288,), (1350263329,), (1350263336,), (1350263341,), (1350263345,), (1350263349,), (1350263393,), (1350263397,), (1350263401,), (1350263405,), (1350263409,), (1350263412,), (1350263485,), (1350263512,), (1350263539,), (1350263565,), (1350263586,), (1350263590,), (1350263658,), (1350263689,), (1350263719,), (1350263755,), (1350264143,), (1350264177,), (1350264224,), (1350264254,), (1350264290,), (1350264319,), (1350264536,), (1350264545,), (1350264550,), (1350264554,), (1350264571,), (1350264599,), (1350264759,), (1350264765,), (1350264770,), (1350264774,), (1350264833,), (1350264838,), (1350264847,), (1350264851,), (1350264855,), (1350264929,), (1350264910,), (1350264917,), (1350264922,), (1350264925,), (1350265005,), (1350265014,), (1350265063,), (1350265067,), (1350265071,), (1350265074,), (1350265077,), (1350265083,), (1350265118,), (1350265125,), (1350265130,), (1350265195,), (1350265203,), (1350265208,), (1350265212,), (1350265254,), (1350265263,), (1350265272,), (1350265320,), (1350265325,), (1350265329,), (1350265335,), (1350265377,), (1350265385,), (1350265389,), (1350265573,), (1350265580,), (1350265585,), (1350265590,), (1350265593,), (1350265597,), (1350265631,), (1350265635,), (1350265639,), (1350265674,), (1350265695,), (1350265727,), (1350266349,), (1350266356,), (1350266363,), (1350266366,), (1350266642,), (1350266698,), (1350266764,), (1350266826,), (1350266889,), (1350266957,), (1350267179,), (1350267238,), (1350267339,), (1350267392,), (1350267723,), (1350267611,), (1350267669,), (1350268235,), (1350268269,), (1350268300,), (1350268331,), (1350268363,), (1350268444,), (1350268451,), (1350268455,), (1350268460,), (1350268855,), (1350268912,), (1350268973,), (1350269029,), (1350269083,), (1350269140,), (1350269464,), (1350269505,), (1350269559,), (1350269587,), (1350269904,), (1350269909,), (1350269920,), (1350270773,), (1350270778,), (1350271268,), (1350271273,), (1350271329,), (1350271333,), (1350271336,), (1350271340,), (1350271378,), (1350271402,), (1350271422,), (1350271426,), (1350271445,), (1350271477,), (1350271725,), (1350271758,), (1350271788,), (1350272284,), (1350272329,), (1350272358,), (1350272387,), (1350272418,), (1350272466,), (1350273071,), (1350272875,), (1350272929,), (1350272986,), (1350273037,), (1350273384,), (1350273396,), (1350273401,), (1350273416,), (1350273698,), (1350273729,), (1350273768,), (1350273962,), (1350273997,), (1350274048,), (1350274377,), (1350274404,), (1350274447,), (1350274508,), (1350274573,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'16042025': {'nb_upload': 19, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22078873]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350274573, 1350274508, 1350274447, 1350274404, 1350274377, 1350274048, 1350273997, 1350273962] map_info['map_portfolio_photo'] : {22078873: [1350274573, 1350274508, 1350274447, 1350274404, 1350274377, 1350274048, 1350273997, 1350273962, 1350273768, 1350273729, 1350273698, 1350273416, 1350273401, 1350273396, 1350273384, 1350273037, 1350272986, 1350272929, 1350272875]} final : True mtd_id 4302 list_pids : [1350274573, 1350274508, 1350274447, 1350274404, 1350274377, 1350274048, 1350273997, 1350273962] Looping around the photos to save general results len do output : 1 /22078873Didn'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, '2726106') ('4302', '22078873', '1350274573', None, None, None, None, None, '2726106') ('4302', None, None, None, None, None, None, None, '2726106') ('4302', '22078873', '1350274508', None, None, None, None, None, '2726106') ('4302', None, None, None, None, None, None, None, '2726106') ('4302', '22078873', '1350274447', None, None, None, None, None, '2726106') ('4302', None, None, None, None, None, None, None, '2726106') ('4302', '22078873', '1350274404', None, None, None, None, None, '2726106') ('4302', None, None, None, None, None, None, None, '2726106') ('4302', '22078873', '1350274377', None, None, None, None, None, '2726106') ('4302', None, None, None, None, None, None, None, '2726106') ('4302', '22078873', '1350274048', None, None, None, None, None, '2726106') ('4302', None, None, None, None, None, None, None, '2726106') ('4302', '22078873', '1350273997', None, None, None, None, None, '2726106') ('4302', None, None, None, None, None, None, None, '2726106') ('4302', '22078873', '1350273962', None, None, None, None, None, '2726106') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '22078873', 'None', None, None, None, None, '2726106'), ('4302', '22078873', '1350274573', None, None, None, None, None, '2726106'), ('4302', '22078873', '1350274508', None, None, None, None, None, '2726106'), ('4302', '22078873', '1350274447', None, None, None, None, None, '2726106'), ('4302', '22078873', '1350274404', None, None, None, None, None, '2726106'), ('4302', '22078873', '1350274377', None, None, None, None, None, '2726106'), ('4302', '22078873', '1350274048', None, None, None, None, None, '2726106'), ('4302', '22078873', '1350273997', None, None, None, None, None, '2726106'), ('4302', '22078873', '1350273962', None, None, None, None, None, '2726106')] time used for this insertion : 0.01544332504272461 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3518037796020508 time spend to save output : 0.01569509506225586 total time spend for step 5 : 0.36749887466430664 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 (2726106) 2.28user 2.44system 0:08.68elapsed 54%CPU (0avgtext+0avgdata 160348maxresident)k 96400inputs+6448outputs (471major+75413minor)pagefaults 0swaps