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 : 697468 load datou : 4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! Unexpected type seems boolean for variable list_input_json ERROR or WARNING : can't parse json string Expecting value: line 1 column 1 (char 0) Tried to parse : None w result : ((1350091578,), (1350091586,), (1350091928,), (1350091976,), (1350092013,), (1350092059,), (1350092087,), (1350092110,), (1350092297,), (1350092318,), (1350092347,), (1350092382,), (1350092454,), (1350092753,), (1350092790,), (1350092845,), (1350092931,), (1350093347,), (1350093381,), (1350093406,), (1350093434,), (1350093468,), (1350093498,), (1350093793,), (1350093808,), (1350093830,), (1350093845,), (1350093884,), (1350093976,), (1350094023,), (1350094040,), (1350094202,), (1350094237,), (1350094272,), (1350094312,), (1350094361,), (1350094414,), (1350094787,), (1350094820,), (1350094847,), (1350094867,)) 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 22076057 , 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=22076038 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Teint_Dans_La_Masse' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22076057) result : ((1350093501,), (1350093502,), (1350093503,), (1350093504,), (1350093787,), (1350093788,), (1350093789,), (1350093790,), (1350093791,), (1350093792,), (1350094186,), (1350094912,), (1350094913,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22076038) result : ((1350091578,), (1350091586,), (1350091928,), (1350091976,), (1350092013,), (1350092059,), (1350092087,), (1350092110,), (1350092297,), (1350092318,), (1350092347,), (1350092382,), (1350092454,), (1350092753,), (1350092790,), (1350092845,), (1350092931,), (1350093347,), (1350093381,), (1350093406,), (1350093434,), (1350093468,), (1350093498,), (1350093793,), (1350093808,), (1350093830,), (1350093845,), (1350093884,), (1350093976,), (1350094023,), (1350094040,), (1350094202,), (1350094237,), (1350094272,), (1350094312,), (1350094361,), (1350094414,), (1350094787,), (1350094820,), (1350094847,), (1350094867,)) 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 22076058 , 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=22076038 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='cartonnette' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22076058) result : ((1350093517,), (1350093803,), (1350093804,), (1350094118,), (1350094119,), (1350094209,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22076038) result : ((1350091578,), (1350091586,), (1350091928,), (1350091976,), (1350092013,), (1350092059,), (1350092087,), (1350092110,), (1350092297,), (1350092318,), (1350092347,), (1350092382,), (1350092454,), (1350092753,), (1350092790,), (1350092845,), (1350092931,), (1350093347,), (1350093381,), (1350093406,), (1350093434,), (1350093468,), (1350093498,), (1350093793,), (1350093808,), (1350093830,), (1350093845,), (1350093884,), (1350093976,), (1350094023,), (1350094040,), (1350094202,), (1350094237,), (1350094272,), (1350094312,), (1350094361,), (1350094414,), (1350094787,), (1350094820,), (1350094847,), (1350094867,)) 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 22076059 , 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=22076038 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 (22076059) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22076038) result : ((1350091578,), (1350091586,), (1350091928,), (1350091976,), (1350092013,), (1350092059,), (1350092087,), (1350092110,), (1350092297,), (1350092318,), (1350092347,), (1350092382,), (1350092454,), (1350092753,), (1350092790,), (1350092845,), (1350092931,), (1350093347,), (1350093381,), (1350093406,), (1350093434,), (1350093468,), (1350093498,), (1350093793,), (1350093808,), (1350093830,), (1350093845,), (1350093884,), (1350093976,), (1350094023,), (1350094040,), (1350094202,), (1350094237,), (1350094272,), (1350094312,), (1350094361,), (1350094414,), (1350094787,), (1350094820,), (1350094847,), (1350094867,)) 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 22076060 , 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=22076038 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='environnement' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22076060) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22076038) result : ((1350091578,), (1350091586,), (1350091928,), (1350091976,), (1350092013,), (1350092059,), (1350092087,), (1350092110,), (1350092297,), (1350092318,), (1350092347,), (1350092382,), (1350092454,), (1350092753,), (1350092790,), (1350092845,), (1350092931,), (1350093347,), (1350093381,), (1350093406,), (1350093434,), (1350093468,), (1350093498,), (1350093793,), (1350093808,), (1350093830,), (1350093845,), (1350093884,), (1350093976,), (1350094023,), (1350094040,), (1350094202,), (1350094237,), (1350094272,), (1350094312,), (1350094361,), (1350094414,), (1350094787,), (1350094820,), (1350094847,), (1350094867,)) 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 22076061 , 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=22076038 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='papier' 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 (22076061) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22076038) result : ((1350091578,), (1350091586,), (1350091928,), (1350091976,), (1350092013,), (1350092059,), (1350092087,), (1350092110,), (1350092297,), (1350092318,), (1350092347,), (1350092382,), (1350092454,), (1350092753,), (1350092790,), (1350092845,), (1350092931,), (1350093347,), (1350093381,), (1350093406,), (1350093434,), (1350093468,), (1350093498,), (1350093793,), (1350093808,), (1350093830,), (1350093845,), (1350093884,), (1350093976,), (1350094023,), (1350094040,), (1350094202,), (1350094237,), (1350094272,), (1350094312,), (1350094361,), (1350094414,), (1350094787,), (1350094820,), (1350094847,), (1350094867,)) 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 22076062 , 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=22076038 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 (22076062) result : ((1350093796,), (1350094115,), (1350094203,), (1350094914,), (1350094915,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22076038) result : ((1350091578,), (1350091586,), (1350091928,), (1350091976,), (1350092013,), (1350092059,), (1350092087,), (1350092110,), (1350092297,), (1350092318,), (1350092347,), (1350092382,), (1350092454,), (1350092753,), (1350092790,), (1350092845,), (1350092931,), (1350093347,), (1350093381,), (1350093406,), (1350093434,), (1350093468,), (1350093498,), (1350093793,), (1350093808,), (1350093830,), (1350093845,), (1350093884,), (1350093976,), (1350094023,), (1350094040,), (1350094202,), (1350094237,), (1350094272,), (1350094312,), (1350094361,), (1350094414,), (1350094787,), (1350094820,), (1350094847,), (1350094867,)) 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 22076063 , 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=22076038 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 (22076063) result : ((1350093523,), (1350093712,), (1350093806,), (1350093807,), (1350094214,), (1350094918,), (1350094937,), (1350094938,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22076038) result : ((1350091578,), (1350091586,), (1350091928,), (1350091976,), (1350092013,), (1350092059,), (1350092087,), (1350092110,), (1350092297,), (1350092318,), (1350092347,), (1350092382,), (1350092454,), (1350092753,), (1350092790,), (1350092845,), (1350092931,), (1350093347,), (1350093381,), (1350093406,), (1350093434,), (1350093468,), (1350093498,), (1350093793,), (1350093808,), (1350093830,), (1350093845,), (1350093884,), (1350093976,), (1350094023,), (1350094040,), (1350094202,), (1350094237,), (1350094272,), (1350094312,), (1350094361,), (1350094414,), (1350094787,), (1350094820,), (1350094847,), (1350094867,)) 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`=22076038 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','metal','papier','kraft','autre_refus','Carton_brun','mal_croppe','flou','environnement','Teint_Dans_La_Masse','plastique','cartonnette')) 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`=22076038 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','metal','papier','kraft','autre_refus','Carton_brun','mal_croppe','flou','environnement','Teint_Dans_La_Masse','plastique','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'flou': {'main_port_id': 22076038, 'sub_port_id': 22076064, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562755, 'last_updated_at': datetime.datetime(2025, 4, 4, 14, 5), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 14, 5), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 14, 5)}, 'metal': {'main_port_id': 22076038, 'sub_port_id': 22076065, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562756, 'last_updated_at': datetime.datetime(2025, 4, 4, 14, 5), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 14, 5), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 14, 5)}, 'kraft': {'main_port_id': 22076038, 'sub_port_id': 22076066, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562757, 'last_updated_at': datetime.datetime(2025, 4, 4, 14, 5), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 14, 5), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 14, 5)}, 'plastique': {'main_port_id': 22076038, 'sub_port_id': 22076067, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562758, 'last_updated_at': datetime.datetime(2025, 4, 4, 14, 5), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 14, 5), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 14, 5)}, 'autre_refus': {'main_port_id': 22076038, 'sub_port_id': 22076068, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562759, 'last_updated_at': datetime.datetime(2025, 4, 4, 14, 5), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 14, 5), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 14, 5)}, 'Teint_Dans_La_Masse': {'main_port_id': 22076038, 'sub_port_id': 22076069, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562760, 'last_updated_at': datetime.datetime(2025, 4, 4, 14, 5), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 14, 5), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 14, 5)}, 'cartonnette': {'main_port_id': 22076038, 'sub_port_id': 22076070, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562761, 'last_updated_at': datetime.datetime(2025, 4, 4, 14, 5), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 14, 5), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 14, 5)}, 'mal_croppe': {'main_port_id': 22076038, 'sub_port_id': 22076071, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562762, 'last_updated_at': datetime.datetime(2025, 4, 4, 14, 5), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 14, 5), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 14, 5)}, 'environnement': {'main_port_id': 22076038, 'sub_port_id': 22076072, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562763, 'last_updated_at': datetime.datetime(2025, 4, 4, 14, 5), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 14, 5), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 14, 5)}, 'papier': {'main_port_id': 22076038, 'sub_port_id': 22076073, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562764, 'last_updated_at': datetime.datetime(2025, 4, 4, 14, 5), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 14, 5), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 14, 5)}, 'Carton_gris': {'main_port_id': 22076038, 'sub_port_id': 22076074, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562765, 'last_updated_at': datetime.datetime(2025, 4, 4, 14, 5), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 14, 5), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 14, 5)}, 'Carton_brun': {'main_port_id': 22076038, 'sub_port_id': 22076075, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14562766, 'last_updated_at': datetime.datetime(2025, 4, 4, 14, 8, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 4, 14, 8, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 4, 14, 5)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22076064,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22076052 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22076065,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22076053 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22076066,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22076054 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22076067,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22076055 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22076068,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22076056 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22076069,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22076057 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22076070,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22076058 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22076071,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22076059 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22076072,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22076060 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22076073,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22076061 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22076074,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22076062 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22076075,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22076063 lien utilise dans velours : https://www.fotonower.com/velours/22076064,22076065,22076066,22076067,22076068,22076069,22076070,22076071,22076072,22076073,22076074,22076075?tags=flou,metal,kraft,plastique,autre_refus,Teint_Dans_La_Masse,cartonnette,mal_croppe,environnement,papier,Carton_gris,Carton_brun After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22076038]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1350094867, 1350094847, 1350094820, 1350094787, 1350094414, 1350094361, 1350094312, 1350094272, 1350094237, 1350094202] map_info['map_portfolio_photo'] : {22076038: [1350094867, 1350094847, 1350094820, 1350094787, 1350094414, 1350094361, 1350094312, 1350094272, 1350094237, 1350094202, 1350094040, 1350094023, 1350093976, 1350093884, 1350093845, 1350093830, 1350093808, 1350093793, 1350093498, 1350093468, 1350093434, 1350093406, 1350093381, 1350093347, 1350092931, 1350092845, 1350092790, 1350092753, 1350092454, 1350092382, 1350092347, 1350092318, 1350092297, 1350092110, 1350092087, 1350092059, 1350092013, 1350091976, 1350091928, 1350091586, 1350091578]} final : False mtd_id 4302 list_pids : [1350094867, 1350094847, 1350094820, 1350094787, 1350094414, 1350094361, 1350094312, 1350094272, 1350094237, 1350094202] Looping around the photos to save general results len do output : 1 /22076038. 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, '2726644') ('4302', '22076038', '1350094867', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094847', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094820', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094787', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094414', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094361', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094312', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094272', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094237', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094202', None, None, None, None, None, '2726644') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '22076038', "{'flou': 22076052, 'metal': 22076053, 'kraft': 22076054, 'plastique': 22076055, 'autre_refus': 22076056, 'Teint_Dans_La_Masse': 22076057, 'cartonnette': 22076058, 'mal_croppe': 22076059, 'environnement': 22076060, 'papier': 22076061, 'Carton_gris': 22076062, 'Carton_brun': 22076063}", None, None, None, None, '2726644'), ('4302', '22076038', '1350094867', None, None, None, None, None, '2726644'), ('4302', '22076038', '1350094847', None, None, None, None, None, '2726644'), ('4302', '22076038', '1350094820', None, None, None, None, None, '2726644'), ('4302', '22076038', '1350094787', None, None, None, None, None, '2726644'), ('4302', '22076038', '1350094414', None, None, None, None, None, '2726644'), ('4302', '22076038', '1350094361', None, None, None, None, None, '2726644'), ('4302', '22076038', '1350094312', None, None, None, None, None, '2726644'), ('4302', '22076038', '1350094272', None, None, None, None, None, '2726644'), ('4302', '22076038', '1350094237', None, None, None, None, None, '2726644'), ('4302', '22076038', '1350094202', None, None, None, None, None, '2726644')] time used for this insertion : 0.01576685905456543 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5792763233184814 time spend to save output : 0.01620030403137207 total time spend for step 1 : 1.5954766273498535 step2:final Fri Apr 4 14:11:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (22076038) 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 22076038 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350091586,1350091578,1350092110,1350092087,1350092059,1350092013,1350091976,1350091928,1350092454,1350092382,1350092347,1350092318,1350092297,1350092931,1350092845,1350092790,1350092753,1350093498,1350093468,1350093434,1350093406,1350093381,1350093347,1350093884,1350093845,1350093830,1350093808,1350093793,1350094040,1350094023,1350093976,1350094414,1350094361,1350094312,1350094272,1350094237,1350094202,1350094867,1350094847,1350094820,1350094787); 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([22076038]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350094867: ('0.043040146220188966',), 1350094847: ('0.043040146220188966',), 1350094820: ('0.043040146220188966',), 1350094787: ('0.043040146220188966',), 1350094414: ('0.043040146220188966',), 1350094361: ('0.043040146220188966',), 1350094312: ('0.043040146220188966',), 1350094272: ('0.043040146220188966',), 1350094237: ('0.043040146220188966',), 1350094202: ('0.043040146220188966',)} new output for save of step final : {1350094867: ('0.043040146220188966',), 1350094847: ('0.043040146220188966',), 1350094820: ('0.043040146220188966',), 1350094787: ('0.043040146220188966',), 1350094414: ('0.043040146220188966',), 1350094361: ('0.043040146220188966',), 1350094312: ('0.043040146220188966',), 1350094272: ('0.043040146220188966',), 1350094237: ('0.043040146220188966',), 1350094202: ('0.043040146220188966',)} [1350094867, 1350094847, 1350094820, 1350094787, 1350094414, 1350094361, 1350094312, 1350094272, 1350094237, 1350094202] map_info['map_portfolio_photo'] : {22076038: [1350094867, 1350094847, 1350094820, 1350094787, 1350094414, 1350094361, 1350094312, 1350094272, 1350094237, 1350094202, 1350094040, 1350094023, 1350093976, 1350093884, 1350093845, 1350093830, 1350093808, 1350093793, 1350093498, 1350093468, 1350093434, 1350093406, 1350093381, 1350093347, 1350092931, 1350092845, 1350092790, 1350092753, 1350092454, 1350092382, 1350092347, 1350092318, 1350092297, 1350092110, 1350092087, 1350092059, 1350092013, 1350091976, 1350091928, 1350091586, 1350091578]} final : False mtd_id 4302 list_pids : [1350094867, 1350094847, 1350094820, 1350094787, 1350094414, 1350094361, 1350094312, 1350094272, 1350094237, 1350094202] Looping around the photos to save general results len do output : 10 /1350094867.Didn't retrieve data . /1350094847.Didn't retrieve data . /1350094820.Didn't retrieve data . /1350094787.Didn't retrieve data . /1350094414.Didn't retrieve data . /1350094361.Didn't retrieve data . /1350094312.Didn't retrieve data . /1350094272.Didn't retrieve data . /1350094237.Didn't retrieve data . /1350094202.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, '2726644') ('4302', '22076038', '1350094867', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094847', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094820', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094787', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094414', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094361', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094312', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094272', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094237', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094202', None, None, None, None, None, '2726644') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '22076038', '1350094867', '0.043040146220188966', None, None, None, None, '2726644'), ('4302', '22076038', '1350094847', '0.043040146220188966', None, None, None, None, '2726644'), ('4302', '22076038', '1350094820', '0.043040146220188966', None, None, None, None, '2726644'), ('4302', '22076038', '1350094787', '0.043040146220188966', None, None, None, None, '2726644'), ('4302', '22076038', '1350094414', '0.043040146220188966', None, None, None, None, '2726644'), ('4302', '22076038', '1350094361', '0.043040146220188966', None, None, None, None, '2726644'), ('4302', '22076038', '1350094312', '0.043040146220188966', None, None, None, None, '2726644'), ('4302', '22076038', '1350094272', '0.043040146220188966', None, None, None, None, '2726644'), ('4302', '22076038', '1350094237', '0.043040146220188966', None, None, None, None, '2726644'), ('4302', '22076038', '1350094202', '0.043040146220188966', None, None, None, None, '2726644')] time used for this insertion : 0.014984607696533203 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.11116862297058105 time spend to save output : 0.015438318252563477 total time spend for step 2 : 0.12660694122314453 step3:velours_tree Fri Apr 4 14:11:02 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 : {22076038: [{'flou': 22076052, 'metal': 22076053, 'kraft': 22076054, 'plastique': 22076055, 'autre_refus': 22076056, 'Teint_Dans_La_Masse': 22076057, 'cartonnette': 22076058, 'mal_croppe': 22076059, 'environnement': 22076060, 'papier': 22076061, 'Carton_gris': 22076062, 'Carton_brun': 22076063}]} input_args_next_step : {22076038: ()} output_args : {22076038: [{'flou': 22076052, 'metal': 22076053, 'kraft': 22076054, 'plastique': 22076055, 'autre_refus': 22076056, 'Teint_Dans_La_Masse': 22076057, 'cartonnette': 22076058, 'mal_croppe': 22076059, 'environnement': 22076060, 'papier': 22076061, 'Carton_gris': 22076062, 'Carton_brun': 22076063}]} args : 22076038 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'flou': 22076052, 'metal': 22076053, 'kraft': 22076054, 'plastique': 22076055, 'autre_refus': 22076056, 'Teint_Dans_La_Masse': 22076057, 'cartonnette': 22076058, 'mal_croppe': 22076059, 'environnement': 22076060, 'papier': 22076061, 'Carton_gris': 22076062, 'Carton_brun': 22076063},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22076038) 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([22076038]) 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.41689014434814453 time spend to save output : 0.00011515617370605469 total time spend for step 3 : 0.4170053005218506 step4:send_mail_cod Fri Apr 4 14:11:02 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 : {1350094867: ('0.043040146220188966',), 1350094847: ('0.043040146220188966',), 1350094820: ('0.043040146220188966',), 1350094787: ('0.043040146220188966',), 1350094414: ('0.043040146220188966',), 1350094361: ('0.043040146220188966',), 1350094312: ('0.043040146220188966',), 1350094272: ('0.043040146220188966',), 1350094237: ('0.043040146220188966',), 1350094202: ('0.043040146220188966',)} input_args_next_step : {1350094867: ()} output_args : {1350094867: ('0.043040146220188966',), 1350094847: ('0.043040146220188966',), 1350094820: ('0.043040146220188966',), 1350094787: ('0.043040146220188966',), 1350094414: ('0.043040146220188966',), 1350094361: ('0.043040146220188966',), 1350094312: ('0.043040146220188966',), 1350094272: ('0.043040146220188966',), 1350094237: ('0.043040146220188966',), 1350094202: ('0.043040146220188966',)} args : 1350094867 depend.output_id : 0 input_args_next_step : {1350094867: ('0.043040146220188966',), 1350094847: ()} output_args : {1350094867: ('0.043040146220188966',), 1350094847: ('0.043040146220188966',), 1350094820: ('0.043040146220188966',), 1350094787: ('0.043040146220188966',), 1350094414: ('0.043040146220188966',), 1350094361: ('0.043040146220188966',), 1350094312: ('0.043040146220188966',), 1350094272: ('0.043040146220188966',), 1350094237: ('0.043040146220188966',), 1350094202: ('0.043040146220188966',)} args : 1350094847 depend.output_id : 0 input_args_next_step : {1350094867: ('0.043040146220188966',), 1350094847: ('0.043040146220188966',), 1350094820: ()} output_args : {1350094867: ('0.043040146220188966',), 1350094847: ('0.043040146220188966',), 1350094820: ('0.043040146220188966',), 1350094787: ('0.043040146220188966',), 1350094414: ('0.043040146220188966',), 1350094361: ('0.043040146220188966',), 1350094312: ('0.043040146220188966',), 1350094272: ('0.043040146220188966',), 1350094237: ('0.043040146220188966',), 1350094202: ('0.043040146220188966',)} args : 1350094820 depend.output_id : 0 input_args_next_step : {1350094867: ('0.043040146220188966',), 1350094847: ('0.043040146220188966',), 1350094820: ('0.043040146220188966',), 1350094787: ()} output_args : {1350094867: ('0.043040146220188966',), 1350094847: ('0.043040146220188966',), 1350094820: ('0.043040146220188966',), 1350094787: ('0.043040146220188966',), 1350094414: ('0.043040146220188966',), 1350094361: ('0.043040146220188966',), 1350094312: ('0.043040146220188966',), 1350094272: ('0.043040146220188966',), 1350094237: ('0.043040146220188966',), 1350094202: ('0.043040146220188966',)} args : 1350094787 depend.output_id : 0 input_args_next_step : {1350094867: ('0.043040146220188966',), 1350094847: ('0.043040146220188966',), 1350094820: ('0.043040146220188966',), 1350094787: ('0.043040146220188966',), 1350094414: ()} output_args : {1350094867: ('0.043040146220188966',), 1350094847: ('0.043040146220188966',), 1350094820: ('0.043040146220188966',), 1350094787: ('0.043040146220188966',), 1350094414: ('0.043040146220188966',), 1350094361: ('0.043040146220188966',), 1350094312: ('0.043040146220188966',), 1350094272: ('0.043040146220188966',), 1350094237: ('0.043040146220188966',), 1350094202: ('0.043040146220188966',)} args : 1350094414 depend.output_id : 0 input_args_next_step : {1350094867: ('0.043040146220188966',), 1350094847: ('0.043040146220188966',), 1350094820: ('0.043040146220188966',), 1350094787: ('0.043040146220188966',), 1350094414: ('0.043040146220188966',), 1350094361: ()} output_args : {1350094867: ('0.043040146220188966',), 1350094847: ('0.043040146220188966',), 1350094820: ('0.043040146220188966',), 1350094787: ('0.043040146220188966',), 1350094414: ('0.043040146220188966',), 1350094361: ('0.043040146220188966',), 1350094312: ('0.043040146220188966',), 1350094272: ('0.043040146220188966',), 1350094237: ('0.043040146220188966',), 1350094202: ('0.043040146220188966',)} args : 1350094361 depend.output_id : 0 input_args_next_step : {1350094867: ('0.043040146220188966',), 1350094847: ('0.043040146220188966',), 1350094820: ('0.043040146220188966',), 1350094787: ('0.043040146220188966',), 1350094414: ('0.043040146220188966',), 1350094361: ('0.043040146220188966',), 1350094312: ()} output_args : {1350094867: ('0.043040146220188966',), 1350094847: ('0.043040146220188966',), 1350094820: ('0.043040146220188966',), 1350094787: ('0.043040146220188966',), 1350094414: ('0.043040146220188966',), 1350094361: ('0.043040146220188966',), 1350094312: ('0.043040146220188966',), 1350094272: ('0.043040146220188966',), 1350094237: ('0.043040146220188966',), 1350094202: ('0.043040146220188966',)} args : 1350094312 depend.output_id : 0 input_args_next_step : {1350094867: ('0.043040146220188966',), 1350094847: ('0.043040146220188966',), 1350094820: ('0.043040146220188966',), 1350094787: ('0.043040146220188966',), 1350094414: ('0.043040146220188966',), 1350094361: ('0.043040146220188966',), 1350094312: ('0.043040146220188966',), 1350094272: ()} output_args : {1350094867: ('0.043040146220188966',), 1350094847: ('0.043040146220188966',), 1350094820: ('0.043040146220188966',), 1350094787: ('0.043040146220188966',), 1350094414: ('0.043040146220188966',), 1350094361: ('0.043040146220188966',), 1350094312: ('0.043040146220188966',), 1350094272: ('0.043040146220188966',), 1350094237: ('0.043040146220188966',), 1350094202: ('0.043040146220188966',)} args : 1350094272 depend.output_id : 0 input_args_next_step : {1350094867: ('0.043040146220188966',), 1350094847: ('0.043040146220188966',), 1350094820: ('0.043040146220188966',), 1350094787: ('0.043040146220188966',), 1350094414: ('0.043040146220188966',), 1350094361: ('0.043040146220188966',), 1350094312: ('0.043040146220188966',), 1350094272: ('0.043040146220188966',), 1350094237: ()} output_args : {1350094867: ('0.043040146220188966',), 1350094847: ('0.043040146220188966',), 1350094820: ('0.043040146220188966',), 1350094787: ('0.043040146220188966',), 1350094414: ('0.043040146220188966',), 1350094361: ('0.043040146220188966',), 1350094312: ('0.043040146220188966',), 1350094272: ('0.043040146220188966',), 1350094237: ('0.043040146220188966',), 1350094202: ('0.043040146220188966',)} args : 1350094237 depend.output_id : 0 input_args_next_step : {1350094867: ('0.043040146220188966',), 1350094847: ('0.043040146220188966',), 1350094820: ('0.043040146220188966',), 1350094787: ('0.043040146220188966',), 1350094414: ('0.043040146220188966',), 1350094361: ('0.043040146220188966',), 1350094312: ('0.043040146220188966',), 1350094272: ('0.043040146220188966',), 1350094237: ('0.043040146220188966',), 1350094202: ()} output_args : {1350094867: ('0.043040146220188966',), 1350094847: ('0.043040146220188966',), 1350094820: ('0.043040146220188966',), 1350094787: ('0.043040146220188966',), 1350094414: ('0.043040146220188966',), 1350094361: ('0.043040146220188966',), 1350094312: ('0.043040146220188966',), 1350094272: ('0.043040146220188966',), 1350094237: ('0.043040146220188966',), 1350094202: ('0.043040146220188966',)} args : 1350094202 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 : {22076038: [{'flou': 22076052, 'metal': 22076053, 'kraft': 22076054, 'plastique': 22076055, 'autre_refus': 22076056, 'Teint_Dans_La_Masse': 22076057, 'cartonnette': 22076058, 'mal_croppe': 22076059, 'environnement': 22076060, 'papier': 22076061, 'Carton_gris': 22076062, 'Carton_brun': 22076063}]} input_args_next_step : {1350094867: ('0.043040146220188966',), 1350094847: ('0.043040146220188966',), 1350094820: ('0.043040146220188966',), 1350094787: ('0.043040146220188966',), 1350094414: ('0.043040146220188966',), 1350094361: ('0.043040146220188966',), 1350094312: ('0.043040146220188966',), 1350094272: ('0.043040146220188966',), 1350094237: ('0.043040146220188966',), 1350094202: ('0.043040146220188966',), 22076038: ()} output_args : {22076038: [{'flou': 22076052, 'metal': 22076053, 'kraft': 22076054, 'plastique': 22076055, 'autre_refus': 22076056, 'Teint_Dans_La_Masse': 22076057, 'cartonnette': 22076058, 'mal_croppe': 22076059, 'environnement': 22076060, 'papier': 22076061, 'Carton_gris': 22076062, 'Carton_brun': 22076063}]} args : 22076038 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 :11, first value : ('0.043040146220188966',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22076038) 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 (1350094867,1350094847,1350094820,1350094787,1350094414,1350094361,1350094312,1350094272,1350094237,1350094202) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350094202 begin to download photo : 1350094312 begin to download photo : 1350094787 begin to download photo : 1350094867 download finish for photo 1350094787 begin to download photo : 1350094820 download finish for photo 1350094202 begin to download photo : 1350094237 download finish for photo 1350094312 begin to download photo : 1350094361 download finish for photo 1350094867 download finish for photo 1350094820 begin to download photo : 1350094847 download finish for photo 1350094237 begin to download photo : 1350094272 download finish for photo 1350094361 begin to download photo : 1350094414 download finish for photo 1350094847 download finish for photo 1350094272 download finish for photo 1350094414 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette220760521743768662/ imagette220760531743768662/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P22076038_04-04-2025_14_11_02.pdf 22076052 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=22076052 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220760521743768662 22076053 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=22076053 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220760531743768662 22076054 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=22076054 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350093529: '1743768291_3549926_1350092347_e0fdb81a430bc12c44daebf0019eee73_rle_crop_3748054040_0.png', 1350093723: '1743768332_3550759_1350092110_dae0d8b90638f17a8ec1ca0eb411b06a_rle_crop_3748056639_0.png', 1350093816: '1743768314_3550267_1350091976_510a92f1fbd307504839a655265d9caf_rle_crop_3748056803_0.png', 1350093817: '1743768314_3550267_1350091928_e259889a34f6f8153c298c1ebe6bca16_rle_crop_3748056814_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/15d2594de5279df516cacf27f99a347a_83941369.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/075c79a81f062395d2ff22bfb52052b1_28591369.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/dfa016c3fcc903a746f4143c3be80646_30198644.png change filename to text .imagette220760541743768662/ imagette220760541743768662/1743768291_3549926_1350092347_e0fdb81a430bc12c44daebf0019eee73_rle_crop_3748054040_0.png.png imagette220760541743768662/1743768314_3550267_1350091976_510a92f1fbd307504839a655265d9caf_rle_crop_3748056803_0.png.png imagette220760541743768662/1743768332_3550759_1350092110_dae0d8b90638f17a8ec1ca0eb411b06a_rle_crop_3748056639_0.png.png imagette220760541743768662/1743768314_3550267_1350091928_e259889a34f6f8153c298c1ebe6bca16_rle_crop_3748056814_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/b7adc1f399374f1ed26d18f6594a966a_4683891.png imagette220760541743768662 22076055 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=22076055 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350093812: '1743768314_3550267_1350091976_510a92f1fbd307504839a655265d9caf_rle_crop_3748056804_0.png', 1350093813: '1743768314_3550267_1350091928_e259889a34f6f8153c298c1ebe6bca16_rle_crop_3748056815_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/9f514980a4f8b7a012eb76780f3e6fb2_13025220.png change filename to text .imagette220760551743768663/ imagette220760551743768663/1743768314_3550267_1350091976_510a92f1fbd307504839a655265d9caf_rle_crop_3748056804_0.png.png imagette220760551743768663/1743768314_3550267_1350091928_e259889a34f6f8153c298c1ebe6bca16_rle_crop_3748056815_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/7903f947777ca97bbaa039ac4613e0f8_56971436.png imagette220760551743768663 22076056 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=22076056 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350093512: '1743768291_3549926_1350092297_d196682dc0fb44759bb1146a47882bfe_rle_crop_3748054098_0.png', 1350093794: '1743768314_3550267_1350091976_510a92f1fbd307504839a655265d9caf_rle_crop_3748056801_0.png', 1350094114: '1743768432_3552341_1350093434_770b991a0129efc3c80197ff31a99c9e_rle_crop_3748057627_0.png', 1350094191: '1743768450_3552650_1350092753_84036b0433d5ee462a5f3499f153de53_rle_crop_3748057882_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/b61080db46400ca6f02322ee77de13fd_36085826.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/72ff12c8b2599d6f4eeda4f3fe42d5af_84838496.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/ff16d7a0470734913f4f3e55db076cc2_39367141.png change filename to text .imagette220760561743768663/ imagette220760561743768663/1743768291_3549926_1350092297_d196682dc0fb44759bb1146a47882bfe_rle_crop_3748054098_0.png.png imagette220760561743768663/1743768450_3552650_1350092753_84036b0433d5ee462a5f3499f153de53_rle_crop_3748057882_0.png.png imagette220760561743768663/1743768432_3552341_1350093434_770b991a0129efc3c80197ff31a99c9e_rle_crop_3748057627_0.png.png imagette220760561743768663/1743768314_3550267_1350091976_510a92f1fbd307504839a655265d9caf_rle_crop_3748056801_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/dc6fc5875cff674fed67315fcb3d326f_90129736.png imagette220760561743768663 22076058 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=22076058 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350093517: '1743768291_3549926_1350092382_54a181ff1cd1b48e45861a33d09b93e6_rle_crop_3748054015_0.png', 1350093803: '1743768314_3550267_1350092059_0a5534be142d312dd4c000d76245cf23_rle_crop_3748056689_0.png', 1350093804: '1743768314_3550267_1350091928_e259889a34f6f8153c298c1ebe6bca16_rle_crop_3748056817_0.png', 1350094118: '1743768432_3552341_1350093468_04b4679212c06db8d910d32bcf53044a_rle_crop_3748057617_0.png', 1350094119: '1743768432_3552341_1350093406_fc9a7c1e8ad72719f7c41bcd4980b335_rle_crop_3748057718_0.png', 1350094209: '1743768450_3552650_1350093498_c7ad29a925d3ee7e45b58ef7c8610e26_rle_crop_3748057818_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/9a1c21db6451f06b0156fb5146d7992b_37566665.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/ef9f0bb3e7cea6786b0b584a6638a9c6_57286312.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/4f7d08ce29892fa748bfbbc0639336f2_10505884.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/517baff122719971354f720049f15c65_19202062.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/9b9f4f899cd033b612269ae38bf7641f_60476351.png change filename to text .imagette220760581743768663/ imagette220760581743768663/1743768432_3552341_1350093406_fc9a7c1e8ad72719f7c41bcd4980b335_rle_crop_3748057718_0.png.png imagette220760581743768663/1743768291_3549926_1350092382_54a181ff1cd1b48e45861a33d09b93e6_rle_crop_3748054015_0.png.png imagette220760581743768663/1743768450_3552650_1350093498_c7ad29a925d3ee7e45b58ef7c8610e26_rle_crop_3748057818_0.png.png imagette220760581743768663/1743768432_3552341_1350093468_04b4679212c06db8d910d32bcf53044a_rle_crop_3748057617_0.png.png imagette220760581743768663/1743768314_3550267_1350092059_0a5534be142d312dd4c000d76245cf23_rle_crop_3748056689_0.png.png imagette220760581743768663/1743768314_3550267_1350091928_e259889a34f6f8153c298c1ebe6bca16_rle_crop_3748056817_0.png.png imagette220760591743768663/ wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/d645711aa057b4bc5ededc10715bfc2e_1643038.png imagette220760581743768663 22076059 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=22076059 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220760591743768663 22076057 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=22076057 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350093501: '1743768291_3549926_1350092382_54a181ff1cd1b48e45861a33d09b93e6_rle_crop_3748054018_0.png', 1350093502: '1743768291_3549926_1350092347_e0fdb81a430bc12c44daebf0019eee73_rle_crop_3748054043_0.png', 1350093503: '1743768291_3549926_1350092318_05cbf44e27b99f5502ef8b5cd9ea5f54_rle_crop_3748054070_0.png', 1350093504: '1743768291_3549926_1350092318_05cbf44e27b99f5502ef8b5cd9ea5f54_rle_crop_3748054065_0.png', 1350093787: '1743768314_3550267_1350092454_b0b72739e32c3907c6a90a502baf3df0_rle_crop_3748056610_0.png', 1350093788: '1743768314_3550267_1350092013_5533f1a049b094b701e89a0b46264f2d_rle_crop_3748056780_0.png', 1350093789: '1743768314_3550267_1350091976_510a92f1fbd307504839a655265d9caf_rle_crop_3748056806_0.png', 1350093790: '1743768314_3550267_1350091928_e259889a34f6f8153c298c1ebe6bca16_rle_crop_3748056822_0.png', 1350093791: '1743768314_3550267_1350091928_e259889a34f6f8153c298c1ebe6bca16_rle_crop_3748056823_0.png', 1350093792: '1743768314_3550267_1350091928_e259889a34f6f8153c298c1ebe6bca16_rle_crop_3748056821_0.png', 1350094186: '1743768450_3552650_1350092790_5f517f8723e7372dfad145cd7d05b762_rle_crop_3748057856_0.png', 1350094912: '1743768533_3554127_1350093845_aabac2b55da8f9a4868f9dcb7ffd4d9c_rle_crop_3748060944_0.png', 1350094913: '1743768533_3554127_1350093793_6e0b15fda6aeec14a16c7151787facee_rle_crop_3748060976_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/4140b1133b3354c563f091c9b3193cb6_10406734.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/f0e83fa7b418e033a248aafa9b20a170_46715200.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/de60ae460e747a70bdc3f42f50fe34f2_42201279.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/ba35fcdc9550ccfbfb7ea33054d30d71_36200834.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/aa1031b33b9ab2eabdc1b8cd62a75a3a_64984440.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/0b83e62e79eb32d66425aa538520ef2d_86392172.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/5270488a7961c45a34c887507b933d1a_58046552.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/25e71724734a6ce80c59d6da96825460_4550186.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/a639507cbaf75eea0d4393ae4ab575c4_9164816.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/b745933b9340a2ab4adf8f11bdb6600a_62206571.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/ef5ae7bdcc0a9f41628f615eb0ddcc66_72287517.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/0f47bdf7d254bdd2b890b15e1d10f555_73909607.png change filename to text .imagette220760571743768663/ imagette220760571743768663/1743768450_3552650_1350092790_5f517f8723e7372dfad145cd7d05b762_rle_crop_3748057856_0.png.png imagette220760571743768663/1743768291_3549926_1350092318_05cbf44e27b99f5502ef8b5cd9ea5f54_rle_crop_3748054070_0.png.png imagette220760571743768663/1743768314_3550267_1350091976_510a92f1fbd307504839a655265d9caf_rle_crop_3748056806_0.png.png imagette220760571743768663/1743768314_3550267_1350091928_e259889a34f6f8153c298c1ebe6bca16_rle_crop_3748056822_0.png.png imagette220760571743768663/1743768291_3549926_1350092382_54a181ff1cd1b48e45861a33d09b93e6_rle_crop_3748054018_0.png.png imagette220760571743768663/1743768291_3549926_1350092318_05cbf44e27b99f5502ef8b5cd9ea5f54_rle_crop_3748054065_0.png.png imagette220760571743768663/1743768533_3554127_1350093845_aabac2b55da8f9a4868f9dcb7ffd4d9c_rle_crop_3748060944_0.png.png imagette220760571743768663/1743768314_3550267_1350092013_5533f1a049b094b701e89a0b46264f2d_rle_crop_3748056780_0.png.png imagette220760571743768663/1743768314_3550267_1350091928_e259889a34f6f8153c298c1ebe6bca16_rle_crop_3748056823_0.png.png imagette220760571743768663/1743768314_3550267_1350091928_e259889a34f6f8153c298c1ebe6bca16_rle_crop_3748056821_0.png.png imagette220760571743768663/1743768533_3554127_1350093793_6e0b15fda6aeec14a16c7151787facee_rle_crop_3748060976_0.png.png imagette220760571743768663/1743768291_3549926_1350092347_e0fdb81a430bc12c44daebf0019eee73_rle_crop_3748054043_0.png.png imagette220760571743768663/1743768314_3550267_1350092454_b0b72739e32c3907c6a90a502baf3df0_rle_crop_3748056610_0.png.png wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/43022e6fc97a68b8e6301372698dbcea_61330233.png imagette220760571743768663 22076062 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=22076062 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350093796: '1743768314_3550267_1350091976_510a92f1fbd307504839a655265d9caf_rle_crop_3748056800_0.png', 1350094115: '1743768432_3552341_1350093347_5d2e91e02f59a759ebb4f02dcb27e6cd_rle_crop_3748057736_0.png', 1350094203: '1743768450_3552650_1350093498_c7ad29a925d3ee7e45b58ef7c8610e26_rle_crop_3748057822_0.png', 1350094914: '1743768533_3554127_1350093830_cb142793f238eecf2a3e73b85df45ac7_rle_crop_3748060953_0.png', 1350094915: '1743768533_3554127_1350093793_6e0b15fda6aeec14a16c7151787facee_rle_crop_3748060977_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/3e4ac08a67b9a644e2f751d2ef0af8e7_96567947.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/c90dad9e948d5cd34bab05e343f661cf_54307994.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/2a6bc59d3277a209056124aaa1df8d68_10819485.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/a1ab5877c8375112cc23431c3436b19a_47908004.png change filename to text .imagette220760621743768664/ imagette220760621743768664/1743768533_3554127_1350093830_cb142793f238eecf2a3e73b85df45ac7_rle_crop_3748060953_0.png.png imagette220760621743768664/1743768533_3554127_1350093793_6e0b15fda6aeec14a16c7151787facee_rle_crop_3748060977_0.png.png imagette220760621743768664/1743768314_3550267_1350091976_510a92f1fbd307504839a655265d9caf_rle_crop_3748056800_0.png.png imagette220760621743768664/1743768450_3552650_1350093498_c7ad29a925d3ee7e45b58ef7c8610e26_rle_crop_3748057822_0.png.png imagette220760621743768664/1743768432_3552341_1350093347_5d2e91e02f59a759ebb4f02dcb27e6cd_rle_crop_3748057736_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/da8a496e64bedb6039e41e9fc414ef2d_70020326.png imagette220760621743768664 22076063 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=22076063 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350093523: '1743768291_3549926_1350092318_05cbf44e27b99f5502ef8b5cd9ea5f54_rle_crop_3748054067_0.png', 1350093712: '1743768332_3550759_1350092110_dae0d8b90638f17a8ec1ca0eb411b06a_rle_crop_3748056638_0.png', 1350093806: '1743768314_3550267_1350092013_5533f1a049b094b701e89a0b46264f2d_rle_crop_3748056768_0.png', 1350093807: '1743768314_3550267_1350092013_5533f1a049b094b701e89a0b46264f2d_rle_crop_3748056781_0.png', 1350094214: '1743768450_3552650_1350092753_84036b0433d5ee462a5f3499f153de53_rle_crop_3748057883_0.png', 1350094918: '1743768533_3554127_1350093808_c43c8476dacbbea75818b6dc60e2ff2c_rle_crop_3748060964_0.png', 1350094937: '1743768553_3554732_1350094023_198e7f113b6237c859a08a911736108f_rle_crop_3748061149_0.png', 1350094938: '1743768553_3554732_1350093976_ef7ba4972fd06dd8ccbab36e9de299f6_rle_crop_3748061162_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/e6d6ae918b1671c73f216a6d1e1c60a9_119891.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/d923bf715e1b09ea91fcbfcc9e41d96a_36649495.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/1e4c43e108cdb46c8c6b5c08ad5a38d5_83030853.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/311b73eff87f4b22d09612a7dfe8b23e_61236674.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/c7b2bda1be6422bf61d6369dfe2f6e93_26182372.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/a68ea6ec15de088ac33e60446b0492bc_83375991.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/82676bd1abdbb94277a8ee95fd0d95e2_15449011.png change filename to text .imagette220760631743768665/ imagette220760631743768665/1743768553_3554732_1350093976_ef7ba4972fd06dd8ccbab36e9de299f6_rle_crop_3748061162_0.png.png imagette220760631743768665/1743768533_3554127_1350093808_c43c8476dacbbea75818b6dc60e2ff2c_rle_crop_3748060964_0.png.png imagette220760631743768665/1743768332_3550759_1350092110_dae0d8b90638f17a8ec1ca0eb411b06a_rle_crop_3748056638_0.png.png imagette220760631743768665/1743768553_3554732_1350094023_198e7f113b6237c859a08a911736108f_rle_crop_3748061149_0.png.png imagette220760631743768665/1743768291_3549926_1350092318_05cbf44e27b99f5502ef8b5cd9ea5f54_rle_crop_3748054067_0.png.png imagette220760631743768665/1743768314_3550267_1350092013_5533f1a049b094b701e89a0b46264f2d_rle_crop_3748056768_0.png.png imagette220760631743768665/1743768450_3552650_1350092753_84036b0433d5ee462a5f3499f153de53_rle_crop_3748057883_0.png.png imagette220760631743768665/1743768314_3550267_1350092013_5533f1a049b094b701e89a0b46264f2d_rle_crop_3748056781_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/aae3dff90f7a26fd90986677ccc6bbbf_13280050.png imagette220760631743768665 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22076038 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22076064,22076065,22076066,22076067,22076068,22076069,22076070,22076071,22076072,22076073,22076074,22076075?tags=flou,metal,kraft,plastique,autre_refus,Teint_Dans_La_Masse,cartonnette,mal_croppe,environnement,papier,Carton_gris,Carton_brun your option no_mail is active, we will not send the real mail to your client args[1350094867] : ('0.043040146220188966',) no score found for photo 1350094867 We are sending mail with results at report@fotonower.com args[1350094847] : ('0.043040146220188966',) no score found for photo 1350094847 We are sending mail with results at report@fotonower.com args[1350094820] : ('0.043040146220188966',) no score found for photo 1350094820 We are sending mail with results at report@fotonower.com args[1350094787] : ('0.043040146220188966',) no score found for photo 1350094787 We are sending mail with results at report@fotonower.com args[1350094414] : ('0.043040146220188966',) no score found for photo 1350094414 We are sending mail with results at report@fotonower.com args[1350094361] : ('0.043040146220188966',) no score found for photo 1350094361 We are sending mail with results at report@fotonower.com args[1350094312] : ('0.043040146220188966',) no score found for photo 1350094312 We are sending mail with results at report@fotonower.com args[1350094272] : ('0.043040146220188966',) no score found for photo 1350094272 We are sending mail with results at report@fotonower.com args[1350094237] : ('0.043040146220188966',) no score found for photo 1350094237 We are sending mail with results at report@fotonower.com args[1350094202] : ('0.043040146220188966',) no score found for photo 1350094202 We are sending mail with results at report@fotonower.com refus_total : 0.043040146220188966 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=22076038 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_P22076038_04-04-2025_14_11_02.pdf results_Auto_P22076038_04-04-2025_14_11_02.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22076038_04-04-2025_14_11_02.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','22076038','results_Auto_P22076038_04-04-2025_14_11_02.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22076038_04-04-2025_14_11_02.pdf','pdf','','0.24','0.043040146220188966') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22076038]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350094867, 1350094847, 1350094820, 1350094787, 1350094414, 1350094361, 1350094312, 1350094272, 1350094237, 1350094202] map_info['map_portfolio_photo'] : {22076038: [1350094867, 1350094847, 1350094820, 1350094787, 1350094414, 1350094361, 1350094312, 1350094272, 1350094237, 1350094202, 1350094040, 1350094023, 1350093976, 1350093884, 1350093845, 1350093830, 1350093808, 1350093793, 1350093498, 1350093468, 1350093434, 1350093406, 1350093381, 1350093347, 1350092931, 1350092845, 1350092790, 1350092753, 1350092454, 1350092382, 1350092347, 1350092318, 1350092297, 1350092110, 1350092087, 1350092059, 1350092013, 1350091976, 1350091928, 1350091586, 1350091578]} final : False mtd_id 4302 list_pids : [1350094867, 1350094847, 1350094820, 1350094787, 1350094414, 1350094361, 1350094312, 1350094272, 1350094237, 1350094202] 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, '2726644') ('4302', '22076038', '1350094867', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094847', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094820', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094787', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094414', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094361', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094312', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094272', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094237', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094202', None, None, None, None, None, '2726644') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '22076038', '1350094867', None, None, None, None, None, '2726644'), ('4302', '22076038', '1350094847', None, None, None, None, None, '2726644'), ('4302', '22076038', '1350094820', None, None, None, None, None, '2726644'), ('4302', '22076038', '1350094787', None, None, None, None, None, '2726644'), ('4302', '22076038', '1350094414', None, None, None, None, None, '2726644'), ('4302', '22076038', '1350094361', None, None, None, None, None, '2726644'), ('4302', '22076038', '1350094312', None, None, None, None, None, '2726644'), ('4302', '22076038', '1350094272', None, None, None, None, None, '2726644'), ('4302', '22076038', '1350094237', None, None, None, None, None, '2726644'), ('4302', '22076038', '1350094202', None, None, None, None, None, '2726644')] time used for this insertion : 0.013920307159423828 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.400363206863403 time spend to save output : 0.01437520980834961 total time spend for step 4 : 4.414738416671753 step5:split_time_score Fri Apr 4 14:11:06 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 : ['22076038'] 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 : [('22076038',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22076038) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350094867: {'path': 'temp/1743768662_697468_1350094867_50e8f2161491950427be0e9a404b5a3c.jpg', 'extension': 'jpg'}, 1350094787: {'path': 'temp/1743768662_697468_1350094787_0beea7be169a8154ee201178860d3ad6.jpg', 'extension': 'jpg'}, 1350094820: {'path': 'temp/1743768662_697468_1350094820_cd3ab53ba11709f9c9ce069dd96e7743.jpg', 'extension': 'jpg'}, 1350094847: {'path': 'temp/1743768662_697468_1350094847_20446a71c0dffa5c7b36713e26a98f6c.jpg', 'extension': 'jpg'}, 1350094202: {'path': 'temp/1743768662_697468_1350094202_28d058f4952567edb59c085ffd88014c.jpg', 'extension': 'jpg'}, 1350094237: {'path': 'temp/1743768662_697468_1350094237_38764166c11e773297fe15fa090afb46.jpg', 'extension': 'jpg'}, 1350094272: {'path': 'temp/1743768662_697468_1350094272_2b215444c4241f851e1230af11455cbd.jpg', 'extension': 'jpg'}, 1350094312: {'path': 'temp/1743768662_697468_1350094312_c156ba8c18166e45d12e38a9b76779e8.jpg', 'extension': 'jpg'}, 1350094361: {'path': 'temp/1743768662_697468_1350094361_fb808efedcae6e070dc2be6c439cf2e5.jpg', 'extension': 'jpg'}, 1350094414: {'path': 'temp/1743768662_697468_1350094414_4ab4fa9c3b3a7dacae6691f82a466f43.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 = 22076038; (('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 = 22076038 group by h (('14', 41),) 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=22076038 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 (22076038) 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 (22076038) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 04042025 22076038 Nombre de photos uploadées : 41 / 23040 (0%) 04042025 22076038 Nombre de photos taguées (types de déchets): 0 / 41 (0%) 04042025 22076038 Nombre de photos taguées (volume) : 0 / 41 (0%) [{'photo_id': 1350091586, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/bc05ddb443dc5a718fcfe96910768d9b.jpg', 'username': None, 'uploaded_at': 1743768067, 'text': 'image_04042025_14_00_14_010216m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350091578, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/54f63e7c8ae8bf13a512b66099437f64.jpg', 'username': None, 'uploaded_at': 1743768067, 'text': 'image_04042025_14_00_34_010134m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350092110, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/dae0d8b90638f17a8ec1ca0eb411b06a.jpg', 'username': None, 'uploaded_at': 1743768127, 'text': 'image_04042025_14_00_44_010132m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350092087, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/4/cacd31cc248146a130343af27ad8cbb3.jpg', 'username': None, 'uploaded_at': 1743768127, 'text': 'image_04042025_14_01_04_010161m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 5.4836273193359375e-06 elapsed_time : order_list_meta_photo_and_scores 1.33514404296875e-05 ????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0022079944610595703 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22076038, '2025-04-04' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1715710,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.026923179626464844 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= 1715710 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1715710, 'dashboard_run_id': 1725587, 'mtr_portfolio_id': 22074863, 'dashboard_result_id': 9889374, '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_P22074863_04-04-2025_13_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22074898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22074899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22074900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22074901, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22074902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22074903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22074904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22074905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22074906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22074907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22074908, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22074909, 'pht': 3726}}"}, {'dashboat_entry_day': 1715710, 'dashboard_run_id': 1725587, 'mtr_portfolio_id': 22075344, 'dashboard_result_id': 9889375, '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_P22075344_04-04-2025_14_03_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22075345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22075346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22075347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22075348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22075349, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22075350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22075351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22075352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22075353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22075354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22075355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22075356, 'pht': 3726}}"}, {'dashboat_entry_day': 1715710, 'dashboard_run_id': 1725587, 'mtr_portfolio_id': 22076038, 'dashboard_result_id': 9889376, '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_P22076038_04-04-2025_14_08_32.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22076052, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22076053, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22076054, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22076055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22076056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22076057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22076058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22076059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22076060, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22076061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22076062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22076063, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 22074863 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': 2726545, 'mtr_portfolio_id': 22074863, 'created_at': datetime.datetime(2025, 4, 4, 13, 49, 1), 'result': '0.04705795509796384', 'result_long': None, 'result_double': None}] Qualite : 0.04705795509796384 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22074863 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22074863_04-04-2025_13_49_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22074863 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_P22074863_04-04-2025_13_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22074898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22074899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22074900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22074901, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22074902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22074903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22074904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22074905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22074906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22074907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22074908, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22074909, 'pht': 3726}}" where mtr_portfolio_id = 22074863 and dashboard_run_id = 1725587 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`=22074863 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9889374, 0.04705795509796384, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22074863_04-04-2025_13_49_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22074898, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22074899, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22074900, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22074901, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22074902, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22074903, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22074904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22074905, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22074906, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22074907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22074908, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22074909, '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 = 22075344 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': 2726579, 'mtr_portfolio_id': 22075344, 'created_at': datetime.datetime(2025, 4, 4, 14, 3), 'result': '0.051698281054794536', 'result_long': None, 'result_double': None}] Qualite : 0.051698281054794536 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22075344 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22075344_04-04-2025_14_03_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22075344 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_P22075344_04-04-2025_14_03_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22075345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22075346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22075347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22075348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22075349, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22075350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22075351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22075352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22075353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22075354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22075355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22075356, 'pht': 3726}}" where mtr_portfolio_id = 22075344 and dashboard_run_id = 1725587 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`=22075344 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9889375, 0.051698281054794536, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22075344_04-04-2025_14_03_01.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22075345, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22075346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22075347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22075348, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22075349, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22075350, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22075351, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22075352, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22075353, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22075354, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22075355, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22075356, '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 = 22076038 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': 2726644, 'mtr_portfolio_id': 22076038, 'created_at': datetime.datetime(2025, 4, 4, 14, 11, 2), 'result': '0.043040146220188966', 'result_long': None, 'result_double': None}] Qualite : 0.043040146220188966 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22076038 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22076038_04-04-2025_14_11_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22076038 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_P22076038_04-04-2025_14_11_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22076052, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22076053, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22076054, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22076055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22076056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22076057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22076058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22076059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22076060, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22076061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22076062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22076063, 'pht': 3726}}" where mtr_portfolio_id = 22076038 and dashboard_run_id = 1725587 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`=22076038 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9889376, 0.043040146220188966, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22076038_04-04-2025_14_11_02.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22076052, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22076053, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22076054, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22076055, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22076056, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22076057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22076058, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22076059, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22076060, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22076061, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22076062, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22076063, '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 (22074863,22075344,22076038) result : ((1350085301,), (1350085309,), (1350085311,), (1350085314,), (1350085417,), (1350085438,), (1350085594,), (1350085890,), (1350085907,), (1350085910,), (1350086077,), (1350086080,), (1350086083,), (1350086087,), (1350086092,), (1350086344,), (1350086356,), (1350086359,), (1350086487,), (1350086556,), (1350086561,), (1350086755,), (1350086762,), (1350086767,), (1350086770,), (1350086774,), (1350086846,), (1350086848,), (1350086855,), (1350086871,), (1350086896,), (1350087035,), (1350087039,), (1350087044,), (1350087067,), (1350087285,), (1350087293,), (1350087297,), (1350087302,), (1350087382,), (1350087386,), (1350087390,), (1350087393,), (1350087408,), (1350087422,), (1350087501,), (1350087487,), (1350087492,), (1350087496,), (1350087632,), (1350087635,), (1350087638,), (1350087641,), (1350087646,), (1350087650,), (1350087709,), (1350087719,), (1350087729,), (1350087733,), (1350087795,), (1350087801,), (1350087806,), (1350087810,), (1350087841,), (1350087846,), (1350087850,), (1350087852,), (1350087966,), (1350087969,), (1350087996,), (1350088006,), (1350088020,), (1350088034,), (1350088188,), (1350088222,), (1350088288,), (1350088600,), (1350088625,), (1350088649,), (1350088656,), (1350088807,), (1350088855,), (1350088866,), (1350088890,), (1350088895,), (1350088928,), (1350089106,), (1350089141,), (1350089173,), (1350089195,), (1350089516,), (1350089539,), (1350089559,), (1350089588,), (1350089623,), (1350089833,), (1350089838,), (1350089844,), (1350089848,), (1350089851,), (1350089916,), (1350089921,), (1350089928,), (1350089936,), (1350089952,), (1350091025,), (1350091090,), (1350091154,), (1350091234,), (1350091275,), (1350091316,), (1350091593,), (1350091578,), (1350091586,), (1350091928,), (1350091976,), (1350092013,), (1350092059,), (1350092087,), (1350092110,), (1350092297,), (1350092318,), (1350092347,), (1350092382,), (1350092454,), (1350092753,), (1350092790,), (1350092845,), (1350092931,), (1350093347,), (1350093381,), (1350093406,), (1350093434,), (1350093468,), (1350093498,), (1350093793,), (1350093808,), (1350093830,), (1350093845,), (1350093884,), (1350093976,), (1350094023,), (1350094040,), (1350094202,), (1350094237,), (1350094272,), (1350094312,), (1350094361,), (1350094414,), (1350094787,), (1350094820,), (1350094847,), (1350094867,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'04042025': {'nb_upload': 41, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22076038]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350094867, 1350094847, 1350094820, 1350094787, 1350094414, 1350094361, 1350094312, 1350094272, 1350094237, 1350094202] map_info['map_portfolio_photo'] : {22076038: [1350094867, 1350094847, 1350094820, 1350094787, 1350094414, 1350094361, 1350094312, 1350094272, 1350094237, 1350094202, 1350094040, 1350094023, 1350093976, 1350093884, 1350093845, 1350093830, 1350093808, 1350093793, 1350093498, 1350093468, 1350093434, 1350093406, 1350093381, 1350093347, 1350092931, 1350092845, 1350092790, 1350092753, 1350092454, 1350092382, 1350092347, 1350092318, 1350092297, 1350092110, 1350092087, 1350092059, 1350092013, 1350091976, 1350091928, 1350091586, 1350091578]} final : True mtd_id 4302 list_pids : [1350094867, 1350094847, 1350094820, 1350094787, 1350094414, 1350094361, 1350094312, 1350094272, 1350094237, 1350094202] Looping around the photos to save general results len do output : 1 /22076038Didn'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, '2726644') ('4302', '22076038', '1350094867', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094847', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094820', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094787', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094414', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094361', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094312', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094272', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094237', None, None, None, None, None, '2726644') ('4302', None, None, None, None, None, None, None, '2726644') ('4302', '22076038', '1350094202', None, None, None, None, None, '2726644') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 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, '22076038', 'None', None, None, None, None, '2726644'), ('4302', '22076038', '1350094867', None, None, None, None, None, '2726644'), ('4302', '22076038', '1350094847', None, None, None, None, None, '2726644'), ('4302', '22076038', '1350094820', None, None, None, None, None, '2726644'), ('4302', '22076038', '1350094787', None, None, None, None, None, '2726644'), ('4302', '22076038', '1350094414', None, None, None, None, None, '2726644'), ('4302', '22076038', '1350094361', None, None, None, None, None, '2726644'), ('4302', '22076038', '1350094312', None, None, None, None, None, '2726644'), ('4302', '22076038', '1350094272', None, None, None, None, None, '2726644'), ('4302', '22076038', '1350094237', None, None, None, None, None, '2726644'), ('4302', '22076038', '1350094202', None, None, None, None, None, '2726644')] time used for this insertion : 0.013769865036010742 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3156430721282959 time spend to save output : 0.014411449432373047 total time spend for step 5 : 0.33005452156066895 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 (2726644) 2.75user 2.19system 0:11.84elapsed 41%CPU (0avgtext+0avgdata 159276maxresident)k 10944inputs+13384outputs (92major+76827minor)pagefaults 0swaps