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 : 3990948 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 (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 22166808 , 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=22166799 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_brun' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22166808) result : ((1350928890,), (1350928908,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22166799) result : ((1350927214,), (1350927216,), (1350927277,), (1350927517,), (1350927709,), (1350928273,), (1350928275,), (1350928277,), (1350928279,), (1350928316,), (1350928318,), (1350928319,), (1350928321,), (1350928325,), (1350928442,), (1350928874,), (1350928877,), (1350928880,), (1350928883,), (1350928885,), (1350928887,)) 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 22166809 , 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=22166799 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='kraft' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22166809) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22166799) result : ((1350927214,), (1350927216,), (1350927277,), (1350927517,), (1350927709,), (1350928273,), (1350928275,), (1350928277,), (1350928279,), (1350928316,), (1350928318,), (1350928319,), (1350928321,), (1350928325,), (1350928442,), (1350928874,), (1350928877,), (1350928880,), (1350928883,), (1350928885,), (1350928887,)) 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 22166810 , 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=22166799 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_gris' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22166810) result : ((1350928902,), (1350928903,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22166799) result : ((1350927214,), (1350927216,), (1350927277,), (1350927517,), (1350927709,), (1350928273,), (1350928275,), (1350928277,), (1350928279,), (1350928316,), (1350928318,), (1350928319,), (1350928321,), (1350928325,), (1350928442,), (1350928874,), (1350928877,), (1350928880,), (1350928883,), (1350928885,), (1350928887,)) 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 22166811 , 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=22166799 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='flou' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22166811) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22166799) result : ((1350927214,), (1350927216,), (1350927277,), (1350927517,), (1350927709,), (1350928273,), (1350928275,), (1350928277,), (1350928279,), (1350928316,), (1350928318,), (1350928319,), (1350928321,), (1350928325,), (1350928442,), (1350928874,), (1350928877,), (1350928880,), (1350928883,), (1350928885,), (1350928887,)) 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 22166812 , 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=22166799 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 (22166812) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22166799) result : ((1350927214,), (1350927216,), (1350927277,), (1350927517,), (1350927709,), (1350928273,), (1350928275,), (1350928277,), (1350928279,), (1350928316,), (1350928318,), (1350928319,), (1350928321,), (1350928325,), (1350928442,), (1350928874,), (1350928877,), (1350928880,), (1350928883,), (1350928885,), (1350928887,)) 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`=22166799 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','autre_refus','metal','environnement','plastique','Teint_Dans_La_Masse','papier','Carton_brun','kraft','Carton_gris','flou','mal_croppe')) 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`=22166799 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','autre_refus','metal','environnement','plastique','Teint_Dans_La_Masse','papier','Carton_brun','kraft','Carton_gris','flou','mal_croppe')) AND mptpi.`min_score`=0.5 To do To do query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18042025_02_15_04_10138_4417_cartonnette_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18042025_02_15_04_10138_4417_autre_refus_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18042025_02_15_04_10138_4417_metal_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18042025_02_15_04_10138_4417_environnement_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18042025_02_15_04_10138_4417_plastique_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18042025_02_15_04_10138_4417_Teint_Dans_La_Masse_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18042025_02_15_04_10138_4417_papier_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18042025_02_15_04_10138_4417_Carton_brun_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18042025_02_15_04_10138_4417_kraft_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18042025_02_15_04_10138_4417_Carton_gris_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18042025_02_15_04_10138_4417_flou_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio query : SELECT id FROM MTRUser.mtr_portfolios WHERE name="JRM_diff_batch__18042025_02_15_04_10138_4417_mal_croppe_0.5_chtin_0" AND mtr_user_id=979 Creating new portfolio INSERT IGNORE INTO MTRPhoto.mtr_port_to_port_ids (`mtr_portfolio_id_1`, `mtr_portfolio_id_2`, `type`, `min_score`, `hashtag_id`, `mtr_user_id`) VALUES (%s,%s,%s,%s,%s,%s)[[22166799, 22166813, 4417, 0.5, 702398920, 979], [22166799, 22166814, 4417, 0.5, 2107752406, 979], [22166799, 22166815, 4417, 0.5, 492628673, 979], [22166799, 22166816, 4417, 0.5, 493012381, 979], [22166799, 22166817, 4417, 0.5, 492725882, 979], [22166799, 22166818, 4417, 0.5, 2107752385, 979], [22166799, 22166819, 4417, 0.5, 492668766, 979], [22166799, 22166820, 4417, 0.5, 2107753024, 979], [22166799, 22166821, 4417, 0.5, 493202403, 979], [22166799, 22166822, 4417, 0.5, 2107753020, 979], [22166799, 22166823, 4417, 0.5, 492777938, 979], [22166799, 22166824, 4417, 0.5, 2107755527, 979]] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=22166799 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','autre_refus','metal','environnement','plastique','Teint_Dans_La_Masse','papier','Carton_brun','kraft','Carton_gris','flou','mal_croppe')) 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`=22166799 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','autre_refus','metal','environnement','plastique','Teint_Dans_La_Masse','papier','Carton_brun','kraft','Carton_gris','flou','mal_croppe')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 22166799, 'sub_port_id': 22166813, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14645189, 'last_updated_at': datetime.datetime(2025, 4, 18, 2, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 2, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 2, 21, 31)}, 'autre_refus': {'main_port_id': 22166799, 'sub_port_id': 22166814, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14645190, 'last_updated_at': datetime.datetime(2025, 4, 18, 2, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 2, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 2, 21, 31)}, 'metal': {'main_port_id': 22166799, 'sub_port_id': 22166815, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14645191, 'last_updated_at': datetime.datetime(2025, 4, 18, 2, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 2, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 2, 21, 31)}, 'environnement': {'main_port_id': 22166799, 'sub_port_id': 22166816, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14645192, 'last_updated_at': datetime.datetime(2025, 4, 18, 2, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 2, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 2, 21, 31)}, 'plastique': {'main_port_id': 22166799, 'sub_port_id': 22166817, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14645193, 'last_updated_at': datetime.datetime(2025, 4, 18, 2, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 2, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 2, 21, 31)}, 'Teint_Dans_La_Masse': {'main_port_id': 22166799, 'sub_port_id': 22166818, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14645194, 'last_updated_at': datetime.datetime(2025, 4, 18, 2, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 2, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 2, 21, 31)}, 'papier': {'main_port_id': 22166799, 'sub_port_id': 22166819, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14645195, 'last_updated_at': datetime.datetime(2025, 4, 18, 2, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 2, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 2, 21, 31)}, 'Carton_brun': {'main_port_id': 22166799, 'sub_port_id': 22166820, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14645196, 'last_updated_at': datetime.datetime(2025, 4, 18, 2, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 2, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 2, 21, 31)}, 'kraft': {'main_port_id': 22166799, 'sub_port_id': 22166821, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14645197, 'last_updated_at': datetime.datetime(2025, 4, 18, 2, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 2, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 2, 21, 31)}, 'Carton_gris': {'main_port_id': 22166799, 'sub_port_id': 22166822, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14645198, 'last_updated_at': datetime.datetime(2025, 4, 18, 2, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 2, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 2, 21, 31)}, 'flou': {'main_port_id': 22166799, 'sub_port_id': 22166823, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14645199, 'last_updated_at': datetime.datetime(2025, 4, 18, 2, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 2, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 2, 21, 31)}, 'mal_croppe': {'main_port_id': 22166799, 'sub_port_id': 22166824, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14645200, 'last_updated_at': datetime.datetime(2025, 4, 18, 2, 21, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 18, 2, 21, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 18, 2, 21, 31)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22166813,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22166801 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22166814,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22166802 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22166815,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22166803 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22166816,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22166804 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22166817,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22166805 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22166818,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22166806 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22166819,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22166807 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22166820,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22166808 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22166821,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22166809 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22166822,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22166810 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22166823,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22166811 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22166824,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22166812 lien utilise dans velours : https://www.fotonower.com/velours/22166813,22166814,22166815,22166816,22166817,22166818,22166819,22166820,22166821,22166822,22166823,22166824?tags=cartonnette,autre_refus,metal,environnement,plastique,Teint_Dans_La_Masse,papier,Carton_brun,kraft,Carton_gris,flou,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22166799]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350928887, 1350928885, 1350928883, 1350928880, 1350928877, 1350928874, 1350928442, 1350928325, 1350928321, 1350928319, 1350928318, 1350928316, 1350928279, 1350928277, 1350928275, 1350928273, 1350927709, 1350927517, 1350927277, 1350927216, 1350927214] map_info['map_portfolio_photo'] : {22166799: [1350928887, 1350928885, 1350928883, 1350928880, 1350928877, 1350928874, 1350928442, 1350928325, 1350928321, 1350928319, 1350928318, 1350928316, 1350928279, 1350928277, 1350928275, 1350928273, 1350927709, 1350927517, 1350927277, 1350927216, 1350927214]} final : False mtd_id 4302 list_pids : [1350928887, 1350928885, 1350928883, 1350928880, 1350928877, 1350928874, 1350928442, 1350928325, 1350928321, 1350928319, 1350928318, 1350928316, 1350928279, 1350928277, 1350928275, 1350928273, 1350927709, 1350927517, 1350927277, 1350927216, 1350927214] Looping around the photos to save general results len do output : 1 /22166799. 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, '2733672') ('4302', '22166799', '1350928887', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928885', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928883', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928880', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928877', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928874', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928442', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928325', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928321', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928319', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928318', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928316', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928279', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928277', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928275', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928273', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350927709', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350927517', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350927277', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350927216', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350927214', None, None, None, None, None, '2733672') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 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, '22166799', "{'cartonnette': 22166801, 'autre_refus': 22166802, 'metal': 22166803, 'environnement': 22166804, 'plastique': 22166805, 'Teint_Dans_La_Masse': 22166806, 'papier': 22166807, 'Carton_brun': 22166808, 'kraft': 22166809, 'Carton_gris': 22166810, 'flou': 22166811, 'mal_croppe': 22166812}", None, None, None, None, '2733672'), ('4302', '22166799', '1350928887', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928885', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928883', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928880', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928877', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928874', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928442', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928325', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928321', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928319', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928318', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928316', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928279', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928277', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928275', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928273', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350927709', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350927517', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350927277', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350927216', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350927214', None, None, None, None, None, '2733672')] time used for this insertion : 0.05947399139404297 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.111276865005493 time spend to save output : 0.0598599910736084 total time spend for step 1 : 2.1711368560791016 step2:final Fri Apr 18 02:21:32 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 (22166799) 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 22166799 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350927709,1350927517,1350927277,1350927216,1350927214,1350928279,1350928277,1350928275,1350928273,1350928442,1350928325,1350928321,1350928319,1350928318,1350928316,1350928887,1350928885,1350928883,1350928880,1350928877,1350928874); 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([22166799]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ('0.02643373175128469',), 1350927277: ('0.02643373175128469',), 1350927216: ('0.02643373175128469',), 1350927214: ('0.02643373175128469',)} new output for save of step final : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ('0.02643373175128469',), 1350927277: ('0.02643373175128469',), 1350927216: ('0.02643373175128469',), 1350927214: ('0.02643373175128469',)} [1350928887, 1350928885, 1350928883, 1350928880, 1350928877, 1350928874, 1350928442, 1350928325, 1350928321, 1350928319, 1350928318, 1350928316, 1350928279, 1350928277, 1350928275, 1350928273, 1350927709, 1350927517, 1350927277, 1350927216, 1350927214] map_info['map_portfolio_photo'] : {22166799: [1350928887, 1350928885, 1350928883, 1350928880, 1350928877, 1350928874, 1350928442, 1350928325, 1350928321, 1350928319, 1350928318, 1350928316, 1350928279, 1350928277, 1350928275, 1350928273, 1350927709, 1350927517, 1350927277, 1350927216, 1350927214]} final : False mtd_id 4302 list_pids : [1350928887, 1350928885, 1350928883, 1350928880, 1350928877, 1350928874, 1350928442, 1350928325, 1350928321, 1350928319, 1350928318, 1350928316, 1350928279, 1350928277, 1350928275, 1350928273, 1350927709, 1350927517, 1350927277, 1350927216, 1350927214] Looping around the photos to save general results len do output : 21 /1350928887.Didn't retrieve data . /1350928885.Didn't retrieve data . /1350928883.Didn't retrieve data . /1350928880.Didn't retrieve data . /1350928877.Didn't retrieve data . /1350928874.Didn't retrieve data . /1350928442.Didn't retrieve data . /1350928325.Didn't retrieve data . /1350928321.Didn't retrieve data . /1350928319.Didn't retrieve data . /1350928318.Didn't retrieve data . /1350928316.Didn't retrieve data . /1350928279.Didn't retrieve data . /1350928277.Didn't retrieve data . /1350928275.Didn't retrieve data . /1350928273.Didn't retrieve data . /1350927709.Didn't retrieve data . /1350927517.Didn't retrieve data . /1350927277.Didn't retrieve data . /1350927216.Didn't retrieve data . /1350927214.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, '2733672') ('4302', '22166799', '1350928887', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928885', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928883', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928880', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928877', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928874', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928442', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928325', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928321', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928319', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928318', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928316', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928279', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928277', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928275', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928273', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350927709', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350927517', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350927277', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350927216', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350927214', None, None, None, None, None, '2733672') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 63 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', '22166799', '1350928887', '0.02643373175128469', None, None, None, None, '2733672'), ('4302', '22166799', '1350928885', '0.02643373175128469', None, None, None, None, '2733672'), ('4302', '22166799', '1350928883', '0.02643373175128469', None, None, None, None, '2733672'), ('4302', '22166799', '1350928880', '0.02643373175128469', None, None, None, None, '2733672'), ('4302', '22166799', '1350928877', '0.02643373175128469', None, None, None, None, '2733672'), ('4302', '22166799', '1350928874', '0.02643373175128469', None, None, None, None, '2733672'), ('4302', '22166799', '1350928442', '0.02643373175128469', None, None, None, None, '2733672'), ('4302', '22166799', '1350928325', '0.02643373175128469', None, None, None, None, '2733672'), ('4302', '22166799', '1350928321', '0.02643373175128469', None, None, None, None, '2733672'), ('4302', '22166799', '1350928319', '0.02643373175128469', None, None, None, None, '2733672'), ('4302', '22166799', '1350928318', '0.02643373175128469', None, None, None, None, '2733672'), ('4302', '22166799', '1350928316', '0.02643373175128469', None, None, None, None, '2733672'), ('4302', '22166799', '1350928279', '0.02643373175128469', None, None, None, None, '2733672'), ('4302', '22166799', '1350928277', '0.02643373175128469', None, None, None, None, '2733672'), ('4302', '22166799', '1350928275', '0.02643373175128469', None, None, None, None, '2733672'), ('4302', '22166799', '1350928273', '0.02643373175128469', None, None, None, None, '2733672'), ('4302', '22166799', '1350927709', '0.02643373175128469', None, None, None, None, '2733672'), ('4302', '22166799', '1350927517', '0.02643373175128469', None, None, None, None, '2733672'), ('4302', '22166799', '1350927277', '0.02643373175128469', None, None, None, None, '2733672'), ('4302', '22166799', '1350927216', '0.02643373175128469', None, None, None, None, '2733672'), ('4302', '22166799', '1350927214', '0.02643373175128469', None, None, None, None, '2733672')] time used for this insertion : 0.04902362823486328 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.04851961135864258 time spend to save output : 0.05028128623962402 total time spend for step 2 : 0.0988008975982666 step3:velours_tree Fri Apr 18 02:21:32 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22166799: [{'cartonnette': 22166801, 'autre_refus': 22166802, 'metal': 22166803, 'environnement': 22166804, 'plastique': 22166805, 'Teint_Dans_La_Masse': 22166806, 'papier': 22166807, 'Carton_brun': 22166808, 'kraft': 22166809, 'Carton_gris': 22166810, 'flou': 22166811, 'mal_croppe': 22166812}]} input_args_next_step : {22166799: ()} output_args : {22166799: [{'cartonnette': 22166801, 'autre_refus': 22166802, 'metal': 22166803, 'environnement': 22166804, 'plastique': 22166805, 'Teint_Dans_La_Masse': 22166806, 'papier': 22166807, 'Carton_brun': 22166808, 'kraft': 22166809, 'Carton_gris': 22166810, 'flou': 22166811, 'mal_croppe': 22166812}]} args : 22166799 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 : ({'cartonnette': 22166801, 'autre_refus': 22166802, 'metal': 22166803, 'environnement': 22166804, 'plastique': 22166805, 'Teint_Dans_La_Masse': 22166806, 'papier': 22166807, 'Carton_brun': 22166808, 'kraft': 22166809, 'Carton_gris': 22166810, 'flou': 22166811, 'mal_croppe': 22166812},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22166799) 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([22166799]) 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.3224320411682129 time spend to save output : 4.553794860839844e-05 total time spend for step 3 : 0.3224775791168213 step4:send_mail_cod Fri Apr 18 02:21:32 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ('0.02643373175128469',), 1350927277: ('0.02643373175128469',), 1350927216: ('0.02643373175128469',), 1350927214: ('0.02643373175128469',)} input_args_next_step : {1350928887: ()} output_args : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ('0.02643373175128469',), 1350927277: ('0.02643373175128469',), 1350927216: ('0.02643373175128469',), 1350927214: ('0.02643373175128469',)} args : 1350928887 depend.output_id : 0 input_args_next_step : {1350928887: ('0.02643373175128469',), 1350928885: ()} output_args : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ('0.02643373175128469',), 1350927277: ('0.02643373175128469',), 1350927216: ('0.02643373175128469',), 1350927214: ('0.02643373175128469',)} args : 1350928885 depend.output_id : 0 input_args_next_step : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ()} output_args : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ('0.02643373175128469',), 1350927277: ('0.02643373175128469',), 1350927216: ('0.02643373175128469',), 1350927214: ('0.02643373175128469',)} args : 1350928883 depend.output_id : 0 input_args_next_step : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ()} output_args : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ('0.02643373175128469',), 1350927277: ('0.02643373175128469',), 1350927216: ('0.02643373175128469',), 1350927214: ('0.02643373175128469',)} args : 1350928880 depend.output_id : 0 input_args_next_step : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ()} output_args : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ('0.02643373175128469',), 1350927277: ('0.02643373175128469',), 1350927216: ('0.02643373175128469',), 1350927214: ('0.02643373175128469',)} args : 1350928877 depend.output_id : 0 input_args_next_step : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ()} output_args : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ('0.02643373175128469',), 1350927277: ('0.02643373175128469',), 1350927216: ('0.02643373175128469',), 1350927214: ('0.02643373175128469',)} args : 1350928874 depend.output_id : 0 input_args_next_step : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ()} output_args : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ('0.02643373175128469',), 1350927277: ('0.02643373175128469',), 1350927216: ('0.02643373175128469',), 1350927214: ('0.02643373175128469',)} args : 1350928442 depend.output_id : 0 input_args_next_step : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ()} output_args : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ('0.02643373175128469',), 1350927277: ('0.02643373175128469',), 1350927216: ('0.02643373175128469',), 1350927214: ('0.02643373175128469',)} args : 1350928325 depend.output_id : 0 input_args_next_step : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ()} output_args : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ('0.02643373175128469',), 1350927277: ('0.02643373175128469',), 1350927216: ('0.02643373175128469',), 1350927214: ('0.02643373175128469',)} args : 1350928321 depend.output_id : 0 input_args_next_step : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ()} output_args : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ('0.02643373175128469',), 1350927277: ('0.02643373175128469',), 1350927216: ('0.02643373175128469',), 1350927214: ('0.02643373175128469',)} args : 1350928319 depend.output_id : 0 input_args_next_step : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ()} output_args : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ('0.02643373175128469',), 1350927277: ('0.02643373175128469',), 1350927216: ('0.02643373175128469',), 1350927214: ('0.02643373175128469',)} args : 1350928318 depend.output_id : 0 input_args_next_step : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ()} output_args : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ('0.02643373175128469',), 1350927277: ('0.02643373175128469',), 1350927216: ('0.02643373175128469',), 1350927214: ('0.02643373175128469',)} args : 1350928316 depend.output_id : 0 input_args_next_step : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ()} output_args : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ('0.02643373175128469',), 1350927277: ('0.02643373175128469',), 1350927216: ('0.02643373175128469',), 1350927214: ('0.02643373175128469',)} args : 1350928279 depend.output_id : 0 input_args_next_step : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ()} output_args : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ('0.02643373175128469',), 1350927277: ('0.02643373175128469',), 1350927216: ('0.02643373175128469',), 1350927214: ('0.02643373175128469',)} args : 1350928277 depend.output_id : 0 input_args_next_step : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ()} output_args : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ('0.02643373175128469',), 1350927277: ('0.02643373175128469',), 1350927216: ('0.02643373175128469',), 1350927214: ('0.02643373175128469',)} args : 1350928275 depend.output_id : 0 input_args_next_step : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ()} output_args : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ('0.02643373175128469',), 1350927277: ('0.02643373175128469',), 1350927216: ('0.02643373175128469',), 1350927214: ('0.02643373175128469',)} args : 1350928273 depend.output_id : 0 input_args_next_step : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ()} output_args : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ('0.02643373175128469',), 1350927277: ('0.02643373175128469',), 1350927216: ('0.02643373175128469',), 1350927214: ('0.02643373175128469',)} args : 1350927709 depend.output_id : 0 input_args_next_step : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ()} output_args : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ('0.02643373175128469',), 1350927277: ('0.02643373175128469',), 1350927216: ('0.02643373175128469',), 1350927214: ('0.02643373175128469',)} args : 1350927517 depend.output_id : 0 input_args_next_step : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ('0.02643373175128469',), 1350927277: ()} output_args : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ('0.02643373175128469',), 1350927277: ('0.02643373175128469',), 1350927216: ('0.02643373175128469',), 1350927214: ('0.02643373175128469',)} args : 1350927277 depend.output_id : 0 input_args_next_step : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ('0.02643373175128469',), 1350927277: ('0.02643373175128469',), 1350927216: ()} output_args : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ('0.02643373175128469',), 1350927277: ('0.02643373175128469',), 1350927216: ('0.02643373175128469',), 1350927214: ('0.02643373175128469',)} args : 1350927216 depend.output_id : 0 input_args_next_step : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ('0.02643373175128469',), 1350927277: ('0.02643373175128469',), 1350927216: ('0.02643373175128469',), 1350927214: ()} output_args : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ('0.02643373175128469',), 1350927277: ('0.02643373175128469',), 1350927216: ('0.02643373175128469',), 1350927214: ('0.02643373175128469',)} args : 1350927214 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 : {22166799: [{'cartonnette': 22166801, 'autre_refus': 22166802, 'metal': 22166803, 'environnement': 22166804, 'plastique': 22166805, 'Teint_Dans_La_Masse': 22166806, 'papier': 22166807, 'Carton_brun': 22166808, 'kraft': 22166809, 'Carton_gris': 22166810, 'flou': 22166811, 'mal_croppe': 22166812}]} input_args_next_step : {1350928887: ('0.02643373175128469',), 1350928885: ('0.02643373175128469',), 1350928883: ('0.02643373175128469',), 1350928880: ('0.02643373175128469',), 1350928877: ('0.02643373175128469',), 1350928874: ('0.02643373175128469',), 1350928442: ('0.02643373175128469',), 1350928325: ('0.02643373175128469',), 1350928321: ('0.02643373175128469',), 1350928319: ('0.02643373175128469',), 1350928318: ('0.02643373175128469',), 1350928316: ('0.02643373175128469',), 1350928279: ('0.02643373175128469',), 1350928277: ('0.02643373175128469',), 1350928275: ('0.02643373175128469',), 1350928273: ('0.02643373175128469',), 1350927709: ('0.02643373175128469',), 1350927517: ('0.02643373175128469',), 1350927277: ('0.02643373175128469',), 1350927216: ('0.02643373175128469',), 1350927214: ('0.02643373175128469',), 22166799: ()} output_args : {22166799: [{'cartonnette': 22166801, 'autre_refus': 22166802, 'metal': 22166803, 'environnement': 22166804, 'plastique': 22166805, 'Teint_Dans_La_Masse': 22166806, 'papier': 22166807, 'Carton_brun': 22166808, 'kraft': 22166809, 'Carton_gris': 22166810, 'flou': 22166811, 'mal_croppe': 22166812}]} args : 22166799 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 :22, first value : ('0.02643373175128469',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22166799) 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 (1350928887,1350928885,1350928883,1350928880,1350928877,1350928874,1350928442,1350928325,1350928321,1350928319,1350928318,1350928316,1350928279,1350928277,1350928275,1350928273,1350927709,1350927517,1350927277,1350927216,1350927214) Found this number of photos: 21 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350927214 begin to download photo : 1350928273 begin to download photo : 1350928318 begin to download photo : 1350928874 begin to download photo : 1350928887 download finish for photo 1350928273 begin to download photo : 1350928275 download finish for photo 1350928318 begin to download photo : 1350928319 download finish for photo 1350928874 begin to download photo : 1350928877 download finish for photo 1350927214 begin to download photo : 1350927216 download finish for photo 1350928887 download finish for photo 1350928877 begin to download photo : 1350928880 download finish for photo 1350928275 download finish for photo 1350928319 begin to download photo : 1350928277 begin to download photo : 1350928321 download finish for photo 1350927216 begin to download photo : 1350927277 download finish for photo 1350928321 begin to download photo : 1350928325 download finish for photo 1350928880 begin to download photo : 1350928883 download finish for photo 1350928277 begin to download photo : 1350928279 download finish for photo 1350927277 begin to download photo : 1350927517 download finish for photo 1350928325 begin to download photo : 1350928442 download finish for photo 1350928883 begin to download photo : 1350928885 download finish for photo 1350927517 begin to download photo : 1350927709 download finish for photo 1350928279 begin to download photo : 1350928316 download finish for photo 1350928442 download finish for photo 1350927709 download finish for photo 1350928316 download finish for photo 1350928885 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette221668011744935693/ length of list_filenames : 21 ; length of list_pids : 21 ; length of list_args : 21 results_Auto_P22166799_18-04-2025_02_21_33.pdf 22166801 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=22166801 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221668011744935693 22166802 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=22166802 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350928900: '1744935552_3577505_1350927216_5d4e3b14ab2a36753679b3821666c0e9_rle_crop_3753140424_0.png', 1350928901: '1744935552_3577505_1350927214_6a70c58649a56e5f30afb3e291a124ad_rle_crop_3753140442_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/26b37585f220458f70b8fc563824332f_68772757.png change filename to text .imagette221668021744935693/ imagette221668021744935693/1744935552_3577505_1350927216_5d4e3b14ab2a36753679b3821666c0e9_rle_crop_3753140424_0.png.png imagette221668021744935693/1744935552_3577505_1350927214_6a70c58649a56e5f30afb3e291a124ad_rle_crop_3753140442_0.png.png imagette221668031744935693/ imagette221668051744935693/ imagette221668091744935693/ imagette221668111744935693/ imagette221668121744935693/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/59cadedcf45b9194131a31de54f9c73a_77274147.png imagette221668021744935693 22166803 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=22166803 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221668031744935693 22166805 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=22166805 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221668051744935693 22166809 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=22166809 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221668091744935693 22166811 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=22166811 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221668111744935693 22166812 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=22166812 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221668121744935693 22166806 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=22166806 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350928896: '1744935552_3577505_1350927517_afeeb13ccb64b4aca9c754912d1413d7_rle_crop_3753140400_0.png', 1350928897: '1744935552_3577505_1350927277_5317e3396c76bf6e192ffe7419f203a5_rle_crop_3753140416_0.png', 1350928898: '1744935552_3577505_1350927214_6a70c58649a56e5f30afb3e291a124ad_rle_crop_3753140443_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/9a7219f8cb30d83a96dab7e22543814f_80990934.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/fef1d927f71e2a9a01583f9d74a9b0a9_54874131.png change filename to text .imagette221668061744935693/ imagette221668061744935693/1744935552_3577505_1350927517_afeeb13ccb64b4aca9c754912d1413d7_rle_crop_3753140400_0.png.png imagette221668061744935693/1744935552_3577505_1350927277_5317e3396c76bf6e192ffe7419f203a5_rle_crop_3753140416_0.png.png imagette221668061744935693/1744935552_3577505_1350927214_6a70c58649a56e5f30afb3e291a124ad_rle_crop_3753140443_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/2eed794055aaae67715966ae8f111906_61619465.png imagette221668061744935693 22166808 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=22166808 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350928890: '1744935566_2316279_1350928275_781d3a3f0a103807322baac2f2b6112d_rle_crop_3753140203_0.png', 1350928908: '1744935552_3577505_1350927709_7f906191ea689844a33487bb1014b078_rle_crop_3753140389_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/f960ebec50e35f54382dfedffd44f960_25011785.png change filename to text .imagette221668081744935693/ imagette221668081744935693/1744935566_2316279_1350928275_781d3a3f0a103807322baac2f2b6112d_rle_crop_3753140203_0.png.png imagette221668081744935693/1744935552_3577505_1350927709_7f906191ea689844a33487bb1014b078_rle_crop_3753140389_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/a665c06fa3b82cf6637d7ccaf3c0a968_50534436.png imagette221668081744935693 22166810 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=22166810 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350928902: '1744935552_3577505_1350928279_92a119e6cc73611e0afcc833d8ab0265_rle_crop_3753140225_0.png', 1350928903: '1744935552_3577505_1350927709_7f906191ea689844a33487bb1014b078_rle_crop_3753140383_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/f2e0022b6c80254725aef93eec54f9c3_23592586.png change filename to text .imagette221668101744935693/ imagette221668101744935693/1744935552_3577505_1350928279_92a119e6cc73611e0afcc833d8ab0265_rle_crop_3753140225_0.png.png imagette221668101744935693/1744935552_3577505_1350927709_7f906191ea689844a33487bb1014b078_rle_crop_3753140383_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/bfd84f1e8a635474a11780c2a26065b6_44967532.png imagette221668101744935693 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22166799 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22166813,22166814,22166815,22166816,22166817,22166818,22166819,22166820,22166821,22166822,22166823,22166824?tags=cartonnette,autre_refus,metal,environnement,plastique,Teint_Dans_La_Masse,papier,Carton_brun,kraft,Carton_gris,flou,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1350928887] : ('0.02643373175128469',) no score found for photo 1350928887 We are sending mail with results at report@fotonower.com args[1350928885] : ('0.02643373175128469',) no score found for photo 1350928885 We are sending mail with results at report@fotonower.com args[1350928883] : ('0.02643373175128469',) no score found for photo 1350928883 We are sending mail with results at report@fotonower.com args[1350928880] : ('0.02643373175128469',) no score found for photo 1350928880 We are sending mail with results at report@fotonower.com args[1350928877] : ('0.02643373175128469',) no score found for photo 1350928877 We are sending mail with results at report@fotonower.com args[1350928874] : ('0.02643373175128469',) no score found for photo 1350928874 We are sending mail with results at report@fotonower.com args[1350928442] : ('0.02643373175128469',) no score found for photo 1350928442 We are sending mail with results at report@fotonower.com args[1350928325] : ('0.02643373175128469',) no score found for photo 1350928325 We are sending mail with results at report@fotonower.com args[1350928321] : ('0.02643373175128469',) no score found for photo 1350928321 We are sending mail with results at report@fotonower.com args[1350928319] : ('0.02643373175128469',) no score found for photo 1350928319 We are sending mail with results at report@fotonower.com args[1350928318] : ('0.02643373175128469',) no score found for photo 1350928318 We are sending mail with results at report@fotonower.com args[1350928316] : ('0.02643373175128469',) no score found for photo 1350928316 We are sending mail with results at report@fotonower.com args[1350928279] : ('0.02643373175128469',) no score found for photo 1350928279 We are sending mail with results at report@fotonower.com args[1350928277] : ('0.02643373175128469',) no score found for photo 1350928277 We are sending mail with results at report@fotonower.com args[1350928275] : ('0.02643373175128469',) no score found for photo 1350928275 We are sending mail with results at report@fotonower.com args[1350928273] : ('0.02643373175128469',) no score found for photo 1350928273 We are sending mail with results at report@fotonower.com args[1350927709] : ('0.02643373175128469',) no score found for photo 1350927709 We are sending mail with results at report@fotonower.com args[1350927517] : ('0.02643373175128469',) no score found for photo 1350927517 We are sending mail with results at report@fotonower.com args[1350927277] : ('0.02643373175128469',) no score found for photo 1350927277 We are sending mail with results at report@fotonower.com args[1350927216] : ('0.02643373175128469',) no score found for photo 1350927216 We are sending mail with results at report@fotonower.com args[1350927214] : ('0.02643373175128469',) no score found for photo 1350927214 We are sending mail with results at report@fotonower.com refus_total : 0.02643373175128469 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=22166799 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_P22166799_18-04-2025_02_21_33.pdf results_Auto_P22166799_18-04-2025_02_21_33.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22166799_18-04-2025_02_21_33.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','22166799','results_Auto_P22166799_18-04-2025_02_21_33.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22166799_18-04-2025_02_21_33.pdf','pdf','','0.19','0.02643373175128469') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22166799]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350928887, 1350928885, 1350928883, 1350928880, 1350928877, 1350928874, 1350928442, 1350928325, 1350928321, 1350928319, 1350928318, 1350928316, 1350928279, 1350928277, 1350928275, 1350928273, 1350927709, 1350927517, 1350927277, 1350927216, 1350927214] map_info['map_portfolio_photo'] : {22166799: [1350928887, 1350928885, 1350928883, 1350928880, 1350928877, 1350928874, 1350928442, 1350928325, 1350928321, 1350928319, 1350928318, 1350928316, 1350928279, 1350928277, 1350928275, 1350928273, 1350927709, 1350927517, 1350927277, 1350927216, 1350927214]} final : False mtd_id 4302 list_pids : [1350928887, 1350928885, 1350928883, 1350928880, 1350928877, 1350928874, 1350928442, 1350928325, 1350928321, 1350928319, 1350928318, 1350928316, 1350928279, 1350928277, 1350928275, 1350928273, 1350927709, 1350927517, 1350927277, 1350927216, 1350927214] 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, '2733672') ('4302', '22166799', '1350928887', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928885', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928883', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928880', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928877', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928874', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928442', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928325', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928321', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928319', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928318', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928316', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928279', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928277', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928275', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928273', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350927709', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350927517', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350927277', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350927216', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350927214', None, None, None, None, None, '2733672') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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', '22166799', '1350928887', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928885', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928883', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928880', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928877', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928874', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928442', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928325', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928321', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928319', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928318', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928316', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928279', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928277', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928275', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928273', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350927709', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350927517', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350927277', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350927216', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350927214', None, None, None, None, None, '2733672')] time used for this insertion : 0.12028908729553223 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.5868146419525146 time spend to save output : 0.12065577507019043 total time spend for step 4 : 2.707470417022705 step5:split_time_score Fri Apr 18 02:21:35 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 : ['22166799'] 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 : [('22166799',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22166799) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350928887: {'path': 'temp/1744935692_3990948_1350928887_fd7e3d12bd1d48f99d3ee3650dac3457.jpg', 'extension': 'jpg'}, 1350928318: {'path': 'temp/1744935692_3990948_1350928318_7d280c19766bd0c19bb301ee29cdb3df.jpg', 'extension': 'jpg'}, 1350928319: {'path': 'temp/1744935692_3990948_1350928319_923e7762c03e3438b58580fc15d0507b.jpg', 'extension': 'jpg'}, 1350928321: {'path': 'temp/1744935692_3990948_1350928321_6af2ed979ca438ef9c3abc1ddacb0ede.jpg', 'extension': 'jpg'}, 1350928325: {'path': 'temp/1744935692_3990948_1350928325_6b768ff55db28bb5f33835f6dc905fe9.jpg', 'extension': 'jpg'}, 1350928442: {'path': 'temp/1744935692_3990948_1350928442_c53d038dd005d00c77e9068ac9f6346c.jpg', 'extension': 'jpg'}, 1350927214: {'path': 'temp/1744935692_3990948_1350927214_6a70c58649a56e5f30afb3e291a124ad.jpg', 'extension': 'jpg'}, 1350927216: {'path': 'temp/1744935692_3990948_1350927216_5d4e3b14ab2a36753679b3821666c0e9.jpg', 'extension': 'jpg'}, 1350927277: {'path': 'temp/1744935692_3990948_1350927277_5317e3396c76bf6e192ffe7419f203a5.jpg', 'extension': 'jpg'}, 1350927517: {'path': 'temp/1744935692_3990948_1350927517_afeeb13ccb64b4aca9c754912d1413d7.jpg', 'extension': 'jpg'}, 1350927709: {'path': 'temp/1744935692_3990948_1350927709_7f906191ea689844a33487bb1014b078.jpg', 'extension': 'jpg'}, 1350928273: {'path': 'temp/1744935692_3990948_1350928273_e5a67f74f6e0eff196fcf43682b96b10.jpg', 'extension': 'jpg'}, 1350928275: {'path': 'temp/1744935692_3990948_1350928275_781d3a3f0a103807322baac2f2b6112d.jpg', 'extension': 'jpg'}, 1350928277: {'path': 'temp/1744935692_3990948_1350928277_a3fe34b6bf460840de972cc4270cfc44.jpg', 'extension': 'jpg'}, 1350928279: {'path': 'temp/1744935692_3990948_1350928279_92a119e6cc73611e0afcc833d8ab0265.jpg', 'extension': 'jpg'}, 1350928316: {'path': 'temp/1744935692_3990948_1350928316_c98e429654c724df40c63d0c4cb66ac7.jpg', 'extension': 'jpg'}, 1350928874: {'path': 'temp/1744935692_3990948_1350928874_c0e47af82bb16c76ce705c464e32e87f.jpg', 'extension': 'jpg'}, 1350928877: {'path': 'temp/1744935692_3990948_1350928877_42d6f67361212e66e5e6b7687d5bb246.jpg', 'extension': 'jpg'}, 1350928880: {'path': 'temp/1744935692_3990948_1350928880_da7a9f7c8b0ccb52e1d7bfc3eccd27c9.jpg', 'extension': 'jpg'}, 1350928883: {'path': 'temp/1744935692_3990948_1350928883_e8109d65fdf2989e9857a35dfcfafcbb.jpg', 'extension': 'jpg'}, 1350928885: {'path': 'temp/1744935692_3990948_1350928885_37ab8a5ec40247697137e83098fba688.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 = 22166799; (('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 = 22166799 group by h (('02', 21),) 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=22166799 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 (22166799) 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 (22166799) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 18042025 22166799 Nombre de photos uploadées : 21 / 23040 (0%) 18042025 22166799 Nombre de photos taguées (types de déchets): 0 / 21 (0%) 18042025 22166799 Nombre de photos taguées (volume) : 0 / 21 (0%) [{'photo_id': 1350927709, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/7f906191ea689844a33487bb1014b078.jpg', 'username': None, 'uploaded_at': 1744935368, 'text': 'image_18042025_02_15_04_10137.jpg'}, {'photo_id': 1350927517, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/afeeb13ccb64b4aca9c754912d1413d7.jpg', 'username': None, 'uploaded_at': 1744935368, 'text': 'image_18042025_02_15_14_10138.jpg'}, {'photo_id': 1350927277, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/5317e3396c76bf6e192ffe7419f203a5.jpg', 'username': None, 'uploaded_at': 1744935368, 'text': 'image_18042025_02_15_24_10137.jpg'}, {'photo_id': 1350927216, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/18/5d4e3b14ab2a36753679b3821666c0e9.jpg', 'username': None, 'uploaded_at': 1744935368, 'text': 'image_18042025_02_15_34_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002048492431640625 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22166799, '2025-04-18' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1725253,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.033975839614868164 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= 1725253 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1725253, 'dashboard_run_id': 1732952, 'mtr_portfolio_id': 22165302, 'dashboard_result_id': 9959146, '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_P22165302_18-04-2025_01_46_50.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22165303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22165304, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22165305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22165306, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22165307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22165308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22165309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22165310, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22165311, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22165312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22165313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22165314, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1732952, 'mtr_portfolio_id': 22165696, 'dashboard_result_id': 9959147, '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_P22165696_18-04-2025_02_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22165697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22165698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22165699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22165700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22165701, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22165702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22165703, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22165704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22165705, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22165706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22165707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22165708, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1732952, 'mtr_portfolio_id': 22166003, 'dashboard_result_id': 9959148, '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_P22166003_18-04-2025_02_19_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22166006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22166007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22166008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22166009, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22166010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22166011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22166012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22166013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22166014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22166015, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22166016, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22166017, 'pht': 3726}}"}, {'dashboat_entry_day': 1725253, 'dashboard_run_id': 1732952, 'mtr_portfolio_id': 22166799, 'dashboard_result_id': 9959151, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}] 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 = 22165302 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': 2733535, 'mtr_portfolio_id': 22165302, 'created_at': datetime.datetime(2025, 4, 18, 1, 46, 49), 'result': '0.05532544521211058', 'result_long': None, 'result_double': None}] Qualite : 0.05532544521211058 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22165302 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22165302_18-04-2025_01_46_50.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22165302 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_P22165302_18-04-2025_01_46_50.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22165303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22165304, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22165305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22165306, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22165307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22165308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22165309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22165310, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22165311, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22165312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22165313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22165314, 'pht': 3726}}" where mtr_portfolio_id = 22165302 and dashboard_run_id = 1732952 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`=22165302 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9959146, 0.05532544521211058, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22165302_18-04-2025_01_46_50.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22165303, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22165304, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22165305, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22165306, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22165307, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22165308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22165309, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22165310, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22165311, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22165312, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22165313, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22165314, '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 = 22165696 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': 2733563, 'mtr_portfolio_id': 22165696, 'created_at': datetime.datetime(2025, 4, 18, 2, 2, 58), 'result': '0.060097259103544805', 'result_long': None, 'result_double': None}] Qualite : 0.060097259103544805 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22165696 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22165696_18-04-2025_02_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22165696 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_P22165696_18-04-2025_02_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22165697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22165698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22165699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22165700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22165701, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22165702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22165703, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22165704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22165705, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22165706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22165707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22165708, 'pht': 3726}}" where mtr_portfolio_id = 22165696 and dashboard_run_id = 1732952 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`=22165696 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9959147, 0.060097259103544805, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22165696_18-04-2025_02_02_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22165697, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22165698, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22165699, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22165700, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22165701, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22165702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22165703, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22165704, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22165705, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22165706, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22165707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22165708, '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 = 22166003 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': 2733622, 'mtr_portfolio_id': 22166003, 'created_at': datetime.datetime(2025, 4, 18, 2, 19), 'result': '0.04644162096041784', 'result_long': None, 'result_double': None}] Qualite : 0.04644162096041784 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22166003 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22166003_18-04-2025_02_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22166003 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_P22166003_18-04-2025_02_19_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22166006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22166007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22166008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22166009, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22166010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22166011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22166012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22166013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22166014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22166015, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22166016, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22166017, 'pht': 3726}}" where mtr_portfolio_id = 22166003 and dashboard_run_id = 1732952 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`=22166003 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9959148, 0.04644162096041784, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22166003_18-04-2025_02_19_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 22166006, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22166007, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22166008, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22166009, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22166010, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22166011, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22166012, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22166013, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22166014, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22166015, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22166016, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22166017, '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 = 22166799 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': 2733672, 'mtr_portfolio_id': 22166799, 'created_at': datetime.datetime(2025, 4, 18, 2, 21, 32), 'result': '0.02643373175128469', 'result_long': None, 'result_double': None}] Qualite : 0.02643373175128469 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22166799 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22166799_18-04-2025_02_21_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22166799 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_P22166799_18-04-2025_02_21_33.pdf'}" where mtr_portfolio_id = 22166799 and dashboard_run_id = 1732952 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`=22166799 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9959151, 0.02643373175128469, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22166799_18-04-2025_02_21_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22166801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22166802, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22166803, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22166804, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22166805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22166806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22166807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22166808, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22166809, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22166810, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22166811, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22166812, '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 (22165302,22165696,22166003,22166799) result : ((1350920744,), (1350920746,), (1350920747,), (1350920756,), (1350920760,), (1350920774,), (1350920786,), (1350920803,), (1350920806,), (1350920831,), (1350920832,), (1350920833,), (1350920834,), (1350920856,), (1350920858,), (1350920859,), (1350920860,), (1350920887,), (1350920890,), (1350920892,), (1350920894,), (1350920896,), (1350920911,), (1350920913,), (1350920916,), (1350920919,), (1350920922,), (1350920943,), (1350920945,), (1350920952,), (1350920956,), (1350920960,), (1350920963,), (1350920975,), (1350920977,), (1350920980,), (1350921009,), (1350921010,), (1350921011,), (1350921017,), (1350921024,), (1350921029,), (1350921057,), (1350921059,), (1350921098,), (1350921101,), (1350921145,), (1350921147,), (1350921150,), (1350921152,), (1350921184,), (1350921188,), (1350921190,), (1350921221,), (1350921225,), (1350921227,), (1350921230,), (1350921233,), (1350921269,), (1350921259,), (1350921263,), (1350921299,), (1350921303,), (1350921307,), (1350921310,), (1350921314,), (1350921318,), (1350921349,), (1350921353,), (1350921355,), (1350921356,), (1350921383,), (1350921387,), (1350921391,), (1350921394,), (1350921399,), (1350921402,), (1350921442,), (1350921444,), (1350921445,), (1350921446,), (1350921447,), (1350921479,), (1350921480,), (1350921481,), (1350921482,), (1350921502,), (1350921505,), (1350921508,), (1350921510,), (1350921513,), (1350921589,), (1350921613,), (1350921642,), (1350921668,), (1350921711,), (1350921738,), (1350921978,), (1350922003,), (1350922030,), (1350922057,), (1350922357,), (1350922384,), (1350922407,), (1350922440,), (1350922468,), (1350922493,), (1350922740,), (1350922766,), (1350922794,), (1350922821,), (1350922848,), (1350922876,), (1350922936,), (1350922940,), (1350922944,), (1350922948,), (1350922964,), (1350922965,), (1350922966,), (1350922967,), (1350922968,), (1350923429,), (1350923456,), (1350923483,), (1350923508,), (1350923531,), (1350923556,), (1350923813,), (1350923747,), (1350923790,), (1350923811,), (1350923910,), (1350923912,), (1350923913,), (1350923914,), (1350923916,), (1350923918,), (1350923941,), (1350923943,), (1350923945,), (1350923972,), (1350923974,), (1350923976,), (1350923978,), (1350923980,), (1350924009,), (1350924014,), (1350924016,), (1350924018,), (1350924044,), (1350924045,), (1350924046,), (1350924047,), (1350924049,), (1350924110,), (1350924120,), (1350924123,), (1350924402,), (1350924475,), (1350924518,), (1350924520,), (1350924524,), (1350924527,), (1350924918,), (1350924968,), (1350925016,), (1350925067,), (1350925116,), (1350925165,), (1350925407,), (1350925409,), (1350925426,), (1350925462,), (1350926032,), (1350926102,), (1350926177,), (1350926233,), (1350926649,), (1350926674,), (1350926706,), (1350926737,), (1350926755,), (1350926789,), (1350926791,), (1350926819,), (1350926848,), (1350926873,), (1350927103,), (1350927113,), (1350927128,), (1350927181,), (1350927183,), (1350927185,), (1350927187,), (1350927191,), (1350927868,), (1350927214,), (1350927216,), (1350927277,), (1350927517,), (1350927709,), (1350928273,), (1350928275,), (1350928277,), (1350928279,), (1350928316,), (1350928318,), (1350928319,), (1350928321,), (1350928325,), (1350928442,), (1350928874,), (1350928877,), (1350928880,), (1350928883,), (1350928885,), (1350928887,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'18042025': {'nb_upload': 21, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22166799]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350928887, 1350928885, 1350928883, 1350928880, 1350928877, 1350928874, 1350928442, 1350928325, 1350928321, 1350928319, 1350928318, 1350928316, 1350928279, 1350928277, 1350928275, 1350928273, 1350927709, 1350927517, 1350927277, 1350927216, 1350927214] map_info['map_portfolio_photo'] : {22166799: [1350928887, 1350928885, 1350928883, 1350928880, 1350928877, 1350928874, 1350928442, 1350928325, 1350928321, 1350928319, 1350928318, 1350928316, 1350928279, 1350928277, 1350928275, 1350928273, 1350927709, 1350927517, 1350927277, 1350927216, 1350927214]} final : True mtd_id 4302 list_pids : [1350928887, 1350928885, 1350928883, 1350928880, 1350928877, 1350928874, 1350928442, 1350928325, 1350928321, 1350928319, 1350928318, 1350928316, 1350928279, 1350928277, 1350928275, 1350928273, 1350927709, 1350927517, 1350927277, 1350927216, 1350927214] Looping around the photos to save general results len do output : 1 /22166799Didn'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, '2733672') ('4302', '22166799', '1350928887', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928885', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928883', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928880', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928877', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928874', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928442', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928325', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928321', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928319', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928318', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928316', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928279', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928277', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928275', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350928273', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350927709', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350927517', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350927277', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350927216', None, None, None, None, None, '2733672') ('4302', None, None, None, None, None, None, None, '2733672') ('4302', '22166799', '1350927214', None, None, None, None, None, '2733672') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 22 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, '22166799', 'None', None, None, None, None, '2733672'), ('4302', '22166799', '1350928887', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928885', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928883', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928880', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928877', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928874', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928442', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928325', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928321', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928319', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928318', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928316', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928279', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928277', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928275', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350928273', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350927709', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350927517', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350927277', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350927216', None, None, None, None, None, '2733672'), ('4302', '22166799', '1350927214', None, None, None, None, None, '2733672')] time used for this insertion : 0.01803302764892578 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3649721145629883 time spend to save output : 0.01836538314819336 total time spend for step 5 : 0.38333749771118164 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 (2733672) 2.54user 2.03system 0:09.88elapsed 46%CPU (0avgtext+0avgdata 160740maxresident)k 24inputs+12720outputs (8major+78989minor)pagefaults 0swaps