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 : 1063851 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 (3309474) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3309474) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25094427 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3309474'] with mtr_portfolio_ids : ['25094427'] and first list_photo_ids : [] new path : /proc/1063851/ Name: python3 Umask: 0002 State: R (running) Tgid: 1063851 Ngid: 0 Pid: 1063851 PPid: 1063850 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 1063851 NSpid: 1063851 NSpgid: 1060822 NSsid: 1060822 VmPeak: 1106884 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98340 kB VmRSS: 98340 kB RssAnon: 59784 kB RssFile: 38556 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 49 nonvoluntary_ctxt_switches: 96 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '1063851', 'Ngid': '0', 'Pid': '1063851', 'PPid': '1063850', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '1063851', 'NSpid': '1063851', 'NSpgid': '1060822', 'NSsid': '1060822', 'VmPeak': '1106884 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98340 kB', 'VmRSS': '98340 kB', 'RssAnon': '59784 kB', 'RssFile': '38556 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '49', 'nonvoluntary_ctxt_switches': '96'} ('datou_batch_current', '1063851', '1106884', '0', '1106884', '865636', '98340', b'', 'marlene', '3309474') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (25094427) 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 (3309474 ) ) 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 (25094427) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1372714622, 'portfolio_id': 25094427}, {'photo_id': 1372714621, 'portfolio_id': 25094427}, {'photo_id': 1372714619, 'portfolio_id': 25094427}, {'photo_id': 1372714617, 'portfolio_id': 25094427}, {'photo_id': 1372714616, 'portfolio_id': 25094427}, {'photo_id': 1372714611, 'portfolio_id': 25094427}, {'photo_id': 1372714593, 'portfolio_id': 25094427}, {'photo_id': 1372714590, 'portfolio_id': 25094427}, {'photo_id': 1372714587, 'portfolio_id': 25094427}, {'photo_id': 1372714584, 'portfolio_id': 25094427}, {'photo_id': 1372714581, 'portfolio_id': 25094427}, {'photo_id': 1372714577, 'portfolio_id': 25094427}, {'photo_id': 1372714536, 'portfolio_id': 25094427}, {'photo_id': 1372714534, 'portfolio_id': 25094427}, {'photo_id': 1372714532, 'portfolio_id': 25094427}, {'photo_id': 1372714530, 'portfolio_id': 25094427}, {'photo_id': 1372714529, 'portfolio_id': 25094427}, {'photo_id': 1372714526, 'portfolio_id': 25094427}, {'photo_id': 1372714510, 'portfolio_id': 25094427}, {'photo_id': 1372714509, 'portfolio_id': 25094427}, {'photo_id': 1372714502, 'portfolio_id': 25094427}, {'photo_id': 1372714501, 'portfolio_id': 25094427}, {'photo_id': 1372714499, 'portfolio_id': 25094427}, {'photo_id': 1372714497, 'portfolio_id': 25094427}] map_portfolio_id_photo_id: {25094427: [1372714622, 1372714621, 1372714619, 1372714617, 1372714616, 1372714611, 1372714593, 1372714590, 1372714587, 1372714584, 1372714581, 1372714577, 1372714536, 1372714534, 1372714532, 1372714530, 1372714529, 1372714526, 1372714510, 1372714509, 1372714502, 1372714501, 1372714499, 1372714497]} ##### 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.015392541885375977 #### 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 Sat Jul 19 04:50:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25094427) 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 : 25094427 get user id for portfolio 25094427 get sub ptf for main ptf 25094427, type 3726 and hashtags ['Carton_gris', 'kraft', 'papier', 'environnement', 'mal_croppe', 'Carton_brun', 'plastique', 'Teint_Dans_La_Masse', 'flou', 'autre_refus', 'metal', 'cartonnette'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25094427 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','papier','environnement','mal_croppe','Carton_brun','plastique','Teint_Dans_La_Masse','flou','autre_refus','metal','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25094427 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','papier','environnement','mal_croppe','Carton_brun','plastique','Teint_Dans_La_Masse','flou','autre_refus','metal','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 25094427, 'sub_port_id': 25094430, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16920109, 'last_updated_at': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 4, 48, 57)}, 'flou': {'main_port_id': 25094427, 'sub_port_id': 25094431, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16920110, 'last_updated_at': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 4, 48, 57)}, 'papier': {'main_port_id': 25094427, 'sub_port_id': 25094432, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16920111, 'last_updated_at': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 4, 48, 57)}, 'metal': {'main_port_id': 25094427, 'sub_port_id': 25094433, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16920112, 'last_updated_at': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 4, 48, 57)}, 'plastique': {'main_port_id': 25094427, 'sub_port_id': 25094434, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16920113, 'last_updated_at': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 4, 48, 57)}, 'autre_refus': {'main_port_id': 25094427, 'sub_port_id': 25094435, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16920114, 'last_updated_at': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 4, 48, 57)}, 'mal_croppe': {'main_port_id': 25094427, 'sub_port_id': 25094436, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16920115, 'last_updated_at': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 4, 48, 57)}, 'environnement': {'main_port_id': 25094427, 'sub_port_id': 25094437, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16920116, 'last_updated_at': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 4, 48, 57)}, 'Carton_gris': {'main_port_id': 25094427, 'sub_port_id': 25094438, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16920117, 'last_updated_at': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 4, 48, 57)}, 'cartonnette': {'main_port_id': 25094427, 'sub_port_id': 25094439, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16920118, 'last_updated_at': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 4, 48, 57)}, 'kraft': {'main_port_id': 25094427, 'sub_port_id': 25094440, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16920119, 'last_updated_at': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 4, 48, 57)}, 'Teint_Dans_La_Masse': {'main_port_id': 25094427, 'sub_port_id': 25094441, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16920120, 'last_updated_at': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 4, 48, 57)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25094430 , 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=25094427 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 (25094430) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25094427) result : ((1372714497,), (1372714499,), (1372714501,), (1372714502,), (1372714509,), (1372714510,), (1372714526,), (1372714529,), (1372714530,), (1372714532,), (1372714534,), (1372714536,), (1372714577,), (1372714581,), (1372714584,), (1372714587,), (1372714590,), (1372714593,), (1372714611,), (1372714616,), (1372714617,), (1372714619,), (1372714621,), (1372714622,)) 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 25094431 , 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=25094427 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 (25094431) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25094427) result : ((1372714497,), (1372714499,), (1372714501,), (1372714502,), (1372714509,), (1372714510,), (1372714526,), (1372714529,), (1372714530,), (1372714532,), (1372714534,), (1372714536,), (1372714577,), (1372714581,), (1372714584,), (1372714587,), (1372714590,), (1372714593,), (1372714611,), (1372714616,), (1372714617,), (1372714619,), (1372714621,), (1372714622,)) 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 25094432 , 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=25094427 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 (25094432) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25094427) result : ((1372714497,), (1372714499,), (1372714501,), (1372714502,), (1372714509,), (1372714510,), (1372714526,), (1372714529,), (1372714530,), (1372714532,), (1372714534,), (1372714536,), (1372714577,), (1372714581,), (1372714584,), (1372714587,), (1372714590,), (1372714593,), (1372714611,), (1372714616,), (1372714617,), (1372714619,), (1372714621,), (1372714622,)) 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 25094433 , 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=25094427 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 (25094433) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25094427) result : ((1372714497,), (1372714499,), (1372714501,), (1372714502,), (1372714509,), (1372714510,), (1372714526,), (1372714529,), (1372714530,), (1372714532,), (1372714534,), (1372714536,), (1372714577,), (1372714581,), (1372714584,), (1372714587,), (1372714590,), (1372714593,), (1372714611,), (1372714616,), (1372714617,), (1372714619,), (1372714621,), (1372714622,)) 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 25094434 , 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=25094427 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 (25094434) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25094427) result : ((1372714497,), (1372714499,), (1372714501,), (1372714502,), (1372714509,), (1372714510,), (1372714526,), (1372714529,), (1372714530,), (1372714532,), (1372714534,), (1372714536,), (1372714577,), (1372714581,), (1372714584,), (1372714587,), (1372714590,), (1372714593,), (1372714611,), (1372714616,), (1372714617,), (1372714619,), (1372714621,), (1372714622,)) 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 25094435 , 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=25094427 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 (25094435) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25094427) result : ((1372714497,), (1372714499,), (1372714501,), (1372714502,), (1372714509,), (1372714510,), (1372714526,), (1372714529,), (1372714530,), (1372714532,), (1372714534,), (1372714536,), (1372714577,), (1372714581,), (1372714584,), (1372714587,), (1372714590,), (1372714593,), (1372714611,), (1372714616,), (1372714617,), (1372714619,), (1372714621,), (1372714622,)) 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 25094436 , 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=25094427 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 (25094436) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25094427) result : ((1372714497,), (1372714499,), (1372714501,), (1372714502,), (1372714509,), (1372714510,), (1372714526,), (1372714529,), (1372714530,), (1372714532,), (1372714534,), (1372714536,), (1372714577,), (1372714581,), (1372714584,), (1372714587,), (1372714590,), (1372714593,), (1372714611,), (1372714616,), (1372714617,), (1372714619,), (1372714621,), (1372714622,)) 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 25094437 , 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=25094427 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 (25094437) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25094427) result : ((1372714497,), (1372714499,), (1372714501,), (1372714502,), (1372714509,), (1372714510,), (1372714526,), (1372714529,), (1372714530,), (1372714532,), (1372714534,), (1372714536,), (1372714577,), (1372714581,), (1372714584,), (1372714587,), (1372714590,), (1372714593,), (1372714611,), (1372714616,), (1372714617,), (1372714619,), (1372714621,), (1372714622,)) 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 25094438 , 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=25094427 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 (25094438) result : ((1372714639,), (1372714640,), (1372714641,), (1372714671,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25094427) result : ((1372714497,), (1372714499,), (1372714501,), (1372714502,), (1372714509,), (1372714510,), (1372714526,), (1372714529,), (1372714530,), (1372714532,), (1372714534,), (1372714536,), (1372714577,), (1372714581,), (1372714584,), (1372714587,), (1372714590,), (1372714593,), (1372714611,), (1372714616,), (1372714617,), (1372714619,), (1372714621,), (1372714622,)) 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 25094439 , 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=25094427 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 (25094439) result : ((1372714643,), (1372714680,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25094427) result : ((1372714497,), (1372714499,), (1372714501,), (1372714502,), (1372714509,), (1372714510,), (1372714526,), (1372714529,), (1372714530,), (1372714532,), (1372714534,), (1372714536,), (1372714577,), (1372714581,), (1372714584,), (1372714587,), (1372714590,), (1372714593,), (1372714611,), (1372714616,), (1372714617,), (1372714619,), (1372714621,), (1372714622,)) 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 25094440 , 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=25094427 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 (25094440) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25094427) result : ((1372714497,), (1372714499,), (1372714501,), (1372714502,), (1372714509,), (1372714510,), (1372714526,), (1372714529,), (1372714530,), (1372714532,), (1372714534,), (1372714536,), (1372714577,), (1372714581,), (1372714584,), (1372714587,), (1372714590,), (1372714593,), (1372714611,), (1372714616,), (1372714617,), (1372714619,), (1372714621,), (1372714622,)) 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 25094441 , 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=25094427 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 (25094441) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25094427) result : ((1372714497,), (1372714499,), (1372714501,), (1372714502,), (1372714509,), (1372714510,), (1372714526,), (1372714529,), (1372714530,), (1372714532,), (1372714534,), (1372714536,), (1372714577,), (1372714581,), (1372714584,), (1372714587,), (1372714590,), (1372714593,), (1372714611,), (1372714616,), (1372714617,), (1372714619,), (1372714621,), (1372714622,)) 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`=25094427 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','papier','environnement','mal_croppe','Carton_brun','plastique','Teint_Dans_La_Masse','flou','autre_refus','metal','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=25094427 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Carton_gris','kraft','papier','environnement','mal_croppe','Carton_brun','plastique','Teint_Dans_La_Masse','flou','autre_refus','metal','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Carton_brun': {'main_port_id': 25094427, 'sub_port_id': 25094442, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16920121, 'last_updated_at': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 4, 48, 59)}, 'flou': {'main_port_id': 25094427, 'sub_port_id': 25094443, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16920122, 'last_updated_at': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 4, 48, 59)}, 'papier': {'main_port_id': 25094427, 'sub_port_id': 25094444, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16920123, 'last_updated_at': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 4, 48, 59)}, 'metal': {'main_port_id': 25094427, 'sub_port_id': 25094445, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16920124, 'last_updated_at': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 4, 48, 59)}, 'plastique': {'main_port_id': 25094427, 'sub_port_id': 25094446, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16920125, 'last_updated_at': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 4, 48, 59)}, 'autre_refus': {'main_port_id': 25094427, 'sub_port_id': 25094447, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16920126, 'last_updated_at': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 4, 48, 59)}, 'mal_croppe': {'main_port_id': 25094427, 'sub_port_id': 25094448, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16920127, 'last_updated_at': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 4, 48, 59)}, 'environnement': {'main_port_id': 25094427, 'sub_port_id': 25094449, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16920128, 'last_updated_at': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 4, 48, 59)}, 'Carton_gris': {'main_port_id': 25094427, 'sub_port_id': 25094450, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16920129, 'last_updated_at': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 4, 48, 59)}, 'cartonnette': {'main_port_id': 25094427, 'sub_port_id': 25094451, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16920130, 'last_updated_at': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 4, 48, 59)}, 'kraft': {'main_port_id': 25094427, 'sub_port_id': 25094452, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16920131, 'last_updated_at': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 4, 48, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 25094427, 'sub_port_id': 25094453, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16920132, 'last_updated_at': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 7, 19, 4, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 7, 19, 4, 48, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25094442,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25094430 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25094443,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25094431 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25094444,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25094432 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25094445,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25094433 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25094446,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25094434 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25094447,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25094435 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25094448,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25094436 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25094449,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25094437 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25094450,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25094438 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25094451,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25094439 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25094452,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25094440 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25094453,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25094441 lien utilise dans velours : https://www.fotonower.com/velours/25094442,25094443,25094444,25094445,25094446,25094447,25094448,25094449,25094450,25094451,25094452,25094453?tags=Carton_brun,flou,papier,metal,plastique,autre_refus,mal_croppe,environnement,Carton_gris,cartonnette,kraft,Teint_Dans_La_Masse After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25094427]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1372714622, 1372714621, 1372714619, 1372714617, 1372714616, 1372714611, 1372714593, 1372714590, 1372714587, 1372714584, 1372714581, 1372714577] map_info['map_portfolio_photo'] : {25094427: [1372714622, 1372714621, 1372714619, 1372714617, 1372714616, 1372714611, 1372714593, 1372714590, 1372714587, 1372714584, 1372714581, 1372714577, 1372714536, 1372714534, 1372714532, 1372714530, 1372714529, 1372714526, 1372714510, 1372714509, 1372714502, 1372714501, 1372714499, 1372714497]} final : False mtd_id 4302 list_pids : [1372714622, 1372714621, 1372714619, 1372714617, 1372714616, 1372714611, 1372714593, 1372714590, 1372714587, 1372714584, 1372714581, 1372714577] Looping around the photos to save general results len do output : 1 /25094427. 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, '3309474') ('4302', '25094427', '1372714622', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714621', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714619', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714617', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714616', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714611', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714593', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714590', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714587', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714584', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714581', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714577', None, None, None, None, None, '3309474') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '25094427', "{'Carton_brun': 25094430, 'flou': 25094431, 'papier': 25094432, 'metal': 25094433, 'plastique': 25094434, 'autre_refus': 25094435, 'mal_croppe': 25094436, 'environnement': 25094437, 'Carton_gris': 25094438, 'cartonnette': 25094439, 'kraft': 25094440, 'Teint_Dans_La_Masse': 25094441}", None, None, None, None, '3309474'), ('4302', '25094427', '1372714622', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714621', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714619', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714617', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714616', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714611', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714593', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714590', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714587', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714584', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714581', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714577', None, None, None, None, None, '3309474')] time used for this insertion : 0.06656813621520996 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.600616455078125 time spend to save output : 0.06693029403686523 total time spend for step 1 : 1.6675467491149902 step2:final Sat Jul 19 04:51: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 (25094427) 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 25094427 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1372714510,1372714509,1372714502,1372714501,1372714499,1372714497,1372714536,1372714534,1372714532,1372714530,1372714529,1372714526,1372714593,1372714590,1372714587,1372714584,1372714581,1372714577,1372714622,1372714621,1372714619,1372714617,1372714616,1372714611); 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([25094427]) Inside saveOutput : final : False verbose : True original output for save of step final : {1372714622: ('0.014504236978299199',), 1372714621: ('0.014504236978299199',), 1372714619: ('0.014504236978299199',), 1372714617: ('0.014504236978299199',), 1372714616: ('0.014504236978299199',), 1372714611: ('0.014504236978299199',), 1372714593: ('0.014504236978299199',), 1372714590: ('0.014504236978299199',), 1372714587: ('0.014504236978299199',), 1372714584: ('0.014504236978299199',), 1372714581: ('0.014504236978299199',), 1372714577: ('0.014504236978299199',)} new output for save of step final : {1372714622: ('0.014504236978299199',), 1372714621: ('0.014504236978299199',), 1372714619: ('0.014504236978299199',), 1372714617: ('0.014504236978299199',), 1372714616: ('0.014504236978299199',), 1372714611: ('0.014504236978299199',), 1372714593: ('0.014504236978299199',), 1372714590: ('0.014504236978299199',), 1372714587: ('0.014504236978299199',), 1372714584: ('0.014504236978299199',), 1372714581: ('0.014504236978299199',), 1372714577: ('0.014504236978299199',)} [1372714622, 1372714621, 1372714619, 1372714617, 1372714616, 1372714611, 1372714593, 1372714590, 1372714587, 1372714584, 1372714581, 1372714577] map_info['map_portfolio_photo'] : {25094427: [1372714622, 1372714621, 1372714619, 1372714617, 1372714616, 1372714611, 1372714593, 1372714590, 1372714587, 1372714584, 1372714581, 1372714577, 1372714536, 1372714534, 1372714532, 1372714530, 1372714529, 1372714526, 1372714510, 1372714509, 1372714502, 1372714501, 1372714499, 1372714497]} final : False mtd_id 4302 list_pids : [1372714622, 1372714621, 1372714619, 1372714617, 1372714616, 1372714611, 1372714593, 1372714590, 1372714587, 1372714584, 1372714581, 1372714577] Looping around the photos to save general results len do output : 12 /1372714622.Didn't retrieve data . /1372714621.Didn't retrieve data . /1372714619.Didn't retrieve data . /1372714617.Didn't retrieve data . /1372714616.Didn't retrieve data . /1372714611.Didn't retrieve data . /1372714593.Didn't retrieve data . /1372714590.Didn't retrieve data . /1372714587.Didn't retrieve data . /1372714584.Didn't retrieve data . /1372714581.Didn't retrieve data . /1372714577.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, '3309474') ('4302', '25094427', '1372714622', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714621', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714619', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714617', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714616', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714611', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714593', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714590', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714587', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714584', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714581', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714577', None, None, None, None, None, '3309474') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 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', '25094427', '1372714622', '0.014504236978299199', None, None, None, None, '3309474'), ('4302', '25094427', '1372714621', '0.014504236978299199', None, None, None, None, '3309474'), ('4302', '25094427', '1372714619', '0.014504236978299199', None, None, None, None, '3309474'), ('4302', '25094427', '1372714617', '0.014504236978299199', None, None, None, None, '3309474'), ('4302', '25094427', '1372714616', '0.014504236978299199', None, None, None, None, '3309474'), ('4302', '25094427', '1372714611', '0.014504236978299199', None, None, None, None, '3309474'), ('4302', '25094427', '1372714593', '0.014504236978299199', None, None, None, None, '3309474'), ('4302', '25094427', '1372714590', '0.014504236978299199', None, None, None, None, '3309474'), ('4302', '25094427', '1372714587', '0.014504236978299199', None, None, None, None, '3309474'), ('4302', '25094427', '1372714584', '0.014504236978299199', None, None, None, None, '3309474'), ('4302', '25094427', '1372714581', '0.014504236978299199', None, None, None, None, '3309474'), ('4302', '25094427', '1372714577', '0.014504236978299199', None, None, None, None, '3309474')] time used for this insertion : 0.014068841934204102 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.0746009349822998 time spend to save output : 0.014862537384033203 total time spend for step 2 : 0.08946347236633301 step3:velours_tree Sat Jul 19 04:51: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 : {25094427: [{'Carton_brun': 25094430, 'flou': 25094431, 'papier': 25094432, 'metal': 25094433, 'plastique': 25094434, 'autre_refus': 25094435, 'mal_croppe': 25094436, 'environnement': 25094437, 'Carton_gris': 25094438, 'cartonnette': 25094439, 'kraft': 25094440, 'Teint_Dans_La_Masse': 25094441}]} input_args_next_step : {25094427: ()} output_args : {25094427: [{'Carton_brun': 25094430, 'flou': 25094431, 'papier': 25094432, 'metal': 25094433, 'plastique': 25094434, 'autre_refus': 25094435, 'mal_croppe': 25094436, 'environnement': 25094437, 'Carton_gris': 25094438, 'cartonnette': 25094439, 'kraft': 25094440, 'Teint_Dans_La_Masse': 25094441}]} args : 25094427 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': 25094430, 'flou': 25094431, 'papier': 25094432, 'metal': 25094433, 'plastique': 25094434, 'autre_refus': 25094435, 'mal_croppe': 25094436, 'environnement': 25094437, 'Carton_gris': 25094438, 'cartonnette': 25094439, 'kraft': 25094440, 'Teint_Dans_La_Masse': 25094441},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25094427) 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([25094427]) 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.3253345489501953 time spend to save output : 6.461143493652344e-05 total time spend for step 3 : 0.32539916038513184 step4:send_mail_cod Sat Jul 19 04:51:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 : {1372714622: ('0.014504236978299199',), 1372714621: ('0.014504236978299199',), 1372714619: ('0.014504236978299199',), 1372714617: ('0.014504236978299199',), 1372714616: ('0.014504236978299199',), 1372714611: ('0.014504236978299199',), 1372714593: ('0.014504236978299199',), 1372714590: ('0.014504236978299199',), 1372714587: ('0.014504236978299199',), 1372714584: ('0.014504236978299199',), 1372714581: ('0.014504236978299199',), 1372714577: ('0.014504236978299199',)} input_args_next_step : {1372714622: ()} output_args : {1372714622: ('0.014504236978299199',), 1372714621: ('0.014504236978299199',), 1372714619: ('0.014504236978299199',), 1372714617: ('0.014504236978299199',), 1372714616: ('0.014504236978299199',), 1372714611: ('0.014504236978299199',), 1372714593: ('0.014504236978299199',), 1372714590: ('0.014504236978299199',), 1372714587: ('0.014504236978299199',), 1372714584: ('0.014504236978299199',), 1372714581: ('0.014504236978299199',), 1372714577: ('0.014504236978299199',)} args : 1372714622 depend.output_id : 0 input_args_next_step : {1372714622: ('0.014504236978299199',), 1372714621: ()} output_args : {1372714622: ('0.014504236978299199',), 1372714621: ('0.014504236978299199',), 1372714619: ('0.014504236978299199',), 1372714617: ('0.014504236978299199',), 1372714616: ('0.014504236978299199',), 1372714611: ('0.014504236978299199',), 1372714593: ('0.014504236978299199',), 1372714590: ('0.014504236978299199',), 1372714587: ('0.014504236978299199',), 1372714584: ('0.014504236978299199',), 1372714581: ('0.014504236978299199',), 1372714577: ('0.014504236978299199',)} args : 1372714621 depend.output_id : 0 input_args_next_step : {1372714622: ('0.014504236978299199',), 1372714621: ('0.014504236978299199',), 1372714619: ()} output_args : {1372714622: ('0.014504236978299199',), 1372714621: ('0.014504236978299199',), 1372714619: ('0.014504236978299199',), 1372714617: ('0.014504236978299199',), 1372714616: ('0.014504236978299199',), 1372714611: ('0.014504236978299199',), 1372714593: ('0.014504236978299199',), 1372714590: ('0.014504236978299199',), 1372714587: ('0.014504236978299199',), 1372714584: ('0.014504236978299199',), 1372714581: ('0.014504236978299199',), 1372714577: ('0.014504236978299199',)} args : 1372714619 depend.output_id : 0 input_args_next_step : {1372714622: ('0.014504236978299199',), 1372714621: ('0.014504236978299199',), 1372714619: ('0.014504236978299199',), 1372714617: ()} output_args : {1372714622: ('0.014504236978299199',), 1372714621: ('0.014504236978299199',), 1372714619: ('0.014504236978299199',), 1372714617: ('0.014504236978299199',), 1372714616: ('0.014504236978299199',), 1372714611: ('0.014504236978299199',), 1372714593: ('0.014504236978299199',), 1372714590: ('0.014504236978299199',), 1372714587: ('0.014504236978299199',), 1372714584: ('0.014504236978299199',), 1372714581: ('0.014504236978299199',), 1372714577: ('0.014504236978299199',)} args : 1372714617 depend.output_id : 0 input_args_next_step : {1372714622: ('0.014504236978299199',), 1372714621: ('0.014504236978299199',), 1372714619: ('0.014504236978299199',), 1372714617: ('0.014504236978299199',), 1372714616: ()} output_args : {1372714622: ('0.014504236978299199',), 1372714621: ('0.014504236978299199',), 1372714619: ('0.014504236978299199',), 1372714617: ('0.014504236978299199',), 1372714616: ('0.014504236978299199',), 1372714611: ('0.014504236978299199',), 1372714593: ('0.014504236978299199',), 1372714590: ('0.014504236978299199',), 1372714587: ('0.014504236978299199',), 1372714584: ('0.014504236978299199',), 1372714581: ('0.014504236978299199',), 1372714577: ('0.014504236978299199',)} args : 1372714616 depend.output_id : 0 input_args_next_step : {1372714622: ('0.014504236978299199',), 1372714621: ('0.014504236978299199',), 1372714619: ('0.014504236978299199',), 1372714617: ('0.014504236978299199',), 1372714616: ('0.014504236978299199',), 1372714611: ()} output_args : {1372714622: ('0.014504236978299199',), 1372714621: ('0.014504236978299199',), 1372714619: ('0.014504236978299199',), 1372714617: ('0.014504236978299199',), 1372714616: ('0.014504236978299199',), 1372714611: ('0.014504236978299199',), 1372714593: ('0.014504236978299199',), 1372714590: ('0.014504236978299199',), 1372714587: ('0.014504236978299199',), 1372714584: ('0.014504236978299199',), 1372714581: ('0.014504236978299199',), 1372714577: ('0.014504236978299199',)} args : 1372714611 depend.output_id : 0 input_args_next_step : {1372714622: ('0.014504236978299199',), 1372714621: ('0.014504236978299199',), 1372714619: ('0.014504236978299199',), 1372714617: ('0.014504236978299199',), 1372714616: ('0.014504236978299199',), 1372714611: ('0.014504236978299199',), 1372714593: ()} output_args : {1372714622: ('0.014504236978299199',), 1372714621: ('0.014504236978299199',), 1372714619: ('0.014504236978299199',), 1372714617: ('0.014504236978299199',), 1372714616: ('0.014504236978299199',), 1372714611: ('0.014504236978299199',), 1372714593: ('0.014504236978299199',), 1372714590: ('0.014504236978299199',), 1372714587: ('0.014504236978299199',), 1372714584: ('0.014504236978299199',), 1372714581: ('0.014504236978299199',), 1372714577: ('0.014504236978299199',)} args : 1372714593 depend.output_id : 0 input_args_next_step : {1372714622: ('0.014504236978299199',), 1372714621: ('0.014504236978299199',), 1372714619: ('0.014504236978299199',), 1372714617: ('0.014504236978299199',), 1372714616: ('0.014504236978299199',), 1372714611: ('0.014504236978299199',), 1372714593: ('0.014504236978299199',), 1372714590: ()} output_args : {1372714622: ('0.014504236978299199',), 1372714621: ('0.014504236978299199',), 1372714619: ('0.014504236978299199',), 1372714617: ('0.014504236978299199',), 1372714616: ('0.014504236978299199',), 1372714611: ('0.014504236978299199',), 1372714593: ('0.014504236978299199',), 1372714590: ('0.014504236978299199',), 1372714587: ('0.014504236978299199',), 1372714584: ('0.014504236978299199',), 1372714581: ('0.014504236978299199',), 1372714577: ('0.014504236978299199',)} args : 1372714590 depend.output_id : 0 input_args_next_step : {1372714622: ('0.014504236978299199',), 1372714621: ('0.014504236978299199',), 1372714619: ('0.014504236978299199',), 1372714617: ('0.014504236978299199',), 1372714616: ('0.014504236978299199',), 1372714611: ('0.014504236978299199',), 1372714593: ('0.014504236978299199',), 1372714590: ('0.014504236978299199',), 1372714587: ()} output_args : {1372714622: ('0.014504236978299199',), 1372714621: ('0.014504236978299199',), 1372714619: ('0.014504236978299199',), 1372714617: ('0.014504236978299199',), 1372714616: ('0.014504236978299199',), 1372714611: ('0.014504236978299199',), 1372714593: ('0.014504236978299199',), 1372714590: ('0.014504236978299199',), 1372714587: ('0.014504236978299199',), 1372714584: ('0.014504236978299199',), 1372714581: ('0.014504236978299199',), 1372714577: ('0.014504236978299199',)} args : 1372714587 depend.output_id : 0 input_args_next_step : {1372714622: ('0.014504236978299199',), 1372714621: ('0.014504236978299199',), 1372714619: ('0.014504236978299199',), 1372714617: ('0.014504236978299199',), 1372714616: ('0.014504236978299199',), 1372714611: ('0.014504236978299199',), 1372714593: ('0.014504236978299199',), 1372714590: ('0.014504236978299199',), 1372714587: ('0.014504236978299199',), 1372714584: ()} output_args : {1372714622: ('0.014504236978299199',), 1372714621: ('0.014504236978299199',), 1372714619: ('0.014504236978299199',), 1372714617: ('0.014504236978299199',), 1372714616: ('0.014504236978299199',), 1372714611: ('0.014504236978299199',), 1372714593: ('0.014504236978299199',), 1372714590: ('0.014504236978299199',), 1372714587: ('0.014504236978299199',), 1372714584: ('0.014504236978299199',), 1372714581: ('0.014504236978299199',), 1372714577: ('0.014504236978299199',)} args : 1372714584 depend.output_id : 0 input_args_next_step : {1372714622: ('0.014504236978299199',), 1372714621: ('0.014504236978299199',), 1372714619: ('0.014504236978299199',), 1372714617: ('0.014504236978299199',), 1372714616: ('0.014504236978299199',), 1372714611: ('0.014504236978299199',), 1372714593: ('0.014504236978299199',), 1372714590: ('0.014504236978299199',), 1372714587: ('0.014504236978299199',), 1372714584: ('0.014504236978299199',), 1372714581: ()} output_args : {1372714622: ('0.014504236978299199',), 1372714621: ('0.014504236978299199',), 1372714619: ('0.014504236978299199',), 1372714617: ('0.014504236978299199',), 1372714616: ('0.014504236978299199',), 1372714611: ('0.014504236978299199',), 1372714593: ('0.014504236978299199',), 1372714590: ('0.014504236978299199',), 1372714587: ('0.014504236978299199',), 1372714584: ('0.014504236978299199',), 1372714581: ('0.014504236978299199',), 1372714577: ('0.014504236978299199',)} args : 1372714581 depend.output_id : 0 input_args_next_step : {1372714622: ('0.014504236978299199',), 1372714621: ('0.014504236978299199',), 1372714619: ('0.014504236978299199',), 1372714617: ('0.014504236978299199',), 1372714616: ('0.014504236978299199',), 1372714611: ('0.014504236978299199',), 1372714593: ('0.014504236978299199',), 1372714590: ('0.014504236978299199',), 1372714587: ('0.014504236978299199',), 1372714584: ('0.014504236978299199',), 1372714581: ('0.014504236978299199',), 1372714577: ()} output_args : {1372714622: ('0.014504236978299199',), 1372714621: ('0.014504236978299199',), 1372714619: ('0.014504236978299199',), 1372714617: ('0.014504236978299199',), 1372714616: ('0.014504236978299199',), 1372714611: ('0.014504236978299199',), 1372714593: ('0.014504236978299199',), 1372714590: ('0.014504236978299199',), 1372714587: ('0.014504236978299199',), 1372714584: ('0.014504236978299199',), 1372714581: ('0.014504236978299199',), 1372714577: ('0.014504236978299199',)} args : 1372714577 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 : {25094427: [{'Carton_brun': 25094430, 'flou': 25094431, 'papier': 25094432, 'metal': 25094433, 'plastique': 25094434, 'autre_refus': 25094435, 'mal_croppe': 25094436, 'environnement': 25094437, 'Carton_gris': 25094438, 'cartonnette': 25094439, 'kraft': 25094440, 'Teint_Dans_La_Masse': 25094441}]} input_args_next_step : {1372714622: ('0.014504236978299199',), 1372714621: ('0.014504236978299199',), 1372714619: ('0.014504236978299199',), 1372714617: ('0.014504236978299199',), 1372714616: ('0.014504236978299199',), 1372714611: ('0.014504236978299199',), 1372714593: ('0.014504236978299199',), 1372714590: ('0.014504236978299199',), 1372714587: ('0.014504236978299199',), 1372714584: ('0.014504236978299199',), 1372714581: ('0.014504236978299199',), 1372714577: ('0.014504236978299199',), 25094427: ()} output_args : {25094427: [{'Carton_brun': 25094430, 'flou': 25094431, 'papier': 25094432, 'metal': 25094433, 'plastique': 25094434, 'autre_refus': 25094435, 'mal_croppe': 25094436, 'environnement': 25094437, 'Carton_gris': 25094438, 'cartonnette': 25094439, 'kraft': 25094440, 'Teint_Dans_La_Masse': 25094441}]} args : 25094427 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 :13, first value : ('0.014504236978299199',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25094427) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1372714622,1372714621,1372714619,1372714617,1372714616,1372714611,1372714593,1372714590,1372714587,1372714584,1372714581,1372714577) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1372714577 begin to download photo : 1372714587 begin to download photo : 1372714611 begin to download photo : 1372714619 download finish for photo 1372714587 begin to download photo : 1372714590 download finish for photo 1372714619 begin to download photo : 1372714621 download finish for photo 1372714577 begin to download photo : 1372714581 download finish for photo 1372714611 begin to download photo : 1372714616 download finish for photo 1372714581 begin to download photo : 1372714584 download finish for photo 1372714590 begin to download photo : 1372714593 download finish for photo 1372714621 begin to download photo : 1372714622 download finish for photo 1372714616 begin to download photo : 1372714617 download finish for photo 1372714593 download finish for photo 1372714584 download finish for photo 1372714622 download finish for photo 1372714617 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette250944311752893461/ imagette250944331752893461/ imagette250944341752893461/ imagette250944351752893461/ imagette250944361752893461/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P25094427_19-07-2025_04_51_01.pdf 25094431 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25094431 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250944311752893461 25094433 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25094433 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250944331752893461 25094434 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25094434 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250944341752893461 25094435 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25094435 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250944351752893461 25094436 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25094436 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250944361752893461 25094439 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25094439 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1372714643: '1752893367_3378294_1372714526_6863f39bc66e82b57b17608ac483d2b6_rle_crop_3886877798_0.png', 1372714680: '1752893405_1100931_1372714509_441236e64f938fe5948e816545e19e1c_rle_crop_3886878055_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/f13d963d96871f3faa091fffa062ac87_6688736.png change filename to text .imagette250944391752893461/ imagette250944391752893461/1752893367_3378294_1372714526_6863f39bc66e82b57b17608ac483d2b6_rle_crop_3886877798_0.png.png imagette250944391752893461/1752893405_1100931_1372714509_441236e64f938fe5948e816545e19e1c_rle_crop_3886878055_0.png.png imagette250944401752893461/ imagette250944301752893461/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/fc6f60f858f9099c46015a27cff4f247_61973253.png imagette250944391752893461 25094440 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25094440 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250944401752893461 25094430 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25094430 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250944301752893461 25094438 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25094438 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1372714639: '1752893367_3378294_1372714534_d903d4dde96b1ab813af7dd9d741a52e_rle_crop_3886877718_0.png', 1372714640: '1752893367_3378294_1372714532_eb678d88f1f36ade29c55800e9d3e6b1_rle_crop_3886877738_0.png', 1372714641: '1752893367_3378294_1372714529_c43b6c553399ebd92367240de9da12e4_rle_crop_3886877782_0.png', 1372714671: '1752893405_1100931_1372714510_5722b28bfad76e44e9c4a86a934417fc_rle_crop_3886878037_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/a0cc5cfae82719d3b01bce1b28a11bf0_69870275.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/153af04ce811059cca2b42023d6c2c7a_53992597.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/4582bb6c526037d41c8eb82d112081dc_51122897.png change filename to text .imagette250944381752893461/ imagette250944381752893461/1752893367_3378294_1372714532_eb678d88f1f36ade29c55800e9d3e6b1_rle_crop_3886877738_0.png.png imagette250944381752893461/1752893367_3378294_1372714534_d903d4dde96b1ab813af7dd9d741a52e_rle_crop_3886877718_0.png.png imagette250944381752893461/1752893405_1100931_1372714510_5722b28bfad76e44e9c4a86a934417fc_rle_crop_3886878037_0.png.png imagette250944381752893461/1752893367_3378294_1372714529_c43b6c553399ebd92367240de9da12e4_rle_crop_3886877782_0.png.png imagette250944411752893462/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/a21ed47b06a0e076ad6fe1b63cba0778_40973497.png imagette250944381752893461 25094441 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25094441 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette250944411752893462 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25094427 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25094442,25094443,25094444,25094445,25094446,25094447,25094448,25094449,25094450,25094451,25094452,25094453?tags=Carton_brun,flou,papier,metal,plastique,autre_refus,mal_croppe,environnement,Carton_gris,cartonnette,kraft,Teint_Dans_La_Masse your option no_mail is active, we will not send the real mail to your client args[1372714622] : ('0.014504236978299199',) no score found for photo 1372714622 We are sending mail with results at report@fotonower.com args[1372714621] : ('0.014504236978299199',) no score found for photo 1372714621 We are sending mail with results at report@fotonower.com args[1372714619] : ('0.014504236978299199',) no score found for photo 1372714619 We are sending mail with results at report@fotonower.com args[1372714617] : ('0.014504236978299199',) no score found for photo 1372714617 We are sending mail with results at report@fotonower.com args[1372714616] : ('0.014504236978299199',) no score found for photo 1372714616 We are sending mail with results at report@fotonower.com args[1372714611] : ('0.014504236978299199',) no score found for photo 1372714611 We are sending mail with results at report@fotonower.com args[1372714593] : ('0.014504236978299199',) no score found for photo 1372714593 We are sending mail with results at report@fotonower.com args[1372714590] : ('0.014504236978299199',) no score found for photo 1372714590 We are sending mail with results at report@fotonower.com args[1372714587] : ('0.014504236978299199',) no score found for photo 1372714587 We are sending mail with results at report@fotonower.com args[1372714584] : ('0.014504236978299199',) no score found for photo 1372714584 We are sending mail with results at report@fotonower.com args[1372714581] : ('0.014504236978299199',) no score found for photo 1372714581 We are sending mail with results at report@fotonower.com args[1372714577] : ('0.014504236978299199',) no score found for photo 1372714577 We are sending mail with results at report@fotonower.com refus_total : 0.014504236978299199 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25094427 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_P25094427_19-07-2025_04_51_01.pdf results_Auto_P25094427_19-07-2025_04_51_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25094427_19-07-2025_04_51_01.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','25094427','results_Auto_P25094427_19-07-2025_04_51_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25094427_19-07-2025_04_51_01.pdf','pdf','','0.13','0.014504236978299199') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25094427]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1372714622, 1372714621, 1372714619, 1372714617, 1372714616, 1372714611, 1372714593, 1372714590, 1372714587, 1372714584, 1372714581, 1372714577] map_info['map_portfolio_photo'] : {25094427: [1372714622, 1372714621, 1372714619, 1372714617, 1372714616, 1372714611, 1372714593, 1372714590, 1372714587, 1372714584, 1372714581, 1372714577, 1372714536, 1372714534, 1372714532, 1372714530, 1372714529, 1372714526, 1372714510, 1372714509, 1372714502, 1372714501, 1372714499, 1372714497]} final : False mtd_id 4302 list_pids : [1372714622, 1372714621, 1372714619, 1372714617, 1372714616, 1372714611, 1372714593, 1372714590, 1372714587, 1372714584, 1372714581, 1372714577] 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, '3309474') ('4302', '25094427', '1372714622', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714621', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714619', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714617', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714616', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714611', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714593', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714590', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714587', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714584', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714581', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714577', None, None, None, None, None, '3309474') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25094427', '1372714622', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714621', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714619', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714617', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714616', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714611', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714593', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714590', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714587', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714584', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714581', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714577', None, None, None, None, None, '3309474')] time used for this insertion : 0.014155149459838867 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8894104957580566 time spend to save output : 0.014497995376586914 total time spend for step 4 : 1.9039084911346436 step5:split_time_score Sat Jul 19 04:51:03 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['25094427'] 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 : [('25094427',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25094427) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1372714587: {'path': 'temp/1752893461_1063851_1372714587_f659f818ed460bff4ac30d550c854522.jpg', 'extension': 'jpg'}, 1372714590: {'path': 'temp/1752893461_1063851_1372714590_350c7c67e19a3f0742d6ac1a4a66816e.jpg', 'extension': 'jpg'}, 1372714593: {'path': 'temp/1752893461_1063851_1372714593_79b4cc73c1f5dab0bd8d8e743ae96bb1.jpg', 'extension': 'jpg'}, 1372714577: {'path': 'temp/1752893461_1063851_1372714577_a26f4cd58cf27ee98016a47e5528fb4e.jpg', 'extension': 'jpg'}, 1372714581: {'path': 'temp/1752893461_1063851_1372714581_bd2a8970c3fd5d0c2dcec0a3cf27fc40.jpg', 'extension': 'jpg'}, 1372714584: {'path': 'temp/1752893461_1063851_1372714584_ed7590fd7d1b30210f1f4df56baaa771.jpg', 'extension': 'jpg'}, 1372714619: {'path': 'temp/1752893461_1063851_1372714619_4f77109d310b350f37d7d38437e4b4eb.jpg', 'extension': 'jpg'}, 1372714621: {'path': 'temp/1752893461_1063851_1372714621_c6dd49debe64c11d553020b9adb6ec37.jpg', 'extension': 'jpg'}, 1372714622: {'path': 'temp/1752893461_1063851_1372714622_dbe4f9ed7986967a3b7bbcc00d59996b.jpg', 'extension': 'jpg'}, 1372714611: {'path': 'temp/1752893461_1063851_1372714611_6525cdd379a750ff6e3eb936e45155e5.jpg', 'extension': 'jpg'}, 1372714616: {'path': 'temp/1752893461_1063851_1372714616_49f370d8e58bd274281240713a5b90e7.jpg', 'extension': 'jpg'}, 1372714617: {'path': 'temp/1752893461_1063851_1372714617_5c43f696eeaa61f7d9fda67078360d96.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 = 25094427; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 25094427 group by h (('04', 24),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=25094427 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 (25094427) 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 (25094427) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 19072025 25094427 Nombre de photos uploadées : 24 / 23040 (0%) 19072025 25094427 Nombre de photos taguées (types de déchets): 0 / 24 (0%) 19072025 25094427 Nombre de photos taguées (volume) : 0 / 24 (0%) [{'photo_id': 1372714510, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/5722b28bfad76e44e9c4a86a934417fc.jpg', 'username': None, 'uploaded_at': 1752893163, 'text': 'image_19072025_04_45_04_10142.jpg'}, {'photo_id': 1372714509, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/441236e64f938fe5948e816545e19e1c.jpg', 'username': None, 'uploaded_at': 1752893163, 'text': 'image_19072025_04_45_14_10139.jpg'}, {'photo_id': 1372714502, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/d3552ff0acf5fab25ccfc8104ae71d01.jpg', 'username': None, 'uploaded_at': 1752893163, 'text': 'image_19072025_04_45_24_10135.jpg'}, {'photo_id': 1372714501, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/19/b743c8a83de418fded55fb184cc104e8.jpg', 'username': None, 'uploaded_at': 1752893163, 'text': 'image_19072025_04_45_34_10140.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 6.4373016357421875e-06 ???????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001695394515991211 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25094427, '2025-07-19' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1989719,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.026416778564453125 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= 1989719 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997699, 'mtr_portfolio_id': 25086929, 'dashboard_result_id': 12754034, '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_P25086929_19-07-2025_02_45_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25086933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25086934, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25086935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25086936, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25086937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25086938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25086939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25086940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25086941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25086942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25086943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25086944, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997699, 'mtr_portfolio_id': 25087248, 'dashboard_result_id': 12754035, '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_P25087248_19-07-2025_00_31_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25087252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25087253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25087254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25087255, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25087256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25087257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25087258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25087259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25087260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25087261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25087262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25087263, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997699, 'mtr_portfolio_id': 25087671, 'dashboard_result_id': 12754036, '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_P25087671_19-07-2025_00_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25087684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25087685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25087686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25087687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25087688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25087689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25087690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25087691, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25087692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25087693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25087694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25087695, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997699, 'mtr_portfolio_id': 25088014, 'dashboard_result_id': 12754037, '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_P25088014_19-07-2025_02_44_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25088016, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25088017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25088018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25088019, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25088020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25088021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25088022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25088023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25088024, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25088025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25088026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25088027, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997699, 'mtr_portfolio_id': 25088320, 'dashboard_result_id': 12754038, '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_P25088320_19-07-2025_01_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25088346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25088347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25088348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25088349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25088350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25088351, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25088352, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25088353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25088354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25088355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25088356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25088357, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997699, 'mtr_portfolio_id': 25088797, 'dashboard_result_id': 12754039, '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_P25088797_19-07-2025_01_33_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25088813, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25088814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25088815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25088816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25088817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25088818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25088819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25088820, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25088821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25088822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25088823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25088824, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997699, 'mtr_portfolio_id': 25089158, 'dashboard_result_id': 12754040, '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_P25089158_19-07-2025_01_46_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25089185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25089186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25089187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25089188, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25089189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25089190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25089191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25089192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25089193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25089194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25089195, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25089196, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997699, 'mtr_portfolio_id': 25089573, 'dashboard_result_id': 12754041, '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_P25089573_19-07-2025_02_01_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25089601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25089602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25089603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25089604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25089605, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25089606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25089607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25089608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25089609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25089610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25089611, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25089612, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997699, 'mtr_portfolio_id': 25090044, 'dashboard_result_id': 12754042, '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_P25090044_19-07-2025_02_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25090045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25090046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25090047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25090048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25090049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25090050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25090051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25090052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25090053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25090054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25090055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25090056, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997699, 'mtr_portfolio_id': 25090451, 'dashboard_result_id': 12754043, '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_P25090451_19-07-2025_02_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25090478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25090479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25090480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25090481, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25090482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25090483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25090484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25090485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25090486, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25090487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25090488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25090489, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997699, 'mtr_portfolio_id': 25090846, 'dashboard_result_id': 12754044, '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_P25090846_19-07-2025_02_46_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25090873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25090874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25090875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25090876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25090877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25090878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25090879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25090880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25090881, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25090882, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25090883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25090884, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997699, 'mtr_portfolio_id': 25091167, 'dashboard_result_id': 12754045, '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_P25091167_19-07-2025_02_59_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25091195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25091196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25091197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25091198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25091199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25091200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25091201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25091202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25091203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25091204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25091205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25091206, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997699, 'mtr_portfolio_id': 25093152, 'dashboard_result_id': 12754046, '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_P25093152_19-07-2025_04_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25093177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25093178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25093179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25093180, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25093181, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25093182, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25093183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25093184, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25093185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25093186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25093187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25093188, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997699, 'mtr_portfolio_id': 25093548, 'dashboard_result_id': 12754047, '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_P25093548_19-07-2025_04_31_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25093611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25093612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25093613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25093614, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25093615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25093616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25093617, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25093618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25093619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25093620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25093621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25093622, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997699, 'mtr_portfolio_id': 25094044, 'dashboard_result_id': 12754048, '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_P25094044_19-07-2025_04_46_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25094070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25094071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25094072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25094073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25094074, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25094075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25094076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25094077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25094078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25094079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25094080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25094081, 'pht': 3726}}"}, {'dashboat_entry_day': 1989719, 'dashboard_run_id': 1997699, 'mtr_portfolio_id': 25094427, 'dashboard_result_id': 12754049, '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_P25094427_19-07-2025_04_49_00.pdf'}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25086929 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': 3308718, 'mtr_portfolio_id': 25086929, 'created_at': datetime.datetime(2025, 7, 19, 2, 45, 27), 'result': '0.03913204905862356', 'result_long': None, 'result_double': None}] Qualite : 0.03913204905862356 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25086929 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25086929_19-07-2025_02_45_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25086929 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_P25086929_19-07-2025_02_45_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25086933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25086934, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25086935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25086936, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25086937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25086938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25086939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25086940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25086941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25086942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25086943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25086944, 'pht': 3726}}" where mtr_portfolio_id = 25086929 and dashboard_run_id = 1997699 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`=25086929 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12754034, 0.03913204905862356, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25086929_19-07-2025_02_45_28.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25086933, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25086934, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25086935, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25086936, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25086937, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25086938, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25086939, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25086940, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25086941, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25086942, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25086943, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25086944, '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 = 25087248 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': 3308754, 'mtr_portfolio_id': 25087248, 'created_at': datetime.datetime(2025, 7, 19, 0, 31), 'result': '0.03972843254770483', 'result_long': None, 'result_double': None}] Qualite : 0.03972843254770483 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25087248 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25087248_19-07-2025_00_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25087248 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_P25087248_19-07-2025_00_31_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25087252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25087253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25087254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25087255, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25087256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25087257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25087258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25087259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25087260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25087261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25087262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25087263, 'pht': 3726}}" where mtr_portfolio_id = 25087248 and dashboard_run_id = 1997699 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`=25087248 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12754035, 0.03972843254770483, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25087248_19-07-2025_00_31_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25087252, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25087253, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25087254, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25087255, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25087256, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25087257, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25087258, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25087259, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25087260, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25087261, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25087262, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25087263, '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 = 25087671 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': 3308796, 'mtr_portfolio_id': 25087671, 'created_at': datetime.datetime(2025, 7, 19, 0, 46, 58), 'result': '0.040614766647832784', 'result_long': None, 'result_double': None}] Qualite : 0.040614766647832784 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25087671 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25087671_19-07-2025_00_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25087671 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_P25087671_19-07-2025_00_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25087684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25087685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25087686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25087687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25087688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25087689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25087690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25087691, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25087692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25087693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25087694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25087695, 'pht': 3726}}" where mtr_portfolio_id = 25087671 and dashboard_run_id = 1997699 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`=25087671 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12754036, 0.040614766647832784, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25087671_19-07-2025_00_46_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25087684, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25087685, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25087686, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25087687, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25087688, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25087689, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25087690, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25087691, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25087692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25087693, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25087694, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25087695, '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 = 25088014 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': 3308829, 'mtr_portfolio_id': 25088014, 'created_at': datetime.datetime(2025, 7, 19, 2, 44, 28), 'result': '0.03743177972534913', 'result_long': None, 'result_double': None}] Qualite : 0.03743177972534913 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25088014 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25088014_19-07-2025_02_44_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25088014 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_P25088014_19-07-2025_02_44_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25088016, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25088017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25088018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25088019, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25088020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25088021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25088022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25088023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25088024, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25088025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25088026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25088027, 'pht': 3726}}" where mtr_portfolio_id = 25088014 and dashboard_run_id = 1997699 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`=25088014 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12754037, 0.03743177972534913, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25088014_19-07-2025_02_44_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25088016, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25088017, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25088018, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25088019, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25088020, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25088021, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25088022, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25088023, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25088024, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25088025, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25088026, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25088027, '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 = 25088320 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': 3308880, 'mtr_portfolio_id': 25088320, 'created_at': datetime.datetime(2025, 7, 19, 1, 16, 59), 'result': '0.02487109510281073', 'result_long': None, 'result_double': None}] Qualite : 0.02487109510281073 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25088320 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25088320_19-07-2025_01_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25088320 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_P25088320_19-07-2025_01_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25088346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25088347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25088348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25088349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25088350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25088351, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25088352, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25088353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25088354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25088355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25088356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25088357, 'pht': 3726}}" where mtr_portfolio_id = 25088320 and dashboard_run_id = 1997699 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`=25088320 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12754038, 0.02487109510281073, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25088320_19-07-2025_01_17_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25088346, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25088347, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25088348, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25088349, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25088350, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25088351, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25088352, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25088353, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25088354, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25088355, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25088356, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25088357, '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 = 25088797 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': 3308919, 'mtr_portfolio_id': 25088797, 'created_at': datetime.datetime(2025, 7, 19, 1, 33, 29), 'result': '0.009828328214066689', 'result_long': None, 'result_double': None}] Qualite : 0.009828328214066689 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25088797 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25088797_19-07-2025_01_33_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25088797 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_P25088797_19-07-2025_01_33_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25088813, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25088814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25088815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25088816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25088817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25088818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25088819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25088820, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25088821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25088822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25088823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25088824, 'pht': 3726}}" where mtr_portfolio_id = 25088797 and dashboard_run_id = 1997699 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`=25088797 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12754039, 0.009828328214066689, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25088797_19-07-2025_01_33_29.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25088813, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25088814, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25088815, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25088816, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25088817, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25088818, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25088819, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25088820, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25088821, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25088822, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25088823, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25088824, '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 = 25089158 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': 3308955, 'mtr_portfolio_id': 25089158, 'created_at': datetime.datetime(2025, 7, 19, 1, 46, 29), 'result': '0.025093452418744777', 'result_long': None, 'result_double': None}] Qualite : 0.025093452418744777 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25089158 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25089158_19-07-2025_01_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25089158 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_P25089158_19-07-2025_01_46_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25089185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25089186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25089187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25089188, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25089189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25089190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25089191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25089192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25089193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25089194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25089195, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25089196, 'pht': 3726}}" where mtr_portfolio_id = 25089158 and dashboard_run_id = 1997699 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`=25089158 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12754040, 0.025093452418744777, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25089158_19-07-2025_01_46_30.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25089185, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25089186, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25089187, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25089188, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25089189, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25089190, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25089191, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25089192, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25089193, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25089194, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25089195, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25089196, '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 = 25089573 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': 3308998, 'mtr_portfolio_id': 25089573, 'created_at': datetime.datetime(2025, 7, 19, 2, 0, 59), 'result': '0.043765417373542455', 'result_long': None, 'result_double': None}] Qualite : 0.043765417373542455 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25089573 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25089573_19-07-2025_02_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25089573 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_P25089573_19-07-2025_02_01_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25089601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25089602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25089603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25089604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25089605, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25089606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25089607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25089608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25089609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25089610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25089611, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25089612, 'pht': 3726}}" where mtr_portfolio_id = 25089573 and dashboard_run_id = 1997699 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`=25089573 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12754041, 0.043765417373542455, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25089573_19-07-2025_02_01_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25089601, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25089602, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25089603, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25089604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25089605, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25089606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25089607, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25089608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25089609, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25089610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25089611, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25089612, '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 = 25090044 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': 3309042, 'mtr_portfolio_id': 25090044, 'created_at': datetime.datetime(2025, 7, 19, 2, 16, 57), 'result': '0.05976591413501777', 'result_long': None, 'result_double': None}] Qualite : 0.05976591413501777 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25090044 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25090044_19-07-2025_02_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25090044 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_P25090044_19-07-2025_02_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25090045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25090046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25090047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25090048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25090049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25090050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25090051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25090052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25090053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25090054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25090055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25090056, 'pht': 3726}}" where mtr_portfolio_id = 25090044 and dashboard_run_id = 1997699 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`=25090044 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12754042, 0.05976591413501777, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25090044_19-07-2025_02_16_58.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25090045, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25090046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25090047, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25090048, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25090049, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25090050, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25090051, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25090052, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25090053, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25090054, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25090055, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25090056, '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 = 25090451 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': 3309076, 'mtr_portfolio_id': 25090451, 'created_at': datetime.datetime(2025, 7, 19, 2, 32, 57), 'result': '0.03597129188925794', 'result_long': None, 'result_double': None}] Qualite : 0.03597129188925794 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25090451 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25090451_19-07-2025_02_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25090451 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_P25090451_19-07-2025_02_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25090478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25090479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25090480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25090481, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25090482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25090483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25090484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25090485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25090486, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25090487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25090488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25090489, 'pht': 3726}}" where mtr_portfolio_id = 25090451 and dashboard_run_id = 1997699 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`=25090451 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12754043, 0.03597129188925794, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25090451_19-07-2025_02_32_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25090478, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25090479, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25090480, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25090481, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25090482, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25090483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25090484, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25090485, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25090486, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25090487, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25090488, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25090489, '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 = 25090846 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': 3309113, 'mtr_portfolio_id': 25090846, 'created_at': datetime.datetime(2025, 7, 19, 2, 46, 29), 'result': '0.03264356474414739', 'result_long': None, 'result_double': None}] Qualite : 0.03264356474414739 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25090846 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25090846_19-07-2025_02_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25090846 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_P25090846_19-07-2025_02_46_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25090873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25090874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25090875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25090876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25090877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25090878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25090879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25090880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25090881, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25090882, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25090883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25090884, 'pht': 3726}}" where mtr_portfolio_id = 25090846 and dashboard_run_id = 1997699 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`=25090846 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12754044, 0.03264356474414739, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25090846_19-07-2025_02_46_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25090873, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25090874, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25090875, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25090876, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25090877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25090878, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25090879, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25090880, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25090881, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25090882, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25090883, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25090884, '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 = 25091167 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': 3309148, 'mtr_portfolio_id': 25091167, 'created_at': datetime.datetime(2025, 7, 19, 3, 2, 59), 'result': '0.08928014043983437', 'result_long': None, 'result_double': None}] Qualite : 0.08928014043983437 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25091167 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25091167_19-07-2025_03_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25091167 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_P25091167_19-07-2025_03_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25091195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25091196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25091197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25091198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25091199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25091200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25091201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25091202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25091203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25091204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25091205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25091206, 'pht': 3726}}" where mtr_portfolio_id = 25091167 and dashboard_run_id = 1997699 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`=25091167 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12754045, 0.08928014043983437, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25091167_19-07-2025_03_03_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25091195, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25091196, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25091197, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25091198, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25091199, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25091200, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25091201, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25091202, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25091203, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25091204, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25091205, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25091206, '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 = 25093152 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': 3309359, 'mtr_portfolio_id': 25093152, 'created_at': datetime.datetime(2025, 7, 19, 4, 16, 58), 'result': '0.027738111889172714', 'result_long': None, 'result_double': None}] Qualite : 0.027738111889172714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25093152 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25093152_19-07-2025_04_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25093152 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_P25093152_19-07-2025_04_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25093177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25093178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25093179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25093180, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25093181, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25093182, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25093183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25093184, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25093185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25093186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25093187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25093188, 'pht': 3726}}" where mtr_portfolio_id = 25093152 and dashboard_run_id = 1997701 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`=25093152 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12754046, 0.027738111889172714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25093152_19-07-2025_04_16_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25093177, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25093178, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25093179, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25093180, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25093181, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25093182, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25093183, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25093184, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25093185, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25093186, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25093187, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25093188, '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 = 25093548 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': 3309393, 'mtr_portfolio_id': 25093548, 'created_at': datetime.datetime(2025, 7, 19, 4, 30, 59), 'result': '0.021920729190084427', 'result_long': None, 'result_double': None}] Qualite : 0.021920729190084427 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25093548 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25093548_19-07-2025_04_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25093548 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_P25093548_19-07-2025_04_31_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25093611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25093612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25093613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25093614, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25093615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25093616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25093617, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25093618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25093619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25093620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25093621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25093622, 'pht': 3726}}" where mtr_portfolio_id = 25093548 and dashboard_run_id = 1997701 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`=25093548 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12754047, 0.021920729190084427, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25093548_19-07-2025_04_31_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25093611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25093612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25093613, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25093614, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25093615, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25093616, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25093617, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25093618, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25093619, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25093620, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25093621, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25093622, '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 = 25094044 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': 3309436, 'mtr_portfolio_id': 25094044, 'created_at': datetime.datetime(2025, 7, 19, 4, 46, 29), 'result': '0.05563769574348408', 'result_long': None, 'result_double': None}] Qualite : 0.05563769574348408 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25094044 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25094044_19-07-2025_04_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25094044 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_P25094044_19-07-2025_04_46_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25094070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25094071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25094072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25094073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25094074, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25094075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25094076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25094077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25094078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25094079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25094080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25094081, 'pht': 3726}}" where mtr_portfolio_id = 25094044 and dashboard_run_id = 1997701 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`=25094044 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12754048, 0.05563769574348408, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25094044_19-07-2025_04_46_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25094070, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25094071, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25094072, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25094073, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25094074, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25094075, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25094076, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25094077, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25094078, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25094079, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25094080, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25094081, '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 = 25094427 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': 3309474, 'mtr_portfolio_id': 25094427, 'created_at': datetime.datetime(2025, 7, 19, 4, 51), 'result': '0.014504236978299199', 'result_long': None, 'result_double': None}] Qualite : 0.014504236978299199 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25094427 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25094427_19-07-2025_04_51_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25094427 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_P25094427_19-07-2025_04_51_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25094430, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25094431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25094432, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25094433, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25094434, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25094435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25094436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25094437, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25094438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25094439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25094440, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25094441, 'pht': 3726}}" where mtr_portfolio_id = 25094427 and dashboard_run_id = 1997701 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`=25094427 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12754049, 0.014504236978299199, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25094427_19-07-2025_04_51_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25094430, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25094431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25094432, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25094433, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25094434, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25094435, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25094436, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25094437, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25094438, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25094439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25094440, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25094441, '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 (25086929,25087248,25087671,25088014,25088320,25088797,25089158,25089573,25090044,25090451,25090846,25091167,25093152,25093548,25094044,25094427) result : ((1372693349,), (1372693595,), (1372693784,), (1372693800,), (1372693802,), (1372693803,), (1372693812,), (1372693819,), (1372693842,), (1372693845,), (1372693848,), (1372693850,), (1372693853,), (1372693856,), (1372693870,), (1372693872,), (1372693873,), (1372693874,), (1372693887,), (1372693895,), (1372693938,), (1372693943,), (1372693947,), (1372693949,), (1372693951,), (1372693953,), (1372693979,), (1372693983,), (1372693987,), (1372693990,), (1372693992,), (1372693993,), (1372694037,), (1372694041,), (1372694043,), (1372694046,), (1372694048,), (1372694050,), (1372694076,), (1372694080,), (1372694083,), (1372694085,), (1372694087,), (1372694089,), (1372694108,), (1372694113,), (1372694117,), (1372694119,), (1372694121,), (1372694123,), (1372694144,), (1372694162,), (1372694193,), (1372694222,), (1372694224,), (1372694225,), (1372694226,), (1372694228,), (1372694230,), (1372694239,), (1372694243,), (1372694246,), (1372694248,), (1372694250,), (1372694252,), (1372702577,), (1372702623,), (1372694274,), (1372694277,), (1372694280,), (1372694282,), (1372694284,), (1372694286,), (1372694305,), (1372694312,), (1372694326,), (1372694327,), (1372694328,), (1372694334,), (1372694405,), (1372694409,), (1372694410,), (1372694412,), (1372694413,), (1372694415,), (1372694457,), (1372694469,), (1372694474,), (1372694476,), (1372694478,), (1372694505,), (1372694573,), (1372694592,), (1372694622,), (1372694639,), (1372694642,), (1372694645,), (1372694662,), (1372694664,), (1372694666,), (1372694667,), (1372694668,), (1372694669,), (1372694691,), (1372694735,), (1372694737,), (1372694739,), (1372694740,), (1372694741,), (1372694742,), (1372694773,), (1372694779,), (1372694781,), (1372694782,), (1372694784,), (1372694786,), (1372694813,), (1372694816,), (1372694819,), (1372694822,), (1372694824,), (1372694826,), (1372694847,), (1372694852,), (1372694854,), (1372694856,), (1372694857,), (1372694859,), (1372694873,), (1372694876,), (1372694879,), (1372694881,), (1372694882,), (1372694883,), (1372694934,), (1372694967,), (1372694971,), (1372694972,), (1372694975,), (1372694977,), (1372694980,), (1372695004,), (1372695014,), (1372695021,), (1372695026,), (1372695029,), (1372695031,), (1372695068,), (1372695071,), (1372695074,), (1372695076,), (1372695079,), (1372695082,), (1372695104,), (1372695145,), (1372695148,), (1372695150,), (1372695152,), (1372695154,), (1372695156,), (1372695171,), (1372695174,), (1372695176,), (1372695178,), (1372695180,), (1372695181,), (1372695199,), (1372695255,), (1372695284,), (1372695286,), (1372695287,), (1372695289,), (1372695291,), (1372695295,), (1372695365,), (1372695370,), (1372695393,), (1372695405,), (1372695415,), (1372695427,), (1372695496,), (1372695498,), (1372695511,), (1372695535,), (1372695564,), (1372695575,), (1372695612,), (1372695616,), (1372695620,), (1372695622,), (1372695623,), (1372695624,), (1372695664,), (1372695690,), (1372695723,), (1372695725,), (1372695727,), (1372695728,), (1372695729,), (1372695730,), (1372695795,), (1372695799,), (1372695801,), (1372695803,), (1372695805,), (1372695807,), (1372695828,), (1372695831,), (1372695835,), (1372695837,), (1372695839,), (1372695841,), (1372695861,), (1372695866,), (1372695869,), (1372695874,), (1372695878,), (1372695881,), (1372695898,), (1372695900,), (1372695901,), (1372695906,), (1372695912,), (1372695913,), (1372695949,), (1372695960,), (1372695964,), (1372695967,), (1372695969,), (1372695973,), (1372695976,), (1372696022,), (1372696024,), (1372696027,), (1372696031,), (1372696034,), (1372696037,), (1372696062,), (1372696095,), (1372696126,), (1372696127,), (1372696128,), (1372696129,), (1372696131,), (1372696133,), (1372696150,), (1372696153,), (1372696156,), (1372696158,), (1372696160,), (1372696163,), (1372696176,), (1372696179,), (1372696181,), (1372696194,), (1372696195,), (1372696196,), (1372696205,), (1372696207,), (1372696209,), (1372696211,), (1372696213,), (1372696215,), (1372696229,), (1372696232,), (1372696233,), (1372696236,), (1372696238,), (1372696243,), (1372696267,), (1372696268,), (1372696269,), (1372696281,), (1372696305,), (1372696353,), (1372697902,), (1372698532,), (1372702525,), (1372698458,), (1372698464,), (1372698500,), (1372698523,), (1372698525,), (1372698582,), (1372698606,), (1372698608,), (1372698610,), (1372698612,), (1372698614,), (1372698615,), (1372698770,), (1372698804,), (1372698834,), (1372698863,), (1372698892,), (1372698921,), (1372699184,), (1372699210,), (1372699234,), (1372699235,), (1372699236,), (1372699237,), (1372699398,), (1372699400,), (1372699428,), (1372699441,), (1372699443,), (1372699446,), (1372699462,), (1372699464,), (1372699467,), (1372699470,), (1372699472,), (1372699490,), (1372699525,), (1372699530,), (1372699532,), (1372699535,), (1372699537,), (1372699538,), (1372699555,), (1372699557,), (1372699558,), (1372699560,), (1372699562,), (1372699564,), (1372699584,), (1372699587,), (1372699590,), (1372699592,), (1372699594,), (1372699597,), (1372699629,), (1372699641,), (1372699693,), (1372699695,), (1372699697,), (1372699698,), (1372699699,), (1372699701,), (1372699718,), (1372699720,), (1372699721,), (1372699722,), (1372699724,), (1372699727,), (1372699737,), (1372699740,), (1372699742,), (1372699744,), (1372699746,), (1372699748,), (1372699764,), (1372699766,), (1372699768,), (1372699770,), (1372699771,), (1372699772,), (1372699798,), (1372699802,), (1372699803,), (1372699804,), (1372699805,), (1372699807,), (1372699887,), (1372699894,), (1372699896,), (1372699898,), (1372699900,), (1372699902,), (1372699921,), (1372699924,), (1372699927,), (1372699930,), (1372699933,), (1372699938,), (1372699955,), (1372699960,), (1372699963,), (1372699964,), (1372699965,), (1372699966,), (1372699984,), (1372699986,), (1372699989,), (1372699992,), (1372699996,), (1372700000,), (1372700010,), (1372700032,), (1372700034,), (1372700036,), (1372700037,), (1372700038,), (1372700039,), (1372700046,), (1372700048,), (1372700050,), (1372700051,), (1372700054,), (1372700056,), (1372700068,), (1372700070,), (1372700071,), (1372700073,), (1372700077,), (1372700079,), (1372700092,), (1372700095,), (1372700096,), (1372700098,), (1372700099,), (1372700101,), (1372700119,), (1372700121,), (1372700122,), (1372700125,), (1372700126,), (1372700128,), (1372700142,), (1372700143,), (1372700144,), (1372700145,), (1372700146,), (1372700148,), (1372700162,), (1372700165,), (1372700168,), (1372700171,), (1372700174,), (1372700176,), (1372700201,), (1372700204,), (1372700207,), (1372700209,), (1372700211,), (1372700212,), (1372700241,), (1372700244,), (1372700247,), (1372700248,), (1372700251,), (1372700253,), (1372700303,), (1372700346,), (1372700348,), (1372700350,), (1372700351,), (1372700352,), (1372700353,), (1372700376,), (1372700379,), (1372700381,), (1372700384,), (1372700385,), (1372700387,), (1372700399,), (1372700401,), (1372700402,), (1372700403,), (1372700404,), (1372700406,), (1372700429,), (1372700434,), (1372700436,), (1372700441,), (1372700444,), (1372700450,), (1372700467,), (1372700470,), (1372700473,), (1372700475,), (1372700478,), (1372700480,), (1372700490,), (1372700492,), (1372700495,), (1372700499,), (1372700503,), (1372700518,), (1372700542,), (1372700546,), (1372700548,), (1372700550,), (1372700553,), (1372700556,), (1372700572,), (1372700577,), (1372700580,), (1372700592,), (1372700600,), (1372700610,), (1372700656,), (1372700674,), (1372700693,), (1372700696,), (1372700699,), (1372700700,), (1372700701,), (1372700702,), (1372700727,), (1372700731,), (1372700733,), (1372700735,), (1372700736,), (1372700739,), (1372700754,), (1372700757,), (1372700759,), (1372700762,), (1372700764,), (1372700765,), (1372700778,), (1372700779,), (1372700780,), (1372700783,), (1372700787,), (1372700789,), (1372700819,), (1372700822,), (1372700825,), (1372700827,), (1372700843,), (1372700844,), (1372700875,), (1372700877,), (1372700878,), (1372700879,), (1372700880,), (1372700881,), (1372700898,), (1372700900,), (1372700903,), (1372700904,), (1372700906,), (1372700908,), (1372700929,), (1372700933,), (1372700936,), (1372700939,), (1372700942,), (1372700944,), (1372700969,), (1372700970,), (1372700972,), (1372700974,), (1372700976,), (1372700978,), (1372700991,), (1372701014,), (1372701016,), (1372701018,), (1372701020,), (1372701021,), (1372701022,), (1372701063,), (1372701078,), (1372701084,), (1372701089,), (1372701090,), (1372701108,), (1372701219,), (1372701223,), (1372701257,), (1372701264,), (1372701268,), (1372701305,), (1372701321,), (1372701324,), (1372701327,), (1372701399,), (1372701406,), (1372701408,), (1372701425,), (1372701427,), (1372701429,), (1372701430,), (1372701432,), (1372701434,), (1372701445,), (1372701450,), (1372701456,), (1372701459,), (1372701463,), (1372701465,), (1372702470,), (1372703157,), (1372703674,), (1372703881,), (1372703884,), (1372703892,), (1372703933,), (1372703994,), (1372704035,), (1372704443,), (1372704685,), (1372704711,), (1372704738,), (1372704759,), (1372704770,), (1372704771,), (1372704857,), (1372704860,), (1372704864,), (1372704867,), (1372704870,), (1372704873,), (1372704891,), (1372704894,), (1372704897,), (1372704905,), (1372704907,), (1372704910,), (1372704928,), (1372704932,), (1372704935,), (1372704937,), (1372704939,), (1372704941,), (1372704963,), (1372705072,), (1372705169,), (1372705170,), (1372705172,), (1372705225,), (1372705229,), (1372705231,), (1372705302,), (1372705321,), (1372705574,), (1372705576,), (1372705577,), (1372705579,), (1372705581,), (1372705584,), (1372705600,), (1372705608,), (1372705610,), (1372705615,), (1372705617,), (1372705627,), (1372705676,), (1372705678,), (1372705680,), (1372705682,), (1372705684,), (1372705686,), (1372705712,), (1372705714,), (1372705716,), (1372705718,), (1372705720,), (1372705724,), (1372705751,), (1372705753,), (1372705754,), (1372705755,), (1372705757,), (1372705762,), (1372705830,), (1372705844,), (1372705860,), (1372705864,), (1372705866,), (1372705868,), (1372705945,), (1372705953,), (1372705956,), (1372705960,), (1372705962,), (1372705963,), (1372705985,), (1372705987,), (1372705989,), (1372705990,), (1372705991,), (1372706000,), (1372706020,), (1372706063,), (1372706067,), (1372706070,), (1372706072,), (1372706074,), (1372706076,), (1372706109,), (1372706111,), (1372706112,), (1372706114,), (1372706117,), (1372706120,), (1372706139,), (1372706144,), (1372706148,), (1372706151,), (1372706154,), (1372706156,), (1372706181,), (1372706185,), (1372706188,), (1372706190,), (1372706191,), (1372706192,), (1372706222,), (1372706228,), (1372706232,), (1372706235,), (1372706237,), (1372706239,), (1372706271,), (1372706275,), (1372706281,), (1372706283,), (1372706286,), (1372706288,), (1372706334,), (1372706337,), (1372706341,), (1372706353,), (1372706357,), (1372706361,), (1372706384,), (1372706388,), (1372706391,), (1372706393,), (1372706395,), (1372706397,), (1372706430,), (1372706432,), (1372706433,), (1372706436,), (1372706438,), (1372706441,), (1372706450,), (1372706502,), (1372706504,), (1372706507,), (1372706509,), (1372706510,), (1372706511,), (1372706529,), (1372706532,), (1372706534,), (1372706537,), (1372706538,), (1372706540,), (1372706565,), (1372706594,), (1372706612,), (1372706618,), (1372706628,), (1372706636,), (1372706641,), (1372706646,), (1372706673,), (1372706676,), (1372706678,), (1372706680,), (1372706682,), (1372706683,), (1372706698,), (1372706700,), (1372706702,), (1372706704,), (1372706706,), (1372706722,), (1372706753,), (1372706773,), (1372706822,), (1372706845,), (1372706868,), (1372706883,), (1372706889,), (1372706890,), (1372706891,), (1372706909,), (1372706912,), (1372706915,), (1372706917,), (1372706919,), (1372706921,), (1372706939,), (1372706941,), (1372706952,), (1372706956,), (1372706957,), (1372706958,), (1372706981,), (1372706983,), (1372706985,), (1372706988,), (1372706991,), (1372706995,), (1372707004,), (1372707007,), (1372707010,), (1372707013,), (1372707015,), (1372707018,), (1372707072,), (1372707079,), (1372707082,), (1372707084,), (1372707085,), (1372707086,), (1372707101,), (1372707104,), (1372707107,), (1372707110,), (1372707114,), (1372707115,), (1372707123,), (1372707126,), (1372707128,), (1372707131,), (1372707133,), (1372707135,), (1372707153,), (1372707163,), (1372707217,), (1372707219,), (1372707221,), (1372707223,), (1372707225,), (1372707227,), (1372707237,), (1372707239,), (1372707240,), (1372707243,), (1372707244,), (1372707247,), (1372707261,), (1372707264,), (1372707267,), (1372707269,), (1372707271,), (1372707272,), (1372707279,), (1372707280,), (1372707282,), (1372707284,), (1372707285,), (1372707286,), (1372707299,), (1372707302,), (1372707305,), (1372707306,), (1372707307,), (1372707308,), (1372707345,), (1372707347,), (1372707350,), (1372707352,), (1372707353,), (1372707354,), (1372708258,), (1372708284,), (1372708309,), (1372708333,), (1372708359,), (1372708388,), (1372712913,), (1372712939,), (1372712945,), (1372712947,), (1372712949,), (1372712967,), (1372712988,), (1372712992,), (1372712995,), (1372712997,), (1372712998,), (1372712999,), (1372713012,), (1372713014,), (1372713015,), (1372713017,), (1372713018,), (1372713019,), (1372713031,), (1372713035,), (1372713038,), (1372713039,), (1372713041,), (1372713044,), (1372713065,), (1372713072,), (1372713074,), (1372713076,), (1372713079,), (1372713081,), (1372713097,), (1372713101,), (1372713103,), (1372713106,), (1372713109,), (1372713111,), (1372713157,), (1372713160,), (1372713163,), (1372713166,), (1372713168,), (1372713171,), (1372713191,), (1372713193,), (1372713195,), (1372713198,), (1372713201,), (1372713203,), (1372713227,), (1372713234,), (1372713236,), (1372713240,), (1372713243,), (1372713245,), (1372713267,), (1372713269,), (1372713272,), (1372713274,), (1372713275,), (1372713276,), (1372713297,), (1372713302,), (1372713303,), (1372713304,), (1372713305,), (1372713307,), (1372713326,), (1372713329,), (1372713331,), (1372713332,), (1372713333,), (1372713334,), (1372713335,), (1372713339,), (1372713343,), (1372713347,), (1372713350,), (1372713359,), (1372713371,), (1372713375,), (1372713378,), (1372713381,), (1372713384,), (1372713387,), (1372713401,), (1372713404,), (1372713409,), (1372713413,), (1372713416,), (1372713417,), (1372713451,), (1372713455,), (1372713458,), (1372713461,), (1372713464,), (1372713466,), (1372713483,), (1372713486,), (1372713487,), (1372713489,), (1372713490,), (1372713492,), (1372713513,), (1372713517,), (1372713518,), (1372713520,), (1372713521,), (1372713522,), (1372713556,), (1372713572,), (1372713589,), (1372713592,), (1372713596,), (1372713598,), (1372713618,), (1372713621,), (1372713623,), (1372713624,), (1372713625,), (1372713628,), (1372713645,), (1372713684,), (1372713720,), (1372713723,), (1372713724,), (1372713726,), (1372713728,), (1372713729,), (1372713745,), (1372713747,), (1372713749,), (1372713750,), (1372713751,), (1372713752,), (1372713776,), (1372713779,), (1372713782,), (1372713783,), (1372713786,), (1372713787,), (1372713797,), (1372713800,), (1372713802,), (1372713803,), (1372713805,), (1372713806,), (1372713839,), (1372713842,), (1372713844,), (1372713847,), (1372713849,), (1372713851,), (1372713863,), (1372713866,), (1372713867,), (1372713874,), (1372713877,), (1372713879,), (1372713905,), (1372713935,), (1372713937,), (1372713947,), (1372713955,), (1372713956,), (1372713957,), (1372713982,), (1372714043,), (1372714045,), (1372714048,), (1372714050,), (1372714052,), (1372714054,), (1372714084,), (1372714088,), (1372714091,), (1372714093,), (1372714094,), (1372714096,), (1372714114,), (1372714117,), (1372714120,), (1372714128,), (1372714132,), (1372714135,), (1372714149,), (1372714153,), (1372714155,), (1372714158,), (1372714159,), (1372714160,), (1372714173,), (1372714177,), (1372714180,), (1372714183,), (1372714190,), (1372714194,), (1372714217,), (1372714223,), (1372714225,), (1372714226,), (1372714227,), (1372714228,), (1372714242,), (1372714245,), (1372714248,), (1372714250,), (1372714251,), (1372714252,), (1372714271,), (1372714277,), (1372714281,), (1372714283,), (1372714285,), (1372714286,), (1372714332,), (1372714335,), (1372714337,), (1372714338,), (1372714340,), (1372714343,), (1372714400,), (1372714415,), (1372714417,), (1372714418,), (1372714420,), (1372714422,), (1372714423,), (1372714441,), (1372714445,), (1372714447,), (1372714448,), (1372714450,), (1372714453,), (1372714469,), (1372714472,), (1372714473,), (1372714476,), (1372714477,), (1372714478,), (1372714497,), (1372714499,), (1372714501,), (1372714502,), (1372714509,), (1372714510,), (1372714526,), (1372714529,), (1372714530,), (1372714532,), (1372714534,), (1372714536,), (1372714577,), (1372714581,), (1372714584,), (1372714587,), (1372714590,), (1372714593,), (1372714611,), (1372714616,), (1372714617,), (1372714619,), (1372714621,), (1372714622,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'19072025': {'nb_upload': 24, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25094427]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1372714622, 1372714621, 1372714619, 1372714617, 1372714616, 1372714611, 1372714593, 1372714590, 1372714587, 1372714584, 1372714581, 1372714577] map_info['map_portfolio_photo'] : {25094427: [1372714622, 1372714621, 1372714619, 1372714617, 1372714616, 1372714611, 1372714593, 1372714590, 1372714587, 1372714584, 1372714581, 1372714577, 1372714536, 1372714534, 1372714532, 1372714530, 1372714529, 1372714526, 1372714510, 1372714509, 1372714502, 1372714501, 1372714499, 1372714497]} final : True mtd_id 4302 list_pids : [1372714622, 1372714621, 1372714619, 1372714617, 1372714616, 1372714611, 1372714593, 1372714590, 1372714587, 1372714584, 1372714581, 1372714577] Looping around the photos to save general results len do output : 1 /25094427Didn'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, '3309474') ('4302', '25094427', '1372714622', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714621', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714619', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714617', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714616', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714611', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714593', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714590', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714587', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714584', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714581', None, None, None, None, None, '3309474') ('4302', None, None, None, None, None, None, None, '3309474') ('4302', '25094427', '1372714577', None, None, None, None, None, '3309474') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 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, '25094427', 'None', None, None, None, None, '3309474'), ('4302', '25094427', '1372714622', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714621', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714619', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714617', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714616', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714611', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714593', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714590', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714587', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714584', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714581', None, None, None, None, None, '3309474'), ('4302', '25094427', '1372714577', None, None, None, None, None, '3309474')] time used for this insertion : 0.3100697994232178 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4713921546936035 time spend to save output : 0.31036972999572754 total time spend for step 5 : 1.781761884689331 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 (3309474) 2.18user 2.16system 0:09.98elapsed 43%CPU (0avgtext+0avgdata 160516maxresident)k 192inputs+8544outputs (19major+71795minor)pagefaults 0swaps