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 : 2149706 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 (3687840) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3687840) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26709303 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3687840'] with mtr_portfolio_ids : ['26709303'] and first list_photo_ids : [] new path : /proc/2149706/ Name: python3 Umask: 0002 State: R (running) Tgid: 2149706 Ngid: 0 Pid: 2149706 PPid: 2149705 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2149706 NSpid: 2149706 NSpgid: 2147580 NSsid: 2147580 VmPeak: 1107248 kB VmSize: 1107248 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99276 kB VmRSS: 99276 kB RssAnon: 60156 kB RssFile: 39120 kB RssShmem: 0 kB VmData: 866000 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 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: 53 nonvoluntary_ctxt_switches: 66 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2149706', 'Ngid': '0', 'Pid': '2149706', 'PPid': '2149705', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2149706', 'NSpid': '2149706', 'NSpgid': '2147580', 'NSsid': '2147580', 'VmPeak': '1107248 kB', 'VmSize': '1107248 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99276 kB', 'VmRSS': '99276 kB', 'RssAnon': '60156 kB', 'RssFile': '39120 kB', 'RssShmem': '0 kB', 'VmData': '866000 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', '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': '53', 'nonvoluntary_ctxt_switches': '66'} ('datou_batch_current', '2149706', '1107248', '0', '1107248', '866000', '99276', b'', 'marlene', '3687840') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou 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 List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (26709303) and hide_status = 0 ) AND ph.photo_id not in (SELECT mtr_photo_id from MTRPhoto.mtr_datou_result_search where mtr_current_id in (3687840 ) ) ORDER BY ph.photo_id DESC LIMIT 0, 200 We have 1 , {} SELECT mtr_photo_id, mtr_portfolio_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (26709303) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1382870058, 'portfolio_id': 26709303}, {'photo_id': 1382870055, 'portfolio_id': 26709303}, {'photo_id': 1382870053, 'portfolio_id': 26709303}, {'photo_id': 1382870046, 'portfolio_id': 26709303}, {'photo_id': 1382870042, 'portfolio_id': 26709303}, {'photo_id': 1382870034, 'portfolio_id': 26709303}, {'photo_id': 1382870029, 'portfolio_id': 26709303}, {'photo_id': 1382870024, 'portfolio_id': 26709303}, {'photo_id': 1382870020, 'portfolio_id': 26709303}, {'photo_id': 1382870015, 'portfolio_id': 26709303}, {'photo_id': 1382870014, 'portfolio_id': 26709303}, {'photo_id': 1382869993, 'portfolio_id': 26709303}, {'photo_id': 1382869973, 'portfolio_id': 26709303}, {'photo_id': 1382869960, 'portfolio_id': 26709303}, {'photo_id': 1382869940, 'portfolio_id': 26709303}, {'photo_id': 1382869926, 'portfolio_id': 26709303}, {'photo_id': 1382869920, 'portfolio_id': 26709303}, {'photo_id': 1382869551, 'portfolio_id': 26709303}, {'photo_id': 1382869519, 'portfolio_id': 26709303}, {'photo_id': 1382869457, 'portfolio_id': 26709303}, {'photo_id': 1382869414, 'portfolio_id': 26709303}, {'photo_id': 1382869025, 'portfolio_id': 26709303}, {'photo_id': 1382868934, 'portfolio_id': 26709303}, {'photo_id': 1382868842, 'portfolio_id': 26709303}, {'photo_id': 1382868748, 'portfolio_id': 26709303}, {'photo_id': 1382868665, 'portfolio_id': 26709303}, {'photo_id': 1382868579, 'portfolio_id': 26709303}, {'photo_id': 1382868016, 'portfolio_id': 26709303}, {'photo_id': 1382867955, 'portfolio_id': 26709303}, {'photo_id': 1382867897, 'portfolio_id': 26709303}, {'photo_id': 1382867829, 'portfolio_id': 26709303}] map_portfolio_id_photo_id: {26709303: [1382870058, 1382870055, 1382870053, 1382870046, 1382870042, 1382870034, 1382870029, 1382870024, 1382870020, 1382870015, 1382870014, 1382869993, 1382869973, 1382869960, 1382869940, 1382869926, 1382869920, 1382869551, 1382869519, 1382869457, 1382869414, 1382869025, 1382868934, 1382868842, 1382868748, 1382868665, 1382868579, 1382868016, 1382867955, 1382867897, 1382867829]} ##### Call download_photos : nb_thread : 1 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos ##### After load_data_input time to download the photos : 0.013870954513549805 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Wed Sep 10 03:06:58 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 After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26709303) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} beginning of datou step ventilate_hashtags_in_portfolio : To implement ! To do loadFromThcl(), then load ParamDescType : thcl2725 get_desc_type_from_thcl : type of cat SELECT id, mtr_user_id, name, pb_hashtag_id, hashtag_id_list, button_legend_list, portfolio_id_lists, photo_hashtag_type, photo_desc_type, svm_limit, limit_tagging, is_public, live, created_at, updated_at, type_classification FROM MTRDatou.classification_theme WHERE `id` IN (2725) thcls : [{'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'}] thcl {'id': 2725, 'mtr_user_id': 31, 'name': 'learn_qualipapia_rle_210302_2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,environnement,kraft,metal,papier,plastique', 'svm_portfolios_learning': '3460440,3460441,3460446,3460434,3460439,3467416,3460442,3460443,3486028,3460445', 'photo_hashtag_type': 3410, 'photo_desc_type': 5186, 'type_classification': 'caffe', 'hashtag_id_list': '2107753024,2107753020,2107752385,2107752406,702398920,493012381,493202403,492628673,492668766,492725882'} Update svm_hashtag_type_desc : 5186 remove imagettes from duplicated photo Iterating over portfolio : 26709303 get user id for portfolio 26709303 get sub ptf for main ptf 26709303, type 3726 and hashtags ['kraft', 'environnement', 'Teint_Dans_La_Masse', 'plastique', 'metal', 'mal_croppe', 'Carton_gris', 'autre_refus', 'cartonnette', 'papier', 'flou', 'Carton_brun'] 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`=26709303 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','environnement','Teint_Dans_La_Masse','plastique','metal','mal_croppe','Carton_gris','autre_refus','cartonnette','papier','flou','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26709303 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','environnement','Teint_Dans_La_Masse','plastique','metal','mal_croppe','Carton_gris','autre_refus','cartonnette','papier','flou','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 26709303, 'sub_port_id': 26709339, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18006313, 'last_updated_at': datetime.datetime(2025, 9, 10, 3, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 3, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 3, 3, 28)}, 'Carton_gris': {'main_port_id': 26709303, 'sub_port_id': 26709340, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18006314, 'last_updated_at': datetime.datetime(2025, 9, 10, 3, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 3, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 3, 3, 28)}, 'metal': {'main_port_id': 26709303, 'sub_port_id': 26709341, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18006315, 'last_updated_at': datetime.datetime(2025, 9, 10, 3, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 3, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 3, 3, 28)}, 'flou': {'main_port_id': 26709303, 'sub_port_id': 26709342, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18006316, 'last_updated_at': datetime.datetime(2025, 9, 10, 3, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 3, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 3, 3, 28)}, 'papier': {'main_port_id': 26709303, 'sub_port_id': 26709343, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18006317, 'last_updated_at': datetime.datetime(2025, 9, 10, 3, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 3, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 3, 3, 28)}, 'environnement': {'main_port_id': 26709303, 'sub_port_id': 26709344, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18006318, 'last_updated_at': datetime.datetime(2025, 9, 10, 3, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 3, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 3, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 26709303, 'sub_port_id': 26709345, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18006319, 'last_updated_at': datetime.datetime(2025, 9, 10, 3, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 3, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 3, 3, 28)}, 'kraft': {'main_port_id': 26709303, 'sub_port_id': 26709346, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18006320, 'last_updated_at': datetime.datetime(2025, 9, 10, 3, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 3, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 3, 3, 28)}, 'Carton_brun': {'main_port_id': 26709303, 'sub_port_id': 26709347, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18006321, 'last_updated_at': datetime.datetime(2025, 9, 10, 3, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 3, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 3, 3, 28)}, 'mal_croppe': {'main_port_id': 26709303, 'sub_port_id': 26709348, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18006322, 'last_updated_at': datetime.datetime(2025, 9, 10, 3, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 3, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 3, 3, 28)}, 'autre_refus': {'main_port_id': 26709303, 'sub_port_id': 26709349, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18006323, 'last_updated_at': datetime.datetime(2025, 9, 10, 3, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 3, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 3, 3, 28)}, 'cartonnette': {'main_port_id': 26709303, 'sub_port_id': 26709350, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18006324, 'last_updated_at': datetime.datetime(2025, 9, 10, 3, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 3, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 3, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26709339 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=26709303 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='plastique' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26709339) result : ((1382870012,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26709303) result : ((1382867829,), (1382867897,), (1382867955,), (1382868016,), (1382868579,), (1382868665,), (1382868748,), (1382868842,), (1382868934,), (1382869025,), (1382869414,), (1382869457,), (1382869519,), (1382869551,), (1382869920,), (1382869926,), (1382869940,), (1382869960,), (1382869973,), (1382869993,), (1382870014,), (1382870015,), (1382870020,), (1382870024,), (1382870029,), (1382870034,), (1382870042,), (1382870046,), (1382870053,), (1382870055,), (1382870058,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26709340 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=26709303 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_gris' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26709340) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26709303) result : ((1382867829,), (1382867897,), (1382867955,), (1382868016,), (1382868579,), (1382868665,), (1382868748,), (1382868842,), (1382868934,), (1382869025,), (1382869414,), (1382869457,), (1382869519,), (1382869551,), (1382869920,), (1382869926,), (1382869940,), (1382869960,), (1382869973,), (1382869993,), (1382870014,), (1382870015,), (1382870020,), (1382870024,), (1382870029,), (1382870034,), (1382870042,), (1382870046,), (1382870053,), (1382870055,), (1382870058,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26709341 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=26709303 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='metal' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26709341) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26709303) result : ((1382867829,), (1382867897,), (1382867955,), (1382868016,), (1382868579,), (1382868665,), (1382868748,), (1382868842,), (1382868934,), (1382869025,), (1382869414,), (1382869457,), (1382869519,), (1382869551,), (1382869920,), (1382869926,), (1382869940,), (1382869960,), (1382869973,), (1382869993,), (1382870014,), (1382870015,), (1382870020,), (1382870024,), (1382870029,), (1382870034,), (1382870042,), (1382870046,), (1382870053,), (1382870055,), (1382870058,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26709342 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=26709303 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='flou' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26709342) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26709303) result : ((1382867829,), (1382867897,), (1382867955,), (1382868016,), (1382868579,), (1382868665,), (1382868748,), (1382868842,), (1382868934,), (1382869025,), (1382869414,), (1382869457,), (1382869519,), (1382869551,), (1382869920,), (1382869926,), (1382869940,), (1382869960,), (1382869973,), (1382869993,), (1382870014,), (1382870015,), (1382870020,), (1382870024,), (1382870029,), (1382870034,), (1382870042,), (1382870046,), (1382870053,), (1382870055,), (1382870058,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26709343 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=26709303 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='papier' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26709343) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26709303) result : ((1382867829,), (1382867897,), (1382867955,), (1382868016,), (1382868579,), (1382868665,), (1382868748,), (1382868842,), (1382868934,), (1382869025,), (1382869414,), (1382869457,), (1382869519,), (1382869551,), (1382869920,), (1382869926,), (1382869940,), (1382869960,), (1382869973,), (1382869993,), (1382870014,), (1382870015,), (1382870020,), (1382870024,), (1382870029,), (1382870034,), (1382870042,), (1382870046,), (1382870053,), (1382870055,), (1382870058,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26709344 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=26709303 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='environnement' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26709344) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26709303) result : ((1382867829,), (1382867897,), (1382867955,), (1382868016,), (1382868579,), (1382868665,), (1382868748,), (1382868842,), (1382868934,), (1382869025,), (1382869414,), (1382869457,), (1382869519,), (1382869551,), (1382869920,), (1382869926,), (1382869940,), (1382869960,), (1382869973,), (1382869993,), (1382870014,), (1382870015,), (1382870020,), (1382870024,), (1382870029,), (1382870034,), (1382870042,), (1382870046,), (1382870053,), (1382870055,), (1382870058,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26709345 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=26709303 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Teint_Dans_La_Masse' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26709345) result : ((1382870004,), (1382870005,), (1382870006,), (1382870007,), (1382870008,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26709303) result : ((1382867829,), (1382867897,), (1382867955,), (1382868016,), (1382868579,), (1382868665,), (1382868748,), (1382868842,), (1382868934,), (1382869025,), (1382869414,), (1382869457,), (1382869519,), (1382869551,), (1382869920,), (1382869926,), (1382869940,), (1382869960,), (1382869973,), (1382869993,), (1382870014,), (1382870015,), (1382870020,), (1382870024,), (1382870029,), (1382870034,), (1382870042,), (1382870046,), (1382870053,), (1382870055,), (1382870058,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26709346 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=26709303 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='kraft' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26709346) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26709303) result : ((1382867829,), (1382867897,), (1382867955,), (1382868016,), (1382868579,), (1382868665,), (1382868748,), (1382868842,), (1382868934,), (1382869025,), (1382869414,), (1382869457,), (1382869519,), (1382869551,), (1382869920,), (1382869926,), (1382869940,), (1382869960,), (1382869973,), (1382869993,), (1382870014,), (1382870015,), (1382870020,), (1382870024,), (1382870029,), (1382870034,), (1382870042,), (1382870046,), (1382870053,), (1382870055,), (1382870058,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26709347 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=26709303 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='Carton_brun' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26709347) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26709303) result : ((1382867829,), (1382867897,), (1382867955,), (1382868016,), (1382868579,), (1382868665,), (1382868748,), (1382868842,), (1382868934,), (1382869025,), (1382869414,), (1382869457,), (1382869519,), (1382869551,), (1382869920,), (1382869926,), (1382869940,), (1382869960,), (1382869973,), (1382869993,), (1382870014,), (1382870015,), (1382870020,), (1382870024,), (1382870029,), (1382870034,), (1382870042,), (1382870046,), (1382870053,), (1382870055,), (1382870058,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26709348 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=26709303 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='mal_croppe' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26709348) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26709303) result : ((1382867829,), (1382867897,), (1382867955,), (1382868016,), (1382868579,), (1382868665,), (1382868748,), (1382868842,), (1382868934,), (1382869025,), (1382869414,), (1382869457,), (1382869519,), (1382869551,), (1382869920,), (1382869926,), (1382869940,), (1382869960,), (1382869973,), (1382869993,), (1382870014,), (1382870015,), (1382870020,), (1382870024,), (1382870029,), (1382870034,), (1382870042,), (1382870046,), (1382870053,), (1382870055,), (1382870058,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26709349 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=26709303 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='autre_refus' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26709349) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26709303) result : ((1382867829,), (1382867897,), (1382867955,), (1382868016,), (1382868579,), (1382868665,), (1382868748,), (1382868842,), (1382868934,), (1382869025,), (1382869414,), (1382869457,), (1382869519,), (1382869551,), (1382869920,), (1382869926,), (1382869940,), (1382869960,), (1382869973,), (1382869993,), (1382870014,), (1382870015,), (1382870020,), (1382870024,), (1382870029,), (1382870034,), (1382870042,), (1382870046,), (1382870053,), (1382870055,), (1382870058,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 26709350 , sub_photo_id, 979,now() FROM (SELECT csp.sub_photo_id, csp.crop_hashtag_id, csp.created_at FROM MTRPhoto.crop_sub_photo_ids csp, MTRPhoto.crop_hashtag_ids chi, MTRBack.hashtags h, MTRUser.mtr_portfolio_photos mpp WHERE mpp.mtr_portfolio_id=26709303 AND mpp.mtr_photo_id=chi.photo_id AND chi.id=csp.crop_hashtag_id AND chi.score>0.5 AND chi.type=3726 AND chi.hashtag_id=h.hashtag_id AND h.hashtag='cartonnette' GROUP BY csp.crop_hashtag_id, csp.created_at order by csp.created_at desc) as a group by crop_hashtag_id; SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26709350) result : ((1382870010,), (1382870011,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (26709303) result : ((1382867829,), (1382867897,), (1382867955,), (1382868016,), (1382868579,), (1382868665,), (1382868748,), (1382868842,), (1382868934,), (1382869025,), (1382869414,), (1382869457,), (1382869519,), (1382869551,), (1382869920,), (1382869926,), (1382869940,), (1382869960,), (1382869973,), (1382869993,), (1382870014,), (1382870015,), (1382870020,), (1382870024,), (1382870029,), (1382870034,), (1382870042,), (1382870046,), (1382870053,), (1382870055,), (1382870058,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26709303 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','environnement','Teint_Dans_La_Masse','plastique','metal','mal_croppe','Carton_gris','autre_refus','cartonnette','papier','flou','Carton_brun')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=26709303 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('kraft','environnement','Teint_Dans_La_Masse','plastique','metal','mal_croppe','Carton_gris','autre_refus','cartonnette','papier','flou','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 26709303, 'sub_port_id': 26709352, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18006325, 'last_updated_at': datetime.datetime(2025, 9, 10, 3, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 3, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 3, 3, 34)}, 'Carton_gris': {'main_port_id': 26709303, 'sub_port_id': 26709353, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18006326, 'last_updated_at': datetime.datetime(2025, 9, 10, 3, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 3, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 3, 3, 34)}, 'metal': {'main_port_id': 26709303, 'sub_port_id': 26709354, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18006327, 'last_updated_at': datetime.datetime(2025, 9, 10, 3, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 3, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 3, 3, 34)}, 'flou': {'main_port_id': 26709303, 'sub_port_id': 26709355, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18006328, 'last_updated_at': datetime.datetime(2025, 9, 10, 3, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 3, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 3, 3, 34)}, 'papier': {'main_port_id': 26709303, 'sub_port_id': 26709356, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18006329, 'last_updated_at': datetime.datetime(2025, 9, 10, 3, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 3, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 3, 3, 34)}, 'environnement': {'main_port_id': 26709303, 'sub_port_id': 26709357, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18006330, 'last_updated_at': datetime.datetime(2025, 9, 10, 3, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 3, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 3, 3, 34)}, 'Teint_Dans_La_Masse': {'main_port_id': 26709303, 'sub_port_id': 26709358, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18006331, 'last_updated_at': datetime.datetime(2025, 9, 10, 3, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 3, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 3, 3, 34)}, 'kraft': {'main_port_id': 26709303, 'sub_port_id': 26709359, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18006332, 'last_updated_at': datetime.datetime(2025, 9, 10, 3, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 3, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 3, 3, 34)}, 'Carton_brun': {'main_port_id': 26709303, 'sub_port_id': 26709360, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18006333, 'last_updated_at': datetime.datetime(2025, 9, 10, 3, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 3, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 3, 3, 34)}, 'mal_croppe': {'main_port_id': 26709303, 'sub_port_id': 26709361, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18006334, 'last_updated_at': datetime.datetime(2025, 9, 10, 3, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 3, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 3, 3, 34)}, 'autre_refus': {'main_port_id': 26709303, 'sub_port_id': 26709362, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18006335, 'last_updated_at': datetime.datetime(2025, 9, 10, 3, 3, 34), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 3, 3, 34), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 3, 3, 34)}, 'cartonnette': {'main_port_id': 26709303, 'sub_port_id': 26709363, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 18006336, 'last_updated_at': datetime.datetime(2025, 9, 10, 3, 4, 59), 'last_updated_at_desc': datetime.datetime(2025, 9, 10, 3, 4, 59), 'last_updated_at_asc': datetime.datetime(2025, 9, 10, 3, 3, 34)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26709352,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26709339 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26709353,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26709340 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26709354,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26709341 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26709355,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26709342 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26709356,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26709343 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26709357,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26709344 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26709358,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26709345 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26709359,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26709346 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26709360,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26709347 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26709361,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26709348 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26709362,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26709349 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 26709363,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 26709350 lien utilise dans velours : https://marlene.fotonower.com/velours/26709352,26709353,26709354,26709355,26709356,26709357,26709358,26709359,26709360,26709361,26709362,26709363?tags=plastique,Carton_gris,metal,flou,papier,environnement,Teint_Dans_La_Masse,kraft,Carton_brun,mal_croppe,autre_refus,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26709303]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1382870058, 1382870055, 1382870053, 1382870046, 1382870042, 1382870034, 1382870029, 1382870024, 1382870020, 1382870015, 1382870014, 1382869993, 1382869973, 1382869960, 1382869940, 1382869926, 1382869920] map_info['map_portfolio_photo'] : {26709303: [1382870058, 1382870055, 1382870053, 1382870046, 1382870042, 1382870034, 1382870029, 1382870024, 1382870020, 1382870015, 1382870014, 1382869993, 1382869973, 1382869960, 1382869940, 1382869926, 1382869920, 1382869551, 1382869519, 1382869457, 1382869414, 1382869025, 1382868934, 1382868842, 1382868748, 1382868665, 1382868579, 1382868016, 1382867955, 1382867897, 1382867829]} final : False mtd_id 4302 list_pids : [1382870058, 1382870055, 1382870053, 1382870046, 1382870042, 1382870034, 1382870029, 1382870024, 1382870020, 1382870015, 1382870014, 1382869993, 1382869973, 1382869960, 1382869940, 1382869926, 1382869920] Looping around the photos to save general results len do output : 1 /26709303. 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, '3687840') ('4302', '26709303', '1382870058', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870055', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870053', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870046', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870042', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870034', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870029', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870024', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870020', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870015', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870014', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382869993', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382869973', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382869960', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382869940', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382869926', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382869920', None, None, None, None, None, '3687840') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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, '26709303', "{'plastique': 26709339, 'Carton_gris': 26709340, 'metal': 26709341, 'flou': 26709342, 'papier': 26709343, 'environnement': 26709344, 'Teint_Dans_La_Masse': 26709345, 'kraft': 26709346, 'Carton_brun': 26709347, 'mal_croppe': 26709348, 'autre_refus': 26709349, 'cartonnette': 26709350}", None, None, None, None, '3687840'), ('4302', '26709303', '1382870058', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870055', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870053', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870046', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870042', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870034', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870029', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870024', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870020', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870015', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870014', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382869993', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382869973', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382869960', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382869940', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382869926', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382869920', None, None, None, None, None, '3687840')] time used for this insertion : 0.01571798324584961 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4650905132293701 time spend to save output : 0.01608133316040039 total time spend for step 1 : 1.4811718463897705 step2:final Wed Sep 10 03:07:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26709303) 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 26709303 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1382868016,1382867955,1382867897,1382867829,1382869025,1382868934,1382868842,1382868748,1382868665,1382868579,1382869551,1382869519,1382869457,1382869414,1382870058,1382869993,1382869973,1382870055,1382869960,1382870053,1382869940,1382870046,1382869926,1382870042,1382870034,1382869920,1382870029,1382870024,1382870020,1382870015,1382870014); 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([26709303]) Inside saveOutput : final : False verbose : True original output for save of step final : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ('0.07847546381478832',), 1382870014: ('0.07847546381478832',), 1382869993: ('0.07847546381478832',), 1382869973: ('0.07847546381478832',), 1382869960: ('0.07847546381478832',), 1382869940: ('0.07847546381478832',), 1382869926: ('0.07847546381478832',), 1382869920: ('0.07847546381478832',)} new output for save of step final : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ('0.07847546381478832',), 1382870014: ('0.07847546381478832',), 1382869993: ('0.07847546381478832',), 1382869973: ('0.07847546381478832',), 1382869960: ('0.07847546381478832',), 1382869940: ('0.07847546381478832',), 1382869926: ('0.07847546381478832',), 1382869920: ('0.07847546381478832',)} [1382870058, 1382870055, 1382870053, 1382870046, 1382870042, 1382870034, 1382870029, 1382870024, 1382870020, 1382870015, 1382870014, 1382869993, 1382869973, 1382869960, 1382869940, 1382869926, 1382869920] map_info['map_portfolio_photo'] : {26709303: [1382870058, 1382870055, 1382870053, 1382870046, 1382870042, 1382870034, 1382870029, 1382870024, 1382870020, 1382870015, 1382870014, 1382869993, 1382869973, 1382869960, 1382869940, 1382869926, 1382869920, 1382869551, 1382869519, 1382869457, 1382869414, 1382869025, 1382868934, 1382868842, 1382868748, 1382868665, 1382868579, 1382868016, 1382867955, 1382867897, 1382867829]} final : False mtd_id 4302 list_pids : [1382870058, 1382870055, 1382870053, 1382870046, 1382870042, 1382870034, 1382870029, 1382870024, 1382870020, 1382870015, 1382870014, 1382869993, 1382869973, 1382869960, 1382869940, 1382869926, 1382869920] Looping around the photos to save general results len do output : 17 /1382870058.Didn't retrieve data . /1382870055.Didn't retrieve data . /1382870053.Didn't retrieve data . /1382870046.Didn't retrieve data . /1382870042.Didn't retrieve data . /1382870034.Didn't retrieve data . /1382870029.Didn't retrieve data . /1382870024.Didn't retrieve data . /1382870020.Didn't retrieve data . /1382870015.Didn't retrieve data . /1382870014.Didn't retrieve data . /1382869993.Didn't retrieve data . /1382869973.Didn't retrieve data . /1382869960.Didn't retrieve data . /1382869940.Didn't retrieve data . /1382869926.Didn't retrieve data . /1382869920.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, '3687840') ('4302', '26709303', '1382870058', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870055', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870053', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870046', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870042', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870034', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870029', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870024', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870020', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870015', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870014', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382869993', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382869973', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382869960', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382869940', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382869926', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382869920', None, None, None, None, None, '3687840') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 51 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', '26709303', '1382870058', '0.07847546381478832', None, None, None, None, '3687840'), ('4302', '26709303', '1382870055', '0.07847546381478832', None, None, None, None, '3687840'), ('4302', '26709303', '1382870053', '0.07847546381478832', None, None, None, None, '3687840'), ('4302', '26709303', '1382870046', '0.07847546381478832', None, None, None, None, '3687840'), ('4302', '26709303', '1382870042', '0.07847546381478832', None, None, None, None, '3687840'), ('4302', '26709303', '1382870034', '0.07847546381478832', None, None, None, None, '3687840'), ('4302', '26709303', '1382870029', '0.07847546381478832', None, None, None, None, '3687840'), ('4302', '26709303', '1382870024', '0.07847546381478832', None, None, None, None, '3687840'), ('4302', '26709303', '1382870020', '0.07847546381478832', None, None, None, None, '3687840'), ('4302', '26709303', '1382870015', '0.07847546381478832', None, None, None, None, '3687840'), ('4302', '26709303', '1382870014', '0.07847546381478832', None, None, None, None, '3687840'), ('4302', '26709303', '1382869993', '0.07847546381478832', None, None, None, None, '3687840'), ('4302', '26709303', '1382869973', '0.07847546381478832', None, None, None, None, '3687840'), ('4302', '26709303', '1382869960', '0.07847546381478832', None, None, None, None, '3687840'), ('4302', '26709303', '1382869940', '0.07847546381478832', None, None, None, None, '3687840'), ('4302', '26709303', '1382869926', '0.07847546381478832', None, None, None, None, '3687840'), ('4302', '26709303', '1382869920', '0.07847546381478832', None, None, None, None, '3687840')] time used for this insertion : 0.012434005737304688 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.058466434478759766 time spend to save output : 0.013190746307373047 total time spend for step 2 : 0.07165718078613281 step3:velours_tree Wed Sep 10 03:07:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {26709303: [{'plastique': 26709339, 'Carton_gris': 26709340, 'metal': 26709341, 'flou': 26709342, 'papier': 26709343, 'environnement': 26709344, 'Teint_Dans_La_Masse': 26709345, 'kraft': 26709346, 'Carton_brun': 26709347, 'mal_croppe': 26709348, 'autre_refus': 26709349, 'cartonnette': 26709350}]} input_args_next_step : {26709303: ()} output_args : {26709303: [{'plastique': 26709339, 'Carton_gris': 26709340, 'metal': 26709341, 'flou': 26709342, 'papier': 26709343, 'environnement': 26709344, 'Teint_Dans_La_Masse': 26709345, 'kraft': 26709346, 'Carton_brun': 26709347, 'mal_croppe': 26709348, 'autre_refus': 26709349, 'cartonnette': 26709350}]} args : 26709303 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'plastique': 26709339, 'Carton_gris': 26709340, 'metal': 26709341, 'flou': 26709342, 'papier': 26709343, 'environnement': 26709344, 'Teint_Dans_La_Masse': 26709345, 'kraft': 26709346, 'Carton_brun': 26709347, 'mal_croppe': 26709348, 'autre_refus': 26709349, 'cartonnette': 26709350},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26709303) 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([26709303]) 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.2681760787963867 time spend to save output : 4.1484832763671875e-05 total time spend for step 3 : 0.2682175636291504 step4:send_mail_cod Wed Sep 10 03:07:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ('0.07847546381478832',), 1382870014: ('0.07847546381478832',), 1382869993: ('0.07847546381478832',), 1382869973: ('0.07847546381478832',), 1382869960: ('0.07847546381478832',), 1382869940: ('0.07847546381478832',), 1382869926: ('0.07847546381478832',), 1382869920: ('0.07847546381478832',)} input_args_next_step : {1382870058: ()} output_args : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ('0.07847546381478832',), 1382870014: ('0.07847546381478832',), 1382869993: ('0.07847546381478832',), 1382869973: ('0.07847546381478832',), 1382869960: ('0.07847546381478832',), 1382869940: ('0.07847546381478832',), 1382869926: ('0.07847546381478832',), 1382869920: ('0.07847546381478832',)} args : 1382870058 depend.output_id : 0 input_args_next_step : {1382870058: ('0.07847546381478832',), 1382870055: ()} output_args : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ('0.07847546381478832',), 1382870014: ('0.07847546381478832',), 1382869993: ('0.07847546381478832',), 1382869973: ('0.07847546381478832',), 1382869960: ('0.07847546381478832',), 1382869940: ('0.07847546381478832',), 1382869926: ('0.07847546381478832',), 1382869920: ('0.07847546381478832',)} args : 1382870055 depend.output_id : 0 input_args_next_step : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ()} output_args : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ('0.07847546381478832',), 1382870014: ('0.07847546381478832',), 1382869993: ('0.07847546381478832',), 1382869973: ('0.07847546381478832',), 1382869960: ('0.07847546381478832',), 1382869940: ('0.07847546381478832',), 1382869926: ('0.07847546381478832',), 1382869920: ('0.07847546381478832',)} args : 1382870053 depend.output_id : 0 input_args_next_step : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ()} output_args : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ('0.07847546381478832',), 1382870014: ('0.07847546381478832',), 1382869993: ('0.07847546381478832',), 1382869973: ('0.07847546381478832',), 1382869960: ('0.07847546381478832',), 1382869940: ('0.07847546381478832',), 1382869926: ('0.07847546381478832',), 1382869920: ('0.07847546381478832',)} args : 1382870046 depend.output_id : 0 input_args_next_step : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ()} output_args : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ('0.07847546381478832',), 1382870014: ('0.07847546381478832',), 1382869993: ('0.07847546381478832',), 1382869973: ('0.07847546381478832',), 1382869960: ('0.07847546381478832',), 1382869940: ('0.07847546381478832',), 1382869926: ('0.07847546381478832',), 1382869920: ('0.07847546381478832',)} args : 1382870042 depend.output_id : 0 input_args_next_step : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ()} output_args : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ('0.07847546381478832',), 1382870014: ('0.07847546381478832',), 1382869993: ('0.07847546381478832',), 1382869973: ('0.07847546381478832',), 1382869960: ('0.07847546381478832',), 1382869940: ('0.07847546381478832',), 1382869926: ('0.07847546381478832',), 1382869920: ('0.07847546381478832',)} args : 1382870034 depend.output_id : 0 input_args_next_step : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ()} output_args : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ('0.07847546381478832',), 1382870014: ('0.07847546381478832',), 1382869993: ('0.07847546381478832',), 1382869973: ('0.07847546381478832',), 1382869960: ('0.07847546381478832',), 1382869940: ('0.07847546381478832',), 1382869926: ('0.07847546381478832',), 1382869920: ('0.07847546381478832',)} args : 1382870029 depend.output_id : 0 input_args_next_step : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ()} output_args : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ('0.07847546381478832',), 1382870014: ('0.07847546381478832',), 1382869993: ('0.07847546381478832',), 1382869973: ('0.07847546381478832',), 1382869960: ('0.07847546381478832',), 1382869940: ('0.07847546381478832',), 1382869926: ('0.07847546381478832',), 1382869920: ('0.07847546381478832',)} args : 1382870024 depend.output_id : 0 input_args_next_step : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ()} output_args : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ('0.07847546381478832',), 1382870014: ('0.07847546381478832',), 1382869993: ('0.07847546381478832',), 1382869973: ('0.07847546381478832',), 1382869960: ('0.07847546381478832',), 1382869940: ('0.07847546381478832',), 1382869926: ('0.07847546381478832',), 1382869920: ('0.07847546381478832',)} args : 1382870020 depend.output_id : 0 input_args_next_step : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ()} output_args : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ('0.07847546381478832',), 1382870014: ('0.07847546381478832',), 1382869993: ('0.07847546381478832',), 1382869973: ('0.07847546381478832',), 1382869960: ('0.07847546381478832',), 1382869940: ('0.07847546381478832',), 1382869926: ('0.07847546381478832',), 1382869920: ('0.07847546381478832',)} args : 1382870015 depend.output_id : 0 input_args_next_step : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ('0.07847546381478832',), 1382870014: ()} output_args : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ('0.07847546381478832',), 1382870014: ('0.07847546381478832',), 1382869993: ('0.07847546381478832',), 1382869973: ('0.07847546381478832',), 1382869960: ('0.07847546381478832',), 1382869940: ('0.07847546381478832',), 1382869926: ('0.07847546381478832',), 1382869920: ('0.07847546381478832',)} args : 1382870014 depend.output_id : 0 input_args_next_step : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ('0.07847546381478832',), 1382870014: ('0.07847546381478832',), 1382869993: ()} output_args : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ('0.07847546381478832',), 1382870014: ('0.07847546381478832',), 1382869993: ('0.07847546381478832',), 1382869973: ('0.07847546381478832',), 1382869960: ('0.07847546381478832',), 1382869940: ('0.07847546381478832',), 1382869926: ('0.07847546381478832',), 1382869920: ('0.07847546381478832',)} args : 1382869993 depend.output_id : 0 input_args_next_step : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ('0.07847546381478832',), 1382870014: ('0.07847546381478832',), 1382869993: ('0.07847546381478832',), 1382869973: ()} output_args : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ('0.07847546381478832',), 1382870014: ('0.07847546381478832',), 1382869993: ('0.07847546381478832',), 1382869973: ('0.07847546381478832',), 1382869960: ('0.07847546381478832',), 1382869940: ('0.07847546381478832',), 1382869926: ('0.07847546381478832',), 1382869920: ('0.07847546381478832',)} args : 1382869973 depend.output_id : 0 input_args_next_step : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ('0.07847546381478832',), 1382870014: ('0.07847546381478832',), 1382869993: ('0.07847546381478832',), 1382869973: ('0.07847546381478832',), 1382869960: ()} output_args : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ('0.07847546381478832',), 1382870014: ('0.07847546381478832',), 1382869993: ('0.07847546381478832',), 1382869973: ('0.07847546381478832',), 1382869960: ('0.07847546381478832',), 1382869940: ('0.07847546381478832',), 1382869926: ('0.07847546381478832',), 1382869920: ('0.07847546381478832',)} args : 1382869960 depend.output_id : 0 input_args_next_step : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ('0.07847546381478832',), 1382870014: ('0.07847546381478832',), 1382869993: ('0.07847546381478832',), 1382869973: ('0.07847546381478832',), 1382869960: ('0.07847546381478832',), 1382869940: ()} output_args : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ('0.07847546381478832',), 1382870014: ('0.07847546381478832',), 1382869993: ('0.07847546381478832',), 1382869973: ('0.07847546381478832',), 1382869960: ('0.07847546381478832',), 1382869940: ('0.07847546381478832',), 1382869926: ('0.07847546381478832',), 1382869920: ('0.07847546381478832',)} args : 1382869940 depend.output_id : 0 input_args_next_step : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ('0.07847546381478832',), 1382870014: ('0.07847546381478832',), 1382869993: ('0.07847546381478832',), 1382869973: ('0.07847546381478832',), 1382869960: ('0.07847546381478832',), 1382869940: ('0.07847546381478832',), 1382869926: ()} output_args : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ('0.07847546381478832',), 1382870014: ('0.07847546381478832',), 1382869993: ('0.07847546381478832',), 1382869973: ('0.07847546381478832',), 1382869960: ('0.07847546381478832',), 1382869940: ('0.07847546381478832',), 1382869926: ('0.07847546381478832',), 1382869920: ('0.07847546381478832',)} args : 1382869926 depend.output_id : 0 input_args_next_step : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ('0.07847546381478832',), 1382870014: ('0.07847546381478832',), 1382869993: ('0.07847546381478832',), 1382869973: ('0.07847546381478832',), 1382869960: ('0.07847546381478832',), 1382869940: ('0.07847546381478832',), 1382869926: ('0.07847546381478832',), 1382869920: ()} output_args : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ('0.07847546381478832',), 1382870014: ('0.07847546381478832',), 1382869993: ('0.07847546381478832',), 1382869973: ('0.07847546381478832',), 1382869960: ('0.07847546381478832',), 1382869940: ('0.07847546381478832',), 1382869926: ('0.07847546381478832',), 1382869920: ('0.07847546381478832',)} args : 1382869920 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 : {26709303: [{'plastique': 26709339, 'Carton_gris': 26709340, 'metal': 26709341, 'flou': 26709342, 'papier': 26709343, 'environnement': 26709344, 'Teint_Dans_La_Masse': 26709345, 'kraft': 26709346, 'Carton_brun': 26709347, 'mal_croppe': 26709348, 'autre_refus': 26709349, 'cartonnette': 26709350}]} input_args_next_step : {1382870058: ('0.07847546381478832',), 1382870055: ('0.07847546381478832',), 1382870053: ('0.07847546381478832',), 1382870046: ('0.07847546381478832',), 1382870042: ('0.07847546381478832',), 1382870034: ('0.07847546381478832',), 1382870029: ('0.07847546381478832',), 1382870024: ('0.07847546381478832',), 1382870020: ('0.07847546381478832',), 1382870015: ('0.07847546381478832',), 1382870014: ('0.07847546381478832',), 1382869993: ('0.07847546381478832',), 1382869973: ('0.07847546381478832',), 1382869960: ('0.07847546381478832',), 1382869940: ('0.07847546381478832',), 1382869926: ('0.07847546381478832',), 1382869920: ('0.07847546381478832',), 26709303: ()} output_args : {26709303: [{'plastique': 26709339, 'Carton_gris': 26709340, 'metal': 26709341, 'flou': 26709342, 'papier': 26709343, 'environnement': 26709344, 'Teint_Dans_La_Masse': 26709345, 'kraft': 26709346, 'Carton_brun': 26709347, 'mal_croppe': 26709348, 'autre_refus': 26709349, 'cartonnette': 26709350}]} args : 26709303 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 :18, first value : ('0.07847546381478832',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26709303) 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 (1382870058,1382870055,1382870053,1382870046,1382870042,1382870034,1382870029,1382870024,1382870020,1382870015,1382870014,1382869993,1382869973,1382869960,1382869940,1382869926,1382869920) Found this number of photos: 17 ##### Call download_photos : nb_thread : 5 begin to download photo : 1382869920 begin to download photo : 1382869973 begin to download photo : 1382870020 begin to download photo : 1382870058 begin to download photo : 1382870042 download finish for photo 1382870020 begin to download photo : 1382870024 download finish for photo 1382869920 begin to download photo : 1382869926 download finish for photo 1382869973 begin to download photo : 1382869993 download finish for photo 1382870058 download finish for photo 1382870042 begin to download photo : 1382870046 download finish for photo 1382869993 begin to download photo : 1382870014 download finish for photo 1382869926 begin to download photo : 1382869940 download finish for photo 1382870024 begin to download photo : 1382870029 download finish for photo 1382870046 begin to download photo : 1382870053 download finish for photo 1382869940 begin to download photo : 1382869960 download finish for photo 1382870029 begin to download photo : 1382870034 download finish for photo 1382870053 begin to download photo : 1382870055 download finish for photo 1382870014 begin to download photo : 1382870015 download finish for photo 1382869960 download finish for photo 1382870055 download finish for photo 1382870034 download finish for photo 1382870015 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 17 ; length of list_pids : 17 ; length of list_args : 17 results_Auto_P26709303_10-09-2025_03_07_00.pdf 26709339 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=26709339 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1382870012: '1757466265_10362_1382867897_a0823242fa87584a088db2adab76a53c_rle_crop_3953057888_0.png'} change filename to text .imagette267093391757466420/ imagette267093391757466420/1757466265_10362_1382867897_a0823242fa87584a088db2adab76a53c_rle_crop_3953057888_0.png.png imagette267093411757466420/ imagette267093421757466421/ imagette267093461757466421/ imagette267093481757466421/ imagette267093491757466421/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/10/f2ff1009673522657fcc4f6cdb7ea1ca_20435827.png imagette267093391757466420 26709341 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=26709341 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267093411757466420 26709342 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=26709342 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267093421757466421 26709346 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=26709346 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267093461757466421 26709348 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=26709348 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267093481757466421 26709349 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=26709349 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267093491757466421 26709350 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=26709350 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1382870010: '1757466265_10362_1382867897_a0823242fa87584a088db2adab76a53c_rle_crop_3953057886_0.png', 1382870011: '1757466265_10362_1382867829_38cf92d3eee0decc76461ab75b98d88f_rle_crop_3953057897_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/10/d22adbac2ef8972adeecc10fb960f74a_53313262.png change filename to text .imagette267093501757466421/ imagette267093501757466421/1757466265_10362_1382867829_38cf92d3eee0decc76461ab75b98d88f_rle_crop_3953057897_0.png.png imagette267093501757466421/1757466265_10362_1382867897_a0823242fa87584a088db2adab76a53c_rle_crop_3953057886_0.png.png imagette267093401757466421/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/10/ccd10231203c216443cc0df33c20489e_36212151.png imagette267093501757466421 26709340 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=26709340 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267093401757466421 26709345 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=26709345 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1382870004: '1757466265_10362_1382868016_ceb3dc1ddd5c8b139c0dcd3a719b53a2_rle_crop_3953057850_0.png', 1382870005: '1757466265_10362_1382868016_ceb3dc1ddd5c8b139c0dcd3a719b53a2_rle_crop_3953057852_0.png', 1382870006: '1757466265_10362_1382867955_e35327fb39d1228c4cb9edda50927c93_rle_crop_3953057873_0.png', 1382870007: '1757466265_10362_1382867955_e35327fb39d1228c4cb9edda50927c93_rle_crop_3953057871_0.png', 1382870008: '1757466265_10362_1382867897_a0823242fa87584a088db2adab76a53c_rle_crop_3953057890_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/10/44d41af8229eec40d457b7cc6adc0708_67211860.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/10/cf387fec03be0fe2c442e5b40fa1546d_80024122.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/10/dcff0a38d87bcf01dc403acb81d4053c_91460624.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/10/054e304f6aa97826798e8f52a9f313f1_38856159.png change filename to text .imagette267093451757466421/ imagette267093451757466421/1757466265_10362_1382868016_ceb3dc1ddd5c8b139c0dcd3a719b53a2_rle_crop_3953057850_0.png.png imagette267093451757466421/1757466265_10362_1382867897_a0823242fa87584a088db2adab76a53c_rle_crop_3953057890_0.png.png imagette267093451757466421/1757466265_10362_1382867955_e35327fb39d1228c4cb9edda50927c93_rle_crop_3953057871_0.png.png imagette267093451757466421/1757466265_10362_1382867955_e35327fb39d1228c4cb9edda50927c93_rle_crop_3953057873_0.png.png imagette267093451757466421/1757466265_10362_1382868016_ceb3dc1ddd5c8b139c0dcd3a719b53a2_rle_crop_3953057852_0.png.png imagette267093471757466421/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/10/5b8cd6418aed5d18c039c66249e69482_48296609.png imagette267093451757466421 26709347 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=26709347 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette267093471757466421 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=26709303 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/26709352,26709353,26709354,26709355,26709356,26709357,26709358,26709359,26709360,26709361,26709362,26709363?tags=plastique,Carton_gris,metal,flou,papier,environnement,Teint_Dans_La_Masse,kraft,Carton_brun,mal_croppe,autre_refus,cartonnette your option no_mail is active, we will not send the real mail to your client args[1382870058] : ('0.07847546381478832',) no score found for photo 1382870058 We are sending mail with results at report@fotonower.com args[1382870055] : ('0.07847546381478832',) no score found for photo 1382870055 We are sending mail with results at report@fotonower.com args[1382870053] : ('0.07847546381478832',) no score found for photo 1382870053 We are sending mail with results at report@fotonower.com args[1382870046] : ('0.07847546381478832',) no score found for photo 1382870046 We are sending mail with results at report@fotonower.com args[1382870042] : ('0.07847546381478832',) no score found for photo 1382870042 We are sending mail with results at report@fotonower.com args[1382870034] : ('0.07847546381478832',) no score found for photo 1382870034 We are sending mail with results at report@fotonower.com args[1382870029] : ('0.07847546381478832',) no score found for photo 1382870029 We are sending mail with results at report@fotonower.com args[1382870024] : ('0.07847546381478832',) no score found for photo 1382870024 We are sending mail with results at report@fotonower.com args[1382870020] : ('0.07847546381478832',) no score found for photo 1382870020 We are sending mail with results at report@fotonower.com args[1382870015] : ('0.07847546381478832',) no score found for photo 1382870015 We are sending mail with results at report@fotonower.com args[1382870014] : ('0.07847546381478832',) no score found for photo 1382870014 We are sending mail with results at report@fotonower.com args[1382869993] : ('0.07847546381478832',) no score found for photo 1382869993 We are sending mail with results at report@fotonower.com args[1382869973] : ('0.07847546381478832',) no score found for photo 1382869973 We are sending mail with results at report@fotonower.com args[1382869960] : ('0.07847546381478832',) no score found for photo 1382869960 We are sending mail with results at report@fotonower.com args[1382869940] : ('0.07847546381478832',) no score found for photo 1382869940 We are sending mail with results at report@fotonower.com args[1382869926] : ('0.07847546381478832',) no score found for photo 1382869926 We are sending mail with results at report@fotonower.com args[1382869920] : ('0.07847546381478832',) no score found for photo 1382869920 We are sending mail with results at report@fotonower.com refus_total : 0.07847546381478832 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=26709303 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_P26709303_10-09-2025_03_07_00.pdf results_Auto_P26709303_10-09-2025_03_07_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26709303_10-09-2025_03_07_00.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','26709303','results_Auto_P26709303_10-09-2025_03_07_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26709303_10-09-2025_03_07_00.pdf','pdf','','0.15','0.07847546381478832') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26709303]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1382870058, 1382870055, 1382870053, 1382870046, 1382870042, 1382870034, 1382870029, 1382870024, 1382870020, 1382870015, 1382870014, 1382869993, 1382869973, 1382869960, 1382869940, 1382869926, 1382869920] map_info['map_portfolio_photo'] : {26709303: [1382870058, 1382870055, 1382870053, 1382870046, 1382870042, 1382870034, 1382870029, 1382870024, 1382870020, 1382870015, 1382870014, 1382869993, 1382869973, 1382869960, 1382869940, 1382869926, 1382869920, 1382869551, 1382869519, 1382869457, 1382869414, 1382869025, 1382868934, 1382868842, 1382868748, 1382868665, 1382868579, 1382868016, 1382867955, 1382867897, 1382867829]} final : False mtd_id 4302 list_pids : [1382870058, 1382870055, 1382870053, 1382870046, 1382870042, 1382870034, 1382870029, 1382870024, 1382870020, 1382870015, 1382870014, 1382869993, 1382869973, 1382869960, 1382869940, 1382869926, 1382869920] 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, '3687840') ('4302', '26709303', '1382870058', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870055', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870053', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870046', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870042', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870034', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870029', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870024', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870020', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870015', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870014', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382869993', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382869973', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382869960', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382869940', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382869926', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382869920', None, None, None, None, None, '3687840') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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', '26709303', '1382870058', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870055', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870053', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870046', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870042', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870034', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870029', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870024', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870020', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870015', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870014', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382869993', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382869973', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382869960', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382869940', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382869926', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382869920', None, None, None, None, None, '3687840')] time used for this insertion : 0.014724493026733398 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.4431681632995605 time spend to save output : 0.015021324157714844 total time spend for step 4 : 2.4581894874572754 step5:split_time_score Wed Sep 10 03:07: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 : ['26709303'] 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 : [('26709303',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (26709303) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1382870058: {'path': 'temp/1757466420_2149706_1382870058_d79089b6869b068ada5346fb94bee889.jpg', 'extension': 'jpg'}, 1382869920: {'path': 'temp/1757466420_2149706_1382869920_b6c1805db62aa458c3a1c9c1c20c4c72.jpg', 'extension': 'jpg'}, 1382869926: {'path': 'temp/1757466420_2149706_1382869926_2a7942efe673088cb616c084e3cee989.jpg', 'extension': 'jpg'}, 1382869940: {'path': 'temp/1757466420_2149706_1382869940_66d6b1d64cc21c08497dc87384f986c5.jpg', 'extension': 'jpg'}, 1382869960: {'path': 'temp/1757466420_2149706_1382869960_97700d22fb6041f1c3aed744fa209f8e.jpg', 'extension': 'jpg'}, 1382870042: {'path': 'temp/1757466420_2149706_1382870042_4089728b02b5d465e27183b829a3a78a.jpg', 'extension': 'jpg'}, 1382870046: {'path': 'temp/1757466420_2149706_1382870046_672bd2cf2f19aef952350817ff4a1437.jpg', 'extension': 'jpg'}, 1382870053: {'path': 'temp/1757466420_2149706_1382870053_b4308f819ea94d81bfe7d18f1c5e9156.jpg', 'extension': 'jpg'}, 1382870055: {'path': 'temp/1757466420_2149706_1382870055_83ee148002a5cf34e66448de6ba316f7.jpg', 'extension': 'jpg'}, 1382870020: {'path': 'temp/1757466420_2149706_1382870020_2e9f50b31ff582981b28444b83d1214a.jpg', 'extension': 'jpg'}, 1382870024: {'path': 'temp/1757466420_2149706_1382870024_b80e841e25863800986e69c3f1d64b5e.jpg', 'extension': 'jpg'}, 1382870029: {'path': 'temp/1757466420_2149706_1382870029_3cf965f19006469daf565ba1e26cf499.jpg', 'extension': 'jpg'}, 1382870034: {'path': 'temp/1757466420_2149706_1382870034_5cdfe6cb76f33de1450c23392f086c5d.jpg', 'extension': 'jpg'}, 1382869973: {'path': 'temp/1757466420_2149706_1382869973_e0aa049766a4adeeb59369657e293757.jpg', 'extension': 'jpg'}, 1382869993: {'path': 'temp/1757466420_2149706_1382869993_9a5803d53440859a3f599618f2b13ab6.jpg', 'extension': 'jpg'}, 1382870014: {'path': 'temp/1757466420_2149706_1382870014_bd097a7dd1ccad9fa020866c5ca037b5.jpg', 'extension': 'jpg'}, 1382870015: {'path': 'temp/1757466420_2149706_1382870015_8af4b26547b4c23510641af5574bd6f9.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 = 26709303; (('arc_en_ciel_jrm_live',), ('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 = 26709303 group by h (('03', 31),) 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=26709303 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 (26709303) 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 (26709303) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 10092025 26709303 Nombre de photos uploadées : 31 / 23040 (0%) 10092025 26709303 Nombre de photos taguées (types de déchets): 0 / 31 (0%) 10092025 26709303 Nombre de photos taguées (volume) : 0 / 31 (0%) [{'photo_id': 1382868016, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/10/ceb3dc1ddd5c8b139c0dcd3a719b53a2.jpg', 'username': None, 'uploaded_at': 1757466068, 'text': 'image_10092025_03_00_04_010142m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1382867955, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/10/e35327fb39d1228c4cb9edda50927c93.jpg', 'username': None, 'uploaded_at': 1757466068, 'text': 'image_10092025_03_00_24_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1382867897, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/10/a0823242fa87584a088db2adab76a53c.jpg', 'username': None, 'uploaded_at': 1757466068, 'text': 'image_10092025_03_00_33_009124m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1382867829, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/9/10/38cf92d3eee0decc76461ab75b98d88f.jpg', 'username': None, 'uploaded_at': 1757466068, 'text': 'image_10092025_03_00_43_010136m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 3.814697265625e-06 elapsed_time : order_list_meta_photo_and_scores 1.0728836059570312e-05 ??????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.002532958984375 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 26709303, '2025-09-10' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2260415,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.20853042602539062 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= 2260415 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2260415, 'dashboard_run_id': 2268395, 'mtr_portfolio_id': 26704232, 'dashboard_result_id': 14976599, '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_P26704232_10-09-2025_00_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26704233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26704234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26704235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26704236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26704237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26704238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26704239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26704240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26704241, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26704242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26704243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26704244, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2268395, 'mtr_portfolio_id': 26704744, 'dashboard_result_id': 14976600, '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_P26704744_10-09-2025_00_33_27.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26704797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26704798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26704799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26704800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26704801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26704802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26704803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26704804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26704805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26704806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26704807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26704808, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2268395, 'mtr_portfolio_id': 26705272, 'dashboard_result_id': 14976601, '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_P26705272_10-09-2025_00_49_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26705278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26705279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26705280, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26705281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26705282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26705283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26705284, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26705285, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26705286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26705287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26705288, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26705289, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2268395, 'mtr_portfolio_id': 26705815, 'dashboard_result_id': 14976602, '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_P26705815_10-09-2025_01_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26705821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26705822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26705823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26705824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26705825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26705826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26705827, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26705828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26705829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26705830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26705831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26705832, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2268395, 'mtr_portfolio_id': 26706684, 'dashboard_result_id': 14976603, '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_P26706684_10-09-2025_01_48_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26706703, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26706704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26706705, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26706706, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26706707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26706708, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26706709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26706710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26706711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26706712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26706713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26706714, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2268395, 'mtr_portfolio_id': 26706992, 'dashboard_result_id': 14976604, '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_P26706992_10-09-2025_02_04_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26706997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26706998, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26706999, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26707000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26707001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26707002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26707003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26707004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26707005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26707006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26707007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26707008, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2268395, 'mtr_portfolio_id': 26707413, 'dashboard_result_id': 14976605, '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_P26707413_10-09-2025_02_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26707417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26707418, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26707419, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26707420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26707421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26707422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26707423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26707424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26707425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26707426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26707427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26707428, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2268395, 'mtr_portfolio_id': 26708077, 'dashboard_result_id': 14976606, '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_P26708077_10-09-2025_02_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26708083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26708084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26708085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26708086, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26708087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26708088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26708089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26708090, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26708091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26708092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26708093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26708094, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2268395, 'mtr_portfolio_id': 26708471, 'dashboard_result_id': 14976607, '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_P26708471_10-09-2025_02_49_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26708482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26708483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26708484, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26708485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26708486, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26708487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26708488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26708489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26708490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26708491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26708492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26708493, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2268395, 'mtr_portfolio_id': 26708951, 'dashboard_result_id': 14976608, '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_P26708951_10-09-2025_03_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26708957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26708958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26708959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26708960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26708961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26708962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26708963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26708964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26708965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26708966, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26708967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26708968, 'pht': 3726}}"}, {'dashboat_entry_day': 2260415, 'dashboard_run_id': 2268395, 'mtr_portfolio_id': 26709303, 'dashboard_result_id': 14976609, '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_P26709303_10-09-2025_03_03_35.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26709339, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26709340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26709341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26709342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26709343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26709344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26709345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26709346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26709347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26709348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26709349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26709350, '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 = 26704232 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': 3687128, 'mtr_portfolio_id': 26704232, 'created_at': datetime.datetime(2025, 9, 10, 0, 19), 'result': '0.055681129008488595', 'result_long': None, 'result_double': None}] Qualite : 0.055681129008488595 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26704232 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26704232_10-09-2025_00_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26704232 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_P26704232_10-09-2025_00_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26704233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26704234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26704235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26704236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26704237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26704238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26704239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26704240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26704241, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26704242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26704243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26704244, 'pht': 3726}}" where mtr_portfolio_id = 26704232 and dashboard_run_id = 2268395 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`=26704232 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14976599, 0.055681129008488595, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26704232_10-09-2025_00_19_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26704233, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26704234, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26704235, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26704236, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26704237, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26704238, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26704239, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26704240, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26704241, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26704242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26704243, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26704244, '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 = 26704744 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': 3687167, 'mtr_portfolio_id': 26704744, 'created_at': datetime.datetime(2025, 9, 10, 0, 33, 26), 'result': '0.043235120061414854', 'result_long': None, 'result_double': None}] Qualite : 0.043235120061414854 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26704744 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26704744_10-09-2025_00_33_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26704744 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_P26704744_10-09-2025_00_33_27.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26704797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26704798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26704799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26704800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26704801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26704802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26704803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26704804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26704805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26704806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26704807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26704808, 'pht': 3726}}" where mtr_portfolio_id = 26704744 and dashboard_run_id = 2268395 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`=26704744 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14976600, 0.043235120061414854, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26704744_10-09-2025_00_33_27.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26704797, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26704798, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26704799, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26704800, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26704801, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26704802, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26704803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26704804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26704805, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26704806, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26704807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26704808, '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 = 26705272 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': 3687221, 'mtr_portfolio_id': 26705272, 'created_at': datetime.datetime(2025, 9, 10, 0, 49, 30), 'result': '0.03748311377879037', 'result_long': None, 'result_double': None}] Qualite : 0.03748311377879037 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26705272 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26705272_10-09-2025_00_49_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26705272 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_P26705272_10-09-2025_00_49_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26705278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26705279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26705280, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26705281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26705282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26705283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26705284, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26705285, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26705286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26705287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26705288, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26705289, 'pht': 3726}}" where mtr_portfolio_id = 26705272 and dashboard_run_id = 2268395 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`=26705272 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14976601, 0.03748311377879037, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26705272_10-09-2025_00_49_30.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26705278, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26705279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26705280, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26705281, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26705282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26705283, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26705284, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26705285, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26705286, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26705287, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26705288, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26705289, '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 = 26705815 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': 3687296, 'mtr_portfolio_id': 26705815, 'created_at': datetime.datetime(2025, 9, 10, 1, 32, 58), 'result': '0.047698348048545315', 'result_long': None, 'result_double': None}] Qualite : 0.047698348048545315 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26705815 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26705815_10-09-2025_01_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26705815 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_P26705815_10-09-2025_01_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26705821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26705822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26705823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26705824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26705825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26705826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26705827, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26705828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26705829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26705830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26705831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26705832, 'pht': 3726}}" where mtr_portfolio_id = 26705815 and dashboard_run_id = 2268395 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`=26705815 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14976602, 0.047698348048545315, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26705815_10-09-2025_01_32_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26705821, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26705822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26705823, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26705824, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26705825, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26705826, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26705827, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26705828, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26705829, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26705830, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26705831, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26705832, '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 = 26706684 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': 3687444, 'mtr_portfolio_id': 26706684, 'created_at': datetime.datetime(2025, 9, 10, 1, 48, 30), 'result': '0.02872109434394655', 'result_long': None, 'result_double': None}] Qualite : 0.02872109434394655 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26706684 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26706684_10-09-2025_01_48_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26706684 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_P26706684_10-09-2025_01_48_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26706703, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26706704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26706705, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26706706, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26706707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26706708, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26706709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26706710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26706711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26706712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26706713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26706714, 'pht': 3726}}" where mtr_portfolio_id = 26706684 and dashboard_run_id = 2268395 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`=26706684 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14976603, 0.02872109434394655, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26706684_10-09-2025_01_48_31.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26706703, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26706704, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26706705, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26706706, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26706707, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26706708, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26706709, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26706710, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26706711, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26706712, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26706713, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26706714, '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 = 26706992 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': 3687481, 'mtr_portfolio_id': 26706992, 'created_at': datetime.datetime(2025, 9, 10, 2, 4, 31), 'result': '0.033701941928507256', 'result_long': None, 'result_double': None}] Qualite : 0.033701941928507256 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26706992 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26706992_10-09-2025_02_04_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26706992 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_P26706992_10-09-2025_02_04_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26706997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26706998, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26706999, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26707000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26707001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26707002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26707003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26707004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26707005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26707006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26707007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26707008, 'pht': 3726}}" where mtr_portfolio_id = 26706992 and dashboard_run_id = 2268395 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`=26706992 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14976604, 0.033701941928507256, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26706992_10-09-2025_02_04_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26706997, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26706998, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26706999, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26707000, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26707001, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26707002, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26707003, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26707004, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26707005, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26707006, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26707007, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26707008, '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 = 26707413 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': 3687546, 'mtr_portfolio_id': 26707413, 'created_at': datetime.datetime(2025, 9, 10, 2, 18, 59), 'result': '0.02686374612723728', 'result_long': None, 'result_double': None}] Qualite : 0.02686374612723728 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26707413 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26707413_10-09-2025_02_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26707413 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_P26707413_10-09-2025_02_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26707417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26707418, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26707419, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26707420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26707421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26707422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26707423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26707424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26707425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26707426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26707427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26707428, 'pht': 3726}}" where mtr_portfolio_id = 26707413 and dashboard_run_id = 2268395 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`=26707413 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14976605, 0.02686374612723728, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26707413_10-09-2025_02_19_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 26707417, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26707418, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26707419, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26707420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26707421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26707422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26707423, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26707424, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26707425, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26707426, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26707427, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26707428, '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 = 26708077 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': 3687608, 'mtr_portfolio_id': 26708077, 'created_at': datetime.datetime(2025, 9, 10, 2, 33), 'result': '0.05728965616578111', 'result_long': None, 'result_double': None}] Qualite : 0.05728965616578111 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26708077 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708077_10-09-2025_02_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26708077 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_P26708077_10-09-2025_02_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26708083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26708084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26708085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26708086, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26708087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26708088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26708089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26708090, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26708091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26708092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26708093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26708094, 'pht': 3726}}" where mtr_portfolio_id = 26708077 and dashboard_run_id = 2268397 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`=26708077 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14976606, 0.05728965616578111, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708077_10-09-2025_02_33_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26708083, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26708084, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26708085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26708086, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26708087, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26708088, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26708089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26708090, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26708091, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26708092, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26708093, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26708094, '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 = 26708471 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': 3687677, 'mtr_portfolio_id': 26708471, 'created_at': datetime.datetime(2025, 9, 10, 2, 49, 31), 'result': '0.04589778707261213', 'result_long': None, 'result_double': None}] Qualite : 0.04589778707261213 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26708471 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708471_10-09-2025_02_49_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26708471 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_P26708471_10-09-2025_02_49_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26708482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26708483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26708484, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26708485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26708486, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26708487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26708488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26708489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26708490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26708491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26708492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26708493, 'pht': 3726}}" where mtr_portfolio_id = 26708471 and dashboard_run_id = 2268397 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`=26708471 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14976607, 0.04589778707261213, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708471_10-09-2025_02_49_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 26708482, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26708483, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26708484, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26708485, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26708486, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26708487, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26708488, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26708489, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26708490, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26708491, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26708492, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26708493, '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 = 26708951 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': 3687755, 'mtr_portfolio_id': 26708951, 'created_at': datetime.datetime(2025, 9, 10, 3, 3), 'result': '0.044701276163701786', 'result_long': None, 'result_double': None}] Qualite : 0.044701276163701786 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26708951 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708951_10-09-2025_03_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26708951 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_P26708951_10-09-2025_03_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26708957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26708958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26708959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26708960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26708961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26708962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26708963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26708964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26708965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26708966, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26708967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26708968, 'pht': 3726}}" where mtr_portfolio_id = 26708951 and dashboard_run_id = 2268397 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`=26708951 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14976608, 0.044701276163701786, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26708951_10-09-2025_03_03_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26708957, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26708958, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26708959, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26708960, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26708961, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26708962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26708963, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26708964, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26708965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26708966, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26708967, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26708968, '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 = 26709303 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': 3687840, 'mtr_portfolio_id': 26709303, 'created_at': datetime.datetime(2025, 9, 10, 3, 7), 'result': '0.07847546381478832', 'result_long': None, 'result_double': None}] Qualite : 0.07847546381478832 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 26709303 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26709303_10-09-2025_03_07_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 26709303 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_P26709303_10-09-2025_03_07_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26709339, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26709340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26709341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26709342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26709343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26709344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26709345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26709346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26709347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26709348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26709349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26709350, 'pht': 3726}}" where mtr_portfolio_id = 26709303 and dashboard_run_id = 2268397 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`=26709303 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (14976609, 0.07847546381478832, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P26709303_10-09-2025_03_07_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 26709339, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 26709340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 26709341, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 26709342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 26709343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 26709344, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 26709345, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 26709346, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 26709347, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 26709348, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 26709349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 26709350, '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 (26704232,26704744,26705272,26705815,26706684,26706992,26707413,26708077,26708471,26708951,26709303) result : ((1382848737,), (1382849052,), (1382849570,), (1382849600,), (1382849623,), (1382849648,), (1382849675,), (1382849698,), (1382849864,), (1382849888,), (1382849916,), (1382849955,), (1382850273,), (1382850296,), (1382850332,), (1382850353,), (1382850364,), (1382850367,), (1382850389,), (1382850392,), (1382850426,), (1382850449,), (1382850469,), (1382850491,), (1382850517,), (1382850626,), (1382850649,), (1382850670,), (1382850694,), (1382850718,), (1382850884,), (1382850904,), (1382850933,), (1382850958,), (1382851137,), (1382851160,), (1382851186,), (1382851270,), (1382851323,), (1382851327,), (1382851330,), (1382851333,), (1382851497,), (1382851525,), (1382851553,), (1382851582,), (1382851596,), (1382851693,), (1382851715,), (1382851720,), (1382851735,), (1382851741,), (1382851745,), (1382851752,), (1382851758,), (1382851761,), (1382851882,), (1382852224,), (1382851855,), (1382852154,), (1382852177,), (1382852202,), (1382852312,), (1382852313,), (1382852316,), (1382852345,), (1382852401,), (1382852462,), (1382852705,), (1382852736,), (1382852759,), (1382852905,), (1382852918,), (1382852927,), (1382852930,), (1382852933,), (1382852965,), (1382852966,), (1382852967,), (1382852970,), (1382853001,), (1382853003,), (1382853005,), (1382853176,), (1382853200,), (1382853226,), (1382853252,), (1382853434,), (1382853461,), (1382853489,), (1382853516,), (1382853769,), (1382853792,), (1382853818,), (1382853840,), (1382853876,), (1382854148,), (1382854181,), (1382854387,), (1382854409,), (1382854432,), (1382854453,), (1382854466,), (1382854477,), (1382854578,), (1382854660,), (1382854683,), (1382854706,), (1382854728,), (1382854752,), (1382854863,), (1382854886,), (1382854909,), (1382854935,), (1382854956,), (1382855066,), (1382855092,), (1382855116,), (1382855249,), (1382855238,), (1382855241,), (1382855242,), (1382855246,), (1382855269,), (1382855273,), (1382855276,), (1382855281,), (1382855285,), (1382855299,), (1382855302,), (1382855306,), (1382855308,), (1382855326,), (1382855328,), (1382855347,), (1382855351,), (1382855356,), (1382855359,), (1382855362,), (1382855371,), (1382855510,), (1382855538,), (1382855891,), (1382855918,), (1382855947,), (1382855975,), (1382856004,), (1382856033,), (1382856233,), (1382856261,), (1382856288,), (1382856458,), (1382856463,), (1382856467,), (1382856685,), (1382856693,), (1382856694,), (1382856704,), (1382856734,), (1382856813,), (1382856815,), (1382856818,), (1382856823,), (1382856843,), (1382856846,), (1382856849,), (1382856853,), (1382856858,), (1382856873,), (1382856877,), (1382856881,), (1382856904,), (1382856906,), (1382856907,), (1382856910,), (1382856926,), (1382856930,), (1382856933,), (1382856936,), (1382856937,), (1382856939,), (1382856943,), (1382856956,), (1382857008,), (1382856949,), (1382856950,), (1382856951,), (1382856971,), (1382856974,), (1382856977,), (1382856982,), (1382856988,), (1382856995,), (1382857012,), (1382857015,), (1382857018,), (1382857022,), (1382857026,), (1382857044,), (1382857046,), (1382857048,), (1382857110,), (1382857112,), (1382857155,), (1382857160,), (1382857162,), (1382857180,), (1382857181,), (1382857182,), (1382857210,), (1382857214,), (1382857218,), (1382857222,), (1382857234,), (1382857236,), (1382857238,), (1382857240,), (1382857243,), (1382857244,), (1382857253,), (1382857262,), (1382857264,), (1382857266,), (1382857269,), (1382857271,), (1382857279,), (1382857281,), (1382857283,), (1382857286,), (1382857289,), (1382857298,), (1382857310,), (1382857316,), (1382857425,), (1382857481,), (1382857539,), (1382860404,), (1382860425,), (1382860427,), (1382860429,), (1382860479,), (1382860486,), (1382860510,), (1382860522,), (1382860524,), (1382860527,), (1382860550,), (1382860552,), (1382860556,), (1382860604,), (1382860610,), (1382860615,), (1382860620,), (1382860623,), (1382860625,), (1382860629,), (1382860631,), (1382860644,), (1382860646,), (1382860647,), (1382860648,), (1382860661,), (1382860663,), (1382860666,), (1382860668,), (1382860685,), (1382860688,), (1382860714,), (1382860715,), (1382860717,), (1382860720,), (1382860723,), (1382860726,), (1382860748,), (1382860751,), (1382860755,), (1382860757,), (1382860759,), (1382860761,), (1382860765,), (1382860769,), (1382860773,), (1382860777,), (1382860780,), (1382860790,), (1382860796,), (1382860801,), (1382860808,), (1382860811,), (1382860816,), (1382860820,), (1382860824,), (1382860834,), (1382860842,), (1382860880,), (1382860925,), (1382860873,), (1382860876,), (1382860895,), (1382860897,), (1382860901,), (1382860906,), (1382860911,), (1382860915,), (1382860932,), (1382860937,), (1382860941,), (1382860945,), (1382860957,), (1382860959,), (1382860964,), (1382860972,), (1382860976,), (1382860988,), (1382860991,), (1382860994,), (1382861018,), (1382861020,), (1382861023,), (1382861026,), (1382861044,), (1382861051,), (1382861054,), (1382861058,), (1382861071,), (1382861075,), (1382861079,), (1382861099,), (1382861116,), (1382861120,), (1382861124,), (1382861128,), (1382861141,), (1382861144,), (1382861147,), (1382861156,), (1382861167,), (1382861172,), (1382861179,), (1382861184,), (1382861188,), (1382861191,), (1382861205,), (1382861209,), (1382861213,), (1382861216,), (1382861229,), (1382861230,), (1382861233,), (1382861235,), (1382861239,), (1382861240,), (1382861278,), (1382861285,), (1382861290,), (1382861293,), (1382861894,), (1382862553,), (1382861716,), (1382861776,), (1382861829,), (1382862194,), (1382862250,), (1382862289,), (1382862359,), (1382862389,), (1382862419,), (1382862524,), (1382862587,), (1382862590,), (1382862597,), (1382862625,), (1382862743,), (1382862756,), (1382862782,), (1382862815,), (1382862820,), (1382863133,), (1382863160,), (1382863527,), (1382863557,), (1382863588,), (1382863619,), (1382863636,), (1382863707,), (1382863736,), (1382863762,), (1382863933,), (1382863964,), (1382864002,), (1382864037,), (1382864313,), (1382864345,), (1382864372,), (1382864405,), (1382864437,), (1382864628,), (1382864639,), (1382864644,), (1382864650,), (1382864768,), (1382864798,), (1382864834,), (1382864867,), (1382865043,), (1382865048,), (1382865052,), (1382865055,), (1382865075,), (1382865077,), (1382865080,), (1382865100,), (1382865103,), (1382865106,), (1382865110,), (1382865116,), (1382865122,), (1382865145,), (1382865147,), (1382865171,), (1382865173,), (1382865177,), (1382865166,), (1382865168,), (1382865188,), (1382865191,), (1382865207,), (1382865209,), (1382865211,), (1382865214,), (1382865217,), (1382865234,), (1382865237,), (1382865242,), (1382865248,), (1382865252,), (1382865260,), (1382865275,), (1382865277,), (1382865279,), (1382865285,), (1382865288,), (1382865303,), (1382865307,), (1382865312,), (1382865317,), (1382865321,), (1382865323,), (1382865342,), (1382865343,), (1382865344,), (1382865348,), (1382865352,), (1382865362,), (1382865365,), (1382865367,), (1382865410,), (1382865412,), (1382865414,), (1382865439,), (1382865442,), (1382865448,), (1382865454,), (1382865483,), (1382865486,), (1382865491,), (1382865495,), (1382865497,), (1382865506,), (1382865511,), (1382865517,), (1382865522,), (1382865528,), (1382865532,), (1382865540,), (1382865541,), (1382865551,), (1382865555,), (1382865560,), (1382865572,), (1382865575,), (1382865579,), (1382865585,), (1382865588,), (1382865591,), (1382865599,), (1382865608,), (1382865611,), (1382865615,), (1382865618,), (1382865620,), (1382865622,), (1382865650,), (1382865644,), (1382865645,), (1382865646,), (1382865675,), (1382865678,), (1382865680,), (1382865684,), (1382865699,), (1382865701,), (1382865703,), (1382865737,), (1382865741,), (1382865745,), (1382865749,), (1382865761,), (1382865762,), (1382865766,), (1382865768,), (1382865774,), (1382865779,), (1382865807,), (1382865809,), (1382865811,), (1382865828,), (1382865831,), (1382865834,), (1382865836,), (1382865839,), (1382865842,), (1382865868,), (1382865871,), (1382865872,), (1382865876,), (1382865895,), (1382865899,), (1382865905,), (1382865928,), (1382865929,), (1382865931,), (1382865936,), (1382865964,), (1382865967,), (1382866001,), (1382866003,), (1382866005,), (1382866007,), (1382866014,), (1382866041,), (1382866046,), (1382866049,), (1382866054,), (1382866059,), (1382866083,), (1382866085,), (1382866110,), (1382866116,), (1382866121,), (1382866154,), (1382866217,), (1382866144,), (1382866146,), (1382866148,), (1382866181,), (1382866184,), (1382866188,), (1382866192,), (1382866194,), (1382866197,), (1382866213,), (1382866225,), (1382866227,), (1382866231,), (1382866235,), (1382866250,), (1382866253,), (1382866256,), (1382866287,), (1382866290,), (1382866294,), (1382866298,), (1382866327,), (1382866339,), (1382866344,), (1382866349,), (1382866353,), (1382866359,), (1382866373,), (1382866375,), (1382866377,), (1382866382,), (1382866386,), (1382866390,), (1382866401,), (1382866404,), (1382866407,), (1382866430,), (1382866433,), (1382866435,), (1382866438,), (1382866459,), (1382866462,), (1382866466,), (1382866470,), (1382866474,), (1382866478,), (1382866485,), (1382866487,), (1382866489,), (1382866508,), (1382866510,), (1382866512,), (1382866513,), (1382866514,), (1382866524,), (1382866525,), (1382866534,), (1382866535,), (1382866538,), (1382866540,), (1382866549,), (1382866552,), (1382866554,), (1382866558,), (1382866562,), (1382866565,), (1382866979,), (1382867014,), (1382867055,), (1382867118,), (1382867181,), (1382867408,), (1382867465,), (1382867540,), (1382868085,), (1382867829,), (1382867897,), (1382867955,), (1382868016,), (1382868579,), (1382868665,), (1382868748,), (1382868842,), (1382868934,), (1382869025,), (1382869414,), (1382869457,), (1382869519,), (1382869551,), (1382869920,), (1382869926,), (1382869940,), (1382869960,), (1382869973,), (1382869993,), (1382870014,), (1382870015,), (1382870020,), (1382870024,), (1382870029,), (1382870034,), (1382870042,), (1382870046,), (1382870053,), (1382870055,), (1382870058,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'10092025': {'nb_upload': 31, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([26709303]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1382870058, 1382870055, 1382870053, 1382870046, 1382870042, 1382870034, 1382870029, 1382870024, 1382870020, 1382870015, 1382870014, 1382869993, 1382869973, 1382869960, 1382869940, 1382869926, 1382869920] map_info['map_portfolio_photo'] : {26709303: [1382870058, 1382870055, 1382870053, 1382870046, 1382870042, 1382870034, 1382870029, 1382870024, 1382870020, 1382870015, 1382870014, 1382869993, 1382869973, 1382869960, 1382869940, 1382869926, 1382869920, 1382869551, 1382869519, 1382869457, 1382869414, 1382869025, 1382868934, 1382868842, 1382868748, 1382868665, 1382868579, 1382868016, 1382867955, 1382867897, 1382867829]} final : True mtd_id 4302 list_pids : [1382870058, 1382870055, 1382870053, 1382870046, 1382870042, 1382870034, 1382870029, 1382870024, 1382870020, 1382870015, 1382870014, 1382869993, 1382869973, 1382869960, 1382869940, 1382869926, 1382869920] Looping around the photos to save general results len do output : 1 /26709303Didn'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, '3687840') ('4302', '26709303', '1382870058', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870055', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870053', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870046', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870042', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870034', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870029', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870024', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870020', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870015', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382870014', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382869993', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382869973', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382869960', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382869940', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382869926', None, None, None, None, None, '3687840') ('4302', None, None, None, None, None, None, None, '3687840') ('4302', '26709303', '1382869920', None, None, None, None, None, '3687840') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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, '26709303', 'None', None, None, None, None, '3687840'), ('4302', '26709303', '1382870058', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870055', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870053', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870046', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870042', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870034', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870029', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870024', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870020', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870015', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382870014', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382869993', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382869973', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382869960', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382869940', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382869926', None, None, None, None, None, '3687840'), ('4302', '26709303', '1382869920', None, None, None, None, None, '3687840')] time used for this insertion : 0.016692161560058594 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.8821017742156982 time spend to save output : 0.016949892044067383 total time spend for step 5 : 0.8990516662597656 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 (3687840) 2.28user 2.39system 0:08.08elapsed 57%CPU (0avgtext+0avgdata 167932maxresident)k 208inputs+9648outputs (6major+65804minor)pagefaults 0swaps