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 : 3453466 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 (4189121) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4189121) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29213678 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4189121'] with mtr_portfolio_ids : ['29213678'] and first list_photo_ids : [] new path : /proc/3453466/ Name: python3 Umask: 0002 State: R (running) Tgid: 3453466 Ngid: 0 Pid: 3453466 PPid: 3453465 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3453466 NSpid: 3453466 NSpgid: 3452301 NSsid: 3452301 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104440 kB VmRSS: 104440 kB RssAnon: 66296 kB RssFile: 38144 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 592 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: 45 nonvoluntary_ctxt_switches: 92 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3453466', 'Ngid': '0', 'Pid': '3453466', 'PPid': '3453465', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3453466', 'NSpid': '3453466', 'NSpgid': '3452301', 'NSsid': '3452301', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104440 kB', 'VmRSS': '104440 kB', 'RssAnon': '66296 kB', 'RssFile': '38144 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '592 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': '45', 'nonvoluntary_ctxt_switches': '92'} ('datou_batch_current', '3453466', '1113364', '0', '1113364', '872092', '104440', b'', 'marlene', '4189121') 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_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29213678) 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 (4189121 ) ) 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 (29213678) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1398033535, 'portfolio_id': 29213678}, {'photo_id': 1398033534, 'portfolio_id': 29213678}, {'photo_id': 1398033533, 'portfolio_id': 29213678}, {'photo_id': 1398033530, 'portfolio_id': 29213678}, {'photo_id': 1398033494, 'portfolio_id': 29213678}, {'photo_id': 1398033491, 'portfolio_id': 29213678}, {'photo_id': 1398033489, 'portfolio_id': 29213678}, {'photo_id': 1398033487, 'portfolio_id': 29213678}, {'photo_id': 1398033485, 'portfolio_id': 29213678}, {'photo_id': 1398033467, 'portfolio_id': 29213678}, {'photo_id': 1398033464, 'portfolio_id': 29213678}, {'photo_id': 1398033461, 'portfolio_id': 29213678}, {'photo_id': 1398033459, 'portfolio_id': 29213678}, {'photo_id': 1398033457, 'portfolio_id': 29213678}, {'photo_id': 1398033456, 'portfolio_id': 29213678}, {'photo_id': 1398033278, 'portfolio_id': 29213678}, {'photo_id': 1398033239, 'portfolio_id': 29213678}, {'photo_id': 1398033205, 'portfolio_id': 29213678}, {'photo_id': 1398033049, 'portfolio_id': 29213678}, {'photo_id': 1398033010, 'portfolio_id': 29213678}, {'photo_id': 1398032955, 'portfolio_id': 29213678}, {'photo_id': 1398032365, 'portfolio_id': 29213678}, {'photo_id': 1398032297, 'portfolio_id': 29213678}, {'photo_id': 1398032234, 'portfolio_id': 29213678}, {'photo_id': 1398032165, 'portfolio_id': 29213678}, {'photo_id': 1398031535, 'portfolio_id': 29213678}, {'photo_id': 1398031068, 'portfolio_id': 29213678}, {'photo_id': 1398031046, 'portfolio_id': 29213678}, {'photo_id': 1398031044, 'portfolio_id': 29213678}, {'photo_id': 1398031042, 'portfolio_id': 29213678}, {'photo_id': 1398031040, 'portfolio_id': 29213678}, {'photo_id': 1398031033, 'portfolio_id': 29213678}, {'photo_id': 1398031031, 'portfolio_id': 29213678}, {'photo_id': 1398031029, 'portfolio_id': 29213678}, {'photo_id': 1398031027, 'portfolio_id': 29213678}, {'photo_id': 1398031025, 'portfolio_id': 29213678}, {'photo_id': 1398031023, 'portfolio_id': 29213678}, {'photo_id': 1398030830, 'portfolio_id': 29213678}, {'photo_id': 1398030828, 'portfolio_id': 29213678}, {'photo_id': 1398030826, 'portfolio_id': 29213678}] map_portfolio_id_photo_id: {29213678: [1398033535, 1398033534, 1398033533, 1398033530, 1398033494, 1398033491, 1398033489, 1398033487, 1398033485, 1398033467, 1398033464, 1398033461, 1398033459, 1398033457, 1398033456, 1398033278, 1398033239, 1398033205, 1398033049, 1398033010, 1398032955, 1398032365, 1398032297, 1398032234, 1398032165, 1398031535, 1398031068, 1398031046, 1398031044, 1398031042, 1398031040, 1398031033, 1398031031, 1398031029, 1398031027, 1398031025, 1398031023, 1398030830, 1398030828, 1398030826]} ##### 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.019103288650512695 #### 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 Fri Dec 5 06:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29213678) 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 : 29213678 get user id for portfolio 29213678 get sub ptf for main ptf 29213678, type 3726 and hashtags ['metal', 'cartonnette', 'kraft', 'Carton_gris', 'plastique', 'mal_croppe', 'environnement', 'autre_refus', 'papier', 'flou', 'Carton_brun', 'Teint_Dans_La_Masse'] 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`=29213678 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','cartonnette','kraft','Carton_gris','plastique','mal_croppe','environnement','autre_refus','papier','flou','Carton_brun','Teint_Dans_La_Masse')) 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`=29213678 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','cartonnette','kraft','Carton_gris','plastique','mal_croppe','environnement','autre_refus','papier','flou','Carton_brun','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 29213678, 'sub_port_id': 29213686, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19867858, 'last_updated_at': datetime.datetime(2025, 12, 5, 6, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 6, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 6, 2, 58)}, 'environnement': {'main_port_id': 29213678, 'sub_port_id': 29213687, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19867859, 'last_updated_at': datetime.datetime(2025, 12, 5, 6, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 6, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 6, 2, 58)}, 'plastique': {'main_port_id': 29213678, 'sub_port_id': 29213688, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19867860, 'last_updated_at': datetime.datetime(2025, 12, 5, 6, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 6, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 6, 2, 58)}, 'Teint_Dans_La_Masse': {'main_port_id': 29213678, 'sub_port_id': 29213689, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19867861, 'last_updated_at': datetime.datetime(2025, 12, 5, 6, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 6, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 6, 2, 58)}, 'mal_croppe': {'main_port_id': 29213678, 'sub_port_id': 29213690, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19867862, 'last_updated_at': datetime.datetime(2025, 12, 5, 6, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 6, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 6, 2, 58)}, 'Carton_gris': {'main_port_id': 29213678, 'sub_port_id': 29213691, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19867863, 'last_updated_at': datetime.datetime(2025, 12, 5, 6, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 6, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 6, 2, 58)}, 'flou': {'main_port_id': 29213678, 'sub_port_id': 29213692, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19867864, 'last_updated_at': datetime.datetime(2025, 12, 5, 6, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 6, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 6, 2, 58)}, 'kraft': {'main_port_id': 29213678, 'sub_port_id': 29213693, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19867865, 'last_updated_at': datetime.datetime(2025, 12, 5, 6, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 6, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 6, 2, 58)}, 'metal': {'main_port_id': 29213678, 'sub_port_id': 29213694, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19867866, 'last_updated_at': datetime.datetime(2025, 12, 5, 6, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 6, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 6, 2, 58)}, 'autre_refus': {'main_port_id': 29213678, 'sub_port_id': 29213695, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19867867, 'last_updated_at': datetime.datetime(2025, 12, 5, 6, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 6, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 6, 2, 58)}, 'papier': {'main_port_id': 29213678, 'sub_port_id': 29213696, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19867868, 'last_updated_at': datetime.datetime(2025, 12, 5, 6, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 6, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 6, 2, 58)}, 'cartonnette': {'main_port_id': 29213678, 'sub_port_id': 29213697, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19867869, 'last_updated_at': datetime.datetime(2025, 12, 5, 6, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 6, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 6, 2, 58)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29213686 , 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=29213678 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 (29213686) result : ((1398031892,), (1398031893,), (1398031907,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29213678) result : ((1398030826,), (1398030828,), (1398030830,), (1398031023,), (1398031025,), (1398031027,), (1398031029,), (1398031031,), (1398031033,), (1398031040,), (1398031042,), (1398031044,), (1398031046,), (1398031068,), (1398031535,), (1398032165,), (1398032234,), (1398032297,), (1398032365,), (1398032955,), (1398033010,), (1398033049,), (1398033205,), (1398033239,), (1398033278,), (1398033456,), (1398033457,), (1398033459,), (1398033461,), (1398033464,), (1398033467,), (1398033485,), (1398033487,), (1398033489,), (1398033491,), (1398033494,), (1398033530,), (1398033533,), (1398033534,), (1398033535,)) 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 29213687 , 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=29213678 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 (29213687) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29213678) result : ((1398030826,), (1398030828,), (1398030830,), (1398031023,), (1398031025,), (1398031027,), (1398031029,), (1398031031,), (1398031033,), (1398031040,), (1398031042,), (1398031044,), (1398031046,), (1398031068,), (1398031535,), (1398032165,), (1398032234,), (1398032297,), (1398032365,), (1398032955,), (1398033010,), (1398033049,), (1398033205,), (1398033239,), (1398033278,), (1398033456,), (1398033457,), (1398033459,), (1398033461,), (1398033464,), (1398033467,), (1398033485,), (1398033487,), (1398033489,), (1398033491,), (1398033494,), (1398033530,), (1398033533,), (1398033534,), (1398033535,)) 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 29213688 , 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=29213678 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 (29213688) result : ((1398033472,), (1398033473,), (1398033550,), (1398033559,), (1398033560,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29213678) result : ((1398030826,), (1398030828,), (1398030830,), (1398031023,), (1398031025,), (1398031027,), (1398031029,), (1398031031,), (1398031033,), (1398031040,), (1398031042,), (1398031044,), (1398031046,), (1398031068,), (1398031535,), (1398032165,), (1398032234,), (1398032297,), (1398032365,), (1398032955,), (1398033010,), (1398033049,), (1398033205,), (1398033239,), (1398033278,), (1398033456,), (1398033457,), (1398033459,), (1398033461,), (1398033464,), (1398033467,), (1398033485,), (1398033487,), (1398033489,), (1398033491,), (1398033494,), (1398033530,), (1398033533,), (1398033534,), (1398033535,)) 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 29213689 , 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=29213678 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 (29213689) result : ((1398031881,), (1398031882,), (1398031883,), (1398031884,), (1398031902,), (1398033542,), (1398033543,), (1398033544,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29213678) result : ((1398030826,), (1398030828,), (1398030830,), (1398031023,), (1398031025,), (1398031027,), (1398031029,), (1398031031,), (1398031033,), (1398031040,), (1398031042,), (1398031044,), (1398031046,), (1398031068,), (1398031535,), (1398032165,), (1398032234,), (1398032297,), (1398032365,), (1398032955,), (1398033010,), (1398033049,), (1398033205,), (1398033239,), (1398033278,), (1398033456,), (1398033457,), (1398033459,), (1398033461,), (1398033464,), (1398033467,), (1398033485,), (1398033487,), (1398033489,), (1398033491,), (1398033494,), (1398033530,), (1398033533,), (1398033534,), (1398033535,)) 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 29213690 , 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=29213678 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 (29213690) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29213678) result : ((1398030826,), (1398030828,), (1398030830,), (1398031023,), (1398031025,), (1398031027,), (1398031029,), (1398031031,), (1398031033,), (1398031040,), (1398031042,), (1398031044,), (1398031046,), (1398031068,), (1398031535,), (1398032165,), (1398032234,), (1398032297,), (1398032365,), (1398032955,), (1398033010,), (1398033049,), (1398033205,), (1398033239,), (1398033278,), (1398033456,), (1398033457,), (1398033459,), (1398033461,), (1398033464,), (1398033467,), (1398033485,), (1398033487,), (1398033489,), (1398033491,), (1398033494,), (1398033530,), (1398033533,), (1398033534,), (1398033535,)) 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 29213691 , 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=29213678 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 (29213691) result : ((1398031887,), (1398031888,), (1398031889,), (1398031906,), (1398033471,), (1398033525,), (1398033546,), (1398033558,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29213678) result : ((1398030826,), (1398030828,), (1398030830,), (1398031023,), (1398031025,), (1398031027,), (1398031029,), (1398031031,), (1398031033,), (1398031040,), (1398031042,), (1398031044,), (1398031046,), (1398031068,), (1398031535,), (1398032165,), (1398032234,), (1398032297,), (1398032365,), (1398032955,), (1398033010,), (1398033049,), (1398033205,), (1398033239,), (1398033278,), (1398033456,), (1398033457,), (1398033459,), (1398033461,), (1398033464,), (1398033467,), (1398033485,), (1398033487,), (1398033489,), (1398033491,), (1398033494,), (1398033530,), (1398033533,), (1398033534,), (1398033535,)) 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 29213692 , 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=29213678 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 (29213692) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29213678) result : ((1398030826,), (1398030828,), (1398030830,), (1398031023,), (1398031025,), (1398031027,), (1398031029,), (1398031031,), (1398031033,), (1398031040,), (1398031042,), (1398031044,), (1398031046,), (1398031068,), (1398031535,), (1398032165,), (1398032234,), (1398032297,), (1398032365,), (1398032955,), (1398033010,), (1398033049,), (1398033205,), (1398033239,), (1398033278,), (1398033456,), (1398033457,), (1398033459,), (1398033461,), (1398033464,), (1398033467,), (1398033485,), (1398033487,), (1398033489,), (1398033491,), (1398033494,), (1398033530,), (1398033533,), (1398033534,), (1398033535,)) 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 29213693 , 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=29213678 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 (29213693) result : ((1398031894,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29213678) result : ((1398030826,), (1398030828,), (1398030830,), (1398031023,), (1398031025,), (1398031027,), (1398031029,), (1398031031,), (1398031033,), (1398031040,), (1398031042,), (1398031044,), (1398031046,), (1398031068,), (1398031535,), (1398032165,), (1398032234,), (1398032297,), (1398032365,), (1398032955,), (1398033010,), (1398033049,), (1398033205,), (1398033239,), (1398033278,), (1398033456,), (1398033457,), (1398033459,), (1398033461,), (1398033464,), (1398033467,), (1398033485,), (1398033487,), (1398033489,), (1398033491,), (1398033494,), (1398033530,), (1398033533,), (1398033534,), (1398033535,)) 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 29213694 , 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=29213678 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 (29213694) result : ((1398033551,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29213678) result : ((1398030826,), (1398030828,), (1398030830,), (1398031023,), (1398031025,), (1398031027,), (1398031029,), (1398031031,), (1398031033,), (1398031040,), (1398031042,), (1398031044,), (1398031046,), (1398031068,), (1398031535,), (1398032165,), (1398032234,), (1398032297,), (1398032365,), (1398032955,), (1398033010,), (1398033049,), (1398033205,), (1398033239,), (1398033278,), (1398033456,), (1398033457,), (1398033459,), (1398033461,), (1398033464,), (1398033467,), (1398033485,), (1398033487,), (1398033489,), (1398033491,), (1398033494,), (1398033530,), (1398033533,), (1398033534,), (1398033535,)) 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 29213695 , 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=29213678 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 (29213695) result : ((1398031885,), (1398031886,), (1398031904,), (1398033470,), (1398033545,), (1398033556,), (1398033557,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29213678) result : ((1398030826,), (1398030828,), (1398030830,), (1398031023,), (1398031025,), (1398031027,), (1398031029,), (1398031031,), (1398031033,), (1398031040,), (1398031042,), (1398031044,), (1398031046,), (1398031068,), (1398031535,), (1398032165,), (1398032234,), (1398032297,), (1398032365,), (1398032955,), (1398033010,), (1398033049,), (1398033205,), (1398033239,), (1398033278,), (1398033456,), (1398033457,), (1398033459,), (1398033461,), (1398033464,), (1398033467,), (1398033485,), (1398033487,), (1398033489,), (1398033491,), (1398033494,), (1398033530,), (1398033533,), (1398033534,), (1398033535,)) 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 29213696 , 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=29213678 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 (29213696) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29213678) result : ((1398030826,), (1398030828,), (1398030830,), (1398031023,), (1398031025,), (1398031027,), (1398031029,), (1398031031,), (1398031033,), (1398031040,), (1398031042,), (1398031044,), (1398031046,), (1398031068,), (1398031535,), (1398032165,), (1398032234,), (1398032297,), (1398032365,), (1398032955,), (1398033010,), (1398033049,), (1398033205,), (1398033239,), (1398033278,), (1398033456,), (1398033457,), (1398033459,), (1398033461,), (1398033464,), (1398033467,), (1398033485,), (1398033487,), (1398033489,), (1398033491,), (1398033494,), (1398033530,), (1398033533,), (1398033534,), (1398033535,)) 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 29213697 , 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=29213678 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 (29213697) result : ((1398031229,), (1398031890,), (1398031891,), (1398031940,), (1398033548,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29213678) result : ((1398030826,), (1398030828,), (1398030830,), (1398031023,), (1398031025,), (1398031027,), (1398031029,), (1398031031,), (1398031033,), (1398031040,), (1398031042,), (1398031044,), (1398031046,), (1398031068,), (1398031535,), (1398032165,), (1398032234,), (1398032297,), (1398032365,), (1398032955,), (1398033010,), (1398033049,), (1398033205,), (1398033239,), (1398033278,), (1398033456,), (1398033457,), (1398033459,), (1398033461,), (1398033464,), (1398033467,), (1398033485,), (1398033487,), (1398033489,), (1398033491,), (1398033494,), (1398033530,), (1398033533,), (1398033534,), (1398033535,)) 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`=29213678 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','cartonnette','kraft','Carton_gris','plastique','mal_croppe','environnement','autre_refus','papier','flou','Carton_brun','Teint_Dans_La_Masse')) 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`=29213678 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('metal','cartonnette','kraft','Carton_gris','plastique','mal_croppe','environnement','autre_refus','papier','flou','Carton_brun','Teint_Dans_La_Masse')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 29213678, 'sub_port_id': 29213699, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19867870, 'last_updated_at': datetime.datetime(2025, 12, 5, 6, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 6, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 6, 3)}, 'environnement': {'main_port_id': 29213678, 'sub_port_id': 29213700, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19867871, 'last_updated_at': datetime.datetime(2025, 12, 5, 6, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 6, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 6, 3)}, 'plastique': {'main_port_id': 29213678, 'sub_port_id': 29213701, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19867872, 'last_updated_at': datetime.datetime(2025, 12, 5, 6, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 6, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 6, 3)}, 'Teint_Dans_La_Masse': {'main_port_id': 29213678, 'sub_port_id': 29213702, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19867873, 'last_updated_at': datetime.datetime(2025, 12, 5, 6, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 6, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 6, 3)}, 'mal_croppe': {'main_port_id': 29213678, 'sub_port_id': 29213703, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19867874, 'last_updated_at': datetime.datetime(2025, 12, 5, 6, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 6, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 6, 3)}, 'Carton_gris': {'main_port_id': 29213678, 'sub_port_id': 29213704, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19867875, 'last_updated_at': datetime.datetime(2025, 12, 5, 6, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 6, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 6, 3)}, 'flou': {'main_port_id': 29213678, 'sub_port_id': 29213705, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19867876, 'last_updated_at': datetime.datetime(2025, 12, 5, 6, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 6, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 6, 3)}, 'kraft': {'main_port_id': 29213678, 'sub_port_id': 29213706, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19867877, 'last_updated_at': datetime.datetime(2025, 12, 5, 6, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 6, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 6, 3)}, 'metal': {'main_port_id': 29213678, 'sub_port_id': 29213707, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19867878, 'last_updated_at': datetime.datetime(2025, 12, 5, 6, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 6, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 6, 3)}, 'autre_refus': {'main_port_id': 29213678, 'sub_port_id': 29213708, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19867879, 'last_updated_at': datetime.datetime(2025, 12, 5, 6, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 6, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 6, 3)}, 'papier': {'main_port_id': 29213678, 'sub_port_id': 29213709, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19867880, 'last_updated_at': datetime.datetime(2025, 12, 5, 6, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 6, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 6, 3)}, 'cartonnette': {'main_port_id': 29213678, 'sub_port_id': 29213710, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19867881, 'last_updated_at': datetime.datetime(2025, 12, 5, 6, 13, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 5, 6, 13, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 5, 6, 3)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29213699,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29213686 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29213700,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29213687 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29213701,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29213688 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29213702,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29213689 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29213703,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29213690 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29213704,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29213691 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29213705,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29213692 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29213706,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29213693 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29213707,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29213694 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29213708,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29213695 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29213709,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29213696 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29213710,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29213697 lien utilise dans velours : https://marlene.fotonower.com/velours/29213699,29213700,29213701,29213702,29213703,29213704,29213705,29213706,29213707,29213708,29213709,29213710?tags=Carton_brun,environnement,plastique,Teint_Dans_La_Masse,mal_croppe,Carton_gris,flou,kraft,metal,autre_refus,papier,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29213678]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1398033535, 1398033534, 1398033533, 1398033530, 1398033494, 1398033491, 1398033489, 1398033487, 1398033485] map_info['map_portfolio_photo'] : {29213678: [1398033535, 1398033534, 1398033533, 1398033530, 1398033494, 1398033491, 1398033489, 1398033487, 1398033485, 1398033467, 1398033464, 1398033461, 1398033459, 1398033457, 1398033456, 1398033278, 1398033239, 1398033205, 1398033049, 1398033010, 1398032955, 1398032365, 1398032297, 1398032234, 1398032165, 1398031535, 1398031068, 1398031046, 1398031044, 1398031042, 1398031040, 1398031033, 1398031031, 1398031029, 1398031027, 1398031025, 1398031023, 1398030830, 1398030828, 1398030826]} final : False mtd_id 4302 list_pids : [1398033535, 1398033534, 1398033533, 1398033530, 1398033494, 1398033491, 1398033489, 1398033487, 1398033485] Looping around the photos to save general results len do output : 1 /29213678. 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, '4189121') ('4302', '29213678', '1398033535', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033534', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033533', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033530', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033494', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033491', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033489', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033487', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033485', None, None, None, None, None, '4189121') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '29213678', "{'Carton_brun': 29213686, 'environnement': 29213687, 'plastique': 29213688, 'Teint_Dans_La_Masse': 29213689, 'mal_croppe': 29213690, 'Carton_gris': 29213691, 'flou': 29213692, 'kraft': 29213693, 'metal': 29213694, 'autre_refus': 29213695, 'papier': 29213696, 'cartonnette': 29213697}", None, None, None, None, '4189121'), ('4302', '29213678', '1398033535', None, None, None, None, None, '4189121'), ('4302', '29213678', '1398033534', None, None, None, None, None, '4189121'), ('4302', '29213678', '1398033533', None, None, None, None, None, '4189121'), ('4302', '29213678', '1398033530', None, None, None, None, None, '4189121'), ('4302', '29213678', '1398033494', None, None, None, None, None, '4189121'), ('4302', '29213678', '1398033491', None, None, None, None, None, '4189121'), ('4302', '29213678', '1398033489', None, None, None, None, None, '4189121'), ('4302', '29213678', '1398033487', None, None, None, None, None, '4189121'), ('4302', '29213678', '1398033485', None, None, None, None, None, '4189121')] time used for this insertion : 0.01481008529663086 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.7983777523040771 time spend to save output : 0.01509237289428711 total time spend for step 1 : 1.8134701251983643 step2:final Fri Dec 5 06:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29213678) 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 29213678 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1398030830,1398030828,1398030826,1398031033,1398031031,1398031029,1398031027,1398031025,1398031023,1398031046,1398031044,1398031042,1398031040,1398031068,1398032365,1398031535,1398032297,1398032234,1398032165,1398033049,1398033010,1398032955,1398033278,1398033239,1398033205,1398033467,1398033464,1398033461,1398033459,1398033457,1398033456,1398033494,1398033491,1398033489,1398033487,1398033485,1398033535,1398033534,1398033533,1398033530); 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([29213678]) Inside saveOutput : final : False verbose : True original output for save of step final : {1398033535: ('0.0442755869341299',), 1398033534: ('0.0442755869341299',), 1398033533: ('0.0442755869341299',), 1398033530: ('0.0442755869341299',), 1398033494: ('0.0442755869341299',), 1398033491: ('0.0442755869341299',), 1398033489: ('0.0442755869341299',), 1398033487: ('0.0442755869341299',), 1398033485: ('0.0442755869341299',)} new output for save of step final : {1398033535: ('0.0442755869341299',), 1398033534: ('0.0442755869341299',), 1398033533: ('0.0442755869341299',), 1398033530: ('0.0442755869341299',), 1398033494: ('0.0442755869341299',), 1398033491: ('0.0442755869341299',), 1398033489: ('0.0442755869341299',), 1398033487: ('0.0442755869341299',), 1398033485: ('0.0442755869341299',)} [1398033535, 1398033534, 1398033533, 1398033530, 1398033494, 1398033491, 1398033489, 1398033487, 1398033485] map_info['map_portfolio_photo'] : {29213678: [1398033535, 1398033534, 1398033533, 1398033530, 1398033494, 1398033491, 1398033489, 1398033487, 1398033485, 1398033467, 1398033464, 1398033461, 1398033459, 1398033457, 1398033456, 1398033278, 1398033239, 1398033205, 1398033049, 1398033010, 1398032955, 1398032365, 1398032297, 1398032234, 1398032165, 1398031535, 1398031068, 1398031046, 1398031044, 1398031042, 1398031040, 1398031033, 1398031031, 1398031029, 1398031027, 1398031025, 1398031023, 1398030830, 1398030828, 1398030826]} final : False mtd_id 4302 list_pids : [1398033535, 1398033534, 1398033533, 1398033530, 1398033494, 1398033491, 1398033489, 1398033487, 1398033485] Looping around the photos to save general results len do output : 9 /1398033535.Didn't retrieve data . /1398033534.Didn't retrieve data . /1398033533.Didn't retrieve data . /1398033530.Didn't retrieve data . /1398033494.Didn't retrieve data . /1398033491.Didn't retrieve data . /1398033489.Didn't retrieve data . /1398033487.Didn't retrieve data . /1398033485.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, '4189121') ('4302', '29213678', '1398033535', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033534', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033533', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033530', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033494', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033491', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033489', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033487', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033485', None, None, None, None, None, '4189121') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 27 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', '29213678', '1398033535', '0.0442755869341299', None, None, None, None, '4189121'), ('4302', '29213678', '1398033534', '0.0442755869341299', None, None, None, None, '4189121'), ('4302', '29213678', '1398033533', '0.0442755869341299', None, None, None, None, '4189121'), ('4302', '29213678', '1398033530', '0.0442755869341299', None, None, None, None, '4189121'), ('4302', '29213678', '1398033494', '0.0442755869341299', None, None, None, None, '4189121'), ('4302', '29213678', '1398033491', '0.0442755869341299', None, None, None, None, '4189121'), ('4302', '29213678', '1398033489', '0.0442755869341299', None, None, None, None, '4189121'), ('4302', '29213678', '1398033487', '0.0442755869341299', None, None, None, None, '4189121'), ('4302', '29213678', '1398033485', '0.0442755869341299', None, None, None, None, '4189121')] time used for this insertion : 0.013660430908203125 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07904815673828125 time spend to save output : 0.013978958129882812 total time spend for step 2 : 0.09302711486816406 step3:velours_tree Fri Dec 5 06:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29213678: [{'Carton_brun': 29213686, 'environnement': 29213687, 'plastique': 29213688, 'Teint_Dans_La_Masse': 29213689, 'mal_croppe': 29213690, 'Carton_gris': 29213691, 'flou': 29213692, 'kraft': 29213693, 'metal': 29213694, 'autre_refus': 29213695, 'papier': 29213696, 'cartonnette': 29213697}]} input_args_next_step : {29213678: ()} output_args : {29213678: [{'Carton_brun': 29213686, 'environnement': 29213687, 'plastique': 29213688, 'Teint_Dans_La_Masse': 29213689, 'mal_croppe': 29213690, 'Carton_gris': 29213691, 'flou': 29213692, 'kraft': 29213693, 'metal': 29213694, 'autre_refus': 29213695, 'papier': 29213696, 'cartonnette': 29213697}]} args : 29213678 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': 29213686, 'environnement': 29213687, 'plastique': 29213688, 'Teint_Dans_La_Masse': 29213689, 'mal_croppe': 29213690, 'Carton_gris': 29213691, 'flou': 29213692, 'kraft': 29213693, 'metal': 29213694, 'autre_refus': 29213695, 'papier': 29213696, 'cartonnette': 29213697},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29213678) 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([29213678]) 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.2667567729949951 time spend to save output : 0.0001633167266845703 total time spend for step 3 : 0.2669200897216797 step4:send_mail_cod Fri Dec 5 06:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1398033535: ('0.0442755869341299',), 1398033534: ('0.0442755869341299',), 1398033533: ('0.0442755869341299',), 1398033530: ('0.0442755869341299',), 1398033494: ('0.0442755869341299',), 1398033491: ('0.0442755869341299',), 1398033489: ('0.0442755869341299',), 1398033487: ('0.0442755869341299',), 1398033485: ('0.0442755869341299',)} input_args_next_step : {1398033535: ()} output_args : {1398033535: ('0.0442755869341299',), 1398033534: ('0.0442755869341299',), 1398033533: ('0.0442755869341299',), 1398033530: ('0.0442755869341299',), 1398033494: ('0.0442755869341299',), 1398033491: ('0.0442755869341299',), 1398033489: ('0.0442755869341299',), 1398033487: ('0.0442755869341299',), 1398033485: ('0.0442755869341299',)} args : 1398033535 depend.output_id : 0 input_args_next_step : {1398033535: ('0.0442755869341299',), 1398033534: ()} output_args : {1398033535: ('0.0442755869341299',), 1398033534: ('0.0442755869341299',), 1398033533: ('0.0442755869341299',), 1398033530: ('0.0442755869341299',), 1398033494: ('0.0442755869341299',), 1398033491: ('0.0442755869341299',), 1398033489: ('0.0442755869341299',), 1398033487: ('0.0442755869341299',), 1398033485: ('0.0442755869341299',)} args : 1398033534 depend.output_id : 0 input_args_next_step : {1398033535: ('0.0442755869341299',), 1398033534: ('0.0442755869341299',), 1398033533: ()} output_args : {1398033535: ('0.0442755869341299',), 1398033534: ('0.0442755869341299',), 1398033533: ('0.0442755869341299',), 1398033530: ('0.0442755869341299',), 1398033494: ('0.0442755869341299',), 1398033491: ('0.0442755869341299',), 1398033489: ('0.0442755869341299',), 1398033487: ('0.0442755869341299',), 1398033485: ('0.0442755869341299',)} args : 1398033533 depend.output_id : 0 input_args_next_step : {1398033535: ('0.0442755869341299',), 1398033534: ('0.0442755869341299',), 1398033533: ('0.0442755869341299',), 1398033530: ()} output_args : {1398033535: ('0.0442755869341299',), 1398033534: ('0.0442755869341299',), 1398033533: ('0.0442755869341299',), 1398033530: ('0.0442755869341299',), 1398033494: ('0.0442755869341299',), 1398033491: ('0.0442755869341299',), 1398033489: ('0.0442755869341299',), 1398033487: ('0.0442755869341299',), 1398033485: ('0.0442755869341299',)} args : 1398033530 depend.output_id : 0 input_args_next_step : {1398033535: ('0.0442755869341299',), 1398033534: ('0.0442755869341299',), 1398033533: ('0.0442755869341299',), 1398033530: ('0.0442755869341299',), 1398033494: ()} output_args : {1398033535: ('0.0442755869341299',), 1398033534: ('0.0442755869341299',), 1398033533: ('0.0442755869341299',), 1398033530: ('0.0442755869341299',), 1398033494: ('0.0442755869341299',), 1398033491: ('0.0442755869341299',), 1398033489: ('0.0442755869341299',), 1398033487: ('0.0442755869341299',), 1398033485: ('0.0442755869341299',)} args : 1398033494 depend.output_id : 0 input_args_next_step : {1398033535: ('0.0442755869341299',), 1398033534: ('0.0442755869341299',), 1398033533: ('0.0442755869341299',), 1398033530: ('0.0442755869341299',), 1398033494: ('0.0442755869341299',), 1398033491: ()} output_args : {1398033535: ('0.0442755869341299',), 1398033534: ('0.0442755869341299',), 1398033533: ('0.0442755869341299',), 1398033530: ('0.0442755869341299',), 1398033494: ('0.0442755869341299',), 1398033491: ('0.0442755869341299',), 1398033489: ('0.0442755869341299',), 1398033487: ('0.0442755869341299',), 1398033485: ('0.0442755869341299',)} args : 1398033491 depend.output_id : 0 input_args_next_step : {1398033535: ('0.0442755869341299',), 1398033534: ('0.0442755869341299',), 1398033533: ('0.0442755869341299',), 1398033530: ('0.0442755869341299',), 1398033494: ('0.0442755869341299',), 1398033491: ('0.0442755869341299',), 1398033489: ()} output_args : {1398033535: ('0.0442755869341299',), 1398033534: ('0.0442755869341299',), 1398033533: ('0.0442755869341299',), 1398033530: ('0.0442755869341299',), 1398033494: ('0.0442755869341299',), 1398033491: ('0.0442755869341299',), 1398033489: ('0.0442755869341299',), 1398033487: ('0.0442755869341299',), 1398033485: ('0.0442755869341299',)} args : 1398033489 depend.output_id : 0 input_args_next_step : {1398033535: ('0.0442755869341299',), 1398033534: ('0.0442755869341299',), 1398033533: ('0.0442755869341299',), 1398033530: ('0.0442755869341299',), 1398033494: ('0.0442755869341299',), 1398033491: ('0.0442755869341299',), 1398033489: ('0.0442755869341299',), 1398033487: ()} output_args : {1398033535: ('0.0442755869341299',), 1398033534: ('0.0442755869341299',), 1398033533: ('0.0442755869341299',), 1398033530: ('0.0442755869341299',), 1398033494: ('0.0442755869341299',), 1398033491: ('0.0442755869341299',), 1398033489: ('0.0442755869341299',), 1398033487: ('0.0442755869341299',), 1398033485: ('0.0442755869341299',)} args : 1398033487 depend.output_id : 0 input_args_next_step : {1398033535: ('0.0442755869341299',), 1398033534: ('0.0442755869341299',), 1398033533: ('0.0442755869341299',), 1398033530: ('0.0442755869341299',), 1398033494: ('0.0442755869341299',), 1398033491: ('0.0442755869341299',), 1398033489: ('0.0442755869341299',), 1398033487: ('0.0442755869341299',), 1398033485: ()} output_args : {1398033535: ('0.0442755869341299',), 1398033534: ('0.0442755869341299',), 1398033533: ('0.0442755869341299',), 1398033530: ('0.0442755869341299',), 1398033494: ('0.0442755869341299',), 1398033491: ('0.0442755869341299',), 1398033489: ('0.0442755869341299',), 1398033487: ('0.0442755869341299',), 1398033485: ('0.0442755869341299',)} args : 1398033485 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 : {29213678: [{'Carton_brun': 29213686, 'environnement': 29213687, 'plastique': 29213688, 'Teint_Dans_La_Masse': 29213689, 'mal_croppe': 29213690, 'Carton_gris': 29213691, 'flou': 29213692, 'kraft': 29213693, 'metal': 29213694, 'autre_refus': 29213695, 'papier': 29213696, 'cartonnette': 29213697}]} input_args_next_step : {1398033535: ('0.0442755869341299',), 1398033534: ('0.0442755869341299',), 1398033533: ('0.0442755869341299',), 1398033530: ('0.0442755869341299',), 1398033494: ('0.0442755869341299',), 1398033491: ('0.0442755869341299',), 1398033489: ('0.0442755869341299',), 1398033487: ('0.0442755869341299',), 1398033485: ('0.0442755869341299',), 29213678: ()} output_args : {29213678: [{'Carton_brun': 29213686, 'environnement': 29213687, 'plastique': 29213688, 'Teint_Dans_La_Masse': 29213689, 'mal_croppe': 29213690, 'Carton_gris': 29213691, 'flou': 29213692, 'kraft': 29213693, 'metal': 29213694, 'autre_refus': 29213695, 'papier': 29213696, 'cartonnette': 29213697}]} args : 29213678 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 :10, first value : ('0.0442755869341299',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29213678) 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_view ph WHERE photo_id IN (1398033535,1398033534,1398033533,1398033530,1398033494,1398033491,1398033489,1398033487,1398033485) Found this number of photos: 9 ##### Call download_photos : nb_thread : 5 begin to download photo : 1398033485 begin to download photo : 1398033489 begin to download photo : 1398033494 begin to download photo : 1398033533 begin to download photo : 1398033535 download finish for photo 1398033533 begin to download photo : 1398033534 download finish for photo 1398033485 begin to download photo : 1398033487 download finish for photo 1398033535 download finish for photo 1398033494 begin to download photo : 1398033530 download finish for photo 1398033489 begin to download photo : 1398033491 download finish for photo 1398033534 download finish for photo 1398033487 download finish for photo 1398033530 download finish for photo 1398033491 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 9 ; length of list_pids : 9 ; length of list_args : 9 results_Auto_P29213678_05-12-2025_06_15_00.pdf 29213688 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29213688 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398033472: '1764911466_449213_1398032297_2c85451538debe6819b7cd626d746bfb_rle_crop_4059984530_0.png', 1398033473: '1764911466_449213_1398032297_2c85451538debe6819b7cd626d746bfb_rle_crop_4059984527_0.png', 1398033550: '1764911585_456274_1398033010_0f42eded17e5d1e404848c811ba1c0f7_rle_crop_4059984929_0.png', 1398033559: '1764911607_458611_1398032297_2c85451538debe6819b7cd626d746bfb_rle_crop_4059984530_0.png', 1398033560: '1764911607_458611_1398032297_2c85451538debe6819b7cd626d746bfb_rle_crop_4059984527_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/5963fc8b7a2b3854141019210b265094_71510219.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/84e28978838601d5f3a21258849d5c39_23326136.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/3ee8a0fca6f05d0626dca082da81e034_6206198.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/5963fc8b7a2b3854141019210b265094_50424817.png change filename to text .imagette292136881764911700/ imagette292136881764911700/1764911607_458611_1398032297_2c85451538debe6819b7cd626d746bfb_rle_crop_4059984530_0.png.png imagette292136881764911700/1764911607_458611_1398032297_2c85451538debe6819b7cd626d746bfb_rle_crop_4059984527_0.png.png imagette292136881764911700/1764911466_449213_1398032297_2c85451538debe6819b7cd626d746bfb_rle_crop_4059984527_0.png.png imagette292136881764911700/1764911466_449213_1398032297_2c85451538debe6819b7cd626d746bfb_rle_crop_4059984530_0.png.png imagette292136881764911700/1764911585_456274_1398033010_0f42eded17e5d1e404848c811ba1c0f7_rle_crop_4059984929_0.png.png imagette292136901764911701/ imagette292136921764911701/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/84e28978838601d5f3a21258849d5c39_31851394.png imagette292136881764911700 29213690 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29213690 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292136901764911701 29213692 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29213692 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292136921764911701 29213693 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29213693 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398031894: '1764911187_435229_1398031027_7693fc70a524cc43b1fe944615982969_rle_crop_4059983908_0.png'} change filename to text .imagette292136931764911701/ imagette292136931764911701/1764911187_435229_1398031027_7693fc70a524cc43b1fe944615982969_rle_crop_4059983908_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/e5655ec0829e972e0308841b06cf12e7_47683868.png imagette292136931764911701 29213694 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29213694 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398033551: '1764911585_456274_1398033010_0f42eded17e5d1e404848c811ba1c0f7_rle_crop_4059984931_0.png'} change filename to text .imagette292136941764911701/ imagette292136941764911701/1764911585_456274_1398033010_0f42eded17e5d1e404848c811ba1c0f7_rle_crop_4059984931_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/90cfcec9582795a59092ffcc7771f39d_42756033.png imagette292136941764911701 29213695 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29213695 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398031885: '1764911187_435229_1398031046_3004fa1eab12a6ea2d023ca01356d56e_rle_crop_4059983873_0.png', 1398031886: '1764911187_435229_1398031023_52a1724006e48f709429e8dd7b872436_rle_crop_4059983936_0.png', 1398031904: '1764911226_436037_1398031044_fac0b5ec0d0e7f957f695333fc5e2ae8_rle_crop_4059984022_0.png', 1398033470: '1764911466_449213_1398032234_83b87ab978f1216e4b16fbbef4d777ac_rle_crop_4059984541_0.png', 1398033545: '1764911585_456274_1398033010_0f42eded17e5d1e404848c811ba1c0f7_rle_crop_4059984925_0.png', 1398033556: '1764911607_458611_1398033049_8e8e9c1870cf0195dda15ddd42c7caf2_rle_crop_4059985052_0.png', 1398033557: '1764911607_458611_1398032234_83b87ab978f1216e4b16fbbef4d777ac_rle_crop_4059984541_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/0e168322280526972117c41c47839f1f_10297944.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/e50792939d600cfc5ed25d1a8cceb2d1_28155920.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/80d7150ff4ac7bfb0f5222b03697346c_40985172.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/1995c90e43061bef9fb1163a2e0538e6_80428145.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/8fed544b2c14466a967afdda7fa93222_60838648.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/88c89ef6e593bdee54120a2548f32b0b_2260700.png change filename to text .imagette292136951764911701/ imagette292136951764911701/1764911187_435229_1398031046_3004fa1eab12a6ea2d023ca01356d56e_rle_crop_4059983873_0.png.png imagette292136951764911701/1764911607_458611_1398032234_83b87ab978f1216e4b16fbbef4d777ac_rle_crop_4059984541_0.png.png imagette292136951764911701/1764911466_449213_1398032234_83b87ab978f1216e4b16fbbef4d777ac_rle_crop_4059984541_0.png.png imagette292136951764911701/1764911226_436037_1398031044_fac0b5ec0d0e7f957f695333fc5e2ae8_rle_crop_4059984022_0.png.png imagette292136951764911701/1764911187_435229_1398031023_52a1724006e48f709429e8dd7b872436_rle_crop_4059983936_0.png.png imagette292136951764911701/1764911607_458611_1398033049_8e8e9c1870cf0195dda15ddd42c7caf2_rle_crop_4059985052_0.png.png imagette292136951764911701/1764911585_456274_1398033010_0f42eded17e5d1e404848c811ba1c0f7_rle_crop_4059984925_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/1995c90e43061bef9fb1163a2e0538e6_78109708.png imagette292136951764911701 29213697 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29213697 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398031229: '1764911106_429203_1398030830_3e800edcbf8a4c3bded1f90e8b82cadf_rle_crop_4059983601_0.png', 1398031890: '1764911187_435229_1398031025_0f1c83604fa7b8470b08430463071532_rle_crop_4059983920_0.png', 1398031891: '1764911187_435229_1398031023_52a1724006e48f709429e8dd7b872436_rle_crop_4059983940_0.png', 1398031940: '1764911244_436570_1398030830_3e800edcbf8a4c3bded1f90e8b82cadf_rle_crop_4059983601_0.png', 1398033548: '1764911585_456274_1398033278_2f8337a1ffad8aa1e5d83a3d4d5c60a8_rle_crop_4059984906_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/87ae9df121517aa4f924c4f535eb1fef_40757916.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/5da5b7e7d6684b5b0e2e3c36ebddb0ff_46329918.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/bed2084c5528b2f7a72bb54e481095b7_99284758.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/87ae9df121517aa4f924c4f535eb1fef_51752892.png change filename to text .imagette292136971764911701/ imagette292136971764911701/1764911106_429203_1398030830_3e800edcbf8a4c3bded1f90e8b82cadf_rle_crop_4059983601_0.png.png imagette292136971764911701/1764911187_435229_1398031023_52a1724006e48f709429e8dd7b872436_rle_crop_4059983940_0.png.png imagette292136971764911701/1764911187_435229_1398031025_0f1c83604fa7b8470b08430463071532_rle_crop_4059983920_0.png.png imagette292136971764911701/1764911244_436570_1398030830_3e800edcbf8a4c3bded1f90e8b82cadf_rle_crop_4059983601_0.png.png imagette292136971764911701/1764911585_456274_1398033278_2f8337a1ffad8aa1e5d83a3d4d5c60a8_rle_crop_4059984906_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/dabf12c0750140ae8c431d9ea73767dc_66412369.png imagette292136971764911701 29213686 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29213686 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398031892: '1764911187_435229_1398031029_d78c6dbed833ab3c4ed724c865e24f18_rle_crop_4059983891_0.png', 1398031893: '1764911187_435229_1398031027_7693fc70a524cc43b1fe944615982969_rle_crop_4059983907_0.png', 1398031907: '1764911226_436037_1398031042_24d5f4d55bd7cc5b682b9b30b6264c64_rle_crop_4059984032_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/680e691cfb648bcb2cfead90d479592a_64081702.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/78dd9c4ec75b24704a8d1f896f610216_41697887.png change filename to text .imagette292136861764911702/ imagette292136861764911702/1764911187_435229_1398031027_7693fc70a524cc43b1fe944615982969_rle_crop_4059983907_0.png.png imagette292136861764911702/1764911226_436037_1398031042_24d5f4d55bd7cc5b682b9b30b6264c64_rle_crop_4059984032_0.png.png imagette292136861764911702/1764911187_435229_1398031029_d78c6dbed833ab3c4ed724c865e24f18_rle_crop_4059983891_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/8ed652d3673fed259438cad4cc343ea4_90144359.png imagette292136861764911702 29213689 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29213689 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398031881: '1764911187_435229_1398031046_3004fa1eab12a6ea2d023ca01356d56e_rle_crop_4059983875_0.png', 1398031882: '1764911187_435229_1398031031_2702dc2b956afd774fc0429b49c57060_rle_crop_4059983882_0.png', 1398031883: '1764911187_435229_1398031023_52a1724006e48f709429e8dd7b872436_rle_crop_4059983945_0.png', 1398031884: '1764911187_435229_1398031023_52a1724006e48f709429e8dd7b872436_rle_crop_4059983946_0.png', 1398031902: '1764911226_436037_1398031044_fac0b5ec0d0e7f957f695333fc5e2ae8_rle_crop_4059984019_0.png', 1398033542: '1764911585_456274_1398033278_2f8337a1ffad8aa1e5d83a3d4d5c60a8_rle_crop_4059984911_0.png', 1398033543: '1764911585_456274_1398033278_2f8337a1ffad8aa1e5d83a3d4d5c60a8_rle_crop_4059984905_0.png', 1398033544: '1764911585_456274_1398032955_c0d5a63aa982d2feecea5562dfaa36e8_rle_crop_4059984951_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/bf50e95b3de453ef0101fe586579ec62_42922539.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/c5b4368b073c8dafa98a80e418ddb123_27592816.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/c265ec61d02be419df801ff561a93999_32050117.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/f4d0b82cf4f1cb476ef9b63321175a66_405998.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/297f2c96575b1a4c8dd76efdb62425b9_4029101.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/d21d196cc482e023e47338dcf80388c7_74388485.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/33d70455482e6580f73e3df0ddaa1490_91940064.png change filename to text .imagette292136891764911702/ imagette292136891764911702/1764911187_435229_1398031046_3004fa1eab12a6ea2d023ca01356d56e_rle_crop_4059983875_0.png.png imagette292136891764911702/1764911585_456274_1398033278_2f8337a1ffad8aa1e5d83a3d4d5c60a8_rle_crop_4059984905_0.png.png imagette292136891764911702/1764911585_456274_1398033278_2f8337a1ffad8aa1e5d83a3d4d5c60a8_rle_crop_4059984911_0.png.png imagette292136891764911702/1764911187_435229_1398031031_2702dc2b956afd774fc0429b49c57060_rle_crop_4059983882_0.png.png imagette292136891764911702/1764911187_435229_1398031023_52a1724006e48f709429e8dd7b872436_rle_crop_4059983945_0.png.png imagette292136891764911702/1764911585_456274_1398032955_c0d5a63aa982d2feecea5562dfaa36e8_rle_crop_4059984951_0.png.png imagette292136891764911702/1764911226_436037_1398031044_fac0b5ec0d0e7f957f695333fc5e2ae8_rle_crop_4059984019_0.png.png imagette292136891764911702/1764911187_435229_1398031023_52a1724006e48f709429e8dd7b872436_rle_crop_4059983946_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/6473737d22ef7b135a4d084466ceb27d_16721613.png imagette292136891764911702 29213691 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29213691 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398031887: '1764911187_435229_1398031029_d78c6dbed833ab3c4ed724c865e24f18_rle_crop_4059983892_0.png', 1398031888: '1764911187_435229_1398031029_d78c6dbed833ab3c4ed724c865e24f18_rle_crop_4059983890_0.png', 1398031889: '1764911187_435229_1398031027_7693fc70a524cc43b1fe944615982969_rle_crop_4059983906_0.png', 1398031906: '1764911226_436037_1398031044_fac0b5ec0d0e7f957f695333fc5e2ae8_rle_crop_4059984020_0.png', 1398033471: '1764911466_449213_1398032234_83b87ab978f1216e4b16fbbef4d777ac_rle_crop_4059984538_0.png', 1398033525: '1764911547_454611_1398033205_e60d44ea5683f5c7e4c28c1d53f46b26_rle_crop_4059984791_0.png', 1398033546: '1764911585_456274_1398033010_0f42eded17e5d1e404848c811ba1c0f7_rle_crop_4059984924_0.png', 1398033558: '1764911607_458611_1398032234_83b87ab978f1216e4b16fbbef4d777ac_rle_crop_4059984538_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/3211bf0ebd5c4ebec5103bcff3a3d9d4_33829431.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/36686a52e40c6a17807e0cf43abc82ce_63599389.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/c9a117b8ae521210066903c1f945b584_32810385.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/146b345281d554452091f8c8c1ca55ca_10416080.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/efa5f01fd709c8c3269b07b073a50699_25583091.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/a307ddaef5b0da736d1f5f85270443f1_26844183.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/7b21f4c340845fa2336377c5a57e1000_61066190.png change filename to text .imagette292136911764911703/ imagette292136911764911703/1764911187_435229_1398031029_d78c6dbed833ab3c4ed724c865e24f18_rle_crop_4059983892_0.png.png imagette292136911764911703/1764911187_435229_1398031029_d78c6dbed833ab3c4ed724c865e24f18_rle_crop_4059983890_0.png.png imagette292136911764911703/1764911607_458611_1398032234_83b87ab978f1216e4b16fbbef4d777ac_rle_crop_4059984538_0.png.png imagette292136911764911703/1764911547_454611_1398033205_e60d44ea5683f5c7e4c28c1d53f46b26_rle_crop_4059984791_0.png.png imagette292136911764911703/1764911187_435229_1398031027_7693fc70a524cc43b1fe944615982969_rle_crop_4059983906_0.png.png imagette292136911764911703/1764911466_449213_1398032234_83b87ab978f1216e4b16fbbef4d777ac_rle_crop_4059984538_0.png.png imagette292136911764911703/1764911585_456274_1398033010_0f42eded17e5d1e404848c811ba1c0f7_rle_crop_4059984924_0.png.png imagette292136911764911703/1764911226_436037_1398031044_fac0b5ec0d0e7f957f695333fc5e2ae8_rle_crop_4059984020_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/efa5f01fd709c8c3269b07b073a50699_82298757.png imagette292136911764911703 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29213678 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29213699,29213700,29213701,29213702,29213703,29213704,29213705,29213706,29213707,29213708,29213709,29213710?tags=Carton_brun,environnement,plastique,Teint_Dans_La_Masse,mal_croppe,Carton_gris,flou,kraft,metal,autre_refus,papier,cartonnette your option no_mail is active, we will not send the real mail to your client args[1398033535] : ('0.0442755869341299',) no score found for photo 1398033535 We are sending mail with results at report@fotonower.com args[1398033534] : ('0.0442755869341299',) no score found for photo 1398033534 We are sending mail with results at report@fotonower.com args[1398033533] : ('0.0442755869341299',) no score found for photo 1398033533 We are sending mail with results at report@fotonower.com args[1398033530] : ('0.0442755869341299',) no score found for photo 1398033530 We are sending mail with results at report@fotonower.com args[1398033494] : ('0.0442755869341299',) no score found for photo 1398033494 We are sending mail with results at report@fotonower.com args[1398033491] : ('0.0442755869341299',) no score found for photo 1398033491 We are sending mail with results at report@fotonower.com args[1398033489] : ('0.0442755869341299',) no score found for photo 1398033489 We are sending mail with results at report@fotonower.com args[1398033487] : ('0.0442755869341299',) no score found for photo 1398033487 We are sending mail with results at report@fotonower.com args[1398033485] : ('0.0442755869341299',) no score found for photo 1398033485 We are sending mail with results at report@fotonower.com refus_total : 0.0442755869341299 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29213678 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_P29213678_05-12-2025_06_15_00.pdf results_Auto_P29213678_05-12-2025_06_15_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29213678_05-12-2025_06_15_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29213678','results_Auto_P29213678_05-12-2025_06_15_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29213678_05-12-2025_06_15_00.pdf','pdf','','0.17','0.0442755869341299') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29213678]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1398033535, 1398033534, 1398033533, 1398033530, 1398033494, 1398033491, 1398033489, 1398033487, 1398033485] map_info['map_portfolio_photo'] : {29213678: [1398033535, 1398033534, 1398033533, 1398033530, 1398033494, 1398033491, 1398033489, 1398033487, 1398033485, 1398033467, 1398033464, 1398033461, 1398033459, 1398033457, 1398033456, 1398033278, 1398033239, 1398033205, 1398033049, 1398033010, 1398032955, 1398032365, 1398032297, 1398032234, 1398032165, 1398031535, 1398031068, 1398031046, 1398031044, 1398031042, 1398031040, 1398031033, 1398031031, 1398031029, 1398031027, 1398031025, 1398031023, 1398030830, 1398030828, 1398030826]} final : False mtd_id 4302 list_pids : [1398033535, 1398033534, 1398033533, 1398033530, 1398033494, 1398033491, 1398033489, 1398033487, 1398033485] 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, '4189121') ('4302', '29213678', '1398033535', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033534', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033533', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033530', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033494', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033491', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033489', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033487', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033485', None, None, None, None, None, '4189121') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 9 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', '29213678', '1398033535', None, None, None, None, None, '4189121'), ('4302', '29213678', '1398033534', None, None, None, None, None, '4189121'), ('4302', '29213678', '1398033533', None, None, None, None, None, '4189121'), ('4302', '29213678', '1398033530', None, None, None, None, None, '4189121'), ('4302', '29213678', '1398033494', None, None, None, None, None, '4189121'), ('4302', '29213678', '1398033491', None, None, None, None, None, '4189121'), ('4302', '29213678', '1398033489', None, None, None, None, None, '4189121'), ('4302', '29213678', '1398033487', None, None, None, None, None, '4189121'), ('4302', '29213678', '1398033485', None, None, None, None, None, '4189121')] time used for this insertion : 0.015566825866699219 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.410973310470581 time spend to save output : 0.015778064727783203 total time spend for step 4 : 4.426751375198364 step5:split_time_score Fri Dec 5 06:15:04 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 : ['29213678'] 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 : [('29213678',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29213678) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1398033535: {'path': 'temp/1764911700_3453466_1398033535_3efb29867bddcd405ed7515560738948.jpg', 'extension': 'jpg'}, 1398033533: {'path': 'temp/1764911700_3453466_1398033533_85ca041d8d0005672b1045ae6fbd3570.jpg', 'extension': 'jpg'}, 1398033534: {'path': 'temp/1764911700_3453466_1398033534_eb6502e8317e2ad4a1dee3e01f32e1ce.jpg', 'extension': 'jpg'}, 1398033485: {'path': 'temp/1764911700_3453466_1398033485_08299b9f3dd13f9f5d50c68ed7d3aceb.jpg', 'extension': 'jpg'}, 1398033487: {'path': 'temp/1764911700_3453466_1398033487_f16baa708cdfc80b6748d72be7dae11e.jpg', 'extension': 'jpg'}, 1398033494: {'path': 'temp/1764911700_3453466_1398033494_56d53c61fb43dfad530b7578b67d84d7.jpg', 'extension': 'jpg'}, 1398033530: {'path': 'temp/1764911700_3453466_1398033530_bbe37a8a4c6c223a67274ac9082937db.jpg', 'extension': 'jpg'}, 1398033489: {'path': 'temp/1764911700_3453466_1398033489_38c437d440dd07b336c20eab4c05f32f.jpg', 'extension': 'jpg'}, 1398033491: {'path': 'temp/1764911700_3453466_1398033491_8f3cffd558c31d3b98146a6b29ed1976.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 = 29213678; (('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_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29213678 group by h (('06', 40),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29213678 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 (29213678) 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 (29213678) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 05122025 29213678 Nombre de photos uploadées : 40 / 23040 (0%) 05122025 29213678 Nombre de photos taguées (types de déchets): 0 / 40 (0%) 05122025 29213678 Nombre de photos taguées (volume) : 0 / 40 (0%) [{'photo_id': 1398030830, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/3e800edcbf8a4c3bded1f90e8b82cadf.jpg', 'username': None, 'uploaded_at': 1764910867, 'text': 'image_05122025_06_00_14_010210m0.jpg 1e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1398030828, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/3afae18d2290d8a44e9a1c34ffe50f55.jpg', 'username': None, 'uploaded_at': 1764910867, 'text': 'image_05122025_06_00_25_010135m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1398030826, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/7ec48165ce27676ac110df896a6599f5.jpg', 'username': None, 'uploaded_at': 1764910867, 'text': 'image_05122025_06_00_45_010139m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1398031033, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/5/ca0056ea0372160ccb69356b67bda1fa.jpg', 'username': None, 'uploaded_at': 1764910927, 'text': 'image_05122025_06_00_55_010135m0.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 2.86102294921875e-06 elapsed_time : order_list_meta_photo_and_scores 7.152557373046875e-06 ???????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0019059181213378906 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29213678, '2025-12-05' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2697308,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.251786470413208 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= 2697308 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2697308, 'dashboard_run_id': 2705622, 'mtr_portfolio_id': 29203465, 'dashboard_result_id': 18102851, '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_P29203465_05-12-2025_00_20_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29203469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29203470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29203471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29203472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29203473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29203474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29203475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29203476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29203477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29203478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29203479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29203480, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2705622, 'mtr_portfolio_id': 29204100, 'dashboard_result_id': 18102852, '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_P29204100_05-12-2025_00_34_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29204126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29204127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29204128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29204129, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29204130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29204131, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29204132, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29204133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29204134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29204135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29204136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29204137, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2705622, 'mtr_portfolio_id': 29204816, 'dashboard_result_id': 18102853, '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_P29204816_05-12-2025_00_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29204838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29204839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29204840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29204841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29204842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29204843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29204844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29204845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29204846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29204847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29204848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29204849, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2705622, 'mtr_portfolio_id': 29205333, 'dashboard_result_id': 18102854, '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_P29205333_05-12-2025_01_37_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29205382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29205384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29205385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29205386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29205387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29205388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29205389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29205390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29205391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29205392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29205393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29205394, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2705622, 'mtr_portfolio_id': 29206956, 'dashboard_result_id': 18102855, '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_P29206956_05-12-2025_01_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29206958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29206959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29206960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29206961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29206962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29206963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29206964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29206965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29206966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29206967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29206968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29206969, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2705622, 'mtr_portfolio_id': 29207334, 'dashboard_result_id': 18102856, '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_P29207334_05-12-2025_02_19_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29207339, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29207340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29207341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29207342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29207343, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29207344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29207345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29207346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29207347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29207348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29207349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29207350, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2705622, 'mtr_portfolio_id': 29208070, 'dashboard_result_id': 18102857, '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_P29208070_05-12-2025_02_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29208072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29208073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29208074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29208075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29208076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29208077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29208078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29208079, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29208080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29208081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29208082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29208083, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2705622, 'mtr_portfolio_id': 29208366, 'dashboard_result_id': 18102858, '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_P29208366_05-12-2025_02_46_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29208406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29208407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29208408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29208409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29208410, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29208411, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29208412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29208413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29208414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29208415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29208416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29208417, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2705622, 'mtr_portfolio_id': 29208840, 'dashboard_result_id': 18102859, '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_P29208840_05-12-2025_03_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29208844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29208845, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29208846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29208847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29208848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29208849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29208850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29208851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29208852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29208853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29208854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29208855, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2705622, 'mtr_portfolio_id': 29209184, 'dashboard_result_id': 18102860, '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_P29209184_05-12-2025_03_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29209202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29209203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29209204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29209205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29209206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29209207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29209208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29209209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29209210, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29209211, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29209212, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29209213, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2705622, 'mtr_portfolio_id': 29209764, 'dashboard_result_id': 18102861, '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_P29209764_05-12-2025_03_33_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29209768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29209769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29209770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29209771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29209772, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29209773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29209774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29209775, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29209776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29209777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29209778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29209779, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2705622, 'mtr_portfolio_id': 29210458, 'dashboard_result_id': 18102862, '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_P29210458_05-12-2025_03_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29210462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29210463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29210464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29210465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29210466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29210467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29210468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29210469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29210470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29210471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29210472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29210473, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2705622, 'mtr_portfolio_id': 29210916, 'dashboard_result_id': 18102863, '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_P29210916_05-12-2025_04_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29210942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29210943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29210944, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29210945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29210946, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29210947, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29210948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29210949, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29210950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29210951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29210952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29210953, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2705622, 'mtr_portfolio_id': 29211325, 'dashboard_result_id': 18102864, '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_P29211325_05-12-2025_04_43_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29211359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29211360, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29211361, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29211362, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29211363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29211364, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29211365, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29211366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29211367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29211368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29211369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29211370, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2705622, 'mtr_portfolio_id': 29212030, 'dashboard_result_id': 18102865, '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_P29212030_05-12-2025_05_18_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29212036, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29212037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29212038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29212039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29212040, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29212041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29212042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29212043, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29212044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29212045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29212046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29212047, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2705622, 'mtr_portfolio_id': 29212489, 'dashboard_result_id': 18102866, '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_P29212489_05-12-2025_05_35_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29212495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29212496, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29212497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29212498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29212499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29212500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29212501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29212502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29212503, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29212504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29212505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29212506, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2705622, 'mtr_portfolio_id': 29212842, 'dashboard_result_id': 18102867, '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_P29212842_05-12-2025_05_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29212850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29212851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29212852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29212853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29212854, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29212855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29212856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29212857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29212858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29212859, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29212860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29212861, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2705622, 'mtr_portfolio_id': 29213320, 'dashboard_result_id': 18102868, '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_P29213320_05-12-2025_06_03_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29213329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29213330, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29213331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29213332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29213333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29213334, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29213335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29213336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29213337, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29213338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29213339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29213340, 'pht': 3726}}"}, {'dashboat_entry_day': 2697308, 'dashboard_run_id': 2705622, 'mtr_portfolio_id': 29213678, 'dashboard_result_id': 18102869, '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_P29213678_05-12-2025_06_10_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29213686, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29213687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29213688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29213689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29213690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29213691, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29213692, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29213693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29213694, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29213695, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29213696, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29213697, '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 = 29203465 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': 4187741, 'mtr_portfolio_id': 29203465, 'created_at': datetime.datetime(2025, 12, 5, 0, 20, 58), 'result': '0.04651784933153334', 'result_long': None, 'result_double': None}] Qualite : 0.04651784933153334 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29203465 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29203465_05-12-2025_00_20_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29203465 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_P29203465_05-12-2025_00_20_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29203469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29203470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29203471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29203472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29203473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29203474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29203475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29203476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29203477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29203478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29203479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29203480, 'pht': 3726}}" where mtr_portfolio_id = 29203465 and dashboard_run_id = 2705622 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`=29203465 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18102851, 0.04651784933153334, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29203465_05-12-2025_00_20_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29203469, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29203470, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29203471, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29203472, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29203473, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29203474, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29203475, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29203476, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29203477, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29203478, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29203479, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29203480, '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 = 29204100 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': 4187807, 'mtr_portfolio_id': 29204100, 'created_at': datetime.datetime(2025, 12, 5, 0, 34, 30), 'result': '0.05793572545112421', 'result_long': None, 'result_double': None}] Qualite : 0.05793572545112421 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29204100 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29204100_05-12-2025_00_34_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29204100 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_P29204100_05-12-2025_00_34_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29204126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29204127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29204128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29204129, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29204130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29204131, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29204132, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29204133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29204134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29204135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29204136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29204137, 'pht': 3726}}" where mtr_portfolio_id = 29204100 and dashboard_run_id = 2705622 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`=29204100 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18102852, 0.05793572545112421, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29204100_05-12-2025_00_34_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29204126, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29204127, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29204128, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29204129, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29204130, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29204131, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29204132, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29204133, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29204134, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29204135, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29204136, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29204137, '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 = 29204816 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': 4187857, 'mtr_portfolio_id': 29204816, 'created_at': datetime.datetime(2025, 12, 5, 0, 48, 57), 'result': '0.06523619095960073', 'result_long': None, 'result_double': None}] Qualite : 0.06523619095960073 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29204816 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29204816_05-12-2025_00_48_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29204816 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_P29204816_05-12-2025_00_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29204838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29204839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29204840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29204841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29204842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29204843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29204844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29204845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29204846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29204847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29204848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29204849, 'pht': 3726}}" where mtr_portfolio_id = 29204816 and dashboard_run_id = 2705622 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`=29204816 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18102853, 0.06523619095960073, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29204816_05-12-2025_00_48_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29204838, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29204839, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29204840, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29204841, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29204842, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29204843, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29204844, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29204845, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29204846, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29204847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29204848, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29204849, '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 = 29205333 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': 4187927, 'mtr_portfolio_id': 29205333, 'created_at': datetime.datetime(2025, 12, 5, 1, 37, 30), 'result': '0.035921190619032206', 'result_long': None, 'result_double': None}] Qualite : 0.035921190619032206 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29205333 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29205333_05-12-2025_01_37_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29205333 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_P29205333_05-12-2025_01_37_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29205382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29205384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29205385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29205386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29205387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29205388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29205389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29205390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29205391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29205392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29205393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29205394, 'pht': 3726}}" where mtr_portfolio_id = 29205333 and dashboard_run_id = 2705622 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`=29205333 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18102854, 0.035921190619032206, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29205333_05-12-2025_01_37_31.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29205382, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29205384, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29205385, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29205386, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29205387, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29205388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29205389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29205390, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29205391, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29205392, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29205393, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29205394, '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 = 29206956 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': 4188049, 'mtr_portfolio_id': 29206956, 'created_at': datetime.datetime(2025, 12, 5, 1, 46, 59), 'result': '0.04861845343586731', 'result_long': None, 'result_double': None}] Qualite : 0.04861845343586731 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29206956 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29206956_05-12-2025_01_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29206956 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_P29206956_05-12-2025_01_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29206958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29206959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29206960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29206961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29206962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29206963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29206964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29206965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29206966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29206967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29206968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29206969, 'pht': 3726}}" where mtr_portfolio_id = 29206956 and dashboard_run_id = 2705622 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`=29206956 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18102855, 0.04861845343586731, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29206956_05-12-2025_01_47_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29206958, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29206959, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29206960, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29206961, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29206962, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29206963, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29206964, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29206965, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29206966, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29206967, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29206968, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29206969, '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 = 29207334 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': 4188077, 'mtr_portfolio_id': 29207334, 'created_at': datetime.datetime(2025, 12, 5, 2, 18, 59), 'result': '0.06305644086646897', 'result_long': None, 'result_double': None}] Qualite : 0.06305644086646897 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29207334 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29207334_05-12-2025_02_19_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29207334 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_P29207334_05-12-2025_02_19_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29207339, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29207340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29207341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29207342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29207343, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29207344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29207345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29207346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29207347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29207348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29207349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29207350, 'pht': 3726}}" where mtr_portfolio_id = 29207334 and dashboard_run_id = 2705622 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`=29207334 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18102856, 0.06305644086646897, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29207334_05-12-2025_02_19_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29207339, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29207340, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29207341, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29207342, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29207343, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29207344, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29207345, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29207346, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29207347, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29207348, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29207349, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29207350, '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 = 29208070 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': 4188167, 'mtr_portfolio_id': 29208070, 'created_at': datetime.datetime(2025, 12, 5, 2, 32, 59), 'result': '0.043778303067274364', 'result_long': None, 'result_double': None}] Qualite : 0.043778303067274364 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29208070 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29208070_05-12-2025_02_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29208070 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_P29208070_05-12-2025_02_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29208072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29208073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29208074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29208075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29208076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29208077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29208078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29208079, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29208080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29208081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29208082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29208083, 'pht': 3726}}" where mtr_portfolio_id = 29208070 and dashboard_run_id = 2705622 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`=29208070 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18102857, 0.043778303067274364, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29208070_05-12-2025_02_33_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29208072, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29208073, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29208074, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29208075, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29208076, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29208077, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29208078, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29208079, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29208080, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29208081, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29208082, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29208083, '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 = 29208366 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': 4188201, 'mtr_portfolio_id': 29208366, 'created_at': datetime.datetime(2025, 12, 5, 2, 46, 30), 'result': '0.059706277655994976', 'result_long': None, 'result_double': None}] Qualite : 0.059706277655994976 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29208366 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29208366_05-12-2025_02_46_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29208366 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_P29208366_05-12-2025_02_46_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29208406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29208407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29208408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29208409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29208410, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29208411, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29208412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29208413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29208414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29208415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29208416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29208417, 'pht': 3726}}" where mtr_portfolio_id = 29208366 and dashboard_run_id = 2705622 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`=29208366 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18102858, 0.059706277655994976, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29208366_05-12-2025_02_46_31.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29208406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29208407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29208408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29208409, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29208410, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29208411, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29208412, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29208413, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29208414, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29208415, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29208416, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29208417, '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 = 29208840 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': 4188260, 'mtr_portfolio_id': 29208840, 'created_at': datetime.datetime(2025, 12, 5, 3, 2, 58), 'result': '0.05194858121456301', 'result_long': None, 'result_double': None}] Qualite : 0.05194858121456301 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29208840 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29208840_05-12-2025_03_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29208840 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_P29208840_05-12-2025_03_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29208844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29208845, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29208846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29208847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29208848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29208849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29208850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29208851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29208852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29208853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29208854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29208855, 'pht': 3726}}" where mtr_portfolio_id = 29208840 and dashboard_run_id = 2705622 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`=29208840 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18102859, 0.05194858121456301, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29208840_05-12-2025_03_02_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29208844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29208845, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29208846, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29208847, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29208848, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29208849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29208850, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29208851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29208852, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29208853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29208854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29208855, '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 = 29209184 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': 4188340, 'mtr_portfolio_id': 29209184, 'created_at': datetime.datetime(2025, 12, 5, 3, 16, 57), 'result': '0.057964945585717076', 'result_long': None, 'result_double': None}] Qualite : 0.057964945585717076 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29209184 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29209184_05-12-2025_03_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29209184 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_P29209184_05-12-2025_03_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29209202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29209203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29209204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29209205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29209206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29209207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29209208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29209209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29209210, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29209211, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29209212, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29209213, 'pht': 3726}}" where mtr_portfolio_id = 29209184 and dashboard_run_id = 2705622 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`=29209184 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18102860, 0.057964945585717076, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29209184_05-12-2025_03_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29209202, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29209203, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29209204, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29209205, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29209206, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29209207, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29209208, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29209209, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29209210, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29209211, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29209212, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29209213, '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 = 29209764 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': 4188419, 'mtr_portfolio_id': 29209764, 'created_at': datetime.datetime(2025, 12, 5, 3, 33, 28), 'result': '0.05321275219122587', 'result_long': None, 'result_double': None}] Qualite : 0.05321275219122587 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29209764 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29209764_05-12-2025_03_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29209764 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_P29209764_05-12-2025_03_33_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29209768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29209769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29209770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29209771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29209772, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29209773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29209774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29209775, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29209776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29209777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29209778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29209779, 'pht': 3726}}" where mtr_portfolio_id = 29209764 and dashboard_run_id = 2705622 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`=29209764 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18102861, 0.05321275219122587, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29209764_05-12-2025_03_33_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29209768, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29209769, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29209770, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29209771, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29209772, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29209773, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29209774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29209775, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29209776, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29209777, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29209778, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29209779, '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 = 29210458 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': 4188476, 'mtr_portfolio_id': 29210458, 'created_at': datetime.datetime(2025, 12, 5, 3, 46, 59), 'result': '0.07826168449815524', 'result_long': None, 'result_double': None}] Qualite : 0.07826168449815524 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29210458 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29210458_05-12-2025_03_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29210458 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_P29210458_05-12-2025_03_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29210462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29210463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29210464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29210465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29210466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29210467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29210468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29210469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29210470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29210471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29210472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29210473, 'pht': 3726}}" where mtr_portfolio_id = 29210458 and dashboard_run_id = 2705622 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`=29210458 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18102862, 0.07826168449815524, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29210458_05-12-2025_03_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29210462, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29210463, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29210464, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29210465, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29210466, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29210467, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29210468, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29210469, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29210470, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29210471, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29210472, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29210473, '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 = 29210916 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': 4188539, 'mtr_portfolio_id': 29210916, 'created_at': datetime.datetime(2025, 12, 5, 4, 2, 59), 'result': '0.03610853660706231', 'result_long': None, 'result_double': None}] Qualite : 0.03610853660706231 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29210916 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29210916_05-12-2025_04_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29210916 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_P29210916_05-12-2025_04_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29210942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29210943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29210944, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29210945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29210946, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29210947, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29210948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29210949, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29210950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29210951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29210952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29210953, 'pht': 3726}}" where mtr_portfolio_id = 29210916 and dashboard_run_id = 2705622 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`=29210916 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18102863, 0.03610853660706231, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29210916_05-12-2025_04_03_00.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29210942, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29210943, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29210944, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29210945, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29210946, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29210947, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29210948, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29210949, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29210950, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29210951, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29210952, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29210953, '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 = 29211325 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': 4188604, 'mtr_portfolio_id': 29211325, 'created_at': datetime.datetime(2025, 12, 5, 4, 43), 'result': '0.04253796027110565', 'result_long': None, 'result_double': None}] Qualite : 0.04253796027110565 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29211325 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29211325_05-12-2025_04_43_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29211325 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_P29211325_05-12-2025_04_43_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29211359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29211360, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29211361, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29211362, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29211363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29211364, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29211365, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29211366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29211367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29211368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29211369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29211370, 'pht': 3726}}" where mtr_portfolio_id = 29211325 and dashboard_run_id = 2705622 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`=29211325 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18102864, 0.04253796027110565, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29211325_05-12-2025_04_43_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29211359, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29211360, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29211361, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29211362, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29211363, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29211364, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29211365, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29211366, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29211367, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29211368, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29211369, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29211370, '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 = 29212030 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': 4188743, 'mtr_portfolio_id': 29212030, 'created_at': datetime.datetime(2025, 12, 5, 5, 18, 58), 'result': '0.03476156986045352', 'result_long': None, 'result_double': None}] Qualite : 0.03476156986045352 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29212030 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29212030_05-12-2025_05_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29212030 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_P29212030_05-12-2025_05_18_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29212036, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29212037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29212038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29212039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29212040, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29212041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29212042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29212043, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29212044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29212045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29212046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29212047, 'pht': 3726}}" where mtr_portfolio_id = 29212030 and dashboard_run_id = 2705622 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`=29212030 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18102865, 0.03476156986045352, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29212030_05-12-2025_05_18_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29212036, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29212037, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29212038, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29212039, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29212040, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29212041, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29212042, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29212043, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29212044, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29212045, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29212046, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29212047, '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 = 29212489 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': 4188780, 'mtr_portfolio_id': 29212489, 'created_at': datetime.datetime(2025, 12, 5, 5, 35, 29), 'result': '0.05805016218786494', 'result_long': None, 'result_double': None}] Qualite : 0.05805016218786494 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29212489 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29212489_05-12-2025_05_35_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29212489 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_P29212489_05-12-2025_05_35_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29212495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29212496, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29212497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29212498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29212499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29212500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29212501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29212502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29212503, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29212504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29212505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29212506, 'pht': 3726}}" where mtr_portfolio_id = 29212489 and dashboard_run_id = 2705620 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`=29212489 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18102866, 0.05805016218786494, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29212489_05-12-2025_05_35_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29212495, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29212496, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29212497, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29212498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29212499, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29212500, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29212501, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29212502, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29212503, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29212504, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29212505, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29212506, '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 = 29212842 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': 4188845, 'mtr_portfolio_id': 29212842, 'created_at': datetime.datetime(2025, 12, 5, 5, 48, 59), 'result': '0.05904687917559597', 'result_long': None, 'result_double': None}] Qualite : 0.05904687917559597 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29212842 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29212842_05-12-2025_05_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29212842 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_P29212842_05-12-2025_05_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29212850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29212851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29212852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29212853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29212854, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29212855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29212856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29212857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29212858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29212859, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29212860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29212861, 'pht': 3726}}" where mtr_portfolio_id = 29212842 and dashboard_run_id = 2705620 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`=29212842 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18102867, 0.05904687917559597, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29212842_05-12-2025_05_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29212850, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29212851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29212852, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29212853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29212854, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29212855, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29212856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29212857, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29212858, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29212859, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29212860, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29212861, '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 = 29213320 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': 4189058, 'mtr_portfolio_id': 29213320, 'created_at': datetime.datetime(2025, 12, 5, 6, 3, 31), 'result': '0.04508121367357087', 'result_long': None, 'result_double': None}] Qualite : 0.04508121367357087 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29213320 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29213320_05-12-2025_06_03_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29213320 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_P29213320_05-12-2025_06_03_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29213329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29213330, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29213331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29213332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29213333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29213334, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29213335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29213336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29213337, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29213338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29213339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29213340, 'pht': 3726}}" where mtr_portfolio_id = 29213320 and dashboard_run_id = 2705620 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`=29213320 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18102868, 0.04508121367357087, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29213320_05-12-2025_06_03_32.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29213329, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29213330, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29213331, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29213332, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29213333, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29213334, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29213335, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29213336, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29213337, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29213338, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29213339, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29213340, '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 = 29213678 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': 4189121, 'mtr_portfolio_id': 29213678, 'created_at': datetime.datetime(2025, 12, 5, 6, 15), 'result': '0.0442755869341299', 'result_long': None, 'result_double': None}] Qualite : 0.0442755869341299 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29213678 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29213678_05-12-2025_06_15_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29213678 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_P29213678_05-12-2025_06_15_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29213686, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29213687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29213688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29213689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29213690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29213691, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29213692, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29213693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29213694, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29213695, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29213696, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29213697, 'pht': 3726}}" where mtr_portfolio_id = 29213678 and dashboard_run_id = 2705620 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`=29213678 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18102869, 0.0442755869341299, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29213678_05-12-2025_06_15_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29213686, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29213687, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29213688, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29213689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29213690, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29213691, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29213692, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29213693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29213694, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29213695, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29213696, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29213697, '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 (29203465,29204100,29204816,29205333,29206956,29207334,29208070,29208366,29208840,29209184,29209764,29210458,29210916,29211325,29212030,29212489,29212842,29213320,29213678) result : ((1397959937,), (1397959974,), (1397960021,), (1397960092,), (1397960481,), (1397960521,), (1397960553,), (1397960586,), (1397961101,), (1397961167,), (1397961232,), (1397962113,), (1397962192,), (1397962286,), (1397962376,), (1397962475,), (1397963967,), (1397964076,), (1397964165,), (1397964258,), (1397964358,), (1397964394,), (1397964744,), (1397964772,), (1397964812,), (1397964911,), (1397965998,), (1397966063,), (1397966185,), (1397966241,), (1397966925,), (1397966997,), (1397967080,), (1397967152,), (1397967591,), (1397967627,), (1397967667,), (1397967701,), (1397967707,), (1397967711,), (1397967726,), (1397967764,), (1397967950,), (1397967985,), (1397968021,), (1397968057,), (1397968512,), (1397968551,), (1397968590,), (1397969197,), (1397969245,), (1397969714,), (1397969748,), (1397970267,), (1397970299,), (1397970332,), (1397970910,), (1397970769,), (1397970805,), (1397970839,), (1397970875,), (1397971205,), (1397971206,), (1397971207,), (1397971282,), (1397971370,), (1397971408,), (1397971730,), (1397971776,), (1397971886,), (1397972014,), (1397972851,), (1397972853,), (1397972855,), (1397972857,), (1397972860,), (1397972861,), (1397973076,), (1397973078,), (1397973177,), (1397973179,), (1397973184,), (1397973288,), (1397973336,), (1397973357,), (1397973445,), (1397973531,), (1397973629,), (1397973718,), (1397973811,), (1397973900,), (1397974284,), (1397974319,), (1397974652,), (1397974654,), (1397974656,), (1397974658,), (1397975085,), (1397975094,), (1397975117,), (1397975118,), (1397975156,), (1397975158,), (1397975169,), (1397975171,), (1397975173,), (1397975269,), (1397975304,), (1397975311,), (1397975312,), (1397975343,), (1397975358,), (1397975552,), (1397975556,), (1397975558,), (1397975560,), (1397975563,), (1397975727,), (1397975730,), (1397975731,), (1397975732,), (1397975876,), (1397975904,), (1397975917,), (1397975920,), (1397975944,), (1397975950,), (1397975954,), (1397975955,), (1397975959,), (1397975965,), (1397977062,), (1397977576,), (1397977577,), (1397977578,), (1397977644,), (1397977676,), (1397977678,), (1397977881,), (1397977882,), (1397977042,), (1397977044,), (1397977046,), (1397977048,), (1397977049,), (1397977157,), (1397977177,), (1397977207,), (1397977311,), (1397977453,), (1397977557,), (1397977759,), (1397977760,), (1397977762,), (1397977763,), (1397977770,), (1397977772,), (1397977774,), (1397977775,), (1397977812,), (1397977815,), (1397978023,), (1397978061,), (1397978096,), (1397978133,), (1397978293,), (1397978298,), (1397978304,), (1397978332,), (1397978337,), (1397978370,), (1397978373,), (1397978375,), (1397978377,), (1397978379,), (1397978388,), (1397978390,), (1397978391,), (1397978392,), (1397978394,), (1397978396,), (1397978410,), (1397978412,), (1397978414,), (1397978416,), (1397978419,), (1397978422,), (1397978650,), (1397978709,), (1397978748,), (1397978763,), (1397978766,), (1397978771,), (1397978837,), (1397978838,), (1397978839,), (1397978847,), (1397978909,), (1397978927,), (1397978963,), (1397978986,), (1397979067,), (1397979167,), (1397979882,), (1397979991,), (1397980105,), (1397980152,), (1397980399,), (1397980401,), (1397980442,), (1397980898,), (1397980899,), (1397980900,), (1397980964,), (1397981145,), (1397981151,), (1397981166,), (1397981211,), (1397981213,), (1397981215,), (1397981217,), (1397981221,), (1397981224,), (1397981261,), (1397981253,), (1397981255,), (1397981257,), (1397981259,), (1397981272,), (1397981273,), (1397981274,), (1397981275,), (1397981496,), (1397981506,), (1397981542,), (1397981549,), (1397981562,), (1397981873,), (1397981885,), (1397981888,), (1397981890,), (1397981893,), (1397981895,), (1397982599,), (1397982712,), (1397982811,), (1397982950,), (1397983056,), (1397983072,), (1397983168,), (1397983204,), (1397983238,), (1397983271,), (1397983303,), (1397983314,), (1397983381,), (1397983395,), (1397983416,), (1397983601,), (1397983744,), (1397983824,), (1397983880,), (1397983889,), (1397983980,), (1397983982,), (1397983985,), (1397984007,), (1397984412,), (1397984413,), (1397984505,), (1397984689,), (1397984966,), (1397985004,), (1397985040,), (1397985077,), (1397985117,), (1397985143,), (1397985145,), (1397985247,), (1397985249,), (1397985263,), (1397985266,), (1397985268,), (1397985271,), (1397995711,), (1397994026,), (1397995481,), (1397995607,), (1397997021,), (1397997055,), (1397997171,), (1397997207,), (1397997458,), (1397997506,), (1397997519,), (1397997521,), (1397997575,), (1397997577,), (1397997579,), (1397997581,), (1397997583,), (1397997600,), (1397997601,), (1397997602,), (1397997604,), (1397997606,), (1397997609,), (1397997618,), (1397997619,), (1397997621,), (1397997624,), (1397997636,), (1397997893,), (1397997924,), (1397997955,), (1397998338,), (1397998369,), (1397998396,), (1397998428,), (1397998461,), (1397998613,), (1397998614,), (1397998616,), (1397998618,), (1397998620,), (1397999140,), (1397999257,), (1397999392,), (1398000453,), (1398000383,), (1398001243,), (1398001374,), (1398001428,), (1398001466,), (1398001504,), (1398001542,), (1398001919,), (1398001921,), (1398001922,), (1398001923,), (1398001925,), (1398001927,), (1398002172,), (1398002196,), (1398002215,), (1398002219,), (1398002249,), (1398002263,), (1398002280,), (1398002282,), (1398002284,), (1398002286,), (1398002289,), (1398002291,), (1398002295,), (1398002297,), (1398002298,), (1398002300,), (1398002302,), (1398002304,), (1398002309,), (1398002312,), (1398002315,), (1398002320,), (1398002324,), (1398002327,), (1398002334,), (1398002335,), (1398002337,), (1398002339,), (1398002342,), (1398002352,), (1398002354,), (1398002356,), (1398002390,), (1398002391,), (1398002393,), (1398002395,), (1398002398,), (1398002406,), (1398002407,), (1398002409,), (1398002411,), (1398002447,), (1398002448,), (1398002449,), (1398002462,), (1398002912,), (1398002908,), (1398002910,), (1398002911,), (1398002926,), (1398002928,), (1398002947,), (1398002948,), (1398002963,), (1398002964,), (1398002979,), (1398002980,), (1398003849,), (1398003867,), (1398003868,), (1398003895,), (1398003928,), (1398005177,), (1398005212,), (1398005247,), (1398005348,), (1398005390,), (1398005421,), (1398005454,), (1398005489,), (1398005665,), (1398005673,), (1398005675,), (1398005679,), (1398005785,), (1398005787,), (1398005789,), (1398005803,), (1398005804,), (1398005805,), (1398005806,), (1398005832,), (1398005833,), (1398005834,), (1398005836,), (1398005839,), (1398005841,), (1398005849,), (1398005851,), (1398005853,), (1398005868,), (1398005855,), (1398005857,), (1398005859,), (1398005862,), (1398005865,), (1398005884,), (1398005886,), (1398005887,), (1398005888,), (1398005891,), (1398005904,), (1398005905,), (1398005906,), (1398005931,), (1398005932,), (1398005934,), (1398005936,), (1398005939,), (1398005942,), (1398005950,), (1398005952,), (1398005954,), (1398005956,), (1398005959,), (1398005961,), (1398005980,), (1398005981,), (1398005982,), (1398005983,), (1398005996,), (1398005997,), (1398005999,), (1398006001,), (1398006005,), (1398006036,), (1398006038,), (1398006039,), (1398006040,), (1398006042,), (1398006044,), (1398006059,), (1398006061,), (1398006062,), (1398006064,), (1398006066,), (1398006068,), (1398006086,), (1398006088,), (1398006091,), (1398006094,), (1398006097,), (1398006100,), (1398006103,), (1398006104,), (1398006105,), (1398006107,), (1398006108,), (1398006109,), (1398006113,), (1398006115,), (1398006117,), (1398006119,), (1398006128,), (1398006134,), (1398006139,), (1398006141,), (1398006142,), (1398006145,), (1398006147,), (1398006149,), (1398006159,), (1398006160,), (1398006161,), (1398006185,), (1398006189,), (1398006191,), (1398006194,), (1398006206,), (1398006207,), (1398006209,), (1398006238,), (1398006237,), (1398006251,), (1398006253,), (1398006255,), (1398006257,), (1398006259,), (1398006296,), (1398006302,), (1398006320,), (1398006321,), (1398006323,), (1398006325,), (1398006328,), (1398006331,), (1398006345,), (1398006346,), (1398006347,), (1398006349,), (1398006351,), (1398006353,), (1398006363,), (1398006365,), (1398006368,), (1398006371,), (1398006374,), (1398006376,), (1398006387,), (1398006388,), (1398006389,), (1398006391,), (1398006393,), (1398006394,), (1398006398,), (1398006399,), (1398006402,), (1398006405,), (1398006407,), (1398006410,), (1398006414,), (1398006415,), (1398006416,), (1398006446,), (1398006448,), (1398006450,), (1398006452,), (1398006455,), (1398006458,), (1398006462,), (1398006465,), (1398006467,), (1398006469,), (1398006471,), (1398006473,), (1398006475,), (1398006476,), (1398006479,), (1398006481,), (1398006483,), (1398006487,), (1398006498,), (1398006499,), (1398006500,), (1398006515,), (1398006516,), (1398006517,), (1398006518,), (1398006521,), (1398006539,), (1398006540,), (1398006541,), (1398006542,), (1398006551,), (1398006553,), (1398006560,), (1398006561,), (1398006984,), (1398006880,), (1398006916,), (1398006948,), (1398007373,), (1398007408,), (1398007412,), (1398007414,), (1398007430,), (1398007453,), (1398007512,), (1398007587,), (1398007657,), (1398007727,), (1398008229,), (1398008283,), (1398008316,), (1398008405,), (1398008802,), (1398008839,), (1398008876,), (1398008912,), (1398008942,), (1398008944,), (1398008956,), (1398009645,), (1398009701,), (1398009785,), (1398009829,), (1398009866,), (1398010258,), (1398010298,), (1398010331,), (1398010432,), (1398010435,), (1398010457,), (1398011222,), (1398011282,), (1398011342,), (1398011389,), (1398011438,), (1398011740,), (1398011776,), (1398012235,), (1398012271,), (1398012719,), (1398012753,), (1398012787,), (1398012824,), (1398012858,), (1398013143,), (1398013174,), (1398013208,), (1398013274,), (1398013931,), (1398013993,), (1398014027,), (1398014061,), (1398014122,), (1398014558,), (1398014525,), (1398014719,), (1398014721,), (1398014724,), (1398014756,), (1398014824,), (1398014893,), (1398015410,), (1398015447,), (1398015499,), (1398015562,), (1398015601,), (1398015639,), (1398015883,), (1398015885,), (1398015887,), (1398015890,), (1398015893,), (1398015895,), (1398016136,), (1398016200,), (1398016271,), (1398016341,), (1398016411,), (1398016478,), (1398016679,), (1398016711,), (1398016747,), (1398016789,), (1398016853,), (1398016918,), (1398017076,), (1398017119,), (1398017121,), (1398017123,), (1398017126,), (1398017129,), (1398017134,), (1398017135,), (1398017136,), (1398017163,), (1398017199,), (1398017235,), (1398017358,), (1398017445,), (1398017446,), (1398017479,), (1398017542,), (1398017947,), (1398017982,), (1398018015,), (1398018047,), (1398018081,), (1398018343,), (1398018344,), (1398018346,), (1398018348,), (1398018350,), (1398018491,), (1398018526,), (1398018560,), (1398018761,), (1398018769,), (1398018771,), (1398018775,), (1398018793,), (1398018796,), (1398018799,), (1398018803,), (1398018816,), (1398018820,), (1398018824,), (1398018828,), (1398018833,), (1398018845,), (1398018858,), (1398018861,), (1398018863,), (1398018865,), (1398018871,), (1398018873,), (1398018880,), (1398018882,), (1398018884,), (1398018886,), (1398018888,), (1398018896,), (1398018900,), (1398018878,), (1398018919,), (1398018922,), (1398018923,), (1398018934,), (1398018936,), (1398018938,), (1398018965,), (1398018966,), (1398018967,), (1398018968,), (1398018970,), (1398018984,), (1398018986,), (1398018989,), (1398018992,), (1398018996,), (1398019014,), (1398019015,), (1398019016,), (1398019031,), (1398019032,), (1398019033,), (1398019034,), (1398019037,), (1398019063,), (1398019070,), (1398019075,), (1398019077,), (1398019080,), (1398019083,), (1398019089,), (1398019090,), (1398019091,), (1398019094,), (1398019097,), (1398019098,), (1398019119,), (1398019120,), (1398019123,), (1398019125,), (1398019127,), (1398019129,), (1398019140,), (1398019141,), (1398019143,), (1398019145,), (1398019146,), (1398019147,), (1398019153,), (1398019154,), (1398019157,), (1398019158,), (1398019161,), (1398019163,), (1398019173,), (1398019175,), (1398019178,), (1398019179,), (1398019180,), (1398019181,), (1398019191,), (1398019193,), (1398019195,), (1398019198,), (1398019201,), (1398019203,), (1398019214,), (1398019216,), (1398019218,), (1398019220,), (1398019223,), (1398019257,), (1398019259,), (1398019261,), (1398019274,), (1398019276,), (1398019278,), (1398019279,), (1398019282,), (1398019317,), (1398019308,), (1398019310,), (1398019312,), (1398019314,), (1398019343,), (1398019345,), (1398019347,), (1398019362,), (1398019364,), (1398019366,), (1398019368,), (1398019382,), (1398019384,), (1398019386,), (1398019388,), (1398019391,), (1398019418,), (1398019419,), (1398019420,), (1398019423,), (1398019426,), (1398019428,), (1398019435,), (1398019437,), (1398019440,), (1398019441,), (1398019468,), (1398019470,), (1398019472,), (1398019474,), (1398019484,), (1398019486,), (1398019565,), (1398019567,), (1398019580,), (1398019581,), (1398019583,), (1398019585,), (1398019589,), (1398019592,), (1398019612,), (1398019618,), (1398019620,), (1398019622,), (1398019625,), (1398019643,), (1398019646,), (1398019649,), (1398019652,), (1398019655,), (1398019658,), (1398019667,), (1398019668,), (1398019669,), (1398019683,), (1398019672,), (1398019676,), (1398019679,), (1398019705,), (1398019707,), (1398019710,), (1398019713,), (1398019716,), (1398019743,), (1398019744,), (1398019745,), (1398019746,), (1398019749,), (1398019752,), (1398019781,), (1398019783,), (1398019802,), (1398019803,), (1398019805,), (1398019807,), (1398019810,), (1398019830,), (1398019832,), (1398019833,), (1398019869,), (1398019870,), (1398019871,), (1398019872,), (1398019875,), (1398019909,), (1398019910,), (1398019912,), (1398019914,), (1398019931,), (1398019933,), (1398019934,), (1398019959,), (1398019961,), (1398019963,), (1398019965,), (1398019968,), (1398019985,), (1398019987,), (1398020727,), (1398021164,), (1398021518,), (1398023421,), (1398024274,), (1398024327,), (1398025337,), (1398025432,), (1398025523,), (1398025587,), (1398025658,), (1398026126,), (1398026201,), (1398026297,), (1398026400,), (1398026496,), (1398026592,), (1398027383,), (1398027461,), (1398027561,), (1398027655,), (1398027775,), (1398027898,), (1398028258,), (1398028354,), (1398028377,), (1398028379,), (1398028381,), (1398028414,), (1398028546,), (1398028547,), (1398028573,), (1398028576,), (1398028621,), (1398028624,), (1398028655,), (1398028659,), (1398028869,), (1398028873,), (1398028874,), (1398028875,), (1398028878,), (1398028909,), (1398029014,), (1398029016,), (1398029018,), (1398029021,), (1398029043,), (1398029045,), (1398029047,), (1398029049,), (1398029052,), (1398029054,), (1398029065,), (1398029068,), (1398029070,), (1398029071,), (1398029114,), (1398029104,), (1398029107,), (1398029109,), (1398029111,), (1398029132,), (1398029133,), (1398029134,), (1398029135,), (1398029138,), (1398029141,), (1398029165,), (1398029168,), (1398029170,), (1398029172,), (1398029194,), (1398029195,), (1398029196,), (1398029197,), (1398029200,), (1398029201,), (1398029220,), (1398029221,), (1398029223,), (1398029226,), (1398029229,), (1398029231,), (1398029237,), (1398029239,), (1398029240,), (1398029241,), (1398029245,), (1398029246,), (1398029248,), (1398029250,), (1398029289,), (1398029290,), (1398029292,), (1398029294,), (1398029296,), (1398029299,), (1398029318,), (1398029322,), (1398029327,), (1398029333,), (1398029389,), (1398029391,), (1398029394,), (1398029397,), (1398029401,), (1398029404,), (1398029417,), (1398029419,), (1398029421,), (1398029423,), (1398029448,), (1398029449,), (1398029450,), (1398029451,), (1398029454,), (1398029467,), (1398029468,), (1398029469,), (1398029470,), (1398029496,), (1398029498,), (1398029501,), (1398029503,), (1398029506,), (1398029509,), (1398029519,), (1398029520,), (1398029521,), (1398029524,), (1398029527,), (1398029530,), (1398029560,), (1398029562,), (1398029565,), (1398029568,), (1398029570,), (1398029573,), (1398029581,), (1398029582,), (1398029615,), (1398029618,), (1398029621,), (1398029636,), (1398029647,), (1398029649,), (1398029666,), (1398029667,), (1398029681,), (1398029692,), (1398029702,), (1398029711,), (1398029716,), (1398029717,), (1398029642,), (1398029643,), (1398029644,), (1398029645,), (1398029658,), (1398029659,), (1398029662,), (1398029665,), (1398029671,), (1398029672,), (1398029674,), (1398029676,), (1398029678,), (1398029721,), (1398029723,), (1398029726,), (1398029729,), (1398029732,), (1398029737,), (1398029739,), (1398029741,), (1398029745,), (1398029749,), (1398029751,), (1398029777,), (1398029780,), (1398029783,), (1398029787,), (1398029793,), (1398029795,), (1398029797,), (1398029799,), (1398029801,), (1398029804,), (1398029833,), (1398029834,), (1398029835,), (1398029836,), (1398029856,), (1398029857,), (1398029858,), (1398029859,), (1398029861,), (1398029864,), (1398029892,), (1398029894,), (1398029896,), (1398029899,), (1398029902,), (1398029904,), (1398029909,), (1398029910,), (1398029911,), (1398029912,), (1398029916,), (1398029917,), (1398029919,), (1398029921,), (1398029926,), (1398029929,), (1398029946,), (1398029947,), (1398029949,), (1398029951,), (1398029965,), (1398029967,), (1398029970,), (1398029973,), (1398029977,), (1398029980,), (1398030003,), (1398030005,), (1398030006,), (1398030007,), (1398030009,), (1398030025,), (1398030026,), (1398030029,), (1398030031,), (1398030065,), (1398030053,), (1398030055,), (1398030057,), (1398030059,), (1398030062,), (1398030073,), (1398030075,), (1398030077,), (1398030079,), (1398030116,), (1398030117,), (1398030118,), (1398030119,), (1398030122,), (1398030137,), (1398030138,), (1398030139,), (1398030140,), (1398030143,), (1398030160,), (1398030162,), (1398030164,), (1398030166,), (1398030169,), (1398030171,), (1398030179,), (1398030181,), (1398030187,), (1398030189,), (1398030190,), (1398030193,), (1398030196,), (1398030201,), (1398030212,), (1398030220,), (1398030221,), (1398030222,), (1398030225,), (1398030239,), (1398030241,), (1398030244,), (1398030247,), (1398030249,), (1398030254,), (1398030281,), (1398030285,), (1398030287,), (1398030289,), (1398030329,), (1398030418,), (1398030420,), (1398030832,), (1398030826,), (1398030828,), (1398030830,), (1398031023,), (1398031025,), (1398031027,), (1398031029,), (1398031031,), (1398031033,), (1398031040,), (1398031042,), (1398031044,), (1398031046,), (1398031068,), (1398031535,), (1398032165,), (1398032234,), (1398032297,), (1398032365,), (1398032955,), (1398033010,), (1398033049,), (1398033205,), (1398033239,), (1398033278,), (1398033456,), (1398033457,), (1398033459,), (1398033461,), (1398033464,), (1398033467,), (1398033485,), (1398033487,), (1398033489,), (1398033491,), (1398033494,), (1398033530,), (1398033533,), (1398033534,), (1398033535,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'05122025': {'nb_upload': 40, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29213678]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1398033535, 1398033534, 1398033533, 1398033530, 1398033494, 1398033491, 1398033489, 1398033487, 1398033485] map_info['map_portfolio_photo'] : {29213678: [1398033535, 1398033534, 1398033533, 1398033530, 1398033494, 1398033491, 1398033489, 1398033487, 1398033485, 1398033467, 1398033464, 1398033461, 1398033459, 1398033457, 1398033456, 1398033278, 1398033239, 1398033205, 1398033049, 1398033010, 1398032955, 1398032365, 1398032297, 1398032234, 1398032165, 1398031535, 1398031068, 1398031046, 1398031044, 1398031042, 1398031040, 1398031033, 1398031031, 1398031029, 1398031027, 1398031025, 1398031023, 1398030830, 1398030828, 1398030826]} final : True mtd_id 4302 list_pids : [1398033535, 1398033534, 1398033533, 1398033530, 1398033494, 1398033491, 1398033489, 1398033487, 1398033485] Looping around the photos to save general results len do output : 1 /29213678Didn'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, '4189121') ('4302', '29213678', '1398033535', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033534', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033533', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033530', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033494', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033491', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033489', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033487', None, None, None, None, None, '4189121') ('4302', None, None, None, None, None, None, None, '4189121') ('4302', '29213678', '1398033485', None, None, None, None, None, '4189121') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 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, '29213678', 'None', None, None, None, None, '4189121'), ('4302', '29213678', '1398033535', None, None, None, None, None, '4189121'), ('4302', '29213678', '1398033534', None, None, None, None, None, '4189121'), ('4302', '29213678', '1398033533', None, None, None, None, None, '4189121'), ('4302', '29213678', '1398033530', None, None, None, None, None, '4189121'), ('4302', '29213678', '1398033494', None, None, None, None, None, '4189121'), ('4302', '29213678', '1398033491', None, None, None, None, None, '4189121'), ('4302', '29213678', '1398033489', None, None, None, None, None, '4189121'), ('4302', '29213678', '1398033487', None, None, None, None, None, '4189121'), ('4302', '29213678', '1398033485', None, None, None, None, None, '4189121')] time used for this insertion : 0.014018535614013672 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.386085271835327 time spend to save output : 0.014209747314453125 total time spend for step 5 : 2.4002950191497803 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 (4189121) 2.06user 2.16system 0:12.32elapsed 34%CPU (0avgtext+0avgdata 165072maxresident)k 120inputs+10400outputs (0major+89182minor)pagefaults 0swaps