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 : 2748267 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 (3279133) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3279133) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24912308 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3279133'] with mtr_portfolio_ids : ['24912308'] and first list_photo_ids : [] new path : /proc/2748267/ Name: python3 Umask: 0002 State: R (running) Tgid: 2748267 Ngid: 0 Pid: 2748267 PPid: 2748266 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2748267 NSpid: 2748267 NSpgid: 2746474 NSsid: 2746474 VmPeak: 1106868 kB VmSize: 1106868 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100132 kB VmRSS: 100132 kB RssAnon: 59812 kB RssFile: 40320 kB RssShmem: 0 kB VmData: 865620 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 600 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 6/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: 42 nonvoluntary_ctxt_switches: 86 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2748267', 'Ngid': '0', 'Pid': '2748267', 'PPid': '2748266', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2748267', 'NSpid': '2748267', 'NSpgid': '2746474', 'NSsid': '2746474', 'VmPeak': '1106868 kB', 'VmSize': '1106868 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100132 kB', 'VmRSS': '100132 kB', 'RssAnon': '59812 kB', 'RssFile': '40320 kB', 'RssShmem': '0 kB', 'VmData': '865620 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '600 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '6/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': '42', 'nonvoluntary_ctxt_switches': '86'} ('datou_batch_current', '2748267', '1106868', '0', '1106868', '865620', '100132', b'', 'marlene', '3279133') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (24912308) 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 (3279133 ) ) 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 (24912308) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1372096442, 'portfolio_id': 24912308}, {'photo_id': 1372096440, 'portfolio_id': 24912308}, {'photo_id': 1372096439, 'portfolio_id': 24912308}, {'photo_id': 1372096436, 'portfolio_id': 24912308}, {'photo_id': 1372096432, 'portfolio_id': 24912308}, {'photo_id': 1372096428, 'portfolio_id': 24912308}, {'photo_id': 1372096390, 'portfolio_id': 24912308}, {'photo_id': 1372096387, 'portfolio_id': 24912308}, {'photo_id': 1372096385, 'portfolio_id': 24912308}, {'photo_id': 1372096384, 'portfolio_id': 24912308}, {'photo_id': 1372096382, 'portfolio_id': 24912308}, {'photo_id': 1372096379, 'portfolio_id': 24912308}, {'photo_id': 1372096357, 'portfolio_id': 24912308}, {'photo_id': 1372096354, 'portfolio_id': 24912308}, {'photo_id': 1372096351, 'portfolio_id': 24912308}, {'photo_id': 1372096349, 'portfolio_id': 24912308}, {'photo_id': 1372096347, 'portfolio_id': 24912308}, {'photo_id': 1372096345, 'portfolio_id': 24912308}, {'photo_id': 1372096331, 'portfolio_id': 24912308}, {'photo_id': 1372096329, 'portfolio_id': 24912308}, {'photo_id': 1372096327, 'portfolio_id': 24912308}, {'photo_id': 1372096324, 'portfolio_id': 24912308}, {'photo_id': 1372096322, 'portfolio_id': 24912308}, {'photo_id': 1372096318, 'portfolio_id': 24912308}, {'photo_id': 1372096297, 'portfolio_id': 24912308}, {'photo_id': 1372096294, 'portfolio_id': 24912308}, {'photo_id': 1372096293, 'portfolio_id': 24912308}, {'photo_id': 1372096291, 'portfolio_id': 24912308}, {'photo_id': 1372096290, 'portfolio_id': 24912308}, {'photo_id': 1372096288, 'portfolio_id': 24912308}, {'photo_id': 1372096274, 'portfolio_id': 24912308}, {'photo_id': 1372096272, 'portfolio_id': 24912308}, {'photo_id': 1372096269, 'portfolio_id': 24912308}, {'photo_id': 1372096268, 'portfolio_id': 24912308}, {'photo_id': 1372096264, 'portfolio_id': 24912308}, {'photo_id': 1372096259, 'portfolio_id': 24912308}] map_portfolio_id_photo_id: {24912308: [1372096442, 1372096440, 1372096439, 1372096436, 1372096432, 1372096428, 1372096390, 1372096387, 1372096385, 1372096384, 1372096382, 1372096379, 1372096357, 1372096354, 1372096351, 1372096349, 1372096347, 1372096345, 1372096331, 1372096329, 1372096327, 1372096324, 1372096322, 1372096318, 1372096297, 1372096294, 1372096293, 1372096291, 1372096290, 1372096288, 1372096274, 1372096272, 1372096269, 1372096268, 1372096264, 1372096259]} ##### 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.013960123062133789 #### 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 Jul 14 10:52: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 (24912308) 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 : 24912308 get user id for portfolio 24912308 get sub ptf for main ptf 24912308, type 3726 and hashtags ['autre_refus', 'Teint_Dans_La_Masse', 'Carton_brun', 'environnement', 'papier', 'metal', 'Carton_gris', 'plastique', 'mal_croppe', 'flou', 'kraft', 'cartonnette'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24912308 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Teint_Dans_La_Masse','Carton_brun','environnement','papier','metal','Carton_gris','plastique','mal_croppe','flou','kraft','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24912308 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Teint_Dans_La_Masse','Carton_brun','environnement','papier','metal','Carton_gris','plastique','mal_croppe','flou','kraft','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 24912308, 'sub_port_id': 24912310, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16775017, 'last_updated_at': datetime.datetime(2025, 7, 14, 10, 51), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 10, 51), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 10, 47, 26)}, 'kraft': {'main_port_id': 24912308, 'sub_port_id': 24912311, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16775018, 'last_updated_at': datetime.datetime(2025, 7, 14, 10, 51), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 10, 51), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 10, 47, 26)}, 'autre_refus': {'main_port_id': 24912308, 'sub_port_id': 24912312, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16775019, 'last_updated_at': datetime.datetime(2025, 7, 14, 10, 51), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 10, 51), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 10, 47, 26)}, 'metal': {'main_port_id': 24912308, 'sub_port_id': 24912313, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16775020, 'last_updated_at': datetime.datetime(2025, 7, 14, 10, 51), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 10, 51), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 10, 47, 26)}, 'environnement': {'main_port_id': 24912308, 'sub_port_id': 24912314, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16775021, 'last_updated_at': datetime.datetime(2025, 7, 14, 10, 51), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 10, 51), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 10, 47, 26)}, 'Carton_gris': {'main_port_id': 24912308, 'sub_port_id': 24912315, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16775022, 'last_updated_at': datetime.datetime(2025, 7, 14, 10, 51), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 10, 51), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 10, 47, 26)}, 'Carton_brun': {'main_port_id': 24912308, 'sub_port_id': 24912316, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16775023, 'last_updated_at': datetime.datetime(2025, 7, 14, 10, 51), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 10, 51), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 10, 47, 26)}, 'papier': {'main_port_id': 24912308, 'sub_port_id': 24912317, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16775024, 'last_updated_at': datetime.datetime(2025, 7, 14, 10, 51), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 10, 51), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 10, 47, 26)}, 'mal_croppe': {'main_port_id': 24912308, 'sub_port_id': 24912318, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16775025, 'last_updated_at': datetime.datetime(2025, 7, 14, 10, 51), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 10, 51), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 10, 47, 26)}, 'plastique': {'main_port_id': 24912308, 'sub_port_id': 24912319, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16775026, 'last_updated_at': datetime.datetime(2025, 7, 14, 10, 51), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 10, 51), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 10, 47, 26)}, 'flou': {'main_port_id': 24912308, 'sub_port_id': 24912320, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16775027, 'last_updated_at': datetime.datetime(2025, 7, 14, 10, 51), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 10, 51), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 10, 47, 26)}, 'cartonnette': {'main_port_id': 24912308, 'sub_port_id': 24912321, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16775028, 'last_updated_at': datetime.datetime(2025, 7, 14, 10, 51), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 10, 51), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 10, 47, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24912310 , 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=24912308 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 (24912310) result : ((1372096375,), (1372096376,), (1372096399,), (1372096400,), (1372096461,), (1372096462,), (1372096463,), (1372096491,), (1372096492,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24912308) result : ((1372096259,), (1372096264,), (1372096268,), (1372096269,), (1372096272,), (1372096274,), (1372096288,), (1372096290,), (1372096291,), (1372096293,), (1372096294,), (1372096297,), (1372096318,), (1372096322,), (1372096324,), (1372096327,), (1372096329,), (1372096331,), (1372096345,), (1372096347,), (1372096349,), (1372096351,), (1372096354,), (1372096357,), (1372096379,), (1372096382,), (1372096384,), (1372096385,), (1372096387,), (1372096390,), (1372096428,), (1372096432,), (1372096436,), (1372096439,), (1372096440,), (1372096442,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24912311 , 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=24912308 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 (24912311) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24912308) result : ((1372096259,), (1372096264,), (1372096268,), (1372096269,), (1372096272,), (1372096274,), (1372096288,), (1372096290,), (1372096291,), (1372096293,), (1372096294,), (1372096297,), (1372096318,), (1372096322,), (1372096324,), (1372096327,), (1372096329,), (1372096331,), (1372096345,), (1372096347,), (1372096349,), (1372096351,), (1372096354,), (1372096357,), (1372096379,), (1372096382,), (1372096384,), (1372096385,), (1372096387,), (1372096390,), (1372096428,), (1372096432,), (1372096436,), (1372096439,), (1372096440,), (1372096442,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24912312 , 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=24912308 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 (24912312) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24912308) result : ((1372096259,), (1372096264,), (1372096268,), (1372096269,), (1372096272,), (1372096274,), (1372096288,), (1372096290,), (1372096291,), (1372096293,), (1372096294,), (1372096297,), (1372096318,), (1372096322,), (1372096324,), (1372096327,), (1372096329,), (1372096331,), (1372096345,), (1372096347,), (1372096349,), (1372096351,), (1372096354,), (1372096357,), (1372096379,), (1372096382,), (1372096384,), (1372096385,), (1372096387,), (1372096390,), (1372096428,), (1372096432,), (1372096436,), (1372096439,), (1372096440,), (1372096442,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24912313 , 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=24912308 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 (24912313) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24912308) result : ((1372096259,), (1372096264,), (1372096268,), (1372096269,), (1372096272,), (1372096274,), (1372096288,), (1372096290,), (1372096291,), (1372096293,), (1372096294,), (1372096297,), (1372096318,), (1372096322,), (1372096324,), (1372096327,), (1372096329,), (1372096331,), (1372096345,), (1372096347,), (1372096349,), (1372096351,), (1372096354,), (1372096357,), (1372096379,), (1372096382,), (1372096384,), (1372096385,), (1372096387,), (1372096390,), (1372096428,), (1372096432,), (1372096436,), (1372096439,), (1372096440,), (1372096442,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24912314 , 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=24912308 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 (24912314) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24912308) result : ((1372096259,), (1372096264,), (1372096268,), (1372096269,), (1372096272,), (1372096274,), (1372096288,), (1372096290,), (1372096291,), (1372096293,), (1372096294,), (1372096297,), (1372096318,), (1372096322,), (1372096324,), (1372096327,), (1372096329,), (1372096331,), (1372096345,), (1372096347,), (1372096349,), (1372096351,), (1372096354,), (1372096357,), (1372096379,), (1372096382,), (1372096384,), (1372096385,), (1372096387,), (1372096390,), (1372096428,), (1372096432,), (1372096436,), (1372096439,), (1372096440,), (1372096442,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24912315 , 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=24912308 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 (24912315) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24912308) result : ((1372096259,), (1372096264,), (1372096268,), (1372096269,), (1372096272,), (1372096274,), (1372096288,), (1372096290,), (1372096291,), (1372096293,), (1372096294,), (1372096297,), (1372096318,), (1372096322,), (1372096324,), (1372096327,), (1372096329,), (1372096331,), (1372096345,), (1372096347,), (1372096349,), (1372096351,), (1372096354,), (1372096357,), (1372096379,), (1372096382,), (1372096384,), (1372096385,), (1372096387,), (1372096390,), (1372096428,), (1372096432,), (1372096436,), (1372096439,), (1372096440,), (1372096442,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24912316 , 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=24912308 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 (24912316) result : ((1372096464,), (1372096465,), (1372096495,), (1372096496,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24912308) result : ((1372096259,), (1372096264,), (1372096268,), (1372096269,), (1372096272,), (1372096274,), (1372096288,), (1372096290,), (1372096291,), (1372096293,), (1372096294,), (1372096297,), (1372096318,), (1372096322,), (1372096324,), (1372096327,), (1372096329,), (1372096331,), (1372096345,), (1372096347,), (1372096349,), (1372096351,), (1372096354,), (1372096357,), (1372096379,), (1372096382,), (1372096384,), (1372096385,), (1372096387,), (1372096390,), (1372096428,), (1372096432,), (1372096436,), (1372096439,), (1372096440,), (1372096442,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24912317 , 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=24912308 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 (24912317) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24912308) result : ((1372096259,), (1372096264,), (1372096268,), (1372096269,), (1372096272,), (1372096274,), (1372096288,), (1372096290,), (1372096291,), (1372096293,), (1372096294,), (1372096297,), (1372096318,), (1372096322,), (1372096324,), (1372096327,), (1372096329,), (1372096331,), (1372096345,), (1372096347,), (1372096349,), (1372096351,), (1372096354,), (1372096357,), (1372096379,), (1372096382,), (1372096384,), (1372096385,), (1372096387,), (1372096390,), (1372096428,), (1372096432,), (1372096436,), (1372096439,), (1372096440,), (1372096442,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24912318 , 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=24912308 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 (24912318) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24912308) result : ((1372096259,), (1372096264,), (1372096268,), (1372096269,), (1372096272,), (1372096274,), (1372096288,), (1372096290,), (1372096291,), (1372096293,), (1372096294,), (1372096297,), (1372096318,), (1372096322,), (1372096324,), (1372096327,), (1372096329,), (1372096331,), (1372096345,), (1372096347,), (1372096349,), (1372096351,), (1372096354,), (1372096357,), (1372096379,), (1372096382,), (1372096384,), (1372096385,), (1372096387,), (1372096390,), (1372096428,), (1372096432,), (1372096436,), (1372096439,), (1372096440,), (1372096442,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24912319 , 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=24912308 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 (24912319) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24912308) result : ((1372096259,), (1372096264,), (1372096268,), (1372096269,), (1372096272,), (1372096274,), (1372096288,), (1372096290,), (1372096291,), (1372096293,), (1372096294,), (1372096297,), (1372096318,), (1372096322,), (1372096324,), (1372096327,), (1372096329,), (1372096331,), (1372096345,), (1372096347,), (1372096349,), (1372096351,), (1372096354,), (1372096357,), (1372096379,), (1372096382,), (1372096384,), (1372096385,), (1372096387,), (1372096390,), (1372096428,), (1372096432,), (1372096436,), (1372096439,), (1372096440,), (1372096442,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24912320 , 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=24912308 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 (24912320) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24912308) result : ((1372096259,), (1372096264,), (1372096268,), (1372096269,), (1372096272,), (1372096274,), (1372096288,), (1372096290,), (1372096291,), (1372096293,), (1372096294,), (1372096297,), (1372096318,), (1372096322,), (1372096324,), (1372096327,), (1372096329,), (1372096331,), (1372096345,), (1372096347,), (1372096349,), (1372096351,), (1372096354,), (1372096357,), (1372096379,), (1372096382,), (1372096384,), (1372096385,), (1372096387,), (1372096390,), (1372096428,), (1372096432,), (1372096436,), (1372096439,), (1372096440,), (1372096442,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 24912321 , 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=24912308 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 (24912321) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (24912308) result : ((1372096259,), (1372096264,), (1372096268,), (1372096269,), (1372096272,), (1372096274,), (1372096288,), (1372096290,), (1372096291,), (1372096293,), (1372096294,), (1372096297,), (1372096318,), (1372096322,), (1372096324,), (1372096327,), (1372096329,), (1372096331,), (1372096345,), (1372096347,), (1372096349,), (1372096351,), (1372096354,), (1372096357,), (1372096379,), (1372096382,), (1372096384,), (1372096385,), (1372096387,), (1372096390,), (1372096428,), (1372096432,), (1372096436,), (1372096439,), (1372096440,), (1372096442,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24912308 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Teint_Dans_La_Masse','Carton_brun','environnement','papier','metal','Carton_gris','plastique','mal_croppe','flou','kraft','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=24912308 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','Teint_Dans_La_Masse','Carton_brun','environnement','papier','metal','Carton_gris','plastique','mal_croppe','flou','kraft','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 24912308, 'sub_port_id': 24912322, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16775029, 'last_updated_at': datetime.datetime(2025, 7, 14, 10, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 10, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 10, 47, 33)}, 'kraft': {'main_port_id': 24912308, 'sub_port_id': 24912323, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16775030, 'last_updated_at': datetime.datetime(2025, 7, 14, 10, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 10, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 10, 47, 33)}, 'autre_refus': {'main_port_id': 24912308, 'sub_port_id': 24912324, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16775031, 'last_updated_at': datetime.datetime(2025, 7, 14, 10, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 10, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 10, 47, 33)}, 'metal': {'main_port_id': 24912308, 'sub_port_id': 24912325, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16775032, 'last_updated_at': datetime.datetime(2025, 7, 14, 10, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 10, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 10, 47, 33)}, 'environnement': {'main_port_id': 24912308, 'sub_port_id': 24912326, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16775033, 'last_updated_at': datetime.datetime(2025, 7, 14, 10, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 10, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 10, 47, 33)}, 'Carton_gris': {'main_port_id': 24912308, 'sub_port_id': 24912327, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16775034, 'last_updated_at': datetime.datetime(2025, 7, 14, 10, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 10, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 10, 47, 33)}, 'Carton_brun': {'main_port_id': 24912308, 'sub_port_id': 24912328, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16775035, 'last_updated_at': datetime.datetime(2025, 7, 14, 10, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 10, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 10, 47, 33)}, 'papier': {'main_port_id': 24912308, 'sub_port_id': 24912329, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16775036, 'last_updated_at': datetime.datetime(2025, 7, 14, 10, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 10, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 10, 47, 33)}, 'mal_croppe': {'main_port_id': 24912308, 'sub_port_id': 24912330, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16775037, 'last_updated_at': datetime.datetime(2025, 7, 14, 10, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 10, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 10, 47, 33)}, 'plastique': {'main_port_id': 24912308, 'sub_port_id': 24912331, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16775038, 'last_updated_at': datetime.datetime(2025, 7, 14, 10, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 10, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 10, 47, 33)}, 'flou': {'main_port_id': 24912308, 'sub_port_id': 24912332, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16775039, 'last_updated_at': datetime.datetime(2025, 7, 14, 10, 47, 33), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 10, 47, 33), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 10, 47, 33)}, 'cartonnette': {'main_port_id': 24912308, 'sub_port_id': 24912333, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 16775040, 'last_updated_at': datetime.datetime(2025, 7, 14, 10, 51), 'last_updated_at_desc': datetime.datetime(2025, 7, 14, 10, 51), 'last_updated_at_asc': datetime.datetime(2025, 7, 14, 10, 47, 33)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24912322,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24912310 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24912323,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24912311 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24912324,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24912312 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24912325,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24912313 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24912326,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24912314 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24912327,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24912315 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24912328,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24912316 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24912329,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24912317 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24912330,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24912318 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24912331,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24912319 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24912332,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24912320 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 24912333,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 24912321 lien utilise dans velours : https://www.fotonower.com/velours/24912322,24912323,24912324,24912325,24912326,24912327,24912328,24912329,24912330,24912331,24912332,24912333?tags=Teint_Dans_La_Masse,kraft,autre_refus,metal,environnement,Carton_gris,Carton_brun,papier,mal_croppe,plastique,flou,cartonnette After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24912308]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1372096442, 1372096440, 1372096439, 1372096436, 1372096432, 1372096428, 1372096390, 1372096387, 1372096385, 1372096384, 1372096382, 1372096379] map_info['map_portfolio_photo'] : {24912308: [1372096442, 1372096440, 1372096439, 1372096436, 1372096432, 1372096428, 1372096390, 1372096387, 1372096385, 1372096384, 1372096382, 1372096379, 1372096357, 1372096354, 1372096351, 1372096349, 1372096347, 1372096345, 1372096331, 1372096329, 1372096327, 1372096324, 1372096322, 1372096318, 1372096297, 1372096294, 1372096293, 1372096291, 1372096290, 1372096288, 1372096274, 1372096272, 1372096269, 1372096268, 1372096264, 1372096259]} final : False mtd_id 4302 list_pids : [1372096442, 1372096440, 1372096439, 1372096436, 1372096432, 1372096428, 1372096390, 1372096387, 1372096385, 1372096384, 1372096382, 1372096379] Looping around the photos to save general results len do output : 1 /24912308. 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, '3279133') ('4302', '24912308', '1372096442', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096440', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096439', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096436', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096432', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096428', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096390', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096387', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096385', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096384', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096382', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096379', None, None, None, None, None, '3279133') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '24912308', "{'Teint_Dans_La_Masse': 24912310, 'kraft': 24912311, 'autre_refus': 24912312, 'metal': 24912313, 'environnement': 24912314, 'Carton_gris': 24912315, 'Carton_brun': 24912316, 'papier': 24912317, 'mal_croppe': 24912318, 'plastique': 24912319, 'flou': 24912320, 'cartonnette': 24912321}", None, None, None, None, '3279133'), ('4302', '24912308', '1372096442', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096440', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096439', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096436', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096432', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096428', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096390', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096387', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096385', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096384', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096382', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096379', None, None, None, None, None, '3279133')] time used for this insertion : 0.014932394027709961 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4698734283447266 time spend to save output : 0.015273094177246094 total time spend for step 1 : 1.4851465225219727 step2:final Mon Jul 14 10:52: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 ! 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 (24912308) 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 24912308 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1372096274,1372096272,1372096269,1372096268,1372096264,1372096259,1372096297,1372096294,1372096293,1372096291,1372096290,1372096288,1372096331,1372096329,1372096327,1372096324,1372096322,1372096318,1372096357,1372096354,1372096351,1372096349,1372096347,1372096345,1372096390,1372096387,1372096385,1372096384,1372096382,1372096379,1372096442,1372096440,1372096439,1372096436,1372096432,1372096428); 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([24912308]) Inside saveOutput : final : False verbose : True original output for save of step final : {1372096442: ('0.05856362813443266',), 1372096440: ('0.05856362813443266',), 1372096439: ('0.05856362813443266',), 1372096436: ('0.05856362813443266',), 1372096432: ('0.05856362813443266',), 1372096428: ('0.05856362813443266',), 1372096390: ('0.05856362813443266',), 1372096387: ('0.05856362813443266',), 1372096385: ('0.05856362813443266',), 1372096384: ('0.05856362813443266',), 1372096382: ('0.05856362813443266',), 1372096379: ('0.05856362813443266',)} new output for save of step final : {1372096442: ('0.05856362813443266',), 1372096440: ('0.05856362813443266',), 1372096439: ('0.05856362813443266',), 1372096436: ('0.05856362813443266',), 1372096432: ('0.05856362813443266',), 1372096428: ('0.05856362813443266',), 1372096390: ('0.05856362813443266',), 1372096387: ('0.05856362813443266',), 1372096385: ('0.05856362813443266',), 1372096384: ('0.05856362813443266',), 1372096382: ('0.05856362813443266',), 1372096379: ('0.05856362813443266',)} [1372096442, 1372096440, 1372096439, 1372096436, 1372096432, 1372096428, 1372096390, 1372096387, 1372096385, 1372096384, 1372096382, 1372096379] map_info['map_portfolio_photo'] : {24912308: [1372096442, 1372096440, 1372096439, 1372096436, 1372096432, 1372096428, 1372096390, 1372096387, 1372096385, 1372096384, 1372096382, 1372096379, 1372096357, 1372096354, 1372096351, 1372096349, 1372096347, 1372096345, 1372096331, 1372096329, 1372096327, 1372096324, 1372096322, 1372096318, 1372096297, 1372096294, 1372096293, 1372096291, 1372096290, 1372096288, 1372096274, 1372096272, 1372096269, 1372096268, 1372096264, 1372096259]} final : False mtd_id 4302 list_pids : [1372096442, 1372096440, 1372096439, 1372096436, 1372096432, 1372096428, 1372096390, 1372096387, 1372096385, 1372096384, 1372096382, 1372096379] Looping around the photos to save general results len do output : 12 /1372096442.Didn't retrieve data . /1372096440.Didn't retrieve data . /1372096439.Didn't retrieve data . /1372096436.Didn't retrieve data . /1372096432.Didn't retrieve data . /1372096428.Didn't retrieve data . /1372096390.Didn't retrieve data . /1372096387.Didn't retrieve data . /1372096385.Didn't retrieve data . /1372096384.Didn't retrieve data . /1372096382.Didn't retrieve data . /1372096379.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, '3279133') ('4302', '24912308', '1372096442', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096440', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096439', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096436', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096432', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096428', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096390', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096387', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096385', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096384', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096382', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096379', None, None, None, None, None, '3279133') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 36 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '24912308', '1372096442', '0.05856362813443266', None, None, None, None, '3279133'), ('4302', '24912308', '1372096440', '0.05856362813443266', None, None, None, None, '3279133'), ('4302', '24912308', '1372096439', '0.05856362813443266', None, None, None, None, '3279133'), ('4302', '24912308', '1372096436', '0.05856362813443266', None, None, None, None, '3279133'), ('4302', '24912308', '1372096432', '0.05856362813443266', None, None, None, None, '3279133'), ('4302', '24912308', '1372096428', '0.05856362813443266', None, None, None, None, '3279133'), ('4302', '24912308', '1372096390', '0.05856362813443266', None, None, None, None, '3279133'), ('4302', '24912308', '1372096387', '0.05856362813443266', None, None, None, None, '3279133'), ('4302', '24912308', '1372096385', '0.05856362813443266', None, None, None, None, '3279133'), ('4302', '24912308', '1372096384', '0.05856362813443266', None, None, None, None, '3279133'), ('4302', '24912308', '1372096382', '0.05856362813443266', None, None, None, None, '3279133'), ('4302', '24912308', '1372096379', '0.05856362813443266', None, None, None, None, '3279133')] time used for this insertion : 0.0159146785736084 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06755423545837402 time spend to save output : 0.016466856002807617 total time spend for step 2 : 0.08402109146118164 step3:velours_tree Mon Jul 14 10:52: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 complete output_args for input 0 : {24912308: [{'Teint_Dans_La_Masse': 24912310, 'kraft': 24912311, 'autre_refus': 24912312, 'metal': 24912313, 'environnement': 24912314, 'Carton_gris': 24912315, 'Carton_brun': 24912316, 'papier': 24912317, 'mal_croppe': 24912318, 'plastique': 24912319, 'flou': 24912320, 'cartonnette': 24912321}]} input_args_next_step : {24912308: ()} output_args : {24912308: [{'Teint_Dans_La_Masse': 24912310, 'kraft': 24912311, 'autre_refus': 24912312, 'metal': 24912313, 'environnement': 24912314, 'Carton_gris': 24912315, 'Carton_brun': 24912316, 'papier': 24912317, 'mal_croppe': 24912318, 'plastique': 24912319, 'flou': 24912320, 'cartonnette': 24912321}]} args : 24912308 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 : ({'Teint_Dans_La_Masse': 24912310, 'kraft': 24912311, 'autre_refus': 24912312, 'metal': 24912313, 'environnement': 24912314, 'Carton_gris': 24912315, 'Carton_brun': 24912316, 'papier': 24912317, 'mal_croppe': 24912318, 'plastique': 24912319, 'flou': 24912320, 'cartonnette': 24912321},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24912308) 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([24912308]) 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.3194751739501953 time spend to save output : 5.626678466796875e-05 total time spend for step 3 : 0.3195314407348633 step4:send_mail_cod Mon Jul 14 10:52: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 : {1372096442: ('0.05856362813443266',), 1372096440: ('0.05856362813443266',), 1372096439: ('0.05856362813443266',), 1372096436: ('0.05856362813443266',), 1372096432: ('0.05856362813443266',), 1372096428: ('0.05856362813443266',), 1372096390: ('0.05856362813443266',), 1372096387: ('0.05856362813443266',), 1372096385: ('0.05856362813443266',), 1372096384: ('0.05856362813443266',), 1372096382: ('0.05856362813443266',), 1372096379: ('0.05856362813443266',)} input_args_next_step : {1372096442: ()} output_args : {1372096442: ('0.05856362813443266',), 1372096440: ('0.05856362813443266',), 1372096439: ('0.05856362813443266',), 1372096436: ('0.05856362813443266',), 1372096432: ('0.05856362813443266',), 1372096428: ('0.05856362813443266',), 1372096390: ('0.05856362813443266',), 1372096387: ('0.05856362813443266',), 1372096385: ('0.05856362813443266',), 1372096384: ('0.05856362813443266',), 1372096382: ('0.05856362813443266',), 1372096379: ('0.05856362813443266',)} args : 1372096442 depend.output_id : 0 input_args_next_step : {1372096442: ('0.05856362813443266',), 1372096440: ()} output_args : {1372096442: ('0.05856362813443266',), 1372096440: ('0.05856362813443266',), 1372096439: ('0.05856362813443266',), 1372096436: ('0.05856362813443266',), 1372096432: ('0.05856362813443266',), 1372096428: ('0.05856362813443266',), 1372096390: ('0.05856362813443266',), 1372096387: ('0.05856362813443266',), 1372096385: ('0.05856362813443266',), 1372096384: ('0.05856362813443266',), 1372096382: ('0.05856362813443266',), 1372096379: ('0.05856362813443266',)} args : 1372096440 depend.output_id : 0 input_args_next_step : {1372096442: ('0.05856362813443266',), 1372096440: ('0.05856362813443266',), 1372096439: ()} output_args : {1372096442: ('0.05856362813443266',), 1372096440: ('0.05856362813443266',), 1372096439: ('0.05856362813443266',), 1372096436: ('0.05856362813443266',), 1372096432: ('0.05856362813443266',), 1372096428: ('0.05856362813443266',), 1372096390: ('0.05856362813443266',), 1372096387: ('0.05856362813443266',), 1372096385: ('0.05856362813443266',), 1372096384: ('0.05856362813443266',), 1372096382: ('0.05856362813443266',), 1372096379: ('0.05856362813443266',)} args : 1372096439 depend.output_id : 0 input_args_next_step : {1372096442: ('0.05856362813443266',), 1372096440: ('0.05856362813443266',), 1372096439: ('0.05856362813443266',), 1372096436: ()} output_args : {1372096442: ('0.05856362813443266',), 1372096440: ('0.05856362813443266',), 1372096439: ('0.05856362813443266',), 1372096436: ('0.05856362813443266',), 1372096432: ('0.05856362813443266',), 1372096428: ('0.05856362813443266',), 1372096390: ('0.05856362813443266',), 1372096387: ('0.05856362813443266',), 1372096385: ('0.05856362813443266',), 1372096384: ('0.05856362813443266',), 1372096382: ('0.05856362813443266',), 1372096379: ('0.05856362813443266',)} args : 1372096436 depend.output_id : 0 input_args_next_step : {1372096442: ('0.05856362813443266',), 1372096440: ('0.05856362813443266',), 1372096439: ('0.05856362813443266',), 1372096436: ('0.05856362813443266',), 1372096432: ()} output_args : {1372096442: ('0.05856362813443266',), 1372096440: ('0.05856362813443266',), 1372096439: ('0.05856362813443266',), 1372096436: ('0.05856362813443266',), 1372096432: ('0.05856362813443266',), 1372096428: ('0.05856362813443266',), 1372096390: ('0.05856362813443266',), 1372096387: ('0.05856362813443266',), 1372096385: ('0.05856362813443266',), 1372096384: ('0.05856362813443266',), 1372096382: ('0.05856362813443266',), 1372096379: ('0.05856362813443266',)} args : 1372096432 depend.output_id : 0 input_args_next_step : {1372096442: ('0.05856362813443266',), 1372096440: ('0.05856362813443266',), 1372096439: ('0.05856362813443266',), 1372096436: ('0.05856362813443266',), 1372096432: ('0.05856362813443266',), 1372096428: ()} output_args : {1372096442: ('0.05856362813443266',), 1372096440: ('0.05856362813443266',), 1372096439: ('0.05856362813443266',), 1372096436: ('0.05856362813443266',), 1372096432: ('0.05856362813443266',), 1372096428: ('0.05856362813443266',), 1372096390: ('0.05856362813443266',), 1372096387: ('0.05856362813443266',), 1372096385: ('0.05856362813443266',), 1372096384: ('0.05856362813443266',), 1372096382: ('0.05856362813443266',), 1372096379: ('0.05856362813443266',)} args : 1372096428 depend.output_id : 0 input_args_next_step : {1372096442: ('0.05856362813443266',), 1372096440: ('0.05856362813443266',), 1372096439: ('0.05856362813443266',), 1372096436: ('0.05856362813443266',), 1372096432: ('0.05856362813443266',), 1372096428: ('0.05856362813443266',), 1372096390: ()} output_args : {1372096442: ('0.05856362813443266',), 1372096440: ('0.05856362813443266',), 1372096439: ('0.05856362813443266',), 1372096436: ('0.05856362813443266',), 1372096432: ('0.05856362813443266',), 1372096428: ('0.05856362813443266',), 1372096390: ('0.05856362813443266',), 1372096387: ('0.05856362813443266',), 1372096385: ('0.05856362813443266',), 1372096384: ('0.05856362813443266',), 1372096382: ('0.05856362813443266',), 1372096379: ('0.05856362813443266',)} args : 1372096390 depend.output_id : 0 input_args_next_step : {1372096442: ('0.05856362813443266',), 1372096440: ('0.05856362813443266',), 1372096439: ('0.05856362813443266',), 1372096436: ('0.05856362813443266',), 1372096432: ('0.05856362813443266',), 1372096428: ('0.05856362813443266',), 1372096390: ('0.05856362813443266',), 1372096387: ()} output_args : {1372096442: ('0.05856362813443266',), 1372096440: ('0.05856362813443266',), 1372096439: ('0.05856362813443266',), 1372096436: ('0.05856362813443266',), 1372096432: ('0.05856362813443266',), 1372096428: ('0.05856362813443266',), 1372096390: ('0.05856362813443266',), 1372096387: ('0.05856362813443266',), 1372096385: ('0.05856362813443266',), 1372096384: ('0.05856362813443266',), 1372096382: ('0.05856362813443266',), 1372096379: ('0.05856362813443266',)} args : 1372096387 depend.output_id : 0 input_args_next_step : {1372096442: ('0.05856362813443266',), 1372096440: ('0.05856362813443266',), 1372096439: ('0.05856362813443266',), 1372096436: ('0.05856362813443266',), 1372096432: ('0.05856362813443266',), 1372096428: ('0.05856362813443266',), 1372096390: ('0.05856362813443266',), 1372096387: ('0.05856362813443266',), 1372096385: ()} output_args : {1372096442: ('0.05856362813443266',), 1372096440: ('0.05856362813443266',), 1372096439: ('0.05856362813443266',), 1372096436: ('0.05856362813443266',), 1372096432: ('0.05856362813443266',), 1372096428: ('0.05856362813443266',), 1372096390: ('0.05856362813443266',), 1372096387: ('0.05856362813443266',), 1372096385: ('0.05856362813443266',), 1372096384: ('0.05856362813443266',), 1372096382: ('0.05856362813443266',), 1372096379: ('0.05856362813443266',)} args : 1372096385 depend.output_id : 0 input_args_next_step : {1372096442: ('0.05856362813443266',), 1372096440: ('0.05856362813443266',), 1372096439: ('0.05856362813443266',), 1372096436: ('0.05856362813443266',), 1372096432: ('0.05856362813443266',), 1372096428: ('0.05856362813443266',), 1372096390: ('0.05856362813443266',), 1372096387: ('0.05856362813443266',), 1372096385: ('0.05856362813443266',), 1372096384: ()} output_args : {1372096442: ('0.05856362813443266',), 1372096440: ('0.05856362813443266',), 1372096439: ('0.05856362813443266',), 1372096436: ('0.05856362813443266',), 1372096432: ('0.05856362813443266',), 1372096428: ('0.05856362813443266',), 1372096390: ('0.05856362813443266',), 1372096387: ('0.05856362813443266',), 1372096385: ('0.05856362813443266',), 1372096384: ('0.05856362813443266',), 1372096382: ('0.05856362813443266',), 1372096379: ('0.05856362813443266',)} args : 1372096384 depend.output_id : 0 input_args_next_step : {1372096442: ('0.05856362813443266',), 1372096440: ('0.05856362813443266',), 1372096439: ('0.05856362813443266',), 1372096436: ('0.05856362813443266',), 1372096432: ('0.05856362813443266',), 1372096428: ('0.05856362813443266',), 1372096390: ('0.05856362813443266',), 1372096387: ('0.05856362813443266',), 1372096385: ('0.05856362813443266',), 1372096384: ('0.05856362813443266',), 1372096382: ()} output_args : {1372096442: ('0.05856362813443266',), 1372096440: ('0.05856362813443266',), 1372096439: ('0.05856362813443266',), 1372096436: ('0.05856362813443266',), 1372096432: ('0.05856362813443266',), 1372096428: ('0.05856362813443266',), 1372096390: ('0.05856362813443266',), 1372096387: ('0.05856362813443266',), 1372096385: ('0.05856362813443266',), 1372096384: ('0.05856362813443266',), 1372096382: ('0.05856362813443266',), 1372096379: ('0.05856362813443266',)} args : 1372096382 depend.output_id : 0 input_args_next_step : {1372096442: ('0.05856362813443266',), 1372096440: ('0.05856362813443266',), 1372096439: ('0.05856362813443266',), 1372096436: ('0.05856362813443266',), 1372096432: ('0.05856362813443266',), 1372096428: ('0.05856362813443266',), 1372096390: ('0.05856362813443266',), 1372096387: ('0.05856362813443266',), 1372096385: ('0.05856362813443266',), 1372096384: ('0.05856362813443266',), 1372096382: ('0.05856362813443266',), 1372096379: ()} output_args : {1372096442: ('0.05856362813443266',), 1372096440: ('0.05856362813443266',), 1372096439: ('0.05856362813443266',), 1372096436: ('0.05856362813443266',), 1372096432: ('0.05856362813443266',), 1372096428: ('0.05856362813443266',), 1372096390: ('0.05856362813443266',), 1372096387: ('0.05856362813443266',), 1372096385: ('0.05856362813443266',), 1372096384: ('0.05856362813443266',), 1372096382: ('0.05856362813443266',), 1372096379: ('0.05856362813443266',)} args : 1372096379 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {24912308: [{'Teint_Dans_La_Masse': 24912310, 'kraft': 24912311, 'autre_refus': 24912312, 'metal': 24912313, 'environnement': 24912314, 'Carton_gris': 24912315, 'Carton_brun': 24912316, 'papier': 24912317, 'mal_croppe': 24912318, 'plastique': 24912319, 'flou': 24912320, 'cartonnette': 24912321}]} input_args_next_step : {1372096442: ('0.05856362813443266',), 1372096440: ('0.05856362813443266',), 1372096439: ('0.05856362813443266',), 1372096436: ('0.05856362813443266',), 1372096432: ('0.05856362813443266',), 1372096428: ('0.05856362813443266',), 1372096390: ('0.05856362813443266',), 1372096387: ('0.05856362813443266',), 1372096385: ('0.05856362813443266',), 1372096384: ('0.05856362813443266',), 1372096382: ('0.05856362813443266',), 1372096379: ('0.05856362813443266',), 24912308: ()} output_args : {24912308: [{'Teint_Dans_La_Masse': 24912310, 'kraft': 24912311, 'autre_refus': 24912312, 'metal': 24912313, 'environnement': 24912314, 'Carton_gris': 24912315, 'Carton_brun': 24912316, 'papier': 24912317, 'mal_croppe': 24912318, 'plastique': 24912319, 'flou': 24912320, 'cartonnette': 24912321}]} args : 24912308 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :13, first value : ('0.05856362813443266',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24912308) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos ph WHERE photo_id IN (1372096442,1372096440,1372096439,1372096436,1372096432,1372096428,1372096390,1372096387,1372096385,1372096384,1372096382,1372096379) Found this number of photos: 12 ##### Call download_photos : nb_thread : 5 begin to download photo : 1372096379 begin to download photo : 1372096385 begin to download photo : 1372096428 begin to download photo : 1372096439 download finish for photo 1372096428 begin to download photo : 1372096432 download finish for photo 1372096379 begin to download photo : 1372096382 download finish for photo 1372096385 begin to download photo : 1372096387 download finish for photo 1372096439 begin to download photo : 1372096440 download finish for photo 1372096382 begin to download photo : 1372096384 download finish for photo 1372096432 begin to download photo : 1372096436 download finish for photo 1372096440 begin to download photo : 1372096442 download finish for photo 1372096387 begin to download photo : 1372096390 download finish for photo 1372096436 download finish for photo 1372096384 download finish for photo 1372096442 download finish for photo 1372096390 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette249123111752483180/ imagette249123121752483180/ imagette249123131752483180/ imagette249123181752483180/ imagette249123191752483180/ imagette249123201752483180/ imagette249123211752483180/ length of list_filenames : 12 ; length of list_pids : 12 ; length of list_args : 12 results_Auto_P24912308_14-07-2025_10_53_00.pdf 24912311 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24912311 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette249123111752483180 24912312 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24912312 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette249123121752483180 24912313 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24912313 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette249123131752483180 24912318 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24912318 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette249123181752483180 24912319 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24912319 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette249123191752483180 24912320 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24912320 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette249123201752483180 24912321 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24912321 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette249123211752483180 24912310 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24912310 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1372096375: '1752482966_3019642_1372096291_73ddae00ebbfc0525919b419835cf8d3_rle_crop_3882912058_0.png', 1372096376: '1752482966_3019642_1372096290_5e0508a4cc58a2cb829e6c312da5c7c4_rle_crop_3882912066_0.png', 1372096399: '1752483007_809258_1372096268_663e403fbe489579a741f1eba74305e7_rle_crop_3882912196_0.png', 1372096400: '1752483007_809258_1372096264_8a6bf9a48050be59898cbf50e9d3062a_rle_crop_3882912205_0.png', 1372096461: '1752483085_3023318_1372096390_2b4de17908b98439f885a9722b509b85_rle_crop_3882912336_0.png', 1372096462: '1752483085_3023318_1372096385_66840a8f7768a79101b15fdd2d920cd4_rle_crop_3882912349_0.png', 1372096463: '1752483085_3023318_1372096382_bfe671bb7709d50e1fb35112eb465fc6_rle_crop_3882912367_0.png', 1372096491: '1752483127_815228_1372096329_6c9e25ffcdfbd2184f91d3f146d7c212_rle_crop_3882912481_0.png', 1372096492: '1752483127_815228_1372096324_0ce5c95506c43c3f8fa024fa5d6ed29b_rle_crop_3882912498_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/677f4bca15f0da8311ebb47ae6ddba38_88115055.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/9aa1050d9a938e8f76f3642296b5c96e_41435729.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/c84630eee2277ca576b06ed4abbac1a4_2438302.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/e2d08a3834afc30a3ee99583ce65bceb_19214265.png change filename to text .wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/4eed12c41fe75cb89780b14d9a52e23b_19984079.png change filename to text .wget -O 6.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/d1e7ada64d503382513c882d969f445c_56991341.png change filename to text .wget -O 7.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/0b3b02fe1ec329dcc2becf4f7c018b5f_5770467.png change filename to text .wget -O 8.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/ea199ec2143db62cd451b478004ecb75_34520570.png change filename to text .imagette249123101752483180/ imagette249123101752483180/1752482966_3019642_1372096290_5e0508a4cc58a2cb829e6c312da5c7c4_rle_crop_3882912066_0.png.png imagette249123101752483180/1752483085_3023318_1372096385_66840a8f7768a79101b15fdd2d920cd4_rle_crop_3882912349_0.png.png imagette249123101752483180/1752483007_809258_1372096268_663e403fbe489579a741f1eba74305e7_rle_crop_3882912196_0.png.png imagette249123101752483180/1752483127_815228_1372096329_6c9e25ffcdfbd2184f91d3f146d7c212_rle_crop_3882912481_0.png.png imagette249123101752483180/1752483127_815228_1372096324_0ce5c95506c43c3f8fa024fa5d6ed29b_rle_crop_3882912498_0.png.png imagette249123101752483180/1752483085_3023318_1372096382_bfe671bb7709d50e1fb35112eb465fc6_rle_crop_3882912367_0.png.png imagette249123101752483180/1752483007_809258_1372096264_8a6bf9a48050be59898cbf50e9d3062a_rle_crop_3882912205_0.png.png imagette249123101752483180/1752482966_3019642_1372096291_73ddae00ebbfc0525919b419835cf8d3_rle_crop_3882912058_0.png.png imagette249123101752483180/1752483085_3023318_1372096390_2b4de17908b98439f885a9722b509b85_rle_crop_3882912336_0.png.png imagette249123151752483181/ wget -O 9.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/a675e021948553d0b9b88c014d556604_87725583.png imagette249123101752483180 24912315 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24912315 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette249123151752483181 24912316 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24912316 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1372096464: '1752483085_3023318_1372096384_de357c68f695ba17b218e6ff9738f130_rle_crop_3882912357_0.png', 1372096465: '1752483085_3023318_1372096379_92a314fbe794f653bd4d33e42a20dce0_rle_crop_3882912373_0.png', 1372096495: '1752483127_815228_1372096331_f5fcbd1366978075b06cdbb424a3b553_rle_crop_3882912471_0.png', 1372096496: '1752483127_815228_1372096327_a7f4d1bcc13087deb151e80505d5b331_rle_crop_3882912487_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/c65ae6c12444b979a87981d960dd9587_45735304.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/b320f1dc540a882a55ac639ee2070f9b_787169.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/e72a2840897126c777e9a2e9c2f349ce_39396374.png change filename to text .imagette249123161752483181/ imagette249123161752483181/1752483127_815228_1372096327_a7f4d1bcc13087deb151e80505d5b331_rle_crop_3882912487_0.png.png imagette249123161752483181/1752483127_815228_1372096331_f5fcbd1366978075b06cdbb424a3b553_rle_crop_3882912471_0.png.png imagette249123161752483181/1752483085_3023318_1372096379_92a314fbe794f653bd4d33e42a20dce0_rle_crop_3882912373_0.png.png imagette249123161752483181/1752483085_3023318_1372096384_de357c68f695ba17b218e6ff9738f130_rle_crop_3882912357_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/214ab43e2caee4a92762ca75054da55e_42629691.png imagette249123161752483181 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=24912308 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/24912322,24912323,24912324,24912325,24912326,24912327,24912328,24912329,24912330,24912331,24912332,24912333?tags=Teint_Dans_La_Masse,kraft,autre_refus,metal,environnement,Carton_gris,Carton_brun,papier,mal_croppe,plastique,flou,cartonnette your option no_mail is active, we will not send the real mail to your client args[1372096442] : ('0.05856362813443266',) no score found for photo 1372096442 We are sending mail with results at report@fotonower.com args[1372096440] : ('0.05856362813443266',) no score found for photo 1372096440 We are sending mail with results at report@fotonower.com args[1372096439] : ('0.05856362813443266',) no score found for photo 1372096439 We are sending mail with results at report@fotonower.com args[1372096436] : ('0.05856362813443266',) no score found for photo 1372096436 We are sending mail with results at report@fotonower.com args[1372096432] : ('0.05856362813443266',) no score found for photo 1372096432 We are sending mail with results at report@fotonower.com args[1372096428] : ('0.05856362813443266',) no score found for photo 1372096428 We are sending mail with results at report@fotonower.com args[1372096390] : ('0.05856362813443266',) no score found for photo 1372096390 We are sending mail with results at report@fotonower.com args[1372096387] : ('0.05856362813443266',) no score found for photo 1372096387 We are sending mail with results at report@fotonower.com args[1372096385] : ('0.05856362813443266',) no score found for photo 1372096385 We are sending mail with results at report@fotonower.com args[1372096384] : ('0.05856362813443266',) no score found for photo 1372096384 We are sending mail with results at report@fotonower.com args[1372096382] : ('0.05856362813443266',) no score found for photo 1372096382 We are sending mail with results at report@fotonower.com args[1372096379] : ('0.05856362813443266',) no score found for photo 1372096379 We are sending mail with results at report@fotonower.com refus_total : 0.05856362813443266 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24912308 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_P24912308_14-07-2025_10_53_00.pdf results_Auto_P24912308_14-07-2025_10_53_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24912308_14-07-2025_10_53_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','24912308','results_Auto_P24912308_14-07-2025_10_53_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24912308_14-07-2025_10_53_00.pdf','pdf','','0.19','0.05856362813443266') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24912308]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1372096442, 1372096440, 1372096439, 1372096436, 1372096432, 1372096428, 1372096390, 1372096387, 1372096385, 1372096384, 1372096382, 1372096379] map_info['map_portfolio_photo'] : {24912308: [1372096442, 1372096440, 1372096439, 1372096436, 1372096432, 1372096428, 1372096390, 1372096387, 1372096385, 1372096384, 1372096382, 1372096379, 1372096357, 1372096354, 1372096351, 1372096349, 1372096347, 1372096345, 1372096331, 1372096329, 1372096327, 1372096324, 1372096322, 1372096318, 1372096297, 1372096294, 1372096293, 1372096291, 1372096290, 1372096288, 1372096274, 1372096272, 1372096269, 1372096268, 1372096264, 1372096259]} final : False mtd_id 4302 list_pids : [1372096442, 1372096440, 1372096439, 1372096436, 1372096432, 1372096428, 1372096390, 1372096387, 1372096385, 1372096384, 1372096382, 1372096379] 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, '3279133') ('4302', '24912308', '1372096442', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096440', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096439', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096436', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096432', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096428', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096390', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096387', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096385', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096384', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096382', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096379', None, None, None, None, None, '3279133') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 12 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '24912308', '1372096442', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096440', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096439', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096436', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096432', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096428', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096390', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096387', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096385', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096384', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096382', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096379', None, None, None, None, None, '3279133')] time used for this insertion : 0.01395869255065918 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.6761159896850586 time spend to save output : 0.014178037643432617 total time spend for step 4 : 2.690294027328491 step5:split_time_score Mon Jul 14 10:53:02 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 : ['24912308'] 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 : [('24912308',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (24912308) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1372096428: {'path': 'temp/1752483179_2748267_1372096428_a2377336ec2c45e773c2edcc73a31d55.jpg', 'extension': 'jpg'}, 1372096432: {'path': 'temp/1752483179_2748267_1372096432_2d02cd6ed7de4891c3e73f2ca719d012.jpg', 'extension': 'jpg'}, 1372096436: {'path': 'temp/1752483179_2748267_1372096436_0d63894391569797899f3b1b705b878e.jpg', 'extension': 'jpg'}, 1372096379: {'path': 'temp/1752483179_2748267_1372096379_92a314fbe794f653bd4d33e42a20dce0.jpg', 'extension': 'jpg'}, 1372096382: {'path': 'temp/1752483179_2748267_1372096382_bfe671bb7709d50e1fb35112eb465fc6.jpg', 'extension': 'jpg'}, 1372096384: {'path': 'temp/1752483179_2748267_1372096384_de357c68f695ba17b218e6ff9738f130.jpg', 'extension': 'jpg'}, 1372096439: {'path': 'temp/1752483179_2748267_1372096439_a238df548fc28b91f732530f003eee15.jpg', 'extension': 'jpg'}, 1372096440: {'path': 'temp/1752483179_2748267_1372096440_646957bb566f5abe4d26155ffad4e4eb.jpg', 'extension': 'jpg'}, 1372096442: {'path': 'temp/1752483179_2748267_1372096442_ba820b1bbb0afc84087b010ecaefd1ed.jpg', 'extension': 'jpg'}, 1372096385: {'path': 'temp/1752483179_2748267_1372096385_66840a8f7768a79101b15fdd2d920cd4.jpg', 'extension': 'jpg'}, 1372096387: {'path': 'temp/1752483179_2748267_1372096387_b9a41f91eed60c0eac60aef913188cdc.jpg', 'extension': 'jpg'}, 1372096390: {'path': 'temp/1752483179_2748267_1372096390_2b4de17908b98439f885a9722b509b85.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 = 24912308; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 24912308 group by h (('10', 36),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=24912308 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 (24912308) 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 (24912308) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 14072025 24912308 Nombre de photos uploadées : 36 / 23040 (0%) 14072025 24912308 Nombre de photos taguées (types de déchets): 0 / 36 (0%) 14072025 24912308 Nombre de photos taguées (volume) : 0 / 36 (0%) [{'photo_id': 1372096274, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/9d8bb4bb97b6ad834829d7d1ac9507e0.jpg', 'username': None, 'uploaded_at': 1752482763, 'text': 'image_14072025_10_45_04_10137.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1372096272, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/6863e96274850c03b3c01d851696e28b.jpg', 'username': None, 'uploaded_at': 1752482763, 'text': 'image_14072025_10_45_13_9130.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1372096269, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/c89f4cee7eaf4f62c935ba76d6a8230c.jpg', 'username': None, 'uploaded_at': 1752482763, 'text': 'image_14072025_10_45_23_10139.jpg 3.0000000000000004e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1372096268, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/7/14/663e403fbe489579a741f1eba74305e7.jpg', 'username': None, 'uploaded_at': 1752482763, 'text': 'image_14072025_10_45_33_10141.jpg 4e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 6.198883056640625e-06 ???????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0041010379791259766 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 24912308, '2025-07-14' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (1975044,979,"{}"); elapsed_time : insert_dashboard_record_day_entry 0.02457904815673828 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= 1975044 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 1975044, 'dashboard_run_id': 1983362, 'mtr_portfolio_id': 24901827, 'dashboard_result_id': 12499101, '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_P24901827_14-07-2025_05_16_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24901853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24901854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24901855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24901856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24901857, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24901858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24901859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24901860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24901861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24901862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24901863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24901864, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1983362, 'mtr_portfolio_id': 24902221, 'dashboard_result_id': 12499102, '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_P24902221_14-07-2025_05_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24902224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24902225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24902226, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24902227, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24902228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24902229, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24902230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24902231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24902232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24902233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24902234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24902235, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1983362, 'mtr_portfolio_id': 24902636, 'dashboard_result_id': 12499103, '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_P24902636_14-07-2025_05_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24902664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24902665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24902666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24902667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24902668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24902669, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24902670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24902671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24902672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24902673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24902674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24902675, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1983362, 'mtr_portfolio_id': 24903073, 'dashboard_result_id': 12499104, '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_P24903073_14-07-2025_06_00_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24903099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24903100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24903101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24903102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24903103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24903104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24903105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24903106, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24903107, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24903108, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24903109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24903110, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1983362, 'mtr_portfolio_id': 24903581, 'dashboard_result_id': 12499105, '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_P24903581_14-07-2025_06_17_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24903608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24903609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24903610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24903611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24903612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24903613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24903614, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24903615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24903616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24903617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24903618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24903619, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1983362, 'mtr_portfolio_id': 24904018, 'dashboard_result_id': 12499106, '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_P24904018_14-07-2025_06_31_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24904021, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24904022, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24904023, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24904024, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24904025, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24904026, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24904027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24904028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24904029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24904030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24904031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24904032, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1983362, 'mtr_portfolio_id': 24904386, 'dashboard_result_id': 12499107, '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_P24904386_14-07-2025_06_46_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24904414, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24904415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24904416, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24904417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24904418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24904419, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24904420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24904421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24904422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24904423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24904424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24904425, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1983362, 'mtr_portfolio_id': 24904901, 'dashboard_result_id': 12499108, '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_P24904901_14-07-2025_07_00_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24904904, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24904905, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24904906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24904907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24904908, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24904909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24904910, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24904911, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24904912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24904913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24904914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24904915, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1983362, 'mtr_portfolio_id': 24905304, 'dashboard_result_id': 12499109, '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_P24905304_14-07-2025_07_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24905306, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24905307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24905308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24905309, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24905310, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24905311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24905312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24905313, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24905314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24905315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24905316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24905317, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1983362, 'mtr_portfolio_id': 24905756, 'dashboard_result_id': 12499110, '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_P24905756_14-07-2025_07_30_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24905761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24905762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24905763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24905764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24905765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24905766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24905767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24905768, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24905769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24905770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24905771, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24905772, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1983362, 'mtr_portfolio_id': 24906253, 'dashboard_result_id': 12499111, '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_P24906253_14-07-2025_07_47_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24906280, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24906281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24906282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24906283, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24906284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24906285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24906286, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24906287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24906288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24906289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24906290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24906291, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1983362, 'mtr_portfolio_id': 24906760, 'dashboard_result_id': 12499112, '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_P24906760_14-07-2025_08_01_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24906765, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24906766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24906767, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24906768, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24906769, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24906770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24906771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24906772, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24906773, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24906774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24906775, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24906776, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1983362, 'mtr_portfolio_id': 24907240, 'dashboard_result_id': 12499113, '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_P24907240_14-07-2025_08_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24907242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24907243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24907244, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24907245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24907246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24907247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24907248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24907249, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24907250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24907251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24907252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24907253, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1983362, 'mtr_portfolio_id': 24907680, 'dashboard_result_id': 12499114, '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_P24907680_14-07-2025_08_31_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24907683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24907684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24907685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24907686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24907687, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24907688, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24907689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24907690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24907691, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24907692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24907693, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24907694, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1983362, 'mtr_portfolio_id': 24908086, 'dashboard_result_id': 12499115, '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_P24908086_14-07-2025_08_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24908112, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24908113, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24908114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24908115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24908116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24908117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24908118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24908119, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24908120, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24908121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24908122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24908123, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1983362, 'mtr_portfolio_id': 24908514, 'dashboard_result_id': 12499116, '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_P24908514_14-07-2025_09_00_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24908544, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24908545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24908546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24908547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24908548, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24908549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24908550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24908551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24908552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24908553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24908554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24908555, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1983362, 'mtr_portfolio_id': 24909075, 'dashboard_result_id': 12499117, '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_P24909075_14-07-2025_09_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24909076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24909077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24909078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24909079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24909080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24909081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24909082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24909083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24909084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24909085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24909086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24909087, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1983362, 'mtr_portfolio_id': 24909513, 'dashboard_result_id': 12499118, '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_P24909513_14-07-2025_09_30_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24909542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24909543, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24909544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24909545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24909546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24909547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24909548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24909549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24909550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24909551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24909552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24909553, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1983362, 'mtr_portfolio_id': 24910025, 'dashboard_result_id': 12499119, '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_P24910025_14-07-2025_09_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24910053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24910054, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24910055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24910056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24910057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24910058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24910059, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24910060, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24910061, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24910062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24910063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24910064, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1983362, 'mtr_portfolio_id': 24910502, 'dashboard_result_id': 12499120, '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_P24910502_14-07-2025_10_01_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24910531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24910532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24910533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24910534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24910535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24910536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24910537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24910538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24910539, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24910540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24910541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24910542, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1983362, 'mtr_portfolio_id': 24911035, 'dashboard_result_id': 12499121, '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_P24911035_14-07-2025_10_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24911061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24911062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24911063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24911064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24911065, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24911066, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24911067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24911068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24911069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24911070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24911071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24911072, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1983362, 'mtr_portfolio_id': 24911443, 'dashboard_result_id': 12499122, '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_P24911443_14-07-2025_10_30_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24911447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24911448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24911449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24911450, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24911451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24911452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24911453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24911454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24911455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24911456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24911457, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24911458, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1983362, 'mtr_portfolio_id': 24911823, 'dashboard_result_id': 12499123, '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_P24911823_14-07-2025_10_46_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24911850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24911851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24911852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24911853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24911854, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24911855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24911856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24911857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24911858, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24911859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24911860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24911861, 'pht': 3726}}"}, {'dashboat_entry_day': 1975044, 'dashboard_run_id': 1983362, 'mtr_portfolio_id': 24912308, 'dashboard_result_id': 12499124, '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_P24912308_14-07-2025_10_51_01.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24912310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24912311, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24912312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24912313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24912314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24912315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24912316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24912317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24912318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24912319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24912320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24912321, '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 = 24901827 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': 3277881, 'mtr_portfolio_id': 24901827, 'created_at': datetime.datetime(2025, 7, 14, 5, 16, 56), 'result': '0.020520187424531714', 'result_long': None, 'result_double': None}] Qualite : 0.020520187424531714 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24901827 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24901827_14-07-2025_05_16_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24901827 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_P24901827_14-07-2025_05_16_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24901853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24901854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24901855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24901856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24901857, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24901858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24901859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24901860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24901861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24901862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24901863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24901864, 'pht': 3726}}" where mtr_portfolio_id = 24901827 and dashboard_run_id = 1983362 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`=24901827 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12499101, 0.020520187424531714, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24901827_14-07-2025_05_16_57.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24901853, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24901854, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24901855, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24901856, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24901857, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24901858, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24901859, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24901860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24901861, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24901862, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24901863, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24901864, '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 = 24902221 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': 3277914, 'mtr_portfolio_id': 24902221, 'created_at': datetime.datetime(2025, 7, 14, 5, 32, 58), 'result': '0.020039778539176004', 'result_long': None, 'result_double': None}] Qualite : 0.020039778539176004 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24902221 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24902221_14-07-2025_05_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24902221 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_P24902221_14-07-2025_05_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24902224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24902225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24902226, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24902227, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24902228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24902229, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24902230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24902231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24902232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24902233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24902234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24902235, 'pht': 3726}}" where mtr_portfolio_id = 24902221 and dashboard_run_id = 1983362 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`=24902221 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12499102, 0.020039778539176004, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24902221_14-07-2025_05_32_58.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24902224, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24902225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24902226, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24902227, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24902228, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24902229, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24902230, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24902231, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24902232, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24902233, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24902234, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24902235, '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 = 24902636 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': 3277963, 'mtr_portfolio_id': 24902636, 'created_at': datetime.datetime(2025, 7, 14, 5, 46, 58), 'result': '0.017684671803411177', 'result_long': None, 'result_double': None}] Qualite : 0.017684671803411177 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24902636 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24902636_14-07-2025_05_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24902636 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_P24902636_14-07-2025_05_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24902664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24902665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24902666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24902667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24902668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24902669, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24902670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24902671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24902672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24902673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24902674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24902675, 'pht': 3726}}" where mtr_portfolio_id = 24902636 and dashboard_run_id = 1983362 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`=24902636 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12499103, 0.017684671803411177, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24902636_14-07-2025_05_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24902664, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24902665, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24902666, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24902667, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24902668, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24902669, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24902670, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24902671, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24902672, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24902673, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24902674, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24902675, '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 = 24903073 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': 3278008, 'mtr_portfolio_id': 24903073, 'created_at': datetime.datetime(2025, 7, 14, 6, 0, 58), 'result': '0.019063080712617073', 'result_long': None, 'result_double': None}] Qualite : 0.019063080712617073 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24903073 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24903073_14-07-2025_06_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24903073 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_P24903073_14-07-2025_06_00_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24903099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24903100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24903101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24903102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24903103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24903104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24903105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24903106, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24903107, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24903108, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24903109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24903110, 'pht': 3726}}" where mtr_portfolio_id = 24903073 and dashboard_run_id = 1983362 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`=24903073 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12499104, 0.019063080712617073, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24903073_14-07-2025_06_00_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24903099, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24903100, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24903101, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24903102, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24903103, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24903104, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24903105, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24903106, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24903107, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24903108, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24903109, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24903110, '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 = 24903581 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': 3278066, 'mtr_portfolio_id': 24903581, 'created_at': datetime.datetime(2025, 7, 14, 6, 17, 28), 'result': '0.041257047313408374', 'result_long': None, 'result_double': None}] Qualite : 0.041257047313408374 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24903581 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24903581_14-07-2025_06_17_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24903581 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_P24903581_14-07-2025_06_17_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24903608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24903609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24903610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24903611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24903612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24903613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24903614, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24903615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24903616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24903617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24903618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24903619, 'pht': 3726}}" where mtr_portfolio_id = 24903581 and dashboard_run_id = 1983362 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`=24903581 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12499105, 0.041257047313408374, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24903581_14-07-2025_06_17_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24903608, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24903609, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24903610, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24903611, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24903612, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24903613, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24903614, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24903615, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24903616, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24903617, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24903618, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24903619, '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 = 24904018 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': 3278106, 'mtr_portfolio_id': 24904018, 'created_at': datetime.datetime(2025, 7, 14, 6, 31), 'result': '0.03460715103708139', 'result_long': None, 'result_double': None}] Qualite : 0.03460715103708139 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24904018 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24904018_14-07-2025_06_31_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24904018 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_P24904018_14-07-2025_06_31_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24904021, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24904022, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24904023, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24904024, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24904025, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24904026, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24904027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24904028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24904029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24904030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24904031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24904032, 'pht': 3726}}" where mtr_portfolio_id = 24904018 and dashboard_run_id = 1983362 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`=24904018 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12499106, 0.03460715103708139, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24904018_14-07-2025_06_31_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24904021, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24904022, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24904023, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24904024, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24904025, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24904026, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24904027, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24904028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24904029, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24904030, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24904031, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24904032, '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 = 24904386 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': 3278152, 'mtr_portfolio_id': 24904386, 'created_at': datetime.datetime(2025, 7, 14, 6, 46, 29), 'result': '0.03139351803924442', 'result_long': None, 'result_double': None}] Qualite : 0.03139351803924442 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24904386 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24904386_14-07-2025_06_46_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24904386 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_P24904386_14-07-2025_06_46_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24904414, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24904415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24904416, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24904417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24904418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24904419, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24904420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24904421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24904422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24904423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24904424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24904425, 'pht': 3726}}" where mtr_portfolio_id = 24904386 and dashboard_run_id = 1983362 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`=24904386 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12499107, 0.03139351803924442, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24904386_14-07-2025_06_46_30.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24904414, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24904415, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24904416, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24904417, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24904418, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24904419, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24904420, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24904421, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24904422, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24904423, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24904424, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24904425, '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 = 24904901 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': 3278204, 'mtr_portfolio_id': 24904901, 'created_at': datetime.datetime(2025, 7, 14, 7, 0, 59), 'result': '0.038422930226965094', 'result_long': None, 'result_double': None}] Qualite : 0.038422930226965094 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24904901 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24904901_14-07-2025_07_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24904901 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_P24904901_14-07-2025_07_00_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24904904, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24904905, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24904906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24904907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24904908, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24904909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24904910, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24904911, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24904912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24904913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24904914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24904915, 'pht': 3726}}" where mtr_portfolio_id = 24904901 and dashboard_run_id = 1983362 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`=24904901 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12499108, 0.038422930226965094, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24904901_14-07-2025_07_00_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24904904, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24904905, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24904906, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24904907, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24904908, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24904909, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24904910, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24904911, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24904912, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24904913, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24904914, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24904915, '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 = 24905304 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': 3278256, 'mtr_portfolio_id': 24905304, 'created_at': datetime.datetime(2025, 7, 14, 7, 17, 1), 'result': '0.0434550702202736', 'result_long': None, 'result_double': None}] Qualite : 0.0434550702202736 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24905304 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24905304_14-07-2025_07_17_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24905304 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_P24905304_14-07-2025_07_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24905306, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24905307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24905308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24905309, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24905310, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24905311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24905312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24905313, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24905314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24905315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24905316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24905317, 'pht': 3726}}" where mtr_portfolio_id = 24905304 and dashboard_run_id = 1983362 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`=24905304 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12499109, 0.0434550702202736, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24905304_14-07-2025_07_17_01.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24905306, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24905307, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24905308, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24905309, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24905310, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24905311, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24905312, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24905313, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24905314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24905315, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24905316, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24905317, '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 = 24905756 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': 3278311, 'mtr_portfolio_id': 24905756, 'created_at': datetime.datetime(2025, 7, 14, 7, 30, 58), 'result': '0.032441134716623576', 'result_long': None, 'result_double': None}] Qualite : 0.032441134716623576 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24905756 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24905756_14-07-2025_07_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24905756 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_P24905756_14-07-2025_07_30_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24905761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24905762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24905763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24905764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24905765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24905766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24905767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24905768, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24905769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24905770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24905771, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24905772, 'pht': 3726}}" where mtr_portfolio_id = 24905756 and dashboard_run_id = 1983362 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`=24905756 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12499110, 0.032441134716623576, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24905756_14-07-2025_07_30_59.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24905761, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24905762, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24905763, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24905764, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24905765, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24905766, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24905767, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24905768, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24905769, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24905770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24905771, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24905772, '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 = 24906253 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': 3278374, 'mtr_portfolio_id': 24906253, 'created_at': datetime.datetime(2025, 7, 14, 7, 47), 'result': '0.039380079576465374', 'result_long': None, 'result_double': None}] Qualite : 0.039380079576465374 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24906253 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24906253_14-07-2025_07_47_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24906253 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_P24906253_14-07-2025_07_47_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24906280, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24906281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24906282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24906283, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24906284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24906285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24906286, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24906287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24906288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24906289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24906290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24906291, 'pht': 3726}}" where mtr_portfolio_id = 24906253 and dashboard_run_id = 1983362 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`=24906253 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12499111, 0.039380079576465374, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24906253_14-07-2025_07_47_01.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24906280, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24906281, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24906282, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24906283, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24906284, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24906285, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24906286, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24906287, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24906288, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24906289, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24906290, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24906291, '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 = 24906760 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': 3278419, 'mtr_portfolio_id': 24906760, 'created_at': datetime.datetime(2025, 7, 14, 8, 1), 'result': '0.03265007446875006', 'result_long': None, 'result_double': None}] Qualite : 0.03265007446875006 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24906760 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24906760_14-07-2025_08_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24906760 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_P24906760_14-07-2025_08_01_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24906765, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24906766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24906767, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24906768, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24906769, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24906770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24906771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24906772, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24906773, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24906774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24906775, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24906776, 'pht': 3726}}" where mtr_portfolio_id = 24906760 and dashboard_run_id = 1983362 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`=24906760 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12499112, 0.03265007446875006, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24906760_14-07-2025_08_01_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24906765, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24906766, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24906767, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24906768, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24906769, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24906770, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24906771, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24906772, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24906773, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24906774, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24906775, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24906776, '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 = 24907240 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': 3278486, 'mtr_portfolio_id': 24907240, 'created_at': datetime.datetime(2025, 7, 14, 8, 16, 58), 'result': '0.040364620903346894', 'result_long': None, 'result_double': None}] Qualite : 0.040364620903346894 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24907240 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24907240_14-07-2025_08_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24907240 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_P24907240_14-07-2025_08_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24907242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24907243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24907244, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24907245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24907246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24907247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24907248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24907249, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24907250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24907251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24907252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24907253, 'pht': 3726}}" where mtr_portfolio_id = 24907240 and dashboard_run_id = 1983362 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`=24907240 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12499113, 0.040364620903346894, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24907240_14-07-2025_08_16_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24907242, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24907243, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24907244, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24907245, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24907246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24907247, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24907248, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24907249, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24907250, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24907251, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24907252, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24907253, '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 = 24907680 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': 3278539, 'mtr_portfolio_id': 24907680, 'created_at': datetime.datetime(2025, 7, 14, 8, 30, 59), 'result': '0.03871581370502936', 'result_long': None, 'result_double': None}] Qualite : 0.03871581370502936 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24907680 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24907680_14-07-2025_08_31_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24907680 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_P24907680_14-07-2025_08_31_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24907683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24907684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24907685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24907686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24907687, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24907688, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24907689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24907690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24907691, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24907692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24907693, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24907694, 'pht': 3726}}" where mtr_portfolio_id = 24907680 and dashboard_run_id = 1983362 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`=24907680 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12499114, 0.03871581370502936, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24907680_14-07-2025_08_31_00.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24907683, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24907684, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24907685, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24907686, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24907687, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24907688, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24907689, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24907690, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24907691, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24907692, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24907693, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24907694, '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 = 24908086 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': 3278597, 'mtr_portfolio_id': 24908086, 'created_at': datetime.datetime(2025, 7, 14, 8, 46, 58), 'result': '0.029453610529616064', 'result_long': None, 'result_double': None}] Qualite : 0.029453610529616064 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24908086 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24908086_14-07-2025_08_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24908086 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_P24908086_14-07-2025_08_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24908112, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24908113, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24908114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24908115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24908116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24908117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24908118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24908119, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24908120, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24908121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24908122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24908123, 'pht': 3726}}" where mtr_portfolio_id = 24908086 and dashboard_run_id = 1983362 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`=24908086 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12499115, 0.029453610529616064, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24908086_14-07-2025_08_46_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24908112, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24908113, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24908114, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24908115, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24908116, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24908117, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24908118, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24908119, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24908120, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24908121, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24908122, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24908123, '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 = 24908514 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': 3278660, 'mtr_portfolio_id': 24908514, 'created_at': datetime.datetime(2025, 7, 14, 9, 0, 58), 'result': '0.019846087577955487', 'result_long': None, 'result_double': None}] Qualite : 0.019846087577955487 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24908514 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24908514_14-07-2025_09_00_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24908514 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_P24908514_14-07-2025_09_00_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24908544, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24908545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24908546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24908547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24908548, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24908549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24908550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24908551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24908552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24908553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24908554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24908555, 'pht': 3726}}" where mtr_portfolio_id = 24908514 and dashboard_run_id = 1983362 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`=24908514 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12499116, 0.019846087577955487, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24908514_14-07-2025_09_00_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24908544, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24908545, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24908546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24908547, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24908548, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24908549, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24908550, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24908551, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24908552, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24908553, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24908554, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24908555, '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 = 24909075 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': 3278726, 'mtr_portfolio_id': 24909075, 'created_at': datetime.datetime(2025, 7, 14, 9, 16, 58), 'result': '0.0477148266371259', 'result_long': None, 'result_double': None}] Qualite : 0.0477148266371259 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24909075 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24909075_14-07-2025_09_16_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24909075 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_P24909075_14-07-2025_09_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24909076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24909077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24909078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24909079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24909080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24909081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24909082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24909083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24909084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24909085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24909086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24909087, 'pht': 3726}}" where mtr_portfolio_id = 24909075 and dashboard_run_id = 1983362 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`=24909075 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12499117, 0.0477148266371259, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24909075_14-07-2025_09_16_59.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24909076, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24909077, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24909078, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24909079, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24909080, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24909081, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24909082, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24909083, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24909084, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24909085, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24909086, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24909087, '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 = 24909513 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': 3278781, 'mtr_portfolio_id': 24909513, 'created_at': datetime.datetime(2025, 7, 14, 9, 30, 57), 'result': '0.04204467601156263', 'result_long': None, 'result_double': None}] Qualite : 0.04204467601156263 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24909513 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24909513_14-07-2025_09_30_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24909513 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_P24909513_14-07-2025_09_30_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24909542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24909543, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24909544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24909545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24909546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24909547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24909548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24909549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24909550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24909551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24909552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24909553, 'pht': 3726}}" where mtr_portfolio_id = 24909513 and dashboard_run_id = 1983362 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`=24909513 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12499118, 0.04204467601156263, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24909513_14-07-2025_09_30_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24909542, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24909543, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24909544, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24909545, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24909546, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24909547, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24909548, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24909549, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24909550, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24909551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24909552, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24909553, '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 = 24910025 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': 3278856, 'mtr_portfolio_id': 24910025, 'created_at': datetime.datetime(2025, 7, 14, 9, 46, 58), 'result': '0.05106990517368116', 'result_long': None, 'result_double': None}] Qualite : 0.05106990517368116 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24910025 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24910025_14-07-2025_09_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24910025 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_P24910025_14-07-2025_09_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24910053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24910054, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24910055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24910056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24910057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24910058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24910059, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24910060, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24910061, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24910062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24910063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24910064, 'pht': 3726}}" where mtr_portfolio_id = 24910025 and dashboard_run_id = 1983362 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`=24910025 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12499119, 0.05106990517368116, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24910025_14-07-2025_09_46_59.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24910053, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24910054, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24910055, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24910056, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24910057, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24910058, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24910059, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24910060, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24910061, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24910062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24910063, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24910064, '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 = 24910502 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': 3278907, 'mtr_portfolio_id': 24910502, 'created_at': datetime.datetime(2025, 7, 14, 10, 1), 'result': '0.05820772783996079', 'result_long': None, 'result_double': None}] Qualite : 0.05820772783996079 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24910502 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24910502_14-07-2025_10_01_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24910502 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_P24910502_14-07-2025_10_01_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24910531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24910532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24910533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24910534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24910535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24910536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24910537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24910538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24910539, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24910540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24910541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24910542, 'pht': 3726}}" where mtr_portfolio_id = 24910502 and dashboard_run_id = 1983362 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`=24910502 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12499120, 0.05820772783996079, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24910502_14-07-2025_10_01_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 24910531, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24910532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24910533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24910534, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24910535, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24910536, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24910537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24910538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24910539, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24910540, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24910541, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24910542, '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 = 24911035 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': 3278978, 'mtr_portfolio_id': 24911035, 'created_at': datetime.datetime(2025, 7, 14, 10, 16, 59), 'result': '0.049242692038900304', 'result_long': None, 'result_double': None}] Qualite : 0.049242692038900304 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24911035 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24911035_14-07-2025_10_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24911035 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_P24911035_14-07-2025_10_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24911061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24911062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24911063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24911064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24911065, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24911066, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24911067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24911068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24911069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24911070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24911071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24911072, 'pht': 3726}}" where mtr_portfolio_id = 24911035 and dashboard_run_id = 1983362 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`=24911035 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12499121, 0.049242692038900304, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24911035_14-07-2025_10_17_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 24911061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24911062, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24911063, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24911064, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24911065, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24911066, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24911067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24911068, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24911069, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24911070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24911071, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24911072, '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 = 24911443 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': 3279025, 'mtr_portfolio_id': 24911443, 'created_at': datetime.datetime(2025, 7, 14, 10, 30, 58), 'result': '0.05401401419586676', 'result_long': None, 'result_double': None}] Qualite : 0.05401401419586676 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24911443 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24911443_14-07-2025_10_30_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24911443 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_P24911443_14-07-2025_10_30_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24911447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24911448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24911449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24911450, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24911451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24911452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24911453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24911454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24911455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24911456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24911457, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24911458, 'pht': 3726}}" where mtr_portfolio_id = 24911443 and dashboard_run_id = 1983362 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`=24911443 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12499122, 0.05401401419586676, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24911443_14-07-2025_10_30_59.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24911447, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24911448, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24911449, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24911450, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24911451, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24911452, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24911453, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24911454, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24911455, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24911456, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24911457, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24911458, '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 = 24911823 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': 3279083, 'mtr_portfolio_id': 24911823, 'created_at': datetime.datetime(2025, 7, 14, 10, 46, 58), 'result': '0.052792309226215556', 'result_long': None, 'result_double': None}] Qualite : 0.052792309226215556 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24911823 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24911823_14-07-2025_10_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24911823 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_P24911823_14-07-2025_10_46_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24911850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24911851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24911852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24911853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24911854, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24911855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24911856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24911857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24911858, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24911859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24911860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24911861, 'pht': 3726}}" where mtr_portfolio_id = 24911823 and dashboard_run_id = 1983362 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`=24911823 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12499123, 0.052792309226215556, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24911823_14-07-2025_10_46_58.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24911850, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24911851, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24911852, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24911853, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24911854, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24911855, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24911856, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24911857, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24911858, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24911859, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24911860, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24911861, '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 = 24912308 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': 3279133, 'mtr_portfolio_id': 24912308, 'created_at': datetime.datetime(2025, 7, 14, 10, 52, 59), 'result': '0.05856362813443266', 'result_long': None, 'result_double': None}] Qualite : 0.05856362813443266 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 24912308 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24912308_14-07-2025_10_53_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 24912308 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_P24912308_14-07-2025_10_53_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24912310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24912311, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24912312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24912313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24912314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24912315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24912316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24912317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24912318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24912319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24912320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24912321, 'pht': 3726}}" where mtr_portfolio_id = 24912308 and dashboard_run_id = 1983362 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`=24912308 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (12499124, 0.05856362813443266, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P24912308_14-07-2025_10_53_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 24912310, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 24912311, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 24912312, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 24912313, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 24912314, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 24912315, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 24912316, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 24912317, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 24912318, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 24912319, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 24912320, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 24912321, '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 (24901827,24902221,24902636,24903073,24903581,24904018,24904386,24904901,24905304,24905756,24906253,24906760,24907240,24907680,24908086,24908514,24909075,24909513,24910025,24910502,24911035,24911443,24911823,24912308) result : ((1372077129,), (1372077153,), (1372077184,), (1372077209,), (1372077234,), (1372077503,), (1372077505,), (1372077506,), (1372077508,), (1372077509,), (1372077511,), (1372077667,), (1372077680,), (1372077695,), (1372077711,), (1372077717,), (1372077718,), (1372077764,), (1372077766,), (1372077767,), (1372077769,), (1372077770,), (1372077771,), (1372077784,), (1372077788,), (1372077790,), (1372077791,), (1372077792,), (1372077793,), (1372077807,), (1372077810,), (1372077812,), (1372077814,), (1372077816,), (1372077818,), (1372077824,), (1372077825,), (1372077826,), (1372077827,), (1372077828,), (1372077829,), (1372077839,), (1372077840,), (1372077841,), (1372077842,), (1372077843,), (1372077846,), (1372077857,), (1372077858,), (1372077860,), (1372077861,), (1372077862,), (1372077864,), (1372077871,), (1372077872,), (1372077874,), (1372077875,), (1372077877,), (1372077879,), (1372077896,), (1372077897,), (1372077898,), (1372077899,), (1372077900,), (1372077901,), (1372077904,), (1372077907,), (1372077909,), (1372077911,), (1372077913,), (1372077915,), (1372077919,), (1372077921,), (1372077924,), (1372077925,), (1372077928,), (1372077931,), (1372077944,), (1372077946,), (1372077948,), (1372077950,), (1372077951,), (1372077953,), (1372077963,), (1372077967,), (1372077968,), (1372077970,), (1372077971,), (1372077972,), (1372077978,), (1372077980,), (1372077984,), (1372077985,), (1372077987,), (1372077989,), (1372077994,), (1372077995,), (1372077996,), (1372077997,), (1372077998,), (1372077999,), (1372078009,), (1372078012,), (1372078013,), (1372078015,), (1372078016,), (1372078018,), (1372078024,), (1372078025,), (1372078026,), (1372078027,), (1372078028,), (1372078029,), (1372078040,), (1372078043,), (1372078044,), (1372078045,), (1372078046,), (1372078048,), (1372078066,), (1372078067,), (1372078068,), (1372078069,), (1372078070,), (1372078071,), (1372078081,), (1372078083,), (1372078085,), (1372078087,), (1372078088,), (1372078089,), (1372078108,), (1372078161,), (1372078164,), (1372078167,), (1372078169,), (1372078170,), (1372078172,), (1372078175,), (1372078181,), (1372078183,), (1372078185,), (1372078187,), (1372078191,), (1372078193,), (1372078206,), (1372078208,), (1372078210,), (1372078211,), (1372078212,), (1372078213,), (1372078220,), (1372078223,), (1372078225,), (1372078227,), (1372078228,), (1372078229,), (1372078259,), (1372078261,), (1372078262,), (1372078263,), (1372078269,), (1372078271,), (1372078283,), (1372078284,), (1372078285,), (1372078286,), (1372078287,), (1372078288,), (1372078299,), (1372078300,), (1372078301,), (1372078303,), (1372078304,), (1372078305,), (1372078322,), (1372078323,), (1372078325,), (1372078326,), (1372078328,), (1372078329,), (1372078341,), (1372078342,), (1372078343,), (1372078344,), (1372078345,), (1372078347,), (1372078355,), (1372078356,), (1372078358,), (1372078359,), (1372078361,), (1372078363,), (1372078374,), (1372078375,), (1372078376,), (1372078377,), (1372078378,), (1372078379,), (1372078390,), (1372078391,), (1372078392,), (1372078393,), (1372078394,), (1372078395,), (1372078404,), (1372078406,), (1372078407,), (1372078408,), (1372078409,), (1372078410,), (1372078414,), (1372078415,), (1372078418,), (1372078419,), (1372078421,), (1372078423,), (1372078441,), (1372078442,), (1372078443,), (1372078444,), (1372078445,), (1372078447,), (1372078458,), (1372078460,), (1372078461,), (1372078463,), (1372078464,), (1372078465,), (1372078477,), (1372078479,), (1372078481,), (1372078483,), (1372078486,), (1372078488,), (1372078511,), (1372078513,), (1372078514,), (1372078516,), (1372078517,), (1372078518,), (1372078529,), (1372078532,), (1372078535,), (1372078537,), (1372078538,), (1372078539,), (1372078548,), (1372078551,), (1372078554,), (1372078556,), (1372078558,), (1372078559,), (1372078566,), (1372078570,), (1372078572,), (1372078574,), (1372078575,), (1372078576,), (1372078583,), (1372078585,), (1372078586,), (1372078589,), (1372078590,), (1372078591,), (1372078599,), (1372078603,), (1372078605,), (1372078606,), (1372078607,), (1372078608,), (1372078615,), (1372078617,), (1372078618,), (1372078620,), (1372078621,), (1372078623,), (1372078629,), (1372078630,), (1372078631,), (1372078632,), (1372078633,), (1372078634,), (1372078644,), (1372078646,), (1372078648,), (1372078650,), (1372078652,), (1372078654,), (1372078664,), (1372078666,), (1372078667,), (1372078668,), (1372078669,), (1372078671,), (1372078699,), (1372078700,), (1372078701,), (1372078702,), (1372078703,), (1372078704,), (1372078715,), (1372078716,), (1372078718,), (1372078719,), (1372078720,), (1372078721,), (1372078733,), (1372078734,), (1372078735,), (1372078736,), (1372078737,), (1372078738,), (1372078750,), (1372078753,), (1372078757,), (1372078759,), (1372078760,), (1372078761,), (1372078771,), (1372078774,), (1372078776,), (1372078779,), (1372078782,), (1372078784,), (1372078794,), (1372078796,), (1372078797,), (1372078799,), (1372078800,), (1372078801,), (1372078934,), (1372078980,), (1372079025,), (1372079068,), (1372079113,), (1372079158,), (1372079511,), (1372079540,), (1372079566,), (1372079593,), (1372079638,), (1372079686,), (1372080059,), (1372080062,), (1372080065,), (1372080067,), (1372080069,), (1372080071,), (1372080122,), (1372080124,), (1372080126,), (1372080128,), (1372080130,), (1372080131,), (1372080139,), (1372080141,), (1372080142,), (1372080144,), (1372080145,), (1372080146,), (1372080157,), (1372080160,), (1372080162,), (1372080164,), (1372080165,), (1372080166,), (1372080172,), (1372080174,), (1372080176,), (1372080177,), (1372080179,), (1372080180,), (1372080188,), (1372080189,), (1372080191,), (1372080193,), (1372080194,), (1372080195,), (1372080208,), (1372080209,), (1372080211,), (1372080213,), (1372080214,), (1372080215,), (1372080218,), (1372080219,), (1372080221,), (1372080222,), (1372080224,), (1372080225,), (1372080235,), (1372080236,), (1372080237,), (1372080238,), (1372080239,), (1372080241,), (1372080255,), (1372080257,), (1372080259,), (1372080260,), (1372080262,), (1372080263,), (1372080271,), (1372080273,), (1372080275,), (1372080276,), (1372080277,), (1372080278,), (1372080299,), (1372080301,), (1372080302,), (1372080304,), (1372080305,), (1372080306,), (1372080317,), (1372080320,), (1372080322,), (1372080324,), (1372080325,), (1372080326,), (1372080337,), (1372080339,), (1372080340,), (1372080342,), (1372080343,), (1372080344,), (1372080353,), (1372080354,), (1372080356,), (1372080358,), (1372080359,), (1372080360,), (1372080372,), (1372080375,), (1372080379,), (1372080380,), (1372080381,), (1372080382,), (1372080392,), (1372080393,), (1372080397,), (1372080399,), (1372080401,), (1372080403,), (1372080411,), (1372080412,), (1372080413,), (1372080414,), (1372080415,), (1372080417,), (1372080430,), (1372080431,), (1372080432,), (1372080433,), (1372080434,), (1372080435,), (1372080447,), (1372080448,), (1372080450,), (1372080451,), (1372080453,), (1372080455,), (1372080473,), (1372080474,), (1372080475,), (1372080476,), (1372080477,), (1372080479,), (1372080507,), (1372080509,), (1372080511,), (1372080512,), (1372080514,), (1372080515,), (1372080533,), (1372080534,), (1372080537,), (1372080538,), (1372080540,), (1372080542,), (1372080559,), (1372080560,), (1372080561,), (1372080562,), (1372080563,), (1372080565,), (1372080583,), (1372080585,), (1372080587,), (1372080588,), (1372080589,), (1372080591,), (1372080599,), (1372080601,), (1372080604,), (1372080605,), (1372080608,), (1372080611,), (1372080626,), (1372080628,), (1372080630,), (1372080632,), (1372080633,), (1372080636,), (1372080644,), (1372080645,), (1372080646,), (1372080647,), (1372080648,), (1372080649,), (1372080664,), (1372080665,), (1372080666,), (1372080668,), (1372080669,), (1372080670,), (1372080688,), (1372080691,), (1372080692,), (1372080693,), (1372080694,), (1372080695,), (1372080710,), (1372080711,), (1372080712,), (1372080714,), (1372080715,), (1372080717,), (1372080750,), (1372080753,), (1372080754,), (1372080757,), (1372080759,), (1372080761,), (1372080773,), (1372080775,), (1372080776,), (1372080778,), (1372080780,), (1372080782,), (1372080800,), (1372080802,), (1372080803,), (1372080805,), (1372080806,), (1372080807,), (1372080819,), (1372080821,), (1372080823,), (1372080825,), (1372080827,), (1372080829,), (1372080843,), (1372080845,), (1372080847,), (1372080849,), (1372080851,), (1372080853,), (1372080873,), (1372080875,), (1372080876,), (1372080878,), (1372080880,), (1372080883,), (1372080898,), (1372080899,), (1372080901,), (1372080903,), (1372080905,), (1372080911,), (1372080940,), (1372080942,), (1372080944,), (1372080969,), (1372080973,), (1372080978,), (1372080999,), (1372081000,), (1372081002,), (1372081003,), (1372081005,), (1372081007,), (1372081032,), (1372081034,), (1372081037,), (1372081039,), (1372081041,), (1372081042,), (1372081066,), (1372081068,), (1372081072,), (1372081073,), (1372081077,), (1372081081,), (1372081122,), (1372081125,), (1372081127,), (1372081130,), (1372081137,), (1372081141,), (1372081161,), (1372081163,), (1372081164,), (1372081165,), (1372081166,), (1372081168,), (1372081194,), (1372081196,), (1372081198,), (1372081200,), (1372081203,), (1372081206,), (1372081228,), (1372081231,), (1372081234,), (1372081236,), (1372081239,), (1372081242,), (1372081259,), (1372081261,), (1372081263,), (1372081265,), (1372081267,), (1372081269,), (1372081282,), (1372081283,), (1372081284,), (1372081285,), (1372081287,), (1372081289,), (1372081307,), (1372081309,), (1372081310,), (1372081311,), (1372081313,), (1372081314,), (1372081335,), (1372081360,), (1372081362,), (1372081365,), (1372081367,), (1372081369,), (1372081373,), (1372081395,), (1372081397,), (1372081398,), (1372081400,), (1372081403,), (1372081407,), (1372081417,), (1372081420,), (1372081422,), (1372081423,), (1372081426,), (1372081429,), (1372081447,), (1372081448,), (1372081451,), (1372081452,), (1372081455,), (1372081458,), (1372081474,), (1372081476,), (1372081477,), (1372081479,), (1372081480,), (1372081482,), (1372081500,), (1372081502,), (1372081503,), (1372081505,), (1372081506,), (1372081508,), (1372081529,), (1372081530,), (1372081532,), (1372081533,), (1372081536,), (1372081538,), (1372081565,), (1372081589,), (1372081612,), (1372081635,), (1372081657,), (1372081685,), (1372081940,), (1372081943,), (1372081945,), (1372081957,), (1372081983,), (1372082003,), (1372082536,), (1372082561,), (1372082578,), (1372082582,), (1372082585,), (1372082587,), (1372082685,), (1372082699,), (1372082713,), (1372082740,), (1372082759,), (1372082762,), (1372082966,), (1372082992,), (1372083018,), (1372083046,), (1372083072,), (1372083097,), (1372083312,), (1372083333,), (1372083350,), (1372083373,), (1372083397,), (1372083420,), (1372083596,), (1372083597,), (1372083599,), (1372083602,), (1372083604,), (1372083618,), (1372083807,), (1372083824,), (1372083836,), (1372083840,), (1372083842,), (1372083847,), (1372083862,), (1372083864,), (1372083865,), (1372083867,), (1372083869,), (1372083871,), (1372083884,), (1372083885,), (1372083886,), (1372083887,), (1372083889,), (1372083891,), (1372083910,), (1372083911,), (1372083912,), (1372083913,), (1372083915,), (1372083920,), (1372083938,), (1372083939,), (1372083940,), (1372083941,), (1372083943,), (1372083945,), (1372083966,), (1372083968,), (1372083970,), (1372083971,), (1372083973,), (1372083975,), (1372084000,), (1372084002,), (1372084003,), (1372084005,), (1372084006,), (1372084009,), (1372084035,), (1372084038,), (1372084040,), (1372084042,), (1372084045,), (1372084047,), (1372084061,), (1372084063,), (1372084065,), (1372084067,), (1372084069,), (1372084071,), (1372084089,), (1372084090,), (1372084092,), (1372084094,), (1372084096,), (1372084100,), (1372084113,), (1372084115,), (1372084116,), (1372084118,), (1372084120,), (1372084122,), (1372084141,), (1372084145,), (1372084146,), (1372084149,), (1372084152,), (1372084153,), (1372084168,), (1372084169,), (1372084170,), (1372084171,), (1372084173,), (1372084175,), (1372084192,), (1372084199,), (1372084203,), (1372084206,), (1372084210,), (1372084213,), (1372084217,), (1372084248,), (1372084249,), (1372084250,), (1372084251,), (1372084254,), (1372084258,), (1372084302,), (1372084303,), (1372084304,), (1372084305,), (1372084307,), (1372084309,), (1372084322,), (1372084323,), (1372084324,), (1372084327,), (1372084334,), (1372084342,), (1372084421,), (1372084422,), (1372084423,), (1372084424,), (1372084429,), (1372084462,), (1372084497,), (1372084498,), (1372084499,), (1372084500,), (1372084501,), (1372084503,), (1372084516,), (1372084517,), (1372084518,), (1372084519,), (1372084521,), (1372084523,), (1372084540,), (1372084541,), (1372084543,), (1372084545,), (1372084547,), (1372084550,), (1372084558,), (1372084561,), (1372084564,), (1372084565,), (1372084567,), (1372084570,), (1372084609,), (1372084610,), (1372084612,), (1372084613,), (1372084616,), (1372084648,), (1372084716,), (1372084727,), (1372084730,), (1372084731,), (1372084733,), (1372084735,), (1372084807,), (1372084812,), (1372084814,), (1372084815,), (1372084817,), (1372084819,), (1372084847,), (1372084848,), (1372084850,), (1372084852,), (1372084854,), (1372084856,), (1372084870,), (1372084872,), (1372084873,), (1372084875,), (1372084877,), (1372084879,), (1372084893,), (1372084895,), (1372084897,), (1372084899,), (1372084902,), (1372084905,), (1372084949,), (1372084951,), (1372084953,), (1372084965,), (1372084982,), (1372084985,), (1372085054,), (1372085057,), (1372085058,), (1372085061,), (1372085064,), (1372085067,), (1372085150,), (1372085152,), (1372085153,), (1372085155,), (1372085157,), (1372085159,), (1372085167,), (1372085168,), (1372085169,), (1372085170,), (1372085172,), (1372085174,), (1372085225,), (1372085228,), (1372085230,), (1372085232,), (1372085234,), (1372085262,), (1372085344,), (1372085438,), (1372085440,), (1372085442,), (1372085445,), (1372085447,), (1372085450,), (1372085508,), (1372085510,), (1372085511,), (1372085513,), (1372085515,), (1372085518,), (1372085539,), (1372085541,), (1372085545,), (1372085547,), (1372085549,), (1372085551,), (1372085567,), (1372085568,), (1372085570,), (1372085576,), (1372085578,), (1372085599,), (1372085631,), (1372085653,), (1372085663,), (1372085664,), (1372085686,), (1372085691,), (1372085748,), (1372085751,), (1372085754,), (1372085756,), (1372085758,), (1372085762,), (1372085863,), (1372085865,), (1372085868,), (1372085869,), (1372085871,), (1372085873,), (1372085887,), (1372085888,), (1372085889,), (1372085890,), (1372085891,), (1372085894,), (1372085918,), (1372085920,), (1372085921,), (1372085922,), (1372085924,), (1372085926,), (1372085943,), (1372085944,), (1372085945,), (1372085947,), (1372085948,), (1372085950,), (1372085967,), (1372085968,), (1372085969,), (1372085970,), (1372085971,), (1372085973,), (1372086030,), (1372086031,), (1372086033,), (1372086035,), (1372086036,), (1372086038,), (1372086053,), (1372086054,), (1372086056,), (1372086058,), (1372086059,), (1372086063,), (1372086078,), (1372086079,), (1372086080,), (1372086081,), (1372086082,), (1372086083,), (1372086113,), (1372086115,), (1372086117,), (1372086118,), (1372086120,), (1372086122,), (1372086151,), (1372086237,), (1372086239,), (1372086275,), (1372086277,), (1372086278,), (1372086280,), (1372086419,), (1372086452,), (1372086476,), (1372086500,), (1372086525,), (1372086550,), (1372086679,), (1372086681,), (1372086684,), (1372086707,), (1372086739,), (1372086765,), (1372087212,), (1372087429,), (1372087452,), (1372087478,), (1372087506,), (1372087802,), (1372087804,), (1372087807,), (1372087809,), (1372087812,), (1372087814,), (1372087990,), (1372088000,), (1372088002,), (1372088004,), (1372088006,), (1372088008,), (1372088025,), (1372088026,), (1372088028,), (1372088031,), (1372088032,), (1372088034,), (1372088055,), (1372088058,), (1372088061,), (1372088062,), (1372088064,), (1372088066,), (1372088093,), (1372088096,), (1372088099,), (1372088100,), (1372088102,), (1372088104,), (1372088114,), (1372088115,), (1372088117,), (1372088118,), (1372088119,), (1372088121,), (1372088139,), (1372088141,), (1372088143,), (1372088145,), (1372088147,), (1372088150,), (1372088171,), (1372088195,), (1372088196,), (1372088197,), (1372088198,), (1372088200,), (1372088204,), (1372088228,), (1372088229,), (1372088230,), (1372088231,), (1372088233,), (1372088234,), (1372088260,), (1372088264,), (1372088266,), (1372088268,), (1372088270,), (1372088273,), (1372088292,), (1372088293,), (1372088294,), (1372088296,), (1372088297,), (1372088299,), (1372088317,), (1372088318,), (1372088319,), (1372088320,), (1372088322,), (1372088325,), (1372088339,), (1372088341,), (1372088342,), (1372088343,), (1372088345,), (1372088349,), (1372088366,), (1372088367,), (1372088369,), (1372088370,), (1372088372,), (1372088374,), (1372088385,), (1372088387,), (1372088390,), (1372088392,), (1372088394,), (1372088397,), (1372088419,), (1372088421,), (1372088422,), (1372088423,), (1372088424,), (1372088427,), (1372088447,), (1372088448,), (1372088450,), (1372088453,), (1372088455,), (1372088458,), (1372088478,), (1372088480,), (1372088481,), (1372088483,), (1372088485,), (1372088488,), (1372088508,), (1372088510,), (1372088513,), (1372088515,), (1372088518,), (1372088519,), (1372088532,), (1372088534,), (1372088535,), (1372088537,), (1372088540,), (1372088543,), (1372088560,), (1372088562,), (1372088563,), (1372088565,), (1372088566,), (1372088568,), (1372088587,), (1372088589,), (1372088591,), (1372088593,), (1372088594,), (1372088596,), (1372088612,), (1372088614,), (1372088617,), (1372088620,), (1372088623,), (1372088626,), (1372088636,), (1372088638,), (1372088641,), (1372088644,), (1372088645,), (1372088648,), (1372088661,), (1372088663,), (1372088665,), (1372088666,), (1372088669,), (1372088671,), (1372088686,), (1372088687,), (1372088688,), (1372088690,), (1372088691,), (1372088693,), (1372088712,), (1372088714,), (1372088715,), (1372088716,), (1372088717,), (1372088719,), (1372088738,), (1372088740,), (1372088742,), (1372088745,), (1372088748,), (1372088751,), (1372088778,), (1372088779,), (1372088782,), (1372088784,), (1372088785,), (1372088787,), (1372088801,), (1372088804,), (1372088808,), (1372088809,), (1372088812,), (1372088814,), (1372088830,), (1372088832,), (1372088833,), (1372088835,), (1372088836,), (1372088838,), (1372088854,), (1372088855,), (1372088856,), (1372088857,), (1372088858,), (1372088861,), (1372088879,), (1372088880,), (1372088881,), (1372088883,), (1372088886,), (1372088887,), (1372088906,), (1372088908,), (1372088910,), (1372088911,), (1372088912,), (1372088916,), (1372088961,), (1372088964,), (1372088967,), (1372088969,), (1372088972,), (1372088974,), (1372088992,), (1372088994,), (1372088996,), (1372088997,), (1372088998,), (1372089000,), (1372089017,), (1372089018,), (1372089019,), (1372089020,), (1372089022,), (1372089024,), (1372089040,), (1372089041,), (1372089042,), (1372089043,), (1372089044,), (1372089047,), (1372089085,), (1372089086,), (1372089088,), (1372089089,), (1372089091,), (1372089093,), (1372089109,), (1372089110,), (1372089112,), (1372089114,), (1372089116,), (1372089119,), (1372089135,), (1372089137,), (1372089138,), (1372089139,), (1372089141,), (1372089144,), (1372089161,), (1372089163,), (1372089165,), (1372089166,), (1372089168,), (1372089170,), (1372089186,), (1372089187,), (1372089188,), (1372089190,), (1372089191,), (1372089194,), (1372089222,), (1372089223,), (1372089224,), (1372089225,), (1372089226,), (1372089228,), (1372089246,), (1372089247,), (1372089248,), (1372089249,), (1372089250,), (1372089252,), (1372089278,), (1372089280,), (1372089282,), (1372089285,), (1372089287,), (1372089289,), (1372089304,), (1372089306,), (1372089308,), (1372089312,), (1372089313,), (1372089316,), (1372089337,), (1372089339,), (1372089341,), (1372089343,), (1372089347,), (1372089351,), (1372089371,), (1372089373,), (1372089376,), (1372089378,), (1372089380,), (1372089383,), (1372089408,), (1372089416,), (1372089430,), (1372089432,), (1372089434,), (1372089437,), (1372089454,), (1372089456,), (1372089457,), (1372089459,), (1372089460,), (1372089463,), (1372089479,), (1372089482,), (1372089485,), (1372089486,), (1372089488,), (1372089490,), (1372089503,), (1372089505,), (1372089507,), (1372089509,), (1372089511,), (1372089514,), (1372089532,), (1372089534,), (1372089535,), (1372089538,), (1372089540,), (1372089543,), (1372089563,), (1372089566,), (1372089568,), (1372089570,), (1372089572,), (1372089574,), (1372089587,), (1372089589,), (1372089596,), (1372089613,), (1372089633,), (1372089660,), (1372090689,), (1372091130,), (1372091155,), (1372091204,), (1372091227,), (1372091238,), (1372091318,), (1372091320,), (1372091322,), (1372091323,), (1372091325,), (1372091329,), (1372091339,), (1372091342,), (1372091345,), (1372091347,), (1372091349,), (1372091351,), (1372091367,), (1372091369,), (1372091371,), (1372091373,), (1372091376,), (1372091379,), (1372091393,), (1372091394,), (1372091396,), (1372091398,), (1372091399,), (1372091401,), (1372091428,), (1372091432,), (1372091434,), (1372091438,), (1372091440,), (1372091443,), (1372091459,), (1372091460,), (1372091462,), (1372091464,), (1372091465,), (1372091467,), (1372091484,), (1372091487,), (1372091488,), (1372091490,), (1372091492,), (1372091494,), (1372091513,), (1372091516,), (1372091518,), (1372091520,), (1372091523,), (1372091525,), (1372091544,), (1372091547,), (1372091549,), (1372091550,), (1372091552,), (1372091554,), (1372091574,), (1372091576,), (1372091578,), (1372091579,), (1372091580,), (1372091583,), (1372091604,), (1372091606,), (1372091610,), (1372091611,), (1372091614,), (1372091617,), (1372091646,), (1372091649,), (1372091651,), (1372091656,), (1372091663,), (1372091665,), (1372091737,), (1372091739,), (1372091742,), (1372091743,), (1372091746,), (1372091749,), (1372091771,), (1372091773,), (1372091775,), (1372091777,), (1372091779,), (1372091782,), (1372091794,), (1372091795,), (1372091796,), (1372091797,), (1372091799,), (1372091801,), (1372091823,), (1372091825,), (1372091827,), (1372091829,), (1372091831,), (1372091834,), (1372091853,), (1372091855,), (1372091856,), (1372091857,), (1372091858,), (1372091860,), (1372091888,), (1372091890,), (1372091891,), (1372091893,), (1372091894,), (1372091896,), (1372091921,), (1372091922,), (1372091924,), (1372091925,), (1372091927,), (1372091930,), (1372091950,), (1372091952,), (1372091953,), (1372091954,), (1372091955,), (1372091957,), (1372091981,), (1372091984,), (1372091986,), (1372091987,), (1372091988,), (1372091990,), (1372092007,), (1372092009,), (1372092010,), (1372092013,), (1372092015,), (1372092017,), (1372092036,), (1372092039,), (1372092041,), (1372092043,), (1372092046,), (1372092049,), (1372092067,), (1372092071,), (1372092074,), (1372092075,), (1372092078,), (1372092080,), (1372092098,), (1372092100,), (1372092103,), (1372092105,), (1372092107,), (1372092110,), (1372092125,), (1372092127,), (1372092128,), (1372092130,), (1372092131,), (1372092133,), (1372092159,), (1372092162,), (1372092164,), (1372092166,), (1372092167,), (1372092169,), (1372092181,), (1372092183,), (1372092184,), (1372092186,), (1372092187,), (1372092188,), (1372092199,), (1372092201,), (1372092202,), (1372092204,), (1372092210,), (1372092212,), (1372092227,), (1372092229,), (1372092231,), (1372092233,), (1372092234,), (1372092237,), (1372092255,), (1372092257,), (1372092258,), (1372092261,), (1372092263,), (1372092265,), (1372092282,), (1372092286,), (1372092287,), (1372092291,), (1372092293,), (1372092294,), (1372092310,), (1372092312,), (1372092314,), (1372092315,), (1372092317,), (1372092319,), (1372092331,), (1372092333,), (1372092334,), (1372092336,), (1372092337,), (1372092339,), (1372092356,), (1372092360,), (1372092361,), (1372092363,), (1372092365,), (1372092367,), (1372092382,), (1372092384,), (1372092386,), (1372092388,), (1372092390,), (1372092391,), (1372092420,), (1372092425,), (1372092427,), (1372092430,), (1372092433,), (1372092437,), (1372092481,), (1372092485,), (1372092488,), (1372092490,), (1372092492,), (1372092495,), (1372092512,), (1372092515,), (1372092521,), (1372092523,), (1372092525,), (1372092528,), (1372092543,), (1372092546,), (1372092549,), (1372092551,), (1372092554,), (1372092556,), (1372092586,), (1372092590,), (1372092606,), (1372092607,), (1372092610,), (1372092613,), (1372092625,), (1372092627,), (1372092630,), (1372092631,), (1372092633,), (1372092635,), (1372092679,), (1372092681,), (1372092682,), (1372092689,), (1372092692,), (1372092695,), (1372092716,), (1372092718,), (1372092719,), (1372092722,), (1372092723,), (1372092725,), (1372092745,), (1372092746,), (1372092748,), (1372092750,), (1372092751,), (1372092753,), (1372092771,), (1372092773,), (1372092774,), (1372092776,), (1372092777,), (1372092779,), (1372092796,), (1372092798,), (1372092799,), (1372092801,), (1372092804,), (1372092806,), (1372092820,), (1372092822,), (1372092824,), (1372092825,), (1372092827,), (1372092829,), (1372092846,), (1372092849,), (1372092852,), (1372092853,), (1372092855,), (1372092857,), (1372092875,), (1372092877,), (1372092879,), (1372092882,), (1372092885,), (1372092887,), (1372092905,), (1372092907,), (1372092908,), (1372092910,), (1372092911,), (1372092913,), (1372092933,), (1372092935,), (1372092936,), (1372092938,), (1372092940,), (1372092942,), (1372092961,), (1372092963,), (1372092964,), (1372092966,), (1372092967,), (1372092970,), (1372092981,), (1372092982,), (1372092984,), (1372092987,), (1372092989,), (1372092991,), (1372093005,), (1372093007,), (1372093009,), (1372093011,), (1372093012,), (1372093016,), (1372093034,), (1372093037,), (1372093038,), (1372093041,), (1372093042,), (1372093045,), (1372093213,), (1372093260,), (1372093306,), (1372093354,), (1372093404,), (1372093453,), (1372093987,), (1372093992,), (1372093995,), (1372093998,), (1372094001,), (1372094006,), (1372094208,), (1372094560,), (1372094563,), (1372094564,), (1372094567,), (1372094570,), (1372094572,), (1372094747,), (1372094751,), (1372094763,), (1372094786,), (1372094789,), (1372094792,), (1372094808,), (1372094811,), (1372094814,), (1372094816,), (1372094820,), (1372094824,), (1372094841,), (1372094845,), (1372094847,), (1372094850,), (1372094853,), (1372094855,), (1372094882,), (1372094886,), (1372094889,), (1372094892,), (1372094895,), (1372094897,), (1372094911,), (1372094914,), (1372094916,), (1372094918,), (1372094921,), (1372094922,), (1372094941,), (1372094944,), (1372094946,), (1372094948,), (1372094950,), (1372094952,), (1372094972,), (1372095001,), (1372095004,), (1372095007,), (1372095009,), (1372095011,), (1372095013,), (1372095057,), (1372095060,), (1372095063,), (1372095066,), (1372095068,), (1372095071,), (1372095090,), (1372095093,), (1372095096,), (1372095098,), (1372095099,), (1372095102,), (1372095118,), (1372095122,), (1372095124,), (1372095129,), (1372095133,), (1372095137,), (1372095153,), (1372095157,), (1372095159,), (1372095161,), (1372095164,), (1372095168,), (1372095182,), (1372095186,), (1372095188,), (1372095190,), (1372095192,), (1372095195,), (1372095213,), (1372095216,), (1372095219,), (1372095221,), (1372095224,), (1372095226,), (1372095249,), (1372095252,), (1372095254,), (1372095256,), (1372095257,), (1372095259,), (1372095283,), (1372095286,), (1372095291,), (1372095293,), (1372095295,), (1372095297,), (1372095314,), (1372095353,), (1372095355,), (1372095357,), (1372095360,), (1372095362,), (1372095365,), (1372095410,), (1372095412,), (1372095416,), (1372095419,), (1372095421,), (1372095423,), (1372095442,), (1372095445,), (1372095447,), (1372095451,), (1372095455,), (1372095458,), (1372095475,), (1372095479,), (1372095481,), (1372095484,), (1372095486,), (1372095488,), (1372095506,), (1372095510,), (1372095512,), (1372095514,), (1372095516,), (1372095518,), (1372095534,), (1372095538,), (1372095540,), (1372095544,), (1372095547,), (1372095552,), (1372095577,), (1372095579,), (1372095580,), (1372095582,), (1372095583,), (1372095586,), (1372095608,), (1372095610,), (1372095611,), (1372095613,), (1372095614,), (1372095616,), (1372095642,), (1372095644,), (1372095646,), (1372095648,), (1372095651,), (1372095654,), (1372095667,), (1372095668,), (1372095669,), (1372095670,), (1372095671,), (1372095673,), (1372095694,), (1372095695,), (1372095696,), (1372095698,), (1372095699,), (1372095701,), (1372095753,), (1372095754,), (1372095756,), (1372095758,), (1372095760,), (1372095763,), (1372095795,), (1372095797,), (1372095798,), (1372095800,), (1372095802,), (1372095804,), (1372095826,), (1372095827,), (1372095829,), (1372095830,), (1372095832,), (1372095835,), (1372095860,), (1372095861,), (1372095862,), (1372095863,), (1372095864,), (1372095866,), (1372095891,), (1372095892,), (1372095894,), (1372095896,), (1372095897,), (1372095899,), (1372095924,), (1372095926,), (1372095927,), (1372095929,), (1372095930,), (1372095932,), (1372095950,), (1372095952,), (1372095954,), (1372095956,), (1372095958,), (1372095960,), (1372095987,), (1372096002,), (1372096004,), (1372096019,), (1372096022,), (1372096032,), (1372096055,), (1372096056,), (1372096059,), (1372096060,), (1372096062,), (1372096064,), (1372096079,), (1372096080,), (1372096081,), (1372096082,), (1372096084,), (1372096086,), (1372096109,), (1372096111,), (1372096113,), (1372096114,), (1372096116,), (1372096120,), (1372096140,), (1372096141,), (1372096143,), (1372096144,), (1372096146,), (1372096148,), (1372096167,), (1372096168,), (1372096169,), (1372096170,), (1372096172,), (1372096174,), (1372096193,), (1372096195,), (1372096197,), (1372096198,), (1372096199,), (1372096201,), (1372096225,), (1372096259,), (1372096264,), (1372096268,), (1372096269,), (1372096272,), (1372096274,), (1372096288,), (1372096290,), (1372096291,), (1372096293,), (1372096294,), (1372096297,), (1372096318,), (1372096322,), (1372096324,), (1372096327,), (1372096329,), (1372096331,), (1372096345,), (1372096347,), (1372096349,), (1372096351,), (1372096354,), (1372096357,), (1372096379,), (1372096382,), (1372096384,), (1372096385,), (1372096387,), (1372096390,), (1372096428,), (1372096432,), (1372096436,), (1372096439,), (1372096440,), (1372096442,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'14072025': {'nb_upload': 36, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([24912308]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1372096442, 1372096440, 1372096439, 1372096436, 1372096432, 1372096428, 1372096390, 1372096387, 1372096385, 1372096384, 1372096382, 1372096379] map_info['map_portfolio_photo'] : {24912308: [1372096442, 1372096440, 1372096439, 1372096436, 1372096432, 1372096428, 1372096390, 1372096387, 1372096385, 1372096384, 1372096382, 1372096379, 1372096357, 1372096354, 1372096351, 1372096349, 1372096347, 1372096345, 1372096331, 1372096329, 1372096327, 1372096324, 1372096322, 1372096318, 1372096297, 1372096294, 1372096293, 1372096291, 1372096290, 1372096288, 1372096274, 1372096272, 1372096269, 1372096268, 1372096264, 1372096259]} final : True mtd_id 4302 list_pids : [1372096442, 1372096440, 1372096439, 1372096436, 1372096432, 1372096428, 1372096390, 1372096387, 1372096385, 1372096384, 1372096382, 1372096379] Looping around the photos to save general results len do output : 1 /24912308Didn'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, '3279133') ('4302', '24912308', '1372096442', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096440', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096439', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096436', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096432', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096428', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096390', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096387', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096385', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096384', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096382', None, None, None, None, None, '3279133') ('4302', None, None, None, None, None, None, None, '3279133') ('4302', '24912308', '1372096379', None, None, None, None, None, '3279133') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '24912308', 'None', None, None, None, None, '3279133'), ('4302', '24912308', '1372096442', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096440', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096439', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096436', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096432', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096428', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096390', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096387', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096385', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096384', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096382', None, None, None, None, None, '3279133'), ('4302', '24912308', '1372096379', None, None, None, None, None, '3279133')] time used for this insertion : 0.01630425453186035 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.4289686679840088 time spend to save output : 0.016530513763427734 total time spend for step 5 : 1.4454991817474365 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 (3279133) 2.16user 2.00system 0:09.29elapsed 44%CPU (0avgtext+0avgdata 162852maxresident)k 24inputs+11312outputs (0major+86302minor)pagefaults 0swaps