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 : 3681982 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 (4102757) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4102757) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28830869 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4102757'] with mtr_portfolio_ids : ['28830869'] and first list_photo_ids : [] new path : /proc/3681982/ Name: python3 Umask: 0002 State: R (running) Tgid: 3681982 Ngid: 0 Pid: 3681982 PPid: 3681981 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3681982 NSpid: 3681982 NSpgid: 3680601 NSsid: 3680601 VmPeak: 1106908 kB VmSize: 1106884 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 97704 kB VmRSS: 97704 kB RssAnon: 59912 kB RssFile: 37792 kB RssShmem: 0 kB VmData: 865636 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 592 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 123 nonvoluntary_ctxt_switches: 84 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3681982', 'Ngid': '0', 'Pid': '3681982', 'PPid': '3681981', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3681982', 'NSpid': '3681982', 'NSpgid': '3680601', 'NSsid': '3680601', 'VmPeak': '1106908 kB', 'VmSize': '1106884 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '97704 kB', 'VmRSS': '97704 kB', 'RssAnon': '59912 kB', 'RssFile': '37792 kB', 'RssShmem': '0 kB', 'VmData': '865636 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '592 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '123', 'nonvoluntary_ctxt_switches': '84'} ('datou_batch_current', '3681982', '1106908', '0', '1106884', '865636', '97704', b'', 'marlene', '4102757') 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 (28830869) 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 (4102757 ) ) 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 (28830869) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1395900538, 'portfolio_id': 28830869}, {'photo_id': 1395898952, 'portfolio_id': 28830869}, {'photo_id': 1395898949, 'portfolio_id': 28830869}, {'photo_id': 1395898947, 'portfolio_id': 28830869}, {'photo_id': 1395898946, 'portfolio_id': 28830869}, {'photo_id': 1395898945, 'portfolio_id': 28830869}, {'photo_id': 1395898927, 'portfolio_id': 28830869}, {'photo_id': 1395898897, 'portfolio_id': 28830869}, {'photo_id': 1395898784, 'portfolio_id': 28830869}, {'photo_id': 1395898765, 'portfolio_id': 28830869}, {'photo_id': 1395898762, 'portfolio_id': 28830869}, {'photo_id': 1395898758, 'portfolio_id': 28830869}, {'photo_id': 1395898756, 'portfolio_id': 28830869}, {'photo_id': 1395898740, 'portfolio_id': 28830869}, {'photo_id': 1395898651, 'portfolio_id': 28830869}, {'photo_id': 1395898645, 'portfolio_id': 28830869}, {'photo_id': 1395898620, 'portfolio_id': 28830869}, {'photo_id': 1395898619, 'portfolio_id': 28830869}, {'photo_id': 1395898608, 'portfolio_id': 28830869}, {'photo_id': 1395898607, 'portfolio_id': 28830869}, {'photo_id': 1395898568, 'portfolio_id': 28830869}, {'photo_id': 1395898559, 'portfolio_id': 28830869}, {'photo_id': 1395898524, 'portfolio_id': 28830869}, {'photo_id': 1395898521, 'portfolio_id': 28830869}, {'photo_id': 1395898464, 'portfolio_id': 28830869}, {'photo_id': 1395898463, 'portfolio_id': 28830869}, {'photo_id': 1395898253, 'portfolio_id': 28830869}, {'photo_id': 1395898204, 'portfolio_id': 28830869}, {'photo_id': 1395898146, 'portfolio_id': 28830869}, {'photo_id': 1395898084, 'portfolio_id': 28830869}, {'photo_id': 1395898040, 'portfolio_id': 28830869}, {'photo_id': 1395898027, 'portfolio_id': 28830869}, {'photo_id': 1395897675, 'portfolio_id': 28830869}, {'photo_id': 1395897642, 'portfolio_id': 28830869}, {'photo_id': 1395897611, 'portfolio_id': 28830869}, {'photo_id': 1395897570, 'portfolio_id': 28830869}, {'photo_id': 1395897507, 'portfolio_id': 28830869}, {'photo_id': 1395897360, 'portfolio_id': 28830869}, {'photo_id': 1395897306, 'portfolio_id': 28830869}, {'photo_id': 1395897274, 'portfolio_id': 28830869}, {'photo_id': 1395897243, 'portfolio_id': 28830869}, {'photo_id': 1395897240, 'portfolio_id': 28830869}, {'photo_id': 1395897238, 'portfolio_id': 28830869}, {'photo_id': 1395897176, 'portfolio_id': 28830869}, {'photo_id': 1395897143, 'portfolio_id': 28830869}, {'photo_id': 1395897113, 'portfolio_id': 28830869}, {'photo_id': 1395897081, 'portfolio_id': 28830869}, {'photo_id': 1395897042, 'portfolio_id': 28830869}, {'photo_id': 1395896706, 'portfolio_id': 28830869}, {'photo_id': 1395896704, 'portfolio_id': 28830869}, {'photo_id': 1395896700, 'portfolio_id': 28830869}] map_portfolio_id_photo_id: {28830869: [1395900538, 1395898952, 1395898949, 1395898947, 1395898946, 1395898945, 1395898927, 1395898897, 1395898784, 1395898765, 1395898762, 1395898758, 1395898756, 1395898740, 1395898651, 1395898645, 1395898620, 1395898619, 1395898608, 1395898607, 1395898568, 1395898559, 1395898524, 1395898521, 1395898464, 1395898463, 1395898253, 1395898204, 1395898146, 1395898084, 1395898040, 1395898027, 1395897675, 1395897642, 1395897611, 1395897570, 1395897507, 1395897360, 1395897306, 1395897274, 1395897243, 1395897240, 1395897238, 1395897176, 1395897143, 1395897113, 1395897081, 1395897042, 1395896706, 1395896704, 1395896700]} ##### 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.018871307373046875 #### 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 14:02: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 (28830869) 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 : 28830869 get user id for portfolio 28830869 get sub ptf for main ptf 28830869, type 3726 and hashtags ['Teint_Dans_La_Masse', 'autre_refus', 'metal', 'environnement', 'plastique', 'kraft', 'mal_croppe', 'cartonnette', 'papier', 'flou', 'Carton_gris', 'Carton_brun'] 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 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','metal','environnement','plastique','kraft','mal_croppe','cartonnette','papier','flou','Carton_gris','Carton_brun')) 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`=28830869 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','metal','environnement','plastique','kraft','mal_croppe','cartonnette','papier','flou','Carton_gris','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 28830869, 'sub_port_id': 28830874, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565819, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 54, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 54, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 48, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 28830869, 'sub_port_id': 28830875, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565820, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 54, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 54, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 48, 59)}, 'cartonnette': {'main_port_id': 28830869, 'sub_port_id': 28830876, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565821, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 54, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 54, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 48, 59)}, 'plastique': {'main_port_id': 28830869, 'sub_port_id': 28830877, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565822, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 54, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 54, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 48, 59)}, 'mal_croppe': {'main_port_id': 28830869, 'sub_port_id': 28830878, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565823, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 54, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 54, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 48, 59)}, 'flou': {'main_port_id': 28830869, 'sub_port_id': 28830879, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565824, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 54, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 54, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 48, 59)}, 'autre_refus': {'main_port_id': 28830869, 'sub_port_id': 28830880, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565825, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 54, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 54, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 48, 59)}, 'Carton_gris': {'main_port_id': 28830869, 'sub_port_id': 28830881, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565826, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 54, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 54, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 48, 59)}, 'papier': {'main_port_id': 28830869, 'sub_port_id': 28830882, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565827, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 54, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 54, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 48, 59)}, 'Carton_brun': {'main_port_id': 28830869, 'sub_port_id': 28830883, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565828, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 54, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 54, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 48, 59)}, 'kraft': {'main_port_id': 28830869, 'sub_port_id': 28830884, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565829, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 54, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 54, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 48, 59)}, 'environnement': {'main_port_id': 28830869, 'sub_port_id': 28830885, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565830, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 54, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 54, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 48, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28830874 , 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=28830869 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 (28830874) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28830869) result : ((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,)) 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 (1395896700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28830875 , 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=28830869 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 (28830875) result : ((1395898785,), (1395898786,), (1395899265,), (1395899266,), (1395899321,), (1395899322,), (1395899728,), (1395899730,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28830869) result : ((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,)) 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 (1395896700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28830876 , 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=28830869 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 (28830876) result : ((1395898798,), (1395898800,), (1395899094,), (1395899281,), (1395899282,), (1395899323,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28830869) result : ((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,)) 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 (1395896700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28830877 , 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=28830869 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 (28830877) result : ((1395898808,), (1395899287,), (1395899288,), (1395899289,), (1395899290,), (1395899292,), (1395899293,), (1395899324,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28830869) result : ((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,)) 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 (1395896700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28830878 , 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=28830869 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 (28830878) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28830869) result : ((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,)) 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 (1395896700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28830879 , 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=28830869 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 (28830879) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28830869) result : ((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,)) 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 (1395896700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28830880 , 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=28830869 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 (28830880) result : ((1395899268,), (1395899269,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28830869) result : ((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,)) 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 (1395896700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28830881 , 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=28830869 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 (28830881) result : ((1395898025,), (1395898789,), (1395898790,), (1395899083,), (1395899085,), (1395899271,), (1395899272,), (1395899273,), (1395899274,), (1395899276,), (1395899277,), (1395899278,), (1395899279,), (1395899741,), (1395899743,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28830869) result : ((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,)) 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 (1395896700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28830882 , 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=28830869 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 (28830882) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28830869) result : ((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,)) 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 (1395896700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28830883 , 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=28830869 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 (28830883) result : ((1395899105,), (1395899107,), (1395899109,), (1395899284,), (1395899285,), (1395899757,), (1395899760,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28830869) result : ((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,)) 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 (1395896700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28830884 , 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=28830869 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 (28830884) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28830869) result : ((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,)) 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 (1395896700) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 28830885 , 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=28830869 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 (28830885) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (28830869) result : ((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,)) 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 (1395896700) and cspi.crop_hashtag_id = chi.id; 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`=28830869 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','metal','environnement','plastique','kraft','mal_croppe','cartonnette','papier','flou','Carton_gris','Carton_brun')) 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`=28830869 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('Teint_Dans_La_Masse','autre_refus','metal','environnement','plastique','kraft','mal_croppe','cartonnette','papier','flou','Carton_gris','Carton_brun')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 28830869, 'sub_port_id': 28830886, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565831, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 48, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 28830869, 'sub_port_id': 28830887, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565832, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 48, 59)}, 'cartonnette': {'main_port_id': 28830869, 'sub_port_id': 28830888, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565833, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 48, 59)}, 'plastique': {'main_port_id': 28830869, 'sub_port_id': 28830889, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565834, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 48, 59)}, 'mal_croppe': {'main_port_id': 28830869, 'sub_port_id': 28830890, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565835, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 48, 59)}, 'flou': {'main_port_id': 28830869, 'sub_port_id': 28830891, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565836, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 48, 59)}, 'autre_refus': {'main_port_id': 28830869, 'sub_port_id': 28830892, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565837, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 48, 59)}, 'Carton_gris': {'main_port_id': 28830869, 'sub_port_id': 28830893, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565838, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 48, 59)}, 'papier': {'main_port_id': 28830869, 'sub_port_id': 28830894, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565839, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 48, 59)}, 'Carton_brun': {'main_port_id': 28830869, 'sub_port_id': 28830895, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565840, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 48, 59)}, 'kraft': {'main_port_id': 28830869, 'sub_port_id': 28830896, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565841, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 48, 59), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 48, 59), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 48, 59)}, 'environnement': {'main_port_id': 28830869, 'sub_port_id': 28830897, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19565842, 'last_updated_at': datetime.datetime(2025, 11, 24, 13, 54, 29), 'last_updated_at_desc': datetime.datetime(2025, 11, 24, 13, 54, 29), 'last_updated_at_asc': datetime.datetime(2025, 11, 24, 13, 48, 59)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28830886,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28830874 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28830887,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28830875 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28830888,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28830876 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28830889,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28830877 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28830890,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28830878 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28830891,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28830879 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28830892,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28830880 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28830893,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28830881 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28830894,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28830882 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28830895,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28830883 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28830896,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28830884 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 28830897,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 28830885 lien utilise dans velours : https://marlene.fotonower.com/velours/28830886,28830887,28830888,28830889,28830890,28830891,28830892,28830893,28830894,28830895,28830896,28830897?tags=metal,Teint_Dans_La_Masse,cartonnette,plastique,mal_croppe,flou,autre_refus,Carton_gris,papier,Carton_brun,kraft,environnement After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28830869]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1395900538] map_info['map_portfolio_photo'] : {28830869: [1395900538, 1395898952, 1395898949, 1395898947, 1395898946, 1395898945, 1395898927, 1395898897, 1395898784, 1395898765, 1395898762, 1395898758, 1395898756, 1395898740, 1395898651, 1395898645, 1395898620, 1395898619, 1395898608, 1395898607, 1395898568, 1395898559, 1395898524, 1395898521, 1395898464, 1395898463, 1395898253, 1395898204, 1395898146, 1395898084, 1395898040, 1395898027, 1395897675, 1395897642, 1395897611, 1395897570, 1395897507, 1395897360, 1395897306, 1395897274, 1395897243, 1395897240, 1395897238, 1395897176, 1395897143, 1395897113, 1395897081, 1395897042, 1395896706, 1395896704, 1395896700]} final : False mtd_id 4302 list_pids : [1395900538] Looping around the photos to save general results len do output : 1 /28830869. 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, '4102757') ('4302', '28830869', '1395900538', None, None, None, None, None, '4102757') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '28830869', "{'metal': 28830874, 'Teint_Dans_La_Masse': 28830875, 'cartonnette': 28830876, 'plastique': 28830877, 'mal_croppe': 28830878, 'flou': 28830879, 'autre_refus': 28830880, 'Carton_gris': 28830881, 'papier': 28830882, 'Carton_brun': 28830883, 'kraft': 28830884, 'environnement': 28830885}", None, None, None, None, '4102757'), ('4302', '28830869', '1395900538', None, None, None, None, None, '4102757')] time used for this insertion : 0.01411581039428711 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.570122241973877 time spend to save output : 0.01433253288269043 total time spend for step 1 : 0.5844547748565674 step2:final Mon Nov 24 14:02:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! 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 (28830869) 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 28830869 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1395896706,1395896704,1395896700,1395898927,1395898952,1395897176,1395897675,1395898897,1395898949,1395897642,1395897143,1395897611,1395898651,1395898645,1395897113,1395897570,1395897081,1395898253,1395897042,1395897507,1395898204,1395897360,1395897306,1395897274,1395897243,1395897240,1395897238,1395898146,1395898084,1395898040,1395898027,1395898619,1395898620,1395898607,1395898608,1395898559,1395898568,1395898521,1395898524,1395898463,1395898464,1395898784,1395898765,1395898762,1395898758,1395898756,1395898740,1395898947,1395898946,1395898945,1395900538); 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([28830869]) Inside saveOutput : final : False verbose : True original output for save of step final : {1395900538: ('0.049333676127340666',)} new output for save of step final : {1395900538: ('0.049333676127340666',)} [1395900538] map_info['map_portfolio_photo'] : {28830869: [1395900538, 1395898952, 1395898949, 1395898947, 1395898946, 1395898945, 1395898927, 1395898897, 1395898784, 1395898765, 1395898762, 1395898758, 1395898756, 1395898740, 1395898651, 1395898645, 1395898620, 1395898619, 1395898608, 1395898607, 1395898568, 1395898559, 1395898524, 1395898521, 1395898464, 1395898463, 1395898253, 1395898204, 1395898146, 1395898084, 1395898040, 1395898027, 1395897675, 1395897642, 1395897611, 1395897570, 1395897507, 1395897360, 1395897306, 1395897274, 1395897243, 1395897240, 1395897238, 1395897176, 1395897143, 1395897113, 1395897081, 1395897042, 1395896706, 1395896704, 1395896700]} final : False mtd_id 4302 list_pids : [1395900538] Looping around the photos to save general results len do output : 1 /1395900538.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, '4102757') ('4302', '28830869', '1395900538', None, None, None, None, None, '4102757') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 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', '28830869', '1395900538', '0.049333676127340666', None, None, None, None, '4102757')] time used for this insertion : 0.013824462890625 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.08185529708862305 time spend to save output : 0.014011621475219727 total time spend for step 2 : 0.09586691856384277 step3:velours_tree Mon Nov 24 14:02:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {28830869: [{'metal': 28830874, 'Teint_Dans_La_Masse': 28830875, 'cartonnette': 28830876, 'plastique': 28830877, 'mal_croppe': 28830878, 'flou': 28830879, 'autre_refus': 28830880, 'Carton_gris': 28830881, 'papier': 28830882, 'Carton_brun': 28830883, 'kraft': 28830884, 'environnement': 28830885}]} input_args_next_step : {28830869: ()} output_args : {28830869: [{'metal': 28830874, 'Teint_Dans_La_Masse': 28830875, 'cartonnette': 28830876, 'plastique': 28830877, 'mal_croppe': 28830878, 'flou': 28830879, 'autre_refus': 28830880, 'Carton_gris': 28830881, 'papier': 28830882, 'Carton_brun': 28830883, 'kraft': 28830884, 'environnement': 28830885}]} args : 28830869 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 : ({'metal': 28830874, 'Teint_Dans_La_Masse': 28830875, 'cartonnette': 28830876, 'plastique': 28830877, 'mal_croppe': 28830878, 'flou': 28830879, 'autre_refus': 28830880, 'Carton_gris': 28830881, 'papier': 28830882, 'Carton_brun': 28830883, 'kraft': 28830884, 'environnement': 28830885},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28830869) 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([28830869]) 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.4879109859466553 time spend to save output : 6.580352783203125e-05 total time spend for step 3 : 0.4879767894744873 step4:send_mail_cod Mon Nov 24 14:02:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! complete output_args for input 2 : {1395900538: ('0.049333676127340666',)} input_args_next_step : {1395900538: ()} output_args : {1395900538: ('0.049333676127340666',)} args : 1395900538 depend.output_id : 0 complete output_args for input 3 : {28830869: [{'metal': 28830874, 'Teint_Dans_La_Masse': 28830875, 'cartonnette': 28830876, 'plastique': 28830877, 'mal_croppe': 28830878, 'flou': 28830879, 'autre_refus': 28830880, 'Carton_gris': 28830881, 'papier': 28830882, 'Carton_brun': 28830883, 'kraft': 28830884, 'environnement': 28830885}]} input_args_next_step : {1395900538: ('0.049333676127340666',), 28830869: ()} output_args : {28830869: [{'metal': 28830874, 'Teint_Dans_La_Masse': 28830875, 'cartonnette': 28830876, 'plastique': 28830877, 'mal_croppe': 28830878, 'flou': 28830879, 'autre_refus': 28830880, 'Carton_gris': 28830881, 'papier': 28830882, 'Carton_brun': 28830883, 'kraft': 28830884, 'environnement': 28830885}]} args : 28830869 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 :2, first value : ('0.049333676127340666',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28830869) 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 (1395900538) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1395900538 download finish for photo 1395900538 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette288308741763989379/ length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P28830869_24-11-2025_14_02_59.pdf 28830874 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=28830874 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette288308741763989379 28830876 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=28830876 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395898798: '1763988666_2404740_1395898040_52a9845553de293a8f53fd7bb5a52c89_rle_crop_4043678637_0.png', 1395898800: '1763988666_2404740_1395898040_52a9845553de293a8f53fd7bb5a52c89_rle_crop_4043678644_0.png', 1395899094: '1763988785_2409449_1395898740_a9d911ec87569aed2cc7582f86cefc06_rle_crop_4043680342_0.png', 1395899281: '1763988807_2409807_1395898568_ae1aa730811b46eccd1b2af24bfbf449_rle_crop_4043680619_0.png', 1395899282: '1763988807_2409807_1395898559_604baee8c74d483d33756b5728a41269_rle_crop_4043680629_0.png', 1395899323: '1763988906_2412366_1395898945_24352043ef1cd3922f8c95679118ffa2_rle_crop_4043681516_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/bb8914cb527568dbce0eaabe2d016b88_31308796.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/8d0f05c52a240ba385f7844b6ffc259e_73394206.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/1f53027dba32a3fffc3e20fa0ab74284_83541073.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/d00784741b15586d92fa1a9f6aaa4510_80202611.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/d00784741b15586d92fa1a9f6aaa4510_28346064.png change filename to text .imagette288308761763989379/ imagette288308761763989379/1763988906_2412366_1395898945_24352043ef1cd3922f8c95679118ffa2_rle_crop_4043681516_0.png.png imagette288308761763989379/1763988785_2409449_1395898740_a9d911ec87569aed2cc7582f86cefc06_rle_crop_4043680342_0.png.png imagette288308761763989379/1763988666_2404740_1395898040_52a9845553de293a8f53fd7bb5a52c89_rle_crop_4043678644_0.png.png imagette288308761763989379/1763988807_2409807_1395898559_604baee8c74d483d33756b5728a41269_rle_crop_4043680629_0.png.png imagette288308761763989379/1763988666_2404740_1395898040_52a9845553de293a8f53fd7bb5a52c89_rle_crop_4043678637_0.png.png imagette288308761763989379/1763988807_2409807_1395898568_ae1aa730811b46eccd1b2af24bfbf449_rle_crop_4043680619_0.png.png wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/56bc3e9c771ac5b69d07dab14d4dae7d_64603819.png imagette288308761763989379 28830877 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=28830877 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395898808: '1763988666_2404740_1395898040_52a9845553de293a8f53fd7bb5a52c89_rle_crop_4043678640_0.png', 1395899287: '1763988807_2409807_1395898608_f0092174ae3252c8c8c3912f08a14fd8_rle_crop_4043680579_0.png', 1395899288: '1763988807_2409807_1395898607_e9dd6f17d3a63af3cd58d9374ad30579_rle_crop_4043680602_0.png', 1395899289: '1763988807_2409807_1395898568_ae1aa730811b46eccd1b2af24bfbf449_rle_crop_4043680621_0.png', 1395899290: '1763988807_2409807_1395898559_604baee8c74d483d33756b5728a41269_rle_crop_4043680631_0.png', 1395899292: '1763988807_2409807_1395898524_1bf5c38b12258e1ac0d9a5d844cb3e74_rle_crop_4043680647_0.png', 1395899293: '1763988807_2409807_1395898521_938682acb2810afd1e6a06dd8cafddd9_rle_crop_4043680664_0.png', 1395899324: '1763988906_2412366_1395898946_53f85f45118ebda5ab336bc1d0a48661_rle_crop_4043681503_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/c77f7c4ed32c26a57b2eacd9c99ac0de_67582596.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/bbf8f939e701e23b87eec51b88c1ac92_67565141.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/bbf8f939e701e23b87eec51b88c1ac92_17270550.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/73b30f63555ad4e102e6fd64bbb29b01_7578516.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/73b30f63555ad4e102e6fd64bbb29b01_52979080.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/d316899f13c9c2e12b84e779acbb54ed_55437660.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/d316899f13c9c2e12b84e779acbb54ed_73918789.png change filename to text .imagette288308771763989380/ imagette288308771763989380/1763988807_2409807_1395898608_f0092174ae3252c8c8c3912f08a14fd8_rle_crop_4043680579_0.png.png imagette288308771763989380/1763988807_2409807_1395898607_e9dd6f17d3a63af3cd58d9374ad30579_rle_crop_4043680602_0.png.png imagette288308771763989380/1763988807_2409807_1395898559_604baee8c74d483d33756b5728a41269_rle_crop_4043680631_0.png.png imagette288308771763989380/1763988807_2409807_1395898568_ae1aa730811b46eccd1b2af24bfbf449_rle_crop_4043680621_0.png.png imagette288308771763989380/1763988906_2412366_1395898946_53f85f45118ebda5ab336bc1d0a48661_rle_crop_4043681503_0.png.png imagette288308771763989380/1763988807_2409807_1395898524_1bf5c38b12258e1ac0d9a5d844cb3e74_rle_crop_4043680647_0.png.png imagette288308771763989380/1763988807_2409807_1395898521_938682acb2810afd1e6a06dd8cafddd9_rle_crop_4043680664_0.png.png imagette288308771763989380/1763988666_2404740_1395898040_52a9845553de293a8f53fd7bb5a52c89_rle_crop_4043678640_0.png.png imagette288308781763989380/ imagette288308791763989380/ wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/61d0382226958b276504b78f761e9829_19974754.png imagette288308771763989380 28830878 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=28830878 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette288308781763989380 28830879 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=28830879 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette288308791763989380 28830880 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=28830880 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395899268: '1763988807_2409807_1395898608_f0092174ae3252c8c8c3912f08a14fd8_rle_crop_4043680575_0.png', 1395899269: '1763988807_2409807_1395898607_e9dd6f17d3a63af3cd58d9374ad30579_rle_crop_4043680598_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/be51df78a1406353843641e467264c33_51054974.png change filename to text .imagette288308801763989380/ imagette288308801763989380/1763988807_2409807_1395898608_f0092174ae3252c8c8c3912f08a14fd8_rle_crop_4043680575_0.png.png imagette288308801763989380/1763988807_2409807_1395898607_e9dd6f17d3a63af3cd58d9374ad30579_rle_crop_4043680598_0.png.png imagette288308841763989380/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/be51df78a1406353843641e467264c33_45509779.png imagette288308801763989380 28830884 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=28830884 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette288308841763989380 28830875 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=28830875 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395898785: '1763988666_2404740_1395898040_52a9845553de293a8f53fd7bb5a52c89_rle_crop_4043678643_0.png', 1395898786: '1763988666_2404740_1395898027_bf0753297d54fd31c3f39e6e8236d3b1_rle_crop_4043678667_0.png', 1395899265: '1763988807_2409807_1395898608_f0092174ae3252c8c8c3912f08a14fd8_rle_crop_4043680582_0.png', 1395899266: '1763988807_2409807_1395898607_e9dd6f17d3a63af3cd58d9374ad30579_rle_crop_4043680605_0.png', 1395899321: '1763988906_2412366_1395898946_53f85f45118ebda5ab336bc1d0a48661_rle_crop_4043681507_0.png', 1395899322: '1763988906_2412366_1395898946_53f85f45118ebda5ab336bc1d0a48661_rle_crop_4043681506_0.png', 1395899728: '1763989145_2418360_1395898620_3d3056d8baee78a03d0b901eb6814db3_rle_crop_4043689308_0.png', 1395899730: '1763989145_2418360_1395898619_19758fcf2001bed3a7997d6412930e80_rle_crop_4043689329_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/15d14e2dd739bc945096b632e663eeaf_65230930.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/98d10f14a12df52710e5d0581afee265_55388104.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/0d3bd8b0396a5369a16087cd94d55cf6_3358015.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/0d3bd8b0396a5369a16087cd94d55cf6_92726648.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/3ec315ceea6764b81d4591e90b262be6_99482933.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/97c33f82349d83ceb3ef87c1629f6118_68541063.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/9ca66ee25eec956dd2928fcf8a5b50ce_22337613.png change filename to text .imagette288308751763989380/ imagette288308751763989380/1763988906_2412366_1395898946_53f85f45118ebda5ab336bc1d0a48661_rle_crop_4043681506_0.png.png imagette288308751763989380/1763988807_2409807_1395898608_f0092174ae3252c8c8c3912f08a14fd8_rle_crop_4043680582_0.png.png imagette288308751763989380/1763989145_2418360_1395898619_19758fcf2001bed3a7997d6412930e80_rle_crop_4043689329_0.png.png imagette288308751763989380/1763988666_2404740_1395898027_bf0753297d54fd31c3f39e6e8236d3b1_rle_crop_4043678667_0.png.png imagette288308751763989380/1763988666_2404740_1395898040_52a9845553de293a8f53fd7bb5a52c89_rle_crop_4043678643_0.png.png imagette288308751763989380/1763989145_2418360_1395898620_3d3056d8baee78a03d0b901eb6814db3_rle_crop_4043689308_0.png.png imagette288308751763989380/1763988807_2409807_1395898607_e9dd6f17d3a63af3cd58d9374ad30579_rle_crop_4043680605_0.png.png imagette288308751763989380/1763988906_2412366_1395898946_53f85f45118ebda5ab336bc1d0a48661_rle_crop_4043681507_0.png.png wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/9ca66ee25eec956dd2928fcf8a5b50ce_20110662.png imagette288308751763989380 28830881 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=28830881 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395898025: '1763988546_2399861_1395896706_f86c28a12f3abf0c6ee588ff5871a84f_rle_crop_4043678346_0.png', 1395898789: '1763988666_2404740_1395898027_bf0753297d54fd31c3f39e6e8236d3b1_rle_crop_4043678656_0.png', 1395898790: '1763988666_2404740_1395898027_bf0753297d54fd31c3f39e6e8236d3b1_rle_crop_4043678659_0.png', 1395899083: '1763988785_2409449_1395898758_2e7a55a32a5fe8f15247707c7deabd90_rle_crop_4043680320_0.png', 1395899085: '1763988785_2409449_1395898740_a9d911ec87569aed2cc7582f86cefc06_rle_crop_4043680346_0.png', 1395899271: '1763988807_2409807_1395898608_f0092174ae3252c8c8c3912f08a14fd8_rle_crop_4043680580_0.png', 1395899272: '1763988807_2409807_1395898608_f0092174ae3252c8c8c3912f08a14fd8_rle_crop_4043680583_0.png', 1395899273: '1763988807_2409807_1395898607_e9dd6f17d3a63af3cd58d9374ad30579_rle_crop_4043680603_0.png', 1395899274: '1763988807_2409807_1395898607_e9dd6f17d3a63af3cd58d9374ad30579_rle_crop_4043680606_0.png', 1395899276: '1763988807_2409807_1395898568_ae1aa730811b46eccd1b2af24bfbf449_rle_crop_4043680623_0.png', 1395899277: '1763988807_2409807_1395898559_604baee8c74d483d33756b5728a41269_rle_crop_4043680633_0.png', 1395899278: '1763988807_2409807_1395898524_1bf5c38b12258e1ac0d9a5d844cb3e74_rle_crop_4043680641_0.png', 1395899279: '1763988807_2409807_1395898521_938682acb2810afd1e6a06dd8cafddd9_rle_crop_4043680658_0.png', 1395899741: '1763989145_2418360_1395898620_3d3056d8baee78a03d0b901eb6814db3_rle_crop_4043689310_0.png', 1395899743: '1763989145_2418360_1395898619_19758fcf2001bed3a7997d6412930e80_rle_crop_4043689331_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/42a6115086deb664ea4a3a15850094d7_30600150.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/737989ff98477796609455befae7943d_8754105.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/a6e73279d5a125fb719bad16c08fe1f3_37932857.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/51f29a9a831e34b1c47f7671613000a1_4396931.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/7f31cf5e54f5ffddc2b7405ba5d47ab4_58642200.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/1c5d9dd3db6860d1fa5d7da6136cbd03_55730904.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/50d7c8ba8026f5b90768e49013d191af_21756976.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/1c5d9dd3db6860d1fa5d7da6136cbd03_23045528.png change filename to text .wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/50d7c8ba8026f5b90768e49013d191af_94904803.png change filename to text .wget -O 10.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/e0aea240b6acd01ec57f24b4ba80fa29_83665192.png change filename to text .wget -O 11.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/e0aea240b6acd01ec57f24b4ba80fa29_40872686.png change filename to text .wget -O 12.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/46955127bece01ab46c2c6e87a904720_30886445.png change filename to text .wget -O 13.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/46955127bece01ab46c2c6e87a904720_75378307.png change filename to text .wget -O 14.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/1ce1f33b92bff75d5ecaf52fbddc8842_23922189.png change filename to text .imagette288308811763989381/ imagette288308811763989381/1763988546_2399861_1395896706_f86c28a12f3abf0c6ee588ff5871a84f_rle_crop_4043678346_0.png.png imagette288308811763989381/1763988785_2409449_1395898740_a9d911ec87569aed2cc7582f86cefc06_rle_crop_4043680346_0.png.png imagette288308811763989381/1763989145_2418360_1395898619_19758fcf2001bed3a7997d6412930e80_rle_crop_4043689331_0.png.png imagette288308811763989381/1763988785_2409449_1395898758_2e7a55a32a5fe8f15247707c7deabd90_rle_crop_4043680320_0.png.png imagette288308811763989381/1763988807_2409807_1395898568_ae1aa730811b46eccd1b2af24bfbf449_rle_crop_4043680623_0.png.png imagette288308811763989381/1763988807_2409807_1395898607_e9dd6f17d3a63af3cd58d9374ad30579_rle_crop_4043680606_0.png.png imagette288308811763989381/1763988666_2404740_1395898027_bf0753297d54fd31c3f39e6e8236d3b1_rle_crop_4043678659_0.png.png imagette288308811763989381/1763988807_2409807_1395898608_f0092174ae3252c8c8c3912f08a14fd8_rle_crop_4043680583_0.png.png imagette288308811763989381/1763988807_2409807_1395898559_604baee8c74d483d33756b5728a41269_rle_crop_4043680633_0.png.png imagette288308811763989381/1763988666_2404740_1395898027_bf0753297d54fd31c3f39e6e8236d3b1_rle_crop_4043678656_0.png.png imagette288308811763989381/1763988807_2409807_1395898521_938682acb2810afd1e6a06dd8cafddd9_rle_crop_4043680658_0.png.png imagette288308811763989381/1763989145_2418360_1395898620_3d3056d8baee78a03d0b901eb6814db3_rle_crop_4043689310_0.png.png imagette288308811763989381/1763988807_2409807_1395898608_f0092174ae3252c8c8c3912f08a14fd8_rle_crop_4043680580_0.png.png imagette288308811763989381/1763988807_2409807_1395898524_1bf5c38b12258e1ac0d9a5d844cb3e74_rle_crop_4043680641_0.png.png imagette288308811763989381/1763988807_2409807_1395898607_e9dd6f17d3a63af3cd58d9374ad30579_rle_crop_4043680603_0.png.png wget -O 15.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/1ce1f33b92bff75d5ecaf52fbddc8842_16746074.png imagette288308811763989381 28830883 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=28830883 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1395899105: '1763988785_2409449_1395898765_3c6bc447d365de8c12817fba0c5b0eff_rle_crop_4043680292_0.png', 1395899107: '1763988785_2409449_1395898762_aacf57045ffc0287fb60417799d7f910_rle_crop_4043680304_0.png', 1395899109: '1763988785_2409449_1395898740_a9d911ec87569aed2cc7582f86cefc06_rle_crop_4043680343_0.png', 1395899284: '1763988807_2409807_1395898608_f0092174ae3252c8c8c3912f08a14fd8_rle_crop_4043680584_0.png', 1395899285: '1763988807_2409807_1395898607_e9dd6f17d3a63af3cd58d9374ad30579_rle_crop_4043680607_0.png', 1395899757: '1763989145_2418360_1395898620_3d3056d8baee78a03d0b901eb6814db3_rle_crop_4043689309_0.png', 1395899760: '1763989145_2418360_1395898619_19758fcf2001bed3a7997d6412930e80_rle_crop_4043689330_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/f75a091a5c1ca91ddbbf913c09549c42_54111356.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/c82114fa6d6a032840e9ef6399a6b628_97782446.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/c33846b0250794d8519794e19499d4e8_61233374.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/88eabc40659b7bc39d76f9c40af63e2d_39371383.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/88eabc40659b7bc39d76f9c40af63e2d_66518441.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/83543a44ace48d0dcc96921a3f6496e0_49861871.png change filename to text .imagette288308831763989383/ imagette288308831763989383/1763988785_2409449_1395898740_a9d911ec87569aed2cc7582f86cefc06_rle_crop_4043680343_0.png.png imagette288308831763989383/1763988785_2409449_1395898762_aacf57045ffc0287fb60417799d7f910_rle_crop_4043680304_0.png.png imagette288308831763989383/1763989145_2418360_1395898619_19758fcf2001bed3a7997d6412930e80_rle_crop_4043689330_0.png.png imagette288308831763989383/1763988807_2409807_1395898607_e9dd6f17d3a63af3cd58d9374ad30579_rle_crop_4043680607_0.png.png imagette288308831763989383/1763989145_2418360_1395898620_3d3056d8baee78a03d0b901eb6814db3_rle_crop_4043689309_0.png.png imagette288308831763989383/1763988785_2409449_1395898765_3c6bc447d365de8c12817fba0c5b0eff_rle_crop_4043680292_0.png.png imagette288308831763989383/1763988807_2409807_1395898608_f0092174ae3252c8c8c3912f08a14fd8_rle_crop_4043680584_0.png.png wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/83543a44ace48d0dcc96921a3f6496e0_84751358.png imagette288308831763989383 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=28830869 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/28830886,28830887,28830888,28830889,28830890,28830891,28830892,28830893,28830894,28830895,28830896,28830897?tags=metal,Teint_Dans_La_Masse,cartonnette,plastique,mal_croppe,flou,autre_refus,Carton_gris,papier,Carton_brun,kraft,environnement your option no_mail is active, we will not send the real mail to your client args[1395900538] : ('0.049333676127340666',) no score found for photo 1395900538 We are sending mail with results at report@fotonower.com refus_total : 0.049333676127340666 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=28830869 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_P28830869_24-11-2025_14_02_59.pdf results_Auto_P28830869_24-11-2025_14_02_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28830869_24-11-2025_14_02_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','28830869','results_Auto_P28830869_24-11-2025_14_02_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28830869_24-11-2025_14_02_59.pdf','pdf','','0.13','0.049333676127340666') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28830869]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1395900538] map_info['map_portfolio_photo'] : {28830869: [1395900538, 1395898952, 1395898949, 1395898947, 1395898946, 1395898945, 1395898927, 1395898897, 1395898784, 1395898765, 1395898762, 1395898758, 1395898756, 1395898740, 1395898651, 1395898645, 1395898620, 1395898619, 1395898608, 1395898607, 1395898568, 1395898559, 1395898524, 1395898521, 1395898464, 1395898463, 1395898253, 1395898204, 1395898146, 1395898084, 1395898040, 1395898027, 1395897675, 1395897642, 1395897611, 1395897570, 1395897507, 1395897360, 1395897306, 1395897274, 1395897243, 1395897240, 1395897238, 1395897176, 1395897143, 1395897113, 1395897081, 1395897042, 1395896706, 1395896704, 1395896700]} final : False mtd_id 4302 list_pids : [1395900538] 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, '4102757') ('4302', '28830869', '1395900538', None, None, None, None, None, '4102757') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 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', '28830869', '1395900538', None, None, None, None, None, '4102757')] time used for this insertion : 0.014046192169189453 save_final save missing photos in datou_result : time spend for datou_step_exec : 5.020132303237915 time spend to save output : 0.014202356338500977 total time spend for step 4 : 5.034334659576416 step5:split_time_score Mon Nov 24 14:03:04 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['28830869'] 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 : [('28830869',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (28830869) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1395900538: {'path': 'temp/1763989379_3681982_1395900538_f6413aa0a44a6d96d4c848c1cb7cf29b.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 = 28830869; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm_bis',), ('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 = 28830869 group by h (('13', 51),) 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=28830869 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 (28830869) 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 (28830869) 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 28830869 Nombre de photos uploadées : 51 / 23040 (0%) 24112025 28830869 Nombre de photos taguées (types de déchets): 0 / 51 (0%) 24112025 28830869 Nombre de photos taguées (volume) : 0 / 51 (0%) [{'photo_id': 1395896706, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/f86c28a12f3abf0c6ee588ff5871a84f.jpg', 'username': None, 'uploaded_at': 1763988367, 'text': 'image_24112025_13_45_05_010160m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1395896704, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/3968fea34d8545dce359bf14e10df924.jpg', 'username': None, 'uploaded_at': 1763988367, 'text': 'image_24112025_13_45_14_009126m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1395896700, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/beade1943b0792787908c1d88c0d1c0e.jpg', 'username': None, 'uploaded_at': 1763988367, 'text': 'image_24112025_13_45_44_010135m0.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1395898927, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/11/24/8946fe4836bf11a80b17b720232e9b8d.jpg', 'username': None, 'uploaded_at': 1763988708, 'text': 'image_24112025_13_45_54_10136.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.7220458984375e-06 ??????????????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0032057762145996094 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 28830869, '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.25052666664123535 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': 2642084, 'mtr_portfolio_id': 28823447, 'dashboard_result_id': 17636844, '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': 2642084, 'mtr_portfolio_id': 28823600, 'dashboard_result_id': 17636845, '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': 2642084, 'mtr_portfolio_id': 28823956, 'dashboard_result_id': 17636846, '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': 2642084, 'mtr_portfolio_id': 28825204, 'dashboard_result_id': 17636847, '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': 2642084, 'mtr_portfolio_id': 28825393, 'dashboard_result_id': 17636848, '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': 2642084, 'mtr_portfolio_id': 28825711, 'dashboard_result_id': 17636849, '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': 2642084, 'mtr_portfolio_id': 28826020, 'dashboard_result_id': 17636850, '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': 2642084, 'mtr_portfolio_id': 28826207, 'dashboard_result_id': 17636851, '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': 2642084, 'mtr_portfolio_id': 28826578, 'dashboard_result_id': 17636852, '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': 2642084, 'mtr_portfolio_id': 28827082, 'dashboard_result_id': 17636853, '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': 2642084, 'mtr_portfolio_id': 28827671, 'dashboard_result_id': 17636854, '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': 2642084, 'mtr_portfolio_id': 28827962, 'dashboard_result_id': 17636855, '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': 2642084, 'mtr_portfolio_id': 28828365, 'dashboard_result_id': 17636856, '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': 2642084, 'mtr_portfolio_id': 28830500, 'dashboard_result_id': 17636857, '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_P28830500_24-11-2025_13_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28830501, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28830502, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28830503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28830504, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28830505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28830506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28830507, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28830508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28830509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28830510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28830511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28830512, 'pht': 3726}}"}, {'dashboat_entry_day': 2633033, 'dashboard_run_id': 2642084, 'mtr_portfolio_id': 28830584, 'dashboard_result_id': 17636858, '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': 2642084, 'mtr_portfolio_id': 28830869, 'dashboard_result_id': 17636859, '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_13_54_30.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}}"}] 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 = 2642084 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 (17636844, 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 = 2642084 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 (17636845, 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 = 2642084 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 (17636846, 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 = 2642084 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 (17636847, 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 = 2642084 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 (17636848, 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 = 2642084 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 (17636849, 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 = 2642084 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 (17636850, 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 = 2642084 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 (17636851, 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 = 2642084 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 = 2642084 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 (17636853, 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 = 2642084 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 (17636854, 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 = 2642084 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 (17636855, 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 = 2642084 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 (17636856, 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 = 28830500 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 = 28830500 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 = 28830500 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 28830500 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 = 28830500 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 = 28830500 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P28830500_24-11-2025_13_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 28830500 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_P28830500_24-11-2025_13_33_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 28830501, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 28830502, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 28830503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 28830504, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 28830505, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 28830506, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 28830507, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 28830508, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 28830509, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 28830510, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 28830511, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 28830512, 'pht': 3726}}" where mtr_portfolio_id = 28830500 and dashboard_run_id = 2642080 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 = 2642080 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 (17636858, 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 = 2642080 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 (17636859, 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 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,28830500,28830584,28830869) 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,), (1395893248,), (1395894083,), (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,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'24112025': {'nb_upload': 51, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([28830869]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1395900538] map_info['map_portfolio_photo'] : {28830869: [1395900538, 1395898952, 1395898949, 1395898947, 1395898946, 1395898945, 1395898927, 1395898897, 1395898784, 1395898765, 1395898762, 1395898758, 1395898756, 1395898740, 1395898651, 1395898645, 1395898620, 1395898619, 1395898608, 1395898607, 1395898568, 1395898559, 1395898524, 1395898521, 1395898464, 1395898463, 1395898253, 1395898204, 1395898146, 1395898084, 1395898040, 1395898027, 1395897675, 1395897642, 1395897611, 1395897570, 1395897507, 1395897360, 1395897306, 1395897274, 1395897243, 1395897240, 1395897238, 1395897176, 1395897143, 1395897113, 1395897081, 1395897042, 1395896706, 1395896704, 1395896700]} final : True mtd_id 4302 list_pids : [1395900538] Looping around the photos to save general results len do output : 1 /28830869Didn'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, '4102757') ('4302', '28830869', '1395900538', None, None, None, None, None, '4102757') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 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, '28830869', 'None', None, None, None, None, '4102757'), ('4302', '28830869', '1395900538', None, None, None, None, None, '4102757')] time used for this insertion : 0.016902685165405273 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4007720947265625 time spend to save output : 0.017060518264770508 total time spend for step 5 : 1.417832612991333 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 (4102757) 1.75user 2.56system 0:09.87elapsed 43%CPU (0avgtext+0avgdata 154608maxresident)k 79472inputs+7992outputs (403major+61706minor)pagefaults 0swaps