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 : 2320704 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 (3497984) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (3497984) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25871841 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['3497984'] with mtr_portfolio_ids : ['25871841'] and first list_photo_ids : [] new path : /proc/2320704/ Name: python3 Umask: 0002 State: R (running) Tgid: 2320704 Ngid: 0 Pid: 2320704 PPid: 2320703 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2320704 NSpid: 2320704 NSpgid: 2319222 NSsid: 2319222 VmPeak: 1106964 kB VmSize: 1106964 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 100472 kB VmRSS: 100472 kB RssAnon: 59816 kB RssFile: 40656 kB RssShmem: 0 kB VmData: 865716 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130468 kB VmPTE: 608 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 61 nonvoluntary_ctxt_switches: 88 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2320704', 'Ngid': '0', 'Pid': '2320704', 'PPid': '2320703', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2320704', 'NSpid': '2320704', 'NSpgid': '2319222', 'NSsid': '2319222', 'VmPeak': '1106964 kB', 'VmSize': '1106964 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '100472 kB', 'VmRSS': '100472 kB', 'RssAnon': '59816 kB', 'RssFile': '40656 kB', 'RssShmem': '0 kB', 'VmData': '865716 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130468 kB', 'VmPTE': '608 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '61', 'nonvoluntary_ctxt_switches': '88'} ('datou_batch_current', '2320704', '1106964', '0', '1106964', '865716', '100472', b'', 'marlene', '3497984') 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 (25871841) 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 (3497984 ) ) 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 (25871841) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1376416572, 'portfolio_id': 25871841}, {'photo_id': 1376416280, 'portfolio_id': 25871841}, {'photo_id': 1376416256, 'portfolio_id': 25871841}, {'photo_id': 1376415960, 'portfolio_id': 25871841}, {'photo_id': 1376415935, 'portfolio_id': 25871841}, {'photo_id': 1376415912, 'portfolio_id': 25871841}, {'photo_id': 1376415729, 'portfolio_id': 25871841}, {'photo_id': 1376415698, 'portfolio_id': 25871841}, {'photo_id': 1376415695, 'portfolio_id': 25871841}, {'photo_id': 1376415690, 'portfolio_id': 25871841}, {'photo_id': 1376415669, 'portfolio_id': 25871841}, {'photo_id': 1376415666, 'portfolio_id': 25871841}, {'photo_id': 1376415593, 'portfolio_id': 25871841}, {'photo_id': 1376415590, 'portfolio_id': 25871841}, {'photo_id': 1376415578, 'portfolio_id': 25871841}, {'photo_id': 1376415554, 'portfolio_id': 25871841}, {'photo_id': 1376415309, 'portfolio_id': 25871841}, {'photo_id': 1376415256, 'portfolio_id': 25871841}, {'photo_id': 1376415224, 'portfolio_id': 25871841}, {'photo_id': 1376414847, 'portfolio_id': 25871841}, {'photo_id': 1376414795, 'portfolio_id': 25871841}, {'photo_id': 1376414750, 'portfolio_id': 25871841}, {'photo_id': 1376414719, 'portfolio_id': 25871841}, {'photo_id': 1376414695, 'portfolio_id': 25871841}, {'photo_id': 1376414672, 'portfolio_id': 25871841}, {'photo_id': 1376414498, 'portfolio_id': 25871841}, {'photo_id': 1376414449, 'portfolio_id': 25871841}, {'photo_id': 1376414404, 'portfolio_id': 25871841}, {'photo_id': 1376414361, 'portfolio_id': 25871841}, {'photo_id': 1376414317, 'portfolio_id': 25871841}, {'photo_id': 1376413801, 'portfolio_id': 25871841}, {'photo_id': 1376413771, 'portfolio_id': 25871841}, {'photo_id': 1376413747, 'portfolio_id': 25871841}, {'photo_id': 1376413718, 'portfolio_id': 25871841}, {'photo_id': 1376413693, 'portfolio_id': 25871841}, {'photo_id': 1376413403, 'portfolio_id': 25871841}, {'photo_id': 1376413378, 'portfolio_id': 25871841}, {'photo_id': 1376413354, 'portfolio_id': 25871841}, {'photo_id': 1376413329, 'portfolio_id': 25871841}, {'photo_id': 1376413058, 'portfolio_id': 25871841}, {'photo_id': 1376413034, 'portfolio_id': 25871841}, {'photo_id': 1376413012, 'portfolio_id': 25871841}] map_portfolio_id_photo_id: {25871841: [1376416572, 1376416280, 1376416256, 1376415960, 1376415935, 1376415912, 1376415729, 1376415698, 1376415695, 1376415690, 1376415669, 1376415666, 1376415593, 1376415590, 1376415578, 1376415554, 1376415309, 1376415256, 1376415224, 1376414847, 1376414795, 1376414750, 1376414719, 1376414695, 1376414672, 1376414498, 1376414449, 1376414404, 1376414361, 1376414317, 1376413801, 1376413771, 1376413747, 1376413718, 1376413693, 1376413403, 1376413378, 1376413354, 1376413329, 1376413058, 1376413034, 1376413012]} ##### 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.014283180236816406 #### 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 Aug 11 11:14:57 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 (25871841) 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 : 25871841 get user id for portfolio 25871841 get sub ptf for main ptf 25871841, type 3726 and hashtags ['autre_refus', 'papier', 'Carton_brun', 'cartonnette', 'flou', 'Teint_Dans_La_Masse', 'mal_croppe', 'Carton_gris', 'environnement', 'kraft', 'plastique', 'metal'] 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`=25871841 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','Carton_brun','cartonnette','flou','Teint_Dans_La_Masse','mal_croppe','Carton_gris','environnement','kraft','plastique','metal')) 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`=25871841 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','Carton_brun','cartonnette','flou','Teint_Dans_La_Masse','mal_croppe','Carton_gris','environnement','kraft','plastique','metal')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 25871841, 'sub_port_id': 25871862, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17431745, 'last_updated_at': datetime.datetime(2025, 8, 11, 11, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 11, 11, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 11, 11, 3, 27)}, 'Teint_Dans_La_Masse': {'main_port_id': 25871841, 'sub_port_id': 25871863, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17431746, 'last_updated_at': datetime.datetime(2025, 8, 11, 11, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 11, 11, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 11, 11, 3, 27)}, 'plastique': {'main_port_id': 25871841, 'sub_port_id': 25871864, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17431747, 'last_updated_at': datetime.datetime(2025, 8, 11, 11, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 11, 11, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 11, 11, 3, 27)}, 'Carton_brun': {'main_port_id': 25871841, 'sub_port_id': 25871865, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17431748, 'last_updated_at': datetime.datetime(2025, 8, 11, 11, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 11, 11, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 11, 11, 3, 27)}, 'kraft': {'main_port_id': 25871841, 'sub_port_id': 25871866, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17431749, 'last_updated_at': datetime.datetime(2025, 8, 11, 11, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 11, 11, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 11, 11, 3, 27)}, 'flou': {'main_port_id': 25871841, 'sub_port_id': 25871867, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17431750, 'last_updated_at': datetime.datetime(2025, 8, 11, 11, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 11, 11, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 11, 11, 3, 27)}, 'environnement': {'main_port_id': 25871841, 'sub_port_id': 25871868, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17431751, 'last_updated_at': datetime.datetime(2025, 8, 11, 11, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 11, 11, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 11, 11, 3, 27)}, 'Carton_gris': {'main_port_id': 25871841, 'sub_port_id': 25871869, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17431752, 'last_updated_at': datetime.datetime(2025, 8, 11, 11, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 11, 11, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 11, 11, 3, 27)}, 'cartonnette': {'main_port_id': 25871841, 'sub_port_id': 25871870, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17431753, 'last_updated_at': datetime.datetime(2025, 8, 11, 11, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 11, 11, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 11, 11, 3, 27)}, 'mal_croppe': {'main_port_id': 25871841, 'sub_port_id': 25871871, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17431754, 'last_updated_at': datetime.datetime(2025, 8, 11, 11, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 11, 11, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 11, 11, 3, 27)}, 'papier': {'main_port_id': 25871841, 'sub_port_id': 25871872, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17431755, 'last_updated_at': datetime.datetime(2025, 8, 11, 11, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 11, 11, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 11, 11, 3, 27)}, 'metal': {'main_port_id': 25871841, 'sub_port_id': 25871873, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17431756, 'last_updated_at': datetime.datetime(2025, 8, 11, 11, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 11, 11, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 11, 11, 3, 27)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 25871862 , 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=25871841 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 (25871862) result : ((1376416151,), (1376416153,), (1376416459,), (1376416718,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25871841) result : ((1376413012,), (1376413034,), (1376413058,), (1376413329,), (1376413354,), (1376413378,), (1376413403,), (1376413693,), (1376413718,), (1376413747,), (1376413771,), (1376413801,), (1376414317,), (1376414361,), (1376414404,), (1376414449,), (1376414498,), (1376414672,), (1376414695,), (1376414719,), (1376414750,), (1376414795,), (1376414847,), (1376415224,), (1376415256,), (1376415309,), (1376415554,), (1376415578,), (1376415590,), (1376415593,), (1376415666,), (1376415669,), (1376415690,), (1376415695,), (1376415698,), (1376415729,), (1376415912,), (1376415935,), (1376415960,), (1376416256,), (1376416280,), (1376416572,)) 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 25871863 , 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=25871841 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 (25871863) result : ((1376415897,), (1376416457,), (1376416458,), (1376416717,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25871841) result : ((1376413012,), (1376413034,), (1376413058,), (1376413329,), (1376413354,), (1376413378,), (1376413403,), (1376413693,), (1376413718,), (1376413747,), (1376413771,), (1376413801,), (1376414317,), (1376414361,), (1376414404,), (1376414449,), (1376414498,), (1376414672,), (1376414695,), (1376414719,), (1376414750,), (1376414795,), (1376414847,), (1376415224,), (1376415256,), (1376415309,), (1376415554,), (1376415578,), (1376415590,), (1376415593,), (1376415666,), (1376415669,), (1376415690,), (1376415695,), (1376415698,), (1376415729,), (1376415912,), (1376415935,), (1376415960,), (1376416256,), (1376416280,), (1376416572,)) 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 25871864 , 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=25871841 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 (25871864) result : ((1376416720,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25871841) result : ((1376413012,), (1376413034,), (1376413058,), (1376413329,), (1376413354,), (1376413378,), (1376413403,), (1376413693,), (1376413718,), (1376413747,), (1376413771,), (1376413801,), (1376414317,), (1376414361,), (1376414404,), (1376414449,), (1376414498,), (1376414672,), (1376414695,), (1376414719,), (1376414750,), (1376414795,), (1376414847,), (1376415224,), (1376415256,), (1376415309,), (1376415554,), (1376415578,), (1376415590,), (1376415593,), (1376415666,), (1376415669,), (1376415690,), (1376415695,), (1376415698,), (1376415729,), (1376415912,), (1376415935,), (1376415960,), (1376416256,), (1376416280,), (1376416572,)) 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 25871865 , 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=25871841 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 (25871865) result : ((1376415907,), (1376416462,), (1376416463,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25871841) result : ((1376413012,), (1376413034,), (1376413058,), (1376413329,), (1376413354,), (1376413378,), (1376413403,), (1376413693,), (1376413718,), (1376413747,), (1376413771,), (1376413801,), (1376414317,), (1376414361,), (1376414404,), (1376414449,), (1376414498,), (1376414672,), (1376414695,), (1376414719,), (1376414750,), (1376414795,), (1376414847,), (1376415224,), (1376415256,), (1376415309,), (1376415554,), (1376415578,), (1376415590,), (1376415593,), (1376415666,), (1376415669,), (1376415690,), (1376415695,), (1376415698,), (1376415729,), (1376415912,), (1376415935,), (1376415960,), (1376416256,), (1376416280,), (1376416572,)) 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 25871866 , 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=25871841 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 (25871866) result : ((1376415909,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25871841) result : ((1376413012,), (1376413034,), (1376413058,), (1376413329,), (1376413354,), (1376413378,), (1376413403,), (1376413693,), (1376413718,), (1376413747,), (1376413771,), (1376413801,), (1376414317,), (1376414361,), (1376414404,), (1376414449,), (1376414498,), (1376414672,), (1376414695,), (1376414719,), (1376414750,), (1376414795,), (1376414847,), (1376415224,), (1376415256,), (1376415309,), (1376415554,), (1376415578,), (1376415590,), (1376415593,), (1376415666,), (1376415669,), (1376415690,), (1376415695,), (1376415698,), (1376415729,), (1376415912,), (1376415935,), (1376415960,), (1376416256,), (1376416280,), (1376416572,)) 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 25871867 , 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=25871841 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 (25871867) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25871841) result : ((1376413012,), (1376413034,), (1376413058,), (1376413329,), (1376413354,), (1376413378,), (1376413403,), (1376413693,), (1376413718,), (1376413747,), (1376413771,), (1376413801,), (1376414317,), (1376414361,), (1376414404,), (1376414449,), (1376414498,), (1376414672,), (1376414695,), (1376414719,), (1376414750,), (1376414795,), (1376414847,), (1376415224,), (1376415256,), (1376415309,), (1376415554,), (1376415578,), (1376415590,), (1376415593,), (1376415666,), (1376415669,), (1376415690,), (1376415695,), (1376415698,), (1376415729,), (1376415912,), (1376415935,), (1376415960,), (1376416256,), (1376416280,), (1376416572,)) 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 25871868 , 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=25871841 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 (25871868) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25871841) result : ((1376413012,), (1376413034,), (1376413058,), (1376413329,), (1376413354,), (1376413378,), (1376413403,), (1376413693,), (1376413718,), (1376413747,), (1376413771,), (1376413801,), (1376414317,), (1376414361,), (1376414404,), (1376414449,), (1376414498,), (1376414672,), (1376414695,), (1376414719,), (1376414750,), (1376414795,), (1376414847,), (1376415224,), (1376415256,), (1376415309,), (1376415554,), (1376415578,), (1376415590,), (1376415593,), (1376415666,), (1376415669,), (1376415690,), (1376415695,), (1376415698,), (1376415729,), (1376415912,), (1376415935,), (1376415960,), (1376416256,), (1376416280,), (1376416572,)) 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 25871869 , 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=25871841 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 (25871869) result : ((1376415904,), (1376416156,), (1376416460,), (1376416461,), (1376416719,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25871841) result : ((1376413012,), (1376413034,), (1376413058,), (1376413329,), (1376413354,), (1376413378,), (1376413403,), (1376413693,), (1376413718,), (1376413747,), (1376413771,), (1376413801,), (1376414317,), (1376414361,), (1376414404,), (1376414449,), (1376414498,), (1376414672,), (1376414695,), (1376414719,), (1376414750,), (1376414795,), (1376414847,), (1376415224,), (1376415256,), (1376415309,), (1376415554,), (1376415578,), (1376415590,), (1376415593,), (1376415666,), (1376415669,), (1376415690,), (1376415695,), (1376415698,), (1376415729,), (1376415912,), (1376415935,), (1376415960,), (1376416256,), (1376416280,), (1376416572,)) 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 25871870 , 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=25871841 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 (25871870) result : ((1376415905,), (1376415906,), (1376416158,), (1376416159,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25871841) result : ((1376413012,), (1376413034,), (1376413058,), (1376413329,), (1376413354,), (1376413378,), (1376413403,), (1376413693,), (1376413718,), (1376413747,), (1376413771,), (1376413801,), (1376414317,), (1376414361,), (1376414404,), (1376414449,), (1376414498,), (1376414672,), (1376414695,), (1376414719,), (1376414750,), (1376414795,), (1376414847,), (1376415224,), (1376415256,), (1376415309,), (1376415554,), (1376415578,), (1376415590,), (1376415593,), (1376415666,), (1376415669,), (1376415690,), (1376415695,), (1376415698,), (1376415729,), (1376415912,), (1376415935,), (1376415960,), (1376416256,), (1376416280,), (1376416572,)) 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 25871871 , 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=25871841 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 (25871871) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25871841) result : ((1376413012,), (1376413034,), (1376413058,), (1376413329,), (1376413354,), (1376413378,), (1376413403,), (1376413693,), (1376413718,), (1376413747,), (1376413771,), (1376413801,), (1376414317,), (1376414361,), (1376414404,), (1376414449,), (1376414498,), (1376414672,), (1376414695,), (1376414719,), (1376414750,), (1376414795,), (1376414847,), (1376415224,), (1376415256,), (1376415309,), (1376415554,), (1376415578,), (1376415590,), (1376415593,), (1376415666,), (1376415669,), (1376415690,), (1376415695,), (1376415698,), (1376415729,), (1376415912,), (1376415935,), (1376415960,), (1376416256,), (1376416280,), (1376416572,)) 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 25871872 , 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=25871841 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 (25871872) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25871841) result : ((1376413012,), (1376413034,), (1376413058,), (1376413329,), (1376413354,), (1376413378,), (1376413403,), (1376413693,), (1376413718,), (1376413747,), (1376413771,), (1376413801,), (1376414317,), (1376414361,), (1376414404,), (1376414449,), (1376414498,), (1376414672,), (1376414695,), (1376414719,), (1376414750,), (1376414795,), (1376414847,), (1376415224,), (1376415256,), (1376415309,), (1376415554,), (1376415578,), (1376415590,), (1376415593,), (1376415666,), (1376415669,), (1376415690,), (1376415695,), (1376415698,), (1376415729,), (1376415912,), (1376415935,), (1376415960,), (1376416256,), (1376416280,), (1376416572,)) 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 25871873 , 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=25871841 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 (25871873) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (25871841) result : ((1376413012,), (1376413034,), (1376413058,), (1376413329,), (1376413354,), (1376413378,), (1376413403,), (1376413693,), (1376413718,), (1376413747,), (1376413771,), (1376413801,), (1376414317,), (1376414361,), (1376414404,), (1376414449,), (1376414498,), (1376414672,), (1376414695,), (1376414719,), (1376414750,), (1376414795,), (1376414847,), (1376415224,), (1376415256,), (1376415309,), (1376415554,), (1376415578,), (1376415590,), (1376415593,), (1376415666,), (1376415669,), (1376415690,), (1376415695,), (1376415698,), (1376415729,), (1376415912,), (1376415935,), (1376415960,), (1376416256,), (1376416280,), (1376416572,)) 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`=25871841 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','Carton_brun','cartonnette','flou','Teint_Dans_La_Masse','mal_croppe','Carton_gris','environnement','kraft','plastique','metal')) 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`=25871841 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','papier','Carton_brun','cartonnette','flou','Teint_Dans_La_Masse','mal_croppe','Carton_gris','environnement','kraft','plastique','metal')) AND mptpi.`min_score`=0.5 To do returned map {'autre_refus': {'main_port_id': 25871841, 'sub_port_id': 25871875, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17431757, 'last_updated_at': datetime.datetime(2025, 8, 11, 11, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 11, 11, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 11, 11, 3, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 25871841, 'sub_port_id': 25871876, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17431758, 'last_updated_at': datetime.datetime(2025, 8, 11, 11, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 11, 11, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 11, 11, 3, 28)}, 'plastique': {'main_port_id': 25871841, 'sub_port_id': 25871877, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17431759, 'last_updated_at': datetime.datetime(2025, 8, 11, 11, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 11, 11, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 11, 11, 3, 28)}, 'Carton_brun': {'main_port_id': 25871841, 'sub_port_id': 25871878, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17431760, 'last_updated_at': datetime.datetime(2025, 8, 11, 11, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 11, 11, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 11, 11, 3, 28)}, 'kraft': {'main_port_id': 25871841, 'sub_port_id': 25871879, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17431761, 'last_updated_at': datetime.datetime(2025, 8, 11, 11, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 11, 11, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 11, 11, 3, 28)}, 'flou': {'main_port_id': 25871841, 'sub_port_id': 25871880, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17431762, 'last_updated_at': datetime.datetime(2025, 8, 11, 11, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 11, 11, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 11, 11, 3, 28)}, 'environnement': {'main_port_id': 25871841, 'sub_port_id': 25871881, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17431763, 'last_updated_at': datetime.datetime(2025, 8, 11, 11, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 11, 11, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 11, 11, 3, 28)}, 'Carton_gris': {'main_port_id': 25871841, 'sub_port_id': 25871882, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17431764, 'last_updated_at': datetime.datetime(2025, 8, 11, 11, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 11, 11, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 11, 11, 3, 28)}, 'cartonnette': {'main_port_id': 25871841, 'sub_port_id': 25871883, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17431765, 'last_updated_at': datetime.datetime(2025, 8, 11, 11, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 11, 11, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 11, 11, 3, 28)}, 'mal_croppe': {'main_port_id': 25871841, 'sub_port_id': 25871884, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17431766, 'last_updated_at': datetime.datetime(2025, 8, 11, 11, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 11, 11, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 11, 11, 3, 28)}, 'papier': {'main_port_id': 25871841, 'sub_port_id': 25871885, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17431767, 'last_updated_at': datetime.datetime(2025, 8, 11, 11, 3, 28), 'last_updated_at_desc': datetime.datetime(2025, 8, 11, 11, 3, 28), 'last_updated_at_asc': datetime.datetime(2025, 8, 11, 11, 3, 28)}, 'metal': {'main_port_id': 25871841, 'sub_port_id': 25871886, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 17431768, 'last_updated_at': datetime.datetime(2025, 8, 11, 11, 12, 59), 'last_updated_at_desc': datetime.datetime(2025, 8, 11, 11, 12, 59), 'last_updated_at_asc': datetime.datetime(2025, 8, 11, 11, 3, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25871875,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25871862 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25871876,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25871863 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25871877,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25871864 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25871878,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25871865 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25871879,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25871866 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25871880,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25871867 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25871881,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25871868 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25871882,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25871869 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25871883,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25871870 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25871884,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25871871 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25871885,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25871872 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 25871886,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 25871873 lien utilise dans velours : https://www.fotonower.com/velours/25871875,25871876,25871877,25871878,25871879,25871880,25871881,25871882,25871883,25871884,25871885,25871886?tags=autre_refus,Teint_Dans_La_Masse,plastique,Carton_brun,kraft,flou,environnement,Carton_gris,cartonnette,mal_croppe,papier,metal After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25871841]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1376416572] map_info['map_portfolio_photo'] : {25871841: [1376416572, 1376416280, 1376416256, 1376415960, 1376415935, 1376415912, 1376415729, 1376415698, 1376415695, 1376415690, 1376415669, 1376415666, 1376415593, 1376415590, 1376415578, 1376415554, 1376415309, 1376415256, 1376415224, 1376414847, 1376414795, 1376414750, 1376414719, 1376414695, 1376414672, 1376414498, 1376414449, 1376414404, 1376414361, 1376414317, 1376413801, 1376413771, 1376413747, 1376413718, 1376413693, 1376413403, 1376413378, 1376413354, 1376413329, 1376413058, 1376413034, 1376413012]} final : False mtd_id 4302 list_pids : [1376416572] Looping around the photos to save general results len do output : 1 /25871841. 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, '3497984') ('4302', '25871841', '1376416572', None, None, None, None, None, '3497984') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '25871841', "{'autre_refus': 25871862, 'Teint_Dans_La_Masse': 25871863, 'plastique': 25871864, 'Carton_brun': 25871865, 'kraft': 25871866, 'flou': 25871867, 'environnement': 25871868, 'Carton_gris': 25871869, 'cartonnette': 25871870, 'mal_croppe': 25871871, 'papier': 25871872, 'metal': 25871873}", None, None, None, None, '3497984'), ('4302', '25871841', '1376416572', None, None, None, None, None, '3497984')] time used for this insertion : 0.014434099197387695 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.5151774883270264 time spend to save output : 0.014637231826782227 total time spend for step 1 : 1.5298147201538086 step2:final Mon Aug 11 11:14:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec 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 (25871841) 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 25871841 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1376413058,1376413034,1376413012,1376413403,1376413378,1376413354,1376413329,1376413801,1376413771,1376413747,1376413718,1376413693,1376414498,1376414449,1376414404,1376414361,1376414317,1376414847,1376414795,1376414750,1376414719,1376414695,1376414672,1376415309,1376415256,1376415224,1376415593,1376415590,1376415578,1376415554,1376415729,1376415698,1376415695,1376415690,1376415669,1376415666,1376415960,1376415935,1376415912,1376416280,1376416256,1376416572); 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([25871841]) Inside saveOutput : final : False verbose : True original output for save of step final : {1376416572: ('0.03336607753890567',)} new output for save of step final : {1376416572: ('0.03336607753890567',)} [1376416572] map_info['map_portfolio_photo'] : {25871841: [1376416572, 1376416280, 1376416256, 1376415960, 1376415935, 1376415912, 1376415729, 1376415698, 1376415695, 1376415690, 1376415669, 1376415666, 1376415593, 1376415590, 1376415578, 1376415554, 1376415309, 1376415256, 1376415224, 1376414847, 1376414795, 1376414750, 1376414719, 1376414695, 1376414672, 1376414498, 1376414449, 1376414404, 1376414361, 1376414317, 1376413801, 1376413771, 1376413747, 1376413718, 1376413693, 1376413403, 1376413378, 1376413354, 1376413329, 1376413058, 1376413034, 1376413012]} final : False mtd_id 4302 list_pids : [1376416572] Looping around the photos to save general results len do output : 1 /1376416572.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, '3497984') ('4302', '25871841', '1376416572', None, None, None, None, None, '3497984') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 3 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25871841', '1376416572', '0.03336607753890567', None, None, None, None, '3497984')] time used for this insertion : 0.013102054595947266 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06398200988769531 time spend to save output : 0.013264656066894531 total time spend for step 2 : 0.07724666595458984 step3:velours_tree Mon Aug 11 11:14: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 : {25871841: [{'autre_refus': 25871862, 'Teint_Dans_La_Masse': 25871863, 'plastique': 25871864, 'Carton_brun': 25871865, 'kraft': 25871866, 'flou': 25871867, 'environnement': 25871868, 'Carton_gris': 25871869, 'cartonnette': 25871870, 'mal_croppe': 25871871, 'papier': 25871872, 'metal': 25871873}]} input_args_next_step : {25871841: ()} output_args : {25871841: [{'autre_refus': 25871862, 'Teint_Dans_La_Masse': 25871863, 'plastique': 25871864, 'Carton_brun': 25871865, 'kraft': 25871866, 'flou': 25871867, 'environnement': 25871868, 'Carton_gris': 25871869, 'cartonnette': 25871870, 'mal_croppe': 25871871, 'papier': 25871872, 'metal': 25871873}]} args : 25871841 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 : ({'autre_refus': 25871862, 'Teint_Dans_La_Masse': 25871863, 'plastique': 25871864, 'Carton_brun': 25871865, 'kraft': 25871866, 'flou': 25871867, 'environnement': 25871868, 'Carton_gris': 25871869, 'cartonnette': 25871870, 'mal_croppe': 25871871, 'papier': 25871872, 'metal': 25871873},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25871841) 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([25871841]) 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.2723524570465088 time spend to save output : 5.030632019042969e-05 total time spend for step 3 : 0.2724027633666992 step4:send_mail_cod Mon Aug 11 11:14: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 : {1376416572: ('0.03336607753890567',)} input_args_next_step : {1376416572: ()} output_args : {1376416572: ('0.03336607753890567',)} args : 1376416572 depend.output_id : 0 complete output_args for input 3 : {25871841: [{'autre_refus': 25871862, 'Teint_Dans_La_Masse': 25871863, 'plastique': 25871864, 'Carton_brun': 25871865, 'kraft': 25871866, 'flou': 25871867, 'environnement': 25871868, 'Carton_gris': 25871869, 'cartonnette': 25871870, 'mal_croppe': 25871871, 'papier': 25871872, 'metal': 25871873}]} input_args_next_step : {1376416572: ('0.03336607753890567',), 25871841: ()} output_args : {25871841: [{'autre_refus': 25871862, 'Teint_Dans_La_Masse': 25871863, 'plastique': 25871864, 'Carton_brun': 25871865, 'kraft': 25871866, 'flou': 25871867, 'environnement': 25871868, 'Carton_gris': 25871869, 'cartonnette': 25871870, 'mal_croppe': 25871871, 'papier': 25871872, 'metal': 25871873}]} args : 25871841 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :2, first value : ('0.03336607753890567',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25871841) 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 (1376416572) Found this number of photos: 1 ##### Call download_photos : nb_thread : 5 begin to download photo : 1376416572 download finish for photo 1376416572 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos length of list_filenames : 1 ; length of list_pids : 1 ; length of list_args : 1 results_Auto_P25871841_11-08-2025_11_14_59.pdf 25871862 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=25871862 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1376416151: '1754903368_1484199_1376413747_ee415fa8d68b812daf20dc9e7c47a678_rle_crop_3910906104_0.png', 1376416153: '1754903368_1484199_1376413718_fdb30cb0664b3ff683a79692d0eb6b65_rle_crop_3910906112_0.png', 1376416459: '1754903487_1489513_1376413378_cc5b551119497051301dfba193cda740_rle_crop_3910908596_0.png', 1376416718: '1754903665_1494036_1376415935_0a602bf1e8ea494e653f9e9cd9748737_rle_crop_3910910294_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/11/c6f08102212991c37bd51b4b513418e9_68355952.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/11/bbaeae4560c8a42eb8eb696648ef14c0_30225838.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/11/6b06ada8badeec0b5627aa54720d602a_25567110.png change filename to text .imagette258718621754903699/ imagette258718621754903699/1754903368_1484199_1376413747_ee415fa8d68b812daf20dc9e7c47a678_rle_crop_3910906104_0.png.png imagette258718621754903699/1754903665_1494036_1376415935_0a602bf1e8ea494e653f9e9cd9748737_rle_crop_3910910294_0.png.png imagette258718621754903699/1754903368_1484199_1376413718_fdb30cb0664b3ff683a79692d0eb6b65_rle_crop_3910906112_0.png.png imagette258718621754903699/1754903487_1489513_1376413378_cc5b551119497051301dfba193cda740_rle_crop_3910908596_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/11/a31af8fe62415c59a1a238f5f4f496a1_6518169.png imagette258718621754903699 25871864 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=25871864 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1376416720: '1754903665_1494036_1376415935_0a602bf1e8ea494e653f9e9cd9748737_rle_crop_3910910305_0.png'} change filename to text .imagette258718641754903699/ imagette258718641754903699/1754903665_1494036_1376415935_0a602bf1e8ea494e653f9e9cd9748737_rle_crop_3910910305_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/11/6cae1c5a031f056a1cb2928e2e188673_65827968.png imagette258718641754903699 25871866 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=25871866 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1376415909: '1754903306_1482271_1376414361_baaf28e4db030b4a0344baa99bc49923_rle_crop_3910905927_0.png'} change filename to text .imagette258718661754903699/ imagette258718661754903699/1754903306_1482271_1376414361_baaf28e4db030b4a0344baa99bc49923_rle_crop_3910905927_0.png.png imagette258718671754903699/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/11/30ccd4dcdd0107d82ed7038450137b2b_71984068.png imagette258718661754903699 25871867 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=25871867 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette258718671754903699 25871870 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=25871870 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1376415905: '1754903306_1482271_1376414404_028fa4d5f215d59d1b3c3ce83fe02971_rle_crop_3910905914_0.png', 1376415906: '1754903306_1482271_1376414361_baaf28e4db030b4a0344baa99bc49923_rle_crop_3910905928_0.png', 1376416158: '1754903368_1484199_1376413771_7278be7e8b3a8827e8890c8ca546bc86_rle_crop_3910906092_0.png', 1376416159: '1754903368_1484199_1376413771_7278be7e8b3a8827e8890c8ca546bc86_rle_crop_3910906093_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/11/ac724d26bc91b70b2dfae6d5e1fe3cb8_80774317.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/11/fe7a3124c224f76ee3bec059b2ce89e3_23816616.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/11/6aefe1a821b7f6fc539791efe5a4f365_16598095.png change filename to text .imagette258718701754903699/ imagette258718701754903699/1754903368_1484199_1376413771_7278be7e8b3a8827e8890c8ca546bc86_rle_crop_3910906093_0.png.png imagette258718701754903699/1754903306_1482271_1376414404_028fa4d5f215d59d1b3c3ce83fe02971_rle_crop_3910905914_0.png.png imagette258718701754903699/1754903306_1482271_1376414361_baaf28e4db030b4a0344baa99bc49923_rle_crop_3910905928_0.png.png imagette258718701754903699/1754903368_1484199_1376413771_7278be7e8b3a8827e8890c8ca546bc86_rle_crop_3910906092_0.png.png imagette258718711754903700/ imagette258718731754903700/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/11/af7aaf708936a00649d2e1938c49aecb_34183360.png imagette258718701754903699 25871871 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=25871871 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette258718711754903700 25871873 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=25871873 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette258718731754903700 25871863 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=25871863 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1376415897: '1754903306_1482271_1376414361_baaf28e4db030b4a0344baa99bc49923_rle_crop_3910905929_0.png', 1376416457: '1754903487_1489513_1376413801_ad9ab622339e17a4c07451eb6edb61e1_rle_crop_3910908536_0.png', 1376416458: '1754903487_1489513_1376413378_cc5b551119497051301dfba193cda740_rle_crop_3910908599_0.png', 1376416717: '1754903665_1494036_1376415912_5f755caa2af689e55c5827fb33475e53_rle_crop_3910910312_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/11/e2b251988858cb5d3805f94dfbe88ce9_26941487.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/11/8beb8634583a4175675e59558684486e_37157303.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/11/84fba1f1c8fb962fb1c00cc7fe7cbeb2_50210337.png change filename to text .imagette258718631754903700/ imagette258718631754903700/1754903487_1489513_1376413801_ad9ab622339e17a4c07451eb6edb61e1_rle_crop_3910908536_0.png.png imagette258718631754903700/1754903306_1482271_1376414361_baaf28e4db030b4a0344baa99bc49923_rle_crop_3910905929_0.png.png imagette258718631754903700/1754903665_1494036_1376415912_5f755caa2af689e55c5827fb33475e53_rle_crop_3910910312_0.png.png imagette258718631754903700/1754903487_1489513_1376413378_cc5b551119497051301dfba193cda740_rle_crop_3910908599_0.png.png wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/11/d0c6030a2ea506603c6e5b9f1d6c6b43_10866006.png imagette258718631754903700 25871865 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=25871865 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1376415907: '1754903306_1482271_1376414317_c1ae71e8d8e467b647942d822b91c296_rle_crop_3910905958_0.png', 1376416462: '1754903487_1489513_1376413378_cc5b551119497051301dfba193cda740_rle_crop_3910908597_0.png', 1376416463: '1754903487_1489513_1376413354_cd4d08be99cd34d8b8d5028bb048528a_rle_crop_3910908609_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/11/72f9cacdd873b2b161410dc78e972038_1880907.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/11/00469fa03ed6d7d380b82b90f194fd5c_40112085.png change filename to text .imagette258718651754903700/ imagette258718651754903700/1754903487_1489513_1376413354_cd4d08be99cd34d8b8d5028bb048528a_rle_crop_3910908609_0.png.png imagette258718651754903700/1754903306_1482271_1376414317_c1ae71e8d8e467b647942d822b91c296_rle_crop_3910905958_0.png.png imagette258718651754903700/1754903487_1489513_1376413378_cc5b551119497051301dfba193cda740_rle_crop_3910908597_0.png.png wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/11/9f9cd2b96089cac540949e6bfb9eb21e_17718220.png imagette258718651754903700 25871869 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=25871869 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1376415904: '1754903306_1482271_1376414449_f6b6e88389b052ec326ce47a6620b76a_rle_crop_3910905910_0.png', 1376416156: '1754903368_1484199_1376413747_ee415fa8d68b812daf20dc9e7c47a678_rle_crop_3910906101_0.png', 1376416460: '1754903487_1489513_1376413801_ad9ab622339e17a4c07451eb6edb61e1_rle_crop_3910908529_0.png', 1376416461: '1754903487_1489513_1376413329_3f156957b47366345ea2e878bd81d8c6_rle_crop_3910908618_0.png', 1376416719: '1754903665_1494036_1376415935_0a602bf1e8ea494e653f9e9cd9748737_rle_crop_3910910298_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/11/304e6bcae487e2ea1a925e769a234a7e_41191607.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/11/2b13bbc0158a492f69817c96000a27c7_23550369.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/11/a46b91f8ef6d122fd41c3fd04be0dc09_53796456.png change filename to text .wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/11/e35091cff6bd99afd59d638fdaa3d3b7_7061743.png change filename to text .imagette258718691754903700/ imagette258718691754903700/1754903487_1489513_1376413801_ad9ab622339e17a4c07451eb6edb61e1_rle_crop_3910908529_0.png.png imagette258718691754903700/1754903368_1484199_1376413747_ee415fa8d68b812daf20dc9e7c47a678_rle_crop_3910906101_0.png.png imagette258718691754903700/1754903487_1489513_1376413329_3f156957b47366345ea2e878bd81d8c6_rle_crop_3910908618_0.png.png imagette258718691754903700/1754903665_1494036_1376415935_0a602bf1e8ea494e653f9e9cd9748737_rle_crop_3910910298_0.png.png imagette258718691754903700/1754903306_1482271_1376414449_f6b6e88389b052ec326ce47a6620b76a_rle_crop_3910905910_0.png.png wget -O 5.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/11/b226f0c744335c0ce5ba9d4b72f7e38a_49347196.png imagette258718691754903700 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=25871841 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://www.fotonower.com/velours/25871875,25871876,25871877,25871878,25871879,25871880,25871881,25871882,25871883,25871884,25871885,25871886?tags=autre_refus,Teint_Dans_La_Masse,plastique,Carton_brun,kraft,flou,environnement,Carton_gris,cartonnette,mal_croppe,papier,metal your option no_mail is active, we will not send the real mail to your client args[1376416572] : ('0.03336607753890567',) no score found for photo 1376416572 We are sending mail with results at report@fotonower.com refus_total : 0.03336607753890567 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=25871841 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_P25871841_11-08-2025_11_14_59.pdf results_Auto_P25871841_11-08-2025_11_14_59.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25871841_11-08-2025_11_14_59.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','25871841','results_Auto_P25871841_11-08-2025_11_14_59.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25871841_11-08-2025_11_14_59.pdf','pdf','','0.09','0.03336607753890567') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25871841]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1376416572] map_info['map_portfolio_photo'] : {25871841: [1376416572, 1376416280, 1376416256, 1376415960, 1376415935, 1376415912, 1376415729, 1376415698, 1376415695, 1376415690, 1376415669, 1376415666, 1376415593, 1376415590, 1376415578, 1376415554, 1376415309, 1376415256, 1376415224, 1376414847, 1376414795, 1376414750, 1376414719, 1376414695, 1376414672, 1376414498, 1376414449, 1376414404, 1376414361, 1376414317, 1376413801, 1376413771, 1376413747, 1376413718, 1376413693, 1376413403, 1376413378, 1376413354, 1376413329, 1376413058, 1376413034, 1376413012]} final : False mtd_id 4302 list_pids : [1376416572] 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, '3497984') ('4302', '25871841', '1376416572', None, None, None, None, None, '3497984') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 1 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '25871841', '1376416572', None, None, None, None, None, '3497984')] time used for this insertion : 0.011126041412353516 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.230186939239502 time spend to save output : 0.011271953582763672 total time spend for step 4 : 2.2414588928222656 step5:split_time_score Mon Aug 11 11:15:01 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['25871841'] 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 : [('25871841',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (25871841) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1376416572: {'path': 'temp/1754903699_2320704_1376416572_c9c0de53fc9af555d669236f60e6facb.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 = 25871841; (('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 = 25871841 group by h (('11', 42),) 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=25871841 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 (25871841) 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 (25871841) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 11082025 25871841 Nombre de photos uploadées : 42 / 23040 (0%) 11082025 25871841 Nombre de photos taguées (types de déchets): 0 / 42 (0%) 11082025 25871841 Nombre de photos taguées (volume) : 0 / 42 (0%) [{'photo_id': 1376413058, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/11/90ad5d563af639cfea9ec17d5c3514dc.jpg', 'username': None, 'uploaded_at': 1754902868, 'text': 'image_11082025_11_00_14_10195.jpg'}, {'photo_id': 1376413034, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/11/21c9e16d7a67f9e87c23e4dce5be0b1a.jpg', 'username': None, 'uploaded_at': 1754902868, 'text': 'image_11082025_11_00_24_10139.jpg'}, {'photo_id': 1376413012, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/11/1a0a9076e9879c58e6d955fc4e89bbbe.jpg', 'username': None, 'uploaded_at': 1754902868, 'text': 'image_11082025_11_00_34_10142.jpg'}, {'photo_id': 1376413403, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/8/11/72bd4c31372a25da6547b2f7fa732e18.jpg', 'username': None, 'uploaded_at': 1754902927, 'text': 'image_11082025_11_00_44_10142.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.6689300537109375e-06 elapsed_time : order_list_meta_photo_and_scores 5.4836273193359375e-06 ?????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0026373863220214844 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 25871841, '2025-08-11' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! SELECT id FROM MTRPhoto.dashboard_entry_day where dashboard_place_id = 10 and date = '2025-08-11' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2097453,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.19786620140075684 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= 2097453 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2097453, 'dashboard_run_id': 2106799, 'mtr_portfolio_id': 25861976, 'dashboard_result_id': 13850574, '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_P25861976_11-08-2025_05_16_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25861977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25861978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25861979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25861980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25861981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25861982, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25861983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25861984, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25861985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25861986, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25861987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25861988, 'pht': 3726}}"}, {'dashboat_entry_day': 2097453, 'dashboard_run_id': 2106799, 'mtr_portfolio_id': 25862084, 'dashboard_result_id': 13850575, '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_P25862084_11-08-2025_05_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25862089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25862090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25862091, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25862092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25862093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25862094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25862095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25862096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25862097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25862098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25862099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25862100, 'pht': 3726}}"}, {'dashboat_entry_day': 2097453, 'dashboard_run_id': 2106799, 'mtr_portfolio_id': 25862313, 'dashboard_result_id': 13850576, '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_P25862313_11-08-2025_05_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25862321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25862322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25862323, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25862324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25862325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25862326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25862327, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25862328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25862329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25862330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25862331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25862332, 'pht': 3726}}"}, {'dashboat_entry_day': 2097453, 'dashboard_run_id': 2106799, 'mtr_portfolio_id': 25862578, 'dashboard_result_id': 13850577, '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_P25862578_11-08-2025_06_02_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25862589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25862590, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25862591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25862592, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25862593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25862594, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25862595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25862596, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25862597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25862598, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25862599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25862600, 'pht': 3726}}"}, {'dashboat_entry_day': 2097453, 'dashboard_run_id': 2106799, 'mtr_portfolio_id': 25862901, 'dashboard_result_id': 13850578, '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_P25862901_11-08-2025_06_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25862949, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25862950, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25862951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25862952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25862953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25862954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25862955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25862956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25862957, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25862958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25862959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25862960, 'pht': 3726}}"}, {'dashboat_entry_day': 2097453, 'dashboard_run_id': 2106799, 'mtr_portfolio_id': 25863397, 'dashboard_result_id': 13850579, '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_P25863397_11-08-2025_06_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25863406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25863407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25863408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25863409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25863410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25863411, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25863412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25863413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25863414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25863415, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25863416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25863417, 'pht': 3726}}"}, {'dashboat_entry_day': 2097453, 'dashboard_run_id': 2106799, 'mtr_portfolio_id': 25863832, 'dashboard_result_id': 13850580, '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_P25863832_11-08-2025_06_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25863850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25863851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25863852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25863853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25863854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25863855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25863856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25863857, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25863858, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25863859, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25863860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25863861, 'pht': 3726}}"}, {'dashboat_entry_day': 2097453, 'dashboard_run_id': 2106799, 'mtr_portfolio_id': 25864365, 'dashboard_result_id': 13850581, '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_P25864365_11-08-2025_07_05_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25864383, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25864384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25864385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25864386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25864387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25864388, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25864389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25864390, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25864391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25864392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25864393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25864394, 'pht': 3726}}"}, {'dashboat_entry_day': 2097453, 'dashboard_run_id': 2106799, 'mtr_portfolio_id': 25864819, 'dashboard_result_id': 13850582, '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_P25864819_11-08-2025_07_18_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25864862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25864863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25864864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25864865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25864866, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25864867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25864868, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25864869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25864870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25864871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25864872, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25864873, 'pht': 3726}}"}, {'dashboat_entry_day': 2097453, 'dashboard_run_id': 2106799, 'mtr_portfolio_id': 25865316, 'dashboard_result_id': 13850583, '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_P25865316_11-08-2025_07_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25865326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25865327, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25865329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25865330, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25865331, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25865332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25865333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25865334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25865335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25865336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25865337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25865338, 'pht': 3726}}"}, {'dashboat_entry_day': 2097453, 'dashboard_run_id': 2106799, 'mtr_portfolio_id': 25865676, 'dashboard_result_id': 13850584, '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_P25865676_11-08-2025_07_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25865711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25865712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25865713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25865714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25865715, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25865716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25865717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25865718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25865719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25865720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25865721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25865723, 'pht': 3726}}"}, {'dashboat_entry_day': 2097453, 'dashboard_run_id': 2106799, 'mtr_portfolio_id': 25866107, 'dashboard_result_id': 13850585, '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_P25866107_11-08-2025_08_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25866140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25866141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25866142, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25866143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25866144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25866145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25866146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25866147, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25866148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25866149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25866150, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25866151, 'pht': 3726}}"}, {'dashboat_entry_day': 2097453, 'dashboard_run_id': 2106799, 'mtr_portfolio_id': 25866527, 'dashboard_result_id': 13850586, '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_P25866527_11-08-2025_08_20_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25866537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25866538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25866539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25866540, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25866541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25866542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25866543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25866544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25866545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25866546, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25866547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25866548, 'pht': 3726}}"}, {'dashboat_entry_day': 2097453, 'dashboard_run_id': 2106799, 'mtr_portfolio_id': 25867258, 'dashboard_result_id': 13850587, '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_P25867258_11-08-2025_08_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25867274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25867275, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25867276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25867277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25867278, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25867279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25867280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25867281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25867282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25867283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25867284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25867286, 'pht': 3726}}"}, {'dashboat_entry_day': 2097453, 'dashboard_run_id': 2106799, 'mtr_portfolio_id': 25867642, 'dashboard_result_id': 13850588, '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_P25867642_11-08-2025_08_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25867671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25867672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25867673, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25867674, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25867675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25867676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25867677, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25867678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25867679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25867680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25867681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25867682, 'pht': 3726}}"}, {'dashboat_entry_day': 2097453, 'dashboard_run_id': 2106799, 'mtr_portfolio_id': 25868093, 'dashboard_result_id': 13850589, '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_P25868093_11-08-2025_09_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25868127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25868128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25868129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25868130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25868131, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25868132, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25868133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25868134, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25868135, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25868136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25868137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25868138, 'pht': 3726}}"}, {'dashboat_entry_day': 2097453, 'dashboard_run_id': 2106799, 'mtr_portfolio_id': 25869425, 'dashboard_result_id': 13850590, '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_P25869425_11-08-2025_09_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25869433, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25869434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25869435, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25869436, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25869437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25869438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25869439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25869440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25869441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25869442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25869443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25869444, 'pht': 3726}}"}, {'dashboat_entry_day': 2097453, 'dashboard_run_id': 2106799, 'mtr_portfolio_id': 25869673, 'dashboard_result_id': 13850591, '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_P25869673_11-08-2025_09_58_31.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25869699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25869700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25869701, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25869702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25869703, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25869704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25869705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25869706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25869707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25869708, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25869709, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25869710, 'pht': 3726}}"}, {'dashboat_entry_day': 2097453, 'dashboard_run_id': 2106799, 'mtr_portfolio_id': 25870454, 'dashboard_result_id': 13850592, '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_P25870454_11-08-2025_10_32_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25870473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25870474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25870475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25870476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25870477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25870478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25870479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25870480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25870481, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25870482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25870483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25870484, 'pht': 3726}}"}, {'dashboat_entry_day': 2097453, 'dashboard_run_id': 2106799, 'mtr_portfolio_id': 25870953, 'dashboard_result_id': 13850593, '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_P25870953_11-08-2025_10_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25870988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25870989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25870990, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25870991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25870992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25870993, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25870994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25870995, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25870996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25870997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25870998, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25870999, 'pht': 3726}}"}, {'dashboat_entry_day': 2097453, 'dashboard_run_id': 2106799, 'mtr_portfolio_id': 25871461, 'dashboard_result_id': 13850594, '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_P25871461_11-08-2025_11_02_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25871496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25871497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25871498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25871499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25871500, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25871501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25871502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25871503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25871504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25871505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25871506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25871507, 'pht': 3726}}"}, {'dashboat_entry_day': 2097453, 'dashboard_run_id': 2106799, 'mtr_portfolio_id': 25871841, 'dashboard_result_id': 13850595, '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_P25871841_11-08-2025_11_13_00.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25871862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25871863, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25871864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25871865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25871866, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25871867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25871868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25871869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25871870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25871871, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25871872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25871873, '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 = 25861976 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': 3493687, 'mtr_portfolio_id': 25861976, 'created_at': datetime.datetime(2025, 8, 11, 5, 16, 30), 'result': '0.03564440011741431', 'result_long': None, 'result_double': None}] Qualite : 0.03564440011741431 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25861976 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25861976_11-08-2025_05_16_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25861976 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_P25861976_11-08-2025_05_16_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25861977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25861978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25861979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25861980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25861981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25861982, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25861983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25861984, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25861985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25861986, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25861987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25861988, 'pht': 3726}}" where mtr_portfolio_id = 25861976 and dashboard_run_id = 2106799 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`=25861976 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13850574, 0.03564440011741431, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25861976_11-08-2025_05_16_30.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25861977, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25861978, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25861979, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25861980, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25861981, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25861982, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25861983, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25861984, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25861985, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25861986, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25861987, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25861988, '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 = 25862084 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': 3493706, 'mtr_portfolio_id': 25862084, 'created_at': datetime.datetime(2025, 8, 11, 5, 32, 58), 'result': '0.037799551982242004', 'result_long': None, 'result_double': None}] Qualite : 0.037799551982242004 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25862084 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25862084_11-08-2025_05_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25862084 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_P25862084_11-08-2025_05_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25862089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25862090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25862091, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25862092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25862093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25862094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25862095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25862096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25862097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25862098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25862099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25862100, 'pht': 3726}}" where mtr_portfolio_id = 25862084 and dashboard_run_id = 2106799 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`=25862084 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13850575, 0.037799551982242004, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25862084_11-08-2025_05_32_58.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25862089, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25862090, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25862091, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25862092, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25862093, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25862094, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25862095, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25862096, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25862097, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25862098, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25862099, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25862100, '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 = 25862313 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': 3493763, 'mtr_portfolio_id': 25862313, 'created_at': datetime.datetime(2025, 8, 11, 5, 46, 57), 'result': '0.03153371492550025', 'result_long': None, 'result_double': None}] Qualite : 0.03153371492550025 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25862313 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25862313_11-08-2025_05_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25862313 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_P25862313_11-08-2025_05_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25862321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25862322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25862323, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25862324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25862325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25862326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25862327, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25862328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25862329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25862330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25862331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25862332, 'pht': 3726}}" where mtr_portfolio_id = 25862313 and dashboard_run_id = 2106799 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`=25862313 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13850576, 0.03153371492550025, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25862313_11-08-2025_05_46_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25862321, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25862322, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25862323, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25862324, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25862325, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25862326, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25862327, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25862328, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25862329, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25862330, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25862331, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25862332, '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 = 25862578 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': 3493849, 'mtr_portfolio_id': 25862578, 'created_at': datetime.datetime(2025, 8, 11, 6, 2, 56), 'result': '0.07662895663234125', 'result_long': None, 'result_double': None}] Qualite : 0.07662895663234125 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25862578 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25862578_11-08-2025_06_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25862578 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_P25862578_11-08-2025_06_02_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25862589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25862590, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25862591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25862592, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25862593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25862594, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25862595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25862596, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25862597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25862598, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25862599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25862600, 'pht': 3726}}" where mtr_portfolio_id = 25862578 and dashboard_run_id = 2106799 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`=25862578 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13850577, 0.07662895663234125, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25862578_11-08-2025_06_02_57.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25862589, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25862590, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25862591, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25862592, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25862593, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25862594, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25862595, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25862596, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25862597, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25862598, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25862599, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25862600, '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 = 25862901 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': 3493965, 'mtr_portfolio_id': 25862901, 'created_at': datetime.datetime(2025, 8, 11, 6, 16, 58), 'result': '0.04944871197176491', 'result_long': None, 'result_double': None}] Qualite : 0.04944871197176491 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25862901 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25862901_11-08-2025_06_16_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25862901 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_P25862901_11-08-2025_06_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25862949, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25862950, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25862951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25862952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25862953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25862954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25862955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25862956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25862957, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25862958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25862959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25862960, 'pht': 3726}}" where mtr_portfolio_id = 25862901 and dashboard_run_id = 2106799 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`=25862901 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13850578, 0.04944871197176491, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25862901_11-08-2025_06_16_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25862949, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25862950, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25862951, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25862952, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25862953, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25862954, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25862955, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25862956, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25862957, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25862958, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25862959, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25862960, '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 = 25863397 AND result is not null and result<>"None" and result<>0.0 AND mtd_id=4302 ORDER BY id desc LIMIT 1 SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25863397 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ORDER BY created_at desc LIMIT 1 select value from MTRUser.portfolio_carac_ratio where portfolio_id = 25863397 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25863397 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 )and created_at < ( SELECT addtime(max(created_at),100) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 25863397 AND result is not null and result<>"None" and result=0.0 AND mtd_id=4302 ) order by value desc list_result_datou : [] select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25863397 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25863397_11-08-2025_06_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25863397 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_P25863397_11-08-2025_06_32_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25863406, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25863407, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25863408, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25863409, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25863410, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25863411, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25863412, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25863413, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25863414, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25863415, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25863416, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25863417, 'pht': 3726}}" where mtr_portfolio_id = 25863397 and dashboard_run_id = 2106799 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 = 25863832 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': 3494384, 'mtr_portfolio_id': 25863832, 'created_at': datetime.datetime(2025, 8, 11, 6, 48, 58), 'result': '0.07567791428199155', 'result_long': None, 'result_double': None}] Qualite : 0.07567791428199155 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25863832 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25863832_11-08-2025_06_48_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25863832 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_P25863832_11-08-2025_06_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25863850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25863851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25863852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25863853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25863854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25863855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25863856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25863857, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25863858, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25863859, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25863860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25863861, 'pht': 3726}}" where mtr_portfolio_id = 25863832 and dashboard_run_id = 2106799 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`=25863832 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13850580, 0.07567791428199155, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25863832_11-08-2025_06_48_58.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25863850, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25863851, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25863852, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25863853, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25863854, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25863855, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25863856, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25863857, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25863858, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25863859, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25863860, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25863861, '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 = 25864365 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': 3494637, 'mtr_portfolio_id': 25864365, 'created_at': datetime.datetime(2025, 8, 11, 7, 5), 'result': '0.06379507495080906', 'result_long': None, 'result_double': None}] Qualite : 0.06379507495080906 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25864365 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25864365_11-08-2025_07_05_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25864365 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_P25864365_11-08-2025_07_05_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25864383, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25864384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25864385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25864386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25864387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25864388, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25864389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25864390, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25864391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25864392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25864393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25864394, 'pht': 3726}}" where mtr_portfolio_id = 25864365 and dashboard_run_id = 2106799 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`=25864365 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13850581, 0.06379507495080906, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25864365_11-08-2025_07_05_01.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25864383, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25864384, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25864385, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25864386, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25864387, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25864388, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25864389, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25864390, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25864391, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25864392, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25864393, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25864394, '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 = 25864819 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': 3494877, 'mtr_portfolio_id': 25864819, 'created_at': datetime.datetime(2025, 8, 11, 7, 18, 58), 'result': '0.0786174089318894', 'result_long': None, 'result_double': None}] Qualite : 0.0786174089318894 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25864819 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25864819_11-08-2025_07_18_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25864819 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_P25864819_11-08-2025_07_18_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25864862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25864863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25864864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25864865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25864866, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25864867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25864868, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25864869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25864870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25864871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25864872, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25864873, 'pht': 3726}}" where mtr_portfolio_id = 25864819 and dashboard_run_id = 2106799 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`=25864819 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13850582, 0.0786174089318894, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25864819_11-08-2025_07_18_58.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 25864862, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25864863, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25864864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25864865, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25864866, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25864867, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25864868, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25864869, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25864870, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25864871, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25864872, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25864873, '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 = 25865316 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': 3495090, 'mtr_portfolio_id': 25865316, 'created_at': datetime.datetime(2025, 8, 11, 7, 32, 58), 'result': '0.05135935398650029', 'result_long': None, 'result_double': None}] Qualite : 0.05135935398650029 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25865316 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25865316_11-08-2025_07_32_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25865316 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_P25865316_11-08-2025_07_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25865326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25865327, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25865329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25865330, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25865331, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25865332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25865333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25865334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25865335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25865336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25865337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25865338, 'pht': 3726}}" where mtr_portfolio_id = 25865316 and dashboard_run_id = 2106799 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`=25865316 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13850583, 0.05135935398650029, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25865316_11-08-2025_07_32_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25865326, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25865327, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25865329, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25865330, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25865331, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25865332, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25865333, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25865334, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25865335, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25865336, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25865337, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25865338, '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 = 25865676 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': 3495305, 'mtr_portfolio_id': 25865676, 'created_at': datetime.datetime(2025, 8, 11, 7, 46, 58), 'result': '0.04167206673912314', 'result_long': None, 'result_double': None}] Qualite : 0.04167206673912314 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25865676 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25865676_11-08-2025_07_46_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25865676 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_P25865676_11-08-2025_07_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25865711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25865712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25865713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25865714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25865715, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25865716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25865717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25865718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25865719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25865720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25865721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25865723, 'pht': 3726}}" where mtr_portfolio_id = 25865676 and dashboard_run_id = 2106799 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`=25865676 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13850584, 0.04167206673912314, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25865676_11-08-2025_07_46_59.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25865711, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25865712, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25865713, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25865714, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25865715, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25865716, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25865717, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25865718, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25865719, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25865720, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25865721, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25865723, '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 = 25866107 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': 3495513, 'mtr_portfolio_id': 25866107, 'created_at': datetime.datetime(2025, 8, 11, 8, 2, 59), 'result': '0.040976851830450266', 'result_long': None, 'result_double': None}] Qualite : 0.040976851830450266 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25866107 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25866107_11-08-2025_08_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25866107 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_P25866107_11-08-2025_08_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25866140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25866141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25866142, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25866143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25866144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25866145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25866146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25866147, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25866148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25866149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25866150, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25866151, 'pht': 3726}}" where mtr_portfolio_id = 25866107 and dashboard_run_id = 2106799 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`=25866107 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13850585, 0.040976851830450266, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25866107_11-08-2025_08_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25866140, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25866141, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25866142, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25866143, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25866144, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25866145, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25866146, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25866147, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25866148, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25866149, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25866150, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25866151, '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 = 25866527 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': 3495738, 'mtr_portfolio_id': 25866527, 'created_at': datetime.datetime(2025, 8, 11, 8, 20, 58), 'result': '0.07772720418251523', 'result_long': None, 'result_double': None}] Qualite : 0.07772720418251523 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25866527 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25866527_11-08-2025_08_20_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25866527 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_P25866527_11-08-2025_08_20_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25866537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25866538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25866539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25866540, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25866541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25866542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25866543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25866544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25866545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25866546, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25866547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25866548, 'pht': 3726}}" where mtr_portfolio_id = 25866527 and dashboard_run_id = 2106799 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`=25866527 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13850586, 0.07772720418251523, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25866527_11-08-2025_08_20_58.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25866537, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25866538, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25866539, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25866540, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25866541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25866542, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25866543, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25866544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25866545, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25866546, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25866547, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25866548, '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 = 25867258 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': 3495994, 'mtr_portfolio_id': 25867258, 'created_at': datetime.datetime(2025, 8, 11, 8, 33), 'result': '0.05493289802707828', 'result_long': None, 'result_double': None}] Qualite : 0.05493289802707828 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25867258 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25867258_11-08-2025_08_33_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25867258 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_P25867258_11-08-2025_08_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25867274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25867275, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25867276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25867277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25867278, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25867279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25867280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25867281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25867282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25867283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25867284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25867286, 'pht': 3726}}" where mtr_portfolio_id = 25867258 and dashboard_run_id = 2106799 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`=25867258 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13850587, 0.05493289802707828, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25867258_11-08-2025_08_33_00.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25867274, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25867275, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25867276, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25867277, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25867278, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25867279, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25867280, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25867281, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25867282, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25867283, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25867284, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25867286, '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 = 25867642 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': 3496187, 'mtr_portfolio_id': 25867642, 'created_at': datetime.datetime(2025, 8, 11, 8, 46, 58), 'result': '0.07919096409927755', 'result_long': None, 'result_double': None}] Qualite : 0.07919096409927755 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25867642 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25867642_11-08-2025_08_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25867642 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_P25867642_11-08-2025_08_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25867671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25867672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25867673, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25867674, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25867675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25867676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25867677, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25867678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25867679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25867680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25867681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25867682, 'pht': 3726}}" where mtr_portfolio_id = 25867642 and dashboard_run_id = 2106799 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`=25867642 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13850588, 0.07919096409927755, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25867642_11-08-2025_08_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 25867671, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25867672, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25867673, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25867674, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25867675, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25867676, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25867677, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25867678, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25867679, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25867680, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25867681, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25867682, '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 = 25868093 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': 3496403, 'mtr_portfolio_id': 25868093, 'created_at': datetime.datetime(2025, 8, 11, 9, 33), 'result': '0.07580989568027292', 'result_long': None, 'result_double': None}] Qualite : 0.07580989568027292 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25868093 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25868093_11-08-2025_09_33_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25868093 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_P25868093_11-08-2025_09_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25868127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25868128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25868129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25868130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25868131, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25868132, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25868133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25868134, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25868135, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25868136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25868137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25868138, 'pht': 3726}}" where mtr_portfolio_id = 25868093 and dashboard_run_id = 2106799 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`=25868093 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13850589, 0.07580989568027292, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25868093_11-08-2025_09_33_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25868127, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25868128, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25868129, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25868130, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25868131, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25868132, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25868133, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25868134, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25868135, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25868136, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25868137, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25868138, '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 = 25869425 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': 3496900, 'mtr_portfolio_id': 25869425, 'created_at': datetime.datetime(2025, 8, 11, 9, 46, 58), 'result': '0.037976347014032484', 'result_long': None, 'result_double': None}] Qualite : 0.037976347014032484 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25869425 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25869425_11-08-2025_09_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25869425 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_P25869425_11-08-2025_09_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25869433, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25869434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25869435, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25869436, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25869437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25869438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25869439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25869440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25869441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25869442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25869443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25869444, 'pht': 3726}}" where mtr_portfolio_id = 25869425 and dashboard_run_id = 2106799 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`=25869425 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13850590, 0.037976347014032484, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25869425_11-08-2025_09_46_58.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25869433, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25869434, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25869435, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25869436, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25869437, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25869438, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25869439, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25869440, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25869441, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25869442, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25869443, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25869444, '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 = 25869673 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': 3496993, 'mtr_portfolio_id': 25869673, 'created_at': datetime.datetime(2025, 8, 11, 10, 3), 'result': '0.03561819557763649', 'result_long': None, 'result_double': None}] Qualite : 0.03561819557763649 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25869673 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25869673_11-08-2025_10_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25869673 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_P25869673_11-08-2025_10_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25869699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25869700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25869701, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25869702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25869703, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25869704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25869705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25869706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25869707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25869708, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25869709, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25869710, 'pht': 3726}}" where mtr_portfolio_id = 25869673 and dashboard_run_id = 2106799 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`=25869673 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13850591, 0.03561819557763649, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25869673_11-08-2025_10_03_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 25869699, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25869700, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25869701, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25869702, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25869703, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25869704, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25869705, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25869706, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25869707, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25869708, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25869709, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25869710, '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 = 25870454 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': 3497270, 'mtr_portfolio_id': 25870454, 'created_at': datetime.datetime(2025, 8, 11, 10, 32, 56), 'result': '0.05024186783389757', 'result_long': None, 'result_double': None}] Qualite : 0.05024186783389757 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25870454 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25870454_11-08-2025_10_32_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25870454 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_P25870454_11-08-2025_10_32_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25870473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25870474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25870475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25870476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25870477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25870478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25870479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25870480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25870481, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25870482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25870483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25870484, 'pht': 3726}}" where mtr_portfolio_id = 25870454 and dashboard_run_id = 2106799 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`=25870454 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13850592, 0.05024186783389757, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25870454_11-08-2025_10_32_57.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25870473, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25870474, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25870475, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25870476, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25870477, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25870478, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25870479, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25870480, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25870481, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25870482, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25870483, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25870484, '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 = 25870953 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': 3497556, 'mtr_portfolio_id': 25870953, 'created_at': datetime.datetime(2025, 8, 11, 10, 48, 58), 'result': '0.030618384861886217', 'result_long': None, 'result_double': None}] Qualite : 0.030618384861886217 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25870953 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25870953_11-08-2025_10_48_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25870953 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_P25870953_11-08-2025_10_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25870988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25870989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25870990, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25870991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25870992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25870993, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25870994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25870995, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25870996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25870997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25870998, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25870999, 'pht': 3726}}" where mtr_portfolio_id = 25870953 and dashboard_run_id = 2106799 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`=25870953 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13850593, 0.030618384861886217, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25870953_11-08-2025_10_48_59.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25870988, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25870989, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25870990, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25870991, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25870992, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25870993, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25870994, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25870995, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25870996, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25870997, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25870998, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25870999, '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 = 25871461 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': 3497778, 'mtr_portfolio_id': 25871461, 'created_at': datetime.datetime(2025, 8, 11, 11, 2, 57), 'result': '0.05872505015514822', 'result_long': None, 'result_double': None}] Qualite : 0.05872505015514822 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25871461 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25871461_11-08-2025_11_02_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25871461 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_P25871461_11-08-2025_11_02_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25871496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25871497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25871498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25871499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25871500, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25871501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25871502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25871503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25871504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25871505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25871506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25871507, 'pht': 3726}}" where mtr_portfolio_id = 25871461 and dashboard_run_id = 2106799 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`=25871461 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13850594, 0.05872505015514822, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25871461_11-08-2025_11_02_57.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25871496, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25871497, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25871498, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25871499, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25871500, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25871501, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25871502, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25871503, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25871504, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25871505, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25871506, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25871507, '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 = 25871841 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': 3497984, 'mtr_portfolio_id': 25871841, 'created_at': datetime.datetime(2025, 8, 11, 11, 14, 59), 'result': '0.03336607753890567', 'result_long': None, 'result_double': None}] Qualite : 0.03336607753890567 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 25871841 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25871841_11-08-2025_11_14_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 25871841 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_P25871841_11-08-2025_11_14_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25871862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25871863, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25871864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25871865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25871866, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25871867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25871868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25871869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25871870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25871871, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25871872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25871873, 'pht': 3726}}" where mtr_portfolio_id = 25871841 and dashboard_run_id = 2106799 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`=25871841 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (13850595, 0.03336607753890567, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P25871841_11-08-2025_11_14_59.pdf', 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 25871862, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 25871863, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 25871864, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 25871865, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 25871866, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 25871867, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 25871868, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 25871869, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 25871870, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 25871871, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 25871872, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 25871873, '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 (25861976,25862084,25862313,25862578,25862901,25863397,25863832,25864365,25864819,25865316,25865676,25866107,25866527,25867258,25867642,25868093,25869425,25869673,25870454,25870953,25871461,25871841) result : ((1376384821,), (1376385171,), (1376385185,), (1376385187,), (1376385195,), (1376385198,), (1376385199,), (1376385200,), (1376385227,), (1376385228,), (1376385247,), (1376385245,), (1376385261,), (1376385262,), (1376385263,), (1376385279,), (1376385281,), (1376385282,), (1376385283,), (1376385284,), (1376385292,), (1376385293,), (1376385317,), (1376385331,), (1376385354,), (1376385357,), (1376385360,), (1376385363,), (1376385413,), (1376385416,), (1376385418,), (1376385429,), (1376385430,), (1376385443,), (1376385455,), (1376385458,), (1376385460,), (1376385462,), (1376385476,), (1376385479,), (1376385520,), (1376385523,), (1376385524,), (1376385525,), (1376385542,), (1376385544,), (1376385545,), (1376385547,), (1376385567,), (1376385563,), (1376385564,), (1376385566,), (1376385586,), (1376385589,), (1376385590,), (1376385592,), (1376385593,), (1376385605,), (1376385607,), (1376385608,), (1376385620,), (1376385623,), (1376385624,), (1376385625,), (1376385626,), (1376385627,), (1376385634,), (1376385635,), (1376385636,), (1376385637,), (1376385638,), (1376385648,), (1376385650,), (1376385651,), (1376385659,), (1376385660,), (1376385661,), (1376385662,), (1376385663,), (1376385679,), (1376385681,), (1376385682,), (1376385683,), (1376385691,), (1376385692,), (1376385693,), (1376385694,), (1376385717,), (1376385723,), (1376385724,), (1376385725,), (1376385726,), (1376385735,), (1376385736,), (1376385737,), (1376385759,), (1376385761,), (1376385762,), (1376385763,), (1376385777,), (1376385778,), (1376385780,), (1376385781,), (1376385782,), (1376385797,), (1376385801,), (1376385802,), (1376385804,), (1376385806,), (1376385812,), (1376385813,), (1376385814,), (1376385816,), (1376385819,), (1376385821,), (1376385831,), (1376385834,), (1376385836,), (1376385843,), (1376385841,), (1376385842,), (1376385852,), (1376385854,), (1376385857,), (1376385860,), (1376385863,), (1376385866,), (1376385877,), (1376385878,), (1376385879,), (1376385881,), (1376385898,), (1376385899,), (1376385900,), (1376385901,), (1376385920,), (1376385921,), (1376385922,), (1376385923,), (1376385924,), (1376385939,), (1376385941,), (1376385955,), (1376385957,), (1376385966,), (1376385978,), (1376385980,), (1376385982,), (1376385983,), (1376385991,), (1376385993,), (1376385995,), (1376385998,), (1376386001,), (1376386003,), (1376386010,), (1376386012,), (1376386014,), (1376386017,), (1376386020,), (1376386021,), (1376386029,), (1376386030,), (1376386031,), (1376386036,), (1376386038,), (1376386040,), (1376386041,), (1376386044,), (1376386056,), (1376386058,), (1376386060,), (1376386061,), (1376386063,), (1376386065,), (1376386261,), (1376386284,), (1376386306,), (1376386328,), (1376386761,), (1376386782,), (1376386804,), (1376386835,), (1376386856,), (1376386882,), (1376386936,), (1376386937,), (1376386944,), (1376386946,), (1376387080,), (1376386987,), (1376387010,), (1376387032,), (1376387057,), (1376387142,), (1376387144,), (1376387145,), (1376387146,), (1376387148,), (1376387156,), (1376387157,), (1376387158,), (1376387159,), (1376387162,), (1376387164,), (1376387188,), (1376387216,), (1376387236,), (1376387259,), (1376387281,), (1376387553,), (1376387576,), (1376387599,), (1376387621,), (1376387822,), (1376387825,), (1376387826,), (1376387828,), (1376388027,), (1376388029,), (1376388030,), (1376388032,), (1376388033,), (1376388035,), (1376388064,), (1376388067,), (1376388068,), (1376388069,), (1376388091,), (1376388093,), (1376388095,), (1376388096,), (1376388141,), (1376388143,), (1376388169,), (1376388174,), (1376388176,), (1376388177,), (1376388179,), (1376388197,), (1376388199,), (1376388200,), (1376388218,), (1376388220,), (1376388221,), (1376388222,), (1376388223,), (1376388226,), (1376388236,), (1376388254,), (1376388269,), (1376388271,), (1376388272,), (1376388274,), (1376388278,), (1376388306,), (1376388310,), (1376388311,), (1376388312,), (1376388313,), (1376388316,), (1376388330,), (1376388331,), (1376388332,), (1376388333,), (1376388361,), (1376388362,), (1376388363,), (1376388364,), (1376388388,), (1376388392,), (1376388394,), (1376388397,), (1376388400,), (1376388403,), (1376388425,), (1376388426,), (1376388428,), (1376388431,), (1376388433,), (1376388442,), (1376388444,), (1376388446,), (1376388447,), (1376388449,), (1376388488,), (1376388490,), (1376388517,), (1376388542,), (1376388585,), (1376388587,), (1376388589,), (1376388592,), (1376388611,), (1376388612,), (1376388647,), (1376388639,), (1376388641,), (1376388642,), (1376388644,), (1376388677,), (1376388679,), (1376388680,), (1376388682,), (1376388696,), (1376388697,), (1376388716,), (1376388717,), (1376388718,), (1376388720,), (1376388743,), (1376388744,), (1376388745,), (1376388748,), (1376388752,), (1376388756,), (1376388772,), (1376388774,), (1376388775,), (1376388778,), (1376388782,), (1376388799,), (1376388801,), (1376388803,), (1376388841,), (1376388844,), (1376388845,), (1376388847,), (1376388850,), (1376388852,), (1376388876,), (1376388879,), (1376388881,), (1376388883,), (1376388908,), (1376388912,), (1376388913,), (1376388915,), (1376388919,), (1376388951,), (1376388954,), (1376388956,), (1376388994,), (1376388999,), (1376389014,), (1376389017,), (1376389019,), (1376389038,), (1376389040,), (1376389043,), (1376389045,), (1376389049,), (1376389068,), (1376389071,), (1376389073,), (1376389111,), (1376389096,), (1376389099,), (1376389101,), (1376389106,), (1376389135,), (1376389137,), (1376389139,), (1376389143,), (1376389172,), (1376389174,), (1376389175,), (1376389177,), (1376389181,), (1376389204,), (1376389206,), (1376389207,), (1376389209,), (1376389213,), (1376389235,), (1376389237,), (1376389281,), (1376389284,), (1376389287,), (1376389289,), (1376389320,), (1376389324,), (1376389326,), (1376389329,), (1376389364,), (1376389368,), (1376389398,), (1376389403,), (1376389406,), (1376389409,), (1376389413,), (1376389416,), (1376389430,), (1376389432,), (1376389433,), (1376389435,), (1376389438,), (1376389456,), (1376389458,), (1376389489,), (1376389491,), (1376389492,), (1376389494,), (1376389531,), (1376389533,), (1376389534,), (1376389579,), (1376389586,), (1376389590,), (1376390269,), (1376390262,), (1376390264,), (1376390267,), (1376390384,), (1376390407,), (1376390432,), (1376390670,), (1376390711,), (1376390738,), (1376391141,), (1376391170,), (1376391193,), (1376391516,), (1376391541,), (1376391564,), (1376391567,), (1376391570,), (1376391760,), (1376391803,), (1376391850,), (1376391897,), (1376391936,), (1376392277,), (1376392304,), (1376392328,), (1376392352,), (1376392394,), (1376392649,), (1376392674,), (1376392779,), (1376392802,), (1376393020,), (1376393022,), (1376393023,), (1376393051,), (1376393053,), (1376393054,), (1376393056,), (1376393087,), (1376393089,), (1376393091,), (1376393093,), (1376393096,), (1376393116,), (1376393120,), (1376393129,), (1376393143,), (1376393206,), (1376393167,), (1376393176,), (1376393186,), (1376393196,), (1376393201,), (1376393226,), (1376393229,), (1376393231,), (1376393235,), (1376393256,), (1376393272,), (1376393285,), (1376393289,), (1376393292,), (1376393310,), (1376393312,), (1376393336,), (1376393339,), (1376393343,), (1376393346,), (1376393349,), (1376393369,), (1376393372,), (1376393377,), (1376393381,), (1376393386,), (1376393410,), (1376393414,), (1376393417,), (1376393420,), (1376393423,), (1376393452,), (1376393455,), (1376393458,), (1376393461,), (1376393465,), (1376393468,), (1376393489,), (1376393492,), (1376393493,), (1376393498,), (1376393503,), (1376393509,), (1376393523,), (1376393525,), (1376393526,), (1376393529,), (1376393532,), (1376393554,), (1376393582,), (1376393584,), (1376393586,), (1376393588,), (1376393629,), (1376393630,), (1376393631,), (1376393633,), (1376393636,), (1376393659,), (1376393661,), (1376393662,), (1376393664,), (1376393666,), (1376393671,), (1376393700,), (1376393701,), (1376393703,), (1376393705,), (1376393746,), (1376393732,), (1376393733,), (1376393737,), (1376393739,), (1376393741,), (1376393768,), (1376393769,), (1376393770,), (1376393793,), (1376393794,), (1376393795,), (1376393797,), (1376393828,), (1376393830,), (1376393831,), (1376393833,), (1376393836,), (1376393858,), (1376393861,), (1376393863,), (1376393866,), (1376393868,), (1376393870,), (1376393885,), (1376393904,), (1376393906,), (1376393909,), (1376393928,), (1376393932,), (1376393934,), (1376393936,), (1376393939,), (1376393942,), (1376393962,), (1376393966,), (1376393968,), (1376393971,), (1376393996,), (1376393999,), (1376394001,), (1376394003,), (1376394006,), (1376394009,), (1376394035,), (1376394039,), (1376394042,), (1376394045,), (1376394047,), (1376394092,), (1376394094,), (1376394097,), (1376394134,), (1376394137,), (1376394138,), (1376394140,), (1376394143,), (1376394146,), (1376394168,), (1376394171,), (1376394173,), (1376394174,), (1376394177,), (1376394206,), (1376394208,), (1376394210,), (1376394214,), (1376394232,), (1376394243,), (1376394250,), (1376394254,), (1376394257,), (1376394261,), (1376394290,), (1376394283,), (1376394285,), (1376394287,), (1376394316,), (1376394318,), (1376394340,), (1376394342,), (1376394344,), (1376394346,), (1376394368,), (1376394371,), (1376394373,), (1376394397,), (1376394398,), (1376394401,), (1376394428,), (1376394433,), (1376394436,), (1376394438,), (1376394441,), (1376394466,), (1376394472,), (1376394474,), (1376394477,), (1376394479,), (1376394493,), (1376394495,), (1376394497,), (1376394499,), (1376394526,), (1376394528,), (1376394530,), (1376394533,), (1376394535,), (1376394539,), (1376394552,), (1376394554,), (1376394556,), (1376394558,), (1376394562,), (1376394565,), (1376394578,), (1376394581,), (1376394582,), (1376394611,), (1376394614,), (1376394616,), (1376394618,), (1376394621,), (1376394646,), (1376394649,), (1376394650,), (1376394652,), (1376394655,), (1376394658,), (1376395582,), (1376395603,), (1376395630,), (1376395653,), (1376395681,), (1376395710,), (1376395839,), (1376396096,), (1376396019,), (1376396045,), (1376396072,), (1376396093,), (1376396375,), (1376396382,), (1376396385,), (1376396662,), (1376396687,), (1376396710,), (1376396731,), (1376397051,), (1376397081,), (1376397104,), (1376397128,), (1376397379,), (1376397386,), (1376397388,), (1376397391,), (1376397482,), (1376397505,), (1376397530,), (1376397560,), (1376397586,), (1376397763,), (1376397765,), (1376397766,), (1376397769,), (1376397813,), (1376397815,), (1376397816,), (1376397818,), (1376397898,), (1376397900,), (1376397903,), (1376397905,), (1376397917,), (1376398030,), (1376398033,), (1376398035,), (1376398258,), (1376398282,), (1376398307,), (1376398336,), (1376398366,), (1376398698,), (1376398725,), (1376398754,), (1376398775,), (1376398866,), (1376398867,), (1376399379,), (1376399374,), (1376399376,), (1376399377,), (1376399412,), (1376399413,), (1376399414,), (1376399415,), (1376399417,), (1376399420,), (1376399469,), (1376399494,), (1376399519,), (1376399541,), (1376399566,), (1376399803,), (1376399807,), (1376399814,), (1376399877,), (1376399881,), (1376399891,), (1376399894,), (1376399962,), (1376399963,), (1376399965,), (1376399967,), (1376399969,), (1376399971,), (1376399993,), (1376399996,), (1376400001,), (1376400003,), (1376400023,), (1376400025,), (1376400026,), (1376400054,), (1376400056,), (1376400057,), (1376400059,), (1376400078,), (1376400082,), (1376400083,), (1376400085,), (1376400088,), (1376400116,), (1376400117,), (1376400119,), (1376400168,), (1376400160,), (1376400161,), (1376400162,), (1376400164,), (1376400193,), (1376400197,), (1376400198,), (1376400200,), (1376400201,), (1376400208,), (1376400229,), (1376400230,), (1376400231,), (1376400257,), (1376400258,), (1376400259,), (1376400262,), (1376400263,), (1376400310,), (1376400312,), (1376400313,), (1376400316,), (1376400337,), (1376400339,), (1376400341,), (1376400343,), (1376400359,), (1376400361,), (1376400362,), (1376400364,), (1376400399,), (1376400401,), (1376400402,), (1376400430,), (1376400431,), (1376400458,), (1376400461,), (1376400463,), (1376400467,), (1376400471,), (1376400499,), (1376400599,), (1376400601,), (1376400602,), (1376400612,), (1376400634,), (1376400791,), (1376400793,), (1376400794,), (1376400817,), (1376400819,), (1376400820,), (1376400822,), (1376400826,), (1376400839,), (1376400886,), (1376400877,), (1376400878,), (1376400882,), (1376400884,), (1376400951,), (1376400956,), (1376400959,), (1376400962,), (1376401034,), (1376401036,), (1376401038,), (1376401040,), (1376401067,), (1376401070,), (1376401081,), (1376401115,), (1376401116,), (1376401467,), (1376401472,), (1376401474,), (1376401476,), (1376401558,), (1376401559,), (1376401652,), (1376401876,), (1376401921,), (1376402165,), (1376402167,), (1376402168,), (1376402171,), (1376402175,), (1376402197,), (1376402199,), (1376402201,), (1376402203,), (1376402205,), (1376402226,), (1376402228,), (1376402229,), (1376402231,), (1376402251,), (1376402254,), (1376402258,), (1376402674,), (1376402701,), (1376402733,), (1376402777,), (1376405743,), (1376405735,), (1376405737,), (1376405738,), (1376405740,), (1376405766,), (1376405768,), (1376405770,), (1376405772,), (1376405801,), (1376405803,), (1376405833,), (1376405836,), (1376405840,), (1376405842,), (1376405846,), (1376405870,), (1376405872,), (1376405873,), (1376405875,), (1376405877,), (1376405879,), (1376405899,), (1376405902,), (1376405904,), (1376405906,), (1376405987,), (1376406019,), (1376406045,), (1376406063,), (1376406067,), (1376406071,), (1376406102,), (1376406105,), (1376406106,), (1376406108,), (1376406112,), (1376406157,), (1376406160,), (1376406161,), (1376406163,), (1376406166,), (1376406197,), (1376406201,), (1376406202,), (1376406204,), (1376406207,), (1376406211,), (1376406235,), (1376406238,), (1376406239,), (1376406358,), (1376406362,), (1376406365,), (1376406374,), (1376406407,), (1376406410,), (1376406411,), (1376406412,), (1376406414,), (1376406419,), (1376406463,), (1376406469,), (1376406472,), (1376406474,), (1376406492,), (1376406495,), (1376406496,), (1376406602,), (1376406547,), (1376406550,), (1376406552,), (1376406576,), (1376406671,), (1376406673,), (1376406674,), (1376406676,), (1376406679,), (1376406683,), (1376406769,), (1376406771,), (1376406803,), (1376406908,), (1376406934,), (1376406946,), (1376407021,), (1376407025,), (1376407032,), (1376407033,), (1376407051,), (1376407087,), (1376407096,), (1376407104,), (1376407110,), (1376407144,), (1376407147,), (1376407149,), (1376407153,), (1376407169,), (1376407170,), (1376407171,), (1376407172,), (1376407206,), (1376407208,), (1376407210,), (1376407215,), (1376407219,), (1376407223,), (1376407241,), (1376407266,), (1376407290,), (1376407315,), (1376407340,), (1376407596,), (1376407618,), (1376407642,), (1376408325,), (1376408331,), (1376408335,), (1376408338,), (1376408348,), (1376408375,), (1376408528,), (1376409474,), (1376409483,), (1376409491,), (1376409515,), (1376409517,), (1376409518,), (1376409520,), (1376409636,), (1376409639,), (1376409641,), (1376409644,), (1376409647,), (1376409649,), (1376409802,), (1376409804,), (1376409899,), (1376409915,), (1376409964,), (1376410006,), (1376410038,), (1376410099,), (1376410103,), (1376410109,), (1376410113,), (1376410118,), (1376410123,), (1376410135,), (1376410136,), (1376410137,), (1376410142,), (1376410189,), (1376410212,), (1376410235,), (1376410257,), (1376410280,), (1376410307,), (1376410405,), (1376410430,), (1376410456,), (1376410505,), (1376410528,), (1376410550,), (1376410558,), (1376410563,), (1376410567,), (1376410568,), (1376410570,), (1376410600,), (1376410601,), (1376410602,), (1376410604,), (1376410618,), (1376410620,), (1376410621,), (1376410624,), (1376410644,), (1376410646,), (1376410647,), (1376410649,), (1376410709,), (1376410711,), (1376410712,), (1376410713,), (1376410717,), (1376410720,), (1376410756,), (1376410758,), (1376410761,), (1376410765,), (1376410768,), (1376410771,), (1376410797,), (1376410837,), (1376410840,), (1376410844,), (1376410854,), (1376410856,), (1376410858,), (1376410829,), (1376410834,), (1376410835,), (1376410861,), (1376410862,), (1376410863,), (1376410865,), (1376410868,), (1376410872,), (1376410891,), (1376410892,), (1376410893,), (1376410895,), (1376410921,), (1376410922,), (1376410923,), (1376410925,), (1376410929,), (1376410932,), (1376410953,), (1376410954,), (1376410955,), (1376410957,), (1376410961,), (1376410981,), (1376410982,), (1376410984,), (1376410986,), (1376411019,), (1376411021,), (1376411026,), (1376411030,), (1376411033,), (1376411108,), (1376411111,), (1376411113,), (1376411115,), (1376411117,), (1376411120,), (1376411141,), (1376411144,), (1376411145,), (1376411173,), (1376411174,), (1376411176,), (1376411178,), (1376411180,), (1376411213,), (1376411215,), (1376411216,), (1376411218,), (1376411223,), (1376411230,), (1376411335,), (1376411364,), (1376411387,), (1376411633,), (1376411635,), (1376411636,), (1376411638,), (1376411641,), (1376411664,), (1376411667,), (1376411669,), (1376411671,), (1376411674,), (1376411677,), (1376411694,), (1376411696,), (1376411697,), (1376411698,), (1376411742,), (1376411732,), (1376411734,), (1376411735,), (1376411736,), (1376411738,), (1376411763,), (1376411765,), (1376411766,), (1376411768,), (1376411771,), (1376411774,), (1376411806,), (1376411807,), (1376411810,), (1376411835,), (1376411837,), (1376411839,), (1376411842,), (1376411844,), (1376411932,), (1376411934,), (1376411935,), (1376411937,), (1376411939,), (1376411944,), (1376411971,), (1376411973,), (1376411974,), (1376411976,), (1376411980,), (1376412009,), (1376412012,), (1376412013,), (1376412016,), (1376412020,), (1376412024,), (1376412028,), (1376412034,), (1376412047,), (1376412053,), (1376412098,), (1376412100,), (1376412101,), (1376412103,), (1376412106,), (1376412108,), (1376412131,), (1376412132,), (1376412152,), (1376412154,), (1376412156,), (1376412159,), (1376412182,), (1376412184,), (1376412185,), (1376412188,), (1376412216,), (1376412222,), (1376412225,), (1376412228,), (1376412230,), (1376412253,), (1376412268,), (1376412291,), (1376412315,), (1376412340,), (1376412360,), (1376412694,), (1376412727,), (1376412756,), (1376413068,), (1376413012,), (1376413034,), (1376413058,), (1376413329,), (1376413354,), (1376413378,), (1376413403,), (1376413693,), (1376413718,), (1376413747,), (1376413771,), (1376413801,), (1376414317,), (1376414361,), (1376414404,), (1376414449,), (1376414498,), (1376414672,), (1376414695,), (1376414719,), (1376414750,), (1376414795,), (1376414847,), (1376415224,), (1376415256,), (1376415309,), (1376415554,), (1376415578,), (1376415590,), (1376415593,), (1376415666,), (1376415669,), (1376415690,), (1376415695,), (1376415698,), (1376415729,), (1376415912,), (1376415935,), (1376415960,), (1376416256,), (1376416280,), (1376416572,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'11082025': {'nb_upload': 42, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([25871841]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1376416572] map_info['map_portfolio_photo'] : {25871841: [1376416572, 1376416280, 1376416256, 1376415960, 1376415935, 1376415912, 1376415729, 1376415698, 1376415695, 1376415690, 1376415669, 1376415666, 1376415593, 1376415590, 1376415578, 1376415554, 1376415309, 1376415256, 1376415224, 1376414847, 1376414795, 1376414750, 1376414719, 1376414695, 1376414672, 1376414498, 1376414449, 1376414404, 1376414361, 1376414317, 1376413801, 1376413771, 1376413747, 1376413718, 1376413693, 1376413403, 1376413378, 1376413354, 1376413329, 1376413058, 1376413034, 1376413012]} final : True mtd_id 4302 list_pids : [1376416572] Looping around the photos to save general results len do output : 1 /25871841Didn'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, '3497984') ('4302', '25871841', '1376416572', None, None, None, None, None, '3497984') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 2 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '25871841', 'None', None, None, None, None, '3497984'), ('4302', '25871841', '1376416572', None, None, None, None, None, '3497984')] time used for this insertion : 0.015008926391601562 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.03019380569458 time spend to save output : 0.015153884887695312 total time spend for step 5 : 2.0453476905822754 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 (3497984) 1.83user 2.38system 0:08.05elapsed 52%CPU (0avgtext+0avgdata 158180maxresident)k 320inputs+3648outputs (4major+62010minor)pagefaults 0swaps