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 : 3592975 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 was removed should we ? donnée sous forme de texte was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? id de la photo (peut être local ou global) was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de nombre was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? (photo_id, hashtag_id, score_max) was removed should we ? donnée sous forme de texte was removed should we ? None was removed should we ? donnée sous forme de texte was removed should we ? [ptf_id0,ptf_id1...] was removed should we ? load thcls load pdts Running datou job : batch_current 4302 [] TODO datou_current to load to do maybe to take outside batchDatouExec SELECT * from MTRPhoto.mtr_datou_current where state = 0 AND mtr_portfolio_id is not NULL AND mtd_id = 4302 order by created_at desc LIMIT 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2711967) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2711967) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21938116 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2711967'] with mtr_portfolio_ids : ['21938116'] and first list_photo_ids : [] new path : /proc/3592975/ Name: python3 Umask: 0002 State: R (running) Tgid: 3592975 Ngid: 0 Pid: 3592975 PPid: 3592974 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3592975 NSpid: 3592975 NSpgid: 3587391 NSsid: 3587391 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98488 kB VmRSS: 98488 kB RssAnon: 59796 kB RssFile: 38692 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63054 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 108 nonvoluntary_ctxt_switches: 185 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3592975', 'Ngid': '0', 'Pid': '3592975', 'PPid': '3592974', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3592975', 'NSpid': '3592975', 'NSpgid': '3587391', 'NSsid': '3587391', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98488 kB', 'VmRSS': '98488 kB', 'RssAnon': '59796 kB', 'RssFile': '38692 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63054', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000before 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, '2711967') ('4302', '21938116', '1349218593', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218589', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218582', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218556', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218552', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218548', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218543', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218539', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218538', None, None, None, None, None, '2711967') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21938116', "{'papier': 21938122, 'Carton_gris': 21938123, 'cartonnette': 21938124, 'autre_refus': 21938125, 'metal': 21938126, 'Teint_Dans_La_Masse': 21938127, 'Carton_brun': 21938128, 'environnement': 21938129, 'mal_croppe': 21938130, 'flou': 21938131, 'plastique': 21938132, 'kraft': 21938133}", None, None, None, None, '2711967'), ('4302', '21938116', '1349218593', None, None, None, None, None, '2711967'), ('4302', '21938116', '1349218589', None, None, None, None, None, '2711967'), ('4302', '21938116', '1349218582', None, None, None, None, None, '2711967'), ('4302', '21938116', '1349218556', None, None, None, None, None, '2711967'), ('4302', '21938116', '1349218552', None, None, None, None, None, '2711967'), ('4302', '21938116', '1349218548', None, None, None, None, None, '2711967'), ('4302', '21938116', '1349218543', None, None, None, None, None, '2711967'), ('4302', '21938116', '1349218539', None, None, None, None, None, '2711967'), ('4302', '21938116', '1349218538', None, None, None, None, None, '2711967')] time used for this insertion : 0.013094425201416016 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.0954108238220215 time spend to save output : 0.013372659683227539 total time spend for step 1 : 2.108783483505249 step2:final Tue Apr 1 07:43:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21938116) 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 21938116 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349217322,1349217313,1349217286,1349217274,1349217458,1349217439,1349217410,1349217383,1349217345,1349217594,1349217591,1349217588,1349217584,1349217579,1349217651,1349217640,1349217632,1349217974,1349217962,1349217923,1349217918,1349217890,1349218162,1349218157,1349218141,1349218110,1349218080,1349218207,1349218199,1349218196,1349218193,1349218378,1349218373,1349218337,1349218309,1349218275,1349218429,1349218425,1349218422,1349218419,1349218415,1349218556,1349218552,1349218548,1349218543,1349218539,1349218538,1349218593,1349218589,1349218582); 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([21938116]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349218593: ('0.042186095919701704',), 1349218589: ('0.042186095919701704',), 1349218582: ('0.042186095919701704',), 1349218556: ('0.042186095919701704',), 1349218552: ('0.042186095919701704',), 1349218548: ('0.042186095919701704',), 1349218543: ('0.042186095919701704',), 1349218539: ('0.042186095919701704',), 1349218538: ('0.042186095919701704',)} new output for save of step final : {1349218593: ('0.042186095919701704',), 1349218589: ('0.042186095919701704',), 1349218582: ('0.042186095919701704',), 1349218556: ('0.042186095919701704',), 1349218552: ('0.042186095919701704',), 1349218548: ('0.042186095919701704',), 1349218543: ('0.042186095919701704',), 1349218539: ('0.042186095919701704',), 1349218538: ('0.042186095919701704',)} [1349218593, 1349218589, 1349218582, 1349218556, 1349218552, 1349218548, 1349218543, 1349218539, 1349218538] map_info['map_portfolio_photo'] : {21938116: [1349218593, 1349218589, 1349218582, 1349218556, 1349218552, 1349218548, 1349218543, 1349218539, 1349218538, 1349218429, 1349218425, 1349218422, 1349218419, 1349218415, 1349218378, 1349218373, 1349218337, 1349218309, 1349218275, 1349218207, 1349218199, 1349218196, 1349218193, 1349218162, 1349218157, 1349218141, 1349218110, 1349218080, 1349217974, 1349217962, 1349217923, 1349217918, 1349217890, 1349217651, 1349217640, 1349217632, 1349217594, 1349217591, 1349217588, 1349217584, 1349217579, 1349217458, 1349217439, 1349217410, 1349217383, 1349217345, 1349217322, 1349217313, 1349217286, 1349217274]} final : False mtd_id 4302 list_pids : [1349218593, 1349218589, 1349218582, 1349218556, 1349218552, 1349218548, 1349218543, 1349218539, 1349218538] Looping around the photos to save general results len do output : 9 /1349218593.Didn't retrieve data . /1349218589.Didn't retrieve data . /1349218582.Didn't retrieve data . /1349218556.Didn't retrieve data . /1349218552.Didn't retrieve data . /1349218548.Didn't retrieve data . /1349218543.Didn't retrieve data . /1349218539.Didn't retrieve data . /1349218538.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, '2711967') ('4302', '21938116', '1349218593', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218589', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218582', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218556', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218552', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218548', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218543', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218539', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218538', None, None, None, None, None, '2711967') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '21938116', '1349218593', '0.042186095919701704', None, None, None, None, '2711967'), ('4302', '21938116', '1349218589', '0.042186095919701704', None, None, None, None, '2711967'), ('4302', '21938116', '1349218582', '0.042186095919701704', None, None, None, None, '2711967'), ('4302', '21938116', '1349218556', '0.042186095919701704', None, None, None, None, '2711967'), ('4302', '21938116', '1349218552', '0.042186095919701704', None, None, None, None, '2711967'), ('4302', '21938116', '1349218548', '0.042186095919701704', None, None, None, None, '2711967'), ('4302', '21938116', '1349218543', '0.042186095919701704', None, None, None, None, '2711967'), ('4302', '21938116', '1349218539', '0.042186095919701704', None, None, None, None, '2711967'), ('4302', '21938116', '1349218538', '0.042186095919701704', None, None, None, None, '2711967')] time used for this insertion : 0.014866828918457031 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06878876686096191 time spend to save output : 0.015455007553100586 total time spend for step 2 : 0.0842437744140625 step3:velours_tree Tue Apr 1 07:43:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21938116: [{'papier': 21938122, 'Carton_gris': 21938123, 'cartonnette': 21938124, 'autre_refus': 21938125, 'metal': 21938126, 'Teint_Dans_La_Masse': 21938127, 'Carton_brun': 21938128, 'environnement': 21938129, 'mal_croppe': 21938130, 'flou': 21938131, 'plastique': 21938132, 'kraft': 21938133}]} input_args_next_step : {21938116: ()} output_args : {21938116: [{'papier': 21938122, 'Carton_gris': 21938123, 'cartonnette': 21938124, 'autre_refus': 21938125, 'metal': 21938126, 'Teint_Dans_La_Masse': 21938127, 'Carton_brun': 21938128, 'environnement': 21938129, 'mal_croppe': 21938130, 'flou': 21938131, 'plastique': 21938132, 'kraft': 21938133}]} args : 21938116 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 : ({'papier': 21938122, 'Carton_gris': 21938123, 'cartonnette': 21938124, 'autre_refus': 21938125, 'metal': 21938126, 'Teint_Dans_La_Masse': 21938127, 'Carton_brun': 21938128, 'environnement': 21938129, 'mal_croppe': 21938130, 'flou': 21938131, 'plastique': 21938132, 'kraft': 21938133},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21938116) 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([21938116]) 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.4301743507385254 time spend to save output : 6.628036499023438e-05 total time spend for step 3 : 0.4302406311035156 step4:send_mail_cod Tue Apr 1 07:43:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1349218593: ('0.042186095919701704',), 1349218589: ('0.042186095919701704',), 1349218582: ('0.042186095919701704',), 1349218556: ('0.042186095919701704',), 1349218552: ('0.042186095919701704',), 1349218548: ('0.042186095919701704',), 1349218543: ('0.042186095919701704',), 1349218539: ('0.042186095919701704',), 1349218538: ('0.042186095919701704',)} input_args_next_step : {1349218593: ()} output_args : {1349218593: ('0.042186095919701704',), 1349218589: ('0.042186095919701704',), 1349218582: ('0.042186095919701704',), 1349218556: ('0.042186095919701704',), 1349218552: ('0.042186095919701704',), 1349218548: ('0.042186095919701704',), 1349218543: ('0.042186095919701704',), 1349218539: ('0.042186095919701704',), 1349218538: ('0.042186095919701704',)} args : 1349218593 depend.output_id : 0 input_args_next_step : {1349218593: ('0.042186095919701704',), 1349218589: ()} output_args : {1349218593: ('0.042186095919701704',), 1349218589: ('0.042186095919701704',), 1349218582: ('0.042186095919701704',), 1349218556: ('0.042186095919701704',), 1349218552: ('0.042186095919701704',), 1349218548: ('0.042186095919701704',), 1349218543: ('0.042186095919701704',), 1349218539: ('0.042186095919701704',), 1349218538: ('0.042186095919701704',)} args : 1349218589 depend.output_id : 0 input_args_next_step : {1349218593: ('0.042186095919701704',), 1349218589: ('0.042186095919701704',), 1349218582: ()} output_args : {1349218593: ('0.042186095919701704',), 1349218589: ('0.042186095919701704',), 1349218582: ('0.042186095919701704',), 1349218556: ('0.042186095919701704',), 1349218552: ('0.042186095919701704',), 1349218548: ('0.042186095919701704',), 1349218543: ('0.042186095919701704',), 1349218539: ('0.042186095919701704',), 1349218538: ('0.042186095919701704',)} args : 1349218582 depend.output_id : 0 input_args_next_step : {1349218593: ('0.042186095919701704',), 1349218589: ('0.042186095919701704',), 1349218582: ('0.042186095919701704',), 1349218556: ()} output_args : {1349218593: ('0.042186095919701704',), 1349218589: ('0.042186095919701704',), 1349218582: ('0.042186095919701704',), 1349218556: ('0.042186095919701704',), 1349218552: ('0.042186095919701704',), 1349218548: ('0.042186095919701704',), 1349218543: ('0.042186095919701704',), 1349218539: ('0.042186095919701704',), 1349218538: ('0.042186095919701704',)} args : 1349218556 depend.output_id : 0 input_args_next_step : {1349218593: ('0.042186095919701704',), 1349218589: ('0.042186095919701704',), 1349218582: ('0.042186095919701704',), 1349218556: ('0.042186095919701704',), 1349218552: ()} output_args : {1349218593: ('0.042186095919701704',), 1349218589: ('0.042186095919701704',), 1349218582: ('0.042186095919701704',), 1349218556: ('0.042186095919701704',), 1349218552: ('0.042186095919701704',), 1349218548: ('0.042186095919701704',), 1349218543: ('0.042186095919701704',), 1349218539: ('0.042186095919701704',), 1349218538: ('0.042186095919701704',)} args : 1349218552 depend.output_id : 0 input_args_next_step : {1349218593: ('0.042186095919701704',), 1349218589: ('0.042186095919701704',), 1349218582: ('0.042186095919701704',), 1349218556: ('0.042186095919701704',), 1349218552: ('0.042186095919701704',), 1349218548: ()} output_args : {1349218593: ('0.042186095919701704',), 1349218589: ('0.042186095919701704',), 1349218582: ('0.042186095919701704',), 1349218556: ('0.042186095919701704',), 1349218552: ('0.042186095919701704',), 1349218548: ('0.042186095919701704',), 1349218543: ('0.042186095919701704',), 1349218539: ('0.042186095919701704',), 1349218538: ('0.042186095919701704',)} args : 1349218548 depend.output_id : 0 input_args_next_step : {1349218593: ('0.042186095919701704',), 1349218589: ('0.042186095919701704',), 1349218582: ('0.042186095919701704',), 1349218556: ('0.042186095919701704',), 1349218552: ('0.042186095919701704',), 1349218548: ('0.042186095919701704',), 1349218543: ()} output_args : {1349218593: ('0.042186095919701704',), 1349218589: ('0.042186095919701704',), 1349218582: ('0.042186095919701704',), 1349218556: ('0.042186095919701704',), 1349218552: ('0.042186095919701704',), 1349218548: ('0.042186095919701704',), 1349218543: ('0.042186095919701704',), 1349218539: ('0.042186095919701704',), 1349218538: ('0.042186095919701704',)} args : 1349218543 depend.output_id : 0 input_args_next_step : {1349218593: ('0.042186095919701704',), 1349218589: ('0.042186095919701704',), 1349218582: ('0.042186095919701704',), 1349218556: ('0.042186095919701704',), 1349218552: ('0.042186095919701704',), 1349218548: ('0.042186095919701704',), 1349218543: ('0.042186095919701704',), 1349218539: ()} output_args : {1349218593: ('0.042186095919701704',), 1349218589: ('0.042186095919701704',), 1349218582: ('0.042186095919701704',), 1349218556: ('0.042186095919701704',), 1349218552: ('0.042186095919701704',), 1349218548: ('0.042186095919701704',), 1349218543: ('0.042186095919701704',), 1349218539: ('0.042186095919701704',), 1349218538: ('0.042186095919701704',)} args : 1349218539 depend.output_id : 0 input_args_next_step : {1349218593: ('0.042186095919701704',), 1349218589: ('0.042186095919701704',), 1349218582: ('0.042186095919701704',), 1349218556: ('0.042186095919701704',), 1349218552: ('0.042186095919701704',), 1349218548: ('0.042186095919701704',), 1349218543: ('0.042186095919701704',), 1349218539: ('0.042186095919701704',), 1349218538: ()} output_args : {1349218593: ('0.042186095919701704',), 1349218589: ('0.042186095919701704',), 1349218582: ('0.042186095919701704',), 1349218556: ('0.042186095919701704',), 1349218552: ('0.042186095919701704',), 1349218548: ('0.042186095919701704',), 1349218543: ('0.042186095919701704',), 1349218539: ('0.042186095919701704',), 1349218538: ('0.042186095919701704',)} args : 1349218538 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 : {21938116: [{'papier': 21938122, 'Carton_gris': 21938123, 'cartonnette': 21938124, 'autre_refus': 21938125, 'metal': 21938126, 'Teint_Dans_La_Masse': 21938127, 'Carton_brun': 21938128, 'environnement': 21938129, 'mal_croppe': 21938130, 'flou': 21938131, 'plastique': 21938132, 'kraft': 21938133}]} input_args_next_step : {1349218593: ('0.042186095919701704',), 1349218589: ('0.042186095919701704',), 1349218582: ('0.042186095919701704',), 1349218556: ('0.042186095919701704',), 1349218552: ('0.042186095919701704',), 1349218548: ('0.042186095919701704',), 1349218543: ('0.042186095919701704',), 1349218539: ('0.042186095919701704',), 1349218538: ('0.042186095919701704',), 21938116: ()} output_args : {21938116: [{'papier': 21938122, 'Carton_gris': 21938123, 'cartonnette': 21938124, 'autre_refus': 21938125, 'metal': 21938126, 'Teint_Dans_La_Masse': 21938127, 'Carton_brun': 21938128, 'environnement': 21938129, 'mal_croppe': 21938130, 'flou': 21938131, 'plastique': 21938132, 'kraft': 21938133}]} args : 21938116 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 :10, first value : ('0.042186095919701704',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21938116) 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 (1349218593,1349218589,1349218582,1349218556,1349218552,1349218548,1349218543,1349218539,1349218538) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349218538 begin to download photo : 1349218543 begin to download photo : 1349218552 begin to download photo : 1349218582 begin to download photo : 1349218593 download finish for photo 1349218538 begin to download photo : 1349218539 download finish for photo 1349218582 begin to download photo : 1349218589 download finish for photo 1349218552 begin to download photo : 1349218556 download finish for photo 1349218543 begin to download photo : 1349218548 download finish for photo 1349218593 download finish for photo 1349218589 download finish for photo 1349218539 download finish for photo 1349218556 download finish for photo 1349218548 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P21938116_01-04-2025_07_43_01.pdf 21938124 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=21938124 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349217634: '1743485592_15802_1349217286_71a8b8efbad423a1253b5b0bc797ba4e_rle_crop_3742381014_0.png', 1349217635: '1743485592_15802_1349217286_71a8b8efbad423a1253b5b0bc797ba4e_rle_crop_3742381012_0.png', 1349217636: '1743485592_15802_1349217274_a3436ac946e004696e6c53d3f77b429a_rle_crop_3742381062_0.png', 1349218152: '1743485731_17413_1349217651_37b31661b84658a0b3d52b7432e6f08e_rle_crop_3742382343_0.png', 1349218153: '1743485731_17413_1349217588_87db6691f3bd30c5033a138537226236_rle_crop_3742382506_0.png', 1349218300: '1743485847_2348791_1349217918_b0ff386eef8a8889c046083bcd127526_rle_crop_3742383192_0.png', 1349218527: '1743485953_19800_1349218110_572eb980b206919f1808aced011964f9_rle_crop_3742385211_0.png', 1349218532: '1743485965_1997176_1349218199_b90afa5e32ade3b933607ee7431da564_rle_crop_3742385095_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/e95c95391d0107f421df7a82489a0c14_52546712.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/dfcf0a44812094a9cdfe32f4fd1cd787_42866053.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/da9e89db1688a3eccb1c7eb0bcca5a91_27466978.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/77e1a85bd30f4c170e917e52eda37648_93044237.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/777aa5cc0d8a1dbccf1a66e1463ed64e_88655205.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/c68eeefaab4db16b0f56d85507f451f7_55774607.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/78417cb01cfb8e64696ff5780a025c81_97998976.png change filename to text .imagette219381241743486181/ imagette219381241743486181/1743485953_19800_1349218110_572eb980b206919f1808aced011964f9_rle_crop_3742385211_0.png.png imagette219381241743486181/1743485731_17413_1349217651_37b31661b84658a0b3d52b7432e6f08e_rle_crop_3742382343_0.png.png imagette219381241743486181/1743485731_17413_1349217588_87db6691f3bd30c5033a138537226236_rle_crop_3742382506_0.png.png imagette219381241743486181/1743485592_15802_1349217274_a3436ac946e004696e6c53d3f77b429a_rle_crop_3742381062_0.png.png imagette219381241743486181/1743485592_15802_1349217286_71a8b8efbad423a1253b5b0bc797ba4e_rle_crop_3742381014_0.png.png imagette219381241743486181/1743485965_1997176_1349218199_b90afa5e32ade3b933607ee7431da564_rle_crop_3742385095_0.png.png imagette219381241743486181/1743485847_2348791_1349217918_b0ff386eef8a8889c046083bcd127526_rle_crop_3742383192_0.png.png imagette219381241743486181/1743485592_15802_1349217286_71a8b8efbad423a1253b5b0bc797ba4e_rle_crop_3742381012_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/e52eb5074fe63fc5470146a7cac6b185_31775946.png imagette219381241743486181 21938125 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=21938125 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349217630: '1743485592_15802_1349217322_1c899ce3633dd8acc05055b91d6d4378_rle_crop_3742380945_0.png', 1349217631: '1743485592_15802_1349217313_fdff33a1db6c0350d92282119f7b800b_rle_crop_3742380955_0.png', 1349218146: '1743485731_17413_1349217588_87db6691f3bd30c5033a138537226236_rle_crop_3742382511_0.png', 1349218147: '1743485731_17413_1349217584_9ca77823589bfa17a5535bc5d5c6afb1_rle_crop_3742382527_0.png', 1349218283: '1743485847_2348791_1349217962_da169be9ed3f888990edf865bd6dea72_rle_crop_3742383152_0.png', 1349218525: '1743485953_19800_1349218080_8dd4ebb3119757eb8bbda3cadeee7825_rle_crop_3742385218_0.png', 1349218526: '1743485965_1997176_1349218196_e02226a928f59ff917b365f262afc442_rle_crop_3742385164_0.png', 1349218627: '1743486087_2000579_1349218275_3a5fc7fcc66d9e45af82180fc1a63ce8_rle_crop_3742388545_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/7afc48881e25f1166203bc9192ef4b0c_63286286.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/7fc81b97af3a1c885b270763200c82c0_96860474.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/182cc13c0c26df9f72a3cff2e98e2b82_51893384.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/db47416890c10026de1294694fc59a68_6088092.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/2cf4b25de4bfeffbe828e672130d36f6_78888651.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/562638968928f16f625d41f9c11949bf_42695197.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/1b49e5fd0b7b53895a9cab2703c88bad_12444418.png change filename to text .imagette219381251743486182/ imagette219381251743486182/1743485731_17413_1349217588_87db6691f3bd30c5033a138537226236_rle_crop_3742382511_0.png.png imagette219381251743486182/1743485592_15802_1349217313_fdff33a1db6c0350d92282119f7b800b_rle_crop_3742380955_0.png.png imagette219381251743486182/1743485731_17413_1349217584_9ca77823589bfa17a5535bc5d5c6afb1_rle_crop_3742382527_0.png.png imagette219381251743486182/1743485847_2348791_1349217962_da169be9ed3f888990edf865bd6dea72_rle_crop_3742383152_0.png.png imagette219381251743486182/1743485953_19800_1349218080_8dd4ebb3119757eb8bbda3cadeee7825_rle_crop_3742385218_0.png.png imagette219381251743486182/1743486087_2000579_1349218275_3a5fc7fcc66d9e45af82180fc1a63ce8_rle_crop_3742388545_0.png.png imagette219381251743486182/1743485965_1997176_1349218196_e02226a928f59ff917b365f262afc442_rle_crop_3742385164_0.png.png imagette219381251743486182/1743485592_15802_1349217322_1c899ce3633dd8acc05055b91d6d4378_rle_crop_3742380945_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/b12b0c32dd1ca8a23e9622242d5499c5_75031900.png imagette219381251743486182 21938126 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=21938126 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349218535: '1743485965_1997176_1349218199_b90afa5e32ade3b933607ee7431da564_rle_crop_3742385090_0.png'} change filename to text .imagette219381261743486182/ imagette219381261743486182/1743485965_1997176_1349218199_b90afa5e32ade3b933607ee7431da564_rle_crop_3742385090_0.png.png imagette219381301743486182/ imagette219381311743486182/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/d9a5797d76fd25448071bb7b6a821e4a_97935709.png imagette219381261743486182 21938130 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=21938130 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219381301743486182 21938131 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=21938131 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219381311743486182 21938132 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=21938132 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349218534: '1743485965_1997176_1349218193_d05d2e4c154a30ec3096e109392c2631_rle_crop_3742385184_0.png', 1349218635: '1743486087_2000579_1349218373_d58be06fe613412ed6a2e202c7ac01eb_rle_crop_3742388454_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/1db4050a174dbd44b9059c6c4ba99f95_593641.png change filename to text .imagette219381321743486182/ imagette219381321743486182/1743486087_2000579_1349218373_d58be06fe613412ed6a2e202c7ac01eb_rle_crop_3742388454_0.png.png imagette219381321743486182/1743485965_1997176_1349218193_d05d2e4c154a30ec3096e109392c2631_rle_crop_3742385184_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/05588eef31169d48618d90c196b0575c_76975853.png imagette219381321743486182 21938133 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=21938133 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349218636: '1743486087_2000579_1349218275_3a5fc7fcc66d9e45af82180fc1a63ce8_rle_crop_3742388555_0.png'} change filename to text .imagette219381331743486182/ imagette219381331743486182/1743486087_2000579_1349218275_3a5fc7fcc66d9e45af82180fc1a63ce8_rle_crop_3742388555_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/fd7ea0f979f7ba480ea90f480ea0ae0b_79001608.png imagette219381331743486182 21938123 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=21938123 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349218032: '1743485711_17177_1349217640_f57dd6829913b0f3b4d2b781fcbef779_rle_crop_3742381951_0.png', 1349218033: '1743485711_17177_1349217640_f57dd6829913b0f3b4d2b781fcbef779_rle_crop_3742381948_0.png', 1349218150: '1743485731_17413_1349217651_37b31661b84658a0b3d52b7432e6f08e_rle_crop_3742382341_0.png', 1349218173: '1743485751_17660_1349217410_209ee9f225c1ed0913584d7bdcd330bd_rle_crop_3742382699_0.png', 1349218292: '1743485847_2348791_1349217962_da169be9ed3f888990edf865bd6dea72_rle_crop_3742383149_0.png', 1349218294: '1743485847_2348791_1349217890_5bd03de1c78c99b70190d906d0b5cf6a_rle_crop_3742383224_0.png', 1349218529: '1743485965_1997176_1349218193_d05d2e4c154a30ec3096e109392c2631_rle_crop_3742385182_0.png', 1349218615: '1743486073_21049_1349218419_981796c14409ab157bee760dfcef6939_rle_crop_3742388402_0.png', 1349218616: '1743486073_21049_1349218415_12374bee0b9263b3461305fa74837669_rle_crop_3742388419_0.png', 1349218629: '1743486087_2000579_1349218337_de08400e1da370e09ce4f74a6c15bd99_rle_crop_3742388479_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/45c489899f9a8d096b7cfefa5c99c772_49620880.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/7ade941dc5a10d94780a7dec29c92363_95251009.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/d14ef045224e08244d6146d79005554b_99117237.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/8d34971d893471afd930506647239f1e_21749411.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/1f16893f39e0e98dff0ffe5b7c347082_11246182.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/0addb83888e3ca754cb94ad710da51ea_3019973.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/de5c31043ecc0611584e770e249bd255_2427814.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/d85bf8fa4c761333dbad9a5bda888e57_62002052.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/93581a9bbf55eb076ff64e9936e8896f_39960146.png change filename to text .imagette219381231743486182/ imagette219381231743486182/1743485965_1997176_1349218193_d05d2e4c154a30ec3096e109392c2631_rle_crop_3742385182_0.png.png imagette219381231743486182/1743485847_2348791_1349217962_da169be9ed3f888990edf865bd6dea72_rle_crop_3742383149_0.png.png imagette219381231743486182/1743486073_21049_1349218419_981796c14409ab157bee760dfcef6939_rle_crop_3742388402_0.png.png imagette219381231743486182/1743485751_17660_1349217410_209ee9f225c1ed0913584d7bdcd330bd_rle_crop_3742382699_0.png.png imagette219381231743486182/1743485711_17177_1349217640_f57dd6829913b0f3b4d2b781fcbef779_rle_crop_3742381951_0.png.png imagette219381231743486182/1743485731_17413_1349217651_37b31661b84658a0b3d52b7432e6f08e_rle_crop_3742382341_0.png.png imagette219381231743486182/1743485847_2348791_1349217890_5bd03de1c78c99b70190d906d0b5cf6a_rle_crop_3742383224_0.png.png imagette219381231743486182/1743486087_2000579_1349218337_de08400e1da370e09ce4f74a6c15bd99_rle_crop_3742388479_0.png.png imagette219381231743486182/1743486073_21049_1349218415_12374bee0b9263b3461305fa74837669_rle_crop_3742388419_0.png.png imagette219381231743486182/1743485711_17177_1349217640_f57dd6829913b0f3b4d2b781fcbef779_rle_crop_3742381948_0.png.png wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/2588915fd939fc8e38ae0638918f2647_81185516.png imagette219381231743486182 21938127 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=21938127 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349217626: '1743485592_15802_1349217322_1c899ce3633dd8acc05055b91d6d4378_rle_crop_3742380949_0.png', 1349217627: '1743485592_15802_1349217313_fdff33a1db6c0350d92282119f7b800b_rle_crop_3742380961_0.png', 1349217628: '1743485592_15802_1349217286_71a8b8efbad423a1253b5b0bc797ba4e_rle_crop_3742381021_0.png', 1349218143: '1743485731_17413_1349217591_290f326ab537e6378049effb40b7db53_rle_crop_3742382498_0.png', 1349218169: '1743485751_17660_1349217594_7e63128ed2fb14504e750f9274aed9a9_rle_crop_3742382659_0.png', 1349218170: '1743485751_17660_1349217594_7e63128ed2fb14504e750f9274aed9a9_rle_crop_3742382660_0.png', 1349218171: '1743485751_17660_1349217439_a5595223695f8aba970c1855f2cd1d37_rle_crop_3742382683_0.png', 1349218276: '1743485847_2348791_1349217923_bfad6b839516562fcb25cf56bf0f2403_rle_crop_3742383167_0.png', 1349218523: '1743485953_19800_1349218157_a6801d7bae49e187297375542c29fe8b_rle_crop_3742385176_0.png', 1349218524: '1743485965_1997176_1349218196_e02226a928f59ff917b365f262afc442_rle_crop_3742385166_0.png', 1349218626: '1743486087_2000579_1349218275_3a5fc7fcc66d9e45af82180fc1a63ce8_rle_crop_3742388552_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/80b76bacd67b4fcb47baf8bd9e0aab68_89240167.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/d109df7457c9b351732f90795a42a66d_91640149.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/63af35520db855ca2699f9b357553624_74889633.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/90557a11a1f3656375e4b51d4b0f1460_15571330.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/5c2bf8f6ae10a77e498b2bb036bd316f_56212414.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/6f772c966c20d36bc14058ea87e71cd8_62397256.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/116a9ca94dc0d7edfad420088a445bd6_73604339.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/fb52952fd8bd319f9041dda4ddd42b8c_42055046.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/b4207e3bcd73abda34e7aefff63fd767_42532369.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/2e23a879294182469bc70968204ae2dc_92258139.png change filename to text .imagette219381271743486183/ imagette219381271743486183/1743485592_15802_1349217313_fdff33a1db6c0350d92282119f7b800b_rle_crop_3742380961_0.png.png imagette219381271743486183/1743485751_17660_1349217439_a5595223695f8aba970c1855f2cd1d37_rle_crop_3742382683_0.png.png imagette219381271743486183/1743485592_15802_1349217322_1c899ce3633dd8acc05055b91d6d4378_rle_crop_3742380949_0.png.png imagette219381271743486183/1743485953_19800_1349218157_a6801d7bae49e187297375542c29fe8b_rle_crop_3742385176_0.png.png imagette219381271743486183/1743485965_1997176_1349218196_e02226a928f59ff917b365f262afc442_rle_crop_3742385166_0.png.png imagette219381271743486183/1743485847_2348791_1349217923_bfad6b839516562fcb25cf56bf0f2403_rle_crop_3742383167_0.png.png imagette219381271743486183/1743485731_17413_1349217591_290f326ab537e6378049effb40b7db53_rle_crop_3742382498_0.png.png imagette219381271743486183/1743485751_17660_1349217594_7e63128ed2fb14504e750f9274aed9a9_rle_crop_3742382659_0.png.png imagette219381271743486183/1743485751_17660_1349217594_7e63128ed2fb14504e750f9274aed9a9_rle_crop_3742382660_0.png.png imagette219381271743486183/1743485592_15802_1349217286_71a8b8efbad423a1253b5b0bc797ba4e_rle_crop_3742381021_0.png.png imagette219381271743486183/1743486087_2000579_1349218275_3a5fc7fcc66d9e45af82180fc1a63ce8_rle_crop_3742388552_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/6896d3522a317a3bd8d3163f386120c5_80582508.png imagette219381271743486183 21938128 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=21938128 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349218172: '1743485731_17413_1349217584_9ca77823589bfa17a5535bc5d5c6afb1_rle_crop_3742382531_0.png', 1349218533: '1743485965_1997176_1349218193_d05d2e4c154a30ec3096e109392c2631_rle_crop_3742385187_0.png', 1349218619: '1743486091_21299_1349218378_8914b5d82fd3630b45f9993faa29c282_rle_crop_3742388443_0.png', 1349218632: '1743486087_2000579_1349218309_e8480436262ed490300495270bd98f6c_rle_crop_3742388505_0.png', 1349218634: '1743486087_2000579_1349218275_3a5fc7fcc66d9e45af82180fc1a63ce8_rle_crop_3742388554_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/9dc8b9ca7d416e4a0a75fa4d20d87cfc_89863439.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/a9f33b47f3f794826858a31e232980b7_22895529.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/76d3829a8f73f62beac95f7d701b8e23_72400711.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/d6deea8a08ae87f0cfdd89b6ab0ca071_8956985.png change filename to text .imagette219381281743486184/ imagette219381281743486184/1743485731_17413_1349217584_9ca77823589bfa17a5535bc5d5c6afb1_rle_crop_3742382531_0.png.png imagette219381281743486184/1743486087_2000579_1349218275_3a5fc7fcc66d9e45af82180fc1a63ce8_rle_crop_3742388554_0.png.png imagette219381281743486184/1743486087_2000579_1349218309_e8480436262ed490300495270bd98f6c_rle_crop_3742388505_0.png.png imagette219381281743486184/1743485965_1997176_1349218193_d05d2e4c154a30ec3096e109392c2631_rle_crop_3742385187_0.png.png imagette219381281743486184/1743486091_21299_1349218378_8914b5d82fd3630b45f9993faa29c282_rle_crop_3742388443_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/c7b65edec3a3ed66deb12fa2763b7570_87482956.png imagette219381281743486184 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21938116 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21938134,21938135,21938136,21938137,21938138,21938139,21938140,21938141,21938142,21938143,21938144,21938145?tags=papier,Carton_gris,cartonnette,autre_refus,metal,Teint_Dans_La_Masse,Carton_brun,environnement,mal_croppe,flou,plastique,kraft your option no_mail is active, we will not send the real mail to your client args[1349218593] : ('0.042186095919701704',) no score found for photo 1349218593 We are sending mail with results at report@fotonower.com args[1349218589] : ('0.042186095919701704',) no score found for photo 1349218589 We are sending mail with results at report@fotonower.com args[1349218582] : ('0.042186095919701704',) no score found for photo 1349218582 We are sending mail with results at report@fotonower.com args[1349218556] : ('0.042186095919701704',) no score found for photo 1349218556 We are sending mail with results at report@fotonower.com args[1349218552] : ('0.042186095919701704',) no score found for photo 1349218552 We are sending mail with results at report@fotonower.com args[1349218548] : ('0.042186095919701704',) no score found for photo 1349218548 We are sending mail with results at report@fotonower.com args[1349218543] : ('0.042186095919701704',) no score found for photo 1349218543 We are sending mail with results at report@fotonower.com args[1349218539] : ('0.042186095919701704',) no score found for photo 1349218539 We are sending mail with results at report@fotonower.com args[1349218538] : ('0.042186095919701704',) no score found for photo 1349218538 We are sending mail with results at report@fotonower.com refus_total : 0.042186095919701704 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=21938116 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_P21938116_01-04-2025_07_43_01.pdf results_Auto_P21938116_01-04-2025_07_43_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21938116_01-04-2025_07_43_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','21938116','results_Auto_P21938116_01-04-2025_07_43_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21938116_01-04-2025_07_43_01.pdf','pdf','','0.2','0.042186095919701704') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21938116]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349218593, 1349218589, 1349218582, 1349218556, 1349218552, 1349218548, 1349218543, 1349218539, 1349218538] map_info['map_portfolio_photo'] : {21938116: [1349218593, 1349218589, 1349218582, 1349218556, 1349218552, 1349218548, 1349218543, 1349218539, 1349218538, 1349218429, 1349218425, 1349218422, 1349218419, 1349218415, 1349218378, 1349218373, 1349218337, 1349218309, 1349218275, 1349218207, 1349218199, 1349218196, 1349218193, 1349218162, 1349218157, 1349218141, 1349218110, 1349218080, 1349217974, 1349217962, 1349217923, 1349217918, 1349217890, 1349217651, 1349217640, 1349217632, 1349217594, 1349217591, 1349217588, 1349217584, 1349217579, 1349217458, 1349217439, 1349217410, 1349217383, 1349217345, 1349217322, 1349217313, 1349217286, 1349217274]} final : False mtd_id 4302 list_pids : [1349218593, 1349218589, 1349218582, 1349218556, 1349218552, 1349218548, 1349218543, 1349218539, 1349218538] 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, '2711967') ('4302', '21938116', '1349218593', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218589', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218582', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218556', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218552', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218548', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218543', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218539', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218538', None, None, None, None, None, '2711967') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '21938116', '1349218593', None, None, None, None, None, '2711967'), ('4302', '21938116', '1349218589', None, None, None, None, None, '2711967'), ('4302', '21938116', '1349218582', None, None, None, None, None, '2711967'), ('4302', '21938116', '1349218556', None, None, None, None, None, '2711967'), ('4302', '21938116', '1349218552', None, None, None, None, None, '2711967'), ('4302', '21938116', '1349218548', None, None, None, None, None, '2711967'), ('4302', '21938116', '1349218543', None, None, None, None, None, '2711967'), ('4302', '21938116', '1349218539', None, None, None, None, None, '2711967'), ('4302', '21938116', '1349218538', None, None, None, None, None, '2711967')] time used for this insertion : 0.012234687805175781 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.1282126903533936 time spend to save output : 0.012549877166748047 total time spend for step 4 : 4.140762567520142 step5:split_time_score Tue Apr 1 07:43:05 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 : ['21938116'] 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 : [('21938116',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21938116) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349218593: {'path': 'temp/1743486181_3592975_1349218593_aa74bf301f70285c8e2dacf21a1e59df.jpg', 'extension': 'jpg'}, 1349218582: {'path': 'temp/1743486181_3592975_1349218582_06b01dd40b97eff179e183910449103b.jpg', 'extension': 'jpg'}, 1349218589: {'path': 'temp/1743486181_3592975_1349218589_94f551f20d7d4e26683ac74c841fbe2c.jpg', 'extension': 'jpg'}, 1349218538: {'path': 'temp/1743486181_3592975_1349218538_1f850c5febe883e01238ce9cd8f71739.jpg', 'extension': 'jpg'}, 1349218539: {'path': 'temp/1743486181_3592975_1349218539_ae0784d1ce5092ff84bf4fa2a3eac020.jpg', 'extension': 'jpg'}, 1349218552: {'path': 'temp/1743486181_3592975_1349218552_8af7717f64523ffea703f3d36df834e1.jpg', 'extension': 'jpg'}, 1349218556: {'path': 'temp/1743486181_3592975_1349218556_546340ee2f3c00fb039bc0c8d659c653.jpg', 'extension': 'jpg'}, 1349218543: {'path': 'temp/1743486181_3592975_1349218543_953c36e57c3ca89e60649f209b587239.jpg', 'extension': 'jpg'}, 1349218548: {'path': 'temp/1743486181_3592975_1349218548_a45edee4ef2c6b1dcf287230444ee7a6.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 = 21938116; (('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 = 21938116 group by h (('07', 50),) 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=21938116 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 (21938116) 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 (21938116) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 01042025 21938116 Nombre de photos uploadées : 50 / 23040 (0%) 01042025 21938116 Nombre de photos taguées (types de déchets): 0 / 50 (0%) 01042025 21938116 Nombre de photos taguées (volume) : 0 / 50 (0%) [{'photo_id': 1349217322, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/1c899ce3633dd8acc05055b91d6d4378.jpg', 'username': None, 'uploaded_at': 1743485468, 'text': 'image_01042025_07_30_04_10147.jpg'}, {'photo_id': 1349217313, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/fdff33a1db6c0350d92282119f7b800b.jpg', 'username': None, 'uploaded_at': 1743485468, 'text': 'image_01042025_07_30_14_10135.jpg'}, {'photo_id': 1349217286, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/71a8b8efbad423a1253b5b0bc797ba4e.jpg', 'username': None, 'uploaded_at': 1743485468, 'text': 'image_01042025_07_30_24_10134.jpg'}, {'photo_id': 1349217274, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/1/a3436ac946e004696e6c53d3f77b429a.jpg', 'username': None, 'uploaded_at': 1743485468, 'text': 'image_01042025_07_30_44_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 3.5762786865234375e-06 elapsed_time : order_list_meta_photo_and_scores 1.1682510375976562e-05 ?????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0026307106018066406 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21938116, '2025-04-01' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1705632,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.025138378143310547 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= 1705632 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1705632, 'dashboard_run_id': 1714024, 'mtr_portfolio_id': 21936299, 'dashboard_result_id': 9780785, '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_P21936299_01-04-2025_07_03_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21936302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21936303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21936304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21936305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21936306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21936307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21936308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21936309, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21936310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21936311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21936312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21936313, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1714024, 'mtr_portfolio_id': 21936767, 'dashboard_result_id': 9780786, '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_P21936767_01-04-2025_07_23_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21936831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21936832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21936833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21936834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21936835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21936836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21936837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21936838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21936839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21936840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21936841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21936842, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1714024, 'mtr_portfolio_id': 21937221, 'dashboard_result_id': 9780787, '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_P21937221_01-04-2025_07_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21937228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21937229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21937230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21937231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21937232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21937233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21937234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21937235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21937236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21937237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21937238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21937239, 'pht': 3726}}"}, {'dashboat_entry_day': 1705632, 'dashboard_run_id': 1714024, 'mtr_portfolio_id': 21938116, 'dashboard_result_id': 9780788, '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_P21938116_01-04-2025_07_41_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21938122, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21938123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21938124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21938125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21938126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21938127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21938128, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21938129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21938130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21938131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21938132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21938133, '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 = 21936299 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': 2711772, 'mtr_portfolio_id': 21936299, 'created_at': datetime.datetime(2025, 4, 1, 7, 3, 1), 'result': '0.06826110648920385', 'result_long': None, 'result_double': None}] Qualite : 0.06826110648920385 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21936299 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21936299_01-04-2025_07_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21936299 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_P21936299_01-04-2025_07_03_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21936302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21936303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21936304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21936305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21936306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21936307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21936308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21936309, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21936310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21936311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21936312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21936313, 'pht': 3726}}" where mtr_portfolio_id = 21936299 and dashboard_run_id = 1714024 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`=21936299 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9780785, 0.06826110648920385, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21936299_01-04-2025_07_03_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21936302, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21936303, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21936304, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21936305, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21936306, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21936307, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21936308, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21936309, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21936310, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21936311, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21936312, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21936313, '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 = 21936767 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': 2711821, 'mtr_portfolio_id': 21936767, 'created_at': datetime.datetime(2025, 4, 1, 7, 23), 'result': '0.059080308654420946', 'result_long': None, 'result_double': None}] Qualite : 0.059080308654420946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21936767 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21936767_01-04-2025_07_23_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21936767 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_P21936767_01-04-2025_07_23_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21936831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21936832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21936833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21936834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21936835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21936836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21936837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21936838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21936839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21936840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21936841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21936842, 'pht': 3726}}" where mtr_portfolio_id = 21936767 and dashboard_run_id = 1714024 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`=21936767 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9780786, 0.059080308654420946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21936767_01-04-2025_07_23_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21936831, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21936832, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21936833, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21936834, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21936835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21936836, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21936837, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21936838, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21936839, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21936840, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21936841, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21936842, '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 = 21937221 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': 2711895, 'mtr_portfolio_id': 21937221, 'created_at': datetime.datetime(2025, 4, 1, 7, 33, 1), 'result': '0.05532164991775658', 'result_long': None, 'result_double': None}] Qualite : 0.05532164991775658 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21937221 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21937221_01-04-2025_07_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21937221 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_P21937221_01-04-2025_07_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21937228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21937229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21937230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21937231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21937232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21937233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21937234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21937235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21937236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21937237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21937238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21937239, 'pht': 3726}}" where mtr_portfolio_id = 21937221 and dashboard_run_id = 1714024 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`=21937221 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9780787, 0.05532164991775658, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21937221_01-04-2025_07_33_01.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 21937228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21937229, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21937230, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21937231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21937232, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21937233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21937234, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21937235, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21937236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21937237, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21937238, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21937239, '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 = 21938116 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': 2711967, 'mtr_portfolio_id': 21938116, 'created_at': datetime.datetime(2025, 4, 1, 7, 43, 1), 'result': '0.042186095919701704', 'result_long': None, 'result_double': None}] Qualite : 0.042186095919701704 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21938116 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21938116_01-04-2025_07_43_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21938116 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_P21938116_01-04-2025_07_43_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21938122, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21938123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21938124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21938125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21938126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21938127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21938128, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21938129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21938130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21938131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21938132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21938133, 'pht': 3726}}" where mtr_portfolio_id = 21938116 and dashboard_run_id = 1714024 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`=21938116 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9780788, 0.042186095919701704, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21938116_01-04-2025_07_43_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 21938122, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21938123, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21938124, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21938125, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21938126, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21938127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21938128, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21938129, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21938130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21938131, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21938132, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21938133, '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 (21936299,21936767,21937221,21938116) result : ((1349211364,), (1349211376,), (1349211391,), (1349211392,), (1349211465,), (1349211467,), (1349211469,), (1349211494,), (1349211495,), (1349211496,), (1349211516,), (1349211517,), (1349211518,), (1349211519,), (1349211616,), (1349211621,), (1349211622,), (1349211643,), (1349211645,), (1349211646,), (1349211648,), (1349211649,), (1349211778,), (1349211779,), (1349211783,), (1349211889,), (1349211891,), (1349211893,), (1349211894,), (1349211895,), (1349211896,), (1349211940,), (1349211949,), (1349211974,), (1349211976,), (1349211978,), (1349211980,), (1349211983,), (1349212004,), (1349212006,), (1349212008,), (1349212010,), (1349212126,), (1349212127,), (1349212129,), (1349212131,), (1349212133,), (1349212135,), (1349212163,), (1349212171,), (1349212173,), (1349212391,), (1349212419,), (1349212450,), (1349212475,), (1349212504,), (1349212530,), (1349212654,), (1349212695,), (1349212712,), (1349212721,), (1349212778,), (1349213172,), (1349212933,), (1349212984,), (1349213037,), (1349213409,), (1349213442,), (1349213480,), (1349213511,), (1349213543,), (1349213970,), (1349213994,), (1349214022,), (1349214064,), (1349214120,), (1349214484,), (1349214537,), (1349214595,), (1349215027,), (1349215122,), (1349215151,), (1349215172,), (1349215180,), (1349215249,), (1349215254,), (1349215319,), (1349215338,), (1349215362,), (1349215395,), (1349215486,), (1349215516,), (1349215528,), (1349215531,), (1349215636,), (1349215637,), (1349215641,), (1349215645,), (1349215648,), (1349215658,), (1349215806,), (1349215809,), (1349215812,), (1349215817,), (1349215888,), (1349215915,), (1349215926,), (1349215930,), (1349215933,), (1349215938,), (1349215942,), (1349215943,), (1349215958,), (1349215962,), (1349215965,), (1349215968,), (1349215998,), (1349216004,), (1349216008,), (1349216017,), (1349216040,), (1349216054,), (1349216075,), (1349216078,), (1349216081,), (1349216095,), (1349216107,), (1349216130,), (1349216132,), (1349216135,), (1349216145,), (1349216150,), (1349216151,), (1349215861,), (1349215867,), (1349215872,), (1349215877,), (1349215884,), (1349215896,), (1349215898,), (1349215901,), (1349215905,), (1349215909,), (1349215950,), (1349215955,), (1349215975,), (1349215977,), (1349215983,), (1349215987,), (1349215990,), (1349215992,), (1349216066,), (1349216067,), (1349216068,), (1349216173,), (1349216177,), (1349216193,), (1349216240,), (1349216247,), (1349216262,), (1349216436,), (1349216446,), (1349216456,), (1349216484,), (1349216517,), (1349216520,), (1349216662,), (1349216673,), (1349216718,), (1349216728,), (1349216737,), (1349216818,), (1349216820,), (1349216830,), (1349216848,), (1349216854,), (1349216888,), (1349216892,), (1349216922,), (1349217000,), (1349217217,), (1349217225,), (1349217239,), (1349217328,), (1349217274,), (1349217286,), (1349217313,), (1349217322,), (1349217345,), (1349217383,), (1349217410,), (1349217439,), (1349217458,), (1349217579,), (1349217584,), (1349217588,), (1349217591,), (1349217594,), (1349217632,), (1349217640,), (1349217651,), (1349217890,), (1349217918,), (1349217923,), (1349217962,), (1349217974,), (1349218080,), (1349218110,), (1349218141,), (1349218157,), (1349218162,), (1349218193,), (1349218196,), (1349218199,), (1349218207,), (1349218275,), (1349218309,), (1349218337,), (1349218373,), (1349218378,), (1349218415,), (1349218419,), (1349218422,), (1349218425,), (1349218429,), (1349218538,), (1349218539,), (1349218543,), (1349218548,), (1349218552,), (1349218556,), (1349218582,), (1349218589,), (1349218593,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'01042025': {'nb_upload': 50, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21938116]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349218593, 1349218589, 1349218582, 1349218556, 1349218552, 1349218548, 1349218543, 1349218539, 1349218538] map_info['map_portfolio_photo'] : {21938116: [1349218593, 1349218589, 1349218582, 1349218556, 1349218552, 1349218548, 1349218543, 1349218539, 1349218538, 1349218429, 1349218425, 1349218422, 1349218419, 1349218415, 1349218378, 1349218373, 1349218337, 1349218309, 1349218275, 1349218207, 1349218199, 1349218196, 1349218193, 1349218162, 1349218157, 1349218141, 1349218110, 1349218080, 1349217974, 1349217962, 1349217923, 1349217918, 1349217890, 1349217651, 1349217640, 1349217632, 1349217594, 1349217591, 1349217588, 1349217584, 1349217579, 1349217458, 1349217439, 1349217410, 1349217383, 1349217345, 1349217322, 1349217313, 1349217286, 1349217274]} final : True mtd_id 4302 list_pids : [1349218593, 1349218589, 1349218582, 1349218556, 1349218552, 1349218548, 1349218543, 1349218539, 1349218538] Looping around the photos to save general results len do output : 1 /21938116Didn'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, '2711967') ('4302', '21938116', '1349218593', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218589', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218582', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218556', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218552', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218548', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218543', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218539', None, None, None, None, None, '2711967') ('4302', None, None, None, None, None, None, None, '2711967') ('4302', '21938116', '1349218538', None, None, None, None, None, '2711967') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '21938116', 'None', None, None, None, None, '2711967'), ('4302', '21938116', '1349218593', None, None, None, None, None, '2711967'), ('4302', '21938116', '1349218589', None, None, None, None, None, '2711967'), ('4302', '21938116', '1349218582', None, None, None, None, None, '2711967'), ('4302', '21938116', '1349218556', None, None, None, None, None, '2711967'), ('4302', '21938116', '1349218552', None, None, None, None, None, '2711967'), ('4302', '21938116', '1349218548', None, None, None, None, None, '2711967'), ('4302', '21938116', '1349218543', None, None, None, None, None, '2711967'), ('4302', '21938116', '1349218539', None, None, None, None, None, '2711967'), ('4302', '21938116', '1349218538', None, None, None, None, None, '2711967')] time used for this insertion : 0.01683807373046875 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3569025993347168 time spend to save output : 0.017134666442871094 total time spend for step 5 : 0.3740372657775879 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 (2711967) 2.32user 2.71system 0:10.98elapsed 45%CPU (0avgtext+0avgdata 160088maxresident)k 14296inputs+11080outputs (139major+75010minor)pagefaults 0swaps