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 : 2081514 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 (3406195) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3406195) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25529875 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3406195'] with mtr_portfolio_ids : ['25529875'] and first list_photo_ids : [] new path : /proc/2081514/ Name: python3 Umask: 0002 State: R (running) Tgid: 2081514 Ngid: 0 Pid: 2081514 PPid: 2081513 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2081514 NSpid: 2081514 NSpgid: 2080274 NSsid: 2080274 VmPeak: 1106860 kB VmSize: 1106860 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 99704 kB VmRSS: 99704 kB RssAnon: 59816 kB RssFile: 39888 kB RssShmem: 0 kB VmData: 865612 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 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: 41 nonvoluntary_ctxt_switches: 87 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2081514', 'Ngid': '0', 'Pid': '2081514', 'PPid': '2081513', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2081514', 'NSpid': '2081514', 'NSpgid': '2080274', 'NSsid': '2080274', 'VmPeak': '1106860 kB', 'VmSize': '1106860 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '99704 kB', 'VmRSS': '99704 kB', 'RssAnon': '59816 kB', 'RssFile': '39888 kB', 'RssShmem': '0 kB', 'VmData': '865612 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 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': '41', 'nonvoluntary_ctxt_switches': '87'} ('datou_batch_current', '2081514', '1106860', '0', '1106860', '865612', '99704', b'', 'marlene', '3406195') 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 (25529875) 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 (3406195 ) ) 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 (25529875) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1374554024, 'portfolio_id': 25529875}, {'photo_id': 1374553997, 'portfolio_id': 25529875}, {'photo_id': 1374553972, 'portfolio_id': 25529875}, {'photo_id': 1374553949, 'portfolio_id': 25529875}, {'photo_id': 1374553923, 'portfolio_id': 25529875}, {'photo_id': 1374553899, 'portfolio_id': 25529875}, {'photo_id': 1374553840, 'portfolio_id': 25529875}, {'photo_id': 1374553838, 'portfolio_id': 25529875}, {'photo_id': 1374553837, 'portfolio_id': 25529875}, {'photo_id': 1374553836, 'portfolio_id': 25529875}, {'photo_id': 1374553835, 'portfolio_id': 25529875}, {'photo_id': 1374553834, 'portfolio_id': 25529875}, {'photo_id': 1374553731, 'portfolio_id': 25529875}, {'photo_id': 1374553730, 'portfolio_id': 25529875}, {'photo_id': 1374553710, 'portfolio_id': 25529875}, {'photo_id': 1374553682, 'portfolio_id': 25529875}, {'photo_id': 1374553657, 'portfolio_id': 25529875}, {'photo_id': 1374553633, 'portfolio_id': 25529875}, {'photo_id': 1374553621, 'portfolio_id': 25529875}, {'photo_id': 1374553617, 'portfolio_id': 25529875}, {'photo_id': 1374553470, 'portfolio_id': 25529875}, {'photo_id': 1374553440, 'portfolio_id': 25529875}, {'photo_id': 1374553406, 'portfolio_id': 25529875}, {'photo_id': 1374553381, 'portfolio_id': 25529875}, {'photo_id': 1374553353, 'portfolio_id': 25529875}, {'photo_id': 1374553324, 'portfolio_id': 25529875}, {'photo_id': 1374553084, 'portfolio_id': 25529875}, {'photo_id': 1374553066, 'portfolio_id': 25529875}, {'photo_id': 1374553064, 'portfolio_id': 25529875}, {'photo_id': 1374553063, 'portfolio_id': 25529875}, {'photo_id': 1374553062, 'portfolio_id': 25529875}, {'photo_id': 1374553061, 'portfolio_id': 25529875}, {'photo_id': 1374553040, 'portfolio_id': 25529875}, {'photo_id': 1374553035, 'portfolio_id': 25529875}, {'photo_id': 1374553033, 'portfolio_id': 25529875}, {'photo_id': 1374553031, 'portfolio_id': 25529875}, {'photo_id': 1374553026, 'portfolio_id': 25529875}, {'photo_id': 1374553025, 'portfolio_id': 25529875}, {'photo_id': 1374553011, 'portfolio_id': 25529875}, {'photo_id': 1374553009, 'portfolio_id': 25529875}, {'photo_id': 1374553007, 'portfolio_id': 25529875}, {'photo_id': 1374553006, 'portfolio_id': 25529875}, {'photo_id': 1374553005, 'portfolio_id': 25529875}, {'photo_id': 1374553004, 'portfolio_id': 25529875}, {'photo_id': 1374552927, 'portfolio_id': 25529875}, {'photo_id': 1374552926, 'portfolio_id': 25529875}] map_portfolio_id_photo_id: {25529875: [1374554024, 1374553997, 1374553972, 1374553949, 1374553923, 1374553899, 1374553840, 1374553838, 1374553837, 1374553836, 1374553835, 1374553834, 1374553731, 1374553730, 1374553710, 1374553682, 1374553657, 1374553633, 1374553621, 1374553617, 1374553470, 1374553440, 1374553406, 1374553381, 1374553353, 1374553324, 1374553084, 1374553066, 1374553064, 1374553063, 1374553062, 1374553061, 1374553040, 1374553035, 1374553033, 1374553031, 1374553026, 1374553025, 1374553011, 1374553009, 1374553007, 1374553006, 1374553005, 1374553004, 1374552927, 1374552926]} ##### 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.01413869857788086 #### 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 Jul 31 08:08:56 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25529875) 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 : 25529875 get user id for portfolio 25529875 get sub ptf for main ptf 25529875, type 3726 and hashtags ['Carton_gris', 'environnement', 'papier', 'mal_croppe', 'flou', 'Teint_Dans_La_Masse', 'metal', 'autre_refus', 'Carton_brun', 'cartonnette', 'plastique', 'kraft'] 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`=25529875 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','environnement','papier','mal_croppe','flou','Teint_Dans_La_Masse','metal','autre_refus','Carton_brun','cartonnette','plastique','kraft')) 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`=25529875 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','environnement','papier','mal_croppe','flou','Teint_Dans_La_Masse','metal','autre_refus','Carton_brun','cartonnette','plastique','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 25529875, 'sub_port_id': 25529910, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17218877, 'last_updated_at': datetime.datetime(2025, 7, 31, 8, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 8, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 8, 3, 27)}, 'environnement': {'main_port_id': 25529875, 'sub_port_id': 25529911, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17218878, 'last_updated_at': datetime.datetime(2025, 7, 31, 8, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 8, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 8, 3, 27)}, 'metal': {'main_port_id': 25529875, 'sub_port_id': 25529912, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17218879, 'last_updated_at': datetime.datetime(2025, 7, 31, 8, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 8, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 8, 3, 27)}, 'kraft': {'main_port_id': 25529875, 'sub_port_id': 25529913, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17218880, 'last_updated_at': datetime.datetime(2025, 7, 31, 8, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 8, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 8, 3, 27)}, 'plastique': {'main_port_id': 25529875, 'sub_port_id': 25529914, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17218881, 'last_updated_at': datetime.datetime(2025, 7, 31, 8, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 8, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 8, 3, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 25529875, 'sub_port_id': 25529915, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17218882, 'last_updated_at': datetime.datetime(2025, 7, 31, 8, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 8, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 8, 3, 27)}, 'flou': {'main_port_id': 25529875, 'sub_port_id': 25529916, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17218883, 'last_updated_at': datetime.datetime(2025, 7, 31, 8, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 8, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 8, 3, 27)}, 'papier': {'main_port_id': 25529875, 'sub_port_id': 25529917, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17218884, 'last_updated_at': datetime.datetime(2025, 7, 31, 8, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 8, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 8, 3, 27)}, 'mal_croppe': {'main_port_id': 25529875, 'sub_port_id': 25529918, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17218885, 'last_updated_at': datetime.datetime(2025, 7, 31, 8, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 8, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 8, 3, 27)}, 'Carton_gris': {'main_port_id': 25529875, 'sub_port_id': 25529919, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17218886, 'last_updated_at': datetime.datetime(2025, 7, 31, 8, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 8, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 8, 3, 27)}, 'autre_refus': {'main_port_id': 25529875, 'sub_port_id': 25529920, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17218887, 'last_updated_at': datetime.datetime(2025, 7, 31, 8, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 8, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 8, 3, 27)}, 'cartonnette': {'main_port_id': 25529875, 'sub_port_id': 25529921, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17218888, 'last_updated_at': datetime.datetime(2025, 7, 31, 8, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 8, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 8, 3, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25529910 , 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=25529875 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 (25529910) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25529875) result : ((1374552926,), (1374552927,), (1374553004,), (1374553005,), (1374553006,), (1374553007,), (1374553009,), (1374553011,), (1374553025,), (1374553026,), (1374553031,), (1374553033,), (1374553035,), (1374553040,), (1374553061,), (1374553062,), (1374553063,), (1374553064,), (1374553066,), (1374553084,), (1374553324,), (1374553353,), (1374553381,), (1374553406,), (1374553440,), (1374553470,), (1374553617,), (1374553621,), (1374553633,), (1374553657,), (1374553682,), (1374553710,), (1374553730,), (1374553731,), (1374553834,), (1374553835,), (1374553836,), (1374553837,), (1374553838,), (1374553840,), (1374553899,), (1374553923,), (1374553949,), (1374553972,), (1374553997,), (1374554024,)) 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 25529911 , 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=25529875 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 (25529911) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25529875) result : ((1374552926,), (1374552927,), (1374553004,), (1374553005,), (1374553006,), (1374553007,), (1374553009,), (1374553011,), (1374553025,), (1374553026,), (1374553031,), (1374553033,), (1374553035,), (1374553040,), (1374553061,), (1374553062,), (1374553063,), (1374553064,), (1374553066,), (1374553084,), (1374553324,), (1374553353,), (1374553381,), (1374553406,), (1374553440,), (1374553470,), (1374553617,), (1374553621,), (1374553633,), (1374553657,), (1374553682,), (1374553710,), (1374553730,), (1374553731,), (1374553834,), (1374553835,), (1374553836,), (1374553837,), (1374553838,), (1374553840,), (1374553899,), (1374553923,), (1374553949,), (1374553972,), (1374553997,), (1374554024,)) 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 25529912 , 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=25529875 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 (25529912) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25529875) result : ((1374552926,), (1374552927,), (1374553004,), (1374553005,), (1374553006,), (1374553007,), (1374553009,), (1374553011,), (1374553025,), (1374553026,), (1374553031,), (1374553033,), (1374553035,), (1374553040,), (1374553061,), (1374553062,), (1374553063,), (1374553064,), (1374553066,), (1374553084,), (1374553324,), (1374553353,), (1374553381,), (1374553406,), (1374553440,), (1374553470,), (1374553617,), (1374553621,), (1374553633,), (1374553657,), (1374553682,), (1374553710,), (1374553730,), (1374553731,), (1374553834,), (1374553835,), (1374553836,), (1374553837,), (1374553838,), (1374553840,), (1374553899,), (1374553923,), (1374553949,), (1374553972,), (1374553997,), (1374554024,)) 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 25529913 , 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=25529875 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 (25529913) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25529875) result : ((1374552926,), (1374552927,), (1374553004,), (1374553005,), (1374553006,), (1374553007,), (1374553009,), (1374553011,), (1374553025,), (1374553026,), (1374553031,), (1374553033,), (1374553035,), (1374553040,), (1374553061,), (1374553062,), (1374553063,), (1374553064,), (1374553066,), (1374553084,), (1374553324,), (1374553353,), (1374553381,), (1374553406,), (1374553440,), (1374553470,), (1374553617,), (1374553621,), (1374553633,), (1374553657,), (1374553682,), (1374553710,), (1374553730,), (1374553731,), (1374553834,), (1374553835,), (1374553836,), (1374553837,), (1374553838,), (1374553840,), (1374553899,), (1374553923,), (1374553949,), (1374553972,), (1374553997,), (1374554024,)) 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 25529914 , 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=25529875 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 (25529914) result : ((1374553620,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25529875) result : ((1374552926,), (1374552927,), (1374553004,), (1374553005,), (1374553006,), (1374553007,), (1374553009,), (1374553011,), (1374553025,), (1374553026,), (1374553031,), (1374553033,), (1374553035,), (1374553040,), (1374553061,), (1374553062,), (1374553063,), (1374553064,), (1374553066,), (1374553084,), (1374553324,), (1374553353,), (1374553381,), (1374553406,), (1374553440,), (1374553470,), (1374553617,), (1374553621,), (1374553633,), (1374553657,), (1374553682,), (1374553710,), (1374553730,), (1374553731,), (1374553834,), (1374553835,), (1374553836,), (1374553837,), (1374553838,), (1374553840,), (1374553899,), (1374553923,), (1374553949,), (1374553972,), (1374553997,), (1374554024,)) 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 25529915 , 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=25529875 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 (25529915) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25529875) result : ((1374552926,), (1374552927,), (1374553004,), (1374553005,), (1374553006,), (1374553007,), (1374553009,), (1374553011,), (1374553025,), (1374553026,), (1374553031,), (1374553033,), (1374553035,), (1374553040,), (1374553061,), (1374553062,), (1374553063,), (1374553064,), (1374553066,), (1374553084,), (1374553324,), (1374553353,), (1374553381,), (1374553406,), (1374553440,), (1374553470,), (1374553617,), (1374553621,), (1374553633,), (1374553657,), (1374553682,), (1374553710,), (1374553730,), (1374553731,), (1374553834,), (1374553835,), (1374553836,), (1374553837,), (1374553838,), (1374553840,), (1374553899,), (1374553923,), (1374553949,), (1374553972,), (1374553997,), (1374554024,)) 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 25529916 , 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=25529875 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 (25529916) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25529875) result : ((1374552926,), (1374552927,), (1374553004,), (1374553005,), (1374553006,), (1374553007,), (1374553009,), (1374553011,), (1374553025,), (1374553026,), (1374553031,), (1374553033,), (1374553035,), (1374553040,), (1374553061,), (1374553062,), (1374553063,), (1374553064,), (1374553066,), (1374553084,), (1374553324,), (1374553353,), (1374553381,), (1374553406,), (1374553440,), (1374553470,), (1374553617,), (1374553621,), (1374553633,), (1374553657,), (1374553682,), (1374553710,), (1374553730,), (1374553731,), (1374553834,), (1374553835,), (1374553836,), (1374553837,), (1374553838,), (1374553840,), (1374553899,), (1374553923,), (1374553949,), (1374553972,), (1374553997,), (1374554024,)) 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 25529917 , 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=25529875 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 (25529917) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25529875) result : ((1374552926,), (1374552927,), (1374553004,), (1374553005,), (1374553006,), (1374553007,), (1374553009,), (1374553011,), (1374553025,), (1374553026,), (1374553031,), (1374553033,), (1374553035,), (1374553040,), (1374553061,), (1374553062,), (1374553063,), (1374553064,), (1374553066,), (1374553084,), (1374553324,), (1374553353,), (1374553381,), (1374553406,), (1374553440,), (1374553470,), (1374553617,), (1374553621,), (1374553633,), (1374553657,), (1374553682,), (1374553710,), (1374553730,), (1374553731,), (1374553834,), (1374553835,), (1374553836,), (1374553837,), (1374553838,), (1374553840,), (1374553899,), (1374553923,), (1374553949,), (1374553972,), (1374553997,), (1374554024,)) 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 25529918 , 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=25529875 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 (25529918) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25529875) result : ((1374552926,), (1374552927,), (1374553004,), (1374553005,), (1374553006,), (1374553007,), (1374553009,), (1374553011,), (1374553025,), (1374553026,), (1374553031,), (1374553033,), (1374553035,), (1374553040,), (1374553061,), (1374553062,), (1374553063,), (1374553064,), (1374553066,), (1374553084,), (1374553324,), (1374553353,), (1374553381,), (1374553406,), (1374553440,), (1374553470,), (1374553617,), (1374553621,), (1374553633,), (1374553657,), (1374553682,), (1374553710,), (1374553730,), (1374553731,), (1374553834,), (1374553835,), (1374553836,), (1374553837,), (1374553838,), (1374553840,), (1374553899,), (1374553923,), (1374553949,), (1374553972,), (1374553997,), (1374554024,)) 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 25529919 , 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=25529875 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 (25529919) result : ((1374553618,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25529875) result : ((1374552926,), (1374552927,), (1374553004,), (1374553005,), (1374553006,), (1374553007,), (1374553009,), (1374553011,), (1374553025,), (1374553026,), (1374553031,), (1374553033,), (1374553035,), (1374553040,), (1374553061,), (1374553062,), (1374553063,), (1374553064,), (1374553066,), (1374553084,), (1374553324,), (1374553353,), (1374553381,), (1374553406,), (1374553440,), (1374553470,), (1374553617,), (1374553621,), (1374553633,), (1374553657,), (1374553682,), (1374553710,), (1374553730,), (1374553731,), (1374553834,), (1374553835,), (1374553836,), (1374553837,), (1374553838,), (1374553840,), (1374553899,), (1374553923,), (1374553949,), (1374553972,), (1374553997,), (1374554024,)) 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 25529920 , 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=25529875 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 (25529920) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25529875) result : ((1374552926,), (1374552927,), (1374553004,), (1374553005,), (1374553006,), (1374553007,), (1374553009,), (1374553011,), (1374553025,), (1374553026,), (1374553031,), (1374553033,), (1374553035,), (1374553040,), (1374553061,), (1374553062,), (1374553063,), (1374553064,), (1374553066,), (1374553084,), (1374553324,), (1374553353,), (1374553381,), (1374553406,), (1374553440,), (1374553470,), (1374553617,), (1374553621,), (1374553633,), (1374553657,), (1374553682,), (1374553710,), (1374553730,), (1374553731,), (1374553834,), (1374553835,), (1374553836,), (1374553837,), (1374553838,), (1374553840,), (1374553899,), (1374553923,), (1374553949,), (1374553972,), (1374553997,), (1374554024,)) 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 25529921 , 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=25529875 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 (25529921) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25529875) result : ((1374552926,), (1374552927,), (1374553004,), (1374553005,), (1374553006,), (1374553007,), (1374553009,), (1374553011,), (1374553025,), (1374553026,), (1374553031,), (1374553033,), (1374553035,), (1374553040,), (1374553061,), (1374553062,), (1374553063,), (1374553064,), (1374553066,), (1374553084,), (1374553324,), (1374553353,), (1374553381,), (1374553406,), (1374553440,), (1374553470,), (1374553617,), (1374553621,), (1374553633,), (1374553657,), (1374553682,), (1374553710,), (1374553730,), (1374553731,), (1374553834,), (1374553835,), (1374553836,), (1374553837,), (1374553838,), (1374553840,), (1374553899,), (1374553923,), (1374553949,), (1374553972,), (1374553997,), (1374554024,)) 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`=25529875 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','environnement','papier','mal_croppe','flou','Teint_Dans_La_Masse','metal','autre_refus','Carton_brun','cartonnette','plastique','kraft')) 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`=25529875 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','environnement','papier','mal_croppe','flou','Teint_Dans_La_Masse','metal','autre_refus','Carton_brun','cartonnette','plastique','kraft')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 25529875, 'sub_port_id': 25529922, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17218889, 'last_updated_at': datetime.datetime(2025, 7, 31, 8, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 8, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 8, 3, 28)}, 'environnement': {'main_port_id': 25529875, 'sub_port_id': 25529923, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17218890, 'last_updated_at': datetime.datetime(2025, 7, 31, 8, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 8, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 8, 3, 28)}, 'metal': {'main_port_id': 25529875, 'sub_port_id': 25529924, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17218891, 'last_updated_at': datetime.datetime(2025, 7, 31, 8, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 8, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 8, 3, 28)}, 'kraft': {'main_port_id': 25529875, 'sub_port_id': 25529925, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17218892, 'last_updated_at': datetime.datetime(2025, 7, 31, 8, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 8, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 8, 3, 28)}, 'plastique': {'main_port_id': 25529875, 'sub_port_id': 25529926, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17218893, 'last_updated_at': datetime.datetime(2025, 7, 31, 8, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 8, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 8, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 25529875, 'sub_port_id': 25529927, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17218894, 'last_updated_at': datetime.datetime(2025, 7, 31, 8, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 8, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 8, 3, 28)}, 'flou': {'main_port_id': 25529875, 'sub_port_id': 25529928, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17218895, 'last_updated_at': datetime.datetime(2025, 7, 31, 8, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 8, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 8, 3, 28)}, 'papier': {'main_port_id': 25529875, 'sub_port_id': 25529929, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17218896, 'last_updated_at': datetime.datetime(2025, 7, 31, 8, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 8, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 8, 3, 28)}, 'mal_croppe': {'main_port_id': 25529875, 'sub_port_id': 25529930, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17218897, 'last_updated_at': datetime.datetime(2025, 7, 31, 8, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 8, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 8, 3, 28)}, 'Carton_gris': {'main_port_id': 25529875, 'sub_port_id': 25529931, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17218898, 'last_updated_at': datetime.datetime(2025, 7, 31, 8, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 8, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 8, 3, 28)}, 'autre_refus': {'main_port_id': 25529875, 'sub_port_id': 25529932, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17218899, 'last_updated_at': datetime.datetime(2025, 7, 31, 8, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 8, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 8, 3, 28)}, 'cartonnette': {'main_port_id': 25529875, 'sub_port_id': 25529933, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17218900, 'last_updated_at': datetime.datetime(2025, 7, 31, 8, 6, 58), 'last_updated_at_desc': datetime.datetime(2025, 7, 31, 8, 6, 58), 'last_updated_at_asc': datetime.datetime(2025, 7, 31, 8, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25529922,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25529910 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25529923,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25529911 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25529924,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25529912 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25529925,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25529913 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25529926,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25529914 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25529927,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25529915 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25529928,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25529916 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25529929,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25529917 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25529930,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25529918 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25529931,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25529919 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25529932,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25529920 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25529933,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25529921 lien utilise dans velours : https://www.fotonower.com/velours/25529922,25529923,25529924,25529925,25529926,25529927,25529928,25529929,25529930,25529931,25529932,25529933?tags=Carton_brun,environnement,metal,kraft,plastique,Teint_Dans_La_Masse,flou,papier,mal_croppe,Carton_gris,autre_refus,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25529875]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1374554024, 1374553997, 1374553972, 1374553949, 1374553923, 1374553899, 1374553840, 1374553838, 1374553837, 1374553836, 1374553835, 1374553834, 1374553731, 1374553730, 1374553710, 1374553682, 1374553657, 1374553633, 1374553621, 1374553617] map_info['map_portfolio_photo'] : {25529875: [1374554024, 1374553997, 1374553972, 1374553949, 1374553923, 1374553899, 1374553840, 1374553838, 1374553837, 1374553836, 1374553835, 1374553834, 1374553731, 1374553730, 1374553710, 1374553682, 1374553657, 1374553633, 1374553621, 1374553617, 1374553470, 1374553440, 1374553406, 1374553381, 1374553353, 1374553324, 1374553084, 1374553066, 1374553064, 1374553063, 1374553062, 1374553061, 1374553040, 1374553035, 1374553033, 1374553031, 1374553026, 1374553025, 1374553011, 1374553009, 1374553007, 1374553006, 1374553005, 1374553004, 1374552927, 1374552926]} final : False mtd_id 4302 list_pids : [1374554024, 1374553997, 1374553972, 1374553949, 1374553923, 1374553899, 1374553840, 1374553838, 1374553837, 1374553836, 1374553835, 1374553834, 1374553731, 1374553730, 1374553710, 1374553682, 1374553657, 1374553633, 1374553621, 1374553617] Looping around the photos to save general results len do output : 1 /25529875. 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, '3406195') ('4302', '25529875', '1374554024', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553997', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553972', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553949', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553923', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553899', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553840', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553838', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553837', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553836', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553835', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553834', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553731', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553730', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553710', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553682', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553657', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553633', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553621', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553617', None, None, None, None, None, '3406195') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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, '25529875', "{'Carton_brun': 25529910, 'environnement': 25529911, 'metal': 25529912, 'kraft': 25529913, 'plastique': 25529914, 'Teint_Dans_La_Masse': 25529915, 'flou': 25529916, 'papier': 25529917, 'mal_croppe': 25529918, 'Carton_gris': 25529919, 'autre_refus': 25529920, 'cartonnette': 25529921}", None, None, None, None, '3406195'), ('4302', '25529875', '1374554024', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553997', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553972', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553949', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553923', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553899', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553840', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553838', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553837', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553836', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553835', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553834', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553731', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553730', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553710', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553682', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553657', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553633', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553621', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553617', None, None, None, None, None, '3406195')] time used for this insertion : 0.1786482334136963 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5002121925354004 time spend to save output : 0.1789989471435547 total time spend for step 1 : 1.679211139678955 step2:final Thu Jul 31 08:08: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 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 (25529875) 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 25529875 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1374552927,1374552926,1374553011,1374553009,1374553007,1374553006,1374553005,1374553004,1374553040,1374553035,1374553033,1374553031,1374553026,1374553025,1374553084,1374553066,1374553064,1374553063,1374553062,1374553061,1374553470,1374553440,1374553406,1374553381,1374553353,1374553324,1374553710,1374553682,1374553657,1374553633,1374553621,1374553730,1374553731,1374553617,1374553840,1374553838,1374553837,1374553836,1374553835,1374553834,1374554024,1374553997,1374553972,1374553949,1374553923,1374553899); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25529875]) Inside saveOutput : final : False verbose : True original output for save of step final : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ('0.02546865073031657',), 1374553657: ('0.02546865073031657',), 1374553633: ('0.02546865073031657',), 1374553621: ('0.02546865073031657',), 1374553617: ('0.02546865073031657',)} new output for save of step final : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ('0.02546865073031657',), 1374553657: ('0.02546865073031657',), 1374553633: ('0.02546865073031657',), 1374553621: ('0.02546865073031657',), 1374553617: ('0.02546865073031657',)} [1374554024, 1374553997, 1374553972, 1374553949, 1374553923, 1374553899, 1374553840, 1374553838, 1374553837, 1374553836, 1374553835, 1374553834, 1374553731, 1374553730, 1374553710, 1374553682, 1374553657, 1374553633, 1374553621, 1374553617] map_info['map_portfolio_photo'] : {25529875: [1374554024, 1374553997, 1374553972, 1374553949, 1374553923, 1374553899, 1374553840, 1374553838, 1374553837, 1374553836, 1374553835, 1374553834, 1374553731, 1374553730, 1374553710, 1374553682, 1374553657, 1374553633, 1374553621, 1374553617, 1374553470, 1374553440, 1374553406, 1374553381, 1374553353, 1374553324, 1374553084, 1374553066, 1374553064, 1374553063, 1374553062, 1374553061, 1374553040, 1374553035, 1374553033, 1374553031, 1374553026, 1374553025, 1374553011, 1374553009, 1374553007, 1374553006, 1374553005, 1374553004, 1374552927, 1374552926]} final : False mtd_id 4302 list_pids : [1374554024, 1374553997, 1374553972, 1374553949, 1374553923, 1374553899, 1374553840, 1374553838, 1374553837, 1374553836, 1374553835, 1374553834, 1374553731, 1374553730, 1374553710, 1374553682, 1374553657, 1374553633, 1374553621, 1374553617] Looping around the photos to save general results len do output : 20 /1374554024.Didn't retrieve data . /1374553997.Didn't retrieve data . /1374553972.Didn't retrieve data . /1374553949.Didn't retrieve data . /1374553923.Didn't retrieve data . /1374553899.Didn't retrieve data . /1374553840.Didn't retrieve data . /1374553838.Didn't retrieve data . /1374553837.Didn't retrieve data . /1374553836.Didn't retrieve data . /1374553835.Didn't retrieve data . /1374553834.Didn't retrieve data . /1374553731.Didn't retrieve data . /1374553730.Didn't retrieve data . /1374553710.Didn't retrieve data . /1374553682.Didn't retrieve data . /1374553657.Didn't retrieve data . /1374553633.Didn't retrieve data . /1374553621.Didn't retrieve data . /1374553617.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, '3406195') ('4302', '25529875', '1374554024', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553997', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553972', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553949', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553923', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553899', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553840', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553838', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553837', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553836', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553835', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553834', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553731', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553730', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553710', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553682', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553657', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553633', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553621', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553617', None, None, None, None, None, '3406195') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 60 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', '25529875', '1374554024', '0.02546865073031657', None, None, None, None, '3406195'), ('4302', '25529875', '1374553997', '0.02546865073031657', None, None, None, None, '3406195'), ('4302', '25529875', '1374553972', '0.02546865073031657', None, None, None, None, '3406195'), ('4302', '25529875', '1374553949', '0.02546865073031657', None, None, None, None, '3406195'), ('4302', '25529875', '1374553923', '0.02546865073031657', None, None, None, None, '3406195'), ('4302', '25529875', '1374553899', '0.02546865073031657', None, None, None, None, '3406195'), ('4302', '25529875', '1374553840', '0.02546865073031657', None, None, None, None, '3406195'), ('4302', '25529875', '1374553838', '0.02546865073031657', None, None, None, None, '3406195'), ('4302', '25529875', '1374553837', '0.02546865073031657', None, None, None, None, '3406195'), ('4302', '25529875', '1374553836', '0.02546865073031657', None, None, None, None, '3406195'), ('4302', '25529875', '1374553835', '0.02546865073031657', None, None, None, None, '3406195'), ('4302', '25529875', '1374553834', '0.02546865073031657', None, None, None, None, '3406195'), ('4302', '25529875', '1374553731', '0.02546865073031657', None, None, None, None, '3406195'), ('4302', '25529875', '1374553730', '0.02546865073031657', None, None, None, None, '3406195'), ('4302', '25529875', '1374553710', '0.02546865073031657', None, None, None, None, '3406195'), ('4302', '25529875', '1374553682', '0.02546865073031657', None, None, None, None, '3406195'), ('4302', '25529875', '1374553657', '0.02546865073031657', None, None, None, None, '3406195'), ('4302', '25529875', '1374553633', '0.02546865073031657', None, None, None, None, '3406195'), ('4302', '25529875', '1374553621', '0.02546865073031657', None, None, None, None, '3406195'), ('4302', '25529875', '1374553617', '0.02546865073031657', None, None, None, None, '3406195')] time used for this insertion : 0.115142822265625 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.15051770210266113 time spend to save output : 0.11605024337768555 total time spend for step 2 : 0.2665679454803467 step3:velours_tree Thu Jul 31 08:08: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 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 : {25529875: [{'Carton_brun': 25529910, 'environnement': 25529911, 'metal': 25529912, 'kraft': 25529913, 'plastique': 25529914, 'Teint_Dans_La_Masse': 25529915, 'flou': 25529916, 'papier': 25529917, 'mal_croppe': 25529918, 'Carton_gris': 25529919, 'autre_refus': 25529920, 'cartonnette': 25529921}]} input_args_next_step : {25529875: ()} output_args : {25529875: [{'Carton_brun': 25529910, 'environnement': 25529911, 'metal': 25529912, 'kraft': 25529913, 'plastique': 25529914, 'Teint_Dans_La_Masse': 25529915, 'flou': 25529916, 'papier': 25529917, 'mal_croppe': 25529918, 'Carton_gris': 25529919, 'autre_refus': 25529920, 'cartonnette': 25529921}]} args : 25529875 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 : ({'Carton_brun': 25529910, 'environnement': 25529911, 'metal': 25529912, 'kraft': 25529913, 'plastique': 25529914, 'Teint_Dans_La_Masse': 25529915, 'flou': 25529916, 'papier': 25529917, 'mal_croppe': 25529918, 'Carton_gris': 25529919, 'autre_refus': 25529920, 'cartonnette': 25529921},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25529875) 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([25529875]) 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.30291271209716797 time spend to save output : 5.364418029785156e-05 total time spend for step 3 : 0.3029663562774658 step4:send_mail_cod Thu Jul 31 08:08:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ('0.02546865073031657',), 1374553657: ('0.02546865073031657',), 1374553633: ('0.02546865073031657',), 1374553621: ('0.02546865073031657',), 1374553617: ('0.02546865073031657',)} input_args_next_step : {1374554024: ()} output_args : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ('0.02546865073031657',), 1374553657: ('0.02546865073031657',), 1374553633: ('0.02546865073031657',), 1374553621: ('0.02546865073031657',), 1374553617: ('0.02546865073031657',)} args : 1374554024 depend.output_id : 0 input_args_next_step : {1374554024: ('0.02546865073031657',), 1374553997: ()} output_args : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ('0.02546865073031657',), 1374553657: ('0.02546865073031657',), 1374553633: ('0.02546865073031657',), 1374553621: ('0.02546865073031657',), 1374553617: ('0.02546865073031657',)} args : 1374553997 depend.output_id : 0 input_args_next_step : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ()} output_args : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ('0.02546865073031657',), 1374553657: ('0.02546865073031657',), 1374553633: ('0.02546865073031657',), 1374553621: ('0.02546865073031657',), 1374553617: ('0.02546865073031657',)} args : 1374553972 depend.output_id : 0 input_args_next_step : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ()} output_args : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ('0.02546865073031657',), 1374553657: ('0.02546865073031657',), 1374553633: ('0.02546865073031657',), 1374553621: ('0.02546865073031657',), 1374553617: ('0.02546865073031657',)} args : 1374553949 depend.output_id : 0 input_args_next_step : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ()} output_args : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ('0.02546865073031657',), 1374553657: ('0.02546865073031657',), 1374553633: ('0.02546865073031657',), 1374553621: ('0.02546865073031657',), 1374553617: ('0.02546865073031657',)} args : 1374553923 depend.output_id : 0 input_args_next_step : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ()} output_args : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ('0.02546865073031657',), 1374553657: ('0.02546865073031657',), 1374553633: ('0.02546865073031657',), 1374553621: ('0.02546865073031657',), 1374553617: ('0.02546865073031657',)} args : 1374553899 depend.output_id : 0 input_args_next_step : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ()} output_args : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ('0.02546865073031657',), 1374553657: ('0.02546865073031657',), 1374553633: ('0.02546865073031657',), 1374553621: ('0.02546865073031657',), 1374553617: ('0.02546865073031657',)} args : 1374553840 depend.output_id : 0 input_args_next_step : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ()} output_args : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ('0.02546865073031657',), 1374553657: ('0.02546865073031657',), 1374553633: ('0.02546865073031657',), 1374553621: ('0.02546865073031657',), 1374553617: ('0.02546865073031657',)} args : 1374553838 depend.output_id : 0 input_args_next_step : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ()} output_args : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ('0.02546865073031657',), 1374553657: ('0.02546865073031657',), 1374553633: ('0.02546865073031657',), 1374553621: ('0.02546865073031657',), 1374553617: ('0.02546865073031657',)} args : 1374553837 depend.output_id : 0 input_args_next_step : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ()} output_args : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ('0.02546865073031657',), 1374553657: ('0.02546865073031657',), 1374553633: ('0.02546865073031657',), 1374553621: ('0.02546865073031657',), 1374553617: ('0.02546865073031657',)} args : 1374553836 depend.output_id : 0 input_args_next_step : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ()} output_args : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ('0.02546865073031657',), 1374553657: ('0.02546865073031657',), 1374553633: ('0.02546865073031657',), 1374553621: ('0.02546865073031657',), 1374553617: ('0.02546865073031657',)} args : 1374553835 depend.output_id : 0 input_args_next_step : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ()} output_args : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ('0.02546865073031657',), 1374553657: ('0.02546865073031657',), 1374553633: ('0.02546865073031657',), 1374553621: ('0.02546865073031657',), 1374553617: ('0.02546865073031657',)} args : 1374553834 depend.output_id : 0 input_args_next_step : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ()} output_args : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ('0.02546865073031657',), 1374553657: ('0.02546865073031657',), 1374553633: ('0.02546865073031657',), 1374553621: ('0.02546865073031657',), 1374553617: ('0.02546865073031657',)} args : 1374553731 depend.output_id : 0 input_args_next_step : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ()} output_args : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ('0.02546865073031657',), 1374553657: ('0.02546865073031657',), 1374553633: ('0.02546865073031657',), 1374553621: ('0.02546865073031657',), 1374553617: ('0.02546865073031657',)} args : 1374553730 depend.output_id : 0 input_args_next_step : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ()} output_args : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ('0.02546865073031657',), 1374553657: ('0.02546865073031657',), 1374553633: ('0.02546865073031657',), 1374553621: ('0.02546865073031657',), 1374553617: ('0.02546865073031657',)} args : 1374553710 depend.output_id : 0 input_args_next_step : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ()} output_args : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ('0.02546865073031657',), 1374553657: ('0.02546865073031657',), 1374553633: ('0.02546865073031657',), 1374553621: ('0.02546865073031657',), 1374553617: ('0.02546865073031657',)} args : 1374553682 depend.output_id : 0 input_args_next_step : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ('0.02546865073031657',), 1374553657: ()} output_args : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ('0.02546865073031657',), 1374553657: ('0.02546865073031657',), 1374553633: ('0.02546865073031657',), 1374553621: ('0.02546865073031657',), 1374553617: ('0.02546865073031657',)} args : 1374553657 depend.output_id : 0 input_args_next_step : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ('0.02546865073031657',), 1374553657: ('0.02546865073031657',), 1374553633: ()} output_args : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ('0.02546865073031657',), 1374553657: ('0.02546865073031657',), 1374553633: ('0.02546865073031657',), 1374553621: ('0.02546865073031657',), 1374553617: ('0.02546865073031657',)} args : 1374553633 depend.output_id : 0 input_args_next_step : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ('0.02546865073031657',), 1374553657: ('0.02546865073031657',), 1374553633: ('0.02546865073031657',), 1374553621: ()} output_args : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ('0.02546865073031657',), 1374553657: ('0.02546865073031657',), 1374553633: ('0.02546865073031657',), 1374553621: ('0.02546865073031657',), 1374553617: ('0.02546865073031657',)} args : 1374553621 depend.output_id : 0 input_args_next_step : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ('0.02546865073031657',), 1374553657: ('0.02546865073031657',), 1374553633: ('0.02546865073031657',), 1374553621: ('0.02546865073031657',), 1374553617: ()} output_args : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ('0.02546865073031657',), 1374553657: ('0.02546865073031657',), 1374553633: ('0.02546865073031657',), 1374553621: ('0.02546865073031657',), 1374553617: ('0.02546865073031657',)} args : 1374553617 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 : {25529875: [{'Carton_brun': 25529910, 'environnement': 25529911, 'metal': 25529912, 'kraft': 25529913, 'plastique': 25529914, 'Teint_Dans_La_Masse': 25529915, 'flou': 25529916, 'papier': 25529917, 'mal_croppe': 25529918, 'Carton_gris': 25529919, 'autre_refus': 25529920, 'cartonnette': 25529921}]} input_args_next_step : {1374554024: ('0.02546865073031657',), 1374553997: ('0.02546865073031657',), 1374553972: ('0.02546865073031657',), 1374553949: ('0.02546865073031657',), 1374553923: ('0.02546865073031657',), 1374553899: ('0.02546865073031657',), 1374553840: ('0.02546865073031657',), 1374553838: ('0.02546865073031657',), 1374553837: ('0.02546865073031657',), 1374553836: ('0.02546865073031657',), 1374553835: ('0.02546865073031657',), 1374553834: ('0.02546865073031657',), 1374553731: ('0.02546865073031657',), 1374553730: ('0.02546865073031657',), 1374553710: ('0.02546865073031657',), 1374553682: ('0.02546865073031657',), 1374553657: ('0.02546865073031657',), 1374553633: ('0.02546865073031657',), 1374553621: ('0.02546865073031657',), 1374553617: ('0.02546865073031657',), 25529875: ()} output_args : {25529875: [{'Carton_brun': 25529910, 'environnement': 25529911, 'metal': 25529912, 'kraft': 25529913, 'plastique': 25529914, 'Teint_Dans_La_Masse': 25529915, 'flou': 25529916, 'papier': 25529917, 'mal_croppe': 25529918, 'Carton_gris': 25529919, 'autre_refus': 25529920, 'cartonnette': 25529921}]} args : 25529875 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 :21, first value : ('0.02546865073031657',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25529875) 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 (1374554024,1374553997,1374553972,1374553949,1374553923,1374553899,1374553840,1374553838,1374553837,1374553836,1374553835,1374553834,1374553731,1374553730,1374553710,1374553682,1374553657,1374553633,1374553621,1374553617) Found this number of photos: 20 ##### Call download_photos : nb_thread : 5 begin to download photo : 1374553617 begin to download photo : 1374553710 begin to download photo : 1374553836 begin to download photo : 1374553923 download finish for photo 1374553923 begin to download photo : 1374553949 download finish for photo 1374553836 begin to download photo : 1374553837 download finish for photo 1374553617 begin to download photo : 1374553621 download finish for photo 1374553949 begin to download photo : 1374553972 download finish for photo 1374553837 begin to download photo : 1374553838 download finish for photo 1374553972 begin to download photo : 1374553997 download finish for photo 1374553621 begin to download photo : 1374553633 download finish for photo 1374553838 begin to download photo : 1374553840 download finish for photo 1374553997 begin to download photo : 1374554024 download finish for photo 1374553840 begin to download photo : 1374553899 download finish for photo 1374553633 begin to download photo : 1374553657 download finish for photo 1374554024 download finish for photo 1374553899 download finish for photo 1374553657 begin to download photo : 1374553682 download finish for photo 1374553682 download finish for photo 1374553710 begin to download photo : 1374553730 download finish for photo 1374553730 begin to download photo : 1374553731 download finish for photo 1374553731 begin to download photo : 1374553834 download finish for photo 1374553834 begin to download photo : 1374553835 download finish for photo 1374553835 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette255299121753942139/ imagette255299131753942139/ length of list_filenames : 20 ; length of list_pids : 20 ; length of list_args : 20 results_Auto_P25529875_31-07-2025_08_08_59.pdf 25529912 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=25529912 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255299121753942139 25529913 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=25529913 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255299131753942139 25529914 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=25529914 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374553620: '1753941925_800333_1374553006_1bc100f2de387cf1c1f493f17b8b53ce_rle_crop_3898996399_0.png'} change filename to text .imagette255299141753942139/ imagette255299141753942139/1753941925_800333_1374553006_1bc100f2de387cf1c1f493f17b8b53ce_rle_crop_3898996399_0.png.png imagette255299161753942140/ imagette255299181753942140/ imagette255299201753942140/ imagette255299211753942140/ imagette255299101753942140/ imagette255299151753942140/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/7ea5ca2c2415648423bce424c0135e42_42009498.png imagette255299141753942139 25529916 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=25529916 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255299161753942140 25529918 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=25529918 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255299181753942140 25529920 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=25529920 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255299201753942140 25529921 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=25529921 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255299211753942140 25529910 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=25529910 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255299101753942140 25529915 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=25529915 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette255299151753942140 25529919 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=25529919 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1374553618: '1753941925_800333_1374553006_1bc100f2de387cf1c1f493f17b8b53ce_rle_crop_3898996396_0.png'} change filename to text .imagette255299191753942140/ imagette255299191753942140/1753941925_800333_1374553006_1bc100f2de387cf1c1f493f17b8b53ce_rle_crop_3898996396_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/b2b3f1f65c13cb3115ba54f383849218_48264230.png imagette255299191753942140 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25529875 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25529922,25529923,25529924,25529925,25529926,25529927,25529928,25529929,25529930,25529931,25529932,25529933?tags=Carton_brun,environnement,metal,kraft,plastique,Teint_Dans_La_Masse,flou,papier,mal_croppe,Carton_gris,autre_refus,cartonnette your option no_mail is active, we will not send the real mail to your client args[1374554024] : ('0.02546865073031657',) no score found for photo 1374554024 We are sending mail with results at report@fotonower.com args[1374553997] : ('0.02546865073031657',) no score found for photo 1374553997 We are sending mail with results at report@fotonower.com args[1374553972] : ('0.02546865073031657',) no score found for photo 1374553972 We are sending mail with results at report@fotonower.com args[1374553949] : ('0.02546865073031657',) no score found for photo 1374553949 We are sending mail with results at report@fotonower.com args[1374553923] : ('0.02546865073031657',) no score found for photo 1374553923 We are sending mail with results at report@fotonower.com args[1374553899] : ('0.02546865073031657',) no score found for photo 1374553899 We are sending mail with results at report@fotonower.com args[1374553840] : ('0.02546865073031657',) no score found for photo 1374553840 We are sending mail with results at report@fotonower.com args[1374553838] : ('0.02546865073031657',) no score found for photo 1374553838 We are sending mail with results at report@fotonower.com args[1374553837] : ('0.02546865073031657',) no score found for photo 1374553837 We are sending mail with results at report@fotonower.com args[1374553836] : ('0.02546865073031657',) no score found for photo 1374553836 We are sending mail with results at report@fotonower.com args[1374553835] : ('0.02546865073031657',) no score found for photo 1374553835 We are sending mail with results at report@fotonower.com args[1374553834] : ('0.02546865073031657',) no score found for photo 1374553834 We are sending mail with results at report@fotonower.com args[1374553731] : ('0.02546865073031657',) no score found for photo 1374553731 We are sending mail with results at report@fotonower.com args[1374553730] : ('0.02546865073031657',) no score found for photo 1374553730 We are sending mail with results at report@fotonower.com args[1374553710] : ('0.02546865073031657',) no score found for photo 1374553710 We are sending mail with results at report@fotonower.com args[1374553682] : ('0.02546865073031657',) no score found for photo 1374553682 We are sending mail with results at report@fotonower.com args[1374553657] : ('0.02546865073031657',) no score found for photo 1374553657 We are sending mail with results at report@fotonower.com args[1374553633] : ('0.02546865073031657',) no score found for photo 1374553633 We are sending mail with results at report@fotonower.com args[1374553621] : ('0.02546865073031657',) no score found for photo 1374553621 We are sending mail with results at report@fotonower.com args[1374553617] : ('0.02546865073031657',) no score found for photo 1374553617 We are sending mail with results at report@fotonower.com refus_total : 0.02546865073031657 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=25529875 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_P25529875_31-07-2025_08_08_59.pdf results_Auto_P25529875_31-07-2025_08_08_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25529875_31-07-2025_08_08_59.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','25529875','results_Auto_P25529875_31-07-2025_08_08_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25529875_31-07-2025_08_08_59.pdf','pdf','','0.16','0.02546865073031657') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25529875]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1374554024, 1374553997, 1374553972, 1374553949, 1374553923, 1374553899, 1374553840, 1374553838, 1374553837, 1374553836, 1374553835, 1374553834, 1374553731, 1374553730, 1374553710, 1374553682, 1374553657, 1374553633, 1374553621, 1374553617] map_info['map_portfolio_photo'] : {25529875: [1374554024, 1374553997, 1374553972, 1374553949, 1374553923, 1374553899, 1374553840, 1374553838, 1374553837, 1374553836, 1374553835, 1374553834, 1374553731, 1374553730, 1374553710, 1374553682, 1374553657, 1374553633, 1374553621, 1374553617, 1374553470, 1374553440, 1374553406, 1374553381, 1374553353, 1374553324, 1374553084, 1374553066, 1374553064, 1374553063, 1374553062, 1374553061, 1374553040, 1374553035, 1374553033, 1374553031, 1374553026, 1374553025, 1374553011, 1374553009, 1374553007, 1374553006, 1374553005, 1374553004, 1374552927, 1374552926]} final : False mtd_id 4302 list_pids : [1374554024, 1374553997, 1374553972, 1374553949, 1374553923, 1374553899, 1374553840, 1374553838, 1374553837, 1374553836, 1374553835, 1374553834, 1374553731, 1374553730, 1374553710, 1374553682, 1374553657, 1374553633, 1374553621, 1374553617] 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, '3406195') ('4302', '25529875', '1374554024', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553997', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553972', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553949', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553923', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553899', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553840', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553838', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553837', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553836', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553835', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553834', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553731', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553730', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553710', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553682', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553657', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553633', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553621', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553617', None, None, None, None, None, '3406195') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 20 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', '25529875', '1374554024', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553997', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553972', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553949', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553923', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553899', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553840', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553838', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553837', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553836', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553835', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553834', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553731', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553730', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553710', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553682', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553657', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553633', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553621', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553617', None, None, None, None, None, '3406195')] time used for this insertion : 0.1347978115081787 save_final save missing photos in datou_result : time spend for datou_step_exec : 3.146228551864624 time spend to save output : 0.1351320743560791 total time spend for step 4 : 3.281360626220703 step5:split_time_score Thu Jul 31 08:09: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 : ['25529875'] 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 : [('25529875',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25529875) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1374553923: {'path': 'temp/1753942138_2081514_1374553923_e7cda0972698801416f15c7002c04695.jpg', 'extension': 'jpg'}, 1374553949: {'path': 'temp/1753942138_2081514_1374553949_4f473ba7f1b622c87c943abca2799302.jpg', 'extension': 'jpg'}, 1374553972: {'path': 'temp/1753942138_2081514_1374553972_0410331b6bcd27c675dc1bd69ac14576.jpg', 'extension': 'jpg'}, 1374553997: {'path': 'temp/1753942138_2081514_1374553997_99dc66be1082ac38d0d0bf8f3bbd3d52.jpg', 'extension': 'jpg'}, 1374554024: {'path': 'temp/1753942138_2081514_1374554024_780b49869bb86eef5439b434f4700318.jpg', 'extension': 'jpg'}, 1374553836: {'path': 'temp/1753942138_2081514_1374553836_e3e4b87767cd1aefb18fc2c974f33d9d.jpg', 'extension': 'jpg'}, 1374553837: {'path': 'temp/1753942138_2081514_1374553837_23606ba3e1f601487b1d536d73e09e02.jpg', 'extension': 'jpg'}, 1374553838: {'path': 'temp/1753942138_2081514_1374553838_448f53dd44a4ba3c2a9c5a995898c7f0.jpg', 'extension': 'jpg'}, 1374553840: {'path': 'temp/1753942138_2081514_1374553840_46e53c965aee9d98165dd92137c90925.jpg', 'extension': 'jpg'}, 1374553899: {'path': 'temp/1753942138_2081514_1374553899_6807d6a8aa21ddf4fde082f8c7b75b55.jpg', 'extension': 'jpg'}, 1374553617: {'path': 'temp/1753942138_2081514_1374553617_9ce2bd06ad4b70a7de0f485dbdd21b3f.jpg', 'extension': 'jpg'}, 1374553621: {'path': 'temp/1753942138_2081514_1374553621_da8d34202593d596ead3a0989d352b8f.jpg', 'extension': 'jpg'}, 1374553633: {'path': 'temp/1753942138_2081514_1374553633_0f075062a681571f842464cbc9535360.jpg', 'extension': 'jpg'}, 1374553657: {'path': 'temp/1753942138_2081514_1374553657_0e50b61ac0d53c0378c10839901601cf.jpg', 'extension': 'jpg'}, 1374553682: {'path': 'temp/1753942138_2081514_1374553682_8752c5098cc75de0b0013d0225ca66a9.jpg', 'extension': 'jpg'}, 1374553710: {'path': 'temp/1753942138_2081514_1374553710_5e377aa7af05a1b57a55ccf7898eac5c.jpg', 'extension': 'jpg'}, 1374553730: {'path': 'temp/1753942138_2081514_1374553730_1c72f1edfb52745fd8c30c74cdc4f2df.jpg', 'extension': 'jpg'}, 1374553731: {'path': 'temp/1753942138_2081514_1374553731_f76f6e2741b1894cd568f6751282fb32.jpg', 'extension': 'jpg'}, 1374553834: {'path': 'temp/1753942138_2081514_1374553834_40fdc049c4036ac14cb6ad146b140ff1.jpg', 'extension': 'jpg'}, 1374553835: {'path': 'temp/1753942138_2081514_1374553835_aee164ab29818cf457be987cecb5213b.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 = 25529875; (('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 = 25529875 group by h (('08', 46),) 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=25529875 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 (25529875) 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 (25529875) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 31072025 25529875 Nombre de photos uploadées : 46 / 23040 (0%) 31072025 25529875 Nombre de photos taguées (types de déchets): 0 / 46 (0%) 31072025 25529875 Nombre de photos taguées (volume) : 0 / 46 (0%) [{'photo_id': 1374552927, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/b17cd01308694e9421d1ebc920130d36.jpg', 'username': None, 'uploaded_at': 1753941692, 'text': 'image_31072025_08_00_53_10138.jpg'}, {'photo_id': 1374552926, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/b49598a451ecd785f8e1d58e05d08ef0.jpg', 'username': None, 'uploaded_at': 1753941692, 'text': 'image_31072025_08_00_53_10138.jpg'}, {'photo_id': 1374553011, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/f7e81cd609f08295f4f113888db351ab.jpg', 'username': None, 'uploaded_at': 1753941723, 'text': 'image_31072025_08_01_04_10144.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1374553009, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/31/86da90220544350388f7e545013778f8.jpg', 'username': None, 'uploaded_at': 1753941723, 'text': 'image_31072025_08_01_14_10136.jpg 2e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ?????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.00417637825012207 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25529875, '2025-07-31' ) 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-07-31' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2034079,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2077958583831787 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= 2034079 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25516129, 'dashboard_result_id': 13398084, '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_P25516129_31-07-2025_06_28_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516145, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25516552, 'dashboard_result_id': 13398085, '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_P25516552_31-07-2025_06_29_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516564, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516567, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25516863, 'dashboard_result_id': 13398086, '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_P25516863_31-07-2025_06_30_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516872, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516877, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516879, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25517204, 'dashboard_result_id': 13398087, '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_P25517204_31-07-2025_06_31_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25517205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25517206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25517207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25517208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25517209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25517210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25517211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25517212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25517213, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25517214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25517215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25517216, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25517620, 'dashboard_result_id': 13398088, '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_P25517620_31-07-2025_06_31_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25517625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25517626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25517627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25517628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25517629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25517630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25517631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25517632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25517633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25517635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25517636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25517637, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25518153, 'dashboard_result_id': 13398089, '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_P25518153_31-07-2025_06_32_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25518157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25518158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25518159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25518160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25518161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25518162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25518163, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25518164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25518165, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25518166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25518167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25518168, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25518649, 'dashboard_result_id': 13398090, '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_P25518649_31-07-2025_06_32_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25518654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25518656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25518657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25518659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25518661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25518662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25518664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25518665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25518667, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25518668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25518670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25518671, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25519140, 'dashboard_result_id': 13398091, '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_P25519140_31-07-2025_06_33_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25519141, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25519142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25519143, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25519144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25519145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25519146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25519147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25519148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25519149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25519150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25519151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25519152, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25519626, 'dashboard_result_id': 13398092, '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_P25519626_31-07-2025_06_34_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25519629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25519630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25519631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25519632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25519633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25519634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25519635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25519636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25519637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25519638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25519639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25519640, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25520305, 'dashboard_result_id': 13398093, '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_P25520305_31-07-2025_06_34_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25520309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25520310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25520311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25520312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25520313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25520314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25520315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25520316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25520317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25520318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25520319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25520320, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25520841, 'dashboard_result_id': 13398094, '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_P25520841_31-07-2025_06_35_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25520845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25520846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25520847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25520848, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25520849, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25520850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25520851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25520852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25520853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25520854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25520855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25520856, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25521307, 'dashboard_result_id': 13398095, '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_P25521307_31-07-2025_06_36_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25521311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25521312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25521313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25521314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25521315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25521316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25521317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25521318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25521319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25521320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25521321, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25521322, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25521737, 'dashboard_result_id': 13398096, '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_P25521737_31-07-2025_06_36_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25521744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25521745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25521746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25521747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25521748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25521749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25521750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25521751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25521752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25521753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25521754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25521755, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25522256, 'dashboard_result_id': 13398097, '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_P25522256_31-07-2025_06_37_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25522281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25522282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25522283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25522284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25522285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25522286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25522287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25522288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25522289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25522290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25522291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25522292, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25522735, 'dashboard_result_id': 13398098, '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_P25522735_31-07-2025_06_38_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25522739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25522740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25522741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25522742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25522743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25522744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25522745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25522746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25522747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25522748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25522749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25522750, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25523075, 'dashboard_result_id': 13398099, '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_P25523075_31-07-2025_06_38_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25523076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523087, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25523385, 'dashboard_result_id': 13398100, '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_P25523385_31-07-2025_06_39_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25523391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523394, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523395, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523399, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25523818, 'dashboard_result_id': 13398101, '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_P25523818_31-07-2025_06_40_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523827, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25523830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523833, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25524141, 'dashboard_result_id': 13398102, '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_P25524141_31-07-2025_06_41_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25524153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524154, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25524518, 'dashboard_result_id': 13398103, '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_P25524518_31-07-2025_06_41_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524522, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524526, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25524528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524530, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25524912, 'dashboard_result_id': 13398104, '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_P25524912_31-07-2025_06_42_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25524917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524920, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524928, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25525411, 'dashboard_result_id': 13398105, '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_P25525411_31-07-2025_06_42_34.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25525416, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25525417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25525418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25525419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25525420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25525421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25525422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25525423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25525424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25525425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25525426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25525427, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25525840, 'dashboard_result_id': 13398106, '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_P25525840_31-07-2025_05_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25525844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25525845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25525846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25525847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25525848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25525849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25525850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25525851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25525852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25525853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25525854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25525855, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25526254, 'dashboard_result_id': 13398107, '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_P25526254_31-07-2025_06_02_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25526258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25526259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25526260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25526261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25526262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25526263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25526264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25526265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25526266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25526267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25526268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25526269, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25526644, 'dashboard_result_id': 13398108, '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_P25526644_31-07-2025_06_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25526677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25526678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25526679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25526680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25526681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25526682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25526683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25526684, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25526685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25526686, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25526687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25526688, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25527147, 'dashboard_result_id': 13398109, '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_P25527147_31-07-2025_06_30_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25527152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25527158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527161, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527162, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527163, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527166, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25527500, 'dashboard_result_id': 13398110, '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_P25527500_31-07-2025_06_46_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25527501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527506, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25527512, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527514, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25527878, 'dashboard_result_id': 13398111, '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_P25527878_31-07-2025_07_00_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25527896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25527901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527906, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25528260, 'dashboard_result_id': 13398112, '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_P25528260_31-07-2025_07_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25528288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25528289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25528290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25528291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25528292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25528293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25528294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25528295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25528296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25528297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25528298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25528299, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25528614, 'dashboard_result_id': 13398113, '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_P25528614_31-07-2025_07_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25528653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25528654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25528655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25528656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25528657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25528658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25528659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25528660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25528661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25528662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25528663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25528664, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25529145, 'dashboard_result_id': 13398114, '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_P25529145_31-07-2025_07_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25529150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25529151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25529152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25529153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25529154, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25529155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25529156, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25529157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25529158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25529159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25529160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25529161, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25529519, 'dashboard_result_id': 13398115, '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_P25529519_31-07-2025_08_02_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25529554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25529555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25529556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25529557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25529558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25529559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25529560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25529561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25529562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25529563, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25529564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25529565, 'pht': 3726}}"}, {'dashboat_entry_day': 2034079, 'dashboard_run_id': 2043715, 'mtr_portfolio_id': 25529875, 'dashboard_result_id': 13398116, '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_P25529875_31-07-2025_08_05_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25529910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25529911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25529912, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25529913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25529914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25529915, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25529916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25529917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25529918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25529919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25529920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25529921, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25516129 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': 3405101, 'mtr_portfolio_id': 25516129, 'created_at': datetime.datetime(2025, 7, 31, 6, 28, 29), 'result': '0.12193713324231807', 'result_long': None, 'result_double': None}] Qualite : 0.12193713324231807 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25516129 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516129_31-07-2025_06_28_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25516129 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_P25516129_31-07-2025_06_28_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516145, 'pht': 3726}}" where mtr_portfolio_id = 25516129 and dashboard_run_id = 2043715 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`=25516129 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398084, 0.12193713324231807, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516129_31-07-2025_06_28_32.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516134, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516135, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516137, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516138, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516139, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516140, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516141, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516142, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516143, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516144, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516145, '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 = 25516552 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': 3405102, 'mtr_portfolio_id': 25516552, 'created_at': datetime.datetime(2025, 7, 31, 6, 29, 30), 'result': '0.044902742839134924', 'result_long': None, 'result_double': None}] Qualite : 0.044902742839134924 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25516552 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516552_31-07-2025_06_29_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25516552 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_P25516552_31-07-2025_06_29_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516564, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516567, 'pht': 3726}}" where mtr_portfolio_id = 25516552 and dashboard_run_id = 2043715 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`=25516552 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398085, 0.044902742839134924, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516552_31-07-2025_06_29_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516556, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516557, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516558, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516559, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516560, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516561, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516562, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516563, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516564, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516565, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516566, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516567, '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 = 25516863 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': 3405103, 'mtr_portfolio_id': 25516863, 'created_at': datetime.datetime(2025, 7, 31, 6, 29, 58), 'result': '0.031975913392453724', 'result_long': None, 'result_double': None}] Qualite : 0.031975913392453724 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25516863 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516863_31-07-2025_06_30_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25516863 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_P25516863_31-07-2025_06_30_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516872, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516877, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516879, 'pht': 3726}}" where mtr_portfolio_id = 25516863 and dashboard_run_id = 2043715 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`=25516863 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398086, 0.031975913392453724, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25516863_31-07-2025_06_30_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25516867, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25516868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25516869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25516870, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25516871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25516872, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25516873, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25516874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25516875, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25516876, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25516877, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25516879, '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 = 25517204 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': 3405104, 'mtr_portfolio_id': 25517204, 'created_at': datetime.datetime(2025, 7, 31, 6, 30, 58), 'result': '0.06841272376470589', 'result_long': None, 'result_double': None}] Qualite : 0.06841272376470589 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25517204 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25517204_31-07-2025_06_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25517204 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_P25517204_31-07-2025_06_31_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25517205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25517206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25517207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25517208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25517209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25517210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25517211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25517212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25517213, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25517214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25517215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25517216, 'pht': 3726}}" where mtr_portfolio_id = 25517204 and dashboard_run_id = 2043715 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`=25517204 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398087, 0.06841272376470589, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25517204_31-07-2025_06_31_01.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25517205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25517206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25517207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25517208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25517209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25517210, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25517211, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25517212, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25517213, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25517214, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25517215, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25517216, '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 = 25517620 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': 3405105, 'mtr_portfolio_id': 25517620, 'created_at': datetime.datetime(2025, 7, 31, 6, 31, 31), 'result': '0.11231447484602866', 'result_long': None, 'result_double': None}] Qualite : 0.11231447484602866 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25517620 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25517620_31-07-2025_06_31_35.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25517620 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_P25517620_31-07-2025_06_31_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25517625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25517626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25517627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25517628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25517629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25517630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25517631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25517632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25517633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25517635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25517636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25517637, 'pht': 3726}}" where mtr_portfolio_id = 25517620 and dashboard_run_id = 2043715 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`=25517620 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398088, 0.11231447484602866, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25517620_31-07-2025_06_31_35.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25517625, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25517626, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25517627, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25517628, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25517629, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25517630, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25517631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25517632, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25517633, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25517635, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25517636, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25517637, '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 = 25518153 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': 3405106, 'mtr_portfolio_id': 25518153, 'created_at': datetime.datetime(2025, 7, 31, 6, 31, 58), 'result': '0.10034210143151306', 'result_long': None, 'result_double': None}] Qualite : 0.10034210143151306 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25518153 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25518153_31-07-2025_06_32_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25518153 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_P25518153_31-07-2025_06_32_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25518157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25518158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25518159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25518160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25518161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25518162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25518163, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25518164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25518165, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25518166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25518167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25518168, 'pht': 3726}}" where mtr_portfolio_id = 25518153 and dashboard_run_id = 2043715 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`=25518153 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398089, 0.10034210143151306, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25518153_31-07-2025_06_32_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25518157, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25518158, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25518159, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25518160, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25518161, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25518162, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25518163, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25518164, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25518165, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25518166, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25518167, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25518168, '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 = 25518649 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': 3405107, 'mtr_portfolio_id': 25518649, 'created_at': datetime.datetime(2025, 7, 31, 6, 32, 29), 'result': '0.02191558326807052', 'result_long': None, 'result_double': None}] Qualite : 0.02191558326807052 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25518649 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25518649_31-07-2025_06_32_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25518649 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_P25518649_31-07-2025_06_32_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25518654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25518656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25518657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25518659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25518661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25518662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25518664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25518665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25518667, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25518668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25518670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25518671, 'pht': 3726}}" where mtr_portfolio_id = 25518649 and dashboard_run_id = 2043715 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`=25518649 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398090, 0.02191558326807052, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25518649_31-07-2025_06_32_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25518654, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25518656, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25518657, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25518659, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25518661, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25518662, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25518664, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25518665, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25518667, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25518668, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25518670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25518671, '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 = 25519140 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': 3405108, 'mtr_portfolio_id': 25519140, 'created_at': datetime.datetime(2025, 7, 31, 6, 33, 27), 'result': '0.07508893614699616', 'result_long': None, 'result_double': None}] Qualite : 0.07508893614699616 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25519140 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25519140_31-07-2025_06_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25519140 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_P25519140_31-07-2025_06_33_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25519141, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25519142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25519143, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25519144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25519145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25519146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25519147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25519148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25519149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25519150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25519151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25519152, 'pht': 3726}}" where mtr_portfolio_id = 25519140 and dashboard_run_id = 2043715 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`=25519140 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398091, 0.07508893614699616, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25519140_31-07-2025_06_33_29.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25519141, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25519142, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25519143, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25519144, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25519145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25519146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25519147, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25519148, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25519149, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25519150, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25519151, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25519152, '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 = 25519626 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': 3405109, 'mtr_portfolio_id': 25519626, 'created_at': datetime.datetime(2025, 7, 31, 6, 34), 'result': '0.15042824762476398', 'result_long': None, 'result_double': None}] Qualite : 0.15042824762476398 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25519626 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25519626_31-07-2025_06_34_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25519626 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_P25519626_31-07-2025_06_34_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25519629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25519630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25519631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25519632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25519633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25519634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25519635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25519636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25519637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25519638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25519639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25519640, 'pht': 3726}}" where mtr_portfolio_id = 25519626 and dashboard_run_id = 2043715 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`=25519626 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398092, 0.15042824762476398, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25519626_31-07-2025_06_34_03.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25519629, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25519630, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25519631, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25519632, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25519633, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25519634, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25519635, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25519636, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25519637, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25519638, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25519639, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25519640, '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 = 25520305 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': 3405110, 'mtr_portfolio_id': 25520305, 'created_at': datetime.datetime(2025, 7, 31, 6, 34, 27), 'result': '0.050418820624836574', 'result_long': None, 'result_double': None}] Qualite : 0.050418820624836574 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25520305 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25520305_31-07-2025_06_34_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25520305 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_P25520305_31-07-2025_06_34_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25520309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25520310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25520311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25520312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25520313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25520314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25520315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25520316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25520317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25520318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25520319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25520320, 'pht': 3726}}" where mtr_portfolio_id = 25520305 and dashboard_run_id = 2043715 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`=25520305 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398093, 0.050418820624836574, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25520305_31-07-2025_06_34_30.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25520309, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25520310, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25520311, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25520312, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25520313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25520314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25520315, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25520316, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25520317, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25520318, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25520319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25520320, '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 = 25520841 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': 3405111, 'mtr_portfolio_id': 25520841, 'created_at': datetime.datetime(2025, 7, 31, 6, 35, 29), 'result': '0.05847893604401684', 'result_long': None, 'result_double': None}] Qualite : 0.05847893604401684 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25520841 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25520841_31-07-2025_06_35_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25520841 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_P25520841_31-07-2025_06_35_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25520845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25520846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25520847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25520848, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25520849, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25520850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25520851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25520852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25520853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25520854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25520855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25520856, 'pht': 3726}}" where mtr_portfolio_id = 25520841 and dashboard_run_id = 2043715 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`=25520841 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398094, 0.05847893604401684, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25520841_31-07-2025_06_35_32.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25520845, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25520846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25520847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25520848, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25520849, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25520850, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25520851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25520852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25520853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25520854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25520855, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25520856, '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 = 25521307 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': 3405112, 'mtr_portfolio_id': 25521307, 'created_at': datetime.datetime(2025, 7, 31, 6, 35, 59), 'result': '0.07904000005299237', 'result_long': None, 'result_double': None}] Qualite : 0.07904000005299237 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25521307 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25521307_31-07-2025_06_36_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25521307 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_P25521307_31-07-2025_06_36_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25521311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25521312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25521313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25521314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25521315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25521316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25521317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25521318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25521319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25521320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25521321, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25521322, 'pht': 3726}}" where mtr_portfolio_id = 25521307 and dashboard_run_id = 2043715 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`=25521307 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398095, 0.07904000005299237, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25521307_31-07-2025_06_36_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25521311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25521312, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25521313, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25521314, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25521315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25521316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25521317, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25521318, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25521319, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25521320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25521321, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25521322, '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 = 25521737 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': 3405113, 'mtr_portfolio_id': 25521737, 'created_at': datetime.datetime(2025, 7, 31, 6, 36, 28), 'result': '0.014298299204653692', 'result_long': None, 'result_double': None}] Qualite : 0.014298299204653692 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25521737 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25521737_31-07-2025_06_36_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25521737 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_P25521737_31-07-2025_06_36_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25521744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25521745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25521746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25521747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25521748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25521749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25521750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25521751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25521752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25521753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25521754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25521755, 'pht': 3726}}" where mtr_portfolio_id = 25521737 and dashboard_run_id = 2043715 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`=25521737 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398096, 0.014298299204653692, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25521737_31-07-2025_06_36_31.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25521744, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25521745, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25521746, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25521747, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25521748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25521749, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25521750, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25521751, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25521752, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25521753, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25521754, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25521755, '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 = 25522256 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': 3405114, 'mtr_portfolio_id': 25522256, 'created_at': datetime.datetime(2025, 7, 31, 6, 37, 29), 'result': '0.03337019429160185', 'result_long': None, 'result_double': None}] Qualite : 0.03337019429160185 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25522256 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25522256_31-07-2025_06_37_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25522256 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_P25522256_31-07-2025_06_37_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25522281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25522282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25522283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25522284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25522285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25522286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25522287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25522288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25522289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25522290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25522291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25522292, 'pht': 3726}}" where mtr_portfolio_id = 25522256 and dashboard_run_id = 2043715 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`=25522256 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398097, 0.03337019429160185, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25522256_31-07-2025_06_37_31.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25522281, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25522282, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25522283, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25522284, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25522285, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25522286, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25522287, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25522288, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25522289, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25522290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25522291, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25522292, '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 = 25522735 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': 3405115, 'mtr_portfolio_id': 25522735, 'created_at': datetime.datetime(2025, 7, 31, 6, 37, 59), 'result': '0.015714648701642922', 'result_long': None, 'result_double': None}] Qualite : 0.015714648701642922 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25522735 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25522735_31-07-2025_06_38_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25522735 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_P25522735_31-07-2025_06_38_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25522739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25522740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25522741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25522742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25522743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25522744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25522745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25522746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25522747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25522748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25522749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25522750, 'pht': 3726}}" where mtr_portfolio_id = 25522735 and dashboard_run_id = 2043715 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`=25522735 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398098, 0.015714648701642922, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25522735_31-07-2025_06_38_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25522739, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25522740, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25522741, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25522742, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25522743, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25522744, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25522745, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25522746, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25522747, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25522748, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25522749, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25522750, '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 = 25523075 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': 3405116, 'mtr_portfolio_id': 25523075, 'created_at': datetime.datetime(2025, 7, 31, 6, 38, 30), 'result': '0.04700905056536481', 'result_long': None, 'result_double': None}] Qualite : 0.04700905056536481 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25523075 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523075_31-07-2025_06_38_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25523075 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_P25523075_31-07-2025_06_38_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25523076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523087, 'pht': 3726}}" where mtr_portfolio_id = 25523075 and dashboard_run_id = 2043715 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`=25523075 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398099, 0.04700905056536481, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523075_31-07-2025_06_38_33.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25523076, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523077, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523078, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523080, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523081, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523083, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523084, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523085, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523086, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523087, '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 = 25523385 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': 3405117, 'mtr_portfolio_id': 25523385, 'created_at': datetime.datetime(2025, 7, 31, 6, 39, 26), 'result': '0.08436949260554179', 'result_long': None, 'result_double': None}] Qualite : 0.08436949260554179 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25523385 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523385_31-07-2025_06_39_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25523385 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_P25523385_31-07-2025_06_39_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25523391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523394, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523395, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523399, 'pht': 3726}}" where mtr_portfolio_id = 25523385 and dashboard_run_id = 2043715 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`=25523385 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398100, 0.08436949260554179, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523385_31-07-2025_06_39_29.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523388, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523389, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523390, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25523391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523393, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523394, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523395, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523396, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523397, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523398, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523399, '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 = 25523818 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': 3405118, 'mtr_portfolio_id': 25523818, 'created_at': datetime.datetime(2025, 7, 31, 6, 39, 59), 'result': '0.07638470951750931', 'result_long': None, 'result_double': None}] Qualite : 0.07638470951750931 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25523818 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523818_31-07-2025_06_40_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25523818 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_P25523818_31-07-2025_06_40_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523827, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25523830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523833, 'pht': 3726}}" where mtr_portfolio_id = 25523818 and dashboard_run_id = 2043715 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`=25523818 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398101, 0.07638470951750931, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25523818_31-07-2025_06_40_02.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25523822, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25523823, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25523824, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25523825, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25523826, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25523827, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25523828, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25523829, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25523830, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25523831, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25523832, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25523833, '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 = 25524141 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': 3405119, 'mtr_portfolio_id': 25524141, 'created_at': datetime.datetime(2025, 7, 31, 6, 41), 'result': '0.015101512533748229', 'result_long': None, 'result_double': None}] Qualite : 0.015101512533748229 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25524141 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524141_31-07-2025_06_41_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25524141 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_P25524141_31-07-2025_06_41_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25524153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524154, 'pht': 3726}}" where mtr_portfolio_id = 25524141 and dashboard_run_id = 2043715 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`=25524141 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398102, 0.015101512533748229, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524141_31-07-2025_06_41_02.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524143, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524144, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524145, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524146, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524147, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524148, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524149, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524150, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524151, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524152, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25524153, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524154, '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 = 25524518 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': 3405120, 'mtr_portfolio_id': 25524518, 'created_at': datetime.datetime(2025, 7, 31, 6, 41, 29), 'result': '0.0032177157832730076', 'result_long': None, 'result_double': None}] Qualite : 0.0032177157832730076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25524518 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524518_31-07-2025_06_41_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25524518 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_P25524518_31-07-2025_06_41_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524522, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524526, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25524528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524530, 'pht': 3726}}" where mtr_portfolio_id = 25524518 and dashboard_run_id = 2043715 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`=25524518 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398103, 0.0032177157832730076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524518_31-07-2025_06_41_32.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524519, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524520, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524521, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524522, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524523, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524524, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524525, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524526, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524527, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25524528, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524529, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524530, '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 = 25524912 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': 3405121, 'mtr_portfolio_id': 25524912, 'created_at': datetime.datetime(2025, 7, 31, 6, 41, 59), 'result': '0.03704469321256852', 'result_long': None, 'result_double': None}] Qualite : 0.03704469321256852 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25524912 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524912_31-07-2025_06_42_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25524912 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_P25524912_31-07-2025_06_42_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25524917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524920, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524928, 'pht': 3726}}" where mtr_portfolio_id = 25524912 and dashboard_run_id = 2043715 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`=25524912 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398104, 0.03704469321256852, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25524912_31-07-2025_06_42_03.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25524917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25524918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25524919, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25524920, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25524921, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25524922, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25524923, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25524924, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25524925, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25524926, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25524927, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25524928, '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 = 25525411 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': 3405122, 'mtr_portfolio_id': 25525411, 'created_at': datetime.datetime(2025, 7, 31, 8, 0, 32), 'result': '0.04333010024824825', 'result_long': None, 'result_double': None}] Qualite : 0.04333010024824825 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25525411 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25525411_31-07-2025_08_00_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25525411 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_P25525411_31-07-2025_08_00_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25525416, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25525417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25525418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25525419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25525420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25525421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25525422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25525423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25525424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25525425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25525426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25525427, 'pht': 3726}}" where mtr_portfolio_id = 25525411 and dashboard_run_id = 2043715 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`=25525411 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398105, 0.04333010024824825, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25525411_31-07-2025_08_00_33.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25525416, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25525417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25525418, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25525419, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25525420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25525421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25525422, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25525423, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25525424, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25525425, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25525426, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25525427, '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 = 25525840 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': 3405001, 'mtr_portfolio_id': 25525840, 'created_at': datetime.datetime(2025, 7, 31, 5, 46, 30), 'result': '0.030544119514134754', 'result_long': None, 'result_double': None}] Qualite : 0.030544119514134754 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25525840 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25525840_31-07-2025_05_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25525840 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_P25525840_31-07-2025_05_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25525844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25525845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25525846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25525847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25525848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25525849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25525850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25525851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25525852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25525853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25525854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25525855, 'pht': 3726}}" where mtr_portfolio_id = 25525840 and dashboard_run_id = 2043715 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`=25525840 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398106, 0.030544119514134754, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25525840_31-07-2025_05_46_31.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25525844, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25525845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25525846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25525847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25525848, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25525849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25525850, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25525851, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25525852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25525853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25525854, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25525855, '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 = 25526254 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': 3405220, 'mtr_portfolio_id': 25526254, 'created_at': datetime.datetime(2025, 7, 31, 6, 2, 57), 'result': '0.02318603285791583', 'result_long': None, 'result_double': None}] Qualite : 0.02318603285791583 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25526254 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25526254_31-07-2025_06_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25526254 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_P25526254_31-07-2025_06_02_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25526258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25526259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25526260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25526261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25526262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25526263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25526264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25526265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25526266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25526267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25526268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25526269, 'pht': 3726}}" where mtr_portfolio_id = 25526254 and dashboard_run_id = 2043715 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`=25526254 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398107, 0.02318603285791583, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25526254_31-07-2025_06_02_57.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25526258, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25526259, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25526260, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25526261, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25526262, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25526263, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25526264, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25526265, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25526266, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25526267, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25526268, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25526269, '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 = 25526644 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 = 25526644 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 = 25526644 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25526644 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 = 25526644 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [{'mtr_datou_id': 4302, 'mtr_datou_current_id': 3405340, 'mtr_portfolio_id': 25526644, 'created_at': datetime.datetime(2025, 7, 31, 6, 16, 59), 'result': 0.0, 'result_long': None, 'result_double': None}] Qualite : 0.0 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25526644 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25526644_31-07-2025_06_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25526644 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_P25526644_31-07-2025_06_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25526677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25526678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25526679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25526680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25526681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25526682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25526683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25526684, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25526685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25526686, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25526687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25526688, 'pht': 3726}}" where mtr_portfolio_id = 25526644 and dashboard_run_id = 2043715 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`=25526644 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398108, 0.0, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25526644_31-07-2025_06_17_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25526677, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25526678, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25526679, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25526680, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25526681, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25526682, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25526683, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25526684, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25526685, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25526686, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25526687, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25526688, '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 = 25527147 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': 3405454, 'mtr_portfolio_id': 25527147, 'created_at': datetime.datetime(2025, 7, 31, 6, 30, 28), 'result': '0.0094188091957387', 'result_long': None, 'result_double': None}] Qualite : 0.0094188091957387 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25527147 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527147_31-07-2025_06_30_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25527147 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_P25527147_31-07-2025_06_30_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25527152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25527158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527161, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527162, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527163, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527166, 'pht': 3726}}" where mtr_portfolio_id = 25527147 and dashboard_run_id = 2043715 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`=25527147 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398109, 0.0094188091957387, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527147_31-07-2025_06_30_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25527152, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527154, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527157, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25527158, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527161, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527162, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527163, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527164, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527166, '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 = 25527500 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': 3405525, 'mtr_portfolio_id': 25527500, 'created_at': datetime.datetime(2025, 7, 31, 6, 46, 30), 'result': '0.052309286260890694', 'result_long': None, 'result_double': None}] Qualite : 0.052309286260890694 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25527500 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527500_31-07-2025_06_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25527500 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_P25527500_31-07-2025_06_46_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25527501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527506, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25527512, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527514, 'pht': 3726}}" where mtr_portfolio_id = 25527500 and dashboard_run_id = 2043715 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`=25527500 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398110, 0.052309286260890694, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527500_31-07-2025_06_46_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25527501, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527502, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527503, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527504, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527506, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527507, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527508, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527510, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527511, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25527512, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527514, '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 = 25527878 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': 3405600, 'mtr_portfolio_id': 25527878, 'created_at': datetime.datetime(2025, 7, 31, 7, 0, 58), 'result': '0.03728631700820891', 'result_long': None, 'result_double': None}] Qualite : 0.03728631700820891 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25527878 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527878_31-07-2025_07_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25527878 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_P25527878_31-07-2025_07_00_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25527896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25527901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527906, 'pht': 3726}}" where mtr_portfolio_id = 25527878 and dashboard_run_id = 2043715 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`=25527878 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398111, 0.03728631700820891, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25527878_31-07-2025_07_00_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25527895, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25527896, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25527897, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25527898, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25527899, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25527900, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25527901, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25527902, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25527903, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25527904, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25527905, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25527906, '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 = 25528260 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': 3405706, 'mtr_portfolio_id': 25528260, 'created_at': datetime.datetime(2025, 7, 31, 7, 16, 59), 'result': '0.03544878293593164', 'result_long': None, 'result_double': None}] Qualite : 0.03544878293593164 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25528260 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25528260_31-07-2025_07_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25528260 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_P25528260_31-07-2025_07_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25528288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25528289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25528290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25528291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25528292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25528293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25528294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25528295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25528296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25528297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25528298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25528299, 'pht': 3726}}" where mtr_portfolio_id = 25528260 and dashboard_run_id = 2043715 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`=25528260 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398112, 0.03544878293593164, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25528260_31-07-2025_07_16_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25528288, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25528289, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25528290, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25528291, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25528292, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25528293, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25528294, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25528295, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25528296, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25528297, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25528298, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25528299, '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 = 25528614 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': 3405795, 'mtr_portfolio_id': 25528614, 'created_at': datetime.datetime(2025, 7, 31, 7, 32, 56), 'result': '0.05826320114055299', 'result_long': None, 'result_double': None}] Qualite : 0.05826320114055299 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25528614 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25528614_31-07-2025_07_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25528614 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_P25528614_31-07-2025_07_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25528653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25528654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25528655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25528656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25528657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25528658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25528659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25528660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25528661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25528662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25528663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25528664, 'pht': 3726}}" where mtr_portfolio_id = 25528614 and dashboard_run_id = 2043719 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`=25528614 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398113, 0.05826320114055299, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25528614_31-07-2025_07_32_57.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25528653, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25528654, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25528655, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25528656, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25528657, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25528658, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25528659, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25528660, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25528661, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25528662, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25528663, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25528664, '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 = 25529145 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': 3405971, 'mtr_portfolio_id': 25529145, 'created_at': datetime.datetime(2025, 7, 31, 7, 46, 58), 'result': '0.05232317265273243', 'result_long': None, 'result_double': None}] Qualite : 0.05232317265273243 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25529145 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25529145_31-07-2025_07_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25529145 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_P25529145_31-07-2025_07_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25529150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25529151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25529152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25529153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25529154, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25529155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25529156, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25529157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25529158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25529159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25529160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25529161, 'pht': 3726}}" where mtr_portfolio_id = 25529145 and dashboard_run_id = 2043719 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`=25529145 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398114, 0.05232317265273243, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25529145_31-07-2025_07_46_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25529150, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25529151, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25529152, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25529153, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25529154, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25529155, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25529156, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25529157, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25529158, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25529159, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25529160, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25529161, '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 = 25529519 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': 3406077, 'mtr_portfolio_id': 25529519, 'created_at': datetime.datetime(2025, 7, 31, 8, 2, 56), 'result': '0.029092501932476728', 'result_long': None, 'result_double': None}] Qualite : 0.029092501932476728 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25529519 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25529519_31-07-2025_08_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25529519 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_P25529519_31-07-2025_08_02_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25529554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25529555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25529556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25529557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25529558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25529559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25529560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25529561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25529562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25529563, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25529564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25529565, 'pht': 3726}}" where mtr_portfolio_id = 25529519 and dashboard_run_id = 2043719 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`=25529519 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398115, 0.029092501932476728, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25529519_31-07-2025_08_02_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25529554, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25529555, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25529556, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25529557, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25529558, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25529559, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25529560, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25529561, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25529562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25529563, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25529564, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25529565, '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 = 25529875 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': 3406195, 'mtr_portfolio_id': 25529875, 'created_at': datetime.datetime(2025, 7, 31, 8, 8, 57), 'result': '0.02546865073031657', 'result_long': None, 'result_double': None}] Qualite : 0.02546865073031657 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25529875 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25529875_31-07-2025_08_08_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25529875 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_P25529875_31-07-2025_08_08_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25529910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25529911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25529912, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25529913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25529914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25529915, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25529916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25529917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25529918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25529919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25529920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25529921, 'pht': 3726}}" where mtr_portfolio_id = 25529875 and dashboard_run_id = 2043719 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`=25529875 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13398116, 0.02546865073031657, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25529875_31-07-2025_08_08_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25529910, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25529911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25529912, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25529913, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25529914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25529915, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25529916, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25529917, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25529918, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25529919, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25529920, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25529921, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25516129,25516552,25516863,25517204,25517620,25518153,25518649,25519140,25519626,25520305,25520841,25521307,25521737,25522256,25522735,25523075,25523385,25523818,25524141,25524518,25524912,25525411,25525840,25526254,25526644,25527147,25527500,25527878,25528260,25528614,25529145,25529519,25529875) result : ((1374514567,), (1374514596,), (1374514618,), (1374514639,), (1374514661,), (1374514680,), (1374514915,), (1374514956,), (1374514988,), (1374515009,), (1374515045,), (1374515070,), (1374515272,), (1374515291,), (1374515310,), (1374515331,), (1374515334,), (1374515339,), (1374515640,), (1374515710,), (1374515787,), (1374515863,), (1374515931,), (1374515997,), (1374516495,), (1374516889,), (1374516905,), (1374516906,), (1374516918,), (1374516936,), (1374516943,), (1374517031,), (1374517055,), (1374517078,), (1374517098,), (1374517120,), (1374517139,), (1374517293,), (1374517311,), (1374517331,), (1374517349,), (1374517367,), (1374517385,), (1374517831,), (1374517884,), (1374517941,), (1374517990,), (1374518040,), (1374518091,), (1374518410,), (1374518738,), (1374518781,), (1374518785,), (1374518815,), (1374518834,), (1374518837,), (1374518849,), (1374518851,), (1374518853,), (1374518855,), (1374518857,), (1374518859,), (1374518874,), (1374518876,), (1374518879,), (1374518890,), (1374518906,), (1374518908,), (1374518919,), (1374518920,), (1374518922,), (1374518923,), (1374518925,), (1374518941,), (1374519076,), (1374519079,), (1374519082,), (1374519089,), (1374519095,), (1374519098,), (1374519103,), (1374519105,), (1374519108,), (1374519111,), (1374519113,), (1374519115,), (1374519125,), (1374519137,), (1374519138,), (1374519145,), (1374519147,), (1374519166,), (1374519205,), (1374519207,), (1374519209,), (1374519211,), (1374519221,), (1374519241,), (1374519357,), (1374519471,), (1374519555,), (1374519557,), (1374519558,), (1374519578,), (1374519586,), (1374519596,), (1374519603,), (1374519606,), (1374519609,), (1374519612,), (1374519615,), (1374519617,), (1374519632,), (1374519633,), (1374519636,), (1374519643,), (1374519646,), (1374519648,), (1374519657,), (1374519673,), (1374519679,), (1374519684,), (1374519686,), (1374519688,), (1374519715,), (1374519739,), (1374519759,), (1374519781,), (1374519801,), (1374519823,), (1374519843,), (1374519845,), (1374519848,), (1374519851,), (1374519853,), (1374519856,), (1374519867,), (1374519871,), (1374519873,), (1374519877,), (1374519887,), (1374519896,), (1374519906,), (1374519930,), (1374519934,), (1374519936,), (1374519938,), (1374519942,), (1374519945,), (1374519958,), (1374519980,), (1374519982,), (1374519988,), (1374519990,), (1374519992,), (1374519995,), (1374520003,), (1374520005,), (1374520008,), (1374520011,), (1374520013,), (1374520015,), (1374520029,), (1374520035,), (1374520036,), (1374520037,), (1374520038,), (1374520040,), (1374520049,), (1374520051,), (1374520053,), (1374520055,), (1374520057,), (1374520060,), (1374520067,), (1374520074,), (1374520078,), (1374520080,), (1374520083,), (1374520086,), (1374520113,), (1374520115,), (1374520116,), (1374520118,), (1374520121,), (1374520123,), (1374520131,), (1374520133,), (1374520136,), (1374520139,), (1374520142,), (1374520144,), (1374520156,), (1374520159,), (1374520162,), (1374520165,), (1374520167,), (1374520168,), (1374520178,), (1374520183,), (1374520184,), (1374520186,), (1374520188,), (1374520191,), (1374520200,), (1374520217,), (1374520219,), (1374520221,), (1374520223,), (1374520225,), (1374520227,), (1374520252,), (1374520255,), (1374520258,), (1374520260,), (1374520263,), (1374520266,), (1374520272,), (1374520275,), (1374520279,), (1374520282,), (1374520284,), (1374520287,), (1374520296,), (1374520300,), (1374520311,), (1374520313,), (1374520314,), (1374520317,), (1374520325,), (1374520327,), (1374520335,), (1374520339,), (1374520342,), (1374520344,), (1374520354,), (1374520357,), (1374520359,), (1374520360,), (1374520361,), (1374520363,), (1374520375,), (1374520377,), (1374520388,), (1374520391,), (1374520394,), (1374520396,), (1374520413,), (1374520414,), (1374520419,), (1374520420,), (1374520422,), (1374520425,), (1374520438,), (1374520441,), (1374520446,), (1374520449,), (1374520451,), (1374520454,), (1374520479,), (1374520589,), (1374520612,), (1374520626,), (1374520629,), (1374520633,), (1374520634,), (1374520648,), (1374520653,), (1374520655,), (1374520656,), (1374520657,), (1374520658,), (1374520671,), (1374520672,), (1374520694,), (1374520711,), (1374520716,), (1374520722,), (1374520741,), (1374520767,), (1374520806,), (1374520813,), (1374520815,), (1374520818,), (1374520829,), (1374520831,), (1374520833,), (1374520835,), (1374520837,), (1374520840,), (1374520853,), (1374520855,), (1374520857,), (1374520864,), (1374520870,), (1374520882,), (1374520890,), (1374520892,), (1374520898,), (1374520905,), (1374520914,), (1374520919,), (1374520933,), (1374520938,), (1374520940,), (1374520943,), (1374520964,), (1374520987,), (1374521182,), (1374521368,), (1374521370,), (1374521382,), (1374521401,), (1374521420,), (1374521439,), (1374521548,), (1374521720,), (1374521739,), (1374521769,), (1374521795,), (1374521816,), (1374521838,), (1374521984,), (1374522003,), (1374522025,), (1374522030,), (1374522032,), (1374522039,), (1374522140,), (1374522146,), (1374522155,), (1374522163,), (1374522182,), (1374522203,), (1374522356,), (1374522377,), (1374522395,), (1374522413,), (1374522435,), (1374522453,), (1374522570,), (1374522583,), (1374522610,), (1374522636,), (1374522653,), (1374522672,), (1374522705,), (1374522707,), (1374522709,), (1374522711,), (1374522714,), (1374522718,), (1374522728,), (1374522731,), (1374522734,), (1374522740,), (1374522749,), (1374522755,), (1374522767,), (1374522814,), (1374522833,), (1374522850,), (1374522872,), (1374522881,), (1374522888,), (1374522941,), (1374522943,), (1374522949,), (1374522958,), (1374522960,), (1374522961,), (1374522976,), (1374522978,), (1374522985,), (1374522992,), (1374522993,), (1374522995,), (1374523006,), (1374523007,), (1374523010,), (1374523012,), (1374523014,), (1374523017,), (1374523028,), (1374523030,), (1374523034,), (1374523040,), (1374523048,), (1374523050,), (1374523075,), (1374523076,), (1374523078,), (1374523090,), (1374523098,), (1374523100,), (1374523109,), (1374523112,), (1374523119,), (1374523127,), (1374523128,), (1374523129,), (1374523167,), (1374523175,), (1374523177,), (1374523179,), (1374523181,), (1374523184,), (1374523223,), (1374523239,), (1374523256,), (1374523277,), (1374523294,), (1374523314,), (1374523411,), (1374523497,), (1374523516,), (1374523536,), (1374523555,), (1374523579,), (1374523605,), (1374523618,), (1374523619,), (1374523621,), (1374523629,), (1374523637,), (1374523650,), (1374523816,), (1374523981,), (1374523985,), (1374523989,), (1374524011,), (1374524034,), (1374524056,), (1374524119,), (1374524212,), (1374524232,), (1374524254,), (1374524273,), (1374524280,), (1374524284,), (1374524316,), (1374524317,), (1374524318,), (1374524323,), (1374524342,), (1374524345,), (1374524388,), (1374524390,), (1374524393,), (1374524396,), (1374524405,), (1374524414,), (1374524539,), (1374524559,), (1374524579,), (1374524585,), (1374524594,), (1374524604,), (1374524678,), (1374524681,), (1374524683,), (1374524685,), (1374524695,), (1374524700,), (1374524811,), (1374524827,), (1374524831,), (1374524835,), (1374524838,), (1374524840,), (1374524842,), (1374524849,), (1374524868,), (1374524870,), (1374524872,), (1374524882,), (1374524886,), (1374524888,), (1374524903,), (1374524906,), (1374524908,), (1374524910,), (1374524913,), (1374524916,), (1374524923,), (1374524925,), (1374524927,), (1374524929,), (1374524938,), (1374524948,), (1374524975,), (1374524978,), (1374524984,), (1374524992,), (1374524993,), (1374524995,), (1374525004,), (1374525006,), (1374525008,), (1374525017,), (1374525025,), (1374525028,), (1374525033,), (1374525036,), (1374525039,), (1374525041,), (1374525043,), (1374525045,), (1374525069,), (1374525073,), (1374525076,), (1374525078,), (1374525081,), (1374525084,), (1374525098,), (1374525137,), (1374525145,), (1374525147,), (1374525149,), (1374525151,), (1374525154,), (1374525163,), (1374525165,), (1374525167,), (1374525169,), (1374525171,), (1374525176,), (1374525197,), (1374525200,), (1374525202,), (1374525204,), (1374525206,), (1374525210,), (1374525225,), (1374525247,), (1374525271,), (1374525273,), (1374525275,), (1374525277,), (1374525280,), (1374525284,), (1374525292,), (1374525295,), (1374525298,), (1374525300,), (1374525303,), (1374525306,), (1374525314,), (1374525317,), (1374525320,), (1374525322,), (1374525323,), (1374525325,), (1374525334,), (1374525336,), (1374525338,), (1374525340,), (1374525342,), (1374525345,), (1374525359,), (1374525376,), (1374525379,), (1374525382,), (1374525383,), (1374525384,), (1374525385,), (1374525395,), (1374525396,), (1374525397,), (1374525406,), (1374525414,), (1374525417,), (1374525422,), (1374525425,), (1374525428,), (1374525431,), (1374525433,), (1374525436,), (1374525444,), (1374525447,), (1374525450,), (1374525452,), (1374525453,), (1374525455,), (1374525466,), (1374525468,), (1374525469,), (1374525470,), (1374525472,), (1374525474,), (1374525486,), (1374525505,), (1374525508,), (1374525510,), (1374525512,), (1374525513,), (1374525515,), (1374525894,), (1374525920,), (1374525939,), (1374525959,), (1374525985,), (1374526012,), (1374526513,), (1374526837,), (1374526857,), (1374526887,), (1374526907,), (1374526942,), (1374526965,), (1374527134,), (1374527153,), (1374527169,), (1374527189,), (1374527213,), (1374527218,), (1374527298,), (1374527468,), (1374527474,), (1374527480,), (1374527487,), (1374527499,), (1374527502,), (1374527564,), (1374527566,), (1374527572,), (1374527580,), (1374527586,), (1374527592,), (1374527729,), (1374527916,), (1374527936,), (1374527975,), (1374528009,), (1374528044,), (1374528084,), (1374528312,), (1374528328,), (1374528345,), (1374528356,), (1374528368,), (1374528386,), (1374528483,), (1374528491,), (1374528509,), (1374528538,), (1374528562,), (1374528591,), (1374528685,), (1374528936,), (1374528959,), (1374528980,), (1374529001,), (1374529010,), (1374529022,), (1374529036,), (1374529039,), (1374529047,), (1374529054,), (1374529056,), (1374529059,), (1374529067,), (1374529068,), (1374529072,), (1374529081,), (1374529093,), (1374529102,), (1374529110,), (1374529113,), (1374529115,), (1374529121,), (1374529128,), (1374529142,), (1374529188,), (1374529191,), (1374529194,), (1374529206,), (1374529210,), (1374529212,), (1374529218,), (1374529220,), (1374529222,), (1374529225,), (1374529252,), (1374529256,), (1374529270,), (1374529273,), (1374529276,), (1374529281,), (1374529294,), (1374529297,), (1374529339,), (1374529363,), (1374529382,), (1374529401,), (1374529419,), (1374529437,), (1374529592,), (1374529610,), (1374529629,), (1374529648,), (1374529667,), (1374529686,), (1374529884,), (1374530015,), (1374530057,), (1374530094,), (1374530117,), (1374530140,), (1374530143,), (1374530199,), (1374530201,), (1374530204,), (1374530209,), (1374530219,), (1374530222,), (1374530229,), (1374530234,), (1374530242,), (1374530246,), (1374530249,), (1374530253,), (1374530262,), (1374530291,), (1374530294,), (1374530297,), (1374530300,), (1374530303,), (1374530305,), (1374530310,), (1374530312,), (1374530314,), (1374530316,), (1374530317,), (1374530318,), (1374530323,), (1374530325,), (1374530327,), (1374530329,), (1374530330,), (1374530332,), (1374530336,), (1374530338,), (1374530341,), (1374530344,), (1374530354,), (1374530362,), (1374530370,), (1374530373,), (1374530384,), (1374530388,), (1374530391,), (1374530394,), (1374530408,), (1374530426,), (1374530429,), (1374530432,), (1374530434,), (1374530436,), (1374530438,), (1374530447,), (1374530448,), (1374530450,), (1374530451,), (1374530458,), (1374530468,), (1374530487,), (1374530490,), (1374530492,), (1374530495,), (1374530496,), (1374530499,), (1374530505,), (1374530507,), (1374530509,), (1374530511,), (1374530513,), (1374530516,), (1374530522,), (1374530525,), (1374530528,), (1374530531,), (1374530532,), (1374530534,), (1374530544,), (1374530545,), (1374530546,), (1374530547,), (1374530548,), (1374530552,), (1374530559,), (1374530562,), (1374530565,), (1374530568,), (1374530570,), (1374530574,), (1374530587,), (1374530590,), (1374530593,), (1374530595,), (1374530596,), (1374530598,), (1374530606,), (1374530609,), (1374530611,), (1374530613,), (1374530615,), (1374530618,), (1374530626,), (1374530644,), (1374530647,), (1374530649,), (1374530650,), (1374530651,), (1374530652,), (1374530660,), (1374530662,), (1374530663,), (1374530664,), (1374530665,), (1374530667,), (1374530681,), (1374530686,), (1374530688,), (1374530689,), (1374530691,), (1374530693,), (1374530700,), (1374530702,), (1374530708,), (1374530711,), (1374530713,), (1374530717,), (1374530727,), (1374530730,), (1374530740,), (1374530742,), (1374530745,), (1374530748,), (1374530759,), (1374530761,), (1374530763,), (1374530766,), (1374530767,), (1374530769,), (1374530776,), (1374530778,), (1374530781,), (1374530784,), (1374530796,), (1374530799,), (1374530807,), (1374530811,), (1374530814,), (1374530817,), (1374530818,), (1374530820,), (1374530828,), (1374530829,), (1374530841,), (1374530848,), (1374530853,), (1374530855,), (1374530876,), (1374530892,), (1374530895,), (1374530898,), (1374530911,), (1374530921,), (1374530928,), (1374530942,), (1374530944,), (1374530946,), (1374530960,), (1374530968,), (1374530977,), (1374530992,), (1374530993,), (1374530997,), (1374531001,), (1374531002,), (1374531005,), (1374531019,), (1374531021,), (1374531023,), (1374531025,), (1374531028,), (1374531032,), (1374531047,), (1374531050,), (1374531053,), (1374531055,), (1374531056,), (1374531057,), (1374531067,), (1374531070,), (1374531078,), (1374531080,), (1374531082,), (1374531086,), (1374531100,), (1374531104,), (1374531111,), (1374531120,), (1374531122,), (1374531124,), (1374531533,), (1374531555,), (1374531574,), (1374531595,), (1374531620,), (1374531646,), (1374531827,), (1374531835,), (1374531842,), (1374531845,), (1374531859,), (1374531881,), (1374532045,), (1374532080,), (1374532106,), (1374532128,), (1374532148,), (1374532168,), (1374532328,), (1374532356,), (1374532383,), (1374532409,), (1374532434,), (1374532460,), (1374532716,), (1374533034,), (1374533035,), (1374533272,), (1374533300,), (1374533326,), (1374533352,), (1374533376,), (1374533404,), (1374533702,), (1374533832,), (1374533858,), (1374533883,), (1374533906,), (1374533932,), (1374533963,), (1374534125,), (1374534131,), (1374534143,), (1374534145,), (1374534147,), (1374534149,), (1374534167,), (1374534169,), (1374534170,), (1374534171,), (1374534172,), (1374534173,), (1374534228,), (1374534256,), (1374534258,), (1374534260,), (1374534263,), (1374534265,), (1374534286,), (1374534458,), (1374534460,), (1374534461,), (1374534462,), (1374534463,), (1374534465,), (1374534478,), (1374534480,), (1374534482,), (1374534483,), (1374534485,), (1374534488,), (1374534498,), (1374534522,), (1374534525,), (1374534526,), (1374534527,), (1374534528,), (1374534530,), (1374534554,), (1374534558,), (1374534569,), (1374534576,), (1374534579,), (1374534582,), (1374534607,), (1374534609,), (1374534611,), (1374534625,), (1374534649,), (1374534674,), (1374534716,), (1374534718,), (1374534720,), (1374534721,), (1374534722,), (1374534724,), (1374534731,), (1374534734,), (1374534737,), (1374534740,), (1374534742,), (1374534745,), (1374534962,), (1374535097,), (1374535099,), (1374535101,), (1374535102,), (1374535104,), (1374535106,), (1374535136,), (1374535175,), (1374535178,), (1374535181,), (1374535184,), (1374535186,), (1374535189,), (1374535197,), (1374535200,), (1374535202,), (1374535204,), (1374535206,), (1374535209,), (1374535222,), (1374535225,), (1374535228,), (1374535230,), (1374535232,), (1374535233,), (1374535244,), (1374535246,), (1374535247,), (1374535248,), (1374535250,), (1374535253,), (1374535263,), (1374535266,), (1374535269,), (1374535271,), (1374535272,), (1374535274,), (1374535282,), (1374535287,), (1374535292,), (1374535294,), (1374535297,), (1374535300,), (1374535309,), (1374535311,), (1374535314,), (1374535316,), (1374535318,), (1374535320,), (1374535343,), (1374535362,), (1374535363,), (1374535364,), (1374535365,), (1374535367,), (1374535369,), (1374535377,), (1374535382,), (1374535384,), (1374535386,), (1374535388,), (1374535391,), (1374535394,), (1374535405,), (1374535408,), (1374535411,), (1374535413,), (1374535416,), (1374535419,), (1374535479,), (1374535481,), (1374535483,), (1374535485,), (1374535492,), (1374535551,), (1374535560,), (1374535563,), (1374535566,), (1374535568,), (1374535569,), (1374535571,), (1374535578,), (1374535581,), (1374535584,), (1374535588,), (1374535590,), (1374535592,), (1374535602,), (1374535605,), (1374535607,), (1374535608,), (1374535610,), (1374535612,), (1374535621,), (1374535623,), (1374535625,), (1374535627,), (1374535630,), (1374535634,), (1374535643,), (1374535646,), (1374535649,), (1374535651,), (1374535653,), (1374535655,), (1374535666,), (1374535685,), (1374535689,), (1374535690,), (1374535691,), (1374535693,), (1374535696,), (1374535706,), (1374535709,), (1374535712,), (1374535714,), (1374535715,), (1374535717,), (1374535730,), (1374535733,), (1374535735,), (1374535737,), (1374535739,), (1374535742,), (1374535754,), (1374535771,), (1374535773,), (1374535775,), (1374535777,), (1374535779,), (1374535781,), (1374535816,), (1374535819,), (1374535821,), (1374535822,), (1374535823,), (1374535824,), (1374535836,), (1374535838,), (1374535840,), (1374535841,), (1374535844,), (1374535847,), (1374535860,), (1374535863,), (1374535866,), (1374535868,), (1374535871,), (1374535874,), (1374535884,), (1374535887,), (1374535890,), (1374535891,), (1374535893,), (1374535895,), (1374535914,), (1374535941,), (1374535944,), (1374535947,), (1374535950,), (1374535952,), (1374535955,), (1374535968,), (1374535984,), (1374535986,), (1374535988,), (1374535990,), (1374535992,), (1374535995,), (1374536008,), (1374536011,), (1374536014,), (1374536017,), (1374536019,), (1374536022,), (1374536033,), (1374536035,), (1374536036,), (1374536037,), (1374536039,), (1374536042,), (1374536055,), (1374536058,), (1374536061,), (1374536062,), (1374536063,), (1374536064,), (1374536088,), (1374536115,), (1374536139,), (1374536165,), (1374536189,), (1374536224,), (1374536679,), (1374536685,), (1374536727,), (1374536754,), (1374536776,), (1374536804,), (1374537303,), (1374537793,), (1374537820,), (1374537848,), (1374537892,), (1374537934,), (1374537983,), (1374538248,), (1374538252,), (1374538255,), (1374538257,), (1374538259,), (1374538261,), (1374538445,), (1374538464,), (1374538469,), (1374538472,), (1374538483,), (1374538511,), (1374538571,), (1374538574,), (1374538582,), (1374538589,), (1374538600,), (1374538605,), (1374538674,), (1374538677,), (1374538679,), (1374538681,), (1374538690,), (1374538701,), (1374538807,), (1374538837,), (1374538840,), (1374538843,), (1374538855,), (1374538856,), (1374538858,), (1374538870,), (1374538874,), (1374538876,), (1374538878,), (1374538882,), (1374538898,), (1374538919,), (1374538922,), (1374538931,), (1374538939,), (1374538940,), (1374538942,), (1374538964,), (1374538981,), (1374538983,), (1374538989,), (1374538997,), (1374538999,), (1374539002,), (1374539019,), (1374539026,), (1374539030,), (1374539032,), (1374539034,), (1374539037,), (1374539049,), (1374539054,), (1374539058,), (1374539073,), (1374539082,), (1374539086,), (1374539109,), (1374539137,), (1374539175,), (1374539177,), (1374539179,), (1374539181,), (1374539184,), (1374539188,), (1374539204,), (1374539207,), (1374539210,), (1374539212,), (1374539213,), (1374539215,), (1374539234,), (1374539235,), (1374539236,), (1374539237,), (1374539238,), (1374539240,), (1374539260,), (1374539263,), (1374539265,), (1374539266,), (1374539267,), (1374539268,), (1374539298,), (1374539318,), (1374539321,), (1374539329,), (1374539332,), (1374539333,), (1374539335,), (1374539351,), (1374539353,), (1374539355,), (1374539357,), (1374539359,), (1374539361,), (1374539379,), (1374539383,), (1374539385,), (1374539387,), (1374539389,), (1374539392,), (1374539419,), (1374539464,), (1374539466,), (1374539486,), (1374539492,), (1374539493,), (1374539496,), (1374539519,), (1374539520,), (1374539521,), (1374539522,), (1374539524,), (1374539525,), (1374539542,), (1374539545,), (1374539554,), (1374539560,), (1374539566,), (1374539569,), (1374539588,), (1374539590,), (1374539600,), (1374539601,), (1374539603,), (1374539606,), (1374539624,), (1374539627,), (1374539632,), (1374539634,), (1374539636,), (1374539638,), (1374539663,), (1374539699,), (1374539702,), (1374539704,), (1374539706,), (1374539708,), (1374539710,), (1374539728,), (1374539738,), (1374539743,), (1374539744,), (1374539745,), (1374539747,), (1374539763,), (1374539766,), (1374539774,), (1374539784,), (1374539786,), (1374539788,), (1374539805,), (1374539808,), (1374539810,), (1374539811,), (1374539812,), (1374539813,), (1374539831,), (1374539836,), (1374539844,), (1374539846,), (1374539848,), (1374539850,), (1374539871,), (1374539875,), (1374539877,), (1374539878,), (1374539890,), (1374539894,), (1374539912,), (1374539913,), (1374539914,), (1374539930,), (1374539932,), (1374539935,), (1374539950,), (1374539953,), (1374539955,), (1374539957,), (1374539959,), (1374539961,), (1374539978,), (1374539981,), (1374539984,), (1374539992,), (1374540004,), (1374540006,), (1374540030,), (1374540047,), (1374540050,), (1374540052,), (1374540054,), (1374540056,), (1374540058,), (1374540079,), (1374540081,), (1374540083,), (1374540084,), (1374540086,), (1374540087,), (1374540105,), (1374540107,), (1374540109,), (1374540110,), (1374540111,), (1374540112,), (1374540129,), (1374540132,), (1374540134,), (1374540136,), (1374540137,), (1374540140,), (1374540162,), (1374540164,), (1374540168,), (1374540170,), (1374540172,), (1374540175,), (1374540190,), (1374540192,), (1374540193,), (1374540194,), (1374540195,), (1374540196,), (1374540213,), (1374540217,), (1374540219,), (1374540221,), (1374540223,), (1374540224,), (1374540237,), (1374540238,), (1374540240,), (1374540242,), (1374540245,), (1374540249,), (1374540266,), (1374540269,), (1374540271,), (1374540273,), (1374540275,), (1374540278,), (1374540301,), (1374540336,), (1374540338,), (1374540339,), (1374540340,), (1374540342,), (1374540344,), (1374540359,), (1374540362,), (1374540364,), (1374540366,), (1374540367,), (1374540369,), (1374540391,), (1374540393,), (1374540395,), (1374540397,), (1374540398,), (1374540401,), (1374540418,), (1374540421,), (1374540424,), (1374540425,), (1374540426,), (1374540427,), (1374540441,), (1374540444,), (1374540448,), (1374540452,), (1374540454,), (1374540456,), (1374540471,), (1374540476,), (1374540479,), (1374540481,), (1374540483,), (1374540485,), (1374540501,), (1374540504,), (1374540507,), (1374540509,), (1374540520,), (1374540521,), (1374541186,), (1374541238,), (1374541303,), (1374541340,), (1374541368,), (1374541400,), (1374541739,), (1374542186,), (1374542211,), (1374542235,), (1374542260,), (1374542286,), (1374542314,), (1374542427,), (1374542448,), (1374542472,), (1374542496,), (1374542529,), (1374542554,), (1374542662,), (1374542665,), (1374542667,), (1374542669,), (1374542671,), (1374542673,), (1374542690,), (1374542693,), (1374542694,), (1374542695,), (1374542698,), (1374542700,), (1374542721,), (1374542725,), (1374542728,), (1374542730,), (1374542732,), (1374542734,), (1374542750,), (1374542753,), (1374542755,), (1374542756,), (1374542757,), (1374542758,), (1374542776,), (1374542781,), (1374542784,), (1374542788,), (1374542790,), (1374542792,), (1374542807,), (1374542810,), (1374542811,), (1374542814,), (1374542816,), (1374542818,), (1374542832,), (1374542836,), (1374542840,), (1374542842,), (1374542844,), (1374542846,), (1374542871,), (1374542888,), (1374542892,), (1374542904,), (1374542906,), (1374542908,), (1374542910,), (1374542925,), (1374542929,), (1374542931,), (1374542932,), (1374542934,), (1374542936,), (1374542952,), (1374542957,), (1374542969,), (1374542976,), (1374542983,), (1374542985,), (1374543000,), (1374543004,), (1374543012,), (1374543017,), (1374543019,), (1374543022,), (1374543036,), (1374543047,), (1374543058,), (1374543067,), (1374543072,), (1374543075,), (1374543101,), (1374543127,), (1374543135,), (1374543138,), (1374543141,), (1374543143,), (1374543146,), (1374543155,), (1374543158,), (1374543161,), (1374543163,), (1374543164,), (1374543166,), (1374543217,), (1374543219,), (1374543223,), (1374543224,), (1374543228,), (1374543230,), (1374543313,), (1374543343,), (1374543361,), (1374543362,), (1374543364,), (1374543367,), (1374543370,), (1374543377,), (1374543380,), (1374543382,), (1374543384,), (1374543386,), (1374543389,), (1374543401,), (1374543403,), (1374543405,), (1374543407,), (1374543409,), (1374543412,), (1374543419,), (1374543423,), (1374543426,), (1374543428,), (1374543431,), (1374543434,), (1374543441,), (1374543442,), (1374543444,), (1374543447,), (1374543465,), (1374543473,), (1374543516,), (1374543519,), (1374543520,), (1374543521,), (1374543523,), (1374543526,), (1374543547,), (1374543549,), (1374543550,), (1374543551,), (1374543554,), (1374543558,), (1374543573,), (1374543574,), (1374543576,), (1374543578,), (1374543580,), (1374543584,), (1374543599,), (1374543608,), (1374543612,), (1374543614,), (1374543616,), (1374543619,), (1374549253,), (1374543629,), (1374543655,), (1374543657,), (1374543664,), (1374543669,), (1374543671,), (1374543672,), (1374543688,), (1374543689,), (1374543690,), (1374543691,), (1374543693,), (1374543696,), (1374543707,), (1374543715,), (1374543717,), (1374543718,), (1374543720,), (1374543723,), (1374543737,), (1374543744,), (1374543749,), (1374543750,), (1374543751,), (1374543755,), (1374543766,), (1374543767,), (1374543768,), (1374543769,), (1374543771,), (1374543774,), (1374543794,), (1374543800,), (1374543801,), (1374543802,), (1374543803,), (1374543805,), (1374543824,), (1374543831,), (1374543832,), (1374543833,), (1374543835,), (1374543838,), (1374543848,), (1374543849,), (1374543850,), (1374543851,), (1374543853,), (1374543856,), (1374543870,), (1374543878,), (1374543885,), (1374543886,), (1374543890,), (1374543893,), (1374543912,), (1374543935,), (1374543936,), (1374543937,), (1374543938,), (1374543940,), (1374543941,), (1374543952,), (1374543953,), (1374543954,), (1374543955,), (1374543956,), (1374543958,), (1374543980,), (1374543984,), (1374543985,), (1374543986,), (1374543988,), (1374543991,), (1374544004,), (1374544007,), (1374544008,), (1374544010,), (1374544012,), (1374544013,), (1374544027,), (1374544028,), (1374544029,), (1374544030,), (1374544032,), (1374544035,), (1374544038,), (1374544039,), (1374544045,), (1374544050,), (1374544057,), (1374544058,), (1374544060,), (1374544062,), (1374544070,), (1374544077,), (1374544079,), (1374544080,), (1374544082,), (1374544085,), (1374544094,), (1374544112,), (1374544115,), (1374544117,), (1374544119,), (1374544121,), (1374544124,), (1374544148,), (1374544166,), (1374544174,), (1374544181,), (1374544183,), (1374544186,), (1374544188,), (1374544196,), (1374544198,), (1374544200,), (1374544202,), (1374544204,), (1374544207,), (1374544215,), (1374544218,), (1374544220,), (1374544222,), (1374544224,), (1374544227,), (1374544238,), (1374544239,), (1374544241,), (1374544242,), (1374544244,), (1374544246,), (1374544260,), (1374544262,), (1374544264,), (1374544265,), (1374544267,), (1374544269,), (1374544277,), (1374544279,), (1374544293,), (1374544294,), (1374544296,), (1374544299,), (1374544310,), (1374544311,), (1374544312,), (1374544313,), (1374544315,), (1374544318,), (1374544725,), (1374544750,), (1374544776,), (1374544801,), (1374544832,), (1374544850,), (1374545511,), (1374546105,), (1374546141,), (1374546162,), (1374546173,), (1374546199,), (1374546204,), (1374546340,), (1374546342,), (1374546343,), (1374546344,), (1374546345,), (1374546347,), (1374546360,), (1374546362,), (1374546364,), (1374546366,), (1374546368,), (1374546371,), (1374546379,), (1374546381,), (1374546384,), (1374546387,), (1374546389,), (1374546392,), (1374546397,), (1374546398,), (1374546401,), (1374546404,), (1374546406,), (1374546409,), (1374546415,), (1374546421,), (1374546437,), (1374546443,), (1374546446,), (1374546449,), (1374546465,), (1374546467,), (1374546469,), (1374546471,), (1374546475,), (1374546479,), (1374546490,), (1374546492,), (1374546494,), (1374546496,), (1374546499,), (1374546502,), (1374546516,), (1374546518,), (1374546520,), (1374546522,), (1374546524,), (1374546527,), (1374546549,), (1374546567,), (1374546569,), (1374546571,), (1374546572,), (1374546574,), (1374546576,), (1374546586,), (1374546593,), (1374546600,), (1374546601,), (1374546602,), (1374546604,), (1374546619,), (1374546622,), (1374546624,), (1374546625,), (1374546628,), (1374546629,), (1374546639,), (1374546641,), (1374546644,), (1374546646,), (1374546648,), (1374546652,), (1374546661,), (1374546663,), (1374546665,), (1374546667,), (1374546669,), (1374546672,), (1374546678,), (1374546680,), (1374546690,), (1374546692,), (1374546694,), (1374546696,), (1374546717,), (1374546718,), (1374546719,), (1374546720,), (1374546722,), (1374546725,), (1374546735,), (1374546736,), (1374546737,), (1374546738,), (1374546740,), (1374546743,), (1374546752,), (1374546754,), (1374546757,), (1374546758,), (1374546760,), (1374546762,), (1374546784,), (1374546797,), (1374546798,), (1374546799,), (1374546800,), (1374546802,), (1374546805,), (1374546815,), (1374546816,), (1374546817,), (1374546818,), (1374546820,), (1374546823,), (1374546830,), (1374546832,), (1374546834,), (1374546836,), (1374546838,), (1374546841,), (1374546849,), (1374546860,), (1374546862,), (1374546863,), (1374546865,), (1374546868,), (1374546871,), (1374546887,), (1374546888,), (1374546889,), (1374546890,), (1374546891,), (1374546893,), (1374546906,), (1374546907,), (1374546908,), (1374546909,), (1374546910,), (1374546912,), (1374546925,), (1374546949,), (1374546974,), (1374546976,), (1374546978,), (1374546979,), (1374546981,), (1374546983,), (1374546992,), (1374546995,), (1374546998,), (1374546999,), (1374547002,), (1374547005,), (1374547012,), (1374547013,), (1374547015,), (1374547017,), (1374547019,), (1374547022,), (1374547039,), (1374547040,), (1374547041,), (1374547042,), (1374547044,), (1374547048,), (1374547058,), (1374547059,), (1374547060,), (1374547061,), (1374547063,), (1374547066,), (1374547090,), (1374547091,), (1374547092,), (1374547093,), (1374547095,), (1374547098,), (1374547115,), (1374547140,), (1374547143,), (1374547145,), (1374547146,), (1374547148,), (1374547150,), (1374547159,), (1374547161,), (1374547163,), (1374547164,), (1374547165,), (1374547167,), (1374547180,), (1374547182,), (1374547184,), (1374547185,), (1374547187,), (1374547189,), (1374547201,), (1374547233,), (1374547235,), (1374547246,), (1374547248,), (1374547250,), (1374547252,), (1374547261,), (1374547264,), (1374547266,), (1374547268,), (1374547270,), (1374547274,), (1374547284,), (1374547289,), (1374547294,), (1374547296,), (1374547299,), (1374547314,), (1374547318,), (1374547319,), (1374547321,), (1374547323,), (1374547325,), (1374547339,), (1374547344,), (1374547348,), (1374547349,), (1374547351,), (1374547354,), (1374547366,), (1374547367,), (1374547368,), (1374547369,), (1374547371,), (1374547374,), (1374547394,), (1374547395,), (1374547396,), (1374547397,), (1374547399,), (1374547402,), (1374547413,), (1374547414,), (1374547415,), (1374547416,), (1374547418,), (1374547423,), (1374547433,), (1374547434,), (1374547435,), (1374547436,), (1374547438,), (1374547440,), (1374547459,), (1374547490,), (1374547492,), (1374547494,), (1374547496,), (1374547499,), (1374547502,), (1374547518,), (1374547521,), (1374547522,), (1374547523,), (1374547525,), (1374547527,), (1374547545,), (1374547573,), (1374547581,), (1374547585,), (1374547590,), (1374547592,), (1374547596,), (1374547614,), (1374547615,), (1374547617,), (1374547619,), (1374547622,), (1374547625,), (1374547657,), (1374547659,), (1374547660,), (1374547661,), (1374547662,), (1374547664,), (1374547687,), (1374547697,), (1374547728,), (1374547753,), (1374547791,), (1374547838,), (1374548937,), (1374549238,), (1374549242,), (1374549245,), (1374549247,), (1374549251,), (1374549282,), (1374549284,), (1374549287,), (1374549290,), (1374549294,), (1374549299,), (1374549317,), (1374549319,), (1374549320,), (1374549321,), (1374549323,), (1374549326,), (1374549356,), (1374549388,), (1374549390,), (1374549393,), (1374549402,), (1374549406,), (1374549410,), (1374549433,), (1374549441,), (1374549449,), (1374549454,), (1374549457,), (1374549460,), (1374549491,), (1374549492,), (1374549494,), (1374549495,), (1374549496,), (1374549498,), (1374549522,), (1374549524,), (1374549526,), (1374549528,), (1374549531,), (1374549534,), (1374549553,), (1374549556,), (1374549559,), (1374549560,), (1374549562,), (1374549564,), (1374549582,), (1374549584,), (1374549586,), (1374549588,), (1374549591,), (1374549597,), (1374549626,), (1374549649,), (1374549654,), (1374549656,), (1374549658,), (1374549661,), (1374549664,), (1374549683,), (1374549685,), (1374549686,), (1374549687,), (1374549688,), (1374549690,), (1374549712,), (1374549715,), (1374549718,), (1374549720,), (1374549722,), (1374549724,), (1374549743,), (1374549756,), (1374549766,), (1374549775,), (1374549780,), (1374549782,), (1374549847,), (1374549850,), (1374549853,), (1374549857,), (1374549861,), (1374549864,), (1374549880,), (1374549884,), (1374549888,), (1374549891,), (1374549904,), (1374549912,), (1374549941,), (1374549944,), (1374549947,), (1374549949,), (1374549964,), (1374549992,), (1374550101,), (1374550104,), (1374550106,), (1374550107,), (1374550109,), (1374550111,), (1374550133,), (1374550146,), (1374550149,), (1374550151,), (1374550154,), (1374550156,), (1374550179,), (1374550202,), (1374550204,), (1374550205,), (1374550207,), (1374550208,), (1374550211,), (1374550245,), (1374550249,), (1374550252,), (1374550254,), (1374550256,), (1374550259,), (1374550275,), (1374550279,), (1374550286,), (1374550293,), (1374550296,), (1374550300,), (1374550323,), (1374550327,), (1374550329,), (1374550331,), (1374550333,), (1374550337,), (1374550351,), (1374550384,), (1374550405,), (1374550413,), (1374550415,), (1374550417,), (1374550418,), (1374550421,), (1374550445,), (1374550447,), (1374550448,), (1374550449,), (1374550450,), (1374550454,), (1374550478,), (1374550482,), (1374550483,), (1374550485,), (1374550487,), (1374550489,), (1374550503,), (1374550527,), (1374550528,), (1374550529,), (1374550530,), (1374550532,), (1374550536,), (1374550578,), (1374550584,), (1374550587,), (1374550588,), (1374550589,), (1374550591,), (1374550603,), (1374550605,), (1374550606,), (1374550608,), (1374550609,), (1374550611,), (1374550630,), (1374550632,), (1374550634,), (1374550635,), (1374550637,), (1374550640,), (1374550659,), (1374550662,), (1374550665,), (1374550667,), (1374550669,), (1374550673,), (1374550737,), (1374550825,), (1374550827,), (1374550830,), (1374550833,), (1374550836,), (1374550847,), (1374550867,), (1374550871,), (1374550884,), (1374550888,), (1374550890,), (1374550894,), (1374550909,), (1374550915,), (1374550920,), (1374550922,), (1374550925,), (1374550930,), (1374550947,), (1374551017,), (1374551018,), (1374551019,), (1374551020,), (1374551022,), (1374551050,), (1374551311,), (1374551312,), (1374551313,), (1374551314,), (1374551315,), (1374551318,), (1374551342,), (1374551344,), (1374551346,), (1374551347,), (1374551349,), (1374551352,), (1374551373,), (1374551376,), (1374551383,), (1374551386,), (1374551388,), (1374551402,), (1374551452,), (1374551459,), (1374551467,), (1374551470,), (1374551472,), (1374551475,), (1374551633,), (1374551649,), (1374551658,), (1374551659,), (1374551662,), (1374551666,), (1374551770,), (1374551773,), (1374551775,), (1374551777,), (1374551779,), (1374551782,), (1374551882,), (1374551884,), (1374551886,), (1374551888,), (1374551890,), (1374551894,), (1374551933,), (1374551935,), (1374551943,), (1374551948,), (1374551950,), (1374551953,), (1374552036,), (1374552063,), (1374552073,), (1374552076,), (1374552077,), (1374552079,), (1374552083,), (1374552132,), (1374552138,), (1374552140,), (1374552142,), (1374552144,), (1374552147,), (1374552193,), (1374552217,), (1374552247,), (1374552276,), (1374552310,), (1374552337,), (1374552359,), (1374552360,), (1374552361,), (1374552362,), (1374552364,), (1374552369,), (1374552392,), (1374552393,), (1374552394,), (1374552395,), (1374552397,), (1374552400,), (1374552418,), (1374552419,), (1374552426,), (1374552430,), (1374552431,), (1374552434,), (1374552447,), (1374552448,), (1374552449,), (1374552450,), (1374552452,), (1374552455,), (1374552683,), (1374552926,), (1374552927,), (1374553004,), (1374553005,), (1374553006,), (1374553007,), (1374553009,), (1374553011,), (1374553025,), (1374553026,), (1374553031,), (1374553033,), (1374553035,), (1374553040,), (1374553061,), (1374553062,), (1374553063,), (1374553064,), (1374553066,), (1374553084,), (1374553324,), (1374553353,), (1374553381,), (1374553406,), (1374553440,), (1374553470,), (1374553617,), (1374553621,), (1374553633,), (1374553657,), (1374553682,), (1374553710,), (1374553730,), (1374553731,), (1374553834,), (1374553835,), (1374553836,), (1374553837,), (1374553838,), (1374553840,), (1374553899,), (1374553923,), (1374553949,), (1374553972,), (1374553997,), (1374554024,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'31072025': {'nb_upload': 46, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25529875]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1374554024, 1374553997, 1374553972, 1374553949, 1374553923, 1374553899, 1374553840, 1374553838, 1374553837, 1374553836, 1374553835, 1374553834, 1374553731, 1374553730, 1374553710, 1374553682, 1374553657, 1374553633, 1374553621, 1374553617] map_info['map_portfolio_photo'] : {25529875: [1374554024, 1374553997, 1374553972, 1374553949, 1374553923, 1374553899, 1374553840, 1374553838, 1374553837, 1374553836, 1374553835, 1374553834, 1374553731, 1374553730, 1374553710, 1374553682, 1374553657, 1374553633, 1374553621, 1374553617, 1374553470, 1374553440, 1374553406, 1374553381, 1374553353, 1374553324, 1374553084, 1374553066, 1374553064, 1374553063, 1374553062, 1374553061, 1374553040, 1374553035, 1374553033, 1374553031, 1374553026, 1374553025, 1374553011, 1374553009, 1374553007, 1374553006, 1374553005, 1374553004, 1374552927, 1374552926]} final : True mtd_id 4302 list_pids : [1374554024, 1374553997, 1374553972, 1374553949, 1374553923, 1374553899, 1374553840, 1374553838, 1374553837, 1374553836, 1374553835, 1374553834, 1374553731, 1374553730, 1374553710, 1374553682, 1374553657, 1374553633, 1374553621, 1374553617] Looping around the photos to save general results len do output : 1 /25529875Didn'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, '3406195') ('4302', '25529875', '1374554024', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553997', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553972', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553949', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553923', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553899', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553840', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553838', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553837', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553836', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553835', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553834', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553731', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553730', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553710', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553682', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553657', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553633', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553621', None, None, None, None, None, '3406195') ('4302', None, None, None, None, None, None, None, '3406195') ('4302', '25529875', '1374553617', None, None, None, None, None, '3406195') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 21 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, '25529875', 'None', None, None, None, None, '3406195'), ('4302', '25529875', '1374554024', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553997', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553972', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553949', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553923', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553899', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553840', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553838', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553837', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553836', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553835', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553834', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553731', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553730', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553710', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553682', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553657', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553633', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553621', None, None, None, None, None, '3406195'), ('4302', '25529875', '1374553617', None, None, None, None, None, '3406195')] time used for this insertion : 0.1629953384399414 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.011503458023071 time spend to save output : 0.16327381134033203 total time spend for step 5 : 4.174777269363403 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 (3406195) 2.26user 2.52system 0:11.45elapsed 41%CPU (0avgtext+0avgdata 160780maxresident)k 0inputs+11680outputs (2major+76907minor)pagefaults 0swaps