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 : 117369 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 (4104474) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4104474) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28839338 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4104474'] with mtr_portfolio_ids : ['28839338'] and first list_photo_ids : [] new path : /proc/117369/ Name: python3 Umask: 0002 State: R (running) Tgid: 117369 Ngid: 0 Pid: 117369 PPid: 117368 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 117369 NSpid: 117369 NSpgid: 116045 NSsid: 116045 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 98000 kB VmRSS: 98000 kB RssAnon: 59900 kB RssFile: 38100 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 83 nonvoluntary_ctxt_switches: 80 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '117369', 'Ngid': '0', 'Pid': '117369', 'PPid': '117368', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '117369', 'NSpid': '117369', 'NSpgid': '116045', 'NSsid': '116045', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '98000 kB', 'VmRSS': '98000 kB', 'RssAnon': '59900 kB', 'RssFile': '38100 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '83', 'nonvoluntary_ctxt_switches': '80'} ('datou_batch_current', '117369', '1106908', '0', '1106884', '865636', '98000', b'', 'marlene', '4104474') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (28839338) 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 (4104474 ) ) 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 (28839338) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1395935691, 'portfolio_id': 28839338}, {'photo_id': 1395935688, 'portfolio_id': 28839338}, {'photo_id': 1395935686, 'portfolio_id': 28839338}, {'photo_id': 1395935684, 'portfolio_id': 28839338}, {'photo_id': 1395935667, 'portfolio_id': 28839338}, {'photo_id': 1395935662, 'portfolio_id': 28839338}, {'photo_id': 1395935654, 'portfolio_id': 28839338}, {'photo_id': 1395935649, 'portfolio_id': 28839338}, {'photo_id': 1395935648, 'portfolio_id': 28839338}, {'photo_id': 1395935647, 'portfolio_id': 28839338}, {'photo_id': 1395935605, 'portfolio_id': 28839338}, {'photo_id': 1395935601, 'portfolio_id': 28839338}, {'photo_id': 1395935589, 'portfolio_id': 28839338}, {'photo_id': 1395935543, 'portfolio_id': 28839338}, {'photo_id': 1395935535, 'portfolio_id': 28839338}, {'photo_id': 1395935527, 'portfolio_id': 28839338}, {'photo_id': 1395935524, 'portfolio_id': 28839338}, {'photo_id': 1395935522, 'portfolio_id': 28839338}, {'photo_id': 1395935520, 'portfolio_id': 28839338}, {'photo_id': 1395935506, 'portfolio_id': 28839338}, {'photo_id': 1395935502, 'portfolio_id': 28839338}, {'photo_id': 1395935499, 'portfolio_id': 28839338}, {'photo_id': 1395935497, 'portfolio_id': 28839338}, {'photo_id': 1395935495, 'portfolio_id': 28839338}, {'photo_id': 1395935459, 'portfolio_id': 28839338}, {'photo_id': 1395935457, 'portfolio_id': 28839338}, {'photo_id': 1395935454, 'portfolio_id': 28839338}, {'photo_id': 1395935452, 'portfolio_id': 28839338}, {'photo_id': 1395935451, 'portfolio_id': 28839338}, {'photo_id': 1395935450, 'portfolio_id': 28839338}, {'photo_id': 1395935423, 'portfolio_id': 28839338}, {'photo_id': 1395935420, 'portfolio_id': 28839338}, {'photo_id': 1395935418, 'portfolio_id': 28839338}, {'photo_id': 1395935416, 'portfolio_id': 28839338}, {'photo_id': 1395935398, 'portfolio_id': 28839338}, {'photo_id': 1395935394, 'portfolio_id': 28839338}, {'photo_id': 1395935390, 'portfolio_id': 28839338}, {'photo_id': 1395935388, 'portfolio_id': 28839338}, {'photo_id': 1395935387, 'portfolio_id': 28839338}, {'photo_id': 1395935386, 'portfolio_id': 28839338}, {'photo_id': 1395935353, 'portfolio_id': 28839338}, {'photo_id': 1395935349, 'portfolio_id': 28839338}, {'photo_id': 1395935346, 'portfolio_id': 28839338}, {'photo_id': 1395935344, 'portfolio_id': 28839338}, {'photo_id': 1395935325, 'portfolio_id': 28839338}, {'photo_id': 1395935321, 'portfolio_id': 28839338}, {'photo_id': 1395935318, 'portfolio_id': 28839338}, {'photo_id': 1395935316, 'portfolio_id': 28839338}, {'photo_id': 1395935308, 'portfolio_id': 28839338}, {'photo_id': 1395935265, 'portfolio_id': 28839338}, {'photo_id': 1395935249, 'portfolio_id': 28839338}, {'photo_id': 1395935225, 'portfolio_id': 28839338}, {'photo_id': 1395935163, 'portfolio_id': 28839338}, {'photo_id': 1395934927, 'portfolio_id': 28839338}, {'photo_id': 1395934892, 'portfolio_id': 28839338}, {'photo_id': 1395934858, 'portfolio_id': 28839338}, {'photo_id': 1395934796, 'portfolio_id': 28839338}, {'photo_id': 1395934749, 'portfolio_id': 28839338}] map_portfolio_id_photo_id: {28839338: [1395935691, 1395935688, 1395935686, 1395935684, 1395935667, 1395935662, 1395935654, 1395935649, 1395935648, 1395935647, 1395935605, 1395935601, 1395935589, 1395935543, 1395935535, 1395935527, 1395935524, 1395935522, 1395935520, 1395935506, 1395935502, 1395935499, 1395935497, 1395935495, 1395935459, 1395935457, 1395935454, 1395935452, 1395935451, 1395935450, 1395935423, 1395935420, 1395935418, 1395935416, 1395935398, 1395935394, 1395935390, 1395935388, 1395935387, 1395935386, 1395935353, 1395935349, 1395935346, 1395935344, 1395935325, 1395935321, 1395935318, 1395935316, 1395935308, 1395935265, 1395935249, 1395935225, 1395935163, 1395934927, 1395934892, 1395934858, 1395934796, 1395934749]} ##### 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.019414424896240234 #### 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 Mon Nov 24 18:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28839338) 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 : 28839338 get user id for portfolio 28839338 get sub ptf for main ptf 28839338, type 3726 and hashtags ['Teint_Dans_La_Masse', 'Carton_gris', 'autre_refus', 'kraft', 'environnement', 'metal', 'Carton_brun', 'papier', 'plastique', 'cartonnette', 'mal_croppe', 'flou'] 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`=28839338 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_gris','autre_refus','kraft','environnement','metal','Carton_brun','papier','plastique','cartonnette','mal_croppe','flou')) 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`=28839338 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_gris','autre_refus','kraft','environnement','metal','Carton_brun','papier','plastique','cartonnette','mal_croppe','flou')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 28839338, 'sub_port_id': 28839384, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19572627, 'last_updated_at': datetime.datetime(2025, 11, 24, 18, 13), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 18, 13), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 18, 5, 29)}, 'metal': {'main_port_id': 28839338, 'sub_port_id': 28839385, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19572628, 'last_updated_at': datetime.datetime(2025, 11, 24, 18, 13), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 18, 13), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 18, 5, 29)}, 'Teint_Dans_La_Masse': {'main_port_id': 28839338, 'sub_port_id': 28839386, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19572629, 'last_updated_at': datetime.datetime(2025, 11, 24, 18, 13), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 18, 13), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 18, 5, 29)}, 'mal_croppe': {'main_port_id': 28839338, 'sub_port_id': 28839387, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19572630, 'last_updated_at': datetime.datetime(2025, 11, 24, 18, 13), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 18, 13), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 18, 5, 29)}, 'papier': {'main_port_id': 28839338, 'sub_port_id': 28839388, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19572631, 'last_updated_at': datetime.datetime(2025, 11, 24, 18, 13), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 18, 13), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 18, 5, 29)}, 'autre_refus': {'main_port_id': 28839338, 'sub_port_id': 28839389, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19572632, 'last_updated_at': datetime.datetime(2025, 11, 24, 18, 13), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 18, 13), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 18, 5, 29)}, 'Carton_gris': {'main_port_id': 28839338, 'sub_port_id': 28839390, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19572633, 'last_updated_at': datetime.datetime(2025, 11, 24, 18, 13), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 18, 13), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 18, 5, 29)}, 'environnement': {'main_port_id': 28839338, 'sub_port_id': 28839391, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19572634, 'last_updated_at': datetime.datetime(2025, 11, 24, 18, 13), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 18, 13), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 18, 5, 29)}, 'flou': {'main_port_id': 28839338, 'sub_port_id': 28839392, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19572635, 'last_updated_at': datetime.datetime(2025, 11, 24, 18, 13), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 18, 13), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 18, 5, 29)}, 'Carton_brun': {'main_port_id': 28839338, 'sub_port_id': 28839393, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19572636, 'last_updated_at': datetime.datetime(2025, 11, 24, 18, 13), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 18, 13), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 18, 5, 29)}, 'kraft': {'main_port_id': 28839338, 'sub_port_id': 28839394, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19572637, 'last_updated_at': datetime.datetime(2025, 11, 24, 18, 13), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 18, 13), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 18, 5, 29)}, 'cartonnette': {'main_port_id': 28839338, 'sub_port_id': 28839395, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19572638, 'last_updated_at': datetime.datetime(2025, 11, 24, 18, 13), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 18, 13), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 18, 5, 29)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28839384 , 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=28839338 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 (28839384) result : ((1395935597,), (1395935729,), (1395935730,), (1395935731,), (1395935732,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28839338) result : ((1395934749,), (1395934796,), (1395934858,), (1395934892,), (1395934927,), (1395935163,), (1395935225,), (1395935249,), (1395935265,), (1395935308,), (1395935316,), (1395935318,), (1395935321,), (1395935325,), (1395935344,), (1395935346,), (1395935349,), (1395935353,), (1395935386,), (1395935387,), (1395935388,), (1395935390,), (1395935394,), (1395935398,), (1395935416,), (1395935418,), (1395935420,), (1395935423,), (1395935450,), (1395935451,), (1395935452,), (1395935454,), (1395935457,), (1395935459,), (1395935495,), (1395935497,), (1395935499,), (1395935502,), (1395935506,), (1395935520,), (1395935522,), (1395935524,), (1395935527,), (1395935535,), (1395935543,), (1395935589,), (1395935601,), (1395935605,), (1395935647,), (1395935648,), (1395935649,), (1395935654,), (1395935662,), (1395935667,), (1395935684,), (1395935686,), (1395935688,), (1395935691,)) 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 28839385 , 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=28839338 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 (28839385) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28839338) result : ((1395934749,), (1395934796,), (1395934858,), (1395934892,), (1395934927,), (1395935163,), (1395935225,), (1395935249,), (1395935265,), (1395935308,), (1395935316,), (1395935318,), (1395935321,), (1395935325,), (1395935344,), (1395935346,), (1395935349,), (1395935353,), (1395935386,), (1395935387,), (1395935388,), (1395935390,), (1395935394,), (1395935398,), (1395935416,), (1395935418,), (1395935420,), (1395935423,), (1395935450,), (1395935451,), (1395935452,), (1395935454,), (1395935457,), (1395935459,), (1395935495,), (1395935497,), (1395935499,), (1395935502,), (1395935506,), (1395935520,), (1395935522,), (1395935524,), (1395935527,), (1395935535,), (1395935543,), (1395935589,), (1395935601,), (1395935605,), (1395935647,), (1395935648,), (1395935649,), (1395935654,), (1395935662,), (1395935667,), (1395935684,), (1395935686,), (1395935688,), (1395935691,)) 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 28839386 , 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=28839338 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 (28839386) result : ((1395935434,), (1395935435,), (1395935436,), (1395935437,), (1395935438,), (1395935528,), (1395935529,), (1395935635,), (1395935650,), (1395935651,), (1395935716,), (1395935717,), (1395935718,), (1395935719,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28839338) result : ((1395934749,), (1395934796,), (1395934858,), (1395934892,), (1395934927,), (1395935163,), (1395935225,), (1395935249,), (1395935265,), (1395935308,), (1395935316,), (1395935318,), (1395935321,), (1395935325,), (1395935344,), (1395935346,), (1395935349,), (1395935353,), (1395935386,), (1395935387,), (1395935388,), (1395935390,), (1395935394,), (1395935398,), (1395935416,), (1395935418,), (1395935420,), (1395935423,), (1395935450,), (1395935451,), (1395935452,), (1395935454,), (1395935457,), (1395935459,), (1395935495,), (1395935497,), (1395935499,), (1395935502,), (1395935506,), (1395935520,), (1395935522,), (1395935524,), (1395935527,), (1395935535,), (1395935543,), (1395935589,), (1395935601,), (1395935605,), (1395935647,), (1395935648,), (1395935649,), (1395935654,), (1395935662,), (1395935667,), (1395935684,), (1395935686,), (1395935688,), (1395935691,)) 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 28839387 , 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=28839338 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 (28839387) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28839338) result : ((1395934749,), (1395934796,), (1395934858,), (1395934892,), (1395934927,), (1395935163,), (1395935225,), (1395935249,), (1395935265,), (1395935308,), (1395935316,), (1395935318,), (1395935321,), (1395935325,), (1395935344,), (1395935346,), (1395935349,), (1395935353,), (1395935386,), (1395935387,), (1395935388,), (1395935390,), (1395935394,), (1395935398,), (1395935416,), (1395935418,), (1395935420,), (1395935423,), (1395935450,), (1395935451,), (1395935452,), (1395935454,), (1395935457,), (1395935459,), (1395935495,), (1395935497,), (1395935499,), (1395935502,), (1395935506,), (1395935520,), (1395935522,), (1395935524,), (1395935527,), (1395935535,), (1395935543,), (1395935589,), (1395935601,), (1395935605,), (1395935647,), (1395935648,), (1395935649,), (1395935654,), (1395935662,), (1395935667,), (1395935684,), (1395935686,), (1395935688,), (1395935691,)) 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 28839388 , 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=28839338 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 (28839388) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28839338) result : ((1395934749,), (1395934796,), (1395934858,), (1395934892,), (1395934927,), (1395935163,), (1395935225,), (1395935249,), (1395935265,), (1395935308,), (1395935316,), (1395935318,), (1395935321,), (1395935325,), (1395935344,), (1395935346,), (1395935349,), (1395935353,), (1395935386,), (1395935387,), (1395935388,), (1395935390,), (1395935394,), (1395935398,), (1395935416,), (1395935418,), (1395935420,), (1395935423,), (1395935450,), (1395935451,), (1395935452,), (1395935454,), (1395935457,), (1395935459,), (1395935495,), (1395935497,), (1395935499,), (1395935502,), (1395935506,), (1395935520,), (1395935522,), (1395935524,), (1395935527,), (1395935535,), (1395935543,), (1395935589,), (1395935601,), (1395935605,), (1395935647,), (1395935648,), (1395935649,), (1395935654,), (1395935662,), (1395935667,), (1395935684,), (1395935686,), (1395935688,), (1395935691,)) 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 28839389 , 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=28839338 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 (28839389) result : ((1395935530,), (1395935636,), (1395935652,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28839338) result : ((1395934749,), (1395934796,), (1395934858,), (1395934892,), (1395934927,), (1395935163,), (1395935225,), (1395935249,), (1395935265,), (1395935308,), (1395935316,), (1395935318,), (1395935321,), (1395935325,), (1395935344,), (1395935346,), (1395935349,), (1395935353,), (1395935386,), (1395935387,), (1395935388,), (1395935390,), (1395935394,), (1395935398,), (1395935416,), (1395935418,), (1395935420,), (1395935423,), (1395935450,), (1395935451,), (1395935452,), (1395935454,), (1395935457,), (1395935459,), (1395935495,), (1395935497,), (1395935499,), (1395935502,), (1395935506,), (1395935520,), (1395935522,), (1395935524,), (1395935527,), (1395935535,), (1395935543,), (1395935589,), (1395935601,), (1395935605,), (1395935647,), (1395935648,), (1395935649,), (1395935654,), (1395935662,), (1395935667,), (1395935684,), (1395935686,), (1395935688,), (1395935691,)) 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 28839390 , 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=28839338 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 (28839390) result : ((1395935439,), (1395935531,), (1395935638,), (1395935655,), (1395935721,), (1395935722,), (1395935723,), (1395935724,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28839338) result : ((1395934749,), (1395934796,), (1395934858,), (1395934892,), (1395934927,), (1395935163,), (1395935225,), (1395935249,), (1395935265,), (1395935308,), (1395935316,), (1395935318,), (1395935321,), (1395935325,), (1395935344,), (1395935346,), (1395935349,), (1395935353,), (1395935386,), (1395935387,), (1395935388,), (1395935390,), (1395935394,), (1395935398,), (1395935416,), (1395935418,), (1395935420,), (1395935423,), (1395935450,), (1395935451,), (1395935452,), (1395935454,), (1395935457,), (1395935459,), (1395935495,), (1395935497,), (1395935499,), (1395935502,), (1395935506,), (1395935520,), (1395935522,), (1395935524,), (1395935527,), (1395935535,), (1395935543,), (1395935589,), (1395935601,), (1395935605,), (1395935647,), (1395935648,), (1395935649,), (1395935654,), (1395935662,), (1395935667,), (1395935684,), (1395935686,), (1395935688,), (1395935691,)) 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 28839391 , 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=28839338 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 (28839391) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28839338) result : ((1395934749,), (1395934796,), (1395934858,), (1395934892,), (1395934927,), (1395935163,), (1395935225,), (1395935249,), (1395935265,), (1395935308,), (1395935316,), (1395935318,), (1395935321,), (1395935325,), (1395935344,), (1395935346,), (1395935349,), (1395935353,), (1395935386,), (1395935387,), (1395935388,), (1395935390,), (1395935394,), (1395935398,), (1395935416,), (1395935418,), (1395935420,), (1395935423,), (1395935450,), (1395935451,), (1395935452,), (1395935454,), (1395935457,), (1395935459,), (1395935495,), (1395935497,), (1395935499,), (1395935502,), (1395935506,), (1395935520,), (1395935522,), (1395935524,), (1395935527,), (1395935535,), (1395935543,), (1395935589,), (1395935601,), (1395935605,), (1395935647,), (1395935648,), (1395935649,), (1395935654,), (1395935662,), (1395935667,), (1395935684,), (1395935686,), (1395935688,), (1395935691,)) 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 28839392 , 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=28839338 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 (28839392) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28839338) result : ((1395934749,), (1395934796,), (1395934858,), (1395934892,), (1395934927,), (1395935163,), (1395935225,), (1395935249,), (1395935265,), (1395935308,), (1395935316,), (1395935318,), (1395935321,), (1395935325,), (1395935344,), (1395935346,), (1395935349,), (1395935353,), (1395935386,), (1395935387,), (1395935388,), (1395935390,), (1395935394,), (1395935398,), (1395935416,), (1395935418,), (1395935420,), (1395935423,), (1395935450,), (1395935451,), (1395935452,), (1395935454,), (1395935457,), (1395935459,), (1395935495,), (1395935497,), (1395935499,), (1395935502,), (1395935506,), (1395935520,), (1395935522,), (1395935524,), (1395935527,), (1395935535,), (1395935543,), (1395935589,), (1395935601,), (1395935605,), (1395935647,), (1395935648,), (1395935649,), (1395935654,), (1395935662,), (1395935667,), (1395935684,), (1395935686,), (1395935688,), (1395935691,)) 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 28839393 , 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=28839338 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 (28839393) result : ((1395935441,), (1395935540,), (1395935645,), (1395935661,), (1395935726,), (1395935727,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28839338) result : ((1395934749,), (1395934796,), (1395934858,), (1395934892,), (1395934927,), (1395935163,), (1395935225,), (1395935249,), (1395935265,), (1395935308,), (1395935316,), (1395935318,), (1395935321,), (1395935325,), (1395935344,), (1395935346,), (1395935349,), (1395935353,), (1395935386,), (1395935387,), (1395935388,), (1395935390,), (1395935394,), (1395935398,), (1395935416,), (1395935418,), (1395935420,), (1395935423,), (1395935450,), (1395935451,), (1395935452,), (1395935454,), (1395935457,), (1395935459,), (1395935495,), (1395935497,), (1395935499,), (1395935502,), (1395935506,), (1395935520,), (1395935522,), (1395935524,), (1395935527,), (1395935535,), (1395935543,), (1395935589,), (1395935601,), (1395935605,), (1395935647,), (1395935648,), (1395935649,), (1395935654,), (1395935662,), (1395935667,), (1395935684,), (1395935686,), (1395935688,), (1395935691,)) 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 28839394 , 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=28839338 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 (28839394) result : ((1395935541,), (1395935665,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28839338) result : ((1395934749,), (1395934796,), (1395934858,), (1395934892,), (1395934927,), (1395935163,), (1395935225,), (1395935249,), (1395935265,), (1395935308,), (1395935316,), (1395935318,), (1395935321,), (1395935325,), (1395935344,), (1395935346,), (1395935349,), (1395935353,), (1395935386,), (1395935387,), (1395935388,), (1395935390,), (1395935394,), (1395935398,), (1395935416,), (1395935418,), (1395935420,), (1395935423,), (1395935450,), (1395935451,), (1395935452,), (1395935454,), (1395935457,), (1395935459,), (1395935495,), (1395935497,), (1395935499,), (1395935502,), (1395935506,), (1395935520,), (1395935522,), (1395935524,), (1395935527,), (1395935535,), (1395935543,), (1395935589,), (1395935601,), (1395935605,), (1395935647,), (1395935648,), (1395935649,), (1395935654,), (1395935662,), (1395935667,), (1395935684,), (1395935686,), (1395935688,), (1395935691,)) 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 28839395 , 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=28839338 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 (28839395) result : ((1395935511,), (1395935533,), (1395935534,), (1395935537,), (1395935538,), (1395935639,), (1395935640,), (1395935641,), (1395935642,), (1395935643,), (1395935644,), (1395935656,), (1395935657,), (1395935658,), (1395935659,), (1395935725,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28839338) result : ((1395934749,), (1395934796,), (1395934858,), (1395934892,), (1395934927,), (1395935163,), (1395935225,), (1395935249,), (1395935265,), (1395935308,), (1395935316,), (1395935318,), (1395935321,), (1395935325,), (1395935344,), (1395935346,), (1395935349,), (1395935353,), (1395935386,), (1395935387,), (1395935388,), (1395935390,), (1395935394,), (1395935398,), (1395935416,), (1395935418,), (1395935420,), (1395935423,), (1395935450,), (1395935451,), (1395935452,), (1395935454,), (1395935457,), (1395935459,), (1395935495,), (1395935497,), (1395935499,), (1395935502,), (1395935506,), (1395935520,), (1395935522,), (1395935524,), (1395935527,), (1395935535,), (1395935543,), (1395935589,), (1395935601,), (1395935605,), (1395935647,), (1395935648,), (1395935649,), (1395935654,), (1395935662,), (1395935667,), (1395935684,), (1395935686,), (1395935688,), (1395935691,)) 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`=28839338 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_gris','autre_refus','kraft','environnement','metal','Carton_brun','papier','plastique','cartonnette','mal_croppe','flou')) 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`=28839338 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','Carton_gris','autre_refus','kraft','environnement','metal','Carton_brun','papier','plastique','cartonnette','mal_croppe','flou')) AND mptpi.`min_score`=0.5 To do returned map {'plastique': {'main_port_id': 28839338, 'sub_port_id': 28839397, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19572639, 'last_updated_at': datetime.datetime(2025, 11, 24, 18, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 18, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 18, 5, 35)}, 'metal': {'main_port_id': 28839338, 'sub_port_id': 28839398, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19572640, 'last_updated_at': datetime.datetime(2025, 11, 24, 18, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 18, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 18, 5, 35)}, 'Teint_Dans_La_Masse': {'main_port_id': 28839338, 'sub_port_id': 28839399, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19572641, 'last_updated_at': datetime.datetime(2025, 11, 24, 18, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 18, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 18, 5, 35)}, 'mal_croppe': {'main_port_id': 28839338, 'sub_port_id': 28839400, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19572642, 'last_updated_at': datetime.datetime(2025, 11, 24, 18, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 18, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 18, 5, 35)}, 'papier': {'main_port_id': 28839338, 'sub_port_id': 28839401, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19572643, 'last_updated_at': datetime.datetime(2025, 11, 24, 18, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 18, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 18, 5, 35)}, 'autre_refus': {'main_port_id': 28839338, 'sub_port_id': 28839402, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19572644, 'last_updated_at': datetime.datetime(2025, 11, 24, 18, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 18, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 18, 5, 35)}, 'Carton_gris': {'main_port_id': 28839338, 'sub_port_id': 28839403, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19572645, 'last_updated_at': datetime.datetime(2025, 11, 24, 18, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 18, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 18, 5, 35)}, 'environnement': {'main_port_id': 28839338, 'sub_port_id': 28839404, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19572646, 'last_updated_at': datetime.datetime(2025, 11, 24, 18, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 18, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 18, 5, 35)}, 'flou': {'main_port_id': 28839338, 'sub_port_id': 28839405, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19572647, 'last_updated_at': datetime.datetime(2025, 11, 24, 18, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 18, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 18, 5, 35)}, 'Carton_brun': {'main_port_id': 28839338, 'sub_port_id': 28839406, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19572648, 'last_updated_at': datetime.datetime(2025, 11, 24, 18, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 18, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 18, 5, 35)}, 'kraft': {'main_port_id': 28839338, 'sub_port_id': 28839407, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19572649, 'last_updated_at': datetime.datetime(2025, 11, 24, 18, 5, 35), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 18, 5, 35), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 18, 5, 35)}, 'cartonnette': {'main_port_id': 28839338, 'sub_port_id': 28839408, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19572650, 'last_updated_at': datetime.datetime(2025, 11, 24, 18, 13), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 18, 13), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 18, 5, 35)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28839397,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28839384 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28839398,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28839385 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28839399,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28839386 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28839400,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28839387 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28839401,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28839388 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28839402,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28839389 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28839403,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28839390 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28839404,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28839391 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28839405,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28839392 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28839406,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28839393 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28839407,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28839394 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28839408,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28839395 lien utilise dans velours : https://marlene.fotonower.com/velours/28839397,28839398,28839399,28839400,28839401,28839402,28839403,28839404,28839405,28839406,28839407,28839408?tags=plastique,metal,Teint_Dans_La_Masse,mal_croppe,papier,autre_refus,Carton_gris,environnement,flou,Carton_brun,kraft,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28839338]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1395935691, 1395935688, 1395935686, 1395935684, 1395935667, 1395935662, 1395935654, 1395935649, 1395935648, 1395935647] map_info['map_portfolio_photo'] : {28839338: [1395935691, 1395935688, 1395935686, 1395935684, 1395935667, 1395935662, 1395935654, 1395935649, 1395935648, 1395935647, 1395935605, 1395935601, 1395935589, 1395935543, 1395935535, 1395935527, 1395935524, 1395935522, 1395935520, 1395935506, 1395935502, 1395935499, 1395935497, 1395935495, 1395935459, 1395935457, 1395935454, 1395935452, 1395935451, 1395935450, 1395935423, 1395935420, 1395935418, 1395935416, 1395935398, 1395935394, 1395935390, 1395935388, 1395935387, 1395935386, 1395935353, 1395935349, 1395935346, 1395935344, 1395935325, 1395935321, 1395935318, 1395935316, 1395935308, 1395935265, 1395935249, 1395935225, 1395935163, 1395934927, 1395934892, 1395934858, 1395934796, 1395934749]} final : False mtd_id 4302 list_pids : [1395935691, 1395935688, 1395935686, 1395935684, 1395935667, 1395935662, 1395935654, 1395935649, 1395935648, 1395935647] Looping around the photos to save general results len do output : 1 /28839338. 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, '4104474') ('4302', '28839338', '1395935691', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935688', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935686', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935684', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935667', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935662', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935654', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935649', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935648', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935647', None, None, None, None, None, '4104474') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28839338', "{'plastique': 28839384, 'metal': 28839385, 'Teint_Dans_La_Masse': 28839386, 'mal_croppe': 28839387, 'papier': 28839388, 'autre_refus': 28839389, 'Carton_gris': 28839390, 'environnement': 28839391, 'flou': 28839392, 'Carton_brun': 28839393, 'kraft': 28839394, 'cartonnette': 28839395}", None, None, None, None, '4104474'), ('4302', '28839338', '1395935691', None, None, None, None, None, '4104474'), ('4302', '28839338', '1395935688', None, None, None, None, None, '4104474'), ('4302', '28839338', '1395935686', None, None, None, None, None, '4104474'), ('4302', '28839338', '1395935684', None, None, None, None, None, '4104474'), ('4302', '28839338', '1395935667', None, None, None, None, None, '4104474'), ('4302', '28839338', '1395935662', None, None, None, None, None, '4104474'), ('4302', '28839338', '1395935654', None, None, None, None, None, '4104474'), ('4302', '28839338', '1395935649', None, None, None, None, None, '4104474'), ('4302', '28839338', '1395935648', None, None, None, None, None, '4104474'), ('4302', '28839338', '1395935647', None, None, None, None, None, '4104474')] time used for this insertion : 0.015827178955078125 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8552031517028809 time spend to save output : 0.01615309715270996 total time spend for step 1 : 1.8713562488555908 step2:final Mon Nov 24 18:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28839338) 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 28839338 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1395934927,1395934892,1395934858,1395934796,1395934749,1395935265,1395935249,1395935225,1395935163,1395935325,1395935321,1395935318,1395935316,1395935308,1395935353,1395935349,1395935346,1395935344,1395935398,1395935394,1395935390,1395935388,1395935387,1395935386,1395935423,1395935420,1395935418,1395935416,1395935459,1395935457,1395935454,1395935452,1395935451,1395935450,1395935506,1395935502,1395935499,1395935497,1395935495,1395935543,1395935535,1395935527,1395935524,1395935522,1395935520,1395935605,1395935601,1395935589,1395935667,1395935662,1395935654,1395935649,1395935648,1395935691,1395935647,1395935688,1395935686,1395935684); 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([28839338]) Inside saveOutput : final : False verbose : True original output for save of step final : {1395935691: ('0.04204569428903312',), 1395935688: ('0.04204569428903312',), 1395935686: ('0.04204569428903312',), 1395935684: ('0.04204569428903312',), 1395935667: ('0.04204569428903312',), 1395935662: ('0.04204569428903312',), 1395935654: ('0.04204569428903312',), 1395935649: ('0.04204569428903312',), 1395935648: ('0.04204569428903312',), 1395935647: ('0.04204569428903312',)} new output for save of step final : {1395935691: ('0.04204569428903312',), 1395935688: ('0.04204569428903312',), 1395935686: ('0.04204569428903312',), 1395935684: ('0.04204569428903312',), 1395935667: ('0.04204569428903312',), 1395935662: ('0.04204569428903312',), 1395935654: ('0.04204569428903312',), 1395935649: ('0.04204569428903312',), 1395935648: ('0.04204569428903312',), 1395935647: ('0.04204569428903312',)} [1395935691, 1395935688, 1395935686, 1395935684, 1395935667, 1395935662, 1395935654, 1395935649, 1395935648, 1395935647] map_info['map_portfolio_photo'] : {28839338: [1395935691, 1395935688, 1395935686, 1395935684, 1395935667, 1395935662, 1395935654, 1395935649, 1395935648, 1395935647, 1395935605, 1395935601, 1395935589, 1395935543, 1395935535, 1395935527, 1395935524, 1395935522, 1395935520, 1395935506, 1395935502, 1395935499, 1395935497, 1395935495, 1395935459, 1395935457, 1395935454, 1395935452, 1395935451, 1395935450, 1395935423, 1395935420, 1395935418, 1395935416, 1395935398, 1395935394, 1395935390, 1395935388, 1395935387, 1395935386, 1395935353, 1395935349, 1395935346, 1395935344, 1395935325, 1395935321, 1395935318, 1395935316, 1395935308, 1395935265, 1395935249, 1395935225, 1395935163, 1395934927, 1395934892, 1395934858, 1395934796, 1395934749]} final : False mtd_id 4302 list_pids : [1395935691, 1395935688, 1395935686, 1395935684, 1395935667, 1395935662, 1395935654, 1395935649, 1395935648, 1395935647] Looping around the photos to save general results len do output : 10 /1395935691.Didn't retrieve data . /1395935688.Didn't retrieve data . /1395935686.Didn't retrieve data . /1395935684.Didn't retrieve data . /1395935667.Didn't retrieve data . /1395935662.Didn't retrieve data . /1395935654.Didn't retrieve data . /1395935649.Didn't retrieve data . /1395935648.Didn't retrieve data . /1395935647.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, '4104474') ('4302', '28839338', '1395935691', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935688', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935686', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935684', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935667', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935662', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935654', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935649', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935648', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935647', None, None, None, None, None, '4104474') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 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', '28839338', '1395935691', '0.04204569428903312', None, None, None, None, '4104474'), ('4302', '28839338', '1395935688', '0.04204569428903312', None, None, None, None, '4104474'), ('4302', '28839338', '1395935686', '0.04204569428903312', None, None, None, None, '4104474'), ('4302', '28839338', '1395935684', '0.04204569428903312', None, None, None, None, '4104474'), ('4302', '28839338', '1395935667', '0.04204569428903312', None, None, None, None, '4104474'), ('4302', '28839338', '1395935662', '0.04204569428903312', None, None, None, None, '4104474'), ('4302', '28839338', '1395935654', '0.04204569428903312', None, None, None, None, '4104474'), ('4302', '28839338', '1395935649', '0.04204569428903312', None, None, None, None, '4104474'), ('4302', '28839338', '1395935648', '0.04204569428903312', None, None, None, None, '4104474'), ('4302', '28839338', '1395935647', '0.04204569428903312', None, None, None, None, '4104474')] time used for this insertion : 0.015476465225219727 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08192706108093262 time spend to save output : 0.015972137451171875 total time spend for step 2 : 0.09789919853210449 step3:velours_tree Mon Nov 24 18:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {28839338: [{'plastique': 28839384, 'metal': 28839385, 'Teint_Dans_La_Masse': 28839386, 'mal_croppe': 28839387, 'papier': 28839388, 'autre_refus': 28839389, 'Carton_gris': 28839390, 'environnement': 28839391, 'flou': 28839392, 'Carton_brun': 28839393, 'kraft': 28839394, 'cartonnette': 28839395}]} input_args_next_step : {28839338: ()} output_args : {28839338: [{'plastique': 28839384, 'metal': 28839385, 'Teint_Dans_La_Masse': 28839386, 'mal_croppe': 28839387, 'papier': 28839388, 'autre_refus': 28839389, 'Carton_gris': 28839390, 'environnement': 28839391, 'flou': 28839392, 'Carton_brun': 28839393, 'kraft': 28839394, 'cartonnette': 28839395}]} args : 28839338 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'plastique': 28839384, 'metal': 28839385, 'Teint_Dans_La_Masse': 28839386, 'mal_croppe': 28839387, 'papier': 28839388, 'autre_refus': 28839389, 'Carton_gris': 28839390, 'environnement': 28839391, 'flou': 28839392, 'Carton_brun': 28839393, 'kraft': 28839394, 'cartonnette': 28839395},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28839338) 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([28839338]) 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.38359618186950684 time spend to save output : 6.103515625e-05 total time spend for step 3 : 0.38365721702575684 step4:send_mail_cod Mon Nov 24 18:15:00 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1395935691: ('0.04204569428903312',), 1395935688: ('0.04204569428903312',), 1395935686: ('0.04204569428903312',), 1395935684: ('0.04204569428903312',), 1395935667: ('0.04204569428903312',), 1395935662: ('0.04204569428903312',), 1395935654: ('0.04204569428903312',), 1395935649: ('0.04204569428903312',), 1395935648: ('0.04204569428903312',), 1395935647: ('0.04204569428903312',)} input_args_next_step : {1395935691: ()} output_args : {1395935691: ('0.04204569428903312',), 1395935688: ('0.04204569428903312',), 1395935686: ('0.04204569428903312',), 1395935684: ('0.04204569428903312',), 1395935667: ('0.04204569428903312',), 1395935662: ('0.04204569428903312',), 1395935654: ('0.04204569428903312',), 1395935649: ('0.04204569428903312',), 1395935648: ('0.04204569428903312',), 1395935647: ('0.04204569428903312',)} args : 1395935691 depend.output_id : 0 input_args_next_step : {1395935691: ('0.04204569428903312',), 1395935688: ()} output_args : {1395935691: ('0.04204569428903312',), 1395935688: ('0.04204569428903312',), 1395935686: ('0.04204569428903312',), 1395935684: ('0.04204569428903312',), 1395935667: ('0.04204569428903312',), 1395935662: ('0.04204569428903312',), 1395935654: ('0.04204569428903312',), 1395935649: ('0.04204569428903312',), 1395935648: ('0.04204569428903312',), 1395935647: ('0.04204569428903312',)} args : 1395935688 depend.output_id : 0 input_args_next_step : {1395935691: ('0.04204569428903312',), 1395935688: ('0.04204569428903312',), 1395935686: ()} output_args : {1395935691: ('0.04204569428903312',), 1395935688: ('0.04204569428903312',), 1395935686: ('0.04204569428903312',), 1395935684: ('0.04204569428903312',), 1395935667: ('0.04204569428903312',), 1395935662: ('0.04204569428903312',), 1395935654: ('0.04204569428903312',), 1395935649: ('0.04204569428903312',), 1395935648: ('0.04204569428903312',), 1395935647: ('0.04204569428903312',)} args : 1395935686 depend.output_id : 0 input_args_next_step : {1395935691: ('0.04204569428903312',), 1395935688: ('0.04204569428903312',), 1395935686: ('0.04204569428903312',), 1395935684: ()} output_args : {1395935691: ('0.04204569428903312',), 1395935688: ('0.04204569428903312',), 1395935686: ('0.04204569428903312',), 1395935684: ('0.04204569428903312',), 1395935667: ('0.04204569428903312',), 1395935662: ('0.04204569428903312',), 1395935654: ('0.04204569428903312',), 1395935649: ('0.04204569428903312',), 1395935648: ('0.04204569428903312',), 1395935647: ('0.04204569428903312',)} args : 1395935684 depend.output_id : 0 input_args_next_step : {1395935691: ('0.04204569428903312',), 1395935688: ('0.04204569428903312',), 1395935686: ('0.04204569428903312',), 1395935684: ('0.04204569428903312',), 1395935667: ()} output_args : {1395935691: ('0.04204569428903312',), 1395935688: ('0.04204569428903312',), 1395935686: ('0.04204569428903312',), 1395935684: ('0.04204569428903312',), 1395935667: ('0.04204569428903312',), 1395935662: ('0.04204569428903312',), 1395935654: ('0.04204569428903312',), 1395935649: ('0.04204569428903312',), 1395935648: ('0.04204569428903312',), 1395935647: ('0.04204569428903312',)} args : 1395935667 depend.output_id : 0 input_args_next_step : {1395935691: ('0.04204569428903312',), 1395935688: ('0.04204569428903312',), 1395935686: ('0.04204569428903312',), 1395935684: ('0.04204569428903312',), 1395935667: ('0.04204569428903312',), 1395935662: ()} output_args : {1395935691: ('0.04204569428903312',), 1395935688: ('0.04204569428903312',), 1395935686: ('0.04204569428903312',), 1395935684: ('0.04204569428903312',), 1395935667: ('0.04204569428903312',), 1395935662: ('0.04204569428903312',), 1395935654: ('0.04204569428903312',), 1395935649: ('0.04204569428903312',), 1395935648: ('0.04204569428903312',), 1395935647: ('0.04204569428903312',)} args : 1395935662 depend.output_id : 0 input_args_next_step : {1395935691: ('0.04204569428903312',), 1395935688: ('0.04204569428903312',), 1395935686: ('0.04204569428903312',), 1395935684: ('0.04204569428903312',), 1395935667: ('0.04204569428903312',), 1395935662: ('0.04204569428903312',), 1395935654: ()} output_args : {1395935691: ('0.04204569428903312',), 1395935688: ('0.04204569428903312',), 1395935686: ('0.04204569428903312',), 1395935684: ('0.04204569428903312',), 1395935667: ('0.04204569428903312',), 1395935662: ('0.04204569428903312',), 1395935654: ('0.04204569428903312',), 1395935649: ('0.04204569428903312',), 1395935648: ('0.04204569428903312',), 1395935647: ('0.04204569428903312',)} args : 1395935654 depend.output_id : 0 input_args_next_step : {1395935691: ('0.04204569428903312',), 1395935688: ('0.04204569428903312',), 1395935686: ('0.04204569428903312',), 1395935684: ('0.04204569428903312',), 1395935667: ('0.04204569428903312',), 1395935662: ('0.04204569428903312',), 1395935654: ('0.04204569428903312',), 1395935649: ()} output_args : {1395935691: ('0.04204569428903312',), 1395935688: ('0.04204569428903312',), 1395935686: ('0.04204569428903312',), 1395935684: ('0.04204569428903312',), 1395935667: ('0.04204569428903312',), 1395935662: ('0.04204569428903312',), 1395935654: ('0.04204569428903312',), 1395935649: ('0.04204569428903312',), 1395935648: ('0.04204569428903312',), 1395935647: ('0.04204569428903312',)} args : 1395935649 depend.output_id : 0 input_args_next_step : {1395935691: ('0.04204569428903312',), 1395935688: ('0.04204569428903312',), 1395935686: ('0.04204569428903312',), 1395935684: ('0.04204569428903312',), 1395935667: ('0.04204569428903312',), 1395935662: ('0.04204569428903312',), 1395935654: ('0.04204569428903312',), 1395935649: ('0.04204569428903312',), 1395935648: ()} output_args : {1395935691: ('0.04204569428903312',), 1395935688: ('0.04204569428903312',), 1395935686: ('0.04204569428903312',), 1395935684: ('0.04204569428903312',), 1395935667: ('0.04204569428903312',), 1395935662: ('0.04204569428903312',), 1395935654: ('0.04204569428903312',), 1395935649: ('0.04204569428903312',), 1395935648: ('0.04204569428903312',), 1395935647: ('0.04204569428903312',)} args : 1395935648 depend.output_id : 0 input_args_next_step : {1395935691: ('0.04204569428903312',), 1395935688: ('0.04204569428903312',), 1395935686: ('0.04204569428903312',), 1395935684: ('0.04204569428903312',), 1395935667: ('0.04204569428903312',), 1395935662: ('0.04204569428903312',), 1395935654: ('0.04204569428903312',), 1395935649: ('0.04204569428903312',), 1395935648: ('0.04204569428903312',), 1395935647: ()} output_args : {1395935691: ('0.04204569428903312',), 1395935688: ('0.04204569428903312',), 1395935686: ('0.04204569428903312',), 1395935684: ('0.04204569428903312',), 1395935667: ('0.04204569428903312',), 1395935662: ('0.04204569428903312',), 1395935654: ('0.04204569428903312',), 1395935649: ('0.04204569428903312',), 1395935648: ('0.04204569428903312',), 1395935647: ('0.04204569428903312',)} args : 1395935647 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 : {28839338: [{'plastique': 28839384, 'metal': 28839385, 'Teint_Dans_La_Masse': 28839386, 'mal_croppe': 28839387, 'papier': 28839388, 'autre_refus': 28839389, 'Carton_gris': 28839390, 'environnement': 28839391, 'flou': 28839392, 'Carton_brun': 28839393, 'kraft': 28839394, 'cartonnette': 28839395}]} input_args_next_step : {1395935691: ('0.04204569428903312',), 1395935688: ('0.04204569428903312',), 1395935686: ('0.04204569428903312',), 1395935684: ('0.04204569428903312',), 1395935667: ('0.04204569428903312',), 1395935662: ('0.04204569428903312',), 1395935654: ('0.04204569428903312',), 1395935649: ('0.04204569428903312',), 1395935648: ('0.04204569428903312',), 1395935647: ('0.04204569428903312',), 28839338: ()} output_args : {28839338: [{'plastique': 28839384, 'metal': 28839385, 'Teint_Dans_La_Masse': 28839386, 'mal_croppe': 28839387, 'papier': 28839388, 'autre_refus': 28839389, 'Carton_gris': 28839390, 'environnement': 28839391, 'flou': 28839392, 'Carton_brun': 28839393, 'kraft': 28839394, 'cartonnette': 28839395}]} args : 28839338 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 :11, first value : ('0.04204569428903312',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28839338) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1395935691,1395935688,1395935686,1395935684,1395935667,1395935662,1395935654,1395935649,1395935648,1395935647) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1395935647 begin to download photo : 1395935654 begin to download photo : 1395935684 begin to download photo : 1395935691 download finish for photo 1395935654 begin to download photo : 1395935662 download finish for photo 1395935647 begin to download photo : 1395935648 download finish for photo 1395935691 download finish for photo 1395935684 begin to download photo : 1395935686 download finish for photo 1395935648 begin to download photo : 1395935649 download finish for photo 1395935662 begin to download photo : 1395935667 download finish for photo 1395935686 begin to download photo : 1395935688 download finish for photo 1395935649 download finish for photo 1395935688 download finish for photo 1395935667 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P28839338_24-11-2025_18_15_01.pdf 28839384 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28839384 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395935597: '1764004225_2987084_1395935420_9b241c37aa65fdd81c560f22eb44551c_rle_crop_4043910323_0.png', 1395935729: '1764004386_2995881_1395934927_c9baa69e927436f4691bf99182c4de47_rle_crop_4043911209_0.png', 1395935730: '1764004386_2995881_1395934927_c9baa69e927436f4691bf99182c4de47_rle_crop_4043911218_0.png', 1395935731: '1764004386_2995881_1395934858_3dc4eec76e4e95494c11024331e8a4ef_rle_crop_4043911238_0.png', 1395935732: '1764004386_2995881_1395934796_1c1a7f4fda9f01e670bb93afeeb710e8_rle_crop_4043911252_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/e709061cf3887b10b45bdc6165279190_51330251.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/5148de2305114514fafa98ad75b88848_72063003.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/33bc2be265273ff8fd8e9e229bc5f0f8_76372368.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/3dfb5cf23cd9f49c0a8ea404e1c0189e_51607374.png change filename to text .imagette288393841764004501/ imagette288393841764004501/1764004386_2995881_1395934927_c9baa69e927436f4691bf99182c4de47_rle_crop_4043911218_0.png.png imagette288393841764004501/1764004386_2995881_1395934927_c9baa69e927436f4691bf99182c4de47_rle_crop_4043911209_0.png.png imagette288393841764004501/1764004386_2995881_1395934796_1c1a7f4fda9f01e670bb93afeeb710e8_rle_crop_4043911252_0.png.png imagette288393841764004501/1764004386_2995881_1395934858_3dc4eec76e4e95494c11024331e8a4ef_rle_crop_4043911238_0.png.png imagette288393841764004501/1764004225_2987084_1395935420_9b241c37aa65fdd81c560f22eb44551c_rle_crop_4043910323_0.png.png imagette288393851764004501/ imagette288393871764004501/ wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/7dadbb2bff9a01c2103b5865d4b9cebf_78139439.png imagette288393841764004501 28839385 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28839385 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette288393851764004501 28839387 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28839387 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette288393871764004501 28839389 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28839389 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395935530: '1764004167_2984106_1395935308_26f737a52cd45d41aa256458b24c90a5_rle_crop_4043910177_0.png', 1395935636: '1764004266_2989638_1395935394_1e1985a684814ef8c134c38da1823984_rle_crop_4043910572_0.png', 1395935652: '1764004285_2990805_1395935308_26f737a52cd45d41aa256458b24c90a5_rle_crop_4043910177_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/88c94cd391db465489dc119e25823cf6_96655863.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/64a7f0838a09524a03590f05da5f5a69_24001925.png change filename to text .imagette288393891764004501/ imagette288393891764004501/1764004167_2984106_1395935308_26f737a52cd45d41aa256458b24c90a5_rle_crop_4043910177_0.png.png imagette288393891764004501/1764004266_2989638_1395935394_1e1985a684814ef8c134c38da1823984_rle_crop_4043910572_0.png.png imagette288393891764004501/1764004285_2990805_1395935308_26f737a52cd45d41aa256458b24c90a5_rle_crop_4043910177_0.png.png imagette288393921764004501/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/88c94cd391db465489dc119e25823cf6_26714214.png imagette288393891764004501 28839392 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28839392 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette288393921764004501 28839394 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28839394 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395935541: '1764004167_2984106_1395935321_af46ef64b74496e67178d38f270f23b1_rle_crop_4043910137_0.png', 1395935665: '1764004285_2990805_1395935321_af46ef64b74496e67178d38f270f23b1_rle_crop_4043910137_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/d58a0541fb82eb5f4da213f8fac0c6c0_73048942.png change filename to text .imagette288393941764004501/ imagette288393941764004501/1764004167_2984106_1395935321_af46ef64b74496e67178d38f270f23b1_rle_crop_4043910137_0.png.png imagette288393941764004501/1764004285_2990805_1395935321_af46ef64b74496e67178d38f270f23b1_rle_crop_4043910137_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/d58a0541fb82eb5f4da213f8fac0c6c0_69055803.png imagette288393941764004501 28839395 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28839395 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395935511: '1764004145_2983695_1395935344_b3e8cfa3982eb87d1654b1d2cf08b7c9_rle_crop_4043909968_0.png', 1395935533: '1764004167_2984106_1395935353_9b278cbfb1bdf5fb6131f1cce4fca318_rle_crop_4043910116_0.png', 1395935534: '1764004167_2984106_1395935316_1137f14a1be504633dee659a4357056d_rle_crop_4043910165_0.png', 1395935537: '1764004167_2984106_1395935316_1137f14a1be504633dee659a4357056d_rle_crop_4043910162_0.png', 1395935538: '1764004167_2984106_1395935316_1137f14a1be504633dee659a4357056d_rle_crop_4043910166_0.png', 1395935639: '1764004266_2989638_1395935423_fd5dda6c4f871dda28c231a2be4a3697_rle_crop_4043910554_0.png', 1395935640: '1764004266_2989638_1395935394_1e1985a684814ef8c134c38da1823984_rle_crop_4043910578_0.png', 1395935641: '1764004266_2989638_1395935394_1e1985a684814ef8c134c38da1823984_rle_crop_4043910571_0.png', 1395935642: '1764004266_2989638_1395935390_e490695a94a98b330f6d65463044a526_rle_crop_4043910589_0.png', 1395935643: '1764004266_2989638_1395935390_e490695a94a98b330f6d65463044a526_rle_crop_4043910591_0.png', 1395935644: '1764004266_2989638_1395935386_bb4a190c2af4e54e0a53ae56c899afaf_rle_crop_4043910762_0.png', 1395935656: '1764004285_2990805_1395935353_9b278cbfb1bdf5fb6131f1cce4fca318_rle_crop_4043910116_0.png', 1395935657: '1764004285_2990805_1395935316_1137f14a1be504633dee659a4357056d_rle_crop_4043910165_0.png', 1395935658: '1764004285_2990805_1395935316_1137f14a1be504633dee659a4357056d_rle_crop_4043910162_0.png', 1395935659: '1764004285_2990805_1395935316_1137f14a1be504633dee659a4357056d_rle_crop_4043910166_0.png', 1395935725: '1764004386_2995881_1395934927_c9baa69e927436f4691bf99182c4de47_rle_crop_4043911205_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/84e9e7d2aa6027bf04786b94d310631c_26307089.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/97eb47e85ec0cf1ecb14df4bd2fe1820_16597367.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/4701a0efbf070e3d40e198969f9f5180_91483527.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/a0fd32855c0dd00d1c0a3c80e580aa6a_51994239.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/a3c1e952fa9babab4ca72395243f1002_8605721.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/79c069eb8f981e53f073afae2b3e0f8d_32904262.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/97a482a809bb0c6dc24ad627e2f4d7fb_80920275.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/b3fc0fe848a41ed54381b1a6d8adca69_98957848.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/879a3df94c263944beee5d03576fccac_83547859.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/dd2955e375bb6a4cfbe0f04f64130d47_62197572.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/67d3f3d08474620fe9f4e88ff49a37c0_9736526.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/97eb47e85ec0cf1ecb14df4bd2fe1820_9346536.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/4701a0efbf070e3d40e198969f9f5180_43142871.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/a0fd32855c0dd00d1c0a3c80e580aa6a_59746506.png change filename to text .wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/a3c1e952fa9babab4ca72395243f1002_94127212.png change filename to text .imagette288393951764004502/ imagette288393951764004502/1764004266_2989638_1395935390_e490695a94a98b330f6d65463044a526_rle_crop_4043910589_0.png.png imagette288393951764004502/1764004167_2984106_1395935353_9b278cbfb1bdf5fb6131f1cce4fca318_rle_crop_4043910116_0.png.png imagette288393951764004502/1764004285_2990805_1395935316_1137f14a1be504633dee659a4357056d_rle_crop_4043910166_0.png.png imagette288393951764004502/1764004167_2984106_1395935316_1137f14a1be504633dee659a4357056d_rle_crop_4043910162_0.png.png imagette288393951764004502/1764004266_2989638_1395935423_fd5dda6c4f871dda28c231a2be4a3697_rle_crop_4043910554_0.png.png imagette288393951764004502/1764004167_2984106_1395935316_1137f14a1be504633dee659a4357056d_rle_crop_4043910166_0.png.png imagette288393951764004502/1764004285_2990805_1395935353_9b278cbfb1bdf5fb6131f1cce4fca318_rle_crop_4043910116_0.png.png imagette288393951764004502/1764004285_2990805_1395935316_1137f14a1be504633dee659a4357056d_rle_crop_4043910162_0.png.png imagette288393951764004502/1764004167_2984106_1395935316_1137f14a1be504633dee659a4357056d_rle_crop_4043910165_0.png.png imagette288393951764004502/1764004285_2990805_1395935316_1137f14a1be504633dee659a4357056d_rle_crop_4043910165_0.png.png imagette288393951764004502/1764004266_2989638_1395935394_1e1985a684814ef8c134c38da1823984_rle_crop_4043910571_0.png.png imagette288393951764004502/1764004266_2989638_1395935386_bb4a190c2af4e54e0a53ae56c899afaf_rle_crop_4043910762_0.png.png imagette288393951764004502/1764004266_2989638_1395935390_e490695a94a98b330f6d65463044a526_rle_crop_4043910591_0.png.png imagette288393951764004502/1764004145_2983695_1395935344_b3e8cfa3982eb87d1654b1d2cf08b7c9_rle_crop_4043909968_0.png.png imagette288393951764004502/1764004386_2995881_1395934927_c9baa69e927436f4691bf99182c4de47_rle_crop_4043911205_0.png.png imagette288393951764004502/1764004266_2989638_1395935394_1e1985a684814ef8c134c38da1823984_rle_crop_4043910578_0.png.png wget -O 16.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/02ab69664901efaa50da9eef8efd5426_17482546.png imagette288393951764004502 28839386 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28839386 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395935434: '1764004025_2980405_1395935325_75860fef00f590a2a742ae0071a25c0b_rle_crop_4043909766_0.png', 1395935435: '1764004025_2980405_1395935325_75860fef00f590a2a742ae0071a25c0b_rle_crop_4043909760_0.png', 1395935436: '1764004025_2980405_1395935163_4c04d6ba2f41818a9814952ce5aec8d6_rle_crop_4043909786_0.png', 1395935437: '1764004025_2980405_1395935163_4c04d6ba2f41818a9814952ce5aec8d6_rle_crop_4043909792_0.png', 1395935438: '1764004025_2980405_1395935163_4c04d6ba2f41818a9814952ce5aec8d6_rle_crop_4043909791_0.png', 1395935528: '1764004167_2984106_1395935321_af46ef64b74496e67178d38f270f23b1_rle_crop_4043910136_0.png', 1395935529: '1764004167_2984106_1395935318_dca9bd7518d3431558098b88ae558d45_rle_crop_4043910151_0.png', 1395935635: '1764004266_2989638_1395935387_24842ef86793180cd5cd6cc175c4fb3d_rle_crop_4043910623_0.png', 1395935650: '1764004285_2990805_1395935321_af46ef64b74496e67178d38f270f23b1_rle_crop_4043910136_0.png', 1395935651: '1764004285_2990805_1395935318_dca9bd7518d3431558098b88ae558d45_rle_crop_4043910151_0.png', 1395935716: '1764004386_2995881_1395935265_e33e9cab540607af71ba2390921a56f4_rle_crop_4043911191_0.png', 1395935717: '1764004386_2995881_1395934927_c9baa69e927436f4691bf99182c4de47_rle_crop_4043911212_0.png', 1395935718: '1764004386_2995881_1395934927_c9baa69e927436f4691bf99182c4de47_rle_crop_4043911214_0.png', 1395935719: '1764004386_2995881_1395934892_e7b6abd8597af6913e9deeb2d8cb8d88_rle_crop_4043911230_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/f26dcb8a33f150866f8cc40a5e8d6935_377251.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/d84a51d70b32c59d5646f853ce49955f_27765203.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/b70b83e30ce4b8c6d913892073ec4c8a_18204212.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/5ed54896075d5e4d2c084b50974a0740_43411264.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/b2b96f0a732b9bae062b4e6c665eb7f5_87488033.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/d4950e9d146721060a05f9b292ca4058_29029934.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/59a96ea78b3595aa0958953ad73061f3_93912286.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/92c83b9994405de8895f171dfde3d48c_67786745.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/d4950e9d146721060a05f9b292ca4058_64485759.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/59a96ea78b3595aa0958953ad73061f3_76202521.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/ee97ab5f84507a0fec56391491a413a6_52548243.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/f1d450e5a44a38059fbd45e0f345de67_31210571.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/337ae22f8bf8b1124005ae8e9dce6a55_91983302.png change filename to text .imagette288393861764004503/ imagette288393861764004503/1764004025_2980405_1395935163_4c04d6ba2f41818a9814952ce5aec8d6_rle_crop_4043909786_0.png.png imagette288393861764004503/1764004386_2995881_1395934927_c9baa69e927436f4691bf99182c4de47_rle_crop_4043911212_0.png.png imagette288393861764004503/1764004167_2984106_1395935321_af46ef64b74496e67178d38f270f23b1_rle_crop_4043910136_0.png.png imagette288393861764004503/1764004025_2980405_1395935163_4c04d6ba2f41818a9814952ce5aec8d6_rle_crop_4043909791_0.png.png imagette288393861764004503/1764004025_2980405_1395935325_75860fef00f590a2a742ae0071a25c0b_rle_crop_4043909760_0.png.png imagette288393861764004503/1764004386_2995881_1395935265_e33e9cab540607af71ba2390921a56f4_rle_crop_4043911191_0.png.png imagette288393861764004503/1764004025_2980405_1395935325_75860fef00f590a2a742ae0071a25c0b_rle_crop_4043909766_0.png.png imagette288393861764004503/1764004025_2980405_1395935163_4c04d6ba2f41818a9814952ce5aec8d6_rle_crop_4043909792_0.png.png imagette288393861764004503/1764004285_2990805_1395935321_af46ef64b74496e67178d38f270f23b1_rle_crop_4043910136_0.png.png imagette288393861764004503/1764004285_2990805_1395935318_dca9bd7518d3431558098b88ae558d45_rle_crop_4043910151_0.png.png imagette288393861764004503/1764004167_2984106_1395935318_dca9bd7518d3431558098b88ae558d45_rle_crop_4043910151_0.png.png imagette288393861764004503/1764004266_2989638_1395935387_24842ef86793180cd5cd6cc175c4fb3d_rle_crop_4043910623_0.png.png imagette288393861764004503/1764004386_2995881_1395934927_c9baa69e927436f4691bf99182c4de47_rle_crop_4043911214_0.png.png imagette288393861764004503/1764004386_2995881_1395934892_e7b6abd8597af6913e9deeb2d8cb8d88_rle_crop_4043911230_0.png.png wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/4ed489ff821a91bcc83554c360e22329_55780291.png imagette288393861764004503 28839390 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28839390 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395935439: '1764004025_2980405_1395935325_75860fef00f590a2a742ae0071a25c0b_rle_crop_4043909757_0.png', 1395935531: '1764004167_2984106_1395935321_af46ef64b74496e67178d38f270f23b1_rle_crop_4043910133_0.png', 1395935638: '1764004266_2989638_1395935388_089573339c1b6dde0641845dfe570a2d_rle_crop_4043910610_0.png', 1395935655: '1764004285_2990805_1395935321_af46ef64b74496e67178d38f270f23b1_rle_crop_4043910133_0.png', 1395935721: '1764004386_2995881_1395935265_e33e9cab540607af71ba2390921a56f4_rle_crop_4043911188_0.png', 1395935722: '1764004386_2995881_1395935265_e33e9cab540607af71ba2390921a56f4_rle_crop_4043911194_0.png', 1395935723: '1764004386_2995881_1395934858_3dc4eec76e4e95494c11024331e8a4ef_rle_crop_4043911242_0.png', 1395935724: '1764004386_2995881_1395934858_3dc4eec76e4e95494c11024331e8a4ef_rle_crop_4043911237_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/1161e9e1fdd764d7bbc940927cb8df16_27435750.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/dcac409f7b89c9c922efc1cf5a982f4b_63252719.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/f2576d4d4d9c5fc7d5fa8e4f1166f112_88017730.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/dcac409f7b89c9c922efc1cf5a982f4b_29618936.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/1b4e64e093783a38bbed2c7065c9a02b_91464181.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/c51369e5899a1b9c5bc725dbafa5ad9e_54635313.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/3e57a1c2c927b6fbf0191e8d96ccfa04_3959271.png change filename to text .imagette288393901764004504/ imagette288393901764004504/1764004167_2984106_1395935321_af46ef64b74496e67178d38f270f23b1_rle_crop_4043910133_0.png.png imagette288393901764004504/1764004386_2995881_1395935265_e33e9cab540607af71ba2390921a56f4_rle_crop_4043911188_0.png.png imagette288393901764004504/1764004386_2995881_1395934858_3dc4eec76e4e95494c11024331e8a4ef_rle_crop_4043911242_0.png.png imagette288393901764004504/1764004025_2980405_1395935325_75860fef00f590a2a742ae0071a25c0b_rle_crop_4043909757_0.png.png imagette288393901764004504/1764004266_2989638_1395935388_089573339c1b6dde0641845dfe570a2d_rle_crop_4043910610_0.png.png imagette288393901764004504/1764004386_2995881_1395934858_3dc4eec76e4e95494c11024331e8a4ef_rle_crop_4043911237_0.png.png imagette288393901764004504/1764004386_2995881_1395935265_e33e9cab540607af71ba2390921a56f4_rle_crop_4043911194_0.png.png imagette288393901764004504/1764004285_2990805_1395935321_af46ef64b74496e67178d38f270f23b1_rle_crop_4043910133_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/d37fe54c54995489a8b8f4ef3277b30e_79161092.png imagette288393901764004504 28839393 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28839393 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395935441: '1764004025_2980405_1395935325_75860fef00f590a2a742ae0071a25c0b_rle_crop_4043909764_0.png', 1395935540: '1764004167_2984106_1395935321_af46ef64b74496e67178d38f270f23b1_rle_crop_4043910141_0.png', 1395935645: '1764004266_2989638_1395935394_1e1985a684814ef8c134c38da1823984_rle_crop_4043910575_0.png', 1395935661: '1764004285_2990805_1395935321_af46ef64b74496e67178d38f270f23b1_rle_crop_4043910141_0.png', 1395935726: '1764004386_2995881_1395935265_e33e9cab540607af71ba2390921a56f4_rle_crop_4043911190_0.png', 1395935727: '1764004386_2995881_1395934892_e7b6abd8597af6913e9deeb2d8cb8d88_rle_crop_4043911227_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/22589acdc6baff023214781a1a068ae0_99343088.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/8bd6c829231711d94a13a8bb4837132d_75442100.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/25caffa050519cf21137624d47a54949_35736085.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/8bd6c829231711d94a13a8bb4837132d_33087246.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/4e67109c47ce984d9129d9f37b0482b3_75250915.png change filename to text .imagette288393931764004504/ imagette288393931764004504/1764004266_2989638_1395935394_1e1985a684814ef8c134c38da1823984_rle_crop_4043910575_0.png.png imagette288393931764004504/1764004386_2995881_1395935265_e33e9cab540607af71ba2390921a56f4_rle_crop_4043911190_0.png.png imagette288393931764004504/1764004285_2990805_1395935321_af46ef64b74496e67178d38f270f23b1_rle_crop_4043910141_0.png.png imagette288393931764004504/1764004025_2980405_1395935325_75860fef00f590a2a742ae0071a25c0b_rle_crop_4043909764_0.png.png imagette288393931764004504/1764004386_2995881_1395934892_e7b6abd8597af6913e9deeb2d8cb8d88_rle_crop_4043911227_0.png.png imagette288393931764004504/1764004167_2984106_1395935321_af46ef64b74496e67178d38f270f23b1_rle_crop_4043910141_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/b282a641922b287101cf1d2ddd7e3741_60092557.png imagette288393931764004504 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28839338 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28839397,28839398,28839399,28839400,28839401,28839402,28839403,28839404,28839405,28839406,28839407,28839408?tags=plastique,metal,Teint_Dans_La_Masse,mal_croppe,papier,autre_refus,Carton_gris,environnement,flou,Carton_brun,kraft,cartonnette your option no_mail is active, we will not send the real mail to your client args[1395935691] : ('0.04204569428903312',) no score found for photo 1395935691 We are sending mail with results at report@fotonower.com args[1395935688] : ('0.04204569428903312',) no score found for photo 1395935688 We are sending mail with results at report@fotonower.com args[1395935686] : ('0.04204569428903312',) no score found for photo 1395935686 We are sending mail with results at report@fotonower.com args[1395935684] : ('0.04204569428903312',) no score found for photo 1395935684 We are sending mail with results at report@fotonower.com args[1395935667] : ('0.04204569428903312',) no score found for photo 1395935667 We are sending mail with results at report@fotonower.com args[1395935662] : ('0.04204569428903312',) no score found for photo 1395935662 We are sending mail with results at report@fotonower.com args[1395935654] : ('0.04204569428903312',) no score found for photo 1395935654 We are sending mail with results at report@fotonower.com args[1395935649] : ('0.04204569428903312',) no score found for photo 1395935649 We are sending mail with results at report@fotonower.com args[1395935648] : ('0.04204569428903312',) no score found for photo 1395935648 We are sending mail with results at report@fotonower.com args[1395935647] : ('0.04204569428903312',) no score found for photo 1395935647 We are sending mail with results at report@fotonower.com refus_total : 0.04204569428903312 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28839338 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_P28839338_24-11-2025_18_15_01.pdf results_Auto_P28839338_24-11-2025_18_15_01.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28839338_24-11-2025_18_15_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','28839338','results_Auto_P28839338_24-11-2025_18_15_01.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28839338_24-11-2025_18_15_01.pdf','pdf','','0.22','0.04204569428903312') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28839338]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1395935691, 1395935688, 1395935686, 1395935684, 1395935667, 1395935662, 1395935654, 1395935649, 1395935648, 1395935647] map_info['map_portfolio_photo'] : {28839338: [1395935691, 1395935688, 1395935686, 1395935684, 1395935667, 1395935662, 1395935654, 1395935649, 1395935648, 1395935647, 1395935605, 1395935601, 1395935589, 1395935543, 1395935535, 1395935527, 1395935524, 1395935522, 1395935520, 1395935506, 1395935502, 1395935499, 1395935497, 1395935495, 1395935459, 1395935457, 1395935454, 1395935452, 1395935451, 1395935450, 1395935423, 1395935420, 1395935418, 1395935416, 1395935398, 1395935394, 1395935390, 1395935388, 1395935387, 1395935386, 1395935353, 1395935349, 1395935346, 1395935344, 1395935325, 1395935321, 1395935318, 1395935316, 1395935308, 1395935265, 1395935249, 1395935225, 1395935163, 1395934927, 1395934892, 1395934858, 1395934796, 1395934749]} final : False mtd_id 4302 list_pids : [1395935691, 1395935688, 1395935686, 1395935684, 1395935667, 1395935662, 1395935654, 1395935649, 1395935648, 1395935647] 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, '4104474') ('4302', '28839338', '1395935691', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935688', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935686', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935684', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935667', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935662', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935654', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935649', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935648', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935647', None, None, None, None, None, '4104474') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '28839338', '1395935691', None, None, None, None, None, '4104474'), ('4302', '28839338', '1395935688', None, None, None, None, None, '4104474'), ('4302', '28839338', '1395935686', None, None, None, None, None, '4104474'), ('4302', '28839338', '1395935684', None, None, None, None, None, '4104474'), ('4302', '28839338', '1395935667', None, None, None, None, None, '4104474'), ('4302', '28839338', '1395935662', None, None, None, None, None, '4104474'), ('4302', '28839338', '1395935654', None, None, None, None, None, '4104474'), ('4302', '28839338', '1395935649', None, None, None, None, None, '4104474'), ('4302', '28839338', '1395935648', None, None, None, None, None, '4104474'), ('4302', '28839338', '1395935647', None, None, None, None, None, '4104474')] time used for this insertion : 0.017852783203125 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.803718090057373 time spend to save output : 0.01808619499206543 total time spend for step 4 : 5.8218042850494385 step5:split_time_score Mon Nov 24 18:15:06 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 : ['28839338'] 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 : [('28839338',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28839338) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1395935691: {'path': 'temp/1764004500_117369_1395935691_90963bb8b9d5aa7a9b662f58bae99330.jpg', 'extension': 'jpg'}, 1395935647: {'path': 'temp/1764004500_117369_1395935647_46b8f26657162e2afae4c3d8c23b98a6.jpg', 'extension': 'jpg'}, 1395935648: {'path': 'temp/1764004500_117369_1395935648_4f62efb469c4e97f7252681f3e0cdd6f.jpg', 'extension': 'jpg'}, 1395935649: {'path': 'temp/1764004500_117369_1395935649_dad843c5fe2a9ea667f6642d2c7de778.jpg', 'extension': 'jpg'}, 1395935684: {'path': 'temp/1764004500_117369_1395935684_1f6f292032f2f7cab9320b34f5f6d0b0.jpg', 'extension': 'jpg'}, 1395935686: {'path': 'temp/1764004500_117369_1395935686_8b4bec6ee6af3cdf378fe7009b7febcd.jpg', 'extension': 'jpg'}, 1395935688: {'path': 'temp/1764004500_117369_1395935688_9b6c7e70179c13b1c8954e5d28130693.jpg', 'extension': 'jpg'}, 1395935654: {'path': 'temp/1764004500_117369_1395935654_16a6002e042145d7806cd83e9d7b8b06.jpg', 'extension': 'jpg'}, 1395935662: {'path': 'temp/1764004500_117369_1395935662_1ee7f8c3d46371b515d955ecfdc006f0.jpg', 'extension': 'jpg'}, 1395935667: {'path': 'temp/1764004500_117369_1395935667_e4316d68d96ef090cbd5cdc98a6cf276.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 = 28839338; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 28839338 group by h (('18', 58),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=28839338 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 (28839338) 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 (28839338) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 24112025 28839338 Nombre de photos uploadées : 58 / 23040 (0%) 24112025 28839338 Nombre de photos taguées (types de déchets): 0 / 58 (0%) 24112025 28839338 Nombre de photos taguées (volume) : 0 / 58 (0%) [{'photo_id': 1395934927, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/c9baa69e927436f4691bf99182c4de47.jpg', 'username': None, 'uploaded_at': 1764003728, 'text': 'image_24112025_18_01_04_10159.jpg'}, {'photo_id': 1395934892, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/e7b6abd8597af6913e9deeb2d8cb8d88.jpg', 'username': None, 'uploaded_at': 1764003728, 'text': 'image_24112025_18_01_13_9127.jpg'}, {'photo_id': 1395934858, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/3dc4eec76e4e95494c11024331e8a4ef.jpg', 'username': None, 'uploaded_at': 1764003728, 'text': 'image_24112025_18_01_24_10138.jpg'}, {'photo_id': 1395934796, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/1c1a7f4fda9f01e670bb93afeeb710e8.jpg', 'username': None, 'uploaded_at': 1764003728, 'text': 'image_24112025_18_01_34_10141.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ?????????????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0024766921997070312 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28839338, '2025-11-24' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-11-24' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2633033,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.26942896842956543 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= 2633033 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28823447, 'dashboard_result_id': 17645540, '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_P28823447_24-11-2025_06_03_26.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28823450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28823451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28823452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28823453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28823454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28823455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28823456, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28823457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28823458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28823459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28823460, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28823461, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28823600, 'dashboard_result_id': 17645541, '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_P28823600_24-11-2025_06_21_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28823604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28823605, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28823606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28823607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28823608, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28823609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28823610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28823611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28823612, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28823613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28823614, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28823615, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28823956, 'dashboard_result_id': 17645542, '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_P28823956_24-11-2025_09_00_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28823960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28823961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28823962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28823963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28823964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28823965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28823966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28823967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28823968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28823969, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28823970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28823971, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28825204, 'dashboard_result_id': 17645543, '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_P28825204_24-11-2025_10_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28825206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28825207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28825208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28825209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28825210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28825211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28825212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28825213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28825214, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28825215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28825216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28825217, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28825393, 'dashboard_result_id': 17645544, '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_P28825393_24-11-2025_10_16_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28825400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28825401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28825402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28825403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28825404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28825405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28825406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28825407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28825408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28825409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28825410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28825411, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28825711, 'dashboard_result_id': 17645545, '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_P28825711_24-11-2025_10_37_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28825720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28825721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28825722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28825723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28825724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28825725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28825726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28825727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28825728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28825729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28825730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28825731, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28826020, 'dashboard_result_id': 17645546, '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_P28826020_24-11-2025_10_47_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28826024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28826025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28826026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28826027, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28826028, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28826029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28826030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28826031, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28826032, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28826033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28826034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28826035, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28826207, 'dashboard_result_id': 17645547, '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_P28826207_24-11-2025_11_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28826216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28826217, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28826218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28826219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28826220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28826221, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28826222, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28826223, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28826224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28826225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28826226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28826227, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28826578, 'dashboard_result_id': 17645548, '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_P28826578_24-11-2025_11_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28826588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28826589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28826590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28826591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28826592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28826593, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28826594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28826595, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28826596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28826597, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28826598, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28826599, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28827082, 'dashboard_result_id': 17645549, '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_P28827082_24-11-2025_11_34_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28827096, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28827097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28827098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28827099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28827100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28827101, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28827102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28827103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28827104, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28827105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28827107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28827108, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28827671, 'dashboard_result_id': 17645550, '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_P28827671_24-11-2025_11_47_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28827675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28827676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28827677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28827678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28827679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28827680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28827681, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28827682, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28827683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28827684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28827685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28827686, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28827962, 'dashboard_result_id': 17645551, '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_P28827962_24-11-2025_12_02_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28827995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28827996, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28827997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28827998, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28827999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28828000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28828001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28828002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28828003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28828004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28828005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28828006, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28828365, 'dashboard_result_id': 17645552, '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_P28828365_24-11-2025_14_00_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28828394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28828395, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28828396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28828397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28828398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28828399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28828400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28828401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28828402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28828403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28828404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28828405, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28830584, 'dashboard_result_id': 17645553, '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_P28830584_24-11-2025_13_47_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28830586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28830587, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28830588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28830589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28830590, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28830591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28830592, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28830593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28830594, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28830595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28830596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28830597, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28830869, 'dashboard_result_id': 17645554, '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_P28830869_24-11-2025_14_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28830874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28830875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28830876, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28830877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28830878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28830879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28830880, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28830881, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28830882, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28830883, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28830884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28830885, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28831317, 'dashboard_result_id': 17645555, '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_P28831317_24-11-2025_14_19_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28831340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28831341, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28831342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28831343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28831344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28831345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28831346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28831347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28831348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28831349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28831350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28831351, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28831841, 'dashboard_result_id': 17645556, '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_P28831841_24-11-2025_14_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28831844, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28831845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28831846, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28831847, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28831848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28831849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28831850, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28831851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28831852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28831853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28831854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28831855, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28832046, 'dashboard_result_id': 17645557, '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_P28832046_24-11-2025_14_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28832081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28832082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28832083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28832084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28832085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28832086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28832087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28832088, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28832089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28832090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28832091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28832092, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28832550, 'dashboard_result_id': 17645558, '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_P28832550_24-11-2025_15_03_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28832559, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28832560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28832561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28832562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28832563, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28832564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28832565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28832566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28832567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28832568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28832569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28832570, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28832985, 'dashboard_result_id': 17645559, '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_P28832985_24-11-2025_15_18_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28833015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28833016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28833017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28833018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28833019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28833020, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28833021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28833022, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28833023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28833024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28833025, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28833026, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28833546, 'dashboard_result_id': 17645560, '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_P28833546_24-11-2025_15_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28833554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28833555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28833556, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28833557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28833558, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28833559, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28833560, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28833561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28833562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28833563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28833564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28833565, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28834015, 'dashboard_result_id': 17645561, '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_P28834015_24-11-2025_15_54_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28834038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28834039, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28834040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28834041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28834042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28834043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28834044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28834045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28834046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28834047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28834048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28834049, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28834841, 'dashboard_result_id': 17645562, '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_P28834841_24-11-2025_16_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28834843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28834844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28834845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28834846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28834847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28834848, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28834849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28834850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28834851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28834852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28834853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28834854, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28835029, 'dashboard_result_id': 17645563, '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_P28835029_24-11-2025_16_18_39.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28835108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28835109, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28835110, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28835111, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28835112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28835113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28835114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28835115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28835116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28835117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28835118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28835119, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28835683, 'dashboard_result_id': 17645564, '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_P28835683_24-11-2025_16_34_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28835691, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28835692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28835693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28835694, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28835695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28835696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28835697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28835698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28835699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28835700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28835701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28835702, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28836240, 'dashboard_result_id': 17645565, '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_P28836240_24-11-2025_16_39_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28836241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28836242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28836243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28836244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28836245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28836246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28836247, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28836248, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28836249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28836250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28836251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28836252, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28836846, 'dashboard_result_id': 17645566, '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_P28836846_24-11-2025_17_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28836853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28836854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28836856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28836857, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28836858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28836859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28836860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28836861, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28836862, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28836863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28836864, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28836865, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28837372, 'dashboard_result_id': 17645567, '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_P28837372_24-11-2025_17_20_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28837414, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28837416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28837417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28837418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28837419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28837420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28837421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28837422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28837423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28837424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28837425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28837426, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28838100, 'dashboard_result_id': 17645568, '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_P28838100_24-11-2025_18_04_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28838106, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28838107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28838108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28838109, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28838110, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28838111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28838112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28838113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28838114, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28838115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28838116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28838117, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2643308, 'mtr_portfolio_id': 28839338, 'dashboard_result_id': 17645569, '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_P28839338_24-11-2025_18_13_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28839384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28839385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28839386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28839387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28839388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28839389, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28839390, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28839391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28839392, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28839393, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28839394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28839395, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28823447 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': 4100565, 'mtr_portfolio_id': 28823447, 'created_at': datetime.datetime(2025, 11, 24, 6, 3, 26), 'result': '0.05137931010124489', 'result_long': None, 'result_double': None}] Qualite : 0.05137931010124489 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28823447 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28823447_24-11-2025_06_03_26.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28823447 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_P28823447_24-11-2025_06_03_26.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28823450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28823451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28823452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28823453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28823454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28823455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28823456, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28823457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28823458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28823459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28823460, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28823461, 'pht': 3726}}" where mtr_portfolio_id = 28823447 and dashboard_run_id = 2643308 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`=28823447 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645540, 0.05137931010124489, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28823447_24-11-2025_06_03_26.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28823450, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28823451, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28823452, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28823453, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28823454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28823455, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28823456, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28823457, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28823458, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28823459, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28823460, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28823461, '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 = 28823600 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': 4100615, 'mtr_portfolio_id': 28823600, 'created_at': datetime.datetime(2025, 11, 24, 6, 21), 'result': '0.06580730737497563', 'result_long': None, 'result_double': None}] Qualite : 0.06580730737497563 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28823600 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28823600_24-11-2025_06_21_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28823600 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_P28823600_24-11-2025_06_21_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28823604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28823605, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28823606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28823607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28823608, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28823609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28823610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28823611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28823612, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28823613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28823614, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28823615, 'pht': 3726}}" where mtr_portfolio_id = 28823600 and dashboard_run_id = 2643308 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`=28823600 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645541, 0.06580730737497563, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28823600_24-11-2025_06_21_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28823604, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28823605, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28823606, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28823607, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28823608, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28823609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28823610, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28823611, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28823612, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28823613, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28823614, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28823615, '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 = 28823956 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': 4100680, 'mtr_portfolio_id': 28823956, 'created_at': datetime.datetime(2025, 11, 24, 9, 0, 58), 'result': '0.07215294282977949', 'result_long': None, 'result_double': None}] Qualite : 0.07215294282977949 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28823956 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28823956_24-11-2025_09_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28823956 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_P28823956_24-11-2025_09_00_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28823960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28823961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28823962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28823963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28823964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28823965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28823966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28823967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28823968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28823969, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28823970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28823971, 'pht': 3726}}" where mtr_portfolio_id = 28823956 and dashboard_run_id = 2643308 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`=28823956 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645542, 0.07215294282977949, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28823956_24-11-2025_09_00_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28823960, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28823961, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28823962, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28823963, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28823964, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28823965, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28823966, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28823967, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28823968, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28823969, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28823970, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28823971, '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 = 28825204 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': 4101107, 'mtr_portfolio_id': 28825204, 'created_at': datetime.datetime(2025, 11, 24, 10, 2, 58), 'result': '0.09804807347067723', 'result_long': None, 'result_double': None}] Qualite : 0.09804807347067723 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28825204 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28825204_24-11-2025_10_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28825204 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_P28825204_24-11-2025_10_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28825206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28825207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28825208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28825209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28825210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28825211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28825212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28825213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28825214, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28825215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28825216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28825217, 'pht': 3726}}" where mtr_portfolio_id = 28825204 and dashboard_run_id = 2643308 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`=28825204 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645543, 0.09804807347067723, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28825204_24-11-2025_10_02_59.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28825206, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28825207, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28825208, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28825209, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28825210, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28825211, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28825212, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28825213, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28825214, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28825215, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28825216, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28825217, '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 = 28825393 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': 4101146, 'mtr_portfolio_id': 28825393, 'created_at': datetime.datetime(2025, 11, 24, 10, 16, 56), 'result': '0.05073666113741691', 'result_long': None, 'result_double': None}] Qualite : 0.05073666113741691 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28825393 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28825393_24-11-2025_10_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28825393 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_P28825393_24-11-2025_10_16_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28825400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28825401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28825402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28825403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28825404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28825405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28825406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28825407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28825408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28825409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28825410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28825411, 'pht': 3726}}" where mtr_portfolio_id = 28825393 and dashboard_run_id = 2643308 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`=28825393 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645544, 0.05073666113741691, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28825393_24-11-2025_10_16_57.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 28825400, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28825401, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28825402, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28825403, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28825404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28825405, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28825406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28825407, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28825408, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28825409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28825410, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28825411, '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 = 28825711 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': 4101220, 'mtr_portfolio_id': 28825711, 'created_at': datetime.datetime(2025, 11, 24, 10, 37, 30), 'result': '0.07848392264441259', 'result_long': None, 'result_double': None}] Qualite : 0.07848392264441259 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28825711 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28825711_24-11-2025_10_37_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28825711 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_P28825711_24-11-2025_10_37_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28825720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28825721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28825722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28825723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28825724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28825725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28825726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28825727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28825728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28825729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28825730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28825731, 'pht': 3726}}" where mtr_portfolio_id = 28825711 and dashboard_run_id = 2643308 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`=28825711 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645545, 0.07848392264441259, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28825711_24-11-2025_10_37_30.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28825720, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28825721, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28825722, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28825723, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28825724, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28825725, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28825726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28825727, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28825728, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28825729, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28825730, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28825731, '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 = 28826020 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': 4101326, 'mtr_portfolio_id': 28826020, 'created_at': datetime.datetime(2025, 11, 24, 10, 47, 1), 'result': '0.055105111337539175', 'result_long': None, 'result_double': None}] Qualite : 0.055105111337539175 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28826020 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28826020_24-11-2025_10_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28826020 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_P28826020_24-11-2025_10_47_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28826024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28826025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28826026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28826027, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28826028, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28826029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28826030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28826031, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28826032, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28826033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28826034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28826035, 'pht': 3726}}" where mtr_portfolio_id = 28826020 and dashboard_run_id = 2643308 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`=28826020 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645546, 0.055105111337539175, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28826020_24-11-2025_10_47_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28826024, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28826025, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28826026, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28826027, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28826028, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28826029, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28826030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28826031, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28826032, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28826033, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28826034, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28826035, '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 = 28826207 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': 4101377, 'mtr_portfolio_id': 28826207, 'created_at': datetime.datetime(2025, 11, 24, 11, 2, 58), 'result': '0.06313553158696036', 'result_long': None, 'result_double': None}] Qualite : 0.06313553158696036 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28826207 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28826207_24-11-2025_11_02_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28826207 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_P28826207_24-11-2025_11_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28826216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28826217, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28826218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28826219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28826220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28826221, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28826222, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28826223, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28826224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28826225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28826226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28826227, 'pht': 3726}}" where mtr_portfolio_id = 28826207 and dashboard_run_id = 2643308 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`=28826207 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645547, 0.06313553158696036, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28826207_24-11-2025_11_02_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28826216, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28826217, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28826218, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28826219, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28826220, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28826221, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28826222, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28826223, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28826224, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28826225, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28826226, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28826227, '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 = 28826578 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28826578 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 28826578 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28826578 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28826578 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28826578 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28826578_24-11-2025_11_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28826578 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_P28826578_24-11-2025_11_16_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28826588, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28826589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28826590, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28826591, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28826592, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28826593, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28826594, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28826595, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28826596, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28826597, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28826598, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28826599, 'pht': 3726}}" where mtr_portfolio_id = 28826578 and dashboard_run_id = 2643308 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 = 28827082 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': 4101682, 'mtr_portfolio_id': 28827082, 'created_at': datetime.datetime(2025, 11, 24, 11, 34, 58), 'result': '0.06406954626600271', 'result_long': None, 'result_double': None}] Qualite : 0.06406954626600271 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28827082 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28827082_24-11-2025_11_34_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28827082 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_P28827082_24-11-2025_11_34_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28827096, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28827097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28827098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28827099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28827100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28827101, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28827102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28827103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28827104, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28827105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28827107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28827108, 'pht': 3726}}" where mtr_portfolio_id = 28827082 and dashboard_run_id = 2643308 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`=28827082 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645549, 0.06406954626600271, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28827082_24-11-2025_11_34_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28827096, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28827097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28827098, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28827099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28827100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28827101, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28827102, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28827103, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28827104, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28827105, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28827107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28827108, '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 = 28827671 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': 4101987, 'mtr_portfolio_id': 28827671, 'created_at': datetime.datetime(2025, 11, 24, 11, 47, 1), 'result': '0.0609188596454796', 'result_long': None, 'result_double': None}] Qualite : 0.0609188596454796 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28827671 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28827671_24-11-2025_11_47_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28827671 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_P28827671_24-11-2025_11_47_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28827675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28827676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28827677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28827678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28827679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28827680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28827681, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28827682, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28827683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28827684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28827685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28827686, 'pht': 3726}}" where mtr_portfolio_id = 28827671 and dashboard_run_id = 2643308 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`=28827671 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645550, 0.0609188596454796, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28827671_24-11-2025_11_47_02.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28827675, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28827676, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28827677, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28827678, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28827679, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28827680, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28827681, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28827682, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28827683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28827684, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28827685, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28827686, '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 = 28827962 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': 4102109, 'mtr_portfolio_id': 28827962, 'created_at': datetime.datetime(2025, 11, 24, 12, 2, 57), 'result': '0.051737425556283474', 'result_long': None, 'result_double': None}] Qualite : 0.051737425556283474 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28827962 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28827962_24-11-2025_12_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28827962 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_P28827962_24-11-2025_12_02_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28827995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28827996, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28827997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28827998, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28827999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28828000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28828001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28828002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28828003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28828004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28828005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28828006, 'pht': 3726}}" where mtr_portfolio_id = 28827962 and dashboard_run_id = 2643308 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`=28827962 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645551, 0.051737425556283474, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28827962_24-11-2025_12_02_57.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28827995, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28827996, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28827997, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28827998, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28827999, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28828000, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28828001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28828002, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28828003, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28828004, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28828005, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28828006, '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 = 28828365 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': 4102313, 'mtr_portfolio_id': 28828365, 'created_at': datetime.datetime(2025, 11, 24, 13, 59, 59), 'result': '0.056186491225553754', 'result_long': None, 'result_double': None}] Qualite : 0.056186491225553754 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28828365 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28828365_24-11-2025_14_00_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28828365 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_P28828365_24-11-2025_14_00_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28828394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28828395, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28828396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28828397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28828398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28828399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28828400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28828401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28828402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28828403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28828404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28828405, 'pht': 3726}}" where mtr_portfolio_id = 28828365 and dashboard_run_id = 2643308 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`=28828365 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645552, 0.056186491225553754, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28828365_24-11-2025_14_00_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 28828394, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28828395, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28828396, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28828397, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28828398, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28828399, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28828400, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28828401, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28828402, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28828403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28828404, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28828405, '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 = 28830584 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': 4102734, 'mtr_portfolio_id': 28830584, 'created_at': datetime.datetime(2025, 11, 24, 13, 47, 58), 'result': '0.07266540609022151', 'result_long': None, 'result_double': None}] Qualite : 0.07266540609022151 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28830584 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28830584_24-11-2025_13_47_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28830584 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_P28830584_24-11-2025_13_47_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28830586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28830587, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28830588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28830589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28830590, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28830591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28830592, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28830593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28830594, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28830595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28830596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28830597, 'pht': 3726}}" where mtr_portfolio_id = 28830584 and dashboard_run_id = 2643308 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`=28830584 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645553, 0.07266540609022151, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28830584_24-11-2025_13_47_59.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28830586, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28830587, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28830588, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28830589, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28830590, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28830591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28830592, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28830593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28830594, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28830595, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28830596, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28830597, '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 = 28830869 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': 4102757, 'mtr_portfolio_id': 28830869, 'created_at': datetime.datetime(2025, 11, 24, 14, 2, 58), 'result': '0.049333676127340666', 'result_long': None, 'result_double': None}] Qualite : 0.049333676127340666 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28830869 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28830869_24-11-2025_14_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28830869 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_P28830869_24-11-2025_14_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28830874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28830875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28830876, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28830877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28830878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28830879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28830880, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28830881, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28830882, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28830883, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28830884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28830885, 'pht': 3726}}" where mtr_portfolio_id = 28830869 and dashboard_run_id = 2643308 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`=28830869 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645554, 0.049333676127340666, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28830869_24-11-2025_14_02_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28830874, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28830875, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28830876, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28830877, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28830878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28830879, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28830880, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28830881, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28830882, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28830883, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28830884, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28830885, '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 = 28831317 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': 4102808, 'mtr_portfolio_id': 28831317, 'created_at': datetime.datetime(2025, 11, 24, 14, 19, 1), 'result': '0.04816913926843451', 'result_long': None, 'result_double': None}] Qualite : 0.04816913926843451 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28831317 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28831317_24-11-2025_14_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28831317 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_P28831317_24-11-2025_14_19_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28831340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28831341, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28831342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28831343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28831344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28831345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28831346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28831347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28831348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28831349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28831350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28831351, 'pht': 3726}}" where mtr_portfolio_id = 28831317 and dashboard_run_id = 2643308 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`=28831317 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645555, 0.04816913926843451, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28831317_24-11-2025_14_19_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28831340, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28831341, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28831342, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28831343, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28831344, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28831345, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28831346, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28831347, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28831348, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28831349, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28831350, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28831351, '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 = 28831841 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': 4102845, 'mtr_portfolio_id': 28831841, 'created_at': datetime.datetime(2025, 11, 24, 14, 33), 'result': '0.05701339595500936', 'result_long': None, 'result_double': None}] Qualite : 0.05701339595500936 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28831841 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28831841_24-11-2025_14_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28831841 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_P28831841_24-11-2025_14_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28831844, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28831845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28831846, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28831847, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28831848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28831849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28831850, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28831851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28831852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28831853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28831854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28831855, 'pht': 3726}}" where mtr_portfolio_id = 28831841 and dashboard_run_id = 2643308 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`=28831841 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645556, 0.05701339595500936, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28831841_24-11-2025_14_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28831844, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28831845, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28831846, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28831847, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28831848, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28831849, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28831850, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28831851, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28831852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28831853, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28831854, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28831855, '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 = 28832046 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': 4102911, 'mtr_portfolio_id': 28832046, 'created_at': datetime.datetime(2025, 11, 24, 14, 48, 58), 'result': '0.04709824444554949', 'result_long': None, 'result_double': None}] Qualite : 0.04709824444554949 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28832046 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28832046_24-11-2025_14_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28832046 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_P28832046_24-11-2025_14_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28832081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28832082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28832083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28832084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28832085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28832086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28832087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28832088, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28832089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28832090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28832091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28832092, 'pht': 3726}}" where mtr_portfolio_id = 28832046 and dashboard_run_id = 2643308 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`=28832046 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645557, 0.04709824444554949, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28832046_24-11-2025_14_48_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28832081, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28832082, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28832083, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28832084, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28832085, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28832086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28832087, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28832088, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28832089, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28832090, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28832091, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28832092, '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 = 28832550 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': 4103035, 'mtr_portfolio_id': 28832550, 'created_at': datetime.datetime(2025, 11, 24, 15, 3, 2), 'result': '0.03702070243518558', 'result_long': None, 'result_double': None}] Qualite : 0.03702070243518558 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28832550 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28832550_24-11-2025_15_03_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28832550 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_P28832550_24-11-2025_15_03_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28832559, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28832560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28832561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28832562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28832563, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28832564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28832565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28832566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28832567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28832568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28832569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28832570, 'pht': 3726}}" where mtr_portfolio_id = 28832550 and dashboard_run_id = 2643308 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`=28832550 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645558, 0.03702070243518558, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28832550_24-11-2025_15_03_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28832559, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28832560, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28832561, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28832562, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28832563, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28832564, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28832565, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28832566, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28832567, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28832568, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28832569, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28832570, '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 = 28832985 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': 4103188, 'mtr_portfolio_id': 28832985, 'created_at': datetime.datetime(2025, 11, 24, 15, 18, 29), 'result': '0.03253772444047452', 'result_long': None, 'result_double': None}] Qualite : 0.03253772444047452 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28832985 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28832985_24-11-2025_15_18_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28832985 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_P28832985_24-11-2025_15_18_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28833015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28833016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28833017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28833018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28833019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28833020, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28833021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28833022, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28833023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28833024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28833025, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28833026, 'pht': 3726}}" where mtr_portfolio_id = 28832985 and dashboard_run_id = 2643308 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`=28832985 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645559, 0.03253772444047452, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28832985_24-11-2025_15_18_29.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28833015, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28833016, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28833017, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28833018, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28833019, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28833020, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28833021, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28833022, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28833023, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28833024, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28833025, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28833026, '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 = 28833546 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': 4103336, 'mtr_portfolio_id': 28833546, 'created_at': datetime.datetime(2025, 11, 24, 15, 32, 59), 'result': '0.025474262737967216', 'result_long': None, 'result_double': None}] Qualite : 0.025474262737967216 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28833546 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28833546_24-11-2025_15_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28833546 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_P28833546_24-11-2025_15_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28833554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28833555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28833556, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28833557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28833558, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28833559, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28833560, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28833561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28833562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28833563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28833564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28833565, 'pht': 3726}}" where mtr_portfolio_id = 28833546 and dashboard_run_id = 2643308 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`=28833546 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645560, 0.025474262737967216, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28833546_24-11-2025_15_32_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28833554, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28833555, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28833556, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28833557, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28833558, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28833559, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28833560, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28833561, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28833562, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28833563, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28833564, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28833565, '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 = 28834015 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': 4103522, 'mtr_portfolio_id': 28834015, 'created_at': datetime.datetime(2025, 11, 24, 15, 54, 58), 'result': '0.04761845636238713', 'result_long': None, 'result_double': None}] Qualite : 0.04761845636238713 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28834015 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28834015_24-11-2025_15_54_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28834015 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_P28834015_24-11-2025_15_54_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28834038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28834039, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28834040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28834041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28834042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28834043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28834044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28834045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28834046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28834047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28834048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28834049, 'pht': 3726}}" where mtr_portfolio_id = 28834015 and dashboard_run_id = 2643308 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`=28834015 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645561, 0.04761845636238713, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28834015_24-11-2025_15_54_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28834038, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28834039, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28834040, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28834041, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28834042, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28834043, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28834044, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28834045, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28834046, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28834047, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28834048, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28834049, '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 = 28834841 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': 4103769, 'mtr_portfolio_id': 28834841, 'created_at': datetime.datetime(2025, 11, 24, 16, 2, 58), 'result': '0.03445635190068865', 'result_long': None, 'result_double': None}] Qualite : 0.03445635190068865 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28834841 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28834841_24-11-2025_16_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28834841 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_P28834841_24-11-2025_16_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28834843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28834844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28834845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28834846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28834847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28834848, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28834849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28834850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28834851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28834852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28834853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28834854, 'pht': 3726}}" where mtr_portfolio_id = 28834841 and dashboard_run_id = 2643308 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`=28834841 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645562, 0.03445635190068865, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28834841_24-11-2025_16_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28834843, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28834844, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28834845, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28834846, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28834847, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28834848, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28834849, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28834850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28834851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28834852, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28834853, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28834854, '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 = 28835029 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': 4103814, 'mtr_portfolio_id': 28835029, 'created_at': datetime.datetime(2025, 11, 24, 16, 18, 39), 'result': '0.04776529310921624', 'result_long': None, 'result_double': None}] Qualite : 0.04776529310921624 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28835029 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28835029_24-11-2025_16_18_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28835029 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_P28835029_24-11-2025_16_18_39.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28835108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28835109, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28835110, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28835111, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28835112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28835113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28835114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28835115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28835116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28835117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28835118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28835119, 'pht': 3726}}" where mtr_portfolio_id = 28835029 and dashboard_run_id = 2643308 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`=28835029 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645563, 0.04776529310921624, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28835029_24-11-2025_16_18_39.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 28835108, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28835109, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28835110, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28835111, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28835112, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28835113, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28835114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28835115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28835116, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28835117, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28835118, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28835119, '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 = 28835683 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': 4103902, 'mtr_portfolio_id': 28835683, 'created_at': datetime.datetime(2025, 11, 24, 16, 34, 29), 'result': '0.05020117250630874', 'result_long': None, 'result_double': None}] Qualite : 0.05020117250630874 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28835683 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28835683_24-11-2025_16_34_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28835683 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_P28835683_24-11-2025_16_34_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28835691, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28835692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28835693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28835694, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28835695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28835696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28835697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28835698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28835699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28835700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28835701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28835702, 'pht': 3726}}" where mtr_portfolio_id = 28835683 and dashboard_run_id = 2643308 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`=28835683 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645564, 0.05020117250630874, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28835683_24-11-2025_16_34_30.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28835691, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28835692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28835693, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28835694, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28835695, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28835696, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28835697, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28835698, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28835699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28835700, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28835701, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28835702, '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 = 28836240 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': 4103969, 'mtr_portfolio_id': 28836240, 'created_at': datetime.datetime(2025, 11, 24, 16, 39, 2), 'result': '0.045514268835523355', 'result_long': None, 'result_double': None}] Qualite : 0.045514268835523355 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28836240 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28836240_24-11-2025_16_39_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28836240 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_P28836240_24-11-2025_16_39_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28836241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28836242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28836243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28836244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28836245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28836246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28836247, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28836248, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28836249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28836250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28836251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28836252, 'pht': 3726}}" where mtr_portfolio_id = 28836240 and dashboard_run_id = 2643308 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`=28836240 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645565, 0.045514268835523355, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28836240_24-11-2025_16_39_02.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28836241, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28836242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28836243, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28836244, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28836245, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28836246, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28836247, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28836248, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28836249, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28836250, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28836251, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28836252, '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 = 28836846 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': 4104034, 'mtr_portfolio_id': 28836846, 'created_at': datetime.datetime(2025, 11, 24, 17, 2, 59), 'result': '0.028912001954465825', 'result_long': None, 'result_double': None}] Qualite : 0.028912001954465825 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28836846 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28836846_24-11-2025_17_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28836846 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_P28836846_24-11-2025_17_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28836853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28836854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28836856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28836857, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28836858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28836859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28836860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28836861, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28836862, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28836863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28836864, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28836865, 'pht': 3726}}" where mtr_portfolio_id = 28836846 and dashboard_run_id = 2643308 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`=28836846 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645566, 0.028912001954465825, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28836846_24-11-2025_17_03_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28836853, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28836854, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28836856, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28836857, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28836858, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28836859, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28836860, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28836861, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28836862, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28836863, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28836864, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28836865, '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 = 28837372 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': 4104147, 'mtr_portfolio_id': 28837372, 'created_at': datetime.datetime(2025, 11, 24, 17, 20, 56), 'result': '0.04825390373824168', 'result_long': None, 'result_double': None}] Qualite : 0.04825390373824168 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28837372 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28837372_24-11-2025_17_20_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28837372 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_P28837372_24-11-2025_17_20_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28837414, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28837416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28837417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28837418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28837419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28837420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28837421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28837422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28837423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28837424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28837425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28837426, 'pht': 3726}}" where mtr_portfolio_id = 28837372 and dashboard_run_id = 2643308 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`=28837372 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645567, 0.04825390373824168, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28837372_24-11-2025_17_20_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28837414, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28837416, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28837417, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28837418, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28837419, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28837420, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28837421, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28837422, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28837423, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28837424, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28837425, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28837426, '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 = 28838100 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': 4104223, 'mtr_portfolio_id': 28838100, 'created_at': datetime.datetime(2025, 11, 24, 18, 4, 57), 'result': '0.045261918920253844', 'result_long': None, 'result_double': None}] Qualite : 0.045261918920253844 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28838100 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28838100_24-11-2025_18_04_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28838100 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_P28838100_24-11-2025_18_04_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28838106, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28838107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28838108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28838109, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28838110, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28838111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28838112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28838113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28838114, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28838115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28838116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28838117, 'pht': 3726}}" where mtr_portfolio_id = 28838100 and dashboard_run_id = 2643308 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`=28838100 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645568, 0.045261918920253844, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28838100_24-11-2025_18_04_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28838106, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28838107, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28838108, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28838109, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28838110, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28838111, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28838112, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28838113, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28838114, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28838115, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28838116, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28838117, '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 = 28839338 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': 4104474, 'mtr_portfolio_id': 28839338, 'created_at': datetime.datetime(2025, 11, 24, 18, 15), 'result': '0.04204569428903312', 'result_long': None, 'result_double': None}] Qualite : 0.04204569428903312 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 28839338 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28839338_24-11-2025_18_15_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28839338 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_P28839338_24-11-2025_18_15_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28839384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28839385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28839386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28839387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28839388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28839389, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28839390, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28839391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28839392, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28839393, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28839394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28839395, 'pht': 3726}}" where mtr_portfolio_id = 28839338 and dashboard_run_id = 2643308 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`=28839338 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (17645569, 0.04204569428903312, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28839338_24-11-2025_18_15_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28839384, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28839385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28839386, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28839387, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28839388, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28839389, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28839390, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28839391, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28839392, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28839393, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28839394, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28839395, '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 (28823447,28823600,28823956,28825204,28825393,28825711,28826020,28826207,28826578,28827082,28827671,28827962,28828365,28830584,28830869,28831317,28831841,28832046,28832550,28832985,28833546,28834015,28834841,28835029,28835683,28836240,28836846,28837372,28838100,28839338) result : ((1395860294,), (1395860295,), (1395860297,), (1395860299,), (1395860300,), (1395860301,), (1395860316,), (1395860320,), (1395860324,), (1395860325,), (1395860356,), (1395860357,), (1395860358,), (1395860359,), (1395860360,), (1395860362,), (1395860364,), (1395860366,), (1395860368,), (1395860370,), (1395860371,), (1395860372,), (1395860373,), (1395860374,), (1395860375,), (1395860376,), (1395860377,), (1395860378,), (1395860767,), (1395860811,), (1395860812,), (1395860813,), (1395860814,), (1395860815,), (1395860822,), (1395860823,), (1395860824,), (1395860825,), (1395861145,), (1395861180,), (1395861212,), (1395861243,), (1395861394,), (1395861422,), (1395861424,), (1395861454,), (1395861459,), (1395861472,), (1395861473,), (1395861492,), (1395861493,), (1395861494,), (1395861495,), (1395861496,), (1395861503,), (1395861504,), (1395861505,), (1395861506,), (1395861508,), (1395861510,), (1395861519,), (1395861520,), (1395861521,), (1395861593,), (1395861587,), (1395861588,), (1395861589,), (1395861590,), (1395861591,), (1395861597,), (1395861599,), (1395861602,), (1395861604,), (1395861617,), (1395861647,), (1395861697,), (1395867609,), (1395872808,), (1395872827,), (1395872828,), (1395872829,), (1395872831,), (1395872849,), (1395872850,), (1395872852,), (1395872855,), (1395872879,), (1395872880,), (1395872902,), (1395872905,), (1395872922,), (1395872923,), (1395872924,), (1395872926,), (1395872938,), (1395872939,), (1395872940,), (1395872942,), (1395872945,), (1395872956,), (1395872957,), (1395872958,), (1395872960,), (1395872983,), (1395872985,), (1395872988,), (1395872990,), (1395872993,), (1395873013,), (1395873082,), (1395873114,), (1395873146,), (1395873177,), (1395873612,), (1395873643,), (1395873905,), (1395873906,), (1395873907,), (1395873908,), (1395873910,), (1395874162,), (1395874174,), (1395874175,), (1395874177,), (1395874368,), (1395874371,), (1395874390,), (1395874394,), (1395874396,), (1395874399,), (1395874407,), (1395874468,), (1395874469,), (1395874470,), (1395874471,), (1395874475,), (1395874485,), (1395874486,), (1395874493,), (1395874525,), (1395874599,), (1395874600,), (1395874601,), (1395874603,), (1395874605,), (1395874608,), (1395874617,), (1395874618,), (1395874619,), (1395874621,), (1395874624,), (1395874627,), (1395874646,), (1395874647,), (1395874650,), (1395874654,), (1395874657,), (1395874661,), (1395874668,), (1395874669,), (1395874670,), (1395874671,), (1395874672,), (1395874681,), (1395874687,), (1395874730,), (1395874731,), (1395874732,), (1395874748,), (1395874749,), (1395874751,), (1395874752,), (1395874755,), (1395874773,), (1395874771,), (1395874772,), (1395874808,), (1395874824,), (1395874827,), (1395874829,), (1395874832,), (1395874854,), (1395874882,), (1395874913,), (1395874948,), (1395875118,), (1395875123,), (1395875241,), (1395875242,), (1395875243,), (1395875277,), (1395875278,), (1395875288,), (1395875289,), (1395875301,), (1395875314,), (1395875348,), (1395875469,), (1395875465,), (1395875466,), (1395875467,), (1395875492,), (1395875493,), (1395875505,), (1395875506,), (1395875507,), (1395875528,), (1395875529,), (1395875530,), (1395875546,), (1395875547,), (1395875548,), (1395875549,), (1395875572,), (1395875573,), (1395875574,), (1395875586,), (1395875587,), (1395875588,), (1395875589,), (1395875593,), (1395875613,), (1395875615,), (1395875618,), (1395875622,), (1395875626,), (1395875628,), (1395875640,), (1395875643,), (1395875649,), (1395875674,), (1395875677,), (1395875680,), (1395875683,), (1395875701,), (1395875702,), (1395875704,), (1395875706,), (1395875708,), (1395875712,), (1395875754,), (1395875750,), (1395875752,), (1395875775,), (1395875776,), (1395875804,), (1395875805,), (1395875807,), (1395875811,), (1395875815,), (1395875819,), (1395875835,), (1395875874,), (1395875876,), (1395875878,), (1395875880,), (1395875942,), (1395875943,), (1395875944,), (1395875969,), (1395875971,), (1395875973,), (1395875975,), (1395876091,), (1395876094,), (1395876097,), (1395876121,), (1395876122,), (1395876123,), (1395876125,), (1395876171,), (1395876173,), (1395876233,), (1395876234,), (1395876262,), (1395876265,), (1395876267,), (1395876271,), (1395876317,), (1395876318,), (1395876320,), (1395876324,), (1395876327,), (1395876330,), (1395876348,), (1395876396,), (1395876400,), (1395876404,), (1395876406,), (1395876485,), (1395876453,), (1395876455,), (1395876457,), (1395876895,), (1395876929,), (1395876966,), (1395877000,), (1395877173,), (1395877201,), (1395877232,), (1395877266,), (1395877303,), (1395877472,), (1395877473,), (1395877474,), (1395877476,), (1395877822,), (1395877855,), (1395877887,), (1395877918,), (1395877955,), (1395878198,), (1395878774,), (1395878778,), (1395878780,), (1395878801,), (1395878859,), (1395878922,), (1395879086,), (1395879087,), (1395879088,), (1395879089,), (1395879091,), (1395879111,), (1395879112,), (1395879124,), (1395879161,), (1395879528,), (1395879530,), (1395879532,), (1395879534,), (1395879725,), (1395879742,), (1395879767,), (1395879797,), (1395880143,), (1395880146,), (1395880148,), (1395880337,), (1395880338,), (1395880339,), (1395880340,), (1395880360,), (1395880362,), (1395880364,), (1395880367,), (1395880389,), (1395880387,), (1395880388,), (1395880407,), (1395880409,), (1395880438,), (1395880440,), (1395880442,), (1395880445,), (1395880462,), (1395880463,), (1395880464,), (1395880644,), (1395880645,), (1395880646,), (1395880665,), (1395880666,), (1395880667,), (1395880693,), (1395880694,), (1395880695,), (1395880722,), (1395880724,), (1395880749,), (1395880751,), (1395880753,), (1395880757,), (1395880761,), (1395880894,), (1395880960,), (1395880997,), (1395880998,), (1395880999,), (1395881001,), (1395881025,), (1395881032,), (1395881036,), (1395881041,), (1395881061,), (1395881062,), (1395881063,), (1395881065,), (1395881085,), (1395881086,), (1395881089,), (1395881092,), (1395881122,), (1395881124,), (1395881127,), (1395881131,), (1395881236,), (1395881238,), (1395881240,), (1395881243,), (1395881354,), (1395881355,), (1395881357,), (1395881365,), (1395881378,), (1395881398,), (1395881399,), (1395881401,), (1395881404,), (1395881408,), (1395881422,), (1395881472,), (1395881473,), (1395881476,), (1395881704,), (1395881674,), (1395881702,), (1395881832,), (1395881864,), (1395881868,), (1395881870,), (1395881874,), (1395881898,), (1395881900,), (1395881902,), (1395881904,), (1395881921,), (1395881922,), (1395881923,), (1395881930,), (1395881935,), (1395882158,), (1395882191,), (1395882223,), (1395882256,), (1395882289,), (1395882326,), (1395882327,), (1395882328,), (1395882351,), (1395882353,), (1395882355,), (1395882358,), (1395882362,), (1395882376,), (1395882694,), (1395882695,), (1395882697,), (1395882700,), (1395882708,), (1395882729,), (1395882731,), (1395882733,), (1395882749,), (1395882766,), (1395882782,), (1395882786,), (1395882790,), (1395882795,), (1395882813,), (1395882815,), (1395882882,), (1395882883,), (1395882884,), (1395882912,), (1395882913,), (1395882916,), (1395882920,), (1395882924,), (1395882927,), (1395882936,), (1395882950,), (1395882955,), (1395882960,), (1395882965,), (1395882974,), (1395883224,), (1395883121,), (1395883152,), (1395883190,), (1395883569,), (1395883575,), (1395883594,), (1395883625,), (1395883748,), (1395883750,), (1395883752,), (1395883773,), (1395883774,), (1395883775,), (1395883776,), (1395884040,), (1395884072,), (1395884109,), (1395884523,), (1395885068,), (1395885069,), (1395885071,), (1395885109,), (1395885347,), (1395885349,), (1395885351,), (1395885353,), (1395885356,), (1395885358,), (1395885377,), (1395885410,), (1395885443,), (1395885846,), (1395885857,), (1395885890,), (1395885922,), (1395885928,), (1395886072,), (1395886073,), (1395886093,), (1395886164,), (1395894236,), (1395894341,), (1395894344,), (1395894388,), (1395894415,), (1395894712,), (1395894726,), (1395894729,), (1395895353,), (1395895409,), (1395896435,), (1395896467,), (1395896500,), (1395896503,), (1395896708,), (1395896700,), (1395896704,), (1395896706,), (1395897042,), (1395897081,), (1395897113,), (1395897143,), (1395897176,), (1395897238,), (1395897240,), (1395897243,), (1395897274,), (1395897306,), (1395897360,), (1395897507,), (1395897570,), (1395897611,), (1395897642,), (1395897675,), (1395898027,), (1395898040,), (1395898084,), (1395898146,), (1395898204,), (1395898253,), (1395898463,), (1395898464,), (1395898521,), (1395898524,), (1395898559,), (1395898568,), (1395898607,), (1395898608,), (1395898619,), (1395898620,), (1395898645,), (1395898651,), (1395898740,), (1395898756,), (1395898758,), (1395898762,), (1395898765,), (1395898784,), (1395898897,), (1395898927,), (1395898945,), (1395898946,), (1395898947,), (1395898949,), (1395898952,), (1395900538,), (1395900524,), (1395900528,), (1395900531,), (1395900534,), (1395900765,), (1395900767,), (1395900798,), (1395900947,), (1395903356,), (1395903697,), (1395903732,), (1395903747,), (1395903766,), (1395903793,), (1395903969,), (1395903970,), (1395903971,), (1395903973,), (1395904016,), (1395904008,), (1395904010,), (1395904012,), (1395904014,), (1395904125,), (1395904140,), (1395904147,), (1395904163,), (1395904165,), (1395904200,), (1395904201,), (1395904202,), (1395904204,), (1395904225,), (1395904228,), (1395904231,), (1395904234,), (1395904238,), (1395904270,), (1395904272,), (1395904273,), (1395904274,), (1395904277,), (1395904517,), (1395904537,), (1395904546,), (1395904573,), (1395904586,), (1395904602,), (1395904604,), (1395904606,), (1395904622,), (1395904627,), (1395904672,), (1395904674,), (1395904676,), (1395904680,), (1395904684,), (1395904704,), (1395904706,), (1395904709,), (1395904713,), (1395904717,), (1395904738,), (1395904740,), (1395904747,), (1395904755,), (1395904757,), (1395904786,), (1395904789,), (1395904791,), (1395904793,), (1395904821,), (1395904822,), (1395904823,), (1395904825,), (1395904829,), (1395904833,), (1395904851,), (1395904852,), (1395904859,), (1395904868,), (1395904872,), (1395904874,), (1395904882,), (1395904884,), (1395904887,), (1395904890,), (1395904896,), (1395904897,), (1395904898,), (1395904901,), (1395904904,), (1395904907,), (1395904930,), (1395904932,), (1395904934,), (1395904937,), (1395905029,), (1395904984,), (1395904986,), (1395904988,), (1395905007,), (1395905026,), (1395905053,), (1395905056,), (1395905058,), (1395905060,), (1395905083,), (1395905085,), (1395905088,), (1395905093,), (1395905098,), (1395905100,), (1395905115,), (1395905118,), (1395905122,), (1395905124,), (1395905128,), (1395905149,), (1395905151,), (1395905152,), (1395905153,), (1395905155,), (1395905158,), (1395905230,), (1395905237,), (1395905239,), (1395905242,), (1395905264,), (1395905267,), (1395905280,), (1395905283,), (1395905287,), (1395905311,), (1395905314,), (1395905316,), (1395905318,), (1395905321,), (1395905324,), (1395905352,), (1395905353,), (1395905354,), (1395905356,), (1395905546,), (1395905580,), (1395905616,), (1395905652,), (1395905694,), (1395905781,), (1395905784,), (1395905788,), (1395905790,), (1395905793,), (1395905821,), (1395905932,), (1395905933,), (1395905957,), (1395905961,), (1395905973,), (1395905989,), (1395905995,), (1395906020,), (1395906022,), (1395906025,), (1395906027,), (1395906030,), (1395906086,), (1395906087,), (1395906088,), (1395906330,), (1395906278,), (1395906281,), (1395906284,), (1395906289,), (1395906321,), (1395906380,), (1395906386,), (1395906415,), (1395906446,), (1395906479,), (1395906513,), (1395906514,), (1395906515,), (1395906516,), (1395906519,), (1395906533,), (1395906538,), (1395906545,), (1395906547,), (1395906550,), (1395906553,), (1395906567,), (1395906570,), (1395906572,), (1395906608,), (1395906611,), (1395906615,), (1395906618,), (1395906624,), (1395906645,), (1395906648,), (1395906651,), (1395906654,), (1395906658,), (1395906704,), (1395906706,), (1395906707,), (1395906708,), (1395906923,), (1395906926,), (1395906929,), (1395906932,), (1395906949,), (1395906979,), (1395907029,), (1395907032,), (1395907037,), (1395907073,), (1395907112,), (1395907193,), (1395907197,), (1395907199,), (1395907201,), (1395907204,), (1395907233,), (1395907235,), (1395907236,), (1395907237,), (1395907240,), (1395907243,), (1395907263,), (1395907265,), (1395907267,), (1395907269,), (1395907299,), (1395907304,), (1395907309,), (1395907315,), (1395907319,), (1395907323,), (1395907347,), (1395907344,), (1395907346,), (1395907367,), (1395907369,), (1395907371,), (1395907374,), (1395907378,), (1395907382,), (1395907398,), (1395907400,), (1395907402,), (1395907406,), (1395907459,), (1395907462,), (1395907463,), (1395907465,), (1395907468,), (1395907471,), (1395907620,), (1395907650,), (1395907681,), (1395907712,), (1395908073,), (1395908108,), (1395908141,), (1395908174,), (1395908211,), (1395908246,), (1395908388,), (1395908390,), (1395908416,), (1395908447,), (1395908654,), (1395908655,), (1395908657,), (1395908660,), (1395908669,), (1395908677,), (1395908695,), (1395908697,), (1395908699,), (1395908701,), (1395908729,), (1395908731,), (1395908736,), (1395908737,), (1395908739,), (1395908742,), (1395908766,), (1395908768,), (1395908770,), (1395908773,), (1395908776,), (1395908779,), (1395908808,), (1395908811,), (1395908816,), (1395908846,), (1395908848,), (1395908850,), (1395908852,), (1395908854,), (1395908857,), (1395908889,), (1395908896,), (1395908897,), (1395908898,), (1395908921,), (1395908924,), (1395908928,), (1395908931,), (1395908935,), (1395908972,), (1395909024,), (1395908968,), (1395908970,), (1395908971,), (1395908994,), (1395908996,), (1395908999,), (1395909002,), (1395909006,), (1395909009,), (1395909018,), (1395909020,), (1395909022,), (1395909026,), (1395909029,), (1395909034,), (1395909038,), (1395909043,), (1395909062,), (1395909064,), (1395909066,), (1395909069,), (1395909072,), (1395909091,), (1395909092,), (1395909093,), (1395909095,), (1395909099,), (1395909103,), (1395909159,), (1395909161,), (1395909166,), (1395909201,), (1395909453,), (1395909455,), (1395909458,), (1395909463,), (1395909468,), (1395909473,), (1395909492,), (1395909494,), (1395909496,), (1395909499,), (1395909534,), (1395909543,), (1395909545,), (1395909546,), (1395909551,), (1395909556,), (1395909575,), (1395909577,), (1395909579,), (1395909581,), (1395909620,), (1395909629,), (1395909633,), (1395909634,), (1395909637,), (1395909641,), (1395909658,), (1395909660,), (1395909662,), (1395909665,), (1395909696,), (1395909698,), (1395909700,), (1395909703,), (1395909707,), (1395909948,), (1395909977,), (1395910008,), (1395910451,), (1395910484,), (1395910549,), (1395910547,), (1395910548,), (1395910569,), (1395910571,), (1395910575,), (1395910579,), (1395910587,), (1395910592,), (1395910702,), (1395910703,), (1395910704,), (1395910706,), (1395910710,), (1395910713,), (1395910743,), (1395910744,), (1395910747,), (1395910751,), (1395910754,), (1395910757,), (1395910781,), (1395910784,), (1395910786,), (1395910789,), (1395910790,), (1395910792,), (1395910812,), (1395911385,), (1395912951,), (1395912894,), (1395912929,), (1395912939,), (1395912947,), (1395913111,), (1395913311,), (1395913321,), (1395913326,), (1395913331,), (1395913335,), (1395913366,), (1395913369,), (1395913373,), (1395913378,), (1395913395,), (1395913396,), (1395913397,), (1395913399,), (1395913590,), (1395913591,), (1395913592,), (1395913594,), (1395913619,), (1395913624,), (1395913629,), (1395913633,), (1395913637,), (1395913641,), (1395913665,), (1395913662,), (1395913663,), (1395914433,), (1395915195,), (1395916243,), (1395916284,), (1395916311,), (1395916317,), (1395916323,), (1395916351,), (1395916353,), (1395916355,), (1395916358,), (1395916383,), (1395916384,), (1395916385,), (1395916386,), (1395916389,), (1395916393,), (1395916447,), (1395916457,), (1395916466,), (1395916472,), (1395916512,), (1395916615,), (1395916647,), (1395916685,), (1395916696,), (1395916699,), (1395916784,), (1395916785,), (1395916786,), (1395916788,), (1395916894,), (1395916896,), (1395916897,), (1395916899,), (1395916907,), (1395916911,), (1395917159,), (1395917071,), (1395917075,), (1395917079,), (1395917118,), (1395917202,), (1395917203,), (1395917204,), (1395917206,), (1395917210,), (1395917214,), (1395917242,), (1395917248,), (1395917250,), (1395917277,), (1395917279,), (1395917310,), (1395917345,), (1395917382,), (1395917417,), (1395917727,), (1395917804,), (1395917865,), (1395917922,), (1395918626,), (1395918666,), (1395918752,), (1395918786,), (1395918848,), (1395918882,), (1395918996,), (1395918998,), (1395919000,), (1395919002,), (1395919004,), (1395919068,), (1395919139,), (1395919148,), (1395919150,), (1395919151,), (1395919152,), (1395919154,), (1395919182,), (1395919186,), (1395919189,), (1395919192,), (1395919195,), (1395919197,), (1395919209,), (1395919210,), (1395919213,), (1395919214,), (1395919216,), (1395919217,), (1395919220,), (1395919221,), (1395919224,), (1395919225,), (1395919226,), (1395919228,), (1395919232,), (1395919235,), (1395919238,), (1395919241,), (1395919245,), (1395919248,), (1395919255,), (1395919259,), (1395919261,), (1395919275,), (1395919379,), (1395919398,), (1395919400,), (1395919424,), (1395919461,), (1395919462,), (1395919463,), (1395919465,), (1395919469,), (1395919505,), (1395919511,), (1395919514,), (1395919516,), (1395919519,), (1395919536,), (1395919537,), (1395919540,), (1395919569,), (1395919571,), (1395919572,), (1395919574,), (1395919582,), (1395919586,), (1395919621,), (1395920008,), (1395919606,), (1395919612,), (1395919614,), (1395919617,), (1395919648,), (1395919649,), (1395919651,), (1395919652,), (1395919671,), (1395919677,), (1395919708,), (1395919716,), (1395919743,), (1395919751,), (1395919776,), (1395919785,), (1395919805,), (1395919806,), (1395919807,), (1395919809,), (1395919813,), (1395919847,), (1395919966,), (1395919976,), (1395920055,), (1395920057,), (1395920058,), (1395920141,), (1395920153,), (1395920190,), (1395920205,), (1395920223,), (1395920226,), (1395920288,), (1395920296,), (1395920298,), (1395920301,), (1395920322,), (1395920323,), (1395920324,), (1395920326,), (1395920329,), (1395920332,), (1395920342,), (1395920343,), (1395920344,), (1395920345,), (1395920572,), (1395920582,), (1395920598,), (1395920616,), (1395920643,), (1395920674,), (1395920688,), (1395920689,), (1395920690,), (1395920692,), (1395920711,), (1395920712,), (1395920713,), (1395920715,), (1395920718,), (1395920945,), (1395920982,), (1395921011,), (1395921014,), (1395921018,), (1395921022,), (1395921211,), (1395921217,), (1395921218,), (1395921257,), (1395921277,), (1395921492,), (1395921495,), (1395921519,), (1395921541,), (1395921545,), (1395921576,), (1395921623,), (1395921624,), (1395921625,), (1395921633,), (1395921638,), (1395921687,), (1395921676,), (1395921678,), (1395921680,), (1395921683,), (1395921704,), (1395921706,), (1395921709,), (1395921714,), (1395921719,), (1395921724,), (1395921782,), (1395921800,), (1395921827,), (1395921840,), (1395921875,), (1395921994,), (1395921996,), (1395922025,), (1395922047,), (1395922055,), (1395922072,), (1395922075,), (1395922076,), (1395922077,), (1395922084,), (1395922089,), (1395922119,), (1395922120,), (1395922122,), (1395922125,), (1395922145,), (1395922146,), (1395922147,), (1395922153,), (1395922156,), (1395922158,), (1395922236,), (1395922265,), (1395922268,), (1395922269,), (1395922406,), (1395922407,), (1395922408,), (1395922409,), (1395922419,), (1395922424,), (1395922436,), (1395922437,), (1395922439,), (1395922522,), (1395922542,), (1395922543,), (1395922546,), (1395922583,), (1395922590,), (1395922728,), (1395922729,), (1395922754,), (1395922762,), (1395922785,), (1395922808,), (1395922810,), (1395922813,), (1395922816,), (1395922819,), (1395922833,), (1395922840,), (1395922890,), (1395922922,), (1395923300,), (1395923258,), (1395923262,), (1395923265,), (1395923470,), (1395923487,), (1395923494,), (1395923497,), (1395923501,), (1395923505,), (1395923555,), (1395923558,), (1395923562,), (1395923570,), (1395923598,), (1395923600,), (1395923601,), (1395923602,), (1395923605,), (1395923679,), (1395923710,), (1395923766,), (1395923831,), (1395923899,), (1395924400,), (1395924436,), (1395924478,), (1395924527,), (1395924872,), (1395924874,), (1395924881,), (1395924889,), (1395924892,), (1395924913,), (1395925220,), (1395925304,), (1395925322,), (1395925324,), (1395925369,), (1395925385,), (1395925570,), (1395925615,), (1395925677,), (1395925712,), (1395925745,), (1395925782,), (1395926137,), (1395926202,), (1395926266,), (1395926335,), (1395926404,), (1395926973,), (1395926975,), (1395926976,), (1395926977,), (1395926979,), (1395927643,), (1395927699,), (1395927707,), (1395927709,), (1395927712,), (1395927721,), (1395928125,), (1395928157,), (1395928193,), (1395928228,), (1395928384,), (1395928385,), (1395928387,), (1395928390,), (1395928401,), (1395928411,), (1395928430,), (1395928433,), (1395928436,), (1395928438,), (1395928489,), (1395928477,), (1395928478,), (1395928479,), (1395928481,), (1395928485,), (1395928511,), (1395928541,), (1395928570,), (1395928575,), (1395928634,), (1395928991,), (1395929032,), (1395929065,), (1395929094,), (1395929124,), (1395929157,), (1395929449,), (1395929451,), (1395929453,), (1395929455,), (1395929730,), (1395929764,), (1395929814,), (1395929846,), (1395929875,), (1395929879,), (1395929898,), (1395929899,), (1395929911,), (1395929944,), (1395930217,), (1395930219,), (1395930221,), (1395930223,), (1395930227,), (1395930493,), (1395930525,), (1395930557,), (1395930568,), (1395930578,), (1395930683,), (1395930686,), (1395930687,), (1395930689,), (1395930712,), (1395930715,), (1395930718,), (1395930721,), (1395930725,), (1395930728,), (1395930745,), (1395930747,), (1395930749,), (1395930754,), (1395930757,), (1395930786,), (1395930788,), (1395930790,), (1395930793,), (1395930797,), (1395930800,), (1395930826,), (1395930829,), (1395930831,), (1395930833,), (1395930837,), (1395930858,), (1395930861,), (1395930865,), (1395930868,), (1395930873,), (1395930876,), (1395930906,), (1395930917,), (1395930921,), (1395934979,), (1395934749,), (1395934796,), (1395934858,), (1395934892,), (1395934927,), (1395935163,), (1395935225,), (1395935249,), (1395935265,), (1395935308,), (1395935316,), (1395935318,), (1395935321,), (1395935325,), (1395935344,), (1395935346,), (1395935349,), (1395935353,), (1395935386,), (1395935387,), (1395935388,), (1395935390,), (1395935394,), (1395935398,), (1395935416,), (1395935418,), (1395935420,), (1395935423,), (1395935450,), (1395935451,), (1395935452,), (1395935454,), (1395935457,), (1395935459,), (1395935495,), (1395935497,), (1395935499,), (1395935502,), (1395935506,), (1395935520,), (1395935522,), (1395935524,), (1395935527,), (1395935535,), (1395935543,), (1395935589,), (1395935601,), (1395935605,), (1395935647,), (1395935648,), (1395935649,), (1395935654,), (1395935662,), (1395935667,), (1395935684,), (1395935686,), (1395935688,), (1395935691,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24112025': {'nb_upload': 58, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28839338]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1395935691, 1395935688, 1395935686, 1395935684, 1395935667, 1395935662, 1395935654, 1395935649, 1395935648, 1395935647] map_info['map_portfolio_photo'] : {28839338: [1395935691, 1395935688, 1395935686, 1395935684, 1395935667, 1395935662, 1395935654, 1395935649, 1395935648, 1395935647, 1395935605, 1395935601, 1395935589, 1395935543, 1395935535, 1395935527, 1395935524, 1395935522, 1395935520, 1395935506, 1395935502, 1395935499, 1395935497, 1395935495, 1395935459, 1395935457, 1395935454, 1395935452, 1395935451, 1395935450, 1395935423, 1395935420, 1395935418, 1395935416, 1395935398, 1395935394, 1395935390, 1395935388, 1395935387, 1395935386, 1395935353, 1395935349, 1395935346, 1395935344, 1395935325, 1395935321, 1395935318, 1395935316, 1395935308, 1395935265, 1395935249, 1395935225, 1395935163, 1395934927, 1395934892, 1395934858, 1395934796, 1395934749]} final : True mtd_id 4302 list_pids : [1395935691, 1395935688, 1395935686, 1395935684, 1395935667, 1395935662, 1395935654, 1395935649, 1395935648, 1395935647] Looping around the photos to save general results len do output : 1 /28839338Didn'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, '4104474') ('4302', '28839338', '1395935691', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935688', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935686', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935684', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935667', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935662', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935654', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935649', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935648', None, None, None, None, None, '4104474') ('4302', None, None, None, None, None, None, None, '4104474') ('4302', '28839338', '1395935647', None, None, None, None, None, '4104474') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '28839338', 'None', None, None, None, None, '4104474'), ('4302', '28839338', '1395935691', None, None, None, None, None, '4104474'), ('4302', '28839338', '1395935688', None, None, None, None, None, '4104474'), ('4302', '28839338', '1395935686', None, None, None, None, None, '4104474'), ('4302', '28839338', '1395935684', None, None, None, None, None, '4104474'), ('4302', '28839338', '1395935667', None, None, None, None, None, '4104474'), ('4302', '28839338', '1395935662', None, None, None, None, None, '4104474'), ('4302', '28839338', '1395935654', None, None, None, None, None, '4104474'), ('4302', '28839338', '1395935649', None, None, None, None, None, '4104474'), ('4302', '28839338', '1395935648', None, None, None, None, None, '4104474'), ('4302', '28839338', '1395935647', None, None, None, None, None, '4104474')] time used for this insertion : 0.017390727996826172 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.4283995628356934 time spend to save output : 0.017554283142089844 total time spend for step 5 : 2.445953845977783 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 (4104474) 2.37user 2.49system 0:13.08elapsed 37%CPU (0avgtext+0avgdata 159128maxresident)k 13792inputs+13800outputs (209major+74760minor)pagefaults 0swaps