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 : 3539005 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 (2709061) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (2709061) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 21908086 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['2709061'] with mtr_portfolio_ids : ['21908086'] and first list_photo_ids : [] new path : /proc/3539005/ Name: python3 Umask: 0002 State: R (running) Tgid: 3539005 Ngid: 0 Pid: 3539005 PPid: 3539004 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3539005 NSpid: 3539005 NSpgid: 3536096 NSsid: 3536096 VmPeak: 1106932 kB VmSize: 1106932 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97076 kB VmRSS: 97076 kB RssAnon: 59752 kB RssFile: 37324 kB RssShmem: 0 kB VmData: 865680 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 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: 51 nonvoluntary_ctxt_switches: 74 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3539005', 'Ngid': '0', 'Pid': '3539005', 'PPid': '3539004', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3539005', 'NSpid': '3539005', 'NSpgid': '3536096', 'NSsid': '3536096', 'VmPeak': '1106932 kB', 'VmSize': '1106932 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97076 kB', 'VmRSS': '97076 kB', 'RssAnon': '59752 kB', 'RssFile': '37324 kB', 'RssShmem': '0 kB', 'VmData': '865680 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 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': '000000before 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, '2709061') ('4302', '21908086', '1349007281', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007262', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007258', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007162', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007151', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007138', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007132', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007123', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007098', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349006992', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349006973', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349006965', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349006940', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349006935', None, None, None, None, None, '2709061') 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, '21908086', "{'kraft': 21908088, 'Carton_brun': 21908089, 'Carton_gris': 21908090, 'metal': 21908091, 'autre_refus': 21908092, 'cartonnette': 21908093, 'environnement': 21908094, 'papier': 21908095, 'mal_croppe': 21908096, 'flou': 21908097, 'Teint_Dans_La_Masse': 21908098, 'plastique': 21908099}", None, None, None, None, '2709061'), ('4302', '21908086', '1349007281', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349007262', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349007258', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349007162', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349007151', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349007138', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349007132', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349007123', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349007098', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349006992', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349006973', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349006965', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349006940', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349006935', None, None, None, None, None, '2709061')] time used for this insertion : 2.0877106189727783 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.83082914352417 time spend to save output : 2.0881247520446777 total time spend for step 1 : 4.918953895568848 step2:final Mon Mar 31 14:09:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (21908086) 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 21908086 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1349006454,1349006423,1349006386,1349006350,1349006321,1349006678,1349006632,1349006611,1349006604,1349006586,1349006804,1349006797,1349006792,1349006785,1349006779,1349006834,1349006992,1349006973,1349006965,1349006940,1349006935,1349007162,1349007151,1349007138,1349007132,1349007123,1349007098,1349007281,1349007262,1349007258); 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([21908086]) Inside saveOutput : final : False verbose : True original output for save of step final : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ('0.024588309724476738',), 1349007151: ('0.024588309724476738',), 1349007138: ('0.024588309724476738',), 1349007132: ('0.024588309724476738',), 1349007123: ('0.024588309724476738',), 1349007098: ('0.024588309724476738',), 1349006992: ('0.024588309724476738',), 1349006973: ('0.024588309724476738',), 1349006965: ('0.024588309724476738',), 1349006940: ('0.024588309724476738',), 1349006935: ('0.024588309724476738',)} new output for save of step final : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ('0.024588309724476738',), 1349007151: ('0.024588309724476738',), 1349007138: ('0.024588309724476738',), 1349007132: ('0.024588309724476738',), 1349007123: ('0.024588309724476738',), 1349007098: ('0.024588309724476738',), 1349006992: ('0.024588309724476738',), 1349006973: ('0.024588309724476738',), 1349006965: ('0.024588309724476738',), 1349006940: ('0.024588309724476738',), 1349006935: ('0.024588309724476738',)} [1349007281, 1349007262, 1349007258, 1349007162, 1349007151, 1349007138, 1349007132, 1349007123, 1349007098, 1349006992, 1349006973, 1349006965, 1349006940, 1349006935] map_info['map_portfolio_photo'] : {21908086: [1349007281, 1349007262, 1349007258, 1349007162, 1349007151, 1349007138, 1349007132, 1349007123, 1349007098, 1349006992, 1349006973, 1349006965, 1349006940, 1349006935, 1349006834, 1349006804, 1349006797, 1349006792, 1349006785, 1349006779, 1349006678, 1349006632, 1349006611, 1349006604, 1349006586, 1349006454, 1349006423, 1349006386, 1349006350, 1349006321]} final : False mtd_id 4302 list_pids : [1349007281, 1349007262, 1349007258, 1349007162, 1349007151, 1349007138, 1349007132, 1349007123, 1349007098, 1349006992, 1349006973, 1349006965, 1349006940, 1349006935] Looping around the photos to save general results len do output : 14 /1349007281.Didn't retrieve data . /1349007262.Didn't retrieve data . /1349007258.Didn't retrieve data . /1349007162.Didn't retrieve data . /1349007151.Didn't retrieve data . /1349007138.Didn't retrieve data . /1349007132.Didn't retrieve data . /1349007123.Didn't retrieve data . /1349007098.Didn't retrieve data . /1349006992.Didn't retrieve data . /1349006973.Didn't retrieve data . /1349006965.Didn't retrieve data . /1349006940.Didn't retrieve data . /1349006935.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, '2709061') ('4302', '21908086', '1349007281', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007262', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007258', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007162', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007151', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007138', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007132', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007123', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007098', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349006992', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349006973', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349006965', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349006940', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349006935', None, None, None, None, None, '2709061') 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', '21908086', '1349007281', '0.024588309724476738', None, None, None, None, '2709061'), ('4302', '21908086', '1349007262', '0.024588309724476738', None, None, None, None, '2709061'), ('4302', '21908086', '1349007258', '0.024588309724476738', None, None, None, None, '2709061'), ('4302', '21908086', '1349007162', '0.024588309724476738', None, None, None, None, '2709061'), ('4302', '21908086', '1349007151', '0.024588309724476738', None, None, None, None, '2709061'), ('4302', '21908086', '1349007138', '0.024588309724476738', None, None, None, None, '2709061'), ('4302', '21908086', '1349007132', '0.024588309724476738', None, None, None, None, '2709061'), ('4302', '21908086', '1349007123', '0.024588309724476738', None, None, None, None, '2709061'), ('4302', '21908086', '1349007098', '0.024588309724476738', None, None, None, None, '2709061'), ('4302', '21908086', '1349006992', '0.024588309724476738', None, None, None, None, '2709061'), ('4302', '21908086', '1349006973', '0.024588309724476738', None, None, None, None, '2709061'), ('4302', '21908086', '1349006965', '0.024588309724476738', None, None, None, None, '2709061'), ('4302', '21908086', '1349006940', '0.024588309724476738', None, None, None, None, '2709061'), ('4302', '21908086', '1349006935', '0.024588309724476738', None, None, None, None, '2709061')] time used for this insertion : 0.01389002799987793 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06427550315856934 time spend to save output : 0.014592885971069336 total time spend for step 2 : 0.07886838912963867 step3:velours_tree Mon Mar 31 14:09:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {21908086: [{'kraft': 21908088, 'Carton_brun': 21908089, 'Carton_gris': 21908090, 'metal': 21908091, 'autre_refus': 21908092, 'cartonnette': 21908093, 'environnement': 21908094, 'papier': 21908095, 'mal_croppe': 21908096, 'flou': 21908097, 'Teint_Dans_La_Masse': 21908098, 'plastique': 21908099}]} input_args_next_step : {21908086: ()} output_args : {21908086: [{'kraft': 21908088, 'Carton_brun': 21908089, 'Carton_gris': 21908090, 'metal': 21908091, 'autre_refus': 21908092, 'cartonnette': 21908093, 'environnement': 21908094, 'papier': 21908095, 'mal_croppe': 21908096, 'flou': 21908097, 'Teint_Dans_La_Masse': 21908098, 'plastique': 21908099}]} args : 21908086 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 : ({'kraft': 21908088, 'Carton_brun': 21908089, 'Carton_gris': 21908090, 'metal': 21908091, 'autre_refus': 21908092, 'cartonnette': 21908093, 'environnement': 21908094, 'papier': 21908095, 'mal_croppe': 21908096, 'flou': 21908097, 'Teint_Dans_La_Masse': 21908098, 'plastique': 21908099},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21908086) 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([21908086]) 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.31548094749450684 time spend to save output : 7.677078247070312e-05 total time spend for step 3 : 0.31555771827697754 step4:send_mail_cod Mon Mar 31 14:09:03 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 : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ('0.024588309724476738',), 1349007151: ('0.024588309724476738',), 1349007138: ('0.024588309724476738',), 1349007132: ('0.024588309724476738',), 1349007123: ('0.024588309724476738',), 1349007098: ('0.024588309724476738',), 1349006992: ('0.024588309724476738',), 1349006973: ('0.024588309724476738',), 1349006965: ('0.024588309724476738',), 1349006940: ('0.024588309724476738',), 1349006935: ('0.024588309724476738',)} input_args_next_step : {1349007281: ()} output_args : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ('0.024588309724476738',), 1349007151: ('0.024588309724476738',), 1349007138: ('0.024588309724476738',), 1349007132: ('0.024588309724476738',), 1349007123: ('0.024588309724476738',), 1349007098: ('0.024588309724476738',), 1349006992: ('0.024588309724476738',), 1349006973: ('0.024588309724476738',), 1349006965: ('0.024588309724476738',), 1349006940: ('0.024588309724476738',), 1349006935: ('0.024588309724476738',)} args : 1349007281 depend.output_id : 0 input_args_next_step : {1349007281: ('0.024588309724476738',), 1349007262: ()} output_args : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ('0.024588309724476738',), 1349007151: ('0.024588309724476738',), 1349007138: ('0.024588309724476738',), 1349007132: ('0.024588309724476738',), 1349007123: ('0.024588309724476738',), 1349007098: ('0.024588309724476738',), 1349006992: ('0.024588309724476738',), 1349006973: ('0.024588309724476738',), 1349006965: ('0.024588309724476738',), 1349006940: ('0.024588309724476738',), 1349006935: ('0.024588309724476738',)} args : 1349007262 depend.output_id : 0 input_args_next_step : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ()} output_args : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ('0.024588309724476738',), 1349007151: ('0.024588309724476738',), 1349007138: ('0.024588309724476738',), 1349007132: ('0.024588309724476738',), 1349007123: ('0.024588309724476738',), 1349007098: ('0.024588309724476738',), 1349006992: ('0.024588309724476738',), 1349006973: ('0.024588309724476738',), 1349006965: ('0.024588309724476738',), 1349006940: ('0.024588309724476738',), 1349006935: ('0.024588309724476738',)} args : 1349007258 depend.output_id : 0 input_args_next_step : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ()} output_args : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ('0.024588309724476738',), 1349007151: ('0.024588309724476738',), 1349007138: ('0.024588309724476738',), 1349007132: ('0.024588309724476738',), 1349007123: ('0.024588309724476738',), 1349007098: ('0.024588309724476738',), 1349006992: ('0.024588309724476738',), 1349006973: ('0.024588309724476738',), 1349006965: ('0.024588309724476738',), 1349006940: ('0.024588309724476738',), 1349006935: ('0.024588309724476738',)} args : 1349007162 depend.output_id : 0 input_args_next_step : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ('0.024588309724476738',), 1349007151: ()} output_args : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ('0.024588309724476738',), 1349007151: ('0.024588309724476738',), 1349007138: ('0.024588309724476738',), 1349007132: ('0.024588309724476738',), 1349007123: ('0.024588309724476738',), 1349007098: ('0.024588309724476738',), 1349006992: ('0.024588309724476738',), 1349006973: ('0.024588309724476738',), 1349006965: ('0.024588309724476738',), 1349006940: ('0.024588309724476738',), 1349006935: ('0.024588309724476738',)} args : 1349007151 depend.output_id : 0 input_args_next_step : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ('0.024588309724476738',), 1349007151: ('0.024588309724476738',), 1349007138: ()} output_args : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ('0.024588309724476738',), 1349007151: ('0.024588309724476738',), 1349007138: ('0.024588309724476738',), 1349007132: ('0.024588309724476738',), 1349007123: ('0.024588309724476738',), 1349007098: ('0.024588309724476738',), 1349006992: ('0.024588309724476738',), 1349006973: ('0.024588309724476738',), 1349006965: ('0.024588309724476738',), 1349006940: ('0.024588309724476738',), 1349006935: ('0.024588309724476738',)} args : 1349007138 depend.output_id : 0 input_args_next_step : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ('0.024588309724476738',), 1349007151: ('0.024588309724476738',), 1349007138: ('0.024588309724476738',), 1349007132: ()} output_args : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ('0.024588309724476738',), 1349007151: ('0.024588309724476738',), 1349007138: ('0.024588309724476738',), 1349007132: ('0.024588309724476738',), 1349007123: ('0.024588309724476738',), 1349007098: ('0.024588309724476738',), 1349006992: ('0.024588309724476738',), 1349006973: ('0.024588309724476738',), 1349006965: ('0.024588309724476738',), 1349006940: ('0.024588309724476738',), 1349006935: ('0.024588309724476738',)} args : 1349007132 depend.output_id : 0 input_args_next_step : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ('0.024588309724476738',), 1349007151: ('0.024588309724476738',), 1349007138: ('0.024588309724476738',), 1349007132: ('0.024588309724476738',), 1349007123: ()} output_args : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ('0.024588309724476738',), 1349007151: ('0.024588309724476738',), 1349007138: ('0.024588309724476738',), 1349007132: ('0.024588309724476738',), 1349007123: ('0.024588309724476738',), 1349007098: ('0.024588309724476738',), 1349006992: ('0.024588309724476738',), 1349006973: ('0.024588309724476738',), 1349006965: ('0.024588309724476738',), 1349006940: ('0.024588309724476738',), 1349006935: ('0.024588309724476738',)} args : 1349007123 depend.output_id : 0 input_args_next_step : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ('0.024588309724476738',), 1349007151: ('0.024588309724476738',), 1349007138: ('0.024588309724476738',), 1349007132: ('0.024588309724476738',), 1349007123: ('0.024588309724476738',), 1349007098: ()} output_args : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ('0.024588309724476738',), 1349007151: ('0.024588309724476738',), 1349007138: ('0.024588309724476738',), 1349007132: ('0.024588309724476738',), 1349007123: ('0.024588309724476738',), 1349007098: ('0.024588309724476738',), 1349006992: ('0.024588309724476738',), 1349006973: ('0.024588309724476738',), 1349006965: ('0.024588309724476738',), 1349006940: ('0.024588309724476738',), 1349006935: ('0.024588309724476738',)} args : 1349007098 depend.output_id : 0 input_args_next_step : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ('0.024588309724476738',), 1349007151: ('0.024588309724476738',), 1349007138: ('0.024588309724476738',), 1349007132: ('0.024588309724476738',), 1349007123: ('0.024588309724476738',), 1349007098: ('0.024588309724476738',), 1349006992: ()} output_args : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ('0.024588309724476738',), 1349007151: ('0.024588309724476738',), 1349007138: ('0.024588309724476738',), 1349007132: ('0.024588309724476738',), 1349007123: ('0.024588309724476738',), 1349007098: ('0.024588309724476738',), 1349006992: ('0.024588309724476738',), 1349006973: ('0.024588309724476738',), 1349006965: ('0.024588309724476738',), 1349006940: ('0.024588309724476738',), 1349006935: ('0.024588309724476738',)} args : 1349006992 depend.output_id : 0 input_args_next_step : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ('0.024588309724476738',), 1349007151: ('0.024588309724476738',), 1349007138: ('0.024588309724476738',), 1349007132: ('0.024588309724476738',), 1349007123: ('0.024588309724476738',), 1349007098: ('0.024588309724476738',), 1349006992: ('0.024588309724476738',), 1349006973: ()} output_args : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ('0.024588309724476738',), 1349007151: ('0.024588309724476738',), 1349007138: ('0.024588309724476738',), 1349007132: ('0.024588309724476738',), 1349007123: ('0.024588309724476738',), 1349007098: ('0.024588309724476738',), 1349006992: ('0.024588309724476738',), 1349006973: ('0.024588309724476738',), 1349006965: ('0.024588309724476738',), 1349006940: ('0.024588309724476738',), 1349006935: ('0.024588309724476738',)} args : 1349006973 depend.output_id : 0 input_args_next_step : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ('0.024588309724476738',), 1349007151: ('0.024588309724476738',), 1349007138: ('0.024588309724476738',), 1349007132: ('0.024588309724476738',), 1349007123: ('0.024588309724476738',), 1349007098: ('0.024588309724476738',), 1349006992: ('0.024588309724476738',), 1349006973: ('0.024588309724476738',), 1349006965: ()} output_args : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ('0.024588309724476738',), 1349007151: ('0.024588309724476738',), 1349007138: ('0.024588309724476738',), 1349007132: ('0.024588309724476738',), 1349007123: ('0.024588309724476738',), 1349007098: ('0.024588309724476738',), 1349006992: ('0.024588309724476738',), 1349006973: ('0.024588309724476738',), 1349006965: ('0.024588309724476738',), 1349006940: ('0.024588309724476738',), 1349006935: ('0.024588309724476738',)} args : 1349006965 depend.output_id : 0 input_args_next_step : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ('0.024588309724476738',), 1349007151: ('0.024588309724476738',), 1349007138: ('0.024588309724476738',), 1349007132: ('0.024588309724476738',), 1349007123: ('0.024588309724476738',), 1349007098: ('0.024588309724476738',), 1349006992: ('0.024588309724476738',), 1349006973: ('0.024588309724476738',), 1349006965: ('0.024588309724476738',), 1349006940: ()} output_args : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ('0.024588309724476738',), 1349007151: ('0.024588309724476738',), 1349007138: ('0.024588309724476738',), 1349007132: ('0.024588309724476738',), 1349007123: ('0.024588309724476738',), 1349007098: ('0.024588309724476738',), 1349006992: ('0.024588309724476738',), 1349006973: ('0.024588309724476738',), 1349006965: ('0.024588309724476738',), 1349006940: ('0.024588309724476738',), 1349006935: ('0.024588309724476738',)} args : 1349006940 depend.output_id : 0 input_args_next_step : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ('0.024588309724476738',), 1349007151: ('0.024588309724476738',), 1349007138: ('0.024588309724476738',), 1349007132: ('0.024588309724476738',), 1349007123: ('0.024588309724476738',), 1349007098: ('0.024588309724476738',), 1349006992: ('0.024588309724476738',), 1349006973: ('0.024588309724476738',), 1349006965: ('0.024588309724476738',), 1349006940: ('0.024588309724476738',), 1349006935: ()} output_args : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ('0.024588309724476738',), 1349007151: ('0.024588309724476738',), 1349007138: ('0.024588309724476738',), 1349007132: ('0.024588309724476738',), 1349007123: ('0.024588309724476738',), 1349007098: ('0.024588309724476738',), 1349006992: ('0.024588309724476738',), 1349006973: ('0.024588309724476738',), 1349006965: ('0.024588309724476738',), 1349006940: ('0.024588309724476738',), 1349006935: ('0.024588309724476738',)} args : 1349006935 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 : {21908086: [{'kraft': 21908088, 'Carton_brun': 21908089, 'Carton_gris': 21908090, 'metal': 21908091, 'autre_refus': 21908092, 'cartonnette': 21908093, 'environnement': 21908094, 'papier': 21908095, 'mal_croppe': 21908096, 'flou': 21908097, 'Teint_Dans_La_Masse': 21908098, 'plastique': 21908099}]} input_args_next_step : {1349007281: ('0.024588309724476738',), 1349007262: ('0.024588309724476738',), 1349007258: ('0.024588309724476738',), 1349007162: ('0.024588309724476738',), 1349007151: ('0.024588309724476738',), 1349007138: ('0.024588309724476738',), 1349007132: ('0.024588309724476738',), 1349007123: ('0.024588309724476738',), 1349007098: ('0.024588309724476738',), 1349006992: ('0.024588309724476738',), 1349006973: ('0.024588309724476738',), 1349006965: ('0.024588309724476738',), 1349006940: ('0.024588309724476738',), 1349006935: ('0.024588309724476738',), 21908086: ()} output_args : {21908086: [{'kraft': 21908088, 'Carton_brun': 21908089, 'Carton_gris': 21908090, 'metal': 21908091, 'autre_refus': 21908092, 'cartonnette': 21908093, 'environnement': 21908094, 'papier': 21908095, 'mal_croppe': 21908096, 'flou': 21908097, 'Teint_Dans_La_Masse': 21908098, 'plastique': 21908099}]} args : 21908086 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.024588309724476738',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21908086) 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 (1349007281,1349007262,1349007258,1349007162,1349007151,1349007138,1349007132,1349007123,1349007098,1349006992,1349006973,1349006965,1349006940,1349006935) Found this number of photos: 14 ##### Call download_photos : nb_thread : 5 begin to download photo : 1349006935 begin to download photo : 1349006973 begin to download photo : 1349007123 begin to download photo : 1349007151 begin to download photo : 1349007262 download finish for photo 1349007123 begin to download photo : 1349007132 download finish for photo 1349007151 begin to download photo : 1349007162 download finish for photo 1349006935 begin to download photo : 1349006940 download finish for photo 1349006973 begin to download photo : 1349006992 download finish for photo 1349007262 begin to download photo : 1349007281 download finish for photo 1349006992 begin to download photo : 1349007098 download finish for photo 1349007162 begin to download photo : 1349007258 download finish for photo 1349006940 begin to download photo : 1349006965 download finish for photo 1349007281 download finish for photo 1349007132 begin to download photo : 1349007138 download finish for photo 1349007098 download finish for photo 1349007258 download finish for photo 1349006965 download finish for photo 1349007138 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette219080881743422943/ imagette219080911743422943/ imagette219080921743422943/ length of list_filenames : 14 ; length of list_pids : 14 ; length of list_args : 14 results_Auto_P21908086_31-03-2025_14_09_03.pdf 21908088 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=21908088 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219080881743422943 21908091 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=21908091 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219080911743422943 21908092 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=21908092 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219080921743422943 21908093 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=21908093 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349006882: '1743422711_3486486_1349006632_96a3377082138b156bf6f58517cbbb9f_rle_crop_3741055065_0.png', 1349007216: '1743422833_3488234_1349006350_de75e7dc09b3c6d06fe800140074b559_rle_crop_3741059080_0.png', 1349007217: '1743422833_3488234_1349006321_247a5c3b7617a47735659041c0fe28c4_rle_crop_3741059095_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/38d8e847360d67f24cb63c9ec6fed80c_90157226.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/1f8248e9a7a92a81a1ad039031e07e12_72296229.png change filename to text .imagette219080931743422943/ imagette219080931743422943/1743422833_3488234_1349006321_247a5c3b7617a47735659041c0fe28c4_rle_crop_3741059095_0.png.png imagette219080931743422943/1743422833_3488234_1349006350_de75e7dc09b3c6d06fe800140074b559_rle_crop_3741059080_0.png.png imagette219080931743422943/1743422711_3486486_1349006632_96a3377082138b156bf6f58517cbbb9f_rle_crop_3741055065_0.png.png imagette219080961743422943/ imagette219080971743422943/ imagette219080991743422943/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/b1fd0bce2e19d0e2cdddc390b62afced_36844226.png imagette219080931743422943 21908096 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=21908096 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219080961743422943 21908097 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=21908097 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219080971743422943 21908099 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=21908099 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette219080991743422943 21908089 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=21908089 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349006894: '1743422711_3486486_1349006604_f60274a9f473478e95fa1e9bcd28d46a_rle_crop_3741055092_0.png', 1349007168: '1743422812_3488010_1349006834_4b3cc9bcaada4968dde87761989ea2e9_rle_crop_3741058316_0.png', 1349007169: '1743422812_3488010_1349006797_7144dede83d3488b89257c51ddd6878c_rle_crop_3741058328_0.png', 1349007170: '1743422812_3488010_1349006797_7144dede83d3488b89257c51ddd6878c_rle_crop_3741058327_0.png', 1349007218: '1743422833_3488234_1349006386_e0c44da240a3e60914825a2a25c76438_rle_crop_3741059068_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/4af470ae85e8f43a7d9ffb16e65d5bb7_77027840.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/0a3f824c6c879fd7addff3ef1c18ed39_92515689.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/c326ba5393060724ea8b53962597ecca_96794351.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/03a76c85995e6a8db33b87a6e1a5c2e3_35228553.png change filename to text .imagette219080891743422943/ imagette219080891743422943/1743422812_3488010_1349006797_7144dede83d3488b89257c51ddd6878c_rle_crop_3741058327_0.png.png imagette219080891743422943/1743422833_3488234_1349006386_e0c44da240a3e60914825a2a25c76438_rle_crop_3741059068_0.png.png imagette219080891743422943/1743422812_3488010_1349006834_4b3cc9bcaada4968dde87761989ea2e9_rle_crop_3741058316_0.png.png imagette219080891743422943/1743422711_3486486_1349006604_f60274a9f473478e95fa1e9bcd28d46a_rle_crop_3741055092_0.png.png imagette219080891743422943/1743422812_3488010_1349006797_7144dede83d3488b89257c51ddd6878c_rle_crop_3741058328_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/9ad9353802c1d5b454f8f2abfe3881ac_59749809.png imagette219080891743422943 21908090 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=21908090 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349007215: '1743422833_3488234_1349006350_de75e7dc09b3c6d06fe800140074b559_rle_crop_3741059083_0.png'} change filename to text .imagette219080901743422944/ imagette219080901743422944/1743422833_3488234_1349006350_de75e7dc09b3c6d06fe800140074b559_rle_crop_3741059083_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/eaef85ffe11d2e65f4b06a6102c17d67_21286540.png imagette219080901743422944 21908098 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=21908098 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1349007164: '1743422812_3488010_1349006797_7144dede83d3488b89257c51ddd6878c_rle_crop_3741058324_0.png', 1349007165: '1743422812_3488010_1349006792_b27f3257d53f7600586b7e568ad2f6ee_rle_crop_3741058336_0.png', 1349007166: '1743422812_3488010_1349006785_ef43492b04b4339cb9d11a51057b7ac4_rle_crop_3741058346_0.png', 1349007213: '1743422833_3488234_1349006678_10a24c5158ccc98dbc08d5b6cd91b2ed_rle_crop_3741059027_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/cf816ee5d37822531e280cad22b77a55_77408978.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/68c5a174ae415e554b64edaf90b4fcc5_65192449.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/ac85ae77c215dc8c7bf3b8581ca8702a_78401950.png change filename to text .imagette219080981743422944/ imagette219080981743422944/1743422812_3488010_1349006785_ef43492b04b4339cb9d11a51057b7ac4_rle_crop_3741058346_0.png.png imagette219080981743422944/1743422812_3488010_1349006792_b27f3257d53f7600586b7e568ad2f6ee_rle_crop_3741058336_0.png.png imagette219080981743422944/1743422833_3488234_1349006678_10a24c5158ccc98dbc08d5b6cd91b2ed_rle_crop_3741059027_0.png.png imagette219080981743422944/1743422812_3488010_1349006797_7144dede83d3488b89257c51ddd6878c_rle_crop_3741058324_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/fe2bff9f97d28f614ce907882d0cade3_76668052.png imagette219080981743422944 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=21908086 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/21908100,21908101,21908102,21908103,21908104,21908105,21908106,21908107,21908108,21908109,21908110,21908111?tags=kraft,Carton_brun,Carton_gris,metal,autre_refus,cartonnette,environnement,papier,mal_croppe,flou,Teint_Dans_La_Masse,plastique your option no_mail is active, we will not send the real mail to your client args[1349007281] : ('0.024588309724476738',) no score found for photo 1349007281 We are sending mail with results at report@fotonower.com args[1349007262] : ('0.024588309724476738',) no score found for photo 1349007262 We are sending mail with results at report@fotonower.com args[1349007258] : ('0.024588309724476738',) no score found for photo 1349007258 We are sending mail with results at report@fotonower.com args[1349007162] : ('0.024588309724476738',) no score found for photo 1349007162 We are sending mail with results at report@fotonower.com args[1349007151] : ('0.024588309724476738',) no score found for photo 1349007151 We are sending mail with results at report@fotonower.com args[1349007138] : ('0.024588309724476738',) no score found for photo 1349007138 We are sending mail with results at report@fotonower.com args[1349007132] : ('0.024588309724476738',) no score found for photo 1349007132 We are sending mail with results at report@fotonower.com args[1349007123] : ('0.024588309724476738',) no score found for photo 1349007123 We are sending mail with results at report@fotonower.com args[1349007098] : ('0.024588309724476738',) no score found for photo 1349007098 We are sending mail with results at report@fotonower.com args[1349006992] : ('0.024588309724476738',) no score found for photo 1349006992 We are sending mail with results at report@fotonower.com args[1349006973] : ('0.024588309724476738',) no score found for photo 1349006973 We are sending mail with results at report@fotonower.com args[1349006965] : ('0.024588309724476738',) no score found for photo 1349006965 We are sending mail with results at report@fotonower.com args[1349006940] : ('0.024588309724476738',) no score found for photo 1349006940 We are sending mail with results at report@fotonower.com args[1349006935] : ('0.024588309724476738',) no score found for photo 1349006935 We are sending mail with results at report@fotonower.com refus_total : 0.024588309724476738 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=21908086 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_P21908086_31-03-2025_14_09_03.pdf results_Auto_P21908086_31-03-2025_14_09_03.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21908086_31-03-2025_14_09_03.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','21908086','results_Auto_P21908086_31-03-2025_14_09_03.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21908086_31-03-2025_14_09_03.pdf','pdf','','0.15','0.024588309724476738') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21908086]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1349007281, 1349007262, 1349007258, 1349007162, 1349007151, 1349007138, 1349007132, 1349007123, 1349007098, 1349006992, 1349006973, 1349006965, 1349006940, 1349006935] map_info['map_portfolio_photo'] : {21908086: [1349007281, 1349007262, 1349007258, 1349007162, 1349007151, 1349007138, 1349007132, 1349007123, 1349007098, 1349006992, 1349006973, 1349006965, 1349006940, 1349006935, 1349006834, 1349006804, 1349006797, 1349006792, 1349006785, 1349006779, 1349006678, 1349006632, 1349006611, 1349006604, 1349006586, 1349006454, 1349006423, 1349006386, 1349006350, 1349006321]} final : False mtd_id 4302 list_pids : [1349007281, 1349007262, 1349007258, 1349007162, 1349007151, 1349007138, 1349007132, 1349007123, 1349007098, 1349006992, 1349006973, 1349006965, 1349006940, 1349006935] 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, '2709061') ('4302', '21908086', '1349007281', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007262', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007258', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007162', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007151', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007138', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007132', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007123', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007098', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349006992', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349006973', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349006965', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349006940', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349006935', None, None, None, None, None, '2709061') 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', '21908086', '1349007281', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349007262', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349007258', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349007162', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349007151', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349007138', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349007132', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349007123', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349007098', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349006992', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349006973', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349006965', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349006940', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349006935', None, None, None, None, None, '2709061')] time used for this insertion : 0.014992713928222656 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.704540252685547 time spend to save output : 0.015225887298583984 total time spend for step 4 : 2.719766139984131 step5:split_time_score Mon Mar 31 14:09:05 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['21908086'] 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 : [('21908086',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (21908086) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1349007262: {'path': 'temp/1743422943_3539005_1349007262_3bfee3d09caba45ef1d869a6e5a93504.jpg', 'extension': 'jpg'}, 1349007281: {'path': 'temp/1743422943_3539005_1349007281_c928dc4ab43c3384ba0e1b92308b7238.jpg', 'extension': 'jpg'}, 1349006973: {'path': 'temp/1743422943_3539005_1349006973_7a6476d4e47be90d91f78a77892518cc.jpg', 'extension': 'jpg'}, 1349006992: {'path': 'temp/1743422943_3539005_1349006992_49921f7bf706569d86bdf3a9450e4c87.jpg', 'extension': 'jpg'}, 1349007098: {'path': 'temp/1743422943_3539005_1349007098_16b8827c4f9fbbeb296ea4ac65b3a738.jpg', 'extension': 'jpg'}, 1349007151: {'path': 'temp/1743422943_3539005_1349007151_e4b8cb1d4fdab5ea2b3e906d70065ed2.jpg', 'extension': 'jpg'}, 1349007162: {'path': 'temp/1743422943_3539005_1349007162_96c85c9f143487c1b1b6e7b25c105214.jpg', 'extension': 'jpg'}, 1349007258: {'path': 'temp/1743422943_3539005_1349007258_fbde438e76dac8b76ebc5db48d86a749.jpg', 'extension': 'jpg'}, 1349006935: {'path': 'temp/1743422943_3539005_1349006935_4426c86d2ef99c16220705a071ac93d5.jpg', 'extension': 'jpg'}, 1349006940: {'path': 'temp/1743422943_3539005_1349006940_3670fff6c29e28d72b1a163a8e016829.jpg', 'extension': 'jpg'}, 1349006965: {'path': 'temp/1743422943_3539005_1349006965_7bcfceb006c67b9704f221295d19d8f9.jpg', 'extension': 'jpg'}, 1349007123: {'path': 'temp/1743422943_3539005_1349007123_a3718e0c2420aadcd76fd9a33afec272.jpg', 'extension': 'jpg'}, 1349007132: {'path': 'temp/1743422943_3539005_1349007132_bfc9b1456a5621b1544371d4df645655.jpg', 'extension': 'jpg'}, 1349007138: {'path': 'temp/1743422943_3539005_1349007138_91703f0198ea4ce9ff79b8e56bd4aae9.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 = 21908086; (('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 = 21908086 group by h (('14', 30),) 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=21908086 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 (21908086) 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 (21908086) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 31032025 21908086 Nombre de photos uploadées : 30 / 23040 (0%) 31032025 21908086 Nombre de photos taguées (types de déchets): 0 / 30 (0%) 31032025 21908086 Nombre de photos taguées (volume) : 0 / 30 (0%) [{'photo_id': 1349006454, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/ca3e467ece13008b011db9abb1c0f5ad.jpg', 'username': None, 'uploaded_at': 1743422527, 'text': 'image_31032025_14_01_04_10142.jpg'}, {'photo_id': 1349006423, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/4ebdd827d26ccbcd024aa9893045f71a.jpg', 'username': None, 'uploaded_at': 1743422527, 'text': 'image_31032025_14_01_14_10138.jpg'}, {'photo_id': 1349006386, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/e0c44da240a3e60914825a2a25c76438.jpg', 'username': None, 'uploaded_at': 1743422527, 'text': 'image_31032025_14_01_24_10137.jpg'}, {'photo_id': 1349006350, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/3/31/de75e7dc09b3c6d06fe800140074b559.jpg', 'username': None, 'uploaded_at': 1743422527, 'text': 'image_31032025_14_01_34_10144.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ?????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0012323856353759766 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 21908086, '2025-03-31' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1702716,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02164316177368164 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= 1702716 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1702716, 'dashboard_run_id': 1711260, 'mtr_portfolio_id': 21907306, 'dashboard_result_id': 9756588, '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_P21907306_31-03-2025_13_46_43.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21907309, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21907310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21907311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21907312, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21907313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21907314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21907315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21907316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21907317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21907318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21907319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21907320, 'pht': 3726}}"}, {'dashboat_entry_day': 1702716, 'dashboard_run_id': 1711260, 'mtr_portfolio_id': 21907627, 'dashboard_result_id': 9756589, '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_P21907627_31-03-2025_14_05_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21907629, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21907630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21907631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21907632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21907633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21907634, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21907635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21907636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21907637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21907638, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21907639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21907640, 'pht': 3726}}"}, {'dashboat_entry_day': 1702716, 'dashboard_run_id': 1711260, 'mtr_portfolio_id': 21908086, 'dashboard_result_id': 9756590, '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_P21908086_31-03-2025_14_06_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21908088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21908089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21908090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21908091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21908092, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21908093, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21908094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21908095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21908096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21908097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21908098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21908099, '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 = 21907306 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': 2708971, 'mtr_portfolio_id': 21907306, 'created_at': datetime.datetime(2025, 3, 31, 13, 46, 37), 'result': '0.0510025409211988', 'result_long': None, 'result_double': None}] Qualite : 0.0510025409211988 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21907306 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21907306_31-03-2025_13_46_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21907306 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_P21907306_31-03-2025_13_46_43.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21907309, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21907310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21907311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21907312, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21907313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21907314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21907315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21907316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21907317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21907318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21907319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21907320, 'pht': 3726}}" where mtr_portfolio_id = 21907306 and dashboard_run_id = 1711260 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`=21907306 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9756588, 0.0510025409211988, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21907306_31-03-2025_13_46_43.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21907309, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21907310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21907311, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21907312, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21907313, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21907314, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21907315, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21907316, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21907317, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21907318, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21907319, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21907320, '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 = 21907627 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': 2708999, 'mtr_portfolio_id': 21907627, 'created_at': datetime.datetime(2025, 3, 31, 14, 5, 31), 'result': '0.07949287031517037', 'result_long': None, 'result_double': None}] Qualite : 0.07949287031517037 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21907627 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21907627_31-03-2025_14_05_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21907627 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_P21907627_31-03-2025_14_05_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21907629, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21907630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21907631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21907632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21907633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21907634, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21907635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21907636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21907637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21907638, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21907639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21907640, 'pht': 3726}}" where mtr_portfolio_id = 21907627 and dashboard_run_id = 1711260 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`=21907627 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9756589, 0.07949287031517037, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21907627_31-03-2025_14_05_31.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21907629, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21907630, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21907631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21907632, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21907633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21907634, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21907635, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21907636, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21907637, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21907638, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21907639, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21907640, '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 = 21908086 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': 2709061, 'mtr_portfolio_id': 21908086, 'created_at': datetime.datetime(2025, 3, 31, 14, 9, 2), 'result': '0.024588309724476738', 'result_long': None, 'result_double': None}] Qualite : 0.024588309724476738 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 21908086 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21908086_31-03-2025_14_09_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 21908086 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_P21908086_31-03-2025_14_09_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21908088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21908089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21908090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21908091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21908092, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21908093, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21908094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21908095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21908096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21908097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21908098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21908099, 'pht': 3726}}" where mtr_portfolio_id = 21908086 and dashboard_run_id = 1711260 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`=21908086 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (9756590, 0.024588309724476738, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P21908086_31-03-2025_14_09_03.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 21908088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 21908089, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 21908090, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 21908091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 21908092, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 21908093, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 21908094, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 21908095, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 21908096, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 21908097, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 21908098, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 21908099, '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 (21907306,21907627,21908086) result : ((1349002379,), (1349002737,), (1349002739,), (1349002791,), (1349002833,), (1349002837,), (1349002841,), (1349002845,), (1349002908,), (1349002913,), (1349002916,), (1349002919,), (1349002966,), (1349002969,), (1349002973,), (1349003023,), (1349003024,), (1349003029,), (1349003032,), (1349003094,), (1349003102,), (1349003125,), (1349003127,), (1349003299,), (1349003410,), (1349003442,), (1349003445,), (1349003449,), (1349003514,), (1349003516,), (1349003534,), (1349003605,), (1349003613,), (1349003695,), (1349003707,), (1349003750,), (1349003753,), (1349003957,), (1349003960,), (1349003965,), (1349003970,), (1349004018,), (1349004020,), (1349004022,), (1349004024,), (1349004027,), (1349004054,), (1349004058,), (1349004063,), (1349004070,), (1349004104,), (1349004107,), (1349004110,), (1349004113,), (1349004117,), (1349004142,), (1349004146,), (1349004150,), (1349004153,), (1349004161,), (1349004164,), (1349004192,), (1349004202,), (1349004204,), (1349004209,), (1349004213,), (1349004237,), (1349004242,), (1349004480,), (1349004532,), (1349004584,), (1349004637,), (1349005507,), (1349005543,), (1349005594,), (1349005647,), (1349005707,), (1349005771,), (1349005911,), (1349005995,), (1349006485,), (1349006321,), (1349006350,), (1349006386,), (1349006423,), (1349006454,), (1349006586,), (1349006604,), (1349006611,), (1349006632,), (1349006678,), (1349006779,), (1349006785,), (1349006792,), (1349006797,), (1349006804,), (1349006834,), (1349006935,), (1349006940,), (1349006965,), (1349006973,), (1349006992,), (1349007098,), (1349007123,), (1349007132,), (1349007138,), (1349007151,), (1349007162,), (1349007258,), (1349007262,), (1349007281,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'31032025': {'nb_upload': 30, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([21908086]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1349007281, 1349007262, 1349007258, 1349007162, 1349007151, 1349007138, 1349007132, 1349007123, 1349007098, 1349006992, 1349006973, 1349006965, 1349006940, 1349006935] map_info['map_portfolio_photo'] : {21908086: [1349007281, 1349007262, 1349007258, 1349007162, 1349007151, 1349007138, 1349007132, 1349007123, 1349007098, 1349006992, 1349006973, 1349006965, 1349006940, 1349006935, 1349006834, 1349006804, 1349006797, 1349006792, 1349006785, 1349006779, 1349006678, 1349006632, 1349006611, 1349006604, 1349006586, 1349006454, 1349006423, 1349006386, 1349006350, 1349006321]} final : True mtd_id 4302 list_pids : [1349007281, 1349007262, 1349007258, 1349007162, 1349007151, 1349007138, 1349007132, 1349007123, 1349007098, 1349006992, 1349006973, 1349006965, 1349006940, 1349006935] Looping around the photos to save general results len do output : 1 /21908086Didn'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, '2709061') ('4302', '21908086', '1349007281', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007262', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007258', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007162', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007151', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007138', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007132', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007123', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349007098', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349006992', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349006973', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349006965', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349006940', None, None, None, None, None, '2709061') ('4302', None, None, None, None, None, None, None, '2709061') ('4302', '21908086', '1349006935', None, None, None, None, None, '2709061') 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, '21908086', 'None', None, None, None, None, '2709061'), ('4302', '21908086', '1349007281', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349007262', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349007258', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349007162', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349007151', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349007138', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349007132', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349007123', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349007098', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349006992', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349006973', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349006965', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349006940', None, None, None, None, None, '2709061'), ('4302', '21908086', '1349006935', None, None, None, None, None, '2709061')] time used for this insertion : 4.027394771575928 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.27921342849731445 time spend to save output : 4.027703285217285 total time spend for step 5 : 4.3069167137146 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 (2709061) 2.21user 2.59system 0:15.40elapsed 31%CPU (0avgtext+0avgdata 159460maxresident)k 40inputs+8296outputs (17major+64317minor)pagefaults 0swaps