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 : 1367591 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 (2729611) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2729611) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 22111576 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2729611'] with mtr_portfolio_ids : ['22111576'] and first list_photo_ids : [] new path : /proc/1367591/ Name: python3 Umask: 0002 State: R (running) Tgid: 1367591 Ngid: 0 Pid: 1367591 PPid: 1367590 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1367591 NSpid: 1367591 NSpgid: 1365000 NSsid: 1365000 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98876 kB VmRSS: 98876 kB RssAnon: 59800 kB RssFile: 39076 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: 58 nonvoluntary_ctxt_switches: 96 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1367591', 'Ngid': '0', 'Pid': '1367591', 'PPid': '1367590', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1367591', 'NSpid': '1367591', 'NSpgid': '1365000', 'NSsid': '1365000', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98876 kB', 'VmRSS': '98876 kB', 'RssAnon': '59800 kB', 'RssFile': '39076 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': '000000 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.4349522590637207 time spend to save output : 0.014885902404785156 total time spend for step 1 : 0.44983816146850586 step2:final Mon Apr 7 16:56:56 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 (22111576) 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 22111576 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1350354812,1350354807,1350354803,1350354800,1350355023,1350355018,1350355015,1350354999,1350355225,1350355219,1350355216,1350355212,1350355208,1350355581,1350355541,1350355497,1350355462,1350355426,1350355885,1350355881,1350355865,1350355983,1350355973,1350355963,1350356290,1350356281,1350356267,1350356257,1350356250,1350356404,1350356360,1350356343,1350356337,1350357060,1350357057,1350357040,1350357025,1350356668,1350356995,1350357337,1350357331,1350357326,1350357323,1350357295,1350357279,1350357400,1350357397,1350357379); 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([22111576]) Inside saveOutput : final : False verbose : True original output for save of step final : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ('0.029611345148068832',), 1350357331: ('0.029611345148068832',), 1350357326: ('0.029611345148068832',), 1350357323: ('0.029611345148068832',), 1350357295: ('0.029611345148068832',), 1350357279: ('0.029611345148068832',), 1350357060: ('0.029611345148068832',), 1350357057: ('0.029611345148068832',), 1350357040: ('0.029611345148068832',), 1350357025: ('0.029611345148068832',), 1350356995: ('0.029611345148068832',)} new output for save of step final : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ('0.029611345148068832',), 1350357331: ('0.029611345148068832',), 1350357326: ('0.029611345148068832',), 1350357323: ('0.029611345148068832',), 1350357295: ('0.029611345148068832',), 1350357279: ('0.029611345148068832',), 1350357060: ('0.029611345148068832',), 1350357057: ('0.029611345148068832',), 1350357040: ('0.029611345148068832',), 1350357025: ('0.029611345148068832',), 1350356995: ('0.029611345148068832',)} [1350357400, 1350357397, 1350357379, 1350357337, 1350357331, 1350357326, 1350357323, 1350357295, 1350357279, 1350357060, 1350357057, 1350357040, 1350357025, 1350356995] map_info['map_portfolio_photo'] : {22111576: [1350357400, 1350357397, 1350357379, 1350357337, 1350357331, 1350357326, 1350357323, 1350357295, 1350357279, 1350357060, 1350357057, 1350357040, 1350357025, 1350356995, 1350356668, 1350356404, 1350356360, 1350356343, 1350356337, 1350356290, 1350356281, 1350356267, 1350356257, 1350356250, 1350355983, 1350355973, 1350355963, 1350355885, 1350355881, 1350355865, 1350355581, 1350355541, 1350355497, 1350355462, 1350355426, 1350355225, 1350355219, 1350355216, 1350355212, 1350355208, 1350355023, 1350355018, 1350355015, 1350354999, 1350354812, 1350354807, 1350354803, 1350354800]} final : False mtd_id 4302 list_pids : [1350357400, 1350357397, 1350357379, 1350357337, 1350357331, 1350357326, 1350357323, 1350357295, 1350357279, 1350357060, 1350357057, 1350357040, 1350357025, 1350356995] Looping around the photos to save general results len do output : 14 /1350357400.Didn't retrieve data . /1350357397.Didn't retrieve data . /1350357379.Didn't retrieve data . /1350357337.Didn't retrieve data . /1350357331.Didn't retrieve data . /1350357326.Didn't retrieve data . /1350357323.Didn't retrieve data . /1350357295.Didn't retrieve data . /1350357279.Didn't retrieve data . /1350357060.Didn't retrieve data . /1350357057.Didn't retrieve data . /1350357040.Didn't retrieve data . /1350357025.Didn't retrieve data . /1350356995.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, '2729611') ('4302', '22111576', '1350357400', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357397', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357379', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357337', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357331', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357326', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357323', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357295', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357279', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357060', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357057', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357040', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357025', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350356995', None, None, None, None, None, '2729611') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 42 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', '22111576', '1350357400', '0.029611345148068832', None, None, None, None, '2729611'), ('4302', '22111576', '1350357397', '0.029611345148068832', None, None, None, None, '2729611'), ('4302', '22111576', '1350357379', '0.029611345148068832', None, None, None, None, '2729611'), ('4302', '22111576', '1350357337', '0.029611345148068832', None, None, None, None, '2729611'), ('4302', '22111576', '1350357331', '0.029611345148068832', None, None, None, None, '2729611'), ('4302', '22111576', '1350357326', '0.029611345148068832', None, None, None, None, '2729611'), ('4302', '22111576', '1350357323', '0.029611345148068832', None, None, None, None, '2729611'), ('4302', '22111576', '1350357295', '0.029611345148068832', None, None, None, None, '2729611'), ('4302', '22111576', '1350357279', '0.029611345148068832', None, None, None, None, '2729611'), ('4302', '22111576', '1350357060', '0.029611345148068832', None, None, None, None, '2729611'), ('4302', '22111576', '1350357057', '0.029611345148068832', None, None, None, None, '2729611'), ('4302', '22111576', '1350357040', '0.029611345148068832', None, None, None, None, '2729611'), ('4302', '22111576', '1350357025', '0.029611345148068832', None, None, None, None, '2729611'), ('4302', '22111576', '1350356995', '0.029611345148068832', None, None, None, None, '2729611')] time used for this insertion : 0.013443470001220703 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.638280868530273 time spend to save output : 0.014156103134155273 total time spend for step 2 : 4.652436971664429 step3:velours_tree Mon Apr 7 16:57: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 : {22111576: [{'plastique': 22111598, 'Carton_brun': 22111599, 'flou': 22111600, 'papier': 22111601, 'kraft': 22111602, 'autre_refus': 22111603, 'environnement': 22111604, 'metal': 22111605, 'cartonnette': 22111606, 'Teint_Dans_La_Masse': 22111607, 'Carton_gris': 22111608, 'mal_croppe': 22111609}]} input_args_next_step : {22111576: ()} output_args : {22111576: [{'plastique': 22111598, 'Carton_brun': 22111599, 'flou': 22111600, 'papier': 22111601, 'kraft': 22111602, 'autre_refus': 22111603, 'environnement': 22111604, 'metal': 22111605, 'cartonnette': 22111606, 'Teint_Dans_La_Masse': 22111607, 'Carton_gris': 22111608, 'mal_croppe': 22111609}]} args : 22111576 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 : ({'plastique': 22111598, 'Carton_brun': 22111599, 'flou': 22111600, 'papier': 22111601, 'kraft': 22111602, 'autre_refus': 22111603, 'environnement': 22111604, 'metal': 22111605, 'cartonnette': 22111606, 'Teint_Dans_La_Masse': 22111607, 'Carton_gris': 22111608, 'mal_croppe': 22111609},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22111576) 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([22111576]) 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.3106076717376709 time spend to save output : 4.9114227294921875e-05 total time spend for step 3 : 0.3106567859649658 step4:send_mail_cod Mon Apr 7 16:57: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 : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ('0.029611345148068832',), 1350357331: ('0.029611345148068832',), 1350357326: ('0.029611345148068832',), 1350357323: ('0.029611345148068832',), 1350357295: ('0.029611345148068832',), 1350357279: ('0.029611345148068832',), 1350357060: ('0.029611345148068832',), 1350357057: ('0.029611345148068832',), 1350357040: ('0.029611345148068832',), 1350357025: ('0.029611345148068832',), 1350356995: ('0.029611345148068832',)} input_args_next_step : {1350357400: ()} output_args : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ('0.029611345148068832',), 1350357331: ('0.029611345148068832',), 1350357326: ('0.029611345148068832',), 1350357323: ('0.029611345148068832',), 1350357295: ('0.029611345148068832',), 1350357279: ('0.029611345148068832',), 1350357060: ('0.029611345148068832',), 1350357057: ('0.029611345148068832',), 1350357040: ('0.029611345148068832',), 1350357025: ('0.029611345148068832',), 1350356995: ('0.029611345148068832',)} args : 1350357400 depend.output_id : 0 input_args_next_step : {1350357400: ('0.029611345148068832',), 1350357397: ()} output_args : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ('0.029611345148068832',), 1350357331: ('0.029611345148068832',), 1350357326: ('0.029611345148068832',), 1350357323: ('0.029611345148068832',), 1350357295: ('0.029611345148068832',), 1350357279: ('0.029611345148068832',), 1350357060: ('0.029611345148068832',), 1350357057: ('0.029611345148068832',), 1350357040: ('0.029611345148068832',), 1350357025: ('0.029611345148068832',), 1350356995: ('0.029611345148068832',)} args : 1350357397 depend.output_id : 0 input_args_next_step : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ()} output_args : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ('0.029611345148068832',), 1350357331: ('0.029611345148068832',), 1350357326: ('0.029611345148068832',), 1350357323: ('0.029611345148068832',), 1350357295: ('0.029611345148068832',), 1350357279: ('0.029611345148068832',), 1350357060: ('0.029611345148068832',), 1350357057: ('0.029611345148068832',), 1350357040: ('0.029611345148068832',), 1350357025: ('0.029611345148068832',), 1350356995: ('0.029611345148068832',)} args : 1350357379 depend.output_id : 0 input_args_next_step : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ()} output_args : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ('0.029611345148068832',), 1350357331: ('0.029611345148068832',), 1350357326: ('0.029611345148068832',), 1350357323: ('0.029611345148068832',), 1350357295: ('0.029611345148068832',), 1350357279: ('0.029611345148068832',), 1350357060: ('0.029611345148068832',), 1350357057: ('0.029611345148068832',), 1350357040: ('0.029611345148068832',), 1350357025: ('0.029611345148068832',), 1350356995: ('0.029611345148068832',)} args : 1350357337 depend.output_id : 0 input_args_next_step : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ('0.029611345148068832',), 1350357331: ()} output_args : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ('0.029611345148068832',), 1350357331: ('0.029611345148068832',), 1350357326: ('0.029611345148068832',), 1350357323: ('0.029611345148068832',), 1350357295: ('0.029611345148068832',), 1350357279: ('0.029611345148068832',), 1350357060: ('0.029611345148068832',), 1350357057: ('0.029611345148068832',), 1350357040: ('0.029611345148068832',), 1350357025: ('0.029611345148068832',), 1350356995: ('0.029611345148068832',)} args : 1350357331 depend.output_id : 0 input_args_next_step : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ('0.029611345148068832',), 1350357331: ('0.029611345148068832',), 1350357326: ()} output_args : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ('0.029611345148068832',), 1350357331: ('0.029611345148068832',), 1350357326: ('0.029611345148068832',), 1350357323: ('0.029611345148068832',), 1350357295: ('0.029611345148068832',), 1350357279: ('0.029611345148068832',), 1350357060: ('0.029611345148068832',), 1350357057: ('0.029611345148068832',), 1350357040: ('0.029611345148068832',), 1350357025: ('0.029611345148068832',), 1350356995: ('0.029611345148068832',)} args : 1350357326 depend.output_id : 0 input_args_next_step : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ('0.029611345148068832',), 1350357331: ('0.029611345148068832',), 1350357326: ('0.029611345148068832',), 1350357323: ()} output_args : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ('0.029611345148068832',), 1350357331: ('0.029611345148068832',), 1350357326: ('0.029611345148068832',), 1350357323: ('0.029611345148068832',), 1350357295: ('0.029611345148068832',), 1350357279: ('0.029611345148068832',), 1350357060: ('0.029611345148068832',), 1350357057: ('0.029611345148068832',), 1350357040: ('0.029611345148068832',), 1350357025: ('0.029611345148068832',), 1350356995: ('0.029611345148068832',)} args : 1350357323 depend.output_id : 0 input_args_next_step : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ('0.029611345148068832',), 1350357331: ('0.029611345148068832',), 1350357326: ('0.029611345148068832',), 1350357323: ('0.029611345148068832',), 1350357295: ()} output_args : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ('0.029611345148068832',), 1350357331: ('0.029611345148068832',), 1350357326: ('0.029611345148068832',), 1350357323: ('0.029611345148068832',), 1350357295: ('0.029611345148068832',), 1350357279: ('0.029611345148068832',), 1350357060: ('0.029611345148068832',), 1350357057: ('0.029611345148068832',), 1350357040: ('0.029611345148068832',), 1350357025: ('0.029611345148068832',), 1350356995: ('0.029611345148068832',)} args : 1350357295 depend.output_id : 0 input_args_next_step : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ('0.029611345148068832',), 1350357331: ('0.029611345148068832',), 1350357326: ('0.029611345148068832',), 1350357323: ('0.029611345148068832',), 1350357295: ('0.029611345148068832',), 1350357279: ()} output_args : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ('0.029611345148068832',), 1350357331: ('0.029611345148068832',), 1350357326: ('0.029611345148068832',), 1350357323: ('0.029611345148068832',), 1350357295: ('0.029611345148068832',), 1350357279: ('0.029611345148068832',), 1350357060: ('0.029611345148068832',), 1350357057: ('0.029611345148068832',), 1350357040: ('0.029611345148068832',), 1350357025: ('0.029611345148068832',), 1350356995: ('0.029611345148068832',)} args : 1350357279 depend.output_id : 0 input_args_next_step : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ('0.029611345148068832',), 1350357331: ('0.029611345148068832',), 1350357326: ('0.029611345148068832',), 1350357323: ('0.029611345148068832',), 1350357295: ('0.029611345148068832',), 1350357279: ('0.029611345148068832',), 1350357060: ()} output_args : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ('0.029611345148068832',), 1350357331: ('0.029611345148068832',), 1350357326: ('0.029611345148068832',), 1350357323: ('0.029611345148068832',), 1350357295: ('0.029611345148068832',), 1350357279: ('0.029611345148068832',), 1350357060: ('0.029611345148068832',), 1350357057: ('0.029611345148068832',), 1350357040: ('0.029611345148068832',), 1350357025: ('0.029611345148068832',), 1350356995: ('0.029611345148068832',)} args : 1350357060 depend.output_id : 0 input_args_next_step : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ('0.029611345148068832',), 1350357331: ('0.029611345148068832',), 1350357326: ('0.029611345148068832',), 1350357323: ('0.029611345148068832',), 1350357295: ('0.029611345148068832',), 1350357279: ('0.029611345148068832',), 1350357060: ('0.029611345148068832',), 1350357057: ()} output_args : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ('0.029611345148068832',), 1350357331: ('0.029611345148068832',), 1350357326: ('0.029611345148068832',), 1350357323: ('0.029611345148068832',), 1350357295: ('0.029611345148068832',), 1350357279: ('0.029611345148068832',), 1350357060: ('0.029611345148068832',), 1350357057: ('0.029611345148068832',), 1350357040: ('0.029611345148068832',), 1350357025: ('0.029611345148068832',), 1350356995: ('0.029611345148068832',)} args : 1350357057 depend.output_id : 0 input_args_next_step : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ('0.029611345148068832',), 1350357331: ('0.029611345148068832',), 1350357326: ('0.029611345148068832',), 1350357323: ('0.029611345148068832',), 1350357295: ('0.029611345148068832',), 1350357279: ('0.029611345148068832',), 1350357060: ('0.029611345148068832',), 1350357057: ('0.029611345148068832',), 1350357040: ()} output_args : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ('0.029611345148068832',), 1350357331: ('0.029611345148068832',), 1350357326: ('0.029611345148068832',), 1350357323: ('0.029611345148068832',), 1350357295: ('0.029611345148068832',), 1350357279: ('0.029611345148068832',), 1350357060: ('0.029611345148068832',), 1350357057: ('0.029611345148068832',), 1350357040: ('0.029611345148068832',), 1350357025: ('0.029611345148068832',), 1350356995: ('0.029611345148068832',)} args : 1350357040 depend.output_id : 0 input_args_next_step : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ('0.029611345148068832',), 1350357331: ('0.029611345148068832',), 1350357326: ('0.029611345148068832',), 1350357323: ('0.029611345148068832',), 1350357295: ('0.029611345148068832',), 1350357279: ('0.029611345148068832',), 1350357060: ('0.029611345148068832',), 1350357057: ('0.029611345148068832',), 1350357040: ('0.029611345148068832',), 1350357025: ()} output_args : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ('0.029611345148068832',), 1350357331: ('0.029611345148068832',), 1350357326: ('0.029611345148068832',), 1350357323: ('0.029611345148068832',), 1350357295: ('0.029611345148068832',), 1350357279: ('0.029611345148068832',), 1350357060: ('0.029611345148068832',), 1350357057: ('0.029611345148068832',), 1350357040: ('0.029611345148068832',), 1350357025: ('0.029611345148068832',), 1350356995: ('0.029611345148068832',)} args : 1350357025 depend.output_id : 0 input_args_next_step : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ('0.029611345148068832',), 1350357331: ('0.029611345148068832',), 1350357326: ('0.029611345148068832',), 1350357323: ('0.029611345148068832',), 1350357295: ('0.029611345148068832',), 1350357279: ('0.029611345148068832',), 1350357060: ('0.029611345148068832',), 1350357057: ('0.029611345148068832',), 1350357040: ('0.029611345148068832',), 1350357025: ('0.029611345148068832',), 1350356995: ()} output_args : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ('0.029611345148068832',), 1350357331: ('0.029611345148068832',), 1350357326: ('0.029611345148068832',), 1350357323: ('0.029611345148068832',), 1350357295: ('0.029611345148068832',), 1350357279: ('0.029611345148068832',), 1350357060: ('0.029611345148068832',), 1350357057: ('0.029611345148068832',), 1350357040: ('0.029611345148068832',), 1350357025: ('0.029611345148068832',), 1350356995: ('0.029611345148068832',)} args : 1350356995 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 : {22111576: [{'plastique': 22111598, 'Carton_brun': 22111599, 'flou': 22111600, 'papier': 22111601, 'kraft': 22111602, 'autre_refus': 22111603, 'environnement': 22111604, 'metal': 22111605, 'cartonnette': 22111606, 'Teint_Dans_La_Masse': 22111607, 'Carton_gris': 22111608, 'mal_croppe': 22111609}]} input_args_next_step : {1350357400: ('0.029611345148068832',), 1350357397: ('0.029611345148068832',), 1350357379: ('0.029611345148068832',), 1350357337: ('0.029611345148068832',), 1350357331: ('0.029611345148068832',), 1350357326: ('0.029611345148068832',), 1350357323: ('0.029611345148068832',), 1350357295: ('0.029611345148068832',), 1350357279: ('0.029611345148068832',), 1350357060: ('0.029611345148068832',), 1350357057: ('0.029611345148068832',), 1350357040: ('0.029611345148068832',), 1350357025: ('0.029611345148068832',), 1350356995: ('0.029611345148068832',), 22111576: ()} output_args : {22111576: [{'plastique': 22111598, 'Carton_brun': 22111599, 'flou': 22111600, 'papier': 22111601, 'kraft': 22111602, 'autre_refus': 22111603, 'environnement': 22111604, 'metal': 22111605, 'cartonnette': 22111606, 'Teint_Dans_La_Masse': 22111607, 'Carton_gris': 22111608, 'mal_croppe': 22111609}]} args : 22111576 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 :15, first value : ('0.029611345148068832',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22111576) 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 (1350357400,1350357397,1350357379,1350357337,1350357331,1350357326,1350357323,1350357295,1350357279,1350357060,1350357057,1350357040,1350357025,1350356995) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1350356995 begin to download photo : 1350357057 begin to download photo : 1350357295 begin to download photo : 1350357331 begin to download photo : 1350357397 download finish for photo 1350357397 begin to download photo : 1350357400 download finish for photo 1350357295 begin to download photo : 1350357323 download finish for photo 1350357057 begin to download photo : 1350357060 download finish for photo 1350357331 begin to download photo : 1350357337 download finish for photo 1350356995 begin to download photo : 1350357025 download finish for photo 1350357400 download finish for photo 1350357060 begin to download photo : 1350357279 download finish for photo 1350357323 begin to download photo : 1350357326 download finish for photo 1350357025 begin to download photo : 1350357040 download finish for photo 1350357337 begin to download photo : 1350357379 download finish for photo 1350357279 download finish for photo 1350357326 download finish for photo 1350357379 download finish for photo 1350357040 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 : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P22111576_07-04-2025_16_57_01.pdf 22111598 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=22111598 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350356972: '1744037612_1224672_1350355963_f4270c5b34df032aa7ea9305d78fb281_rle_crop_3749223343_0.png'} change filename to text .imagette221115981744037821/ imagette221115981744037821/1744037612_1224672_1350355963_f4270c5b34df032aa7ea9305d78fb281_rle_crop_3749223343_0.png.png imagette221116001744037822/ imagette221116021744037822/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/d990add2550b28bb2188b68d9b3d1553_79195112.png imagette221115981744037821 22111600 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=22111600 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221116001744037822 22111602 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=22111602 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221116021744037822 22111603 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=22111603 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350355872: '1744037352_1220551_1350355015_cc98e18b2ddab3b20d5907e88eb250b7_rle_crop_3749220622_0.png', 1350356940: '1744037612_1224672_1350355973_1224d71391644ffc778fc9a229744c9a_rle_crop_3749223327_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/022fadde6987451ce806831493792819_97019850.png change filename to text .imagette221116031744037822/ imagette221116031744037822/1744037352_1220551_1350355015_cc98e18b2ddab3b20d5907e88eb250b7_rle_crop_3749220622_0.png.png imagette221116031744037822/1744037612_1224672_1350355973_1224d71391644ffc778fc9a229744c9a_rle_crop_3749223327_0.png.png imagette221116051744037822/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/8a9fda4a25ecf8423fb3e5d6aec9cd91_53453573.png imagette221116031744037822 22111605 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=22111605 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221116051744037822 22111606 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=22111606 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350355835: '1744037367_590087_1350354812_c9db8937a37154d9c2ed20d71bf59d96_rle_crop_3749220335_0.png', 1350355837: '1744037367_590087_1350354812_c9db8937a37154d9c2ed20d71bf59d96_rle_crop_3749220340_0.png', 1350355839: '1744037367_590087_1350354807_e5369949d76a31c0f9fc2efd424e60a5_rle_crop_3749220358_0.png', 1350355880: '1744037352_1220551_1350354999_0edd039d48609e9c050adbdd520dfbf7_rle_crop_3749220643_0.png', 1350356109: '1744037487_592945_1350355865_444256bf47828af14ce779d4ba78b682_rle_crop_3749221628_0.png', 1350356307: '1744037513_1223500_1350355581_797f4c81cdfb0240e2ca49f6ba665da4_rle_crop_3749222780_0.png', 1350356308: '1744037513_1223500_1350355212_84b1bd0f66fe25c361b6fc00a6e024d4_rle_crop_3749222806_0.png', 1350356451: '1744037592_1224438_1350356267_b491f2d259993dbf5b131fab02d809bb_rle_crop_3749223162_0.png', 1350356453: '1744037592_1224438_1350356257_e4f7ad2c25635abcd90876a2442f19e6_rle_crop_3749223172_0.png', 1350356454: '1744037592_1224438_1350356257_e4f7ad2c25635abcd90876a2442f19e6_rle_crop_3749223178_0.png', 1350356456: '1744037592_1224438_1350356250_8b2df6670f472169cc5b99627d0cb1d2_rle_crop_3749223267_0.png', 1350356958: '1744037612_1224672_1350355973_1224d71391644ffc778fc9a229744c9a_rle_crop_3749223323_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/92169f0f16bb7ebb8342e913bbbf6d62_17756350.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/c9b9bf4ae69477a6eba5d79b84f35129_63876067.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/e0996d3f1ca16a1173945acd5a953f3a_5031667.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/10639394a15ffb1f1b5a382ff442ed98_11389204.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/aa9af30aa93cad3a9d43b830538d0f03_1013699.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/a16bdabd35e0595978bdde69b7a90e45_67906775.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/6623143d096c754f495250f033faaae2_46198307.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/59aabef77eed81a67b8385f37769057e_14668085.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/1180a29f1ebd242aa3d04784caf05f1e_71422734.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/ba1da58810e3b59dd963604929e106f7_41370947.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/292a3f239223e4b1db37a05f2819b661_94833099.png change filename to text .imagette221116061744037822/ imagette221116061744037822/1744037352_1220551_1350354999_0edd039d48609e9c050adbdd520dfbf7_rle_crop_3749220643_0.png.png imagette221116061744037822/1744037487_592945_1350355865_444256bf47828af14ce779d4ba78b682_rle_crop_3749221628_0.png.png imagette221116061744037822/1744037592_1224438_1350356257_e4f7ad2c25635abcd90876a2442f19e6_rle_crop_3749223172_0.png.png imagette221116061744037822/1744037513_1223500_1350355212_84b1bd0f66fe25c361b6fc00a6e024d4_rle_crop_3749222806_0.png.png imagette221116061744037822/1744037367_590087_1350354812_c9db8937a37154d9c2ed20d71bf59d96_rle_crop_3749220340_0.png.png imagette221116061744037822/1744037592_1224438_1350356257_e4f7ad2c25635abcd90876a2442f19e6_rle_crop_3749223178_0.png.png imagette221116061744037822/1744037612_1224672_1350355973_1224d71391644ffc778fc9a229744c9a_rle_crop_3749223323_0.png.png imagette221116061744037822/1744037592_1224438_1350356250_8b2df6670f472169cc5b99627d0cb1d2_rle_crop_3749223267_0.png.png imagette221116061744037822/1744037367_590087_1350354807_e5369949d76a31c0f9fc2efd424e60a5_rle_crop_3749220358_0.png.png imagette221116061744037822/1744037513_1223500_1350355581_797f4c81cdfb0240e2ca49f6ba665da4_rle_crop_3749222780_0.png.png imagette221116061744037822/1744037367_590087_1350354812_c9db8937a37154d9c2ed20d71bf59d96_rle_crop_3749220335_0.png.png imagette221116061744037822/1744037592_1224438_1350356267_b491f2d259993dbf5b131fab02d809bb_rle_crop_3749223162_0.png.png imagette221116091744037823/ wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/c72b604d144e9c4a67d6cc59d59e2924_20245604.png imagette221116061744037822 22111609 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=22111609 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette221116091744037823 22111599 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=22111599 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350356110: '1744037487_592945_1350355881_2eec4ebccf829fff00fcf8e9a55e4584_rle_crop_3749221624_0.png', 1350356311: '1744037513_1223500_1350355219_fa924bc3388cdbd3d50dd3963c1a8abb_rle_crop_3749222789_0.png', 1350356445: '1744037605_596080_1350355983_54ce26f6f7139d743797a697cbf8f2e2_rle_crop_3749223128_0.png', 1350356471: '1744037592_1224438_1350356250_8b2df6670f472169cc5b99627d0cb1d2_rle_crop_3749223268_0.png', 1350356965: '1744037612_1224672_1350355973_1224d71391644ffc778fc9a229744c9a_rle_crop_3749223329_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/383001a9d3ac0540d8aa4e045fe5fc2b_30943591.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/fbb46b651a5d8deabf3aaa3f94d1f728_17286502.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/2bf7855c84152b56e9a2a6678475d148_49729364.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/0a60c0c2d3f70df086528d4f2fa8eab7_12165010.png change filename to text .imagette221115991744037823/ imagette221115991744037823/1744037612_1224672_1350355973_1224d71391644ffc778fc9a229744c9a_rle_crop_3749223329_0.png.png imagette221115991744037823/1744037487_592945_1350355881_2eec4ebccf829fff00fcf8e9a55e4584_rle_crop_3749221624_0.png.png imagette221115991744037823/1744037592_1224438_1350356250_8b2df6670f472169cc5b99627d0cb1d2_rle_crop_3749223268_0.png.png imagette221115991744037823/1744037513_1223500_1350355219_fa924bc3388cdbd3d50dd3963c1a8abb_rle_crop_3749222789_0.png.png imagette221115991744037823/1744037605_596080_1350355983_54ce26f6f7139d743797a697cbf8f2e2_rle_crop_3749223128_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/75780a4abe98b8d05e9c38a41cac162c_90741229.png imagette221115991744037823 22111607 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=22111607 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350355868: '1744037352_1220551_1350355015_cc98e18b2ddab3b20d5907e88eb250b7_rle_crop_3749220628_0.png', 1350356285: '1744037493_1223251_1350355497_4aca83b851e050fcbda20ab56ed91420_rle_crop_3749222751_0.png', 1350356286: '1744037493_1223251_1350355497_4aca83b851e050fcbda20ab56ed91420_rle_crop_3749222747_0.png', 1350356287: '1744037493_1223251_1350355462_a96d0711cf2e605eee9210f416d2f5be_rle_crop_3749222760_0.png', 1350356301: '1744037513_1223500_1350355219_fa924bc3388cdbd3d50dd3963c1a8abb_rle_crop_3749222792_0.png', 1350356302: '1744037513_1223500_1350355208_a76c4c62c6f28d90bc3256ed41889ec8_rle_crop_3749222819_0.png', 1350356441: '1744037605_596080_1350355983_54ce26f6f7139d743797a697cbf8f2e2_rle_crop_3749223131_0.png', 1350357353: '1744037712_1225534_1350356360_74e13c4224d03ef375326a54a4d8ab6f_rle_crop_3749225094_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/835ecdd1922670753ac18f8dd1d1a03d_55135196.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/7f37d873194063b8bfd7ef9fcd73efa5_553588.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/249d7fea97423d791caecc59679015ce_77359819.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/d57cd7369f3bc28fc24a1c2996a0f991_73967500.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/5970e998ac33ad903066ffca3a6247a6_13199068.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/9147667e3b579b542746d19633c1be61_89000179.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/d4dc2c1977998e565b9c56af0d102819_37739413.png change filename to text .imagette221116071744037824/ imagette221116071744037824/1744037493_1223251_1350355497_4aca83b851e050fcbda20ab56ed91420_rle_crop_3749222747_0.png.png imagette221116071744037824/1744037513_1223500_1350355208_a76c4c62c6f28d90bc3256ed41889ec8_rle_crop_3749222819_0.png.png imagette221116071744037824/1744037605_596080_1350355983_54ce26f6f7139d743797a697cbf8f2e2_rle_crop_3749223131_0.png.png imagette221116071744037824/1744037493_1223251_1350355462_a96d0711cf2e605eee9210f416d2f5be_rle_crop_3749222760_0.png.png imagette221116071744037824/1744037352_1220551_1350355015_cc98e18b2ddab3b20d5907e88eb250b7_rle_crop_3749220628_0.png.png imagette221116071744037824/1744037513_1223500_1350355219_fa924bc3388cdbd3d50dd3963c1a8abb_rle_crop_3749222792_0.png.png imagette221116071744037824/1744037712_1225534_1350356360_74e13c4224d03ef375326a54a4d8ab6f_rle_crop_3749225094_0.png.png imagette221116071744037824/1744037493_1223251_1350355497_4aca83b851e050fcbda20ab56ed91420_rle_crop_3749222751_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/a60fbcb0ae3f02887f29a11c4d6cff03_57329149.png imagette221116071744037824 22111608 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=22111608 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1350355877: '1744037352_1220551_1350354999_0edd039d48609e9c050adbdd520dfbf7_rle_crop_3749220644_0.png', 1350356292: '1744037493_1223251_1350355541_72c5371b55075654a48b192c7c1e68d0_rle_crop_3749222605_0.png', 1350356293: '1744037493_1223251_1350355541_72c5371b55075654a48b192c7c1e68d0_rle_crop_3749222601_0.png', 1350356294: '1744037493_1223251_1350355497_4aca83b851e050fcbda20ab56ed91420_rle_crop_3749222740_0.png', 1350356295: '1744037493_1223251_1350355497_4aca83b851e050fcbda20ab56ed91420_rle_crop_3749222742_0.png', 1350356296: '1744037493_1223251_1350355462_a96d0711cf2e605eee9210f416d2f5be_rle_crop_3749222754_0.png', 1350356297: '1744037493_1223251_1350355426_c951c19288bb6e14811a01441813dd5f_rle_crop_3749222764_0.png', 1350356304: '1744037513_1223500_1350355581_797f4c81cdfb0240e2ca49f6ba665da4_rle_crop_3749222778_0.png', 1350356305: '1744037513_1223500_1350355581_797f4c81cdfb0240e2ca49f6ba665da4_rle_crop_3749222774_0.png', 1350356306: '1744037513_1223500_1350355212_84b1bd0f66fe25c361b6fc00a6e024d4_rle_crop_3749222802_0.png', 1350356450: '1744037592_1224438_1350356250_8b2df6670f472169cc5b99627d0cb1d2_rle_crop_3749223266_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/cab648fb46b6d26229742594ab5252c5_27306032.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/2141d992dd92fbc83d93ffcb164cce3f_69847758.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/08e7e2ba3e518417908216e03b1ae0e7_95099302.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/38eaecb2cb031e0d5ecdc1e755f47a6a_30892046.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/95086fd0b5b7032d4d70a956b130e3cf_73276262.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/aeed5a454334633c5ff4aa5e86e92f74_16539068.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/f5308edae3901c2ae120850131f7f4ab_61107031.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/c8f1a104661a622f30bdaa60849671f2_10724867.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/bb91ef37985f4d9fc9d27e903251cab4_75491763.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/2860612bb46d0cc7101f96bf3e261370_21481469.png change filename to text .imagette221116081744037824/ imagette221116081744037824/1744037513_1223500_1350355581_797f4c81cdfb0240e2ca49f6ba665da4_rle_crop_3749222778_0.png.png imagette221116081744037824/1744037493_1223251_1350355541_72c5371b55075654a48b192c7c1e68d0_rle_crop_3749222601_0.png.png imagette221116081744037824/1744037513_1223500_1350355212_84b1bd0f66fe25c361b6fc00a6e024d4_rle_crop_3749222802_0.png.png imagette221116081744037824/1744037493_1223251_1350355426_c951c19288bb6e14811a01441813dd5f_rle_crop_3749222764_0.png.png imagette221116081744037824/1744037493_1223251_1350355497_4aca83b851e050fcbda20ab56ed91420_rle_crop_3749222740_0.png.png imagette221116081744037824/1744037493_1223251_1350355462_a96d0711cf2e605eee9210f416d2f5be_rle_crop_3749222754_0.png.png imagette221116081744037824/1744037493_1223251_1350355541_72c5371b55075654a48b192c7c1e68d0_rle_crop_3749222605_0.png.png imagette221116081744037824/1744037592_1224438_1350356250_8b2df6670f472169cc5b99627d0cb1d2_rle_crop_3749223266_0.png.png imagette221116081744037824/1744037513_1223500_1350355581_797f4c81cdfb0240e2ca49f6ba665da4_rle_crop_3749222774_0.png.png imagette221116081744037824/1744037493_1223251_1350355497_4aca83b851e050fcbda20ab56ed91420_rle_crop_3749222742_0.png.png imagette221116081744037824/1744037352_1220551_1350354999_0edd039d48609e9c050adbdd520dfbf7_rle_crop_3749220644_0.png.png wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/ade7d715b2a7e6427f4c599bcade1ce7_48943149.png imagette221116081744037824 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=22111576 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/22111610,22111611,22111612,22111613,22111614,22111615,22111616,22111617,22111618,22111619,22111620,22111621?tags=plastique,Carton_brun,flou,papier,kraft,autre_refus,environnement,metal,cartonnette,Teint_Dans_La_Masse,Carton_gris,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1350357400] : ('0.029611345148068832',) no score found for photo 1350357400 We are sending mail with results at report@fotonower.com args[1350357397] : ('0.029611345148068832',) no score found for photo 1350357397 We are sending mail with results at report@fotonower.com args[1350357379] : ('0.029611345148068832',) no score found for photo 1350357379 We are sending mail with results at report@fotonower.com args[1350357337] : ('0.029611345148068832',) no score found for photo 1350357337 We are sending mail with results at report@fotonower.com args[1350357331] : ('0.029611345148068832',) no score found for photo 1350357331 We are sending mail with results at report@fotonower.com args[1350357326] : ('0.029611345148068832',) no score found for photo 1350357326 We are sending mail with results at report@fotonower.com args[1350357323] : ('0.029611345148068832',) no score found for photo 1350357323 We are sending mail with results at report@fotonower.com args[1350357295] : ('0.029611345148068832',) no score found for photo 1350357295 We are sending mail with results at report@fotonower.com args[1350357279] : ('0.029611345148068832',) no score found for photo 1350357279 We are sending mail with results at report@fotonower.com args[1350357060] : ('0.029611345148068832',) no score found for photo 1350357060 We are sending mail with results at report@fotonower.com args[1350357057] : ('0.029611345148068832',) no score found for photo 1350357057 We are sending mail with results at report@fotonower.com args[1350357040] : ('0.029611345148068832',) no score found for photo 1350357040 We are sending mail with results at report@fotonower.com args[1350357025] : ('0.029611345148068832',) no score found for photo 1350357025 We are sending mail with results at report@fotonower.com args[1350356995] : ('0.029611345148068832',) no score found for photo 1350356995 We are sending mail with results at report@fotonower.com refus_total : 0.029611345148068832 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=22111576 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_P22111576_07-04-2025_16_57_01.pdf results_Auto_P22111576_07-04-2025_16_57_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22111576_07-04-2025_16_57_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','22111576','results_Auto_P22111576_07-04-2025_16_57_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22111576_07-04-2025_16_57_01.pdf','pdf','','0.24','0.029611345148068832') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22111576]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1350357400, 1350357397, 1350357379, 1350357337, 1350357331, 1350357326, 1350357323, 1350357295, 1350357279, 1350357060, 1350357057, 1350357040, 1350357025, 1350356995] map_info['map_portfolio_photo'] : {22111576: [1350357400, 1350357397, 1350357379, 1350357337, 1350357331, 1350357326, 1350357323, 1350357295, 1350357279, 1350357060, 1350357057, 1350357040, 1350357025, 1350356995, 1350356668, 1350356404, 1350356360, 1350356343, 1350356337, 1350356290, 1350356281, 1350356267, 1350356257, 1350356250, 1350355983, 1350355973, 1350355963, 1350355885, 1350355881, 1350355865, 1350355581, 1350355541, 1350355497, 1350355462, 1350355426, 1350355225, 1350355219, 1350355216, 1350355212, 1350355208, 1350355023, 1350355018, 1350355015, 1350354999, 1350354812, 1350354807, 1350354803, 1350354800]} final : False mtd_id 4302 list_pids : [1350357400, 1350357397, 1350357379, 1350357337, 1350357331, 1350357326, 1350357323, 1350357295, 1350357279, 1350357060, 1350357057, 1350357040, 1350357025, 1350356995] 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, '2729611') ('4302', '22111576', '1350357400', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357397', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357379', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357337', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357331', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357326', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357323', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357295', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357279', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357060', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357057', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357040', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357025', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350356995', None, None, None, None, None, '2729611') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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', '22111576', '1350357400', None, None, None, None, None, '2729611'), ('4302', '22111576', '1350357397', None, None, None, None, None, '2729611'), ('4302', '22111576', '1350357379', None, None, None, None, None, '2729611'), ('4302', '22111576', '1350357337', None, None, None, None, None, '2729611'), ('4302', '22111576', '1350357331', None, None, None, None, None, '2729611'), ('4302', '22111576', '1350357326', None, None, None, None, None, '2729611'), ('4302', '22111576', '1350357323', None, None, None, None, None, '2729611'), ('4302', '22111576', '1350357295', None, None, None, None, None, '2729611'), ('4302', '22111576', '1350357279', None, None, None, None, None, '2729611'), ('4302', '22111576', '1350357060', None, None, None, None, None, '2729611'), ('4302', '22111576', '1350357057', None, None, None, None, None, '2729611'), ('4302', '22111576', '1350357040', None, None, None, None, None, '2729611'), ('4302', '22111576', '1350357025', None, None, None, None, None, '2729611'), ('4302', '22111576', '1350356995', None, None, None, None, None, '2729611')] time used for this insertion : 0.01376652717590332 save_final save missing photos in datou_result : time spend for datou_step_exec : 6.333260536193848 time spend to save output : 0.014226198196411133 total time spend for step 4 : 6.347486734390259 step5:split_time_score Mon Apr 7 16:57:07 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 : ['22111576'] 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 : [('22111576',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (22111576) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1350357397: {'path': 'temp/1744037821_1367591_1350357397_17870b2ee334e0dc6c5934b974259ed1.jpg', 'extension': 'jpg'}, 1350357400: {'path': 'temp/1744037821_1367591_1350357400_620e52083349ecaa0b64377e31c7bbee.jpg', 'extension': 'jpg'}, 1350357057: {'path': 'temp/1744037821_1367591_1350357057_e9ad19ca2000a2e71498a22034e39a9c.jpg', 'extension': 'jpg'}, 1350357060: {'path': 'temp/1744037821_1367591_1350357060_0ac5b97711c2c95d40b8bdc88b7a4c8d.jpg', 'extension': 'jpg'}, 1350357279: {'path': 'temp/1744037821_1367591_1350357279_84d2fa9b0ba7c48e80a5bd563fbc9702.jpg', 'extension': 'jpg'}, 1350357295: {'path': 'temp/1744037821_1367591_1350357295_c3e275ea1442decf2e1f4943601cb477.jpg', 'extension': 'jpg'}, 1350357323: {'path': 'temp/1744037821_1367591_1350357323_95506f695fae527e805828615698d3ac.jpg', 'extension': 'jpg'}, 1350357326: {'path': 'temp/1744037821_1367591_1350357326_2f32811bc2378835f706329a9510bbd5.jpg', 'extension': 'jpg'}, 1350357331: {'path': 'temp/1744037821_1367591_1350357331_c077d17184cf6fac31c795cc6a53f99d.jpg', 'extension': 'jpg'}, 1350357337: {'path': 'temp/1744037821_1367591_1350357337_3e5a6c8bcb86124941ef3ac6800f3cd5.jpg', 'extension': 'jpg'}, 1350357379: {'path': 'temp/1744037821_1367591_1350357379_3c41c78f72395d4549464846844117c9.jpg', 'extension': 'jpg'}, 1350356995: {'path': 'temp/1744037821_1367591_1350356995_a62210a9d0ff771821402f4d3aac6628.jpg', 'extension': 'jpg'}, 1350357025: {'path': 'temp/1744037821_1367591_1350357025_b01587e46e979715c65de89c086b981e.jpg', 'extension': 'jpg'}, 1350357040: {'path': 'temp/1744037821_1367591_1350357040_d06b81e10d2f97fe7c67bad5d8d57b12.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 = 22111576; (('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 = 22111576 group by h (('16', 48),) 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=22111576 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 (22111576) 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 (22111576) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07042025 22111576 Nombre de photos uploadées : 48 / 23040 (0%) 07042025 22111576 Nombre de photos taguées (types de déchets): 0 / 48 (0%) 07042025 22111576 Nombre de photos taguées (volume) : 0 / 48 (0%) [{'photo_id': 1350354812, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/c9db8937a37154d9c2ed20d71bf59d96.jpg', 'username': None, 'uploaded_at': 1744037167, 'text': 'image_07042025_16_45_14_010135m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1350354807, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/e5369949d76a31c0f9fc2efd424e60a5.jpg', 'username': None, 'uploaded_at': 1744037167, 'text': 'image_07042025_16_45_24_010140m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350354803, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/13791da121609d7229c37fb2bfb1b89a.jpg', 'username': None, 'uploaded_at': 1744037167, 'text': 'image_07042025_16_45_34_010134m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1350354800, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/4/7/bb6bb3c8d7ed0e939f18ab33c405acca.jpg', 'username': None, 'uploaded_at': 1744037167, 'text': 'image_07042025_16_45_44_010134m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.5762786865234375e-06 elapsed_time : order_list_meta_photo_and_scores 9.298324584960938e-06 ???????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0022003650665283203 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 22111576, '2025-04-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1719143,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.027705907821655273 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= 1719143 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1719143, 'dashboard_run_id': 1728562, 'mtr_portfolio_id': 22109683, 'dashboard_result_id': 9911774, '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_P22109683_07-04-2025_16_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22109686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22109687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22109688, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22109689, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22109690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22109691, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22109692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22109693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22109694, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22109695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22109696, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22109697, 'pht': 3726}}"}, {'dashboat_entry_day': 1719143, 'dashboard_run_id': 1728562, 'mtr_portfolio_id': 22110375, 'dashboard_result_id': 9911775, '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_P22110375_07-04-2025_16_33_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22110378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22110379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22110380, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22110381, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22110382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22110383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22110384, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22110385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22110386, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22110387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22110388, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22110389, 'pht': 3726}}"}, {'dashboat_entry_day': 1719143, 'dashboard_run_id': 1728562, 'mtr_portfolio_id': 22111028, 'dashboard_result_id': 9911776, '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_P22111028_07-04-2025_16_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22111070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22111071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22111072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22111073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22111074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22111075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22111076, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22111077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22111078, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22111079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22111080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22111081, 'pht': 3726}}"}, {'dashboat_entry_day': 1719143, 'dashboard_run_id': 1728562, 'mtr_portfolio_id': 22111576, 'dashboard_result_id': 9911777, '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_P22111576_07-04-2025_16_55_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22111598, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22111599, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22111600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22111601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22111602, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22111603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22111604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22111605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22111606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22111607, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22111608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22111609, '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 = 22109683 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': 2729469, 'mtr_portfolio_id': 22109683, 'created_at': datetime.datetime(2025, 4, 7, 16, 16, 57), 'result': '0.052533643540471596', 'result_long': None, 'result_double': None}] Qualite : 0.052533643540471596 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22109683 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22109683_07-04-2025_16_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22109683 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_P22109683_07-04-2025_16_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22109686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22109687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22109688, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22109689, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22109690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22109691, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22109692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22109693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22109694, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22109695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22109696, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22109697, 'pht': 3726}}" where mtr_portfolio_id = 22109683 and dashboard_run_id = 1728562 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`=22109683 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9911774, 0.052533643540471596, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22109683_07-04-2025_16_16_58.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22109686, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22109687, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22109688, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22109689, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22109690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22109691, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22109692, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22109693, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22109694, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22109695, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22109696, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22109697, '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 = 22110375 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': 2729511, 'mtr_portfolio_id': 22110375, 'created_at': datetime.datetime(2025, 4, 7, 16, 33), 'result': '0.06027972648338631', 'result_long': None, 'result_double': None}] Qualite : 0.06027972648338631 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22110375 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22110375_07-04-2025_16_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22110375 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_P22110375_07-04-2025_16_33_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22110378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22110379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22110380, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22110381, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22110382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22110383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22110384, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22110385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22110386, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22110387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22110388, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22110389, 'pht': 3726}}" where mtr_portfolio_id = 22110375 and dashboard_run_id = 1728562 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`=22110375 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9911775, 0.06027972648338631, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22110375_07-04-2025_16_33_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22110378, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22110379, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22110380, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22110381, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22110382, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22110383, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22110384, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22110385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22110386, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22110387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22110388, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22110389, '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 = 22111028 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': 2729567, 'mtr_portfolio_id': 22111028, 'created_at': datetime.datetime(2025, 4, 7, 16, 48, 59), 'result': '0.06934224223004355', 'result_long': None, 'result_double': None}] Qualite : 0.06934224223004355 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22111028 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22111028_07-04-2025_16_49_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22111028 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_P22111028_07-04-2025_16_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22111070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22111071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22111072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22111073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22111074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22111075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22111076, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22111077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22111078, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22111079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22111080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22111081, 'pht': 3726}}" where mtr_portfolio_id = 22111028 and dashboard_run_id = 1728562 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`=22111028 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9911776, 0.06934224223004355, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22111028_07-04-2025_16_49_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 22111070, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22111071, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22111072, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22111073, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22111074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22111075, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22111076, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22111077, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22111078, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22111079, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22111080, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22111081, '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 = 22111576 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': 2729611, 'mtr_portfolio_id': 22111576, 'created_at': datetime.datetime(2025, 4, 7, 16, 57, 1), 'result': '0.029611345148068832', 'result_long': None, 'result_double': None}] Qualite : 0.029611345148068832 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 22111576 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22111576_07-04-2025_16_57_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 22111576 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_P22111576_07-04-2025_16_57_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22111598, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22111599, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22111600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22111601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22111602, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22111603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22111604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22111605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22111606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22111607, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22111608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22111609, 'pht': 3726}}" where mtr_portfolio_id = 22111576 and dashboard_run_id = 1728562 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`=22111576 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9911777, 0.029611345148068832, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P22111576_07-04-2025_16_57_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 22111598, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 22111599, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 22111600, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 22111601, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 22111602, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 22111603, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 22111604, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 22111605, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 22111606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 22111607, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 22111608, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 22111609, '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 (22109683,22110375,22111028,22111576) result : ((1350345053,), (1350345698,), (1350345732,), (1350345750,), (1350345787,), (1350346296,), (1350346384,), (1350346565,), (1350346622,), (1350346669,), (1350346698,), (1350346930,), (1350346968,), (1350347021,), (1350347610,), (1350347621,), (1350347662,), (1350347669,), (1350347681,), (1350347791,), (1350347800,), (1350347809,), (1350347820,), (1350347831,), (1350347932,), (1350347937,), (1350347942,), (1350347947,), (1350347951,), (1350348015,), (1350348018,), (1350348023,), (1350348169,), (1350348193,), (1350348241,), (1350348281,), (1350348332,), (1350348363,), (1350348475,), (1350348485,), (1350348510,), (1350348530,), (1350348542,), (1350348619,), (1350348625,), (1350348631,), (1350348746,), (1350348831,), (1350348885,), (1350348911,), (1350349186,), (1350349217,), (1350349234,), (1350349604,), (1350349609,), (1350349619,), (1350349623,), (1350349627,), (1350349660,), (1350349664,), (1350349668,), (1350349670,), (1350349675,), (1350349726,), (1350349713,), (1350349717,), (1350349721,), (1350349844,), (1350349868,), (1350349943,), (1350349952,), (1350349974,), (1350350070,), (1350350072,), (1350350075,), (1350350078,), (1350350082,), (1350350086,), (1350350142,), (1350350145,), (1350350154,), (1350350167,), (1350350423,), (1350350451,), (1350350457,), (1350350461,), (1350350476,), (1350350487,), (1350350647,), (1350350680,), (1350350685,), (1350350690,), (1350350694,), (1350350698,), (1350350799,), (1350350816,), (1350350821,), (1350350937,), (1350350943,), (1350350948,), (1350350955,), (1350350966,), (1350350972,), (1350351029,), (1350351032,), (1350351038,), (1350351049,), (1350351062,), (1350351070,), (1350351358,), (1350352087,), (1350352104,), (1350352269,), (1350352273,), (1350352276,), (1350352279,), (1350352281,), (1350352287,), (1350352376,), (1350352631,), (1350352643,), (1350352653,), (1350352744,), (1350352747,), (1350352753,), (1350352756,), (1350352760,), (1350352764,), (1350352860,), (1350352864,), (1350352878,), (1350352892,), (1350352928,), (1350353181,), (1350353234,), (1350353238,), (1350353241,), (1350353280,), (1350353313,), (1350353320,), (1350353328,), (1350353331,), (1350353361,), (1350353367,), (1350353388,), (1350353394,), (1350353398,), (1350353402,), (1350353590,), (1350353596,), (1350353600,), (1350353605,), (1350353635,), (1350353641,), (1350353646,), (1350353650,), (1350353654,), (1350353658,), (1350353716,), (1350353719,), (1350353727,), (1350353732,), (1350353746,), (1350353756,), (1350354043,), (1350354084,), (1350354131,), (1350354173,), (1350354345,), (1350354348,), (1350354353,), (1350354356,), (1350354366,), (1350354375,), (1350354419,), (1350354422,), (1350354428,), (1350354433,), (1350354542,), (1350354567,), (1350354589,), (1350354679,), (1350354684,), (1350354686,), (1350354702,), (1350354707,), (1350354712,), (1350354823,), (1350354800,), (1350354803,), (1350354807,), (1350354812,), (1350354999,), (1350355015,), (1350355018,), (1350355023,), (1350355208,), (1350355212,), (1350355216,), (1350355219,), (1350355225,), (1350355426,), (1350355462,), (1350355497,), (1350355541,), (1350355581,), (1350355865,), (1350355881,), (1350355885,), (1350355963,), (1350355973,), (1350355983,), (1350356250,), (1350356257,), (1350356267,), (1350356281,), (1350356290,), (1350356337,), (1350356343,), (1350356360,), (1350356404,), (1350356668,), (1350356995,), (1350357025,), (1350357040,), (1350357057,), (1350357060,), (1350357279,), (1350357295,), (1350357323,), (1350357326,), (1350357331,), (1350357337,), (1350357379,), (1350357397,), (1350357400,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07042025': {'nb_upload': 48, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([22111576]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1350357400, 1350357397, 1350357379, 1350357337, 1350357331, 1350357326, 1350357323, 1350357295, 1350357279, 1350357060, 1350357057, 1350357040, 1350357025, 1350356995] map_info['map_portfolio_photo'] : {22111576: [1350357400, 1350357397, 1350357379, 1350357337, 1350357331, 1350357326, 1350357323, 1350357295, 1350357279, 1350357060, 1350357057, 1350357040, 1350357025, 1350356995, 1350356668, 1350356404, 1350356360, 1350356343, 1350356337, 1350356290, 1350356281, 1350356267, 1350356257, 1350356250, 1350355983, 1350355973, 1350355963, 1350355885, 1350355881, 1350355865, 1350355581, 1350355541, 1350355497, 1350355462, 1350355426, 1350355225, 1350355219, 1350355216, 1350355212, 1350355208, 1350355023, 1350355018, 1350355015, 1350354999, 1350354812, 1350354807, 1350354803, 1350354800]} final : True mtd_id 4302 list_pids : [1350357400, 1350357397, 1350357379, 1350357337, 1350357331, 1350357326, 1350357323, 1350357295, 1350357279, 1350357060, 1350357057, 1350357040, 1350357025, 1350356995] Looping around the photos to save general results len do output : 1 /22111576Didn'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, '2729611') ('4302', '22111576', '1350357400', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357397', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357379', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357337', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357331', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357326', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357323', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357295', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357279', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357060', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357057', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357040', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350357025', None, None, None, None, None, '2729611') ('4302', None, None, None, None, None, None, None, '2729611') ('4302', '22111576', '1350356995', None, None, None, None, None, '2729611') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 15 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, '22111576', 'None', None, None, None, None, '2729611'), ('4302', '22111576', '1350357400', None, None, None, None, None, '2729611'), ('4302', '22111576', '1350357397', None, None, None, None, None, '2729611'), ('4302', '22111576', '1350357379', None, None, None, None, None, '2729611'), ('4302', '22111576', '1350357337', None, None, None, None, None, '2729611'), ('4302', '22111576', '1350357331', None, None, None, None, None, '2729611'), ('4302', '22111576', '1350357326', None, None, None, None, None, '2729611'), ('4302', '22111576', '1350357323', None, None, None, None, None, '2729611'), ('4302', '22111576', '1350357295', None, None, None, None, None, '2729611'), ('4302', '22111576', '1350357279', None, None, None, None, None, '2729611'), ('4302', '22111576', '1350357060', None, None, None, None, None, '2729611'), ('4302', '22111576', '1350357057', None, None, None, None, None, '2729611'), ('4302', '22111576', '1350357040', None, None, None, None, None, '2729611'), ('4302', '22111576', '1350357025', None, None, None, None, None, '2729611'), ('4302', '22111576', '1350356995', None, None, None, None, None, '2729611')] time used for this insertion : 0.015717506408691406 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.3763432502746582 time spend to save output : 0.016083478927612305 total time spend for step 5 : 0.3924267292022705 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 (2729611) 2.46user 2.28system 0:14.05elapsed 33%CPU (0avgtext+0avgdata 161316maxresident)k 184inputs+13824outputs (0major+75137minor)pagefaults 0swaps