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 : 3100414 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 (3470820) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3470820) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25762063 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3470820'] with mtr_portfolio_ids : ['25762063'] and first list_photo_ids : [] new path : /proc/3100414/ Name: python3 Umask: 0002 State: R (running) Tgid: 3100414 Ngid: 0 Pid: 3100414 PPid: 3100413 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3100414 NSpid: 3100414 NSpgid: 3099129 NSsid: 3099129 VmPeak: 1106964 kB VmSize: 1106964 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99560 kB VmRSS: 99560 kB RssAnon: 59808 kB RssFile: 39752 kB RssShmem: 0 kB VmData: 865716 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: 58 nonvoluntary_ctxt_switches: 78 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3100414', 'Ngid': '0', 'Pid': '3100414', 'PPid': '3100413', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3100414', 'NSpid': '3100414', 'NSpgid': '3099129', 'NSsid': '3099129', 'VmPeak': '1106964 kB', 'VmSize': '1106964 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99560 kB', 'VmRSS': '99560 kB', 'RssAnon': '59808 kB', 'RssFile': '39752 kB', 'RssShmem': '0 kB', 'VmData': '865716 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': '58', 'nonvoluntary_ctxt_switches': '78'} ('datou_batch_current', '3100414', '1106964', '0', '1106964', '865716', '99560', b'', 'marlene', '3470820') 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 (25762063) 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 (3470820 ) ) 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 (25762063) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1375573923, 'portfolio_id': 25762063}, {'photo_id': 1375573921, 'portfolio_id': 25762063}, {'photo_id': 1375573918, 'portfolio_id': 25762063}, {'photo_id': 1375573916, 'portfolio_id': 25762063}, {'photo_id': 1375573914, 'portfolio_id': 25762063}, {'photo_id': 1375573899, 'portfolio_id': 25762063}, {'photo_id': 1375573896, 'portfolio_id': 25762063}, {'photo_id': 1375573894, 'portfolio_id': 25762063}, {'photo_id': 1375573891, 'portfolio_id': 25762063}, {'photo_id': 1375573889, 'portfolio_id': 25762063}, {'photo_id': 1375573886, 'portfolio_id': 25762063}, {'photo_id': 1375573863, 'portfolio_id': 25762063}, {'photo_id': 1375573861, 'portfolio_id': 25762063}, {'photo_id': 1375573860, 'portfolio_id': 25762063}, {'photo_id': 1375573858, 'portfolio_id': 25762063}, {'photo_id': 1375573832, 'portfolio_id': 25762063}, {'photo_id': 1375573830, 'portfolio_id': 25762063}, {'photo_id': 1375573829, 'portfolio_id': 25762063}, {'photo_id': 1375573827, 'portfolio_id': 25762063}, {'photo_id': 1375573804, 'portfolio_id': 25762063}] map_portfolio_id_photo_id: {25762063: [1375573923, 1375573921, 1375573918, 1375573916, 1375573914, 1375573899, 1375573896, 1375573894, 1375573891, 1375573889, 1375573886, 1375573863, 1375573861, 1375573860, 1375573858, 1375573832, 1375573830, 1375573829, 1375573827, 1375573804]} ##### 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.014552116394042969 #### 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 Thu Aug 7 06:36:57 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 (25762063) 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 : 25762063 get user id for portfolio 25762063 get sub ptf for main ptf 25762063, type 3726 and hashtags ['autre_refus', 'papier', 'environnement', 'flou', 'Carton_gris', 'kraft', 'mal_croppe', 'Teint_Dans_La_Masse', 'metal', 'plastique', 'Carton_brun', 'cartonnette'] 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`=25762063 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','environnement','flou','Carton_gris','kraft','mal_croppe','Teint_Dans_La_Masse','metal','plastique','Carton_brun','cartonnette')) 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`=25762063 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','environnement','flou','Carton_gris','kraft','mal_croppe','Teint_Dans_La_Masse','metal','plastique','Carton_brun','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 25762063, 'sub_port_id': 25762066, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17363678, 'last_updated_at': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 6, 34, 56)}, 'metal': {'main_port_id': 25762063, 'sub_port_id': 25762067, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17363679, 'last_updated_at': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 6, 34, 56)}, 'cartonnette': {'main_port_id': 25762063, 'sub_port_id': 25762068, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17363680, 'last_updated_at': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 6, 34, 56)}, 'autre_refus': {'main_port_id': 25762063, 'sub_port_id': 25762069, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17363681, 'last_updated_at': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 6, 34, 56)}, 'Carton_brun': {'main_port_id': 25762063, 'sub_port_id': 25762070, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17363682, 'last_updated_at': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 6, 34, 56)}, 'kraft': {'main_port_id': 25762063, 'sub_port_id': 25762071, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17363683, 'last_updated_at': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 6, 34, 56)}, 'papier': {'main_port_id': 25762063, 'sub_port_id': 25762072, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17363684, 'last_updated_at': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 6, 34, 56)}, 'plastique': {'main_port_id': 25762063, 'sub_port_id': 25762073, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17363685, 'last_updated_at': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 6, 34, 56)}, 'flou': {'main_port_id': 25762063, 'sub_port_id': 25762074, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17363686, 'last_updated_at': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 6, 34, 56)}, 'environnement': {'main_port_id': 25762063, 'sub_port_id': 25762075, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17363687, 'last_updated_at': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 6, 34, 56)}, 'Teint_Dans_La_Masse': {'main_port_id': 25762063, 'sub_port_id': 25762076, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17363688, 'last_updated_at': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 6, 34, 56)}, 'Carton_gris': {'main_port_id': 25762063, 'sub_port_id': 25762077, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17363689, 'last_updated_at': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 6, 34, 56)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25762066 , 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=25762063 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 (25762066) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25762063) result : ((1375573804,), (1375573827,), (1375573829,), (1375573830,), (1375573832,), (1375573858,), (1375573860,), (1375573861,), (1375573863,), (1375573886,), (1375573889,), (1375573891,), (1375573894,), (1375573896,), (1375573899,), (1375573914,), (1375573916,), (1375573918,), (1375573921,), (1375573923,)) 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 25762067 , 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=25762063 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 (25762067) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25762063) result : ((1375573804,), (1375573827,), (1375573829,), (1375573830,), (1375573832,), (1375573858,), (1375573860,), (1375573861,), (1375573863,), (1375573886,), (1375573889,), (1375573891,), (1375573894,), (1375573896,), (1375573899,), (1375573914,), (1375573916,), (1375573918,), (1375573921,), (1375573923,)) 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 25762068 , 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=25762063 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 (25762068) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25762063) result : ((1375573804,), (1375573827,), (1375573829,), (1375573830,), (1375573832,), (1375573858,), (1375573860,), (1375573861,), (1375573863,), (1375573886,), (1375573889,), (1375573891,), (1375573894,), (1375573896,), (1375573899,), (1375573914,), (1375573916,), (1375573918,), (1375573921,), (1375573923,)) 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 25762069 , 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=25762063 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 (25762069) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25762063) result : ((1375573804,), (1375573827,), (1375573829,), (1375573830,), (1375573832,), (1375573858,), (1375573860,), (1375573861,), (1375573863,), (1375573886,), (1375573889,), (1375573891,), (1375573894,), (1375573896,), (1375573899,), (1375573914,), (1375573916,), (1375573918,), (1375573921,), (1375573923,)) 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 25762070 , 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=25762063 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 (25762070) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25762063) result : ((1375573804,), (1375573827,), (1375573829,), (1375573830,), (1375573832,), (1375573858,), (1375573860,), (1375573861,), (1375573863,), (1375573886,), (1375573889,), (1375573891,), (1375573894,), (1375573896,), (1375573899,), (1375573914,), (1375573916,), (1375573918,), (1375573921,), (1375573923,)) 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 25762071 , 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=25762063 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 (25762071) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25762063) result : ((1375573804,), (1375573827,), (1375573829,), (1375573830,), (1375573832,), (1375573858,), (1375573860,), (1375573861,), (1375573863,), (1375573886,), (1375573889,), (1375573891,), (1375573894,), (1375573896,), (1375573899,), (1375573914,), (1375573916,), (1375573918,), (1375573921,), (1375573923,)) 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 25762072 , 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=25762063 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 (25762072) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25762063) result : ((1375573804,), (1375573827,), (1375573829,), (1375573830,), (1375573832,), (1375573858,), (1375573860,), (1375573861,), (1375573863,), (1375573886,), (1375573889,), (1375573891,), (1375573894,), (1375573896,), (1375573899,), (1375573914,), (1375573916,), (1375573918,), (1375573921,), (1375573923,)) 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 25762073 , 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=25762063 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 (25762073) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25762063) result : ((1375573804,), (1375573827,), (1375573829,), (1375573830,), (1375573832,), (1375573858,), (1375573860,), (1375573861,), (1375573863,), (1375573886,), (1375573889,), (1375573891,), (1375573894,), (1375573896,), (1375573899,), (1375573914,), (1375573916,), (1375573918,), (1375573921,), (1375573923,)) 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 25762074 , 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=25762063 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 (25762074) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25762063) result : ((1375573804,), (1375573827,), (1375573829,), (1375573830,), (1375573832,), (1375573858,), (1375573860,), (1375573861,), (1375573863,), (1375573886,), (1375573889,), (1375573891,), (1375573894,), (1375573896,), (1375573899,), (1375573914,), (1375573916,), (1375573918,), (1375573921,), (1375573923,)) 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 25762075 , 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=25762063 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 (25762075) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25762063) result : ((1375573804,), (1375573827,), (1375573829,), (1375573830,), (1375573832,), (1375573858,), (1375573860,), (1375573861,), (1375573863,), (1375573886,), (1375573889,), (1375573891,), (1375573894,), (1375573896,), (1375573899,), (1375573914,), (1375573916,), (1375573918,), (1375573921,), (1375573923,)) 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 25762076 , 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=25762063 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 (25762076) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25762063) result : ((1375573804,), (1375573827,), (1375573829,), (1375573830,), (1375573832,), (1375573858,), (1375573860,), (1375573861,), (1375573863,), (1375573886,), (1375573889,), (1375573891,), (1375573894,), (1375573896,), (1375573899,), (1375573914,), (1375573916,), (1375573918,), (1375573921,), (1375573923,)) 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 25762077 , 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=25762063 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 (25762077) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25762063) result : ((1375573804,), (1375573827,), (1375573829,), (1375573830,), (1375573832,), (1375573858,), (1375573860,), (1375573861,), (1375573863,), (1375573886,), (1375573889,), (1375573891,), (1375573894,), (1375573896,), (1375573899,), (1375573914,), (1375573916,), (1375573918,), (1375573921,), (1375573923,)) 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`=25762063 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','environnement','flou','Carton_gris','kraft','mal_croppe','Teint_Dans_La_Masse','metal','plastique','Carton_brun','cartonnette')) 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`=25762063 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','environnement','flou','Carton_gris','kraft','mal_croppe','Teint_Dans_La_Masse','metal','plastique','Carton_brun','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'mal_croppe': {'main_port_id': 25762063, 'sub_port_id': 25762078, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17363690, 'last_updated_at': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 6, 34, 58)}, 'metal': {'main_port_id': 25762063, 'sub_port_id': 25762079, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17363691, 'last_updated_at': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 6, 34, 58)}, 'cartonnette': {'main_port_id': 25762063, 'sub_port_id': 25762080, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17363692, 'last_updated_at': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 6, 34, 58)}, 'autre_refus': {'main_port_id': 25762063, 'sub_port_id': 25762081, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17363693, 'last_updated_at': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 6, 34, 58)}, 'Carton_brun': {'main_port_id': 25762063, 'sub_port_id': 25762082, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17363694, 'last_updated_at': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 6, 34, 58)}, 'kraft': {'main_port_id': 25762063, 'sub_port_id': 25762083, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17363695, 'last_updated_at': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 6, 34, 58)}, 'papier': {'main_port_id': 25762063, 'sub_port_id': 25762084, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17363696, 'last_updated_at': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 6, 34, 58)}, 'plastique': {'main_port_id': 25762063, 'sub_port_id': 25762085, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17363697, 'last_updated_at': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 6, 34, 58)}, 'flou': {'main_port_id': 25762063, 'sub_port_id': 25762086, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17363698, 'last_updated_at': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 6, 34, 58)}, 'environnement': {'main_port_id': 25762063, 'sub_port_id': 25762087, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17363699, 'last_updated_at': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 6, 34, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 25762063, 'sub_port_id': 25762088, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17363700, 'last_updated_at': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 6, 34, 58)}, 'Carton_gris': {'main_port_id': 25762063, 'sub_port_id': 25762089, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17363701, 'last_updated_at': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_desc': datetime.datetime(2025, 8, 7, 6, 34, 58), 'last_updated_at_asc': datetime.datetime(2025, 8, 7, 6, 34, 58)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25762078,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25762066 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25762079,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25762067 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25762080,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25762068 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25762081,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25762069 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25762082,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25762070 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25762083,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25762071 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25762084,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25762072 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25762085,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25762073 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25762086,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25762074 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25762087,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25762075 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25762088,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25762076 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25762089,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25762077 lien utilise dans velours : https://www.fotonower.com/velours/25762078,25762079,25762080,25762081,25762082,25762083,25762084,25762085,25762086,25762087,25762088,25762089?tags=mal_croppe,metal,cartonnette,autre_refus,Carton_brun,kraft,papier,plastique,flou,environnement,Teint_Dans_La_Masse,Carton_gris After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25762063]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1375573923, 1375573921, 1375573918, 1375573916, 1375573914, 1375573899, 1375573896, 1375573894, 1375573891, 1375573889, 1375573886] map_info['map_portfolio_photo'] : {25762063: [1375573923, 1375573921, 1375573918, 1375573916, 1375573914, 1375573899, 1375573896, 1375573894, 1375573891, 1375573889, 1375573886, 1375573863, 1375573861, 1375573860, 1375573858, 1375573832, 1375573830, 1375573829, 1375573827, 1375573804]} final : False mtd_id 4302 list_pids : [1375573923, 1375573921, 1375573918, 1375573916, 1375573914, 1375573899, 1375573896, 1375573894, 1375573891, 1375573889, 1375573886] Looping around the photos to save general results len do output : 1 /25762063. 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, '3470820') ('4302', '25762063', '1375573923', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573921', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573918', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573916', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573914', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573899', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573896', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573894', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573891', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573889', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573886', None, None, None, None, None, '3470820') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '25762063', "{'mal_croppe': 25762066, 'metal': 25762067, 'cartonnette': 25762068, 'autre_refus': 25762069, 'Carton_brun': 25762070, 'kraft': 25762071, 'papier': 25762072, 'plastique': 25762073, 'flou': 25762074, 'environnement': 25762075, 'Teint_Dans_La_Masse': 25762076, 'Carton_gris': 25762077}", None, None, None, None, '3470820'), ('4302', '25762063', '1375573923', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573921', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573918', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573916', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573914', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573899', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573896', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573894', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573891', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573889', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573886', None, None, None, None, None, '3470820')] time used for this insertion : 0.0675806999206543 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4919390678405762 time spend to save output : 0.06784462928771973 total time spend for step 1 : 1.559783697128296 step2:final Thu Aug 7 06:36:59 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 (25762063) 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 25762063 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1375573804,1375573832,1375573830,1375573829,1375573827,1375573863,1375573861,1375573860,1375573858,1375573899,1375573896,1375573894,1375573891,1375573889,1375573886,1375573923,1375573921,1375573918,1375573916,1375573914); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25762063]) Inside saveOutput : final : False verbose : True original output for save of step final : {1375573923: ('0.0',), 1375573921: ('0.0',), 1375573918: ('0.0',), 1375573916: ('0.0',), 1375573914: ('0.0',), 1375573899: ('0.0',), 1375573896: ('0.0',), 1375573894: ('0.0',), 1375573891: ('0.0',), 1375573889: ('0.0',), 1375573886: ('0.0',)} new output for save of step final : {1375573923: ('0.0',), 1375573921: ('0.0',), 1375573918: ('0.0',), 1375573916: ('0.0',), 1375573914: ('0.0',), 1375573899: ('0.0',), 1375573896: ('0.0',), 1375573894: ('0.0',), 1375573891: ('0.0',), 1375573889: ('0.0',), 1375573886: ('0.0',)} [1375573923, 1375573921, 1375573918, 1375573916, 1375573914, 1375573899, 1375573896, 1375573894, 1375573891, 1375573889, 1375573886] map_info['map_portfolio_photo'] : {25762063: [1375573923, 1375573921, 1375573918, 1375573916, 1375573914, 1375573899, 1375573896, 1375573894, 1375573891, 1375573889, 1375573886, 1375573863, 1375573861, 1375573860, 1375573858, 1375573832, 1375573830, 1375573829, 1375573827, 1375573804]} final : False mtd_id 4302 list_pids : [1375573923, 1375573921, 1375573918, 1375573916, 1375573914, 1375573899, 1375573896, 1375573894, 1375573891, 1375573889, 1375573886] Looping around the photos to save general results len do output : 11 /1375573923.Didn't retrieve data . /1375573921.Didn't retrieve data . /1375573918.Didn't retrieve data . /1375573916.Didn't retrieve data . /1375573914.Didn't retrieve data . /1375573899.Didn't retrieve data . /1375573896.Didn't retrieve data . /1375573894.Didn't retrieve data . /1375573891.Didn't retrieve data . /1375573889.Didn't retrieve data . /1375573886.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, '3470820') ('4302', '25762063', '1375573923', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573921', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573918', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573916', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573914', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573899', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573896', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573894', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573891', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573889', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573886', None, None, None, None, None, '3470820') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 33 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25762063', '1375573923', '0.0', None, None, None, None, '3470820'), ('4302', '25762063', '1375573921', '0.0', None, None, None, None, '3470820'), ('4302', '25762063', '1375573918', '0.0', None, None, None, None, '3470820'), ('4302', '25762063', '1375573916', '0.0', None, None, None, None, '3470820'), ('4302', '25762063', '1375573914', '0.0', None, None, None, None, '3470820'), ('4302', '25762063', '1375573899', '0.0', None, None, None, None, '3470820'), ('4302', '25762063', '1375573896', '0.0', None, None, None, None, '3470820'), ('4302', '25762063', '1375573894', '0.0', None, None, None, None, '3470820'), ('4302', '25762063', '1375573891', '0.0', None, None, None, None, '3470820'), ('4302', '25762063', '1375573889', '0.0', None, None, None, None, '3470820'), ('4302', '25762063', '1375573886', '0.0', None, None, None, None, '3470820')] time used for this insertion : 0.41069674491882324 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.049535512924194336 time spend to save output : 0.4112534523010254 total time spend for step 2 : 0.4607889652252197 step3:velours_tree Thu Aug 7 06:36:59 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 : {25762063: [{'mal_croppe': 25762066, 'metal': 25762067, 'cartonnette': 25762068, 'autre_refus': 25762069, 'Carton_brun': 25762070, 'kraft': 25762071, 'papier': 25762072, 'plastique': 25762073, 'flou': 25762074, 'environnement': 25762075, 'Teint_Dans_La_Masse': 25762076, 'Carton_gris': 25762077}]} input_args_next_step : {25762063: ()} output_args : {25762063: [{'mal_croppe': 25762066, 'metal': 25762067, 'cartonnette': 25762068, 'autre_refus': 25762069, 'Carton_brun': 25762070, 'kraft': 25762071, 'papier': 25762072, 'plastique': 25762073, 'flou': 25762074, 'environnement': 25762075, 'Teint_Dans_La_Masse': 25762076, 'Carton_gris': 25762077}]} args : 25762063 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 : ({'mal_croppe': 25762066, 'metal': 25762067, 'cartonnette': 25762068, 'autre_refus': 25762069, 'Carton_brun': 25762070, 'kraft': 25762071, 'papier': 25762072, 'plastique': 25762073, 'flou': 25762074, 'environnement': 25762075, 'Teint_Dans_La_Masse': 25762076, 'Carton_gris': 25762077},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25762063) 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([25762063]) 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.2670004367828369 time spend to save output : 4.8160552978515625e-05 total time spend for step 3 : 0.26704859733581543 step4:send_mail_cod Thu Aug 7 06:36:59 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 : {1375573923: ('0.0',), 1375573921: ('0.0',), 1375573918: ('0.0',), 1375573916: ('0.0',), 1375573914: ('0.0',), 1375573899: ('0.0',), 1375573896: ('0.0',), 1375573894: ('0.0',), 1375573891: ('0.0',), 1375573889: ('0.0',), 1375573886: ('0.0',)} input_args_next_step : {1375573923: ()} output_args : {1375573923: ('0.0',), 1375573921: ('0.0',), 1375573918: ('0.0',), 1375573916: ('0.0',), 1375573914: ('0.0',), 1375573899: ('0.0',), 1375573896: ('0.0',), 1375573894: ('0.0',), 1375573891: ('0.0',), 1375573889: ('0.0',), 1375573886: ('0.0',)} args : 1375573923 depend.output_id : 0 input_args_next_step : {1375573923: ('0.0',), 1375573921: ()} output_args : {1375573923: ('0.0',), 1375573921: ('0.0',), 1375573918: ('0.0',), 1375573916: ('0.0',), 1375573914: ('0.0',), 1375573899: ('0.0',), 1375573896: ('0.0',), 1375573894: ('0.0',), 1375573891: ('0.0',), 1375573889: ('0.0',), 1375573886: ('0.0',)} args : 1375573921 depend.output_id : 0 input_args_next_step : {1375573923: ('0.0',), 1375573921: ('0.0',), 1375573918: ()} output_args : {1375573923: ('0.0',), 1375573921: ('0.0',), 1375573918: ('0.0',), 1375573916: ('0.0',), 1375573914: ('0.0',), 1375573899: ('0.0',), 1375573896: ('0.0',), 1375573894: ('0.0',), 1375573891: ('0.0',), 1375573889: ('0.0',), 1375573886: ('0.0',)} args : 1375573918 depend.output_id : 0 input_args_next_step : {1375573923: ('0.0',), 1375573921: ('0.0',), 1375573918: ('0.0',), 1375573916: ()} output_args : {1375573923: ('0.0',), 1375573921: ('0.0',), 1375573918: ('0.0',), 1375573916: ('0.0',), 1375573914: ('0.0',), 1375573899: ('0.0',), 1375573896: ('0.0',), 1375573894: ('0.0',), 1375573891: ('0.0',), 1375573889: ('0.0',), 1375573886: ('0.0',)} args : 1375573916 depend.output_id : 0 input_args_next_step : {1375573923: ('0.0',), 1375573921: ('0.0',), 1375573918: ('0.0',), 1375573916: ('0.0',), 1375573914: ()} output_args : {1375573923: ('0.0',), 1375573921: ('0.0',), 1375573918: ('0.0',), 1375573916: ('0.0',), 1375573914: ('0.0',), 1375573899: ('0.0',), 1375573896: ('0.0',), 1375573894: ('0.0',), 1375573891: ('0.0',), 1375573889: ('0.0',), 1375573886: ('0.0',)} args : 1375573914 depend.output_id : 0 input_args_next_step : {1375573923: ('0.0',), 1375573921: ('0.0',), 1375573918: ('0.0',), 1375573916: ('0.0',), 1375573914: ('0.0',), 1375573899: ()} output_args : {1375573923: ('0.0',), 1375573921: ('0.0',), 1375573918: ('0.0',), 1375573916: ('0.0',), 1375573914: ('0.0',), 1375573899: ('0.0',), 1375573896: ('0.0',), 1375573894: ('0.0',), 1375573891: ('0.0',), 1375573889: ('0.0',), 1375573886: ('0.0',)} args : 1375573899 depend.output_id : 0 input_args_next_step : {1375573923: ('0.0',), 1375573921: ('0.0',), 1375573918: ('0.0',), 1375573916: ('0.0',), 1375573914: ('0.0',), 1375573899: ('0.0',), 1375573896: ()} output_args : {1375573923: ('0.0',), 1375573921: ('0.0',), 1375573918: ('0.0',), 1375573916: ('0.0',), 1375573914: ('0.0',), 1375573899: ('0.0',), 1375573896: ('0.0',), 1375573894: ('0.0',), 1375573891: ('0.0',), 1375573889: ('0.0',), 1375573886: ('0.0',)} args : 1375573896 depend.output_id : 0 input_args_next_step : {1375573923: ('0.0',), 1375573921: ('0.0',), 1375573918: ('0.0',), 1375573916: ('0.0',), 1375573914: ('0.0',), 1375573899: ('0.0',), 1375573896: ('0.0',), 1375573894: ()} output_args : {1375573923: ('0.0',), 1375573921: ('0.0',), 1375573918: ('0.0',), 1375573916: ('0.0',), 1375573914: ('0.0',), 1375573899: ('0.0',), 1375573896: ('0.0',), 1375573894: ('0.0',), 1375573891: ('0.0',), 1375573889: ('0.0',), 1375573886: ('0.0',)} args : 1375573894 depend.output_id : 0 input_args_next_step : {1375573923: ('0.0',), 1375573921: ('0.0',), 1375573918: ('0.0',), 1375573916: ('0.0',), 1375573914: ('0.0',), 1375573899: ('0.0',), 1375573896: ('0.0',), 1375573894: ('0.0',), 1375573891: ()} output_args : {1375573923: ('0.0',), 1375573921: ('0.0',), 1375573918: ('0.0',), 1375573916: ('0.0',), 1375573914: ('0.0',), 1375573899: ('0.0',), 1375573896: ('0.0',), 1375573894: ('0.0',), 1375573891: ('0.0',), 1375573889: ('0.0',), 1375573886: ('0.0',)} args : 1375573891 depend.output_id : 0 input_args_next_step : {1375573923: ('0.0',), 1375573921: ('0.0',), 1375573918: ('0.0',), 1375573916: ('0.0',), 1375573914: ('0.0',), 1375573899: ('0.0',), 1375573896: ('0.0',), 1375573894: ('0.0',), 1375573891: ('0.0',), 1375573889: ()} output_args : {1375573923: ('0.0',), 1375573921: ('0.0',), 1375573918: ('0.0',), 1375573916: ('0.0',), 1375573914: ('0.0',), 1375573899: ('0.0',), 1375573896: ('0.0',), 1375573894: ('0.0',), 1375573891: ('0.0',), 1375573889: ('0.0',), 1375573886: ('0.0',)} args : 1375573889 depend.output_id : 0 input_args_next_step : {1375573923: ('0.0',), 1375573921: ('0.0',), 1375573918: ('0.0',), 1375573916: ('0.0',), 1375573914: ('0.0',), 1375573899: ('0.0',), 1375573896: ('0.0',), 1375573894: ('0.0',), 1375573891: ('0.0',), 1375573889: ('0.0',), 1375573886: ()} output_args : {1375573923: ('0.0',), 1375573921: ('0.0',), 1375573918: ('0.0',), 1375573916: ('0.0',), 1375573914: ('0.0',), 1375573899: ('0.0',), 1375573896: ('0.0',), 1375573894: ('0.0',), 1375573891: ('0.0',), 1375573889: ('0.0',), 1375573886: ('0.0',)} args : 1375573886 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 : {25762063: [{'mal_croppe': 25762066, 'metal': 25762067, 'cartonnette': 25762068, 'autre_refus': 25762069, 'Carton_brun': 25762070, 'kraft': 25762071, 'papier': 25762072, 'plastique': 25762073, 'flou': 25762074, 'environnement': 25762075, 'Teint_Dans_La_Masse': 25762076, 'Carton_gris': 25762077}]} input_args_next_step : {1375573923: ('0.0',), 1375573921: ('0.0',), 1375573918: ('0.0',), 1375573916: ('0.0',), 1375573914: ('0.0',), 1375573899: ('0.0',), 1375573896: ('0.0',), 1375573894: ('0.0',), 1375573891: ('0.0',), 1375573889: ('0.0',), 1375573886: ('0.0',), 25762063: ()} output_args : {25762063: [{'mal_croppe': 25762066, 'metal': 25762067, 'cartonnette': 25762068, 'autre_refus': 25762069, 'Carton_brun': 25762070, 'kraft': 25762071, 'papier': 25762072, 'plastique': 25762073, 'flou': 25762074, 'environnement': 25762075, 'Teint_Dans_La_Masse': 25762076, 'Carton_gris': 25762077}]} args : 25762063 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :12, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25762063) 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 (1375573923,1375573921,1375573918,1375573916,1375573914,1375573899,1375573896,1375573894,1375573891,1375573889,1375573886) Found this number of photos: 11 ##### Call download_photos : nb_thread : 5 begin to download photo : 1375573886 begin to download photo : 1375573894 begin to download photo : 1375573914 begin to download photo : 1375573921 download finish for photo 1375573921 begin to download photo : 1375573923 download finish for photo 1375573886 begin to download photo : 1375573889 download finish for photo 1375573894 begin to download photo : 1375573896 download finish for photo 1375573914 begin to download photo : 1375573916 download finish for photo 1375573896 begin to download photo : 1375573899 download finish for photo 1375573916 begin to download photo : 1375573918 download finish for photo 1375573889 begin to download photo : 1375573891 download finish for photo 1375573923 download finish for photo 1375573891 download finish for photo 1375573918 download finish for photo 1375573899 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette257620661754541420/ imagette257620671754541420/ imagette257620681754541420/ imagette257620691754541420/ imagette257620711754541420/ imagette257620731754541420/ imagette257620741754541420/ imagette257620701754541420/ imagette257620761754541420/ imagette257620771754541420/ length of list_filenames : 11 ; length of list_pids : 11 ; length of list_args : 11 results_Auto_P25762063_07-08-2025_06_37_00.pdf 25762066 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=25762066 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette257620661754541420 25762067 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=25762067 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette257620671754541420 25762068 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=25762068 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette257620681754541420 25762069 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=25762069 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette257620691754541420 25762071 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=25762071 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette257620711754541420 25762073 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=25762073 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette257620731754541420 25762074 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=25762074 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette257620741754541420 25762070 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=25762070 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette257620701754541420 25762076 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=25762076 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette257620761754541420 25762077 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=25762077 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette257620771754541420 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25762063 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25762078,25762079,25762080,25762081,25762082,25762083,25762084,25762085,25762086,25762087,25762088,25762089?tags=mal_croppe,metal,cartonnette,autre_refus,Carton_brun,kraft,papier,plastique,flou,environnement,Teint_Dans_La_Masse,Carton_gris your option no_mail is active, we will not send the real mail to your client args[1375573923] : ('0.0',) no score found for photo 1375573923 We are sending mail with results at report@fotonower.com args[1375573921] : ('0.0',) no score found for photo 1375573921 We are sending mail with results at report@fotonower.com args[1375573918] : ('0.0',) no score found for photo 1375573918 We are sending mail with results at report@fotonower.com args[1375573916] : ('0.0',) no score found for photo 1375573916 We are sending mail with results at report@fotonower.com args[1375573914] : ('0.0',) no score found for photo 1375573914 We are sending mail with results at report@fotonower.com args[1375573899] : ('0.0',) no score found for photo 1375573899 We are sending mail with results at report@fotonower.com args[1375573896] : ('0.0',) no score found for photo 1375573896 We are sending mail with results at report@fotonower.com args[1375573894] : ('0.0',) no score found for photo 1375573894 We are sending mail with results at report@fotonower.com args[1375573891] : ('0.0',) no score found for photo 1375573891 We are sending mail with results at report@fotonower.com args[1375573889] : ('0.0',) no score found for photo 1375573889 We are sending mail with results at report@fotonower.com args[1375573886] : ('0.0',) no score found for photo 1375573886 We are sending mail with results at report@fotonower.com refus_total : 0.0 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=25762063 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_P25762063_07-08-2025_06_37_00.pdf results_Auto_P25762063_07-08-2025_06_37_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25762063_07-08-2025_06_37_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','25762063','results_Auto_P25762063_07-08-2025_06_37_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25762063_07-08-2025_06_37_00.pdf','pdf','','0.1','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25762063]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1375573923, 1375573921, 1375573918, 1375573916, 1375573914, 1375573899, 1375573896, 1375573894, 1375573891, 1375573889, 1375573886] map_info['map_portfolio_photo'] : {25762063: [1375573923, 1375573921, 1375573918, 1375573916, 1375573914, 1375573899, 1375573896, 1375573894, 1375573891, 1375573889, 1375573886, 1375573863, 1375573861, 1375573860, 1375573858, 1375573832, 1375573830, 1375573829, 1375573827, 1375573804]} final : False mtd_id 4302 list_pids : [1375573923, 1375573921, 1375573918, 1375573916, 1375573914, 1375573899, 1375573896, 1375573894, 1375573891, 1375573889, 1375573886] 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, '3470820') ('4302', '25762063', '1375573923', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573921', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573918', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573916', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573914', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573899', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573896', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573894', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573891', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573889', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573886', None, None, None, None, None, '3470820') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25762063', '1375573923', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573921', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573918', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573916', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573914', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573899', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573896', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573894', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573891', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573889', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573886', None, None, None, None, None, '3470820')] time used for this insertion : 0.31479334831237793 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4459474086761475 time spend to save output : 0.3150351047515869 total time spend for step 4 : 1.7609825134277344 step5:split_time_score Thu Aug 7 06:37:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['25762063'] 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 : [('25762063',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25762063) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1375573921: {'path': 'temp/1754541419_3100414_1375573921_f5fd34072f3c52435ab6cbe588d65742.jpg', 'extension': 'jpg'}, 1375573923: {'path': 'temp/1754541419_3100414_1375573923_9a34b11d1a20061b77600e37d2f473b1.jpg', 'extension': 'jpg'}, 1375573886: {'path': 'temp/1754541419_3100414_1375573886_4be144c958068622ce37645643f7be9c.jpg', 'extension': 'jpg'}, 1375573889: {'path': 'temp/1754541419_3100414_1375573889_730a22a90586d2febf88c667b7f6a936.jpg', 'extension': 'jpg'}, 1375573891: {'path': 'temp/1754541419_3100414_1375573891_cef8ff4ed5925e22e11b1000cef96711.jpg', 'extension': 'jpg'}, 1375573914: {'path': 'temp/1754541419_3100414_1375573914_e0447d84d586b4a0df90b44c4ba6caa5.jpg', 'extension': 'jpg'}, 1375573916: {'path': 'temp/1754541419_3100414_1375573916_d50ebef4823ce6c11c85169eb878c5e0.jpg', 'extension': 'jpg'}, 1375573918: {'path': 'temp/1754541419_3100414_1375573918_d82c740ea7b522b6c4fb0d2f24791e7d.jpg', 'extension': 'jpg'}, 1375573894: {'path': 'temp/1754541419_3100414_1375573894_f96d7bc58e3f2452dfb3e3efbfb44e83.jpg', 'extension': 'jpg'}, 1375573896: {'path': 'temp/1754541419_3100414_1375573896_eaf33a2dbceab0fa7358ef3c4f054ba8.jpg', 'extension': 'jpg'}, 1375573899: {'path': 'temp/1754541419_3100414_1375573899_47bc06cba01a6811371abb28fd6b5746.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 = 25762063; (('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 = 25762063 group by h (('06', 20),) 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=25762063 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 (25762063) 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 (25762063) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 07082025 25762063 Nombre de photos uploadées : 20 / 23040 (0%) 07082025 25762063 Nombre de photos taguées (types de déchets): 0 / 20 (0%) 07082025 25762063 Nombre de photos taguées (volume) : 0 / 20 (0%) [{'photo_id': 1375573804, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/ed0ce4dc9bd33501be18072aa3d8d029.jpg', 'username': None, 'uploaded_at': 1754541128, 'text': 'image_07082025_06_30_34_10141.jpg'}, {'photo_id': 1375573832, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/3cea3687d31d1eeff347a5f59b8c34aa.jpg', 'username': None, 'uploaded_at': 1754541187, 'text': 'image_07082025_06_31_05_10149.jpg'}, {'photo_id': 1375573830, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/b96eea3e8415f0c52a7e7519798e7d9b.jpg', 'username': None, 'uploaded_at': 1754541187, 'text': 'image_07082025_06_32_24_9126.jpg'}, {'photo_id': 1375573829, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/7/b44edbfff6072b45e28baafc3afee4bb.jpg', 'username': None, 'uploaded_at': 1754541187, 'text': 'image_07082025_06_32_34_10146.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 3.814697265625e-06 ???????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0007460117340087891 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25762063, '2025-08-07' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-08-07' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2077531,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.22998785972595215 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= 2077531 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2077531, 'dashboard_run_id': 2086589, 'mtr_portfolio_id': 25751495, 'dashboard_result_id': 13709462, '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_P25751495_07-08-2025_00_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25751504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25751505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25751506, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25751507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25751508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25751509, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25751510, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25751511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25751512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25751513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25751514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25751515, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2086589, 'mtr_portfolio_id': 25751863, 'dashboard_result_id': 13709463, '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_P25751863_07-08-2025_00_33_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25751873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25751874, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25751875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25751876, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25751877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25751878, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25751880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25751881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25751882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25751883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25751884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25751885, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2086589, 'mtr_portfolio_id': 25752229, 'dashboard_result_id': 13709464, '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_P25752229_07-08-2025_00_48_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25752264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25752265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25752266, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25752267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25752268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25752269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25752270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25752271, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25752272, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25752273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25752274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25752275, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2086589, 'mtr_portfolio_id': 25752699, 'dashboard_result_id': 13709465, '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_P25752699_07-08-2025_01_33_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25752733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25752734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25752735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25752736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25752737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25752738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25752739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25752740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25752741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25752742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25752743, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25752744, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2086589, 'mtr_portfolio_id': 25753911, 'dashboard_result_id': 13709466, '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_P25753911_07-08-2025_01_47_28.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25753920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25753921, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25753922, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25753923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25753924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25753925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25753926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25753927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25753929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25753930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25753931, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25753932, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2086589, 'mtr_portfolio_id': 25754209, 'dashboard_result_id': 13709467, '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_P25754209_07-08-2025_02_03_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25754238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25754239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25754240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25754241, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25754242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25754243, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25754244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25754245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25754246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25754247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25754248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25754249, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2086589, 'mtr_portfolio_id': 25754559, 'dashboard_result_id': 13709468, '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_P25754559_07-08-2025_02_16_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25754576, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25754577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25754578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25754579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25754580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25754581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25754582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25754583, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25754584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25754585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25754586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25754587, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2086589, 'mtr_portfolio_id': 25755213, 'dashboard_result_id': 13709469, '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_P25755213_07-08-2025_02_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25755240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25755241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25755242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25755243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25755244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25755245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25755246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25755247, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25755248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25755249, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25755250, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25755251, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2086589, 'mtr_portfolio_id': 25755780, 'dashboard_result_id': 13709470, '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_P25755780_07-08-2025_02_47_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25755815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25755816, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25755817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25755818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25755819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25755820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25755821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25755822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25755823, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25755824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25755825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25755826, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2086589, 'mtr_portfolio_id': 25756256, 'dashboard_result_id': 13709471, '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_P25756256_07-08-2025_03_02_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25756300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25756301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25756302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25756303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25756304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25756305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25756306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25756307, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25756308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25756309, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25756310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25756311, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2086589, 'mtr_portfolio_id': 25756736, 'dashboard_result_id': 13709472, '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_P25756736_07-08-2025_03_19_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25756832, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25756833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25756834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25756835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25756836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25756837, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25756838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25756839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25756840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25756841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25756842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25756843, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2086589, 'mtr_portfolio_id': 25757389, 'dashboard_result_id': 13709473, '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_P25757389_07-08-2025_03_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25757432, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25757433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25757434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25757435, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25757436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25757437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25757438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25757439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25757440, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25757441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25757442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25757443, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2086589, 'mtr_portfolio_id': 25757891, 'dashboard_result_id': 13709474, '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_P25757891_07-08-2025_03_49_09.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25757925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25757926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25757927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25757928, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25757929, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25757930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25757931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25757932, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25757933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25757934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25757935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25757936, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2086589, 'mtr_portfolio_id': 25758372, 'dashboard_result_id': 13709475, '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_P25758372_07-08-2025_04_02_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25758405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25758406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25758407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25758408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25758409, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25758410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25758411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25758412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25758413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25758414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25758415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25758416, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2086589, 'mtr_portfolio_id': 25758674, 'dashboard_result_id': 13709476, '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_P25758674_07-08-2025_05_59_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25758718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25758719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25758720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25758721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25758722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25758723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25758724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25758725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25758726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25758727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25758728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25758729, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2086589, 'mtr_portfolio_id': 25760026, 'dashboard_result_id': 13709477, '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_P25760026_07-08-2025_05_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25760032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25760033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25760034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25760035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25760036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25760037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25760038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25760039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25760040, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25760041, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25760042, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25760043, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2086589, 'mtr_portfolio_id': 25760227, 'dashboard_result_id': 13709478, '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_P25760227_07-08-2025_05_38_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25760232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25760233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25760234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25760235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25760236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25760237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25760238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25760239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25760240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25760241, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25760242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25760243, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2086589, 'mtr_portfolio_id': 25760615, 'dashboard_result_id': 13709479, '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_P25760615_07-08-2025_05_47_28.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25760620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25760621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25760622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25760623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25760624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25760625, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25760626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25760627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25760628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25760629, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25760630, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25760631, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2086589, 'mtr_portfolio_id': 25760754, 'dashboard_result_id': 13709480, '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_P25760754_07-08-2025_06_03_27.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25760779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25760780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25760781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25760782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25760783, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25760784, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25760785, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25760786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25760787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25760788, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25760789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25760790, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2086589, 'mtr_portfolio_id': 25761096, 'dashboard_result_id': 13709481, '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_P25761096_07-08-2025_06_19_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25761113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25761114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25761115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25761116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25761117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25761118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25761119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25761120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25761121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25761122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25761123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25761124, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2086589, 'mtr_portfolio_id': 25761686, 'dashboard_result_id': 13709482, '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_P25761686_07-08-2025_06_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25761699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25761700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25761701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25761702, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25761703, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25761704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25761705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25761706, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25761707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25761708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25761709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25761710, 'pht': 3726}}"}, {'dashboat_entry_day': 2077531, 'dashboard_run_id': 2086589, 'mtr_portfolio_id': 25762063, 'dashboard_result_id': 13709483, '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_P25762063_07-08-2025_06_34_59.pdf'}"}] 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 = 25751495 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': 3470340, 'mtr_portfolio_id': 25751495, 'created_at': datetime.datetime(2025, 8, 7, 6, 22, 29), 'result': '0.054382031479043386', 'result_long': None, 'result_double': None}] Qualite : 0.054382031479043386 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25751495 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25751495_07-08-2025_06_22_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25751495 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_P25751495_07-08-2025_06_22_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25751504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25751505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25751506, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25751507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25751508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25751509, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25751510, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25751511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25751512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25751513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25751514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25751515, 'pht': 3726}}" where mtr_portfolio_id = 25751495 and dashboard_run_id = 2086589 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`=25751495 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13709462, 0.054382031479043386, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25751495_07-08-2025_06_22_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25751504, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25751505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25751506, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25751507, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25751508, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25751509, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25751510, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25751511, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25751512, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25751513, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25751514, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25751515, '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 = 25751863 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': 3470341, 'mtr_portfolio_id': 25751863, 'created_at': datetime.datetime(2025, 8, 7, 6, 23, 29), 'result': '0.036966755802286', 'result_long': None, 'result_double': None}] Qualite : 0.036966755802286 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25751863 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25751863_07-08-2025_06_23_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25751863 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_P25751863_07-08-2025_06_23_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25751873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25751874, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25751875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25751876, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25751877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25751878, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25751880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25751881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25751882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25751883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25751884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25751885, 'pht': 3726}}" where mtr_portfolio_id = 25751863 and dashboard_run_id = 2086589 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`=25751863 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13709463, 0.036966755802286, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25751863_07-08-2025_06_23_33.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25751873, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25751874, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25751875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25751876, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25751877, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25751878, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25751880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25751881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25751882, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25751883, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25751884, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25751885, '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 = 25752229 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': 3470342, 'mtr_portfolio_id': 25752229, 'created_at': datetime.datetime(2025, 8, 7, 6, 24), 'result': '0.04556583867205671', 'result_long': None, 'result_double': None}] Qualite : 0.04556583867205671 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25752229 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25752229_07-08-2025_06_24_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25752229 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_P25752229_07-08-2025_06_24_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25752264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25752265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25752266, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25752267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25752268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25752269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25752270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25752271, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25752272, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25752273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25752274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25752275, 'pht': 3726}}" where mtr_portfolio_id = 25752229 and dashboard_run_id = 2086589 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`=25752229 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13709464, 0.04556583867205671, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25752229_07-08-2025_06_24_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25752264, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25752265, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25752266, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25752267, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25752268, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25752269, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25752270, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25752271, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25752272, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25752273, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25752274, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25752275, '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 = 25752699 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': 3470343, 'mtr_portfolio_id': 25752699, 'created_at': datetime.datetime(2025, 8, 7, 6, 24, 30), 'result': '0.039225109676696804', 'result_long': None, 'result_double': None}] Qualite : 0.039225109676696804 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25752699 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25752699_07-08-2025_06_24_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25752699 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_P25752699_07-08-2025_06_24_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25752733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25752734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25752735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25752736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25752737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25752738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25752739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25752740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25752741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25752742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25752743, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25752744, 'pht': 3726}}" where mtr_portfolio_id = 25752699 and dashboard_run_id = 2086589 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`=25752699 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13709465, 0.039225109676696804, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25752699_07-08-2025_06_24_35.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25752733, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25752734, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25752735, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25752736, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25752737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25752738, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25752739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25752740, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25752741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25752742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25752743, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25752744, '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 = 25753911 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': 3470344, 'mtr_portfolio_id': 25753911, 'created_at': datetime.datetime(2025, 8, 7, 6, 25, 27), 'result': '0.0571643638454542', 'result_long': None, 'result_double': None}] Qualite : 0.0571643638454542 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25753911 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25753911_07-08-2025_06_25_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25753911 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_P25753911_07-08-2025_06_25_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25753920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25753921, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25753922, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25753923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25753924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25753925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25753926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25753927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25753929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25753930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25753931, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25753932, 'pht': 3726}}" where mtr_portfolio_id = 25753911 and dashboard_run_id = 2086589 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`=25753911 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13709466, 0.0571643638454542, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25753911_07-08-2025_06_25_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25753920, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25753921, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25753922, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25753923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25753924, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25753925, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25753926, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25753927, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25753929, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25753930, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25753931, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25753932, '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 = 25754209 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': 3470345, 'mtr_portfolio_id': 25754209, 'created_at': datetime.datetime(2025, 8, 7, 6, 25, 37), 'result': '0.061196619997317465', 'result_long': None, 'result_double': None}] Qualite : 0.061196619997317465 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25754209 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25754209_07-08-2025_06_25_40.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25754209 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_P25754209_07-08-2025_06_25_40.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25754238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25754239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25754240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25754241, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25754242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25754243, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25754244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25754245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25754246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25754247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25754248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25754249, 'pht': 3726}}" where mtr_portfolio_id = 25754209 and dashboard_run_id = 2086589 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`=25754209 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13709467, 0.061196619997317465, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25754209_07-08-2025_06_25_40.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25754238, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25754239, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25754240, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25754241, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25754242, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25754243, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25754244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25754245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25754246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25754247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25754248, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25754249, '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 = 25754559 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': 3470346, 'mtr_portfolio_id': 25754559, 'created_at': datetime.datetime(2025, 8, 7, 6, 25, 56), 'result': '0.05896767103439065', 'result_long': None, 'result_double': None}] Qualite : 0.05896767103439065 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25754559 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25754559_07-08-2025_06_25_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25754559 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_P25754559_07-08-2025_06_25_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25754576, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25754577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25754578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25754579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25754580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25754581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25754582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25754583, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25754584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25754585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25754586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25754587, 'pht': 3726}}" where mtr_portfolio_id = 25754559 and dashboard_run_id = 2086589 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`=25754559 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13709468, 0.05896767103439065, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25754559_07-08-2025_06_25_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25754576, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25754577, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25754578, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25754579, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25754580, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25754581, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25754582, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25754583, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25754584, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25754585, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25754586, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25754587, '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 = 25755213 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': 3470347, 'mtr_portfolio_id': 25755213, 'created_at': datetime.datetime(2025, 8, 7, 6, 26, 58), 'result': '0.03618336155143452', 'result_long': None, 'result_double': None}] Qualite : 0.03618336155143452 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25755213 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25755213_07-08-2025_06_27_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25755213 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_P25755213_07-08-2025_06_27_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25755240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25755241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25755242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25755243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25755244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25755245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25755246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25755247, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25755248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25755249, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25755250, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25755251, 'pht': 3726}}" where mtr_portfolio_id = 25755213 and dashboard_run_id = 2086589 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`=25755213 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13709469, 0.03618336155143452, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25755213_07-08-2025_06_27_02.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25755240, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25755241, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25755242, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25755243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25755244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25755245, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25755246, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25755247, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25755248, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25755249, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25755250, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25755251, '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 = 25755780 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': 3470348, 'mtr_portfolio_id': 25755780, 'created_at': datetime.datetime(2025, 8, 7, 6, 27, 31), 'result': '0.04366365585340479', 'result_long': None, 'result_double': None}] Qualite : 0.04366365585340479 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25755780 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25755780_07-08-2025_06_27_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25755780 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_P25755780_07-08-2025_06_27_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25755815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25755816, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25755817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25755818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25755819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25755820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25755821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25755822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25755823, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25755824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25755825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25755826, 'pht': 3726}}" where mtr_portfolio_id = 25755780 and dashboard_run_id = 2086589 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`=25755780 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13709470, 0.04366365585340479, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25755780_07-08-2025_06_27_34.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25755815, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25755816, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25755817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25755818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25755819, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25755820, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25755821, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25755822, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25755823, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25755824, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25755825, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25755826, '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 = 25756256 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': 3470349, 'mtr_portfolio_id': 25756256, 'created_at': datetime.datetime(2025, 8, 7, 6, 27, 58), 'result': '0.03434799702444528', 'result_long': None, 'result_double': None}] Qualite : 0.03434799702444528 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25756256 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25756256_07-08-2025_06_28_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25756256 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_P25756256_07-08-2025_06_28_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25756300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25756301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25756302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25756303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25756304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25756305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25756306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25756307, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25756308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25756309, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25756310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25756311, 'pht': 3726}}" where mtr_portfolio_id = 25756256 and dashboard_run_id = 2086589 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`=25756256 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13709471, 0.03434799702444528, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25756256_07-08-2025_06_28_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25756300, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25756301, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25756302, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25756303, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25756304, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25756305, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25756306, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25756307, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25756308, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25756309, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25756310, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25756311, '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 = 25756736 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': 3470350, 'mtr_portfolio_id': 25756736, 'created_at': datetime.datetime(2025, 8, 7, 6, 28, 29), 'result': '0.03283817061804404', 'result_long': None, 'result_double': None}] Qualite : 0.03283817061804404 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25756736 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25756736_07-08-2025_06_28_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25756736 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_P25756736_07-08-2025_06_28_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25756832, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25756833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25756834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25756835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25756836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25756837, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25756838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25756839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25756840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25756841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25756842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25756843, 'pht': 3726}}" where mtr_portfolio_id = 25756736 and dashboard_run_id = 2086589 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`=25756736 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13709472, 0.03283817061804404, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25756736_07-08-2025_06_28_31.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25756832, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25756833, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25756834, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25756835, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25756836, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25756837, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25756838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25756839, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25756840, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25756841, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25756842, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25756843, '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 = 25757389 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': 3470351, 'mtr_portfolio_id': 25757389, 'created_at': datetime.datetime(2025, 8, 7, 6, 29, 31), 'result': '0.08096228717623817', 'result_long': None, 'result_double': None}] Qualite : 0.08096228717623817 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25757389 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25757389_07-08-2025_06_29_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25757389 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_P25757389_07-08-2025_06_29_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25757432, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25757433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25757434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25757435, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25757436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25757437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25757438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25757439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25757440, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25757441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25757442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25757443, 'pht': 3726}}" where mtr_portfolio_id = 25757389 and dashboard_run_id = 2086589 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`=25757389 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13709473, 0.08096228717623817, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25757389_07-08-2025_06_29_33.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25757432, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25757433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25757434, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25757435, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25757436, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25757437, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25757438, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25757439, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25757440, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25757441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25757442, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25757443, '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 = 25757891 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': 3470352, 'mtr_portfolio_id': 25757891, 'created_at': datetime.datetime(2025, 8, 7, 6, 29, 59), 'result': '0.05234740002419249', 'result_long': None, 'result_double': None}] Qualite : 0.05234740002419249 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25757891 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25757891_07-08-2025_06_30_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25757891 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_P25757891_07-08-2025_06_30_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25757925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25757926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25757927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25757928, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25757929, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25757930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25757931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25757932, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25757933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25757934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25757935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25757936, 'pht': 3726}}" where mtr_portfolio_id = 25757891 and dashboard_run_id = 2086589 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`=25757891 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13709474, 0.05234740002419249, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25757891_07-08-2025_06_30_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25757925, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25757926, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25757927, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25757928, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25757929, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25757930, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25757931, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25757932, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25757933, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25757934, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25757935, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25757936, '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 = 25758372 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': 3470353, 'mtr_portfolio_id': 25758372, 'created_at': datetime.datetime(2025, 8, 7, 6, 30, 29), 'result': '0.04141209967849158', 'result_long': None, 'result_double': None}] Qualite : 0.04141209967849158 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25758372 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25758372_07-08-2025_06_30_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25758372 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_P25758372_07-08-2025_06_30_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25758405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25758406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25758407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25758408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25758409, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25758410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25758411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25758412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25758413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25758414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25758415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25758416, 'pht': 3726}}" where mtr_portfolio_id = 25758372 and dashboard_run_id = 2086589 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`=25758372 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13709475, 0.04141209967849158, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25758372_07-08-2025_06_30_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25758405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25758406, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25758407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25758408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25758409, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25758410, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25758411, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25758412, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25758413, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25758414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25758415, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25758416, '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 = 25758674 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': 3470354, 'mtr_portfolio_id': 25758674, 'created_at': datetime.datetime(2025, 8, 7, 6, 30, 38), 'result': '0.056639902943478856', 'result_long': None, 'result_double': None}] Qualite : 0.056639902943478856 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25758674 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25758674_07-08-2025_06_30_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25758674 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_P25758674_07-08-2025_06_30_39.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25758718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25758719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25758720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25758721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25758722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25758723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25758724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25758725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25758726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25758727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25758728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25758729, 'pht': 3726}}" where mtr_portfolio_id = 25758674 and dashboard_run_id = 2086589 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`=25758674 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13709476, 0.056639902943478856, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25758674_07-08-2025_06_30_39.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25758718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25758719, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25758720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25758721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25758722, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25758723, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25758724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25758725, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25758726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25758727, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25758728, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25758729, '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 = 25760026 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': 3470355, 'mtr_portfolio_id': 25760026, 'created_at': datetime.datetime(2025, 8, 7, 6, 31, 30), 'result': '0.04692630333355236', 'result_long': None, 'result_double': None}] Qualite : 0.04692630333355236 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25760026 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25760026_07-08-2025_06_31_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25760026 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_P25760026_07-08-2025_06_31_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25760032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25760033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25760034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25760035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25760036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25760037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25760038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25760039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25760040, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25760041, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25760042, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25760043, 'pht': 3726}}" where mtr_portfolio_id = 25760026 and dashboard_run_id = 2086589 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`=25760026 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13709477, 0.04692630333355236, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25760026_07-08-2025_06_31_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25760032, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25760033, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25760034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25760035, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25760036, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25760037, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25760038, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25760039, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25760040, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25760041, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25760042, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25760043, '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 = 25760227 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': 3470356, 'mtr_portfolio_id': 25760227, 'created_at': datetime.datetime(2025, 8, 7, 6, 32, 2), 'result': '0.05780181701851307', 'result_long': None, 'result_double': None}] Qualite : 0.05780181701851307 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25760227 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25760227_07-08-2025_06_32_05.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25760227 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_P25760227_07-08-2025_06_32_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25760232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25760233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25760234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25760235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25760236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25760237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25760238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25760239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25760240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25760241, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25760242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25760243, 'pht': 3726}}" where mtr_portfolio_id = 25760227 and dashboard_run_id = 2086589 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`=25760227 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13709478, 0.05780181701851307, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25760227_07-08-2025_06_32_05.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25760232, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25760233, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25760234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25760235, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25760236, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25760237, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25760238, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25760239, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25760240, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25760241, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25760242, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25760243, '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 = 25760615 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': 3470427, 'mtr_portfolio_id': 25760615, 'created_at': datetime.datetime(2025, 8, 7, 5, 47, 27), 'result': '0.0671815555736941', 'result_long': None, 'result_double': None}] Qualite : 0.0671815555736941 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25760615 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25760615_07-08-2025_05_47_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25760615 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_P25760615_07-08-2025_05_47_28.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25760620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25760621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25760622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25760623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25760624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25760625, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25760626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25760627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25760628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25760629, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25760630, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25760631, 'pht': 3726}}" where mtr_portfolio_id = 25760615 and dashboard_run_id = 2086589 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`=25760615 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13709479, 0.0671815555736941, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25760615_07-08-2025_05_47_28.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25760620, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25760621, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25760622, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25760623, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25760624, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25760625, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25760626, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25760627, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25760628, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25760629, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25760630, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25760631, '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 = 25760754 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': 3470472, 'mtr_portfolio_id': 25760754, 'created_at': datetime.datetime(2025, 8, 7, 6, 3, 27), 'result': '0.03189421545645417', 'result_long': None, 'result_double': None}] Qualite : 0.03189421545645417 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25760754 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25760754_07-08-2025_06_03_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25760754 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_P25760754_07-08-2025_06_03_27.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25760779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25760780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25760781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25760782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25760783, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25760784, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25760785, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25760786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25760787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25760788, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25760789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25760790, 'pht': 3726}}" where mtr_portfolio_id = 25760754 and dashboard_run_id = 2086591 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`=25760754 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13709480, 0.03189421545645417, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25760754_07-08-2025_06_03_27.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25760779, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25760780, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25760781, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25760782, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25760783, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25760784, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25760785, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25760786, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25760787, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25760788, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25760789, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25760790, '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 = 25761096 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': 3470584, 'mtr_portfolio_id': 25761096, 'created_at': datetime.datetime(2025, 8, 7, 6, 19, 27), 'result': '0.03897587872558712', 'result_long': None, 'result_double': None}] Qualite : 0.03897587872558712 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25761096 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25761096_07-08-2025_06_19_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25761096 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_P25761096_07-08-2025_06_19_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25761113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25761114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25761115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25761116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25761117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25761118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25761119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25761120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25761121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25761122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25761123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25761124, 'pht': 3726}}" where mtr_portfolio_id = 25761096 and dashboard_run_id = 2086591 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`=25761096 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13709481, 0.03897587872558712, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25761096_07-08-2025_06_19_28.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25761113, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25761114, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25761115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25761116, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25761117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25761118, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25761119, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25761120, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25761121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25761122, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25761123, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25761124, '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 = 25761686 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': 3470721, 'mtr_portfolio_id': 25761686, 'created_at': datetime.datetime(2025, 8, 7, 6, 33), 'result': '0.05372036805092045', 'result_long': None, 'result_double': None}] Qualite : 0.05372036805092045 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25761686 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25761686_07-08-2025_06_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25761686 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_P25761686_07-08-2025_06_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25761699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25761700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25761701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25761702, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25761703, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25761704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25761705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25761706, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25761707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25761708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25761709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25761710, 'pht': 3726}}" where mtr_portfolio_id = 25761686 and dashboard_run_id = 2086591 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`=25761686 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13709482, 0.05372036805092045, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25761686_07-08-2025_06_33_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25761699, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25761700, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25761701, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25761702, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25761703, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25761704, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25761705, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25761706, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25761707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25761708, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25761709, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25761710, '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 = 25762063 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 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 = 25762063 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 25762063 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25762063 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25762063 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25762063 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25762063_07-08-2025_06_37_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25762063 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_P25762063_07-08-2025_06_37_00.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25762066, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25762067, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25762068, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25762069, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25762070, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25762071, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25762072, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25762073, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25762074, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25762075, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25762076, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25762077, 'pht': 3726}}" where mtr_portfolio_id = 25762063 and dashboard_run_id = 2086591 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25751495,25751863,25752229,25752699,25753911,25754209,25754559,25755213,25755780,25756256,25756736,25757389,25757891,25758372,25758674,25760026,25760227,25760615,25760754,25761096,25761686,25762063) result : ((1375549261,), (1375549283,), (1375549607,), (1375549641,), (1375549656,), (1375549658,), (1375549804,), (1375549851,), (1375549888,), (1375549912,), (1375550243,), (1375550244,), (1375550266,), (1375550291,), (1375550426,), (1375550427,), (1375550428,), (1375550430,), (1375550433,), (1375550448,), (1375550449,), (1375550451,), (1375550454,), (1375550457,), (1375550460,), (1375550470,), (1375550471,), (1375550473,), (1375550534,), (1375550538,), (1375550539,), (1375550541,), (1375550544,), (1375550546,), (1375550653,), (1375550654,), (1375550655,), (1375550657,), (1375550660,), (1375550662,), (1375550676,), (1375550677,), (1375550678,), (1375550680,), (1375550768,), (1375550771,), (1375550775,), (1375550779,), (1375550784,), (1375550811,), (1375550851,), (1375550852,), (1375550853,), (1375550855,), (1375550872,), (1375550873,), (1375550898,), (1375550899,), (1375550900,), (1375550902,), (1375550914,), (1375550936,), (1375550937,), (1375550939,), (1375550942,), (1375550944,), (1375550952,), (1375551505,), (1375551419,), (1375551501,), (1375551572,), (1375551574,), (1375551577,), (1375551580,), (1375551583,), (1375551601,), (1375551602,), (1375551603,), (1375551605,), (1375551615,), (1375551616,), (1375551617,), (1375551619,), (1375551642,), (1375551643,), (1375551645,), (1375551648,), (1375551651,), (1375551653,), (1375551738,), (1375551760,), (1375551765,), (1375551766,), (1375551769,), (1375551785,), (1375551786,), (1375551787,), (1375551788,), (1375551799,), (1375551800,), (1375551801,), (1375551803,), (1375551804,), (1375551807,), (1375551816,), (1375551817,), (1375551819,), (1375551822,), (1375551826,), (1375551829,), (1375551839,), (1375551841,), (1375551844,), (1375551847,), (1375551854,), (1375551868,), (1375551932,), (1375551958,), (1375551988,), (1375552014,), (1375552039,), (1375552061,), (1375552185,), (1375552186,), (1375552209,), (1375552210,), (1375552215,), (1375552216,), (1375552219,), (1375552220,), (1375552223,), (1375552224,), (1375552225,), (1375552226,), (1375552227,), (1375552228,), (1375552229,), (1375552231,), (1375552234,), (1375552240,), (1375552261,), (1375552273,), (1375552275,), (1375552276,), (1375552278,), (1375552305,), (1375552312,), (1375552313,), (1375552315,), (1375552317,), (1375552319,), (1375552328,), (1375552330,), (1375552331,), (1375552334,), (1375552622,), (1375552613,), (1375552615,), (1375552617,), (1375552619,), (1375552635,), (1375552636,), (1375552643,), (1375552653,), (1375552656,), (1375552701,), (1375552702,), (1375552703,), (1375552704,), (1375552727,), (1375552728,), (1375552729,), (1375552731,), (1375552735,), (1375552738,), (1375552761,), (1375552762,), (1375552763,), (1375552765,), (1375552782,), (1375552789,), (1375552790,), (1375552794,), (1375552797,), (1375552800,), (1375552810,), (1375552819,), (1375552822,), (1375552826,), (1375552830,), (1375552833,), (1375552848,), (1375552849,), (1375552850,), (1375552862,), (1375552863,), (1375552864,), (1375552866,), (1375552869,), (1375552872,), (1375552884,), (1375552885,), (1375552886,), (1375552888,), (1375552921,), (1375552922,), (1375552923,), (1375552926,), (1375552929,), (1375552931,), (1375552941,), (1375552942,), (1375552943,), (1375552944,), (1375552946,), (1375552949,), (1375552971,), (1375552972,), (1375552973,), (1375552988,), (1375552989,), (1375552991,), (1375552995,), (1375552997,), (1375553001,), (1375553016,), (1375553018,), (1375553021,), (1375553024,), (1375553026,), (1375553029,), (1375553032,), (1375553033,), (1375553051,), (1375553045,), (1375553046,), (1375553048,), (1375553061,), (1375553066,), (1375553078,), (1375553094,), (1375553098,), (1375553108,), (1375553133,), (1375553134,), (1375553135,), (1375553137,), (1375553141,), (1375553144,), (1375553164,), (1375553165,), (1375553182,), (1375553186,), (1375553192,), (1375553193,), (1375553195,), (1375553233,), (1375553234,), (1375553235,), (1375553236,), (1375553252,), (1375553253,), (1375553254,), (1375553256,), (1375553275,), (1375553276,), (1375553277,), (1375553279,), (1375553284,), (1375553286,), (1375553306,), (1375553307,), (1375553308,), (1375553312,), (1375553316,), (1375553323,), (1375553343,), (1375553345,), (1375553348,), (1375553352,), (1375553354,), (1375553358,), (1375553363,), (1375553365,), (1375553367,), (1375553370,), (1375553372,), (1375553374,), (1375553424,), (1375553446,), (1375553469,), (1375553491,), (1375553517,), (1375553546,), (1375553639,), (1375553663,), (1375553686,), (1375553689,), (1375553701,), (1375553725,), (1375553766,), (1375553772,), (1375553776,), (1375553777,), (1375555859,), (1375555856,), (1375555857,), (1375555858,), (1375555870,), (1375555871,), (1375555872,), (1375555873,), (1375555885,), (1375555886,), (1375555887,), (1375555888,), (1375555900,), (1375555901,), (1375555902,), (1375555903,), (1375555917,), (1375555921,), (1375555923,), (1375555948,), (1375555950,), (1375555952,), (1375555956,), (1375555960,), (1375555963,), (1375555983,), (1375555984,), (1375555998,), (1375555999,), (1375556000,), (1375556022,), (1375556023,), (1375556024,), (1375556025,), (1375556027,), (1375556051,), (1375556052,), (1375556053,), (1375556055,), (1375556058,), (1375556061,), (1375556081,), (1375556082,), (1375556083,), (1375556086,), (1375556105,), (1375556106,), (1375556107,), (1375556109,), (1375556112,), (1375556130,), (1375556131,), (1375556132,), (1375556134,), (1375556137,), (1375556146,), (1375556148,), (1375556149,), (1375556150,), (1375556152,), (1375556171,), (1375556169,), (1375556170,), (1375556192,), (1375556193,), (1375556194,), (1375556195,), (1375556197,), (1375556200,), (1375556213,), (1375556214,), (1375556215,), (1375556218,), (1375556222,), (1375556236,), (1375556237,), (1375556238,), (1375556239,), (1375556241,), (1375556245,), (1375556263,), (1375556268,), (1375556269,), (1375556289,), (1375556290,), (1375556291,), (1375556292,), (1375556295,), (1375556320,), (1375556321,), (1375556322,), (1375556328,), (1375556336,), (1375556356,), (1375556357,), (1375556358,), (1375556360,), (1375556375,), (1375556376,), (1375556377,), (1375556382,), (1375556409,), (1375556410,), (1375556412,), (1375556416,), (1375556419,), (1375556422,), (1375556428,), (1375556430,), (1375556431,), (1375556432,), (1375556433,), (1375556434,), (1375556435,), (1375556437,), (1375556439,), (1375556459,), (1375556460,), (1375556477,), (1375556478,), (1375556479,), (1375556481,), (1375556484,), (1375556636,), (1375556696,), (1375556743,), (1375556790,), (1375556840,), (1375556976,), (1375556977,), (1375557020,), (1375557027,), (1375557064,), (1375557073,), (1375557383,), (1375557326,), (1375557362,), (1375557851,), (1375557898,), (1375557926,), (1375557954,), (1375557991,), (1375558038,), (1375558260,), (1375558261,), (1375558262,), (1375558264,), (1375558266,), (1375558437,), (1375558448,), (1375558449,), (1375558456,), (1375558526,), (1375558527,), (1375558528,), (1375558531,), (1375558555,), (1375558556,), (1375558557,), (1375558562,), (1375558564,), (1375558567,), (1375558580,), (1375558581,), (1375558582,), (1375558602,), (1375558603,), (1375558604,), (1375558605,), (1375558619,), (1375558620,), (1375558621,), (1375558642,), (1375558667,), (1375558692,), (1375558914,), (1375558938,), (1375558963,), (1375558987,), (1375559011,), (1375559020,), (1375559130,), (1375559154,), (1375559155,), (1375559174,), (1375559199,), (1375559200,), (1375559201,), (1375559202,), (1375559212,), (1375559213,), (1375559215,), (1375559219,), (1375559232,), (1375559233,), (1375559234,), (1375559236,), (1375559239,), (1375559248,), (1375559250,), (1375559251,), (1375559281,), (1375559278,), (1375559279,), (1375559280,), (1375559299,), (1375559300,), (1375559301,), (1375559302,), (1375559305,), (1375559308,), (1375559326,), (1375559332,), (1375559333,), (1375559334,), (1375559337,), (1375559340,), (1375559352,), (1375559353,), (1375559354,), (1375559355,), (1375559379,), (1375559383,), (1375559384,), (1375559385,), (1375559387,), (1375559409,), (1375559410,), (1375559411,), (1375559412,), (1375559416,), (1375559419,), (1375559439,), (1375559440,), (1375559442,), (1375559443,), (1375559458,), (1375559459,), (1375559460,), (1375559461,), (1375559462,), (1375559474,), (1375559475,), (1375559476,), (1375559477,), (1375559479,), (1375559488,), (1375559489,), (1375559490,), (1375559492,), (1375559495,), (1375559497,), (1375559520,), (1375559521,), (1375559523,), (1375559526,), (1375559532,), (1375559539,), (1375559547,), (1375559548,), (1375559552,), (1375559559,), (1375559561,), (1375559563,), (1375559569,), (1375559572,), (1375559576,), (1375559579,), (1375559581,), (1375559589,), (1375559590,), (1375559593,), (1375559594,), (1375559597,), (1375559598,), (1375559600,), (1375559602,), (1375559604,), (1375559605,), (1375559606,), (1375559607,), (1375559609,), (1375559610,), (1375559611,), (1375559612,), (1375559615,), (1375559617,), (1375559627,), (1375559628,), (1375559637,), (1375559639,), (1375559641,), (1375559643,), (1375559646,), (1375559671,), (1375559667,), (1375559668,), (1375559669,), (1375559670,), (1375559711,), (1375559712,), (1375559713,), (1375559714,), (1375559715,), (1375559731,), (1375559732,), (1375559734,), (1375559736,), (1375559750,), (1375559751,), (1375559753,), (1375559755,), (1375559758,), (1375559762,), (1375559772,), (1375559773,), (1375559774,), (1375559782,), (1375559783,), (1375559784,), (1375559805,), (1375559806,), (1375559807,), (1375559810,), (1375559823,), (1375559824,), (1375559825,), (1375559827,), (1375559829,), (1375559859,), (1375559867,), (1375559869,), (1375559884,), (1375559885,), (1375559886,), (1375559887,), (1375559905,), (1375559906,), (1375559907,), (1375559909,), (1375559911,), (1375559938,), (1375559939,), (1375559959,), (1375559961,), (1375559962,), (1375559964,), (1375559978,), (1375559979,), (1375560002,), (1375560003,), (1375560004,), (1375560005,), (1375560008,), (1375560015,), (1375560017,), (1375560018,), (1375560020,), (1375560022,), (1375560049,), (1375560041,), (1375560042,), (1375560043,), (1375560046,), (1375560074,), (1375560075,), (1375560076,), (1375560078,), (1375560100,), (1375560101,), (1375560102,), (1375560103,), (1375560105,), (1375560108,), (1375560118,), (1375560119,), (1375560120,), (1375560122,), (1375560124,), (1375560126,), (1375560141,), (1375560172,), (1375560174,), (1375560175,), (1375560179,), (1375560202,), (1375560203,), (1375560204,), (1375560221,), (1375560222,), (1375560223,), (1375560224,), (1375560257,), (1375560258,), (1375560274,), (1375560275,), (1375560276,), (1375560278,), (1375560282,), (1375560285,), (1375560305,), (1375560306,), (1375560481,), (1375560504,), (1375560527,), (1375560548,), (1375561482,), (1375561553,), (1375561587,), (1375561612,), (1375561698,), (1375561722,), (1375561734,), (1375561738,), (1375561763,), (1375562004,), (1375561943,), (1375561978,), (1375562149,), (1375562150,), (1375562151,), (1375562159,), (1375562167,), (1375562176,), (1375562186,), (1375562187,), (1375562188,), (1375562189,), (1375562211,), (1375562212,), (1375562213,), (1375562214,), (1375562224,), (1375562225,), (1375562226,), (1375562227,), (1375562228,), (1375562231,), (1375562246,), (1375562247,), (1375562248,), (1375562249,), (1375562266,), (1375562267,), (1375562331,), (1375562332,), (1375562349,), (1375562350,), (1375562351,), (1375562352,), (1375562354,), (1375562376,), (1375562377,), (1375562378,), (1375562379,), (1375562408,), (1375562409,), (1375562410,), (1375562412,), (1375562416,), (1375562437,), (1375562439,), (1375562440,), (1375562443,), (1375562446,), (1375562490,), (1375562491,), (1375562492,), (1375562493,), (1375562495,), (1375562511,), (1375562512,), (1375562523,), (1375562532,), (1375562538,), (1375562548,), (1375562550,), (1375562551,), (1375562576,), (1375562569,), (1375562570,), (1375562571,), (1375562573,), (1375562590,), (1375562591,), (1375562594,), (1375562602,), (1375562608,), (1375562620,), (1375562636,), (1375562637,), (1375562638,), (1375562639,), (1375562658,), (1375562672,), (1375562673,), (1375562674,), (1375562702,), (1375562703,), (1375562704,), (1375562706,), (1375562708,), (1375562711,), (1375562727,), (1375562730,), (1375562732,), (1375562735,), (1375562739,), (1375562746,), (1375562747,), (1375562748,), (1375562749,), (1375562752,), (1375562772,), (1375562775,), (1375562776,), (1375562777,), (1375562780,), (1375562795,), (1375562797,), (1375562799,), (1375562803,), (1375562807,), (1375562811,), (1375562820,), (1375562821,), (1375562822,), (1375562823,), (1375562852,), (1375562853,), (1375562854,), (1375562869,), (1375562870,), (1375562871,), (1375562872,), (1375562873,), (1375562885,), (1375562886,), (1375562887,), (1375562889,), (1375562891,), (1375562908,), (1375562910,), (1375562911,), (1375562966,), (1375562944,), (1375562946,), (1375562949,), (1375562955,), (1375562985,), (1375562989,), (1375562990,), (1375562991,), (1375562993,), (1375562996,), (1375563010,), (1375563011,), (1375563012,), (1375563024,), (1375563025,), (1375563027,), (1375563028,), (1375563042,), (1375563043,), (1375563044,), (1375563045,), (1375563067,), (1375563068,), (1375563069,), (1375563070,), (1375563073,), (1375563092,), (1375563151,), (1375563152,), (1375563153,), (1375563154,), (1375563156,), (1375563158,), (1375563180,), (1375563181,), (1375563182,), (1375563183,), (1375563185,), (1375563188,), (1375563205,), (1375563212,), (1375563214,), (1375563217,), (1375563220,), (1375563242,), (1375563243,), (1375563244,), (1375563246,), (1375563249,), (1375563252,), (1375563270,), (1375563271,), (1375563272,), (1375563274,), (1375563277,), (1375563319,), (1375563320,), (1375563321,), (1375563324,), (1375563343,), (1375563344,), (1375563345,), (1375563347,), (1375563359,), (1375563361,), (1375563365,), (1375563369,), (1375563372,), (1375563397,), (1375563386,), (1375563387,), (1375563388,), (1375563390,), (1375563410,), (1375563411,), (1375563412,), (1375563414,), (1375563435,), (1375563437,), (1375563439,), (1375563442,), (1375563445,), (1375563461,), (1375563462,), (1375563463,), (1375563482,), (1375563483,), (1375563484,), (1375563489,), (1375563492,), (1375563525,), (1375563526,), (1375563527,), (1375563529,), (1375563532,), (1375563554,), (1375563555,), (1375563556,), (1375563558,), (1375563577,), (1375563579,), (1375563580,), (1375563582,), (1375563584,), (1375563596,), (1375563598,), (1375563599,), (1375563602,), (1375563605,), (1375563623,), (1375563625,), (1375563629,), (1375563633,), (1375563637,), (1375563639,), (1375563645,), (1375563646,), (1375563647,), (1375563649,), (1375563652,), (1375563663,), (1375563664,), (1375563665,), (1375563667,), (1375563669,), (1375563672,), (1375563841,), (1375563863,), (1375563888,), (1375563914,), (1375563936,), (1375563959,), (1375564058,), (1375564083,), (1375564107,), (1375564137,), (1375564840,), (1375564885,), (1375564928,), (1375564964,), (1375565000,), (1375565037,), (1375565350,), (1375565262,), (1375565276,), (1375565305,), (1375565339,), (1375565609,), (1375565630,), (1375565759,), (1375565761,), (1375565764,), (1375565767,), (1375565769,), (1375565791,), (1375565792,), (1375565795,), (1375565798,), (1375565801,), (1375565803,), (1375565811,), (1375565814,), (1375565820,), (1375565822,), (1375565826,), (1375565830,), (1375565832,), (1375565835,), (1375565857,), (1375565865,), (1375565867,), (1375565902,), (1375565904,), (1375565930,), (1375565940,), (1375565944,), (1375565946,), (1375565961,), (1375565963,), (1375565965,), (1375565967,), (1375565982,), (1375568640,), (1375569350,), (1375569386,), (1375569387,), (1375569457,), (1375569499,), (1375569501,), (1375569517,), (1375569566,), (1375569569,), (1375569572,), (1375569592,), (1375569595,), (1375569598,), (1375569610,), (1375569614,), (1375569646,), (1375569647,), (1375569648,), (1375569683,), (1375569685,), (1375569686,), (1375569688,), (1375569700,), (1375569737,), (1375569732,), (1375569734,), (1375569735,), (1375569753,), (1375569755,), (1375569757,), (1375569763,), (1375569772,), (1375569787,), (1375569789,), (1375569790,), (1375569792,), (1375569794,), (1375569806,), (1375569808,), (1375569809,), (1375569811,), (1375569813,), (1375569815,), (1375569825,), (1375569827,), (1375569828,), (1375569830,), (1375569833,), (1375569868,), (1375569872,), (1375569873,), (1375569875,), (1375569898,), (1375569901,), (1375569902,), (1375569904,), (1375569906,), (1375569908,), (1375569924,), (1375569927,), (1375569931,), (1375569934,), (1375569937,), (1375569985,), (1375569989,), (1375569992,), (1375569994,), (1375570015,), (1375570017,), (1375570020,), (1375570022,), (1375570045,), (1375570049,), (1375570051,), (1375570085,), (1375570087,), (1375570089,), (1375570091,), (1375570094,), (1375570105,), (1375570107,), (1375570109,), (1375570112,), (1375570116,), (1375570160,), (1375570165,), (1375570166,), (1375570168,), (1375570186,), (1375570189,), (1375570335,), (1375570334,), (1375570353,), (1375570354,), (1375570355,), (1375570357,), (1375570359,), (1375570361,), (1375570376,), (1375570377,), (1375570378,), (1375570380,), (1375570396,), (1375570397,), (1375570398,), (1375570400,), (1375570402,), (1375570427,), (1375570428,), (1375570429,), (1375570430,), (1375570432,), (1375570435,), (1375570453,), (1375570454,), (1375570455,), (1375570457,), (1375570474,), (1375570475,), (1375570476,), (1375570477,), (1375570479,), (1375570482,), (1375570505,), (1375570506,), (1375570507,), (1375570522,), (1375570524,), (1375570525,), (1375570527,), (1375570530,), (1375570533,), (1375570561,), (1375570552,), (1375570555,), (1375570556,), (1375570558,), (1375570583,), (1375570587,), (1375570599,), (1375570604,), (1375570617,), (1375570620,), (1375570631,), (1375570637,), (1375570643,), (1375570645,), (1375570663,), (1375570664,), (1375570665,), (1375570666,), (1375570668,), (1375570671,), (1375570694,), (1375570695,), (1375570696,), (1375570698,), (1375570700,), (1375570751,), (1375570756,), (1375570761,), (1375570763,), (1375570766,), (1375570783,), (1375570784,), (1375570785,), (1375570787,), (1375570789,), (1375570805,), (1375570806,), (1375570807,), (1375570809,), (1375570834,), (1375570835,), (1375570836,), (1375570838,), (1375570860,), (1375570861,), (1375570862,), (1375570864,), (1375570866,), (1375570869,), (1375570884,), (1375570886,), (1375570887,), (1375570903,), (1375570904,), (1375570905,), (1375570939,), (1375571430,), (1375572233,), (1375572101,), (1375572143,), (1375572191,), (1375572778,), (1375572803,), (1375572813,), (1375572828,), (1375572842,), (1375572986,), (1375572988,), (1375572990,), (1375572992,), (1375573009,), (1375573011,), (1375573012,), (1375573015,), (1375573018,), (1375573021,), (1375573027,), (1375573029,), (1375573031,), (1375573054,), (1375573055,), (1375573057,), (1375573060,), (1375573062,), (1375573065,), (1375573084,), (1375573091,), (1375573098,), (1375573100,), (1375573103,), (1375573117,), (1375573119,), (1375573121,), (1375573125,), (1375573126,), (1375573130,), (1375573149,), (1375573151,), (1375573153,), (1375573170,), (1375573172,), (1375573174,), (1375573177,), (1375573216,), (1375573219,), (1375573221,), (1375573243,), (1375573251,), (1375573255,), (1375573271,), (1375573273,), (1375573294,), (1375573297,), (1375573298,), (1375573323,), (1375573327,), (1375573328,), (1375573331,), (1375573334,), (1375573359,), (1375573351,), (1375573353,), (1375573354,), (1375573356,), (1375573373,), (1375573374,), (1375573400,), (1375573401,), (1375573420,), (1375573421,), (1375573422,), (1375573424,), (1375573427,), (1375573444,), (1375573445,), (1375573446,), (1375573448,), (1375573485,), (1375573486,), (1375573487,), (1375573489,), (1375573491,), (1375573493,), (1375573515,), (1375573516,), (1375573517,), (1375573519,), (1375573537,), (1375573540,), (1375573541,), (1375573542,), (1375573545,), (1375573548,), (1375573568,), (1375573569,), (1375573570,), (1375573572,), (1375573574,), (1375573592,), (1375573593,), (1375573608,), (1375573609,), (1375573610,), (1375573612,), (1375573615,), (1375573637,), (1375573638,), (1375573640,), (1375573643,), (1375573646,), (1375573672,), (1375573675,), (1375573685,), (1375573687,), (1375573689,), (1375573692,), (1375573703,), (1375573704,), (1375573705,), (1375573728,), (1375573734,), (1375573737,), (1375573739,), (1375573781,), (1375573804,), (1375573827,), (1375573829,), (1375573830,), (1375573832,), (1375573858,), (1375573860,), (1375573861,), (1375573863,), (1375573886,), (1375573889,), (1375573891,), (1375573894,), (1375573896,), (1375573899,), (1375573914,), (1375573916,), (1375573918,), (1375573921,), (1375573923,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'07082025': {'nb_upload': 20, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25762063]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1375573923, 1375573921, 1375573918, 1375573916, 1375573914, 1375573899, 1375573896, 1375573894, 1375573891, 1375573889, 1375573886] map_info['map_portfolio_photo'] : {25762063: [1375573923, 1375573921, 1375573918, 1375573916, 1375573914, 1375573899, 1375573896, 1375573894, 1375573891, 1375573889, 1375573886, 1375573863, 1375573861, 1375573860, 1375573858, 1375573832, 1375573830, 1375573829, 1375573827, 1375573804]} final : True mtd_id 4302 list_pids : [1375573923, 1375573921, 1375573918, 1375573916, 1375573914, 1375573899, 1375573896, 1375573894, 1375573891, 1375573889, 1375573886] Looping around the photos to save general results len do output : 1 /25762063Didn'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, '3470820') ('4302', '25762063', '1375573923', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573921', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573918', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573916', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573914', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573899', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573896', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573894', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573891', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573889', None, None, None, None, None, '3470820') ('4302', None, None, None, None, None, None, None, '3470820') ('4302', '25762063', '1375573886', None, None, None, None, None, '3470820') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '25762063', 'None', None, None, None, None, '3470820'), ('4302', '25762063', '1375573923', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573921', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573918', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573916', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573914', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573899', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573896', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573894', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573891', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573889', None, None, None, None, None, '3470820'), ('4302', '25762063', '1375573886', None, None, None, None, None, '3470820')] time used for this insertion : 0.01834869384765625 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.2163147926330566 time spend to save output : 0.01855158805847168 total time spend for step 5 : 2.2348663806915283 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 (3470820) 2.02user 2.49system 0:08.42elapsed 53%CPU (0avgtext+0avgdata 161072maxresident)k 32inputs+6432outputs (2major+64175minor)pagefaults 0swaps