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 : 79276 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 waSELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038588) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038581) result : ((1349928013,), (1349928014,), (1349928042,), (1349928047,), (1349928073,), (1349928080,), (1349928742,), (1349928748,), (1349928781,), (1349928784,), (1349928808,), (1349928814,), (1349928839,), (1349928844,), (1349928870,), (1349928874,), (1349929003,), (1349929030,), (1349929059,), (1349929883,), (1349929903,), (1349929942,), (1349929990,), (1349930023,), (1349930162,), (1349930193,), (1349930238,), (1349930272,), (1349930297,), (1349930322,), (1349930516,), (1349930518,), (1349930523,), (1349930534,), (1349930562,), (1349931098,), (1349931164,), (1349931338,), (1349931339,), (1349931342,), (1349931343,), (1349931346,), (1349931347,), (1349931352,), (1349931353,), (1349931437,), (1349931440,), (1349931446,), (1349931454,), (1349931472,), (1349931496,), (1349931505,), (1349931507,), (1349931520,), (1349931550,), (1349931685,), (1349931689,), (1349931943,), (1349931998,), (1349932037,), (1349932513,), (1349932542,), (1349932597,), (1349932694,), (1349932763,), (1349932928,), (1349932999,), (1349933057,)) 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 22038589 , 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=22038581 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 (22038589) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038581) result : ((1349928013,), (1349928014,), (1349928042,), (1349928047,), (1349928073,), (1349928080,), (1349928742,), (1349928748,), (1349928781,), (1349928784,), (1349928808,), (1349928814,), (1349928839,), (1349928844,), (1349928870,), (1349928874,), (1349929003,), (1349929030,), (1349929059,), (1349929883,), (1349929903,), (1349929942,), (1349929990,), (1349930023,), (1349930162,), (1349930193,), (1349930238,), (1349930272,), (1349930297,), (1349930322,), (1349930516,), (1349930518,), (1349930523,), (1349930534,), (1349930562,), (1349931098,), (1349931164,), (1349931338,), (1349931339,), (1349931342,), (1349931343,), (1349931346,), (1349931347,), (1349931352,), (1349931353,), (1349931437,), (1349931440,), (1349931446,), (1349931454,), (1349931472,), (1349931496,), (1349931505,), (1349931507,), (1349931520,), (1349931550,), (1349931685,), (1349931689,), (1349931943,), (1349931998,), (1349932037,), (1349932513,), (1349932542,), (1349932597,), (1349932694,), (1349932763,), (1349932928,), (1349932999,), (1349933057,)) 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 22038590 , 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=22038581 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 (22038590) result : ((1349931721,), (1349932167,), (1349932169,), (1349932727,), (1349932728,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038581) result : ((1349928013,), (1349928014,), (1349928042,), (1349928047,), (1349928073,), (1349928080,), (1349928742,), (1349928748,), (1349928781,), (1349928784,), (1349928808,), (1349928814,), (1349928839,), (1349928844,), (1349928870,), (1349928874,), (1349929003,), (1349929030,), (1349929059,), (1349929883,), (1349929903,), (1349929942,), (1349929990,), (1349930023,), (1349930162,), (1349930193,), (1349930238,), (1349930272,), (1349930297,), (1349930322,), (1349930516,), (1349930518,), (1349930523,), (1349930534,), (1349930562,), (1349931098,), (1349931164,), (1349931338,), (1349931339,), (1349931342,), (1349931343,), (1349931346,), (1349931347,), (1349931352,), (1349931353,), (1349931437,), (1349931440,), (1349931446,), (1349931454,), (1349931472,), (1349931496,), (1349931505,), (1349931507,), (1349931520,), (1349931550,), (1349931685,), (1349931689,), (1349931943,), (1349931998,), (1349932037,), (1349932513,), (1349932542,), (1349932597,), (1349932694,), (1349932763,), (1349932928,), (1349932999,), (1349933057,)) 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 22038591 , 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=22038581 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 (22038591) result : ((1349930359,), (1349930360,), (1349930362,), (1349930363,), (1349930364,), (1349930365,), (1349930366,), (1349930367,), (1349930475,), (1349930477,), (1349931002,), (1349931003,), (1349931510,), (1349931511,), (1349931512,), (1349931514,), (1349931517,), (1349931716,), (1349932019,), (1349932020,), (1349932021,), (1349932136,), (1349932138,), (1349932696,), (1349932697,), (1349932699,), (1349932700,), (1349932703,), (1349932705,), (1349932706,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038581) result : ((1349928013,), (1349928014,), (1349928042,), (1349928047,), (1349928073,), (1349928080,), (1349928742,), (1349928748,), (1349928781,), (1349928784,), (1349928808,), (1349928814,), (1349928839,), (1349928844,), (1349928870,), (1349928874,), (1349929003,), (1349929030,), (1349929059,), (1349929883,), (1349929903,), (1349929942,), (1349929990,), (1349930023,), (1349930162,), (1349930193,), (1349930238,), (1349930272,), (1349930297,), (1349930322,), (1349930516,), (1349930518,), (1349930523,), (1349930534,), (1349930562,), (1349931098,), (1349931164,), (1349931338,), (1349931339,), (1349931342,), (1349931343,), (1349931346,), (1349931347,), (1349931352,), (1349931353,), (1349931437,), (1349931440,), (1349931446,), (1349931454,), (1349931472,), (1349931496,), (1349931505,), (1349931507,), (1349931520,), (1349931550,), (1349931685,), (1349931689,), (1349931943,), (1349931998,), (1349932037,), (1349932513,), (1349932542,), (1349932597,), (1349932694,), (1349932763,), (1349932928,), (1349932999,), (1349933057,)) 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 22038592 , 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=22038581 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 (22038592) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038581) result : ((1349928013,), (1349928014,), (1349928042,), (1349928047,), (1349928073,), (1349928080,), (1349928742,), (1349928748,), (1349928781,), (1349928784,), (1349928808,), (1349928814,), (1349928839,), (1349928844,), (1349928870,), (1349928874,), (1349929003,), (1349929030,), (1349929059,), (1349929883,), (1349929903,), (1349929942,), (1349929990,), (1349930023,), (1349930162,), (1349930193,), (1349930238,), (1349930272,), (1349930297,), (1349930322,), (1349930516,), (1349930518,), (1349930523,), (1349930534,), (1349930562,), (1349931098,), (1349931164,), (1349931338,), (1349931339,), (1349931342,), (1349931343,), (1349931346,), (1349931347,), (1349931352,), (1349931353,), (1349931437,), (1349931440,), (1349931446,), (1349931454,), (1349931472,), (1349931496,), (1349931505,), (1349931507,), (1349931520,), (1349931550,), (1349931685,), (1349931689,), (1349931943,), (1349931998,), (1349932037,), (1349932513,), (1349932542,), (1349932597,), (1349932694,), (1349932763,), (1349932928,), (1349932999,), (1349933057,)) 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 22038593 , 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=22038581 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='flou' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038593) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038581) result : ((1349928013,), (1349928014,), (1349928042,), (1349928047,), (1349928073,), (1349928080,), (1349928742,), (1349928748,), (1349928781,), (1349928784,), (1349928808,), (1349928814,), (1349928839,), (1349928844,), (1349928870,), (1349928874,), (1349929003,), (1349929030,), (1349929059,), (1349929883,), (1349929903,), (1349929942,), (1349929990,), (1349930023,), (1349930162,), (1349930193,), (1349930238,), (1349930272,), (1349930297,), (1349930322,), (1349930516,), (1349930518,), (1349930523,), (1349930534,), (1349930562,), (1349931098,), (1349931164,), (1349931338,), (1349931339,), (1349931342,), (1349931343,), (1349931346,), (1349931347,), (1349931352,), (1349931353,), (1349931437,), (1349931440,), (1349931446,), (1349931454,), (1349931472,), (1349931496,), (1349931505,), (1349931507,), (1349931520,), (1349931550,), (1349931685,), (1349931689,), (1349931943,), (1349931998,), (1349932037,), (1349932513,), (1349932542,), (1349932597,), (1349932694,), (1349932763,), (1349932928,), (1349932999,), (1349933057,)) 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 22038594 , 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=22038581 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='kraft' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038594) result : ((1349931544,), (1349932229,), (1349932233,), (1349932236,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038581) result : ((1349928013,), (1349928014,), (1349928042,), (1349928047,), (1349928073,), (1349928080,), (1349928742,), (1349928748,), (1349928781,), (1349928784,), (1349928808,), (1349928814,), (1349928839,), (1349928844,), (1349928870,), (1349928874,), (1349929003,), (1349929030,), (1349929059,), (1349929883,), (1349929903,), (1349929942,), (1349929990,), (1349930023,), (1349930162,), (1349930193,), (1349930238,), (1349930272,), (1349930297,), (1349930322,), (1349930516,), (1349930518,), (1349930523,), (1349930534,), (1349930562,), (1349931098,), (1349931164,), (1349931338,), (1349931339,), (1349931342,), (1349931343,), (1349931346,), (1349931347,), (1349931352,), (1349931353,), (1349931437,), (1349931440,), (1349931446,), (1349931454,), (1349931472,), (1349931496,), (1349931505,), (1349931507,), (1349931520,), (1349931550,), (1349931685,), (1349931689,), (1349931943,), (1349931998,), (1349932037,), (1349932513,), (1349932542,), (1349932597,), (1349932694,), (1349932763,), (1349932928,), (1349932999,), (1349933057,)) 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 22038595 , 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=22038581 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 (22038595) result : ((1349931022,), (1349931481,), (1349932190,), (1349932193,), (1349932740,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038581) result : ((1349928013,), (1349928014,), (1349928042,), (1349928047,), (1349928073,), (1349928080,), (1349928742,), (1349928748,), (1349928781,), (1349928784,), (1349928808,), (1349928814,), (1349928839,), (1349928844,), (1349928870,), (1349928874,), (1349929003,), (1349929030,), (1349929059,), (1349929883,), (1349929903,), (1349929942,), (1349929990,), (1349930023,), (1349930162,), (1349930193,), (1349930238,), (1349930272,), (1349930297,), (1349930322,), (1349930516,), (1349930518,), (1349930523,), (1349930534,), (1349930562,), (1349931098,), (1349931164,), (1349931338,), (1349931339,), (1349931342,), (1349931343,), (1349931346,), (1349931347,), (1349931352,), (1349931353,), (1349931437,), (1349931440,), (1349931446,), (1349931454,), (1349931472,), (1349931496,), (1349931505,), (1349931507,), (1349931520,), (1349931550,), (1349931685,), (1349931689,), (1349931943,), (1349931998,), (1349932037,), (1349932513,), (1349932542,), (1349932597,), (1349932694,), (1349932763,), (1349932928,), (1349932999,), (1349933057,)) 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 22038596 , 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=22038581 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 (22038596) result : ((1349930486,), (1349930488,), (1349930491,), (1349931015,), (1349931016,), (1349931017,), (1349931476,), (1349931477,), (1349931478,), (1349931531,), (1349931533,), (1349931535,), (1349931719,), (1349932154,), (1349932155,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038581) result : ((1349928013,), (1349928014,), (1349928042,), (1349928047,), (1349928073,), (1349928080,), (1349928742,), (1349928748,), (1349928781,), (1349928784,), (1349928808,), (1349928814,), (1349928839,), (1349928844,), (1349928870,), (1349928874,), (1349929003,), (1349929030,), (1349929059,), (1349929883,), (1349929903,), (1349929942,), (1349929990,), (1349930023,), (1349930162,), (1349930193,), (1349930238,), (1349930272,), (1349930297,), (1349930322,), (1349930516,), (1349930518,), (1349930523,), (1349930534,), (1349930562,), (1349931098,), (1349931164,), (1349931338,), (1349931339,), (1349931342,), (1349931343,), (1349931346,), (1349931347,), (1349931352,), (1349931353,), (1349931437,), (1349931440,), (1349931446,), (1349931454,), (1349931472,), (1349931496,), (1349931505,), (1349931507,), (1349931520,), (1349931550,), (1349931685,), (1349931689,), (1349931943,), (1349931998,), (1349932037,), (1349932513,), (1349932542,), (1349932597,), (1349932694,), (1349932763,), (1349932928,), (1349932999,), (1349933057,)) 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 22038597 , 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=22038581 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='plastique' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038597) result : ((1349931027,), (1349931028,), (1349931484,), (1349932203,), (1349932206,), (1349932754,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038581) result : ((1349928013,), (1349928014,), (1349928042,), (1349928047,), (1349928073,), (1349928080,), (1349928742,), (1349928748,), (1349928781,), (1349928784,), (1349928808,), (1349928814,), (1349928839,), (1349928844,), (1349928870,), (1349928874,), (1349929003,), (1349929030,), (1349929059,), (1349929883,), (1349929903,), (1349929942,), (1349929990,), (1349930023,), (1349930162,), (1349930193,), (1349930238,), (1349930272,), (1349930297,), (1349930322,), (1349930516,), (1349930518,), (1349930523,), (1349930534,), (1349930562,), (1349931098,), (1349931164,), (1349931338,), (1349931339,), (1349931342,), (1349931343,), (1349931346,), (1349931347,), (1349931352,), (1349931353,), (1349931437,), (1349931440,), (1349931446,), (1349931454,), (1349931472,), (1349931496,), (1349931505,), (1349931507,), (1349931520,), (1349931550,), (1349931685,), (1349931689,), (1349931943,), (1349931998,), (1349932037,), (1349932513,), (1349932542,), (1349932597,), (1349932694,), (1349932763,), (1349932928,), (1349932999,), (1349933057,)) 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 22038598 , 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=22038581 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 (22038598) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038581) result : ((1349928013,), (1349928014,), (1349928042,), (1349928047,), (1349928073,), (1349928080,), (1349928742,), (1349928748,), (1349928781,), (1349928784,), (1349928808,), (1349928814,), (1349928839,), (1349928844,), (1349928870,), (1349928874,), (1349929003,), (1349929030,), (1349929059,), (1349929883,), (1349929903,), (1349929942,), (1349929990,), (1349930023,), (1349930162,), (1349930193,), (1349930238,), (1349930272,), (1349930297,), (1349930322,), (1349930516,), (1349930518,), (1349930523,), (1349930534,), (1349930562,), (1349931098,), (1349931164,), (1349931338,), (1349931339,), (1349931342,), (1349931343,), (1349931346,), (1349931347,), (1349931352,), (1349931353,), (1349931437,), (1349931440,), (1349931446,), (1349931454,), (1349931472,), (1349931496,), (1349931505,), (1349931507,), (1349931520,), (1349931550,), (1349931685,), (1349931689,), (1349931943,), (1349931998,), (1349932037,), (1349932513,), (1349932542,), (1349932597,), (1349932694,), (1349932763,), (1349932928,), (1349932999,), (1349933057,)) 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 22038599 , 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=22038581 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='autre_refus' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038599) result : ((1349932146,), (1349932149,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (22038581) result : ((1349928013,), (1349928014,), (1349928042,), (1349928047,), (1349928073,), (1349928080,), (1349928742,), (1349928748,), (1349928781,), (1349928784,), (1349928808,), (1349928814,), (1349928839,), (1349928844,), (1349928870,), (1349928874,), (1349929003,), (1349929030,), (1349929059,), (1349929883,), (1349929903,), (1349929942,), (1349929990,), (1349930023,), (1349930162,), (1349930193,), (1349930238,), (1349930272,), (1349930297,), (1349930322,), (1349930516,), (1349930518,), (1349930523,), (1349930534,), (1349930562,), (1349931098,), (1349931164,), (1349931338,), (1349931339,), (1349931342,), (1349931343,), (1349931346,), (1349931347,), (1349931352,), (1349931353,), (1349931437,), (1349931440,), (1349931446,), (1349931454,), (1349931472,), (1349931496,), (1349931505,), (1349931507,), (1349931520,), (1349931550,), (1349931685,), (1349931689,), (1349931943,), (1349931998,), (1349932037,), (1349932513,), (1349932542,), (1349932597,), (1349932694,), (1349932763,), (1349932928,), (1349932999,), (1349933057,)) 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`=22038581 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_brun','flou','mal_croppe','Carton_gris','kraft','autre_refus','plastique','papier','environnement','Teint_Dans_La_Masse','metal')) 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`=22038581 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('cartonnette','Carton_brun','flou','mal_croppe','Carton_gris','kraft','autre_refus','plastique','papier','environnement','Teint_Dans_La_Masse','metal')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 22038581, 'sub_port_id': 22038600, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530598, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 59)}, 'mal_croppe': {'main_port_id': 22038581, 'sub_port_id': 22038601, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530599, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 59)}, 'cartonnette': {'main_port_id': 22038581, 'sub_port_id': 22038602, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530600, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 22038581, 'sub_port_id': 22038603, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530601, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 59)}, 'environnement': {'main_port_id': 22038581, 'sub_port_id': 22038604, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530602, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 59)}, 'flou': {'main_port_id': 22038581, 'sub_port_id': 22038605, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530603, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 59)}, 'kraft': {'main_port_id': 22038581, 'sub_port_id': 22038606, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530604, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 59)}, 'Carton_brun': {'main_port_id': 22038581, 'sub_port_id': 22038607, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530605, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 59)}, 'Carton_gris': {'main_port_id': 22038581, 'sub_port_id': 22038608, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530606, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 59)}, 'plastique': {'main_port_id': 22038581, 'sub_port_id': 22038609, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530607, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 59)}, 'papier': {'main_port_id': 22038581, 'sub_port_id': 22038610, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530608, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 59)}, 'autre_refus': {'main_port_id': 22038581, 'sub_port_id': 22038611, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 14530609, 'last_updated_at': datetime.datetime(2025, 4, 15, 17, 12, 31), 'last_updated_at_desc': datetime.datetime(2025, 4, 15, 17, 12, 31), 'last_updated_at_asc': datetime.datetime(2025, 4, 15, 17, 4, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22038600,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22038588 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22038601,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22038589 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22038602,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22038590 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22038603,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22038591 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22038604,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22038592 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22038605,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22038593 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22038606,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22038594 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22038607,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22038595 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22038608,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22038596 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22038609,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22038597 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22038610,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22038598 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 22038611,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22038599 lien utilise dans velours : https://www.fotonower.com/velours/22038600,22038601,22038602,22038603,22038604,22038605,22038606,22038607,22038608,22038609,22038610,22038611?tags=metal,mal_croppe,cartonnette,Teint_Dans_La_Masse,environnement,flou,kraft,Carton_brun,Carton_gris,plastique,papier,autre_refus After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22038581]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1349933057, 1349932999, 1349932928, 1349932763, 1349932694, 1349932597, 1349932542, 1349932513, 1349932037, 1349931998, 1349931943] map_info['map_portfolio_photo'] : {22038581: [1349933057, 1349932999, 1349932928, 1349932763, 1349932694, 1349932597, 1349932542, 1349932513, 1349932037, 1349931998, 1349931943, 1349931689, 1349931685, 1349931550, 1349931520, 1349931507, 1349931505, 1349931496, 1349931472, 1349931454, 1349931446, 1349931440, 1349931437, 1349931353, 1349931352, 1349931347, 1349931346, 1349931343, 1349931342, 1349931339, 1349931338, 1349931164, 1349931098, 1349930562, 1349930534, 1349930523, 1349930518, 1349930516, 1349930322, 1349930297, 1349930272, 1349930238, 1349930193, 1349930162, 1349930023, 1349929990, 1349929942, 1349929903, 1349929883, 1349929059, 1349929030, 1349929003, 1349928874, 1349928870, 1349928844, 1349928839, 1349928814, 1349928808, 1349928784, 1349928781, 1349928748, 1349928742, 1349928080, 1349928073, 1349928047, 1349928042, 1349928014, 1349928013]} final : False mtd_id 4302 list_pids : [1349933057, 1349932999, 1349932928, 1349932763, 1349932694, 1349932597, 1349932542, 1349932513, 1349932037, 1349931998, 1349931943] Looping around the photos to save general results len do output : 1 /22038581. 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, '2722468') ('4302', '22038581', '1349933057', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932999', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932928', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932763', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932694', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932597', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932542', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932513', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932037', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349931998', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349931943', None, None, None, None, None, '2722468') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '22038581', "{'metal': 22038588, 'mal_croppe': 22038589, 'cartonnette': 22038590, 'Teint_Dans_La_Masse': 22038591, 'environnement': 22038592, 'flou': 22038593, 'kraft': 22038594, 'Carton_brun': 22038595, 'Carton_gris': 22038596, 'plastique': 22038597, 'papier': 22038598, 'autre_refus': 22038599}", None, None, None, None, '2722468'), ('4302', '22038581', '1349933057', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349932999', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349932928', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349932763', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349932694', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349932597', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349932542', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349932513', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349932037', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349931998', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349931943', None, None, None, None, None, '2722468')] time used for this insertion : 0.01629948616027832 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4123225212097168 time spend to save output : 0.01664257049560547 total time spend for step 1 : 1.4289650917053223 step2:final Tue Apr 15 17:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22038581) 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 22038581 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349928073,1349928080,1349928042,1349928047,1349928014,1349928013,1349928870,1349928874,1349928839,1349928844,1349928808,1349928814,1349928781,1349928784,1349928748,1349928742,1349929059,1349929030,1349929003,1349930023,1349929990,1349929942,1349929903,1349929883,1349930322,1349930297,1349930272,1349930238,1349930193,1349930162,1349930562,1349930534,1349930523,1349930518,1349930516,1349931164,1349931098,1349931352,1349931353,1349931346,1349931347,1349931342,1349931343,1349931338,1349931339,1349931472,1349931454,1349931446,1349931440,1349931437,1349931550,1349931520,1349931507,1349931505,1349931496,1349931689,1349931685,1349932037,1349931998,1349931943,1349932763,1349932694,1349932597,1349932542,1349932513,1349933057,1349932999,1349932928); 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([22038581]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349933057: ('0.051092901007210804',), 1349932999: ('0.051092901007210804',), 1349932928: ('0.051092901007210804',), 1349932763: ('0.051092901007210804',), 1349932694: ('0.051092901007210804',), 1349932597: ('0.051092901007210804',), 1349932542: ('0.051092901007210804',), 1349932513: ('0.051092901007210804',), 1349932037: ('0.051092901007210804',), 1349931998: ('0.051092901007210804',), 1349931943: ('0.051092901007210804',)} new output for save of step final : {1349933057: ('0.051092901007210804',), 1349932999: ('0.051092901007210804',), 1349932928: ('0.051092901007210804',), 1349932763: ('0.051092901007210804',), 1349932694: ('0.051092901007210804',), 1349932597: ('0.051092901007210804',), 1349932542: ('0.051092901007210804',), 1349932513: ('0.051092901007210804',), 1349932037: ('0.051092901007210804',), 1349931998: ('0.051092901007210804',), 1349931943: ('0.051092901007210804',)} [1349933057, 1349932999, 1349932928, 1349932763, 1349932694, 1349932597, 1349932542, 1349932513, 1349932037, 1349931998, 1349931943] map_info['map_portfolio_photo'] : {22038581: [1349933057, 1349932999, 1349932928, 1349932763, 1349932694, 1349932597, 1349932542, 1349932513, 1349932037, 1349931998, 1349931943, 1349931689, 1349931685, 1349931550, 1349931520, 1349931507, 1349931505, 1349931496, 1349931472, 1349931454, 1349931446, 1349931440, 1349931437, 1349931353, 1349931352, 1349931347, 1349931346, 1349931343, 1349931342, 1349931339, 1349931338, 1349931164, 1349931098, 1349930562, 1349930534, 1349930523, 1349930518, 1349930516, 1349930322, 1349930297, 1349930272, 1349930238, 1349930193, 1349930162, 1349930023, 1349929990, 1349929942, 1349929903, 1349929883, 1349929059, 1349929030, 1349929003, 1349928874, 1349928870, 1349928844, 1349928839, 1349928814, 1349928808, 1349928784, 1349928781, 1349928748, 1349928742, 1349928080, 1349928073, 1349928047, 1349928042, 1349928014, 1349928013]} final : False mtd_id 4302 list_pids : [1349933057, 1349932999, 1349932928, 1349932763, 1349932694, 1349932597, 1349932542, 1349932513, 1349932037, 1349931998, 1349931943] Looping around the photos to save general results len do output : 11 /1349933057.Didn't retrieve data . /1349932999.Didn't retrieve data . /1349932928.Didn't retrieve data . /1349932763.Didn't retrieve data . /1349932694.Didn't retrieve data . /1349932597.Didn't retrieve data . /1349932542.Didn't retrieve data . /1349932513.Didn't retrieve data . /1349932037.Didn't retrieve data . /1349931998.Didn't retrieve data . /1349931943.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, '2722468') ('4302', '22038581', '1349933057', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932999', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932928', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932763', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932694', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932597', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932542', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932513', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932037', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349931998', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349931943', None, None, None, None, None, '2722468') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 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', '22038581', '1349933057', '0.051092901007210804', None, None, None, None, '2722468'), ('4302', '22038581', '1349932999', '0.051092901007210804', None, None, None, None, '2722468'), ('4302', '22038581', '1349932928', '0.051092901007210804', None, None, None, None, '2722468'), ('4302', '22038581', '1349932763', '0.051092901007210804', None, None, None, None, '2722468'), ('4302', '22038581', '1349932694', '0.051092901007210804', None, None, None, None, '2722468'), ('4302', '22038581', '1349932597', '0.051092901007210804', None, None, None, None, '2722468'), ('4302', '22038581', '1349932542', '0.051092901007210804', None, None, None, None, '2722468'), ('4302', '22038581', '1349932513', '0.051092901007210804', None, None, None, None, '2722468'), ('4302', '22038581', '1349932037', '0.051092901007210804', None, None, None, None, '2722468'), ('4302', '22038581', '1349931998', '0.051092901007210804', None, None, None, None, '2722468'), ('4302', '22038581', '1349931943', '0.051092901007210804', None, None, None, None, '2722468')] time used for this insertion : 0.013247489929199219 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07049036026000977 time spend to save output : 0.01389765739440918 total time spend for step 2 : 0.08438801765441895 step3:velours_tree Tue Apr 15 17:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {22038581: [{'metal': 22038588, 'mal_croppe': 22038589, 'cartonnette': 22038590, 'Teint_Dans_La_Masse': 22038591, 'environnement': 22038592, 'flou': 22038593, 'kraft': 22038594, 'Carton_brun': 22038595, 'Carton_gris': 22038596, 'plastique': 22038597, 'papier': 22038598, 'autre_refus': 22038599}]} input_args_next_step : {22038581: ()} output_args : {22038581: [{'metal': 22038588, 'mal_croppe': 22038589, 'cartonnette': 22038590, 'Teint_Dans_La_Masse': 22038591, 'environnement': 22038592, 'flou': 22038593, 'kraft': 22038594, 'Carton_brun': 22038595, 'Carton_gris': 22038596, 'plastique': 22038597, 'papier': 22038598, 'autre_refus': 22038599}]} args : 22038581 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 : ({'metal': 22038588, 'mal_croppe': 22038589, 'cartonnette': 22038590, 'Teint_Dans_La_Masse': 22038591, 'environnement': 22038592, 'flou': 22038593, 'kraft': 22038594, 'Carton_brun': 22038595, 'Carton_gris': 22038596, 'plastique': 22038597, 'papier': 22038598, 'autre_refus': 22038599},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22038581) 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([22038581]) 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.4174337387084961 time spend to save output : 0.00015616416931152344 total time spend for step 3 : 0.4175899028778076 step4:send_mail_cod Tue Apr 15 17:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1349933057: ('0.051092901007210804',), 1349932999: ('0.051092901007210804',), 1349932928: ('0.051092901007210804',), 1349932763: ('0.051092901007210804',), 1349932694: ('0.051092901007210804',), 1349932597: ('0.051092901007210804',), 1349932542: ('0.051092901007210804',), 1349932513: ('0.051092901007210804',), 1349932037: ('0.051092901007210804',), 1349931998: ('0.051092901007210804',), 1349931943: ('0.051092901007210804',)} input_args_next_step : {1349933057: ()} output_args : {1349933057: ('0.051092901007210804',), 1349932999: ('0.051092901007210804',), 1349932928: ('0.051092901007210804',), 1349932763: ('0.051092901007210804',), 1349932694: ('0.051092901007210804',), 1349932597: ('0.051092901007210804',), 1349932542: ('0.051092901007210804',), 1349932513: ('0.051092901007210804',), 1349932037: ('0.051092901007210804',), 1349931998: ('0.051092901007210804',), 1349931943: ('0.051092901007210804',)} args : 1349933057 depend.output_id : 0 input_args_next_step : {1349933057: ('0.051092901007210804',), 1349932999: ()} output_args : {1349933057: ('0.051092901007210804',), 1349932999: ('0.051092901007210804',), 1349932928: ('0.051092901007210804',), 1349932763: ('0.051092901007210804',), 1349932694: ('0.051092901007210804',), 1349932597: ('0.051092901007210804',), 1349932542: ('0.051092901007210804',), 1349932513: ('0.051092901007210804',), 1349932037: ('0.051092901007210804',), 1349931998: ('0.051092901007210804',), 1349931943: ('0.051092901007210804',)} args : 1349932999 depend.output_id : 0 input_args_next_step : {1349933057: ('0.051092901007210804',), 1349932999: ('0.051092901007210804',), 1349932928: ()} output_args : {1349933057: ('0.051092901007210804',), 1349932999: ('0.051092901007210804',), 1349932928: ('0.051092901007210804',), 1349932763: ('0.051092901007210804',), 1349932694: ('0.051092901007210804',), 1349932597: ('0.051092901007210804',), 1349932542: ('0.051092901007210804',), 1349932513: ('0.051092901007210804',), 1349932037: ('0.051092901007210804',), 1349931998: ('0.051092901007210804',), 1349931943: ('0.051092901007210804',)} args : 1349932928 depend.output_id : 0 input_args_next_step : {1349933057: ('0.051092901007210804',), 1349932999: ('0.051092901007210804',), 1349932928: ('0.051092901007210804',), 1349932763: ()} output_args : {1349933057: ('0.051092901007210804',), 1349932999: ('0.051092901007210804',), 1349932928: ('0.051092901007210804',), 1349932763: ('0.051092901007210804',), 1349932694: ('0.051092901007210804',), 1349932597: ('0.051092901007210804',), 1349932542: ('0.051092901007210804',), 1349932513: ('0.051092901007210804',), 1349932037: ('0.051092901007210804',), 1349931998: ('0.051092901007210804',), 1349931943: ('0.051092901007210804',)} args : 1349932763 depend.output_id : 0 input_args_next_step : {1349933057: ('0.051092901007210804',), 1349932999: ('0.051092901007210804',), 1349932928: ('0.051092901007210804',), 1349932763: ('0.051092901007210804',), 1349932694: ()} output_args : {1349933057: ('0.051092901007210804',), 1349932999: ('0.051092901007210804',), 1349932928: ('0.051092901007210804',), 1349932763: ('0.051092901007210804',), 1349932694: ('0.051092901007210804',), 1349932597: ('0.051092901007210804',), 1349932542: ('0.051092901007210804',), 1349932513: ('0.051092901007210804',), 1349932037: ('0.051092901007210804',), 1349931998: ('0.051092901007210804',), 1349931943: ('0.051092901007210804',)} args : 1349932694 depend.output_id : 0 input_args_next_step : {1349933057: ('0.051092901007210804',), 1349932999: ('0.051092901007210804',), 1349932928: ('0.051092901007210804',), 1349932763: ('0.051092901007210804',), 1349932694: ('0.051092901007210804',), 1349932597: ()} output_args : {1349933057: ('0.051092901007210804',), 1349932999: ('0.051092901007210804',), 1349932928: ('0.051092901007210804',), 1349932763: ('0.051092901007210804',), 1349932694: ('0.051092901007210804',), 1349932597: ('0.051092901007210804',), 1349932542: ('0.051092901007210804',), 1349932513: ('0.051092901007210804',), 1349932037: ('0.051092901007210804',), 1349931998: ('0.051092901007210804',), 1349931943: ('0.051092901007210804',)} args : 1349932597 depend.output_id : 0 input_args_next_step : {1349933057: ('0.051092901007210804',), 1349932999: ('0.051092901007210804',), 1349932928: ('0.051092901007210804',), 1349932763: ('0.051092901007210804',), 1349932694: ('0.051092901007210804',), 1349932597: ('0.051092901007210804',), 1349932542: ()} output_args : {1349933057: ('0.051092901007210804',), 1349932999: ('0.051092901007210804',), 1349932928: ('0.051092901007210804',), 1349932763: ('0.051092901007210804',), 1349932694: ('0.051092901007210804',), 1349932597: ('0.051092901007210804',), 1349932542: ('0.051092901007210804',), 1349932513: ('0.051092901007210804',), 1349932037: ('0.051092901007210804',), 1349931998: ('0.051092901007210804',), 1349931943: ('0.051092901007210804',)} args : 1349932542 depend.output_id : 0 input_args_next_step : {1349933057: ('0.051092901007210804',), 1349932999: ('0.051092901007210804',), 1349932928: ('0.051092901007210804',), 1349932763: ('0.051092901007210804',), 1349932694: ('0.051092901007210804',), 1349932597: ('0.051092901007210804',), 1349932542: ('0.051092901007210804',), 1349932513: ()} output_args : {1349933057: ('0.051092901007210804',), 1349932999: ('0.051092901007210804',), 1349932928: ('0.051092901007210804',), 1349932763: ('0.051092901007210804',), 1349932694: ('0.051092901007210804',), 1349932597: ('0.051092901007210804',), 1349932542: ('0.051092901007210804',), 1349932513: ('0.051092901007210804',), 1349932037: ('0.051092901007210804',), 1349931998: ('0.051092901007210804',), 1349931943: ('0.051092901007210804',)} args : 1349932513 depend.output_id : 0 input_args_next_step : {1349933057: ('0.051092901007210804',), 1349932999: ('0.051092901007210804',), 1349932928: ('0.051092901007210804',), 1349932763: ('0.051092901007210804',), 1349932694: ('0.051092901007210804',), 1349932597: ('0.051092901007210804',), 1349932542: ('0.051092901007210804',), 1349932513: ('0.051092901007210804',), 1349932037: ()} output_args : {1349933057: ('0.051092901007210804',), 1349932999: ('0.051092901007210804',), 1349932928: ('0.051092901007210804',), 1349932763: ('0.051092901007210804',), 1349932694: ('0.051092901007210804',), 1349932597: ('0.051092901007210804',), 1349932542: ('0.051092901007210804',), 1349932513: ('0.051092901007210804',), 1349932037: ('0.051092901007210804',), 1349931998: ('0.051092901007210804',), 1349931943: ('0.051092901007210804',)} args : 1349932037 depend.output_id : 0 input_args_next_step : {1349933057: ('0.051092901007210804',), 1349932999: ('0.051092901007210804',), 1349932928: ('0.051092901007210804',), 1349932763: ('0.051092901007210804',), 1349932694: ('0.051092901007210804',), 1349932597: ('0.051092901007210804',), 1349932542: ('0.051092901007210804',), 1349932513: ('0.051092901007210804',), 1349932037: ('0.051092901007210804',), 1349931998: ()} output_args : {1349933057: ('0.051092901007210804',), 1349932999: ('0.051092901007210804',), 1349932928: ('0.051092901007210804',), 1349932763: ('0.051092901007210804',), 1349932694: ('0.051092901007210804',), 1349932597: ('0.051092901007210804',), 1349932542: ('0.051092901007210804',), 1349932513: ('0.051092901007210804',), 1349932037: ('0.051092901007210804',), 1349931998: ('0.051092901007210804',), 1349931943: ('0.051092901007210804',)} args : 1349931998 depend.output_id : 0 input_args_next_step : {1349933057: ('0.051092901007210804',), 1349932999: ('0.051092901007210804',), 1349932928: ('0.051092901007210804',), 1349932763: ('0.051092901007210804',), 1349932694: ('0.051092901007210804',), 1349932597: ('0.051092901007210804',), 1349932542: ('0.051092901007210804',), 1349932513: ('0.051092901007210804',), 1349932037: ('0.051092901007210804',), 1349931998: ('0.051092901007210804',), 1349931943: ()} output_args : {1349933057: ('0.051092901007210804',), 1349932999: ('0.051092901007210804',), 1349932928: ('0.051092901007210804',), 1349932763: ('0.051092901007210804',), 1349932694: ('0.051092901007210804',), 1349932597: ('0.051092901007210804',), 1349932542: ('0.051092901007210804',), 1349932513: ('0.051092901007210804',), 1349932037: ('0.051092901007210804',), 1349931998: ('0.051092901007210804',), 1349931943: ('0.051092901007210804',)} args : 1349931943 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 : {22038581: [{'metal': 22038588, 'mal_croppe': 22038589, 'cartonnette': 22038590, 'Teint_Dans_La_Masse': 22038591, 'environnement': 22038592, 'flou': 22038593, 'kraft': 22038594, 'Carton_brun': 22038595, 'Carton_gris': 22038596, 'plastique': 22038597, 'papier': 22038598, 'autre_refus': 22038599}]} input_args_next_step : {1349933057: ('0.051092901007210804',), 1349932999: ('0.051092901007210804',), 1349932928: ('0.051092901007210804',), 1349932763: ('0.051092901007210804',), 1349932694: ('0.051092901007210804',), 1349932597: ('0.051092901007210804',), 1349932542: ('0.051092901007210804',), 1349932513: ('0.051092901007210804',), 1349932037: ('0.051092901007210804',), 1349931998: ('0.051092901007210804',), 1349931943: ('0.051092901007210804',), 22038581: ()} output_args : {22038581: [{'metal': 22038588, 'mal_croppe': 22038589, 'cartonnette': 22038590, 'Teint_Dans_La_Masse': 22038591, 'environnement': 22038592, 'flou': 22038593, 'kraft': 22038594, 'Carton_brun': 22038595, 'Carton_gris': 22038596, 'plastique': 22038597, 'papier': 22038598, 'autre_refus': 22038599}]} args : 22038581 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 :12, first value : ('0.051092901007210804',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22038581) 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 (1349933057,1349932999,1349932928,1349932763,1349932694,1349932597,1349932542,1349932513,1349932037,1349931998,1349931943) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349931943 begin to download photo : 1349932513 begin to download photo : 1349932694 begin to download photo : 1349932999 download finish for photo 1349931943 begin to download photo : 1349931998 download finish for photo 1349932694 begin to download photo : 1349932763 download finish for photo 1349932513 begin to download photo : 1349932542 download finish for photo 1349932999 begin to download photo : 1349933057 download finish for photo 1349932763 begin to download photo : 1349932928 download finish for photo 1349931998 begin to download photo : 1349932037 download finish for photo 1349932542 begin to download photo : 1349932597 download finish for photo 1349933057 download finish for photo 1349932928 download finish for photo 1349932037 download finish for photo 1349932597 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette220385881744730101/ imagette220385891744730101/ length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P22038581_15-04-2025_17_15_01.pdf 22038588 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=22038588 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220385881744730101 22038589 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=22038589 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220385891744730101 22038590 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=22038590 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349931721: '1744729870_892968_1349931437_d07833e1045cebf2ca6711887956567e_rle_crop_3746897692_0.png', 1349932167: '1744729909_1101919_1349931339_46beb84bf117490d23ba023829476529_rle_crop_3746899632_0.png', 1349932169: '1744729909_1101919_1349931338_7f57ee70845d662ef9970b85f4899ccc_rle_crop_3746899641_0.png', 1349932727: '1744729992_894260_1349931689_d7f412eae3538a4cedfb4e6c8e5938a0_rle_crop_3746900199_0.png', 1349932728: '1744729992_894260_1349931505_92b7c82056aad6e95fb5a9dbdff85819_rle_crop_3746900232_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/8b3086a75a18e2db7aed0662eaf2c3c5_70427003.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/5e40d8eeda69222f6a5925c51bb689b8_58854081.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/5e40d8eeda69222f6a5925c51bb689b8_99460898.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/9c608760f5a5537a4b783cc1d04d6660_94920158.png change filename to text .imagette220385901744730101/ imagette220385901744730101/1744729909_1101919_1349931338_7f57ee70845d662ef9970b85f4899ccc_rle_crop_3746899641_0.png.png imagette220385901744730101/1744729992_894260_1349931689_d7f412eae3538a4cedfb4e6c8e5938a0_rle_crop_3746900199_0.png.png imagette220385901744730101/1744729870_892968_1349931437_d07833e1045cebf2ca6711887956567e_rle_crop_3746897692_0.png.png imagette220385901744730101/1744729909_1101919_1349931339_46beb84bf117490d23ba023829476529_rle_crop_3746899632_0.png.png imagette220385901744730101/1744729992_894260_1349931505_92b7c82056aad6e95fb5a9dbdff85819_rle_crop_3746900232_0.png.png imagette220385931744730101/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/74880eab1590e372b7c09df4b0cf7ee7_95484320.png imagette220385901744730101 22038593 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=22038593 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette220385931744730101 22038594 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=22038594 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349931544: '1744729782_1100026_1349929903_6d000ed7b52111e2e1abe608ef4a0f85_rle_crop_3746888235_0.png', 1349932229: '1744729909_1101919_1349931472_07815860ab40764e5f245c55f14fbcab_rle_crop_3746899523_0.png', 1349932233: '1744729909_1101919_1349931339_46beb84bf117490d23ba023829476529_rle_crop_3746899637_0.png', 1349932236: '1744729909_1101919_1349931338_7f57ee70845d662ef9970b85f4899ccc_rle_crop_3746899646_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/20fc5f5a68d2dcd2523e32c09cdd1f35_50507019.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/1c602fb16e50da339d634326f6748ed8_26899108.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/c68a49a9d65ceab8826b6efd1a17f09c_41603680.png change filename to text .imagette220385941744730101/ imagette220385941744730101/1744729909_1101919_1349931338_7f57ee70845d662ef9970b85f4899ccc_rle_crop_3746899646_0.png.png imagette220385941744730101/1744729782_1100026_1349929903_6d000ed7b52111e2e1abe608ef4a0f85_rle_crop_3746888235_0.png.png imagette220385941744730101/1744729909_1101919_1349931472_07815860ab40764e5f245c55f14fbcab_rle_crop_3746899523_0.png.png imagette220385941744730101/1744729909_1101919_1349931339_46beb84bf117490d23ba023829476529_rle_crop_3746899637_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/c68a49a9d65ceab8826b6efd1a17f09c_53400866.png imagette220385941744730101 22038597 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=22038597 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349931027: '1744729573_889860_1349928844_00c68bdcd38a25821e4cffb3ab9cd8a0_rle_crop_3746881419_0.png', 1349931028: '1744729573_889860_1349928839_072fd2052ce3be6280847ed246830f44_rle_crop_3746881432_0.png', 1349931484: '1744729752_891676_1349930523_eff4d8bdbee54f5935c40f2e516dbd53_rle_crop_3746894603_0.png', 1349932203: '1744729909_1101919_1349931339_46beb84bf117490d23ba023829476529_rle_crop_3746899631_0.png', 1349932206: '1744729909_1101919_1349931338_7f57ee70845d662ef9970b85f4899ccc_rle_crop_3746899640_0.png', 1349932754: '1744729992_894260_1349931689_d7f412eae3538a4cedfb4e6c8e5938a0_rle_crop_3746900191_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/51b1af426339554bf9c21fc08a5812d3_45226904.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/51b1af426339554bf9c21fc08a5812d3_14636394.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/0273390c17ba1a32a754d787ae393fed_71209486.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/c54d05513a4a2d9be95c876da5ee3299_71469083.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/c54d05513a4a2d9be95c876da5ee3299_62276915.png change filename to text .imagette220385971744730101/ imagette220385971744730101/1744729909_1101919_1349931339_46beb84bf117490d23ba023829476529_rle_crop_3746899631_0.png.png imagette220385971744730101/1744729573_889860_1349928839_072fd2052ce3be6280847ed246830f44_rle_crop_3746881432_0.png.png imagette220385971744730101/1744729573_889860_1349928844_00c68bdcd38a25821e4cffb3ab9cd8a0_rle_crop_3746881419_0.png.png imagette220385971744730101/1744729909_1101919_1349931338_7f57ee70845d662ef9970b85f4899ccc_rle_crop_3746899640_0.png.png imagette220385971744730101/1744729992_894260_1349931689_d7f412eae3538a4cedfb4e6c8e5938a0_rle_crop_3746900191_0.png.png imagette220385971744730101/1744729752_891676_1349930523_eff4d8bdbee54f5935c40f2e516dbd53_rle_crop_3746894603_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/957e48d766e216238401c143d2ebeb0f_27776922.png imagette220385971744730101 22038599 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=22038599 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349932146: '1744729909_1101919_1349931339_46beb84bf117490d23ba023829476529_rle_crop_3746899630_0.png', 1349932149: '1744729909_1101919_1349931338_7f57ee70845d662ef9970b85f4899ccc_rle_crop_3746899639_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/8977d027644f515044ad8340322b9223_16240817.png change filename to text .imagette220385991744730102/ imagette220385991744730102/1744729909_1101919_1349931339_46beb84bf117490d23ba023829476529_rle_crop_3746899630_0.png.png imagette220385991744730102/1744729909_1101919_1349931338_7f57ee70845d662ef9970b85f4899ccc_rle_crop_3746899639_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/8977d027644f515044ad8340322b9223_36106557.png imagette220385991744730102 22038591 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=22038591 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349931514: '1744729782_1100026_1349929903_6d000ed7b52111e2e1abe608ef4a0f85_rle_crop_3746888242_0.png', 1349932706: '1744729992_894260_1349931505_92b7c82056aad6e95fb5a9dbdff85819_rle_crop_3746900240_0.png', 1349932705: '1744729992_894260_1349931505_92b7c82056aad6e95fb5a9dbdff85819_rle_crop_3746900234_0.png', 1349932703: '1744729992_894260_1349931505_92b7c82056aad6e95fb5a9dbdff85819_rle_crop_3746900242_0.png', 1349932700: '1744729992_894260_1349931507_d38a31400888de5931aec0cc47846005_rle_crop_3746900228_0.png', 1349932699: '1744729992_894260_1349931520_f9cfbfb375bc44e7f03f2da99c6ec1a8_rle_crop_3746900213_0.png', 1349932697: '1744729992_894260_1349931689_d7f412eae3538a4cedfb4e6c8e5938a0_rle_crop_3746900200_0.png', 1349932696: '1744729992_894260_1349931689_d7f412eae3538a4cedfb4e6c8e5938a0_rle_crop_3746900195_0.png', 1349932138: '1744729909_1101919_1349931342_216a87326e8e9f2f33f5541e077dbb0c_rle_crop_3746899582_0.png', 1349932136: '1744729909_1101919_1349931343_8aba1fb2782fd936762a5164b7df89e9_rle_crop_3746899570_0.png', 1349932021: '1744729933_893627_1349931098_0e56bd6dc67021cd389d67dc73a1c0d0_rle_crop_3746899479_0.png', 1349932020: '1744729933_893627_1349931352_f8b24593bb4034b7b1c900eb6b647fab_rle_crop_3746899476_0.png', 1349932019: '1744729933_893627_1349931353_53479a88db96096ef5f9a198d8159141_rle_crop_3746899461_0.png', 1349931716: '1744729870_892968_1349931440_b0dfcbd2f2bde1c7e0687aca95167d33_rle_crop_3746897640_0.png', 1349931517: '1744729782_1100026_1349929883_bf22daf72b2d50daa9f69e73a5b47ac4_rle_crop_3746888258_0.png', 1349930359: '1744729421_1090578_1349928080_9c244cbba62715f732236b4ece1317f8_rle_crop_3746876562_0.png', 1349931512: '1744729782_1100026_1349930322_f688a241035943992d4a9b0a191a286c_rle_crop_3746887917_0.png', 1349931511: '1744729782_1100026_1349930322_f688a241035943992d4a9b0a191a286c_rle_crop_3746887922_0.png', 1349931510: '1744729782_1100026_1349930322_f688a241035943992d4a9b0a191a286c_rle_crop_3746887926_0.png', 1349931003: '1744729573_889860_1349928839_072fd2052ce3be6280847ed246830f44_rle_crop_3746881435_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/9272cd65fd6513fe6501d97c9fcd00bd_96346706.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/73bbf4b752c27a3647a9c469a3ec5e0e_35369780.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/dd6ddea55273c968ebc8098c053c8efa_8908276.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/a71ee05712975a5d51b3ba041357ad05_15624102.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/d90056df8599fe9e1696c94b63e200c6_72859881.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/02045f79b9c432296a10f2313f2c89d3_36228171.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/d8f3d9ab98d7e5c772d9c36a7760b3ad_7369656.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/3ae84664b88e58a7a789505bd33054f7_92706463.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/23f893a84f48e0222847d9950f02332f_53285321.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/23f893a84f48e0222847d9950f02332f_90906270.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/b5a24f40e0ce82f0ce91c5d58578ff07_27111964.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/d2c04f0e8dd5d01bbc89902f9d8529a6_1066053.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/d2c04f0e8dd5d01bbc89902f9d8529a6_25121019.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/5602160bf3eb3123492270c1ef29aa40_82456015.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/2c3aee51c58ad66506e232dd8f268a1e_59248282.png change filename to text .wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/af2e6b18cb961964a88963d17d784810_72090593.png change filename to text .wget -O 17.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/9fc710520a026f134f62c7b869757a11_82447347.png change filename to text .wget -O 18.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/70d4e66bfec9e14a5691b81121efd180_51137498.png change filename to text .wget -O 19.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/c9e0e8bbeaf33879586223aa3284a3e9_10072794.png change filename to text .imagette220385911744730102/ imagette220385911744730102/1744729870_892968_1349931440_b0dfcbd2f2bde1c7e0687aca95167d33_rle_crop_3746897640_0.png.png imagette220385911744730102/1744729782_1100026_1349930322_f688a241035943992d4a9b0a191a286c_rle_crop_3746887926_0.png.png imagette220385911744730102/1744729992_894260_1349931505_92b7c82056aad6e95fb5a9dbdff85819_rle_crop_3746900240_0.png.png imagette220385911744730102/1744729992_894260_1349931505_92b7c82056aad6e95fb5a9dbdff85819_rle_crop_3746900234_0.png.png imagette220385911744730102/1744729992_894260_1349931689_d7f412eae3538a4cedfb4e6c8e5938a0_rle_crop_3746900195_0.png.png imagette220385911744730102/1744729573_889860_1349928839_072fd2052ce3be6280847ed246830f44_rle_crop_3746881435_0.png.png imagette220385911744730102/1744729992_894260_1349931520_f9cfbfb375bc44e7f03f2da99c6ec1a8_rle_crop_3746900213_0.png.png imagette220385911744730102/1744729782_1100026_1349930322_f688a241035943992d4a9b0a191a286c_rle_crop_3746887917_0.png.png imagette220385911744730102/1744729782_1100026_1349929883_bf22daf72b2d50daa9f69e73a5b47ac4_rle_crop_3746888258_0.png.png imagette220385911744730102/1744729992_894260_1349931507_d38a31400888de5931aec0cc47846005_rle_crop_3746900228_0.png.png imagette220385911744730102/1744729933_893627_1349931353_53479a88db96096ef5f9a198d8159141_rle_crop_3746899461_0.png.png imagette220385911744730102/1744729909_1101919_1349931342_216a87326e8e9f2f33f5541e077dbb0c_rle_crop_3746899582_0.png.png imagette220385911744730102/1744729992_894260_1349931689_d7f412eae3538a4cedfb4e6c8e5938a0_rle_crop_3746900200_0.png.png imagette220385911744730102/1744729782_1100026_1349929903_6d000ed7b52111e2e1abe608ef4a0f85_rle_crop_3746888242_0.png.png imagette220385911744730102/1744729933_893627_1349931098_0e56bd6dc67021cd389d67dc73a1c0d0_rle_crop_3746899479_0.png.png imagette220385911744730102/1744729909_1101919_1349931343_8aba1fb2782fd936762a5164b7df89e9_rle_crop_3746899570_0.png.png imagette220385911744730102/1744729421_1090578_1349928080_9c244cbba62715f732236b4ece1317f8_rle_crop_3746876562_0.png.png imagette220385911744730102/1744729933_893627_1349931352_f8b24593bb4034b7b1c900eb6b647fab_rle_crop_3746899476_0.png.png imagette220385911744730102/1744729992_894260_1349931505_92b7c82056aad6e95fb5a9dbdff85819_rle_crop_3746900242_0.png.png imagette220385911744730102/1744729782_1100026_1349930322_f688a241035943992d4a9b0a191a286c_rle_crop_3746887922_0.png.png wget -O 20.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/b7c6b4daf661a81a8ac6caad5021393e_50564003.png imagette220385911744730102 22038595 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=22038595 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349931022: '1744729573_889860_1349929059_0da4d0697985c03686e62ae88a494dac_rle_crop_3746881404_0.png', 1349931481: '1744729752_891676_1349930516_9f93c198787c635ac084c68f7a8110a5_rle_crop_3746894633_0.png', 1349932190: '1744729909_1101919_1349931343_8aba1fb2782fd936762a5164b7df89e9_rle_crop_3746899569_0.png', 1349932193: '1744729909_1101919_1349931342_216a87326e8e9f2f33f5541e077dbb0c_rle_crop_3746899581_0.png', 1349932740: '1744729992_894260_1349931496_e012d73ef67f618fa508ef664baecfd6_rle_crop_3746900250_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/129cf0c56b29d4545762b2efe531f319_291381.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/4c196956abe128a0d29fa95b9f1e2627_97125446.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/887c29048135f9afd4ceca9b218cb7c1_25114283.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/887c29048135f9afd4ceca9b218cb7c1_88132534.png change filename to text .imagette220385951744730103/ imagette220385951744730103/1744729752_891676_1349930516_9f93c198787c635ac084c68f7a8110a5_rle_crop_3746894633_0.png.png imagette220385951744730103/1744729909_1101919_1349931343_8aba1fb2782fd936762a5164b7df89e9_rle_crop_3746899569_0.png.png imagette220385951744730103/1744729573_889860_1349929059_0da4d0697985c03686e62ae88a494dac_rle_crop_3746881404_0.png.png imagette220385951744730103/1744729909_1101919_1349931342_216a87326e8e9f2f33f5541e077dbb0c_rle_crop_3746899581_0.png.png imagette220385951744730103/1744729992_894260_1349931496_e012d73ef67f618fa508ef664baecfd6_rle_crop_3746900250_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/634fd69cf4fd68335f17b930d617045b_32455662.png imagette220385951744730103 22038596 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=22038596 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349930486: '1744729543_1092505_1349929030_d9c29682a13808922492e24d7e97dbc4_rle_crop_3746877274_0.png', 1349930488: '1744729543_1092505_1349929030_d9c29682a13808922492e24d7e97dbc4_rle_crop_3746877278_0.png', 1349930491: '1744729543_1092505_1349929003_dfa10b8971a703f5950069f344a2bdbd_rle_crop_3746877288_0.png', 1349931015: '1744729573_889860_1349929059_0da4d0697985c03686e62ae88a494dac_rle_crop_3746881401_0.png', 1349931016: '1744729573_889860_1349928844_00c68bdcd38a25821e4cffb3ab9cd8a0_rle_crop_3746881417_0.png', 1349931017: '1744729573_889860_1349928839_072fd2052ce3be6280847ed246830f44_rle_crop_3746881430_0.png', 1349931476: '1744729752_891676_1349930518_c4a04e17bafd6a1ee9a48b2179afaf88_rle_crop_3746894616_0.png', 1349931477: '1744729752_891676_1349930518_c4a04e17bafd6a1ee9a48b2179afaf88_rle_crop_3746894614_0.png', 1349931478: '1744729752_891676_1349930516_9f93c198787c635ac084c68f7a8110a5_rle_crop_3746894628_0.png', 1349931531: '1744729782_1100026_1349929942_2a907850775ad27db5e9a1fef727dbc4_rle_crop_3746888222_0.png', 1349931533: '1744729782_1100026_1349929883_bf22daf72b2d50daa9f69e73a5b47ac4_rle_crop_3746894832_0.png', 1349931535: '1744729782_1100026_1349929883_bf22daf72b2d50daa9f69e73a5b47ac4_bib_crop_3746888251_0.jpg', 1349931719: '1744729870_892968_1349931437_d07833e1045cebf2ca6711887956567e_rle_crop_3746897694_0.png', 1349932154: '1744729909_1101919_1349931343_8aba1fb2782fd936762a5164b7df89e9_rle_crop_3746899568_0.png', 1349932155: '1744729909_1101919_1349931342_216a87326e8e9f2f33f5541e077dbb0c_rle_crop_3746899580_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/0d37f67d2e3d6858e4a9f30a588f91bc_34852947.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/cf98750c26221a8bf17c4f104b7d1669_89393194.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/e7804ee7e3d0cf067413995dabfd67f8_50279019.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/0ab348fe828e43a70042c851ab619055_63107547.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/6eb762becd8f50f12f1b6b0574776012_81676479.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/6eb762becd8f50f12f1b6b0574776012_52077624.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/bfbf5dccf834adc5230a99b7cbfdead4_17898314.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/989337208ecd52d6627af80f6bb52fed_92435420.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/7e931cf29142698cb291d7a60e0649c6_40903641.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/f7fc5b676aaa5d40313627c5609db8d5_127092.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/e2f312ce04995e57007b6eed36477c2c_33690379.png change filename to text .wget -O 12.jpg http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/6ca10c498f3184c3e4261e6b0a9632fb_36552245.jpg change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/d17955ca0f8ee0510baa9d1b64a60041_42935598.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/979c950f6d4f04519814d3a2e023cc69_23626124.png change filename to text .imagette220385961744730105/ imagette220385961744730105/1744729543_1092505_1349929030_d9c29682a13808922492e24d7e97dbc4_rle_crop_3746877274_0.png.png imagette220385961744730105/1744729782_1100026_1349929883_bf22daf72b2d50daa9f69e73a5b47ac4_bib_crop_3746888251_0.jpg.jpg imagette220385961744730105/1744729543_1092505_1349929003_dfa10b8971a703f5950069f344a2bdbd_rle_crop_3746877288_0.png.png imagette220385961744730105/1744729870_892968_1349931437_d07833e1045cebf2ca6711887956567e_rle_crop_3746897694_0.png.png imagette220385961744730105/1744729752_891676_1349930518_c4a04e17bafd6a1ee9a48b2179afaf88_rle_crop_3746894616_0.png.png imagette220385961744730105/1744729573_889860_1349928844_00c68bdcd38a25821e4cffb3ab9cd8a0_rle_crop_3746881417_0.png.png imagette220385961744730105/1744729543_1092505_1349929030_d9c29682a13808922492e24d7e97dbc4_rle_crop_3746877278_0.png.png imagette220385961744730105/1744729909_1101919_1349931343_8aba1fb2782fd936762a5164b7df89e9_rle_crop_3746899568_0.png.png imagette220385961744730105/1744729752_891676_1349930518_c4a04e17bafd6a1ee9a48b2179afaf88_rle_crop_3746894614_0.png.png imagette220385961744730105/1744729782_1100026_1349929942_2a907850775ad27db5e9a1fef727dbc4_rle_crop_3746888222_0.png.png imagette220385961744730105/1744729573_889860_1349929059_0da4d0697985c03686e62ae88a494dac_rle_crop_3746881401_0.png.png imagette220385961744730105/1744729752_891676_1349930516_9f93c198787c635ac084c68f7a8110a5_rle_crop_3746894628_0.png.png imagette220385961744730105/1744729782_1100026_1349929883_bf22daf72b2d50daa9f69e73a5b47ac4_rle_crop_3746894832_0.png.png imagette220385961744730105/1744729909_1101919_1349931342_216a87326e8e9f2f33f5541e077dbb0c_rle_crop_3746899580_0.png.png imagette220385961744730105/1744729573_889860_1349928839_072fd2052ce3be6280847ed246830f44_rle_crop_3746881430_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/979c950f6d4f04519814d3a2e023cc69_59209573.png imagette220385961744730105 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22038581 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22038600,22038601,22038602,22038603,22038604,22038605,22038606,22038607,22038608,22038609,22038610,22038611?tags=metal,mal_croppe,cartonnette,Teint_Dans_La_Masse,environnement,flou,kraft,Carton_brun,Carton_gris,plastique,papier,autre_refus your option no_mail is active, we will not send the real mail to your client args[1349933057] : ('0.051092901007210804',) no score found for photo 1349933057 We are sending mail with results at report@fotonower.com args[1349932999] : ('0.051092901007210804',) no score found for photo 1349932999 We are sending mail with results at report@fotonower.com args[1349932928] : ('0.051092901007210804',) no score found for photo 1349932928 We are sending mail with results at report@fotonower.com args[1349932763] : ('0.051092901007210804',) no score found for photo 1349932763 We are sending mail with results at report@fotonower.com args[1349932694] : ('0.051092901007210804',) no score found for photo 1349932694 We are sending mail with results at report@fotonower.com args[1349932597] : ('0.051092901007210804',) no score found for photo 1349932597 We are sending mail with results at report@fotonower.com args[1349932542] : ('0.051092901007210804',) no score found for photo 1349932542 We are sending mail with results at report@fotonower.com args[1349932513] : ('0.051092901007210804',) no score found for photo 1349932513 We are sending mail with results at report@fotonower.com args[1349932037] : ('0.051092901007210804',) no score found for photo 1349932037 We are sending mail with results at report@fotonower.com args[1349931998] : ('0.051092901007210804',) no score found for photo 1349931998 We are sending mail with results at report@fotonower.com args[1349931943] : ('0.051092901007210804',) no score found for photo 1349931943 We are sending mail with results at report@fotonower.com refus_total : 0.051092901007210804 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=22038581 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_P22038581_15-04-2025_17_15_01.pdf results_Auto_P22038581_15-04-2025_17_15_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22038581_15-04-2025_17_15_01.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','22038581','results_Auto_P22038581_15-04-2025_17_15_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22038581_15-04-2025_17_15_01.pdf','pdf','','0.24','0.051092901007210804') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22038581]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349933057, 1349932999, 1349932928, 1349932763, 1349932694, 1349932597, 1349932542, 1349932513, 1349932037, 1349931998, 1349931943] map_info['map_portfolio_photo'] : {22038581: [1349933057, 1349932999, 1349932928, 1349932763, 1349932694, 1349932597, 1349932542, 1349932513, 1349932037, 1349931998, 1349931943, 1349931689, 1349931685, 1349931550, 1349931520, 1349931507, 1349931505, 1349931496, 1349931472, 1349931454, 1349931446, 1349931440, 1349931437, 1349931353, 1349931352, 1349931347, 1349931346, 1349931343, 1349931342, 1349931339, 1349931338, 1349931164, 1349931098, 1349930562, 1349930534, 1349930523, 1349930518, 1349930516, 1349930322, 1349930297, 1349930272, 1349930238, 1349930193, 1349930162, 1349930023, 1349929990, 1349929942, 1349929903, 1349929883, 1349929059, 1349929030, 1349929003, 1349928874, 1349928870, 1349928844, 1349928839, 1349928814, 1349928808, 1349928784, 1349928781, 1349928748, 1349928742, 1349928080, 1349928073, 1349928047, 1349928042, 1349928014, 1349928013]} final : False mtd_id 4302 list_pids : [1349933057, 1349932999, 1349932928, 1349932763, 1349932694, 1349932597, 1349932542, 1349932513, 1349932037, 1349931998, 1349931943] 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, '2722468') ('4302', '22038581', '1349933057', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932999', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932928', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932763', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932694', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932597', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932542', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932513', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932037', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349931998', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349931943', None, None, None, None, None, '2722468') 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', '22038581', '1349933057', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349932999', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349932928', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349932763', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349932694', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349932597', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349932542', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349932513', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349932037', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349931998', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349931943', None, None, None, None, None, '2722468')] time used for this insertion : 0.01846027374267578 save_final save missing photos in datou_result : time spend for datou_step_exec : 7.849517345428467 time spend to save output : 0.018857955932617188 total time spend for step 4 : 7.868375301361084 step5:split_time_score Tue Apr 15 17:15:08 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 : ['22038581'] 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 : [('22038581',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22038581) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349932999: {'path': 'temp/1744730100_79276_1349932999_fa4f2304b662a04ed92247f32a93749f.jpg', 'extension': 'jpg'}, 1349933057: {'path': 'temp/1744730100_79276_1349933057_0306691c0d7046c8ce2dc9806bf3d20b.jpg', 'extension': 'jpg'}, 1349932694: {'path': 'temp/1744730100_79276_1349932694_26dfb07691b03066ca12eedc713430c0.jpg', 'extension': 'jpg'}, 1349932763: {'path': 'temp/1744730100_79276_1349932763_c6fe52b94fd10ed12edf140231a9daa7.jpg', 'extension': 'jpg'}, 1349932928: {'path': 'temp/1744730100_79276_1349932928_640ef39e67ad95f5c53f0997ff135134.jpg', 'extension': 'jpg'}, 1349931943: {'path': 'temp/1744730100_79276_1349931943_317a343d70c6a34f870db8d529e9347d.jpg', 'extension': 'jpg'}, 1349931998: {'path': 'temp/1744730100_79276_1349931998_4aae49712b037a0ef7cadaa34ef7103b.jpg', 'extension': 'jpg'}, 1349932037: {'path': 'temp/1744730100_79276_1349932037_8c7f897aa5726cd57efd895068149363.jpg', 'extension': 'jpg'}, 1349932513: {'path': 'temp/1744730100_79276_1349932513_b8eacd4e35f6778a4893a3c0a9e276e0.jpg', 'extension': 'jpg'}, 1349932542: {'path': 'temp/1744730100_79276_1349932542_cae67d1cd23b5c3c8ee15fbf8df8ae87.jpg', 'extension': 'jpg'}, 1349932597: {'path': 'temp/1744730100_79276_1349932597_ef7e361fceabeddf1eb3f1a18e5c0161.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 = 22038581; (('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 = 22038581 group by h (('17', 68),) 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=22038581 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 (22038581) 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 (22038581) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 15042025 22038581 Nombre de photos uploadées : 68 / 23040 (0%) 15042025 22038581 Nombre de photos taguées (types de déchets): 0 / 68 (0%) 15042025 22038581 Nombre de photos taguées (volume) : 0 / 68 (0%) [{'photo_id': 1349928073, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/a1257d48d4c50135359ca0dd4c26df09.jpg', 'username': None, 'uploaded_at': 1744729292, 'text': 'image_15042025_17_00_24_010134m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349928080, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/9c244cbba62715f732236b4ece1317f8.jpg', 'username': None, 'uploaded_at': 1744729293, 'text': 'image_15042025_17_00_24_010134m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349928042, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/a8f7ca2c49d05d99e08a97bdb0452c2f.jpg', 'username': None, 'uploaded_at': 1744729292, 'text': 'image_15042025_17_00_33_009132m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1349928047, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/15/d7819214ad583cf84aaf83cfffc10d9b.jpg', 'username': None, 'uploaded_at': 1744729293, 'text': 'image_15042025_17_00_33_009132m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 4.5299530029296875e-06 elapsed_time : order_list_meta_photo_and_scores 1.1444091796875e-05 ???????????????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0018277168273925781 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22038581, '2025-04-15' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1714503,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02828240394592285 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= 1714503 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1714503, 'dashboard_run_id': 1723431, 'mtr_portfolio_id': 22036374, 'dashboard_result_id': 9856738, '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_P22036374_15-04-2025_16_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22036379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22036380, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22036381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22036382, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22036383, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22036384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22036385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22036386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22036387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22036388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22036389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22036390, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1723431, 'mtr_portfolio_id': 22037077, 'dashboard_result_id': 9856739, '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_P22037077_15-04-2025_16_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22037084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037090, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1723431, 'mtr_portfolio_id': 22037809, 'dashboard_result_id': 9856740, '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_P22037809_15-04-2025_17_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037817, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037822, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22037823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037825, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037828, 'pht': 3726}}"}, {'dashboat_entry_day': 1714503, 'dashboard_run_id': 1723431, 'mtr_portfolio_id': 22038581, 'dashboard_result_id': 9856741, '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_P22038581_15-04-2025_17_12_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22038588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22038589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22038590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22038591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22038592, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22038593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22038594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22038595, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22038596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22038597, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22038598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22038599, '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 = 22036374 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': 2722261, 'mtr_portfolio_id': 22036374, 'created_at': datetime.datetime(2025, 4, 15, 16, 32, 59), 'result': '0.050489303939343734', 'result_long': None, 'result_double': None}] Qualite : 0.050489303939343734 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22036374 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22036374_15-04-2025_16_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22036374 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_P22036374_15-04-2025_16_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22036379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22036380, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22036381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22036382, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22036383, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22036384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22036385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22036386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22036387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22036388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22036389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22036390, 'pht': 3726}}" where mtr_portfolio_id = 22036374 and dashboard_run_id = 1723431 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`=22036374 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9856738, 0.050489303939343734, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22036374_15-04-2025_16_32_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22036379, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22036380, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22036381, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22036382, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22036383, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22036384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22036385, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22036386, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22036387, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22036388, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22036389, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22036390, '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 = 22037077 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': 2722323, 'mtr_portfolio_id': 22037077, 'created_at': datetime.datetime(2025, 4, 15, 16, 49), 'result': '0.047122326309306566', 'result_long': None, 'result_double': None}] Qualite : 0.047122326309306566 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22037077 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22037077_15-04-2025_16_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22037077 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_P22037077_15-04-2025_16_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22037084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037090, 'pht': 3726}}" where mtr_portfolio_id = 22037077 and dashboard_run_id = 1723431 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`=22037077 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9856739, 0.047122326309306566, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22037077_15-04-2025_16_49_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037079, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037080, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037081, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037082, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037083, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22037084, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037085, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037087, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037088, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037089, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037090, '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 = 22037809 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': 2722381, 'mtr_portfolio_id': 22037809, 'created_at': datetime.datetime(2025, 4, 15, 17, 2, 59), 'result': '0.036453943759106364', 'result_long': None, 'result_double': None}] Qualite : 0.036453943759106364 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22037809 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22037809_15-04-2025_17_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22037809 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_P22037809_15-04-2025_17_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037817, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037822, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22037823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037825, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037828, 'pht': 3726}}" where mtr_portfolio_id = 22037809 and dashboard_run_id = 1723431 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`=22037809 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9856740, 0.036453943759106364, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22037809_15-04-2025_17_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22037817, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22037818, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22037819, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22037820, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22037821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22037822, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22037823, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22037824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22037825, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22037826, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22037827, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22037828, '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 = 22038581 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': 2722468, 'mtr_portfolio_id': 22038581, 'created_at': datetime.datetime(2025, 4, 15, 17, 15), 'result': '0.051092901007210804', 'result_long': None, 'result_double': None}] Qualite : 0.051092901007210804 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22038581 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22038581_15-04-2025_17_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22038581 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_P22038581_15-04-2025_17_15_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22038588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22038589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22038590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22038591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22038592, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22038593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22038594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22038595, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22038596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22038597, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22038598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22038599, 'pht': 3726}}" where mtr_portfolio_id = 22038581 and dashboard_run_id = 1723431 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`=22038581 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9856741, 0.051092901007210804, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22038581_15-04-2025_17_15_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 22038588, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22038589, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22038590, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22038591, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22038592, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22038593, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22038594, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22038595, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22038596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22038597, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22038598, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22038599, '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 (22036374,22037077,22037809,22038581) result : ((1349920892,), (1349920896,), (1349920902,), (1349921401,), (1349921425,), (1349921591,), (1349921596,), (1349921623,), (1349921649,), (1349921680,), (1349921932,), (1349921934,), (1349921940,), (1349921967,), (1349921995,), (1349922069,), (1349922072,), (1349922092,), (1349922116,), (1349922469,), (1349922488,), (1349922503,), (1349922557,), (1349922558,), (1349922560,), (1349922567,), (1349922636,), (1349922639,), (1349922642,), (1349922645,), (1349922662,), (1349922667,), (1349922717,), (1349922720,), (1349922724,), (1349922768,), (1349922770,), (1349922773,), (1349922776,), (1349922782,), (1349922789,), (1349922877,), (1349922880,), (1349922899,), (1349922918,), (1349922985,), (1349922987,), (1349922990,), (1349922994,), (1349923000,), (1349923012,), (1349923065,), (1349923071,), (1349923078,), (1349923084,), (1349923090,), (1349923097,), (1349923099,), (1349923102,), (1349923105,), (1349923177,), (1349923181,), (1349923191,), (1349923203,), (1349923215,), (1349923294,), (1349923275,), (1349923278,), (1349923281,), (1349923285,), (1349923487,), (1349923499,), (1349923516,), (1349923521,), (1349923546,), (1349923725,), (1349923751,), (1349923782,), (1349923804,), (1349924170,), (1349924174,), (1349924185,), (1349924187,), (1349924195,), (1349924200,), (1349924243,), (1349924248,), (1349924269,), (1349924271,), (1349924276,), (1349924277,), (1349924288,), (1349924290,), (1349924293,), (1349924295,), (1349924512,), (1349924531,), (1349924534,), (1349924541,), (1349924567,), (1349924783,), (1349924802,), (1349924804,), (1349924816,), (1349924826,), (1349924927,), (1349924952,), (1349924975,), (1349925013,), (1349925045,), (1349925073,), (1349925100,), (1349925123,), (1349925140,), (1349925240,), (1349925245,), (1349925253,), (1349925262,), (1349925270,), (1349925276,), (1349925309,), (1349925313,), (1349925315,), (1349925340,), (1349925344,), (1349925347,), (1349925421,), (1349925423,), (1349925427,), (1349925434,), (1349925441,), (1349925520,), (1349925524,), (1349925529,), (1349925535,), (1349925541,), (1349925619,), (1349925621,), (1349925623,), (1349925625,), (1349925627,), (1349925629,), (1349925634,), (1349925636,), (1349925639,), (1349925643,), (1349925646,), (1349925648,), (1349925669,), (1349925673,), (1349925675,), (1349925816,), (1349925796,), (1349925799,), (1349925804,), (1349925810,), (1349925830,), (1349925833,), (1349925836,), (1349925838,), (1349925896,), (1349925899,), (1349925902,), (1349925905,), (1349925908,), (1349925911,), (1349925965,), (1349925973,), (1349925986,), (1349926111,), (1349926130,), (1349926133,), (1349926136,), (1349926138,), (1349926199,), (1349926202,), (1349926206,), (1349926212,), (1349926344,), (1349926348,), (1349926352,), (1349926357,), (1349926441,), (1349926541,), (1349926547,), (1349926554,), (1349926608,), (1349926614,), (1349926620,), (1349926630,), (1349926636,), (1349926642,), (1349926653,), (1349926667,), (1349926670,), (1349926673,), (1349926733,), (1349926753,), (1349926758,), (1349926761,), (1349926765,), (1349926844,), (1349926854,), (1349926866,), (1349926883,), (1349927302,), (1349927329,), (1349927359,), (1349927374,), (1349927385,), (1349927418,), (1349927445,), (1349927466,), (1349927492,), (1349928105,), (1349928109,), (1349928013,), (1349928014,), (1349928042,), (1349928047,), (1349928073,), (1349928080,), (1349928742,), (1349928748,), (1349928781,), (1349928784,), (1349928808,), (1349928814,), (1349928839,), (1349928844,), (1349928870,), (1349928874,), (1349929003,), (1349929030,), (1349929059,), (1349929883,), (1349929903,), (1349929942,), (1349929990,), (1349930023,), (1349930162,), (1349930193,), (1349930238,), (1349930272,), (1349930297,), (1349930322,), (1349930516,), (1349930518,), (1349930523,), (1349930534,), (1349930562,), (1349931098,), (1349931164,), (1349931338,), (1349931339,), (1349931342,), (1349931343,), (1349931346,), (1349931347,), (1349931352,), (1349931353,), (1349931437,), (1349931440,), (1349931446,), (1349931454,), (1349931472,), (1349931496,), (1349931505,), (1349931507,), (1349931520,), (1349931550,), (1349931685,), (1349931689,), (1349931943,), (1349931998,), (1349932037,), (1349932513,), (1349932542,), (1349932597,), (1349932694,), (1349932763,), (1349932928,), (1349932999,), (1349933057,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'15042025': {'nb_upload': 68, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22038581]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349933057, 1349932999, 1349932928, 1349932763, 1349932694, 1349932597, 1349932542, 1349932513, 1349932037, 1349931998, 1349931943] map_info['map_portfolio_photo'] : {22038581: [1349933057, 1349932999, 1349932928, 1349932763, 1349932694, 1349932597, 1349932542, 1349932513, 1349932037, 1349931998, 1349931943, 1349931689, 1349931685, 1349931550, 1349931520, 1349931507, 1349931505, 1349931496, 1349931472, 1349931454, 1349931446, 1349931440, 1349931437, 1349931353, 1349931352, 1349931347, 1349931346, 1349931343, 1349931342, 1349931339, 1349931338, 1349931164, 1349931098, 1349930562, 1349930534, 1349930523, 1349930518, 1349930516, 1349930322, 1349930297, 1349930272, 1349930238, 1349930193, 1349930162, 1349930023, 1349929990, 1349929942, 1349929903, 1349929883, 1349929059, 1349929030, 1349929003, 1349928874, 1349928870, 1349928844, 1349928839, 1349928814, 1349928808, 1349928784, 1349928781, 1349928748, 1349928742, 1349928080, 1349928073, 1349928047, 1349928042, 1349928014, 1349928013]} final : True mtd_id 4302 list_pids : [1349933057, 1349932999, 1349932928, 1349932763, 1349932694, 1349932597, 1349932542, 1349932513, 1349932037, 1349931998, 1349931943] Looping around the photos to save general results len do output : 1 /22038581Didn'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, '2722468') ('4302', '22038581', '1349933057', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932999', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932928', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932763', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932694', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932597', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932542', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932513', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349932037', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349931998', None, None, None, None, None, '2722468') ('4302', None, None, None, None, None, None, None, '2722468') ('4302', '22038581', '1349931943', None, None, None, None, None, '2722468') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 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, '22038581', 'None', None, None, None, None, '2722468'), ('4302', '22038581', '1349933057', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349932999', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349932928', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349932763', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349932694', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349932597', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349932542', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349932513', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349932037', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349931998', None, None, None, None, None, '2722468'), ('4302', '22038581', '1349931943', None, None, None, None, None, '2722468')] time used for this insertion : 0.018154144287109375 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.34587955474853516 time spend to save output : 0.018521785736083984 total time spend for step 5 : 0.36440134048461914 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 (2722468) 2.40user 2.59system 0:13.51elapsed 37%CPU (0avgtext+0avgdata 159504maxresident)k 23784inputs+15440outputs (183major+74967minor)pagefaults 0swaps