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 : 3203438 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 (4288763) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4288763) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29807136 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4288763'] with mtr_portfolio_ids : ['29807136'] and first list_photo_ids : [] new path : /proc/3203438/ Name: python3 Umask: 0002 State: R (running) Tgid: 3203438 Ngid: 0 Pid: 3203438 PPid: 3203437 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 3203438 NSpid: 3203438 NSpgid: 3201484 NSsid: 3201484 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 104916 kB VmRSS: 104916 kB RssAnon: 66304 kB RssFile: 38612 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 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: 41 nonvoluntary_ctxt_switches: 81 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '3203438', 'Ngid': '0', 'Pid': '3203438', 'PPid': '3203437', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '3203438', 'NSpid': '3203438', 'NSpgid': '3201484', 'NSsid': '3201484', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '104916 kB', 'VmRSS': '104916 kB', 'RssAnon': '66304 kB', 'RssFile': '38612 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 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': '41', 'nonvoluntary_ctxt_switches': '81'} ('datou_batch_current', '3203438', '1113364', '0', '1113364', '872092', '104916', b'', 'marlene', '4288763') insert ignore into MTRAdmin.mem_info (script_name, PID, VMpeak,VMswap,VMsize,VMdata,VMrss,GPU_ram, hostname, mtr_current_id) VALUES (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s) Inside batchDatouExec : verbose : True ##### chargement datou SELECT name, created_at,limit_max FROM MTRDatou.mtr_datou WHERE id=4302 SELECT mtd.id, mtdt.`type`, mtd.`param`, mtd.param_json, mtdt.nb_input, mtdt.nb_output, mtdt.prod, mtdt.is_local, mtdt.is_datou_depend, mtdt.is_photo_id_local FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_step_types mtdt WHERE mtdt.`id`=mtd.`type` AND mtd.mtd_id=4302 SELECT mtd.id, mtd.mtd_id, mdsdt.id, mdsdt.name, mdsdt.description, msid.output_or_input, msid.data_order_id, mdsdt.type FROM MTRDatou.mtr_datou_step mtd, MTRDatou.mtr_datou_steptype_io_datatypes msid, MTRDatou.mtr_datou_step_data_types mdsdt WHERE mtd.`type`=msid.`mtr_datou_step_type` AND mtd.mtd_id= 4302 AND msid.data_type=mdsdt.id SELECT mts_id_output, id_output, mts_id_input, id_input FROM MTRDatou.mtr_datou_step_by_step WHERE mtd_id=4302 # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! no param json to modify List Step Type Loaded in datou : ventilate_hashtags_in_portfolio, final, velours_tree, send_mail_cod, split_time_score over limit max, limiting to limit_max 200 list_input_json : [] ##### fin chargement datou ##### chargement data ##### Call load_data_input : nb_thread : 1 origin SELECT ph.photo_id, ph.url FROM MTRBack.photos_view ph WHERE ph.photo_id IN (SELECT mtr_photo_id from MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id in (29807136) 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 (4288763 ) ) 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 (29807136) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1401689620, 'portfolio_id': 29807136}, {'photo_id': 1401689592, 'portfolio_id': 29807136}, {'photo_id': 1401689589, 'portfolio_id': 29807136}, {'photo_id': 1401689586, 'portfolio_id': 29807136}, {'photo_id': 1401689583, 'portfolio_id': 29807136}, {'photo_id': 1401689580, 'portfolio_id': 29807136}, {'photo_id': 1401689577, 'portfolio_id': 29807136}, {'photo_id': 1401689556, 'portfolio_id': 29807136}, {'photo_id': 1401689553, 'portfolio_id': 29807136}, {'photo_id': 1401689549, 'portfolio_id': 29807136}, {'photo_id': 1401689545, 'portfolio_id': 29807136}, {'photo_id': 1401689542, 'portfolio_id': 29807136}, {'photo_id': 1401689541, 'portfolio_id': 29807136}, {'photo_id': 1401689404, 'portfolio_id': 29807136}, {'photo_id': 1401689401, 'portfolio_id': 29807136}, {'photo_id': 1401689400, 'portfolio_id': 29807136}, {'photo_id': 1401689399, 'portfolio_id': 29807136}, {'photo_id': 1401689306, 'portfolio_id': 29807136}, {'photo_id': 1401689302, 'portfolio_id': 29807136}, {'photo_id': 1401689299, 'portfolio_id': 29807136}, {'photo_id': 1401689277, 'portfolio_id': 29807136}, {'photo_id': 1401689245, 'portfolio_id': 29807136}] map_portfolio_id_photo_id: {29807136: [1401689620, 1401689592, 1401689589, 1401689586, 1401689583, 1401689580, 1401689577, 1401689556, 1401689553, 1401689549, 1401689545, 1401689542, 1401689541, 1401689404, 1401689401, 1401689400, 1401689399, 1401689306, 1401689302, 1401689299, 1401689277, 1401689245]} ##### 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.019895553588867188 #### 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 Tue Dec 30 14:20:56 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 (29807136) 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 : 29807136 get user id for portfolio 29807136 get sub ptf for main ptf 29807136, type 3726 and hashtags ['environnement', 'Teint_Dans_La_Masse', 'plastique', 'kraft', 'mal_croppe', 'Carton_gris', 'autre_refus', 'Carton_brun', 'papier', 'flou', 'metal', 'cartonnette'] SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29807136 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Teint_Dans_La_Masse','plastique','kraft','mal_croppe','Carton_gris','autre_refus','Carton_brun','papier','flou','metal','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29807136 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Teint_Dans_La_Masse','plastique','kraft','mal_croppe','Carton_gris','autre_refus','Carton_brun','papier','flou','metal','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 29807136, 'sub_port_id': 29807150, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20381548, 'last_updated_at': datetime.datetime(2025, 12, 30, 14, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 14, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 14, 19, 26)}, 'autre_refus': {'main_port_id': 29807136, 'sub_port_id': 29807151, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20381549, 'last_updated_at': datetime.datetime(2025, 12, 30, 14, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 14, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 14, 19, 26)}, 'plastique': {'main_port_id': 29807136, 'sub_port_id': 29807152, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20381550, 'last_updated_at': datetime.datetime(2025, 12, 30, 14, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 14, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 14, 19, 26)}, 'Carton_brun': {'main_port_id': 29807136, 'sub_port_id': 29807153, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20381551, 'last_updated_at': datetime.datetime(2025, 12, 30, 14, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 14, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 14, 19, 26)}, 'papier': {'main_port_id': 29807136, 'sub_port_id': 29807154, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20381552, 'last_updated_at': datetime.datetime(2025, 12, 30, 14, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 14, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 14, 19, 26)}, 'metal': {'main_port_id': 29807136, 'sub_port_id': 29807155, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20381553, 'last_updated_at': datetime.datetime(2025, 12, 30, 14, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 14, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 14, 19, 26)}, 'environnement': {'main_port_id': 29807136, 'sub_port_id': 29807156, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20381554, 'last_updated_at': datetime.datetime(2025, 12, 30, 14, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 14, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 14, 19, 26)}, 'flou': {'main_port_id': 29807136, 'sub_port_id': 29807157, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20381555, 'last_updated_at': datetime.datetime(2025, 12, 30, 14, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 14, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 14, 19, 26)}, 'mal_croppe': {'main_port_id': 29807136, 'sub_port_id': 29807158, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20381556, 'last_updated_at': datetime.datetime(2025, 12, 30, 14, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 14, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 14, 19, 26)}, 'Carton_gris': {'main_port_id': 29807136, 'sub_port_id': 29807159, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20381557, 'last_updated_at': datetime.datetime(2025, 12, 30, 14, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 14, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 14, 19, 26)}, 'Teint_Dans_La_Masse': {'main_port_id': 29807136, 'sub_port_id': 29807160, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20381558, 'last_updated_at': datetime.datetime(2025, 12, 30, 14, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 14, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 14, 19, 26)}, 'kraft': {'main_port_id': 29807136, 'sub_port_id': 29807161, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20381559, 'last_updated_at': datetime.datetime(2025, 12, 30, 14, 19, 27), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 14, 19, 27), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 14, 19, 26)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29807150 , 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=29807136 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 (29807150) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29807136) result : ((1401689245,), (1401689277,), (1401689299,), (1401689302,), (1401689306,), (1401689399,), (1401689400,), (1401689401,), (1401689404,), (1401689541,), (1401689542,), (1401689545,), (1401689549,), (1401689553,), (1401689556,), (1401689577,), (1401689580,), (1401689583,), (1401689586,), (1401689589,), (1401689592,), (1401689620,)) 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 (1401689400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29807151 , 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=29807136 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 (29807151) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29807136) result : ((1401689245,), (1401689277,), (1401689299,), (1401689302,), (1401689306,), (1401689399,), (1401689400,), (1401689401,), (1401689404,), (1401689541,), (1401689542,), (1401689545,), (1401689549,), (1401689553,), (1401689556,), (1401689577,), (1401689580,), (1401689583,), (1401689586,), (1401689589,), (1401689592,), (1401689620,)) 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 (1401689400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29807152 , 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=29807136 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 (29807152) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29807136) result : ((1401689245,), (1401689277,), (1401689299,), (1401689302,), (1401689306,), (1401689399,), (1401689400,), (1401689401,), (1401689404,), (1401689541,), (1401689542,), (1401689545,), (1401689549,), (1401689553,), (1401689556,), (1401689577,), (1401689580,), (1401689583,), (1401689586,), (1401689589,), (1401689592,), (1401689620,)) 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 (1401689400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29807153 , 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=29807136 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 (29807153) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29807136) result : ((1401689245,), (1401689277,), (1401689299,), (1401689302,), (1401689306,), (1401689399,), (1401689400,), (1401689401,), (1401689404,), (1401689541,), (1401689542,), (1401689545,), (1401689549,), (1401689553,), (1401689556,), (1401689577,), (1401689580,), (1401689583,), (1401689586,), (1401689589,), (1401689592,), (1401689620,)) 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 (1401689400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29807154 , 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=29807136 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 (29807154) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29807136) result : ((1401689245,), (1401689277,), (1401689299,), (1401689302,), (1401689306,), (1401689399,), (1401689400,), (1401689401,), (1401689404,), (1401689541,), (1401689542,), (1401689545,), (1401689549,), (1401689553,), (1401689556,), (1401689577,), (1401689580,), (1401689583,), (1401689586,), (1401689589,), (1401689592,), (1401689620,)) 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 (1401689400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29807155 , 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=29807136 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 (29807155) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29807136) result : ((1401689245,), (1401689277,), (1401689299,), (1401689302,), (1401689306,), (1401689399,), (1401689400,), (1401689401,), (1401689404,), (1401689541,), (1401689542,), (1401689545,), (1401689549,), (1401689553,), (1401689556,), (1401689577,), (1401689580,), (1401689583,), (1401689586,), (1401689589,), (1401689592,), (1401689620,)) 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 (1401689400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29807156 , 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=29807136 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 (29807156) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29807136) result : ((1401689245,), (1401689277,), (1401689299,), (1401689302,), (1401689306,), (1401689399,), (1401689400,), (1401689401,), (1401689404,), (1401689541,), (1401689542,), (1401689545,), (1401689549,), (1401689553,), (1401689556,), (1401689577,), (1401689580,), (1401689583,), (1401689586,), (1401689589,), (1401689592,), (1401689620,)) 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 (1401689400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29807157 , 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=29807136 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 (29807157) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29807136) result : ((1401689245,), (1401689277,), (1401689299,), (1401689302,), (1401689306,), (1401689399,), (1401689400,), (1401689401,), (1401689404,), (1401689541,), (1401689542,), (1401689545,), (1401689549,), (1401689553,), (1401689556,), (1401689577,), (1401689580,), (1401689583,), (1401689586,), (1401689589,), (1401689592,), (1401689620,)) 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 (1401689400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29807158 , 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=29807136 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 (29807158) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29807136) result : ((1401689245,), (1401689277,), (1401689299,), (1401689302,), (1401689306,), (1401689399,), (1401689400,), (1401689401,), (1401689404,), (1401689541,), (1401689542,), (1401689545,), (1401689549,), (1401689553,), (1401689556,), (1401689577,), (1401689580,), (1401689583,), (1401689586,), (1401689589,), (1401689592,), (1401689620,)) 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 (1401689400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29807159 , 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=29807136 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 (29807159) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29807136) result : ((1401689245,), (1401689277,), (1401689299,), (1401689302,), (1401689306,), (1401689399,), (1401689400,), (1401689401,), (1401689404,), (1401689541,), (1401689542,), (1401689545,), (1401689549,), (1401689553,), (1401689556,), (1401689577,), (1401689580,), (1401689583,), (1401689586,), (1401689589,), (1401689592,), (1401689620,)) 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 (1401689400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29807160 , 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=29807136 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 (29807160) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29807136) result : ((1401689245,), (1401689277,), (1401689299,), (1401689302,), (1401689306,), (1401689399,), (1401689400,), (1401689401,), (1401689404,), (1401689541,), (1401689542,), (1401689545,), (1401689549,), (1401689553,), (1401689556,), (1401689577,), (1401689580,), (1401689583,), (1401689586,), (1401689589,), (1401689592,), (1401689620,)) 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 (1401689400) and cspi.crop_hashtag_id = chi.id; insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29807161 , 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=29807136 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 (29807161) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29807136) result : ((1401689245,), (1401689277,), (1401689299,), (1401689302,), (1401689306,), (1401689399,), (1401689400,), (1401689401,), (1401689404,), (1401689541,), (1401689542,), (1401689545,), (1401689549,), (1401689553,), (1401689556,), (1401689577,), (1401689580,), (1401689583,), (1401689586,), (1401689589,), (1401689592,), (1401689620,)) 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 (1401689400) and cspi.crop_hashtag_id = chi.id; To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29807136 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Teint_Dans_La_Masse','plastique','kraft','mal_croppe','Carton_gris','autre_refus','Carton_brun','papier','flou','metal','cartonnette')) AND mptpi.`min_score`=0.5 SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29807136 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('environnement','Teint_Dans_La_Masse','plastique','kraft','mal_croppe','Carton_gris','autre_refus','Carton_brun','papier','flou','metal','cartonnette')) AND mptpi.`min_score`=0.5 To do returned map {'cartonnette': {'main_port_id': 29807136, 'sub_port_id': 29807162, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20381560, 'last_updated_at': datetime.datetime(2025, 12, 30, 14, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 14, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 14, 19, 28)}, 'autre_refus': {'main_port_id': 29807136, 'sub_port_id': 29807163, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20381561, 'last_updated_at': datetime.datetime(2025, 12, 30, 14, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 14, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 14, 19, 28)}, 'plastique': {'main_port_id': 29807136, 'sub_port_id': 29807164, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20381562, 'last_updated_at': datetime.datetime(2025, 12, 30, 14, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 14, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 14, 19, 28)}, 'Carton_brun': {'main_port_id': 29807136, 'sub_port_id': 29807165, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20381563, 'last_updated_at': datetime.datetime(2025, 12, 30, 14, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 14, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 14, 19, 28)}, 'papier': {'main_port_id': 29807136, 'sub_port_id': 29807166, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20381564, 'last_updated_at': datetime.datetime(2025, 12, 30, 14, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 14, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 14, 19, 28)}, 'metal': {'main_port_id': 29807136, 'sub_port_id': 29807167, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20381565, 'last_updated_at': datetime.datetime(2025, 12, 30, 14, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 14, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 14, 19, 28)}, 'environnement': {'main_port_id': 29807136, 'sub_port_id': 29807168, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20381566, 'last_updated_at': datetime.datetime(2025, 12, 30, 14, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 14, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 14, 19, 28)}, 'flou': {'main_port_id': 29807136, 'sub_port_id': 29807169, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20381567, 'last_updated_at': datetime.datetime(2025, 12, 30, 14, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 14, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 14, 19, 28)}, 'mal_croppe': {'main_port_id': 29807136, 'sub_port_id': 29807170, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20381568, 'last_updated_at': datetime.datetime(2025, 12, 30, 14, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 14, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 14, 19, 28)}, 'Carton_gris': {'main_port_id': 29807136, 'sub_port_id': 29807171, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20381569, 'last_updated_at': datetime.datetime(2025, 12, 30, 14, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 14, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 14, 19, 28)}, 'Teint_Dans_La_Masse': {'main_port_id': 29807136, 'sub_port_id': 29807172, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20381570, 'last_updated_at': datetime.datetime(2025, 12, 30, 14, 19, 28), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 14, 19, 28), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 14, 19, 28)}, 'kraft': {'main_port_id': 29807136, 'sub_port_id': 29807173, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 20381571, 'last_updated_at': datetime.datetime(2025, 12, 30, 14, 19, 29), 'last_updated_at_desc': datetime.datetime(2025, 12, 30, 14, 19, 29), 'last_updated_at_asc': datetime.datetime(2025, 12, 30, 14, 19, 28)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29807162,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29807150 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29807163,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29807151 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29807164,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29807152 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29807165,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29807153 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29807166,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29807154 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29807167,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29807155 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29807168,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29807156 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29807169,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29807157 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29807170,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29807158 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29807171,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29807159 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29807172,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29807160 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29807173,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29807161 lien utilise dans velours : https://marlene.fotonower.com/velours/29807162,29807163,29807164,29807165,29807166,29807167,29807168,29807169,29807170,29807171,29807172,29807173?tags=cartonnette,autre_refus,plastique,Carton_brun,papier,metal,environnement,flou,mal_croppe,Carton_gris,Teint_Dans_La_Masse,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29807136]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1401689620, 1401689592, 1401689589, 1401689586, 1401689583, 1401689580, 1401689577, 1401689556, 1401689553, 1401689549, 1401689545, 1401689542, 1401689541] map_info['map_portfolio_photo'] : {29807136: [1401689620, 1401689592, 1401689589, 1401689586, 1401689583, 1401689580, 1401689577, 1401689556, 1401689553, 1401689549, 1401689545, 1401689542, 1401689541, 1401689404, 1401689401, 1401689400, 1401689399, 1401689306, 1401689302, 1401689299, 1401689277, 1401689245]} final : False mtd_id 4302 list_pids : [1401689620, 1401689592, 1401689589, 1401689586, 1401689583, 1401689580, 1401689577, 1401689556, 1401689553, 1401689549, 1401689545, 1401689542, 1401689541] Looping around the photos to save general results len do output : 1 /29807136. 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, '4288763') ('4302', '29807136', '1401689620', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689592', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689589', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689586', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689583', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689580', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689577', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689556', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689553', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689549', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689545', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689542', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689541', None, None, None, None, None, '4288763') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '29807136', "{'cartonnette': 29807150, 'autre_refus': 29807151, 'plastique': 29807152, 'Carton_brun': 29807153, 'papier': 29807154, 'metal': 29807155, 'environnement': 29807156, 'flou': 29807157, 'mal_croppe': 29807158, 'Carton_gris': 29807159, 'Teint_Dans_La_Masse': 29807160, 'kraft': 29807161}", None, None, None, None, '4288763'), ('4302', '29807136', '1401689620', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689592', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689589', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689586', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689583', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689580', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689577', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689556', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689553', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689549', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689545', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689542', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689541', None, None, None, None, None, '4288763')] time used for this insertion : 0.01797628402709961 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.5586893558502197 time spend to save output : 0.018311262130737305 total time spend for step 1 : 0.577000617980957 step2:final Tue Dec 30 14:20:56 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 (29807136) 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 29807136 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1401689306,1401689302,1401689299,1401689277,1401689245,1401689404,1401689401,1401689400,1401689399,1401689556,1401689553,1401689549,1401689545,1401689542,1401689541,1401689592,1401689589,1401689586,1401689583,1401689580,1401689577,1401689620); After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29807136]) Inside saveOutput : final : False verbose : True original output for save of step final : {1401689620: ('0.0',), 1401689592: ('0.0',), 1401689589: ('0.0',), 1401689586: ('0.0',), 1401689583: ('0.0',), 1401689580: ('0.0',), 1401689577: ('0.0',), 1401689556: ('0.0',), 1401689553: ('0.0',), 1401689549: ('0.0',), 1401689545: ('0.0',), 1401689542: ('0.0',), 1401689541: ('0.0',)} new output for save of step final : {1401689620: ('0.0',), 1401689592: ('0.0',), 1401689589: ('0.0',), 1401689586: ('0.0',), 1401689583: ('0.0',), 1401689580: ('0.0',), 1401689577: ('0.0',), 1401689556: ('0.0',), 1401689553: ('0.0',), 1401689549: ('0.0',), 1401689545: ('0.0',), 1401689542: ('0.0',), 1401689541: ('0.0',)} [1401689620, 1401689592, 1401689589, 1401689586, 1401689583, 1401689580, 1401689577, 1401689556, 1401689553, 1401689549, 1401689545, 1401689542, 1401689541] map_info['map_portfolio_photo'] : {29807136: [1401689620, 1401689592, 1401689589, 1401689586, 1401689583, 1401689580, 1401689577, 1401689556, 1401689553, 1401689549, 1401689545, 1401689542, 1401689541, 1401689404, 1401689401, 1401689400, 1401689399, 1401689306, 1401689302, 1401689299, 1401689277, 1401689245]} final : False mtd_id 4302 list_pids : [1401689620, 1401689592, 1401689589, 1401689586, 1401689583, 1401689580, 1401689577, 1401689556, 1401689553, 1401689549, 1401689545, 1401689542, 1401689541] Looping around the photos to save general results len do output : 13 /1401689620.Didn't retrieve data . /1401689592.Didn't retrieve data . /1401689589.Didn't retrieve data . /1401689586.Didn't retrieve data . /1401689583.Didn't retrieve data . /1401689580.Didn't retrieve data . /1401689577.Didn't retrieve data . /1401689556.Didn't retrieve data . /1401689553.Didn't retrieve data . /1401689549.Didn't retrieve data . /1401689545.Didn't retrieve data . /1401689542.Didn't retrieve data . /1401689541.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, '4288763') ('4302', '29807136', '1401689620', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689592', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689589', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689586', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689583', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689580', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689577', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689556', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689553', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689549', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689545', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689542', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689541', None, None, None, None, None, '4288763') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 39 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', '29807136', '1401689620', '0.0', None, None, None, None, '4288763'), ('4302', '29807136', '1401689592', '0.0', None, None, None, None, '4288763'), ('4302', '29807136', '1401689589', '0.0', None, None, None, None, '4288763'), ('4302', '29807136', '1401689586', '0.0', None, None, None, None, '4288763'), ('4302', '29807136', '1401689583', '0.0', None, None, None, None, '4288763'), ('4302', '29807136', '1401689580', '0.0', None, None, None, None, '4288763'), ('4302', '29807136', '1401689577', '0.0', None, None, None, None, '4288763'), ('4302', '29807136', '1401689556', '0.0', None, None, None, None, '4288763'), ('4302', '29807136', '1401689553', '0.0', None, None, None, None, '4288763'), ('4302', '29807136', '1401689549', '0.0', None, None, None, None, '4288763'), ('4302', '29807136', '1401689545', '0.0', None, None, None, None, '4288763'), ('4302', '29807136', '1401689542', '0.0', None, None, None, None, '4288763'), ('4302', '29807136', '1401689541', '0.0', None, None, None, None, '4288763')] time used for this insertion : 0.016132831573486328 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.06754660606384277 time spend to save output : 0.0168302059173584 total time spend for step 2 : 0.08437681198120117 step3:velours_tree Tue Dec 30 14:20:56 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 : {29807136: [{'cartonnette': 29807150, 'autre_refus': 29807151, 'plastique': 29807152, 'Carton_brun': 29807153, 'papier': 29807154, 'metal': 29807155, 'environnement': 29807156, 'flou': 29807157, 'mal_croppe': 29807158, 'Carton_gris': 29807159, 'Teint_Dans_La_Masse': 29807160, 'kraft': 29807161}]} input_args_next_step : {29807136: ()} output_args : {29807136: [{'cartonnette': 29807150, 'autre_refus': 29807151, 'plastique': 29807152, 'Carton_brun': 29807153, 'papier': 29807154, 'metal': 29807155, 'environnement': 29807156, 'flou': 29807157, 'mal_croppe': 29807158, 'Carton_gris': 29807159, 'Teint_Dans_La_Masse': 29807160, 'kraft': 29807161}]} args : 29807136 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 : ({'cartonnette': 29807150, 'autre_refus': 29807151, 'plastique': 29807152, 'Carton_brun': 29807153, 'papier': 29807154, 'metal': 29807155, 'environnement': 29807156, 'flou': 29807157, 'mal_croppe': 29807158, 'Carton_gris': 29807159, 'Teint_Dans_La_Masse': 29807160, 'kraft': 29807161},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29807136) 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([29807136]) 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.26706957817077637 time spend to save output : 4.291534423828125e-05 total time spend for step 3 : 0.26711249351501465 step4:send_mail_cod Tue Dec 30 14:20: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 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 : {1401689620: ('0.0',), 1401689592: ('0.0',), 1401689589: ('0.0',), 1401689586: ('0.0',), 1401689583: ('0.0',), 1401689580: ('0.0',), 1401689577: ('0.0',), 1401689556: ('0.0',), 1401689553: ('0.0',), 1401689549: ('0.0',), 1401689545: ('0.0',), 1401689542: ('0.0',), 1401689541: ('0.0',)} input_args_next_step : {1401689620: ()} output_args : {1401689620: ('0.0',), 1401689592: ('0.0',), 1401689589: ('0.0',), 1401689586: ('0.0',), 1401689583: ('0.0',), 1401689580: ('0.0',), 1401689577: ('0.0',), 1401689556: ('0.0',), 1401689553: ('0.0',), 1401689549: ('0.0',), 1401689545: ('0.0',), 1401689542: ('0.0',), 1401689541: ('0.0',)} args : 1401689620 depend.output_id : 0 input_args_next_step : {1401689620: ('0.0',), 1401689592: ()} output_args : {1401689620: ('0.0',), 1401689592: ('0.0',), 1401689589: ('0.0',), 1401689586: ('0.0',), 1401689583: ('0.0',), 1401689580: ('0.0',), 1401689577: ('0.0',), 1401689556: ('0.0',), 1401689553: ('0.0',), 1401689549: ('0.0',), 1401689545: ('0.0',), 1401689542: ('0.0',), 1401689541: ('0.0',)} args : 1401689592 depend.output_id : 0 input_args_next_step : {1401689620: ('0.0',), 1401689592: ('0.0',), 1401689589: ()} output_args : {1401689620: ('0.0',), 1401689592: ('0.0',), 1401689589: ('0.0',), 1401689586: ('0.0',), 1401689583: ('0.0',), 1401689580: ('0.0',), 1401689577: ('0.0',), 1401689556: ('0.0',), 1401689553: ('0.0',), 1401689549: ('0.0',), 1401689545: ('0.0',), 1401689542: ('0.0',), 1401689541: ('0.0',)} args : 1401689589 depend.output_id : 0 input_args_next_step : {1401689620: ('0.0',), 1401689592: ('0.0',), 1401689589: ('0.0',), 1401689586: ()} output_args : {1401689620: ('0.0',), 1401689592: ('0.0',), 1401689589: ('0.0',), 1401689586: ('0.0',), 1401689583: ('0.0',), 1401689580: ('0.0',), 1401689577: ('0.0',), 1401689556: ('0.0',), 1401689553: ('0.0',), 1401689549: ('0.0',), 1401689545: ('0.0',), 1401689542: ('0.0',), 1401689541: ('0.0',)} args : 1401689586 depend.output_id : 0 input_args_next_step : {1401689620: ('0.0',), 1401689592: ('0.0',), 1401689589: ('0.0',), 1401689586: ('0.0',), 1401689583: ()} output_args : {1401689620: ('0.0',), 1401689592: ('0.0',), 1401689589: ('0.0',), 1401689586: ('0.0',), 1401689583: ('0.0',), 1401689580: ('0.0',), 1401689577: ('0.0',), 1401689556: ('0.0',), 1401689553: ('0.0',), 1401689549: ('0.0',), 1401689545: ('0.0',), 1401689542: ('0.0',), 1401689541: ('0.0',)} args : 1401689583 depend.output_id : 0 input_args_next_step : {1401689620: ('0.0',), 1401689592: ('0.0',), 1401689589: ('0.0',), 1401689586: ('0.0',), 1401689583: ('0.0',), 1401689580: ()} output_args : {1401689620: ('0.0',), 1401689592: ('0.0',), 1401689589: ('0.0',), 1401689586: ('0.0',), 1401689583: ('0.0',), 1401689580: ('0.0',), 1401689577: ('0.0',), 1401689556: ('0.0',), 1401689553: ('0.0',), 1401689549: ('0.0',), 1401689545: ('0.0',), 1401689542: ('0.0',), 1401689541: ('0.0',)} args : 1401689580 depend.output_id : 0 input_args_next_step : {1401689620: ('0.0',), 1401689592: ('0.0',), 1401689589: ('0.0',), 1401689586: ('0.0',), 1401689583: ('0.0',), 1401689580: ('0.0',), 1401689577: ()} output_args : {1401689620: ('0.0',), 1401689592: ('0.0',), 1401689589: ('0.0',), 1401689586: ('0.0',), 1401689583: ('0.0',), 1401689580: ('0.0',), 1401689577: ('0.0',), 1401689556: ('0.0',), 1401689553: ('0.0',), 1401689549: ('0.0',), 1401689545: ('0.0',), 1401689542: ('0.0',), 1401689541: ('0.0',)} args : 1401689577 depend.output_id : 0 input_args_next_step : {1401689620: ('0.0',), 1401689592: ('0.0',), 1401689589: ('0.0',), 1401689586: ('0.0',), 1401689583: ('0.0',), 1401689580: ('0.0',), 1401689577: ('0.0',), 1401689556: ()} output_args : {1401689620: ('0.0',), 1401689592: ('0.0',), 1401689589: ('0.0',), 1401689586: ('0.0',), 1401689583: ('0.0',), 1401689580: ('0.0',), 1401689577: ('0.0',), 1401689556: ('0.0',), 1401689553: ('0.0',), 1401689549: ('0.0',), 1401689545: ('0.0',), 1401689542: ('0.0',), 1401689541: ('0.0',)} args : 1401689556 depend.output_id : 0 input_args_next_step : {1401689620: ('0.0',), 1401689592: ('0.0',), 1401689589: ('0.0',), 1401689586: ('0.0',), 1401689583: ('0.0',), 1401689580: ('0.0',), 1401689577: ('0.0',), 1401689556: ('0.0',), 1401689553: ()} output_args : {1401689620: ('0.0',), 1401689592: ('0.0',), 1401689589: ('0.0',), 1401689586: ('0.0',), 1401689583: ('0.0',), 1401689580: ('0.0',), 1401689577: ('0.0',), 1401689556: ('0.0',), 1401689553: ('0.0',), 1401689549: ('0.0',), 1401689545: ('0.0',), 1401689542: ('0.0',), 1401689541: ('0.0',)} args : 1401689553 depend.output_id : 0 input_args_next_step : {1401689620: ('0.0',), 1401689592: ('0.0',), 1401689589: ('0.0',), 1401689586: ('0.0',), 1401689583: ('0.0',), 1401689580: ('0.0',), 1401689577: ('0.0',), 1401689556: ('0.0',), 1401689553: ('0.0',), 1401689549: ()} output_args : {1401689620: ('0.0',), 1401689592: ('0.0',), 1401689589: ('0.0',), 1401689586: ('0.0',), 1401689583: ('0.0',), 1401689580: ('0.0',), 1401689577: ('0.0',), 1401689556: ('0.0',), 1401689553: ('0.0',), 1401689549: ('0.0',), 1401689545: ('0.0',), 1401689542: ('0.0',), 1401689541: ('0.0',)} args : 1401689549 depend.output_id : 0 input_args_next_step : {1401689620: ('0.0',), 1401689592: ('0.0',), 1401689589: ('0.0',), 1401689586: ('0.0',), 1401689583: ('0.0',), 1401689580: ('0.0',), 1401689577: ('0.0',), 1401689556: ('0.0',), 1401689553: ('0.0',), 1401689549: ('0.0',), 1401689545: ()} output_args : {1401689620: ('0.0',), 1401689592: ('0.0',), 1401689589: ('0.0',), 1401689586: ('0.0',), 1401689583: ('0.0',), 1401689580: ('0.0',), 1401689577: ('0.0',), 1401689556: ('0.0',), 1401689553: ('0.0',), 1401689549: ('0.0',), 1401689545: ('0.0',), 1401689542: ('0.0',), 1401689541: ('0.0',)} args : 1401689545 depend.output_id : 0 input_args_next_step : {1401689620: ('0.0',), 1401689592: ('0.0',), 1401689589: ('0.0',), 1401689586: ('0.0',), 1401689583: ('0.0',), 1401689580: ('0.0',), 1401689577: ('0.0',), 1401689556: ('0.0',), 1401689553: ('0.0',), 1401689549: ('0.0',), 1401689545: ('0.0',), 1401689542: ()} output_args : {1401689620: ('0.0',), 1401689592: ('0.0',), 1401689589: ('0.0',), 1401689586: ('0.0',), 1401689583: ('0.0',), 1401689580: ('0.0',), 1401689577: ('0.0',), 1401689556: ('0.0',), 1401689553: ('0.0',), 1401689549: ('0.0',), 1401689545: ('0.0',), 1401689542: ('0.0',), 1401689541: ('0.0',)} args : 1401689542 depend.output_id : 0 input_args_next_step : {1401689620: ('0.0',), 1401689592: ('0.0',), 1401689589: ('0.0',), 1401689586: ('0.0',), 1401689583: ('0.0',), 1401689580: ('0.0',), 1401689577: ('0.0',), 1401689556: ('0.0',), 1401689553: ('0.0',), 1401689549: ('0.0',), 1401689545: ('0.0',), 1401689542: ('0.0',), 1401689541: ()} output_args : {1401689620: ('0.0',), 1401689592: ('0.0',), 1401689589: ('0.0',), 1401689586: ('0.0',), 1401689583: ('0.0',), 1401689580: ('0.0',), 1401689577: ('0.0',), 1401689556: ('0.0',), 1401689553: ('0.0',), 1401689549: ('0.0',), 1401689545: ('0.0',), 1401689542: ('0.0',), 1401689541: ('0.0',)} args : 1401689541 depend.output_id : 0 Inconsistent number of input and output, step which parrallelize and manage error in input by avoiding sending an output for this data can't be used in tree dependencies of input and output complete output_args for input 3 : {29807136: [{'cartonnette': 29807150, 'autre_refus': 29807151, 'plastique': 29807152, 'Carton_brun': 29807153, 'papier': 29807154, 'metal': 29807155, 'environnement': 29807156, 'flou': 29807157, 'mal_croppe': 29807158, 'Carton_gris': 29807159, 'Teint_Dans_La_Masse': 29807160, 'kraft': 29807161}]} input_args_next_step : {1401689620: ('0.0',), 1401689592: ('0.0',), 1401689589: ('0.0',), 1401689586: ('0.0',), 1401689583: ('0.0',), 1401689580: ('0.0',), 1401689577: ('0.0',), 1401689556: ('0.0',), 1401689553: ('0.0',), 1401689549: ('0.0',), 1401689545: ('0.0',), 1401689542: ('0.0',), 1401689541: ('0.0',), 29807136: ()} output_args : {29807136: [{'cartonnette': 29807150, 'autre_refus': 29807151, 'plastique': 29807152, 'Carton_brun': 29807153, 'papier': 29807154, 'metal': 29807155, 'environnement': 29807156, 'flou': 29807157, 'mal_croppe': 29807158, 'Carton_gris': 29807159, 'Teint_Dans_La_Masse': 29807160, 'kraft': 29807161}]} args : 29807136 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 :14, first value : ('0.0',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29807136) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {} map_subphoto_mainphoto : {} dans la step send mail cod work_area: /home/admin/workarea/git/Velours/python in order to get the selector url, please entre the license of selector SELECT photo_id, url FROM MTRBack.photos_view ph WHERE photo_id IN (1401689620,1401689592,1401689589,1401689586,1401689583,1401689580,1401689577,1401689556,1401689553,1401689549,1401689545,1401689542,1401689541) Found this number of photos: 13 ##### Call download_photos : nb_thread : 5 begin to download photo : 1401689541 begin to download photo : 1401689549 begin to download photo : 1401689577 begin to download photo : 1401689586 begin to download photo : 1401689620 download finish for photo 1401689620 download finish for photo 1401689549 begin to download photo : 1401689553 download finish for photo 1401689577 begin to download photo : 1401689580 download finish for photo 1401689541 begin to download photo : 1401689542 download finish for photo 1401689586 begin to download photo : 1401689589 download finish for photo 1401689553 begin to download photo : 1401689556 download finish for photo 1401689589 begin to download photo : 1401689592 download finish for photo 1401689580 begin to download photo : 1401689583 download finish for photo 1401689542 begin to download photo : 1401689545 download finish for photo 1401689556 download finish for photo 1401689592 download finish for photo 1401689545 download finish for photo 1401689583 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette298071501767100857/ imagette298071511767100857/ imagette298071521767100857/ imagette298071551767100857/ imagette298071571767100857/ imagette298071581767100857/ imagette298071611767100857/ imagette298071531767100857/ imagette298071591767100857/ imagette298071601767100857/ length of list_filenames : 13 ; length of list_pids : 13 ; length of list_args : 13 results_Auto_P29807136_30-12-2025_14_20_57.pdf 29807150 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29807150 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298071501767100857 29807151 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29807151 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298071511767100857 29807152 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29807152 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298071521767100857 29807155 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29807155 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298071551767100857 29807157 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29807157 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298071571767100857 29807158 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29807158 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298071581767100857 29807161 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29807161 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298071611767100857 29807153 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29807153 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298071531767100857 29807159 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29807159 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298071591767100857 29807160 SELECT ph.photo_id,ph.url,ph.username,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29807160 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette298071601767100857 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29807136 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29807162,29807163,29807164,29807165,29807166,29807167,29807168,29807169,29807170,29807171,29807172,29807173?tags=cartonnette,autre_refus,plastique,Carton_brun,papier,metal,environnement,flou,mal_croppe,Carton_gris,Teint_Dans_La_Masse,kraft your option no_mail is active, we will not send the real mail to your client args[1401689620] : ('0.0',) no score found for photo 1401689620 We are sending mail with results at report@fotonower.com args[1401689592] : ('0.0',) no score found for photo 1401689592 We are sending mail with results at report@fotonower.com args[1401689589] : ('0.0',) no score found for photo 1401689589 We are sending mail with results at report@fotonower.com args[1401689586] : ('0.0',) no score found for photo 1401689586 We are sending mail with results at report@fotonower.com args[1401689583] : ('0.0',) no score found for photo 1401689583 We are sending mail with results at report@fotonower.com args[1401689580] : ('0.0',) no score found for photo 1401689580 We are sending mail with results at report@fotonower.com args[1401689577] : ('0.0',) no score found for photo 1401689577 We are sending mail with results at report@fotonower.com args[1401689556] : ('0.0',) no score found for photo 1401689556 We are sending mail with results at report@fotonower.com args[1401689553] : ('0.0',) no score found for photo 1401689553 We are sending mail with results at report@fotonower.com args[1401689549] : ('0.0',) no score found for photo 1401689549 We are sending mail with results at report@fotonower.com args[1401689545] : ('0.0',) no score found for photo 1401689545 We are sending mail with results at report@fotonower.com args[1401689542] : ('0.0',) no score found for photo 1401689542 We are sending mail with results at report@fotonower.com args[1401689541] : ('0.0',) no score found for photo 1401689541 We are sending mail with results at report@fotonower.com refus_total : 0.0 2022-04-13 10:29:59 0 SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29807136 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_P29807136_30-12-2025_14_20_57.pdf results_Auto_P29807136_30-12-2025_14_20_57.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29807136_30-12-2025_14_20_57.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','29807136','results_Auto_P29807136_30-12-2025_14_20_57.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29807136_30-12-2025_14_20_57.pdf','pdf','','0.12','0.0') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29807136]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1401689620, 1401689592, 1401689589, 1401689586, 1401689583, 1401689580, 1401689577, 1401689556, 1401689553, 1401689549, 1401689545, 1401689542, 1401689541] map_info['map_portfolio_photo'] : {29807136: [1401689620, 1401689592, 1401689589, 1401689586, 1401689583, 1401689580, 1401689577, 1401689556, 1401689553, 1401689549, 1401689545, 1401689542, 1401689541, 1401689404, 1401689401, 1401689400, 1401689399, 1401689306, 1401689302, 1401689299, 1401689277, 1401689245]} final : False mtd_id 4302 list_pids : [1401689620, 1401689592, 1401689589, 1401689586, 1401689583, 1401689580, 1401689577, 1401689556, 1401689553, 1401689549, 1401689545, 1401689542, 1401689541] 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, '4288763') ('4302', '29807136', '1401689620', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689592', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689589', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689586', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689583', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689580', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689577', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689556', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689553', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689549', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689545', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689542', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689541', None, None, None, None, None, '4288763') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 13 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29807136', '1401689620', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689592', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689589', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689586', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689583', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689580', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689577', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689556', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689553', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689549', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689545', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689542', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689541', None, None, None, None, None, '4288763')] time used for this insertion : 0.020578384399414062 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.822310447692871 time spend to save output : 0.020816802978515625 total time spend for step 4 : 1.8431272506713867 step5:split_time_score Tue Dec 30 14:20:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['29807136'] 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 : [('29807136',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29807136) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1401689620: {'path': 'temp/1767100857_3203438_1401689620_cbeb63e40779807e0370dd25dfd0a46d.jpg', 'extension': 'jpg'}, 1401689549: {'path': 'temp/1767100857_3203438_1401689549_e1f4739845e33ffcd858fc1a9441d61c.jpg', 'extension': 'jpg'}, 1401689553: {'path': 'temp/1767100857_3203438_1401689553_13f14316f64d26a7a0d7164f70f4b574.jpg', 'extension': 'jpg'}, 1401689556: {'path': 'temp/1767100857_3203438_1401689556_d3748385472e913166227fd8325f8048.jpg', 'extension': 'jpg'}, 1401689586: {'path': 'temp/1767100857_3203438_1401689586_753ce2ea1b9dca9212963cc981ef7838.jpg', 'extension': 'jpg'}, 1401689589: {'path': 'temp/1767100857_3203438_1401689589_0b15c2170754c04cdc331e1986693a83.jpg', 'extension': 'jpg'}, 1401689592: {'path': 'temp/1767100857_3203438_1401689592_14d8d3cb9142d57a7542a1948b1709b0.jpg', 'extension': 'jpg'}, 1401689541: {'path': 'temp/1767100857_3203438_1401689541_8885f45f9c30ea2b0829db57ddaf275a.jpg', 'extension': 'jpg'}, 1401689542: {'path': 'temp/1767100857_3203438_1401689542_a51ed576ec7f7af2bef2049f170f719e.jpg', 'extension': 'jpg'}, 1401689545: {'path': 'temp/1767100857_3203438_1401689545_16457cbae84e3fd65ec275de20eab902.jpg', 'extension': 'jpg'}, 1401689577: {'path': 'temp/1767100857_3203438_1401689577_06784ccb7853e2e9ac9c04c380b488cb.jpg', 'extension': 'jpg'}, 1401689580: {'path': 'temp/1767100857_3203438_1401689580_71db50d872b893b69b186bf5389b2889.jpg', 'extension': 'jpg'}, 1401689583: {'path': 'temp/1767100857_3203438_1401689583_83ab7e2ddcf71b42c5f9188a5a735283.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 = 29807136; (('arc_en_ciel_jrm_live',), ('arc_en_ciel_jrm',)) TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 861, 'mtr_user_id': 31, 'name': 'Rungis_class_dechets_1212', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'Rungis_Aluminium,Rungis_Carton,Rungis_Papier,Rungis_Plastique_clair,Rungis_Plastique_dur,Rungis_Plastique_fonce,Rungis_Tapis_vide,Rungis_Tetrapak', 'svm_portfolios_learning': '1160730,571842,571844,571839,571933,571840,571841,572307', 'photo_hashtag_type': 999, 'photo_desc_type': 3963, 'type_classification': 'caffe', 'hashtag_id_list': '2107751280,2107750907,2107750908,2107750909,2107750910,2107750911,2107750912,2107750913'}] thcls : [{'id': 758, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 856, 'photo_desc_type': 3853, 'type_classification': 'caffe', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] select SUBSTRING(ph.text,16,2) as h, count(*) from MTRUser.mtr_portfolio_photos mpp inner join MTRBack.photos_view ph on mpp.mtr_photo_id = ph.photo_id where mpp.mtr_portfolio_id = 29807136 group by h (('14', 22),) SELECT ph.photo_id,ph.url,ph.username,ph.uploaded_at,ph.text FROM MTRBack.photos_view ph, MTRUser.mtr_portfolio_photos mpp WHERE ph.photo_id=mpp.mtr_photo_id AND mpp.mtr_portfolio_id=29807136 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 (29807136) 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 (29807136) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 30122025 29807136 Nombre de photos uploadées : 22 / 23040 (0%) 30122025 29807136 Nombre de photos taguées (types de déchets): 0 / 22 (0%) 30122025 29807136 Nombre de photos taguées (volume) : 0 / 22 (0%) [{'photo_id': 1401689306, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/aa049307f604f64d0b8d84187f228d53.jpg', 'username': None, 'uploaded_at': 1767100567, 'text': 'image_30122025_14_15_03_10145.jpg'}, {'photo_id': 1401689302, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/f70a9f0cafb5dfd67248fa73afda8a1f.jpg', 'username': None, 'uploaded_at': 1767100567, 'text': 'image_30122025_14_15_14_10140.jpg'}, {'photo_id': 1401689299, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/9cab72d1a5160d60b0e2d3b8c4738d3e.jpg', 'username': None, 'uploaded_at': 1767100567, 'text': 'image_30122025_14_15_24_10143.jpg'}, {'photo_id': 1401689277, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/30/36246954630908662c7aac93a71b6ca9.jpg', 'username': None, 'uploaded_at': 1767100567, 'text': 'image_30122025_14_15_34_10144.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.1920928955078125e-06 elapsed_time : order_list_meta_photo_and_scores 5.0067901611328125e-06 ?????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.001093149185180664 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29807136, '2025-12-30' ) 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-12-30' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2809232,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.25527095794677734 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= 2809232 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2809232, 'dashboard_run_id': 2819539, 'mtr_portfolio_id': 29790877, 'dashboard_result_id': 18836324, '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_P29790877_30-12-2025_05_54_27.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29790879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29790880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29790881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29790882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29790883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29790884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29790885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29790886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29790887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29790888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29790889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29790890, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2819539, 'mtr_portfolio_id': 29790983, 'dashboard_result_id': 18836325, '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_P29790983_30-12-2025_05_55_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791034, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2819539, 'mtr_portfolio_id': 29791397, 'dashboard_result_id': 18836326, '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_P29791397_30-12-2025_05_55_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29791400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791411, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2819539, 'mtr_portfolio_id': 29791790, 'dashboard_result_id': 18836327, '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_P29791790_30-12-2025_05_55_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791809, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2819539, 'mtr_portfolio_id': 29792732, 'dashboard_result_id': 18836328, '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_P29792732_30-12-2025_05_56_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29792734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29792735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29792736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29792737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29792738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29792739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29792740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29792741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29792742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29792743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29792744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29792745, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2819539, 'mtr_portfolio_id': 29795877, 'dashboard_result_id': 18836329, '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_P29795877_30-12-2025_09_50_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29795878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29795879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29795880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29795881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29795882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29795883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29795884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29795885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29795886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29795887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29795888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29795889, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2819539, 'mtr_portfolio_id': 29797237, 'dashboard_result_id': 18836330, '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_P29797237_30-12-2025_10_39_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29797246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797251, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2819539, 'mtr_portfolio_id': 29797610, 'dashboard_result_id': 18836331, '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_P29797610_30-12-2025_10_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29797618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797627, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797629, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2819539, 'mtr_portfolio_id': 29798325, 'dashboard_result_id': 18836332, '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_P29798325_30-12-2025_11_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29798335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29798336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29798337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29798338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29798339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29798340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29798341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29798342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29798343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29798344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29798345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29798346, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2819539, 'mtr_portfolio_id': 29799025, 'dashboard_result_id': 18836333, '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_P29799025_30-12-2025_11_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29799061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799072, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2819539, 'mtr_portfolio_id': 29799682, 'dashboard_result_id': 18836334, '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_P29799682_30-12-2025_11_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799733, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29799734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799735, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799742, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2819539, 'mtr_portfolio_id': 29800360, 'dashboard_result_id': 18836335, '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_P29800360_30-12-2025_11_47_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29800377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800378, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800386, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800388, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2819539, 'mtr_portfolio_id': 29800908, 'dashboard_result_id': 18836336, '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_P29800908_30-12-2025_12_05_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800916, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29800924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800925, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800927, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2819539, 'mtr_portfolio_id': 29801565, 'dashboard_result_id': 18836337, '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_P29801565_30-12-2025_12_16_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29801569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29801570, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29801571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29801572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29801573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29801574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29801575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29801576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29801577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29801578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29801579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29801580, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2819539, 'mtr_portfolio_id': 29802386, 'dashboard_result_id': 18836338, '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_P29802386_30-12-2025_12_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29802393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29802394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29802395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29802396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29802397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29802398, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29802399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29802400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29802401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29802402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29802403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29802404, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2819539, 'mtr_portfolio_id': 29803120, 'dashboard_result_id': 18836339, '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_P29803120_30-12-2025_12_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803161, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803163, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803172, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2819539, 'mtr_portfolio_id': 29803763, 'dashboard_result_id': 18836340, '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_P29803763_30-12-2025_13_07_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803798, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803805, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2819539, 'mtr_portfolio_id': 29804529, 'dashboard_result_id': 18836341, '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_P29804529_30-12-2025_13_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29804536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29804537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29804538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29804539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29804540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29804541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29804542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29804543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29804544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29804545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29804546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29804547, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2819539, 'mtr_portfolio_id': 29804985, 'dashboard_result_id': 18836342, '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_P29804985_30-12-2025_13_39_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805012, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2819539, 'mtr_portfolio_id': 29805655, 'dashboard_result_id': 18836343, '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_P29805655_30-12-2025_13_46_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805675, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805677, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2819539, 'mtr_portfolio_id': 29806068, 'dashboard_result_id': 18836344, '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_P29806068_30-12-2025_14_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806102, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806106, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29806108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806112, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2819539, 'mtr_portfolio_id': 29806405, 'dashboard_result_id': 18836345, '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_P29806405_30-12-2025_14_19_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29806430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806441, 'pht': 3726}}"}, {'dashboat_entry_day': 2809232, 'dashboard_run_id': 2819539, 'mtr_portfolio_id': 29807136, 'dashboard_result_id': 18836346, '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_P29807136_30-12-2025_14_19_30.pdf'}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29790877 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': 4286652, 'mtr_portfolio_id': 29790877, 'created_at': datetime.datetime(2025, 12, 30, 5, 54, 26), 'result': '0.0348694091114477', 'result_long': None, 'result_double': None}] Qualite : 0.0348694091114477 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29790877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29790877_30-12-2025_05_54_27.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29790877 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_P29790877_30-12-2025_05_54_27.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29790879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29790880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29790881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29790882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29790883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29790884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29790885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29790886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29790887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29790888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29790889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29790890, 'pht': 3726}}" where mtr_portfolio_id = 29790877 and dashboard_run_id = 2819539 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`=29790877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18836324, 0.0348694091114477, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29790877_30-12-2025_05_54_27.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29790879, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29790880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29790881, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29790882, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29790883, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29790884, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29790885, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29790886, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29790887, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29790888, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29790889, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29790890, '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 = 29790983 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': 4286653, 'mtr_portfolio_id': 29790983, 'created_at': datetime.datetime(2025, 12, 30, 5, 54, 57), 'result': '0.0463877614951028', 'result_long': None, 'result_double': None}] Qualite : 0.0463877614951028 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29790983 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29790983_30-12-2025_05_55_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29790983 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_P29790983_30-12-2025_05_55_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791034, 'pht': 3726}}" where mtr_portfolio_id = 29790983 and dashboard_run_id = 2819539 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`=29790983 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18836325, 0.0463877614951028, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29790983_30-12-2025_05_55_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791023, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791024, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791025, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791026, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791027, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791028, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791029, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791030, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791031, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791032, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791033, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791034, '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 = 29791397 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': 4286654, 'mtr_portfolio_id': 29791397, 'created_at': datetime.datetime(2025, 12, 30, 5, 55, 30), 'result': '0.0505279555715365', 'result_long': None, 'result_double': None}] Qualite : 0.0505279555715365 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29791397 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29791397_30-12-2025_05_55_32.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29791397 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_P29791397_30-12-2025_05_55_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29791400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791411, 'pht': 3726}}" where mtr_portfolio_id = 29791397 and dashboard_run_id = 2819539 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`=29791397 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18836326, 0.0505279555715365, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29791397_30-12-2025_05_55_32.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29791400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791402, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791403, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791404, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791405, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791406, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791407, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791408, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791409, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791410, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791411, '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 = 29791790 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': 4286655, 'mtr_portfolio_id': 29791790, 'created_at': datetime.datetime(2025, 12, 30, 5, 55, 40), 'result': '0.06145194760347519', 'result_long': None, 'result_double': None}] Qualite : 0.06145194760347519 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29791790 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29791790_30-12-2025_05_55_43.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29791790 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_P29791790_30-12-2025_05_55_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791809, 'pht': 3726}}" where mtr_portfolio_id = 29791790 and dashboard_run_id = 2819539 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`=29791790 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18836327, 0.06145194760347519, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29791790_30-12-2025_05_55_43.pdf', 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29791798, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29791799, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29791800, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29791801, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29791802, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29791803, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29791804, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29791805, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29791806, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29791807, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29791808, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29791809, '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 = 29792732 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': 4286656, 'mtr_portfolio_id': 29792732, 'created_at': datetime.datetime(2025, 12, 30, 5, 56), 'result': '0.04424892577297573', 'result_long': None, 'result_double': None}] Qualite : 0.04424892577297573 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29792732 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29792732_30-12-2025_05_56_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29792732 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_P29792732_30-12-2025_05_56_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29792734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29792735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29792736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29792737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29792738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29792739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29792740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29792741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29792742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29792743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29792744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29792745, 'pht': 3726}}" where mtr_portfolio_id = 29792732 and dashboard_run_id = 2819539 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`=29792732 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18836328, 0.04424892577297573, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29792732_30-12-2025_05_56_02.pdf', 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29792734, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29792735, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29792736, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29792737, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29792738, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29792739, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29792740, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29792741, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29792742, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29792743, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29792744, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29792745, '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 = 29795877 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': 4287149, 'mtr_portfolio_id': 29795877, 'created_at': datetime.datetime(2025, 12, 30, 9, 50, 58), 'result': '0.039355367116025095', 'result_long': None, 'result_double': None}] Qualite : 0.039355367116025095 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29795877 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29795877_30-12-2025_09_50_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29795877 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_P29795877_30-12-2025_09_50_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29795878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29795879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29795880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29795881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29795882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29795883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29795884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29795885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29795886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29795887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29795888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29795889, 'pht': 3726}}" where mtr_portfolio_id = 29795877 and dashboard_run_id = 2819539 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`=29795877 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18836329, 0.039355367116025095, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29795877_30-12-2025_09_50_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29795878, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29795879, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29795880, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29795881, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29795882, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29795883, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29795884, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29795885, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29795886, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29795887, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29795888, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29795889, '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 = 29797237 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': 4287322, 'mtr_portfolio_id': 29797237, 'created_at': datetime.datetime(2025, 12, 30, 10, 38, 59), 'result': '0.033921253396910656', 'result_long': None, 'result_double': None}] Qualite : 0.033921253396910656 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29797237 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29797237_30-12-2025_10_39_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29797237 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_P29797237_30-12-2025_10_39_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29797246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797251, 'pht': 3726}}" where mtr_portfolio_id = 29797237 and dashboard_run_id = 2819539 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`=29797237 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18836330, 0.033921253396910656, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29797237_30-12-2025_10_39_00.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797240, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797241, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797242, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797243, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797244, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797245, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29797246, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797247, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797248, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797249, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797250, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797251, '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 = 29797610 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': 4287387, 'mtr_portfolio_id': 29797610, 'created_at': datetime.datetime(2025, 12, 30, 10, 46, 59), 'result': '0.02814284116711131', 'result_long': None, 'result_double': None}] Qualite : 0.02814284116711131 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29797610 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29797610_30-12-2025_10_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29797610 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_P29797610_30-12-2025_10_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29797618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797627, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797629, 'pht': 3726}}" where mtr_portfolio_id = 29797610 and dashboard_run_id = 2819539 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`=29797610 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18836331, 0.02814284116711131, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29797610_30-12-2025_10_47_00.pdf', 'flou': {'hashtag': 'flou', 'sub_port_id': 29797618, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29797619, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29797620, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29797621, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29797622, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29797623, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29797624, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29797625, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29797626, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29797627, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29797628, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29797629, '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 = 29798325 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': 4287497, 'mtr_portfolio_id': 29798325, 'created_at': datetime.datetime(2025, 12, 30, 11, 3), 'result': '0.04468246908718581', 'result_long': None, 'result_double': None}] Qualite : 0.04468246908718581 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29798325 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29798325_30-12-2025_11_03_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29798325 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_P29798325_30-12-2025_11_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29798335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29798336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29798337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29798338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29798339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29798340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29798341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29798342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29798343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29798344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29798345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29798346, 'pht': 3726}}" where mtr_portfolio_id = 29798325 and dashboard_run_id = 2819539 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`=29798325 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18836332, 0.04468246908718581, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29798325_30-12-2025_11_03_00.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29798335, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29798336, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29798337, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29798338, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29798339, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29798340, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29798341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29798342, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29798343, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29798344, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29798345, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29798346, '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 = 29799025 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': 4287585, 'mtr_portfolio_id': 29799025, 'created_at': datetime.datetime(2025, 12, 30, 11, 16, 59), 'result': '0.08667658362391771', 'result_long': None, 'result_double': None}] Qualite : 0.08667658362391771 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29799025 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29799025_30-12-2025_11_17_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29799025 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_P29799025_30-12-2025_11_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29799061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799072, 'pht': 3726}}" where mtr_portfolio_id = 29799025 and dashboard_run_id = 2819539 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`=29799025 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18836333, 0.08667658362391771, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29799025_30-12-2025_11_17_00.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29799061, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799062, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799063, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799064, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799065, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799066, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799067, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799068, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799069, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799070, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799071, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799072, '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 = 29799682 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': 4287640, 'mtr_portfolio_id': 29799682, 'created_at': datetime.datetime(2025, 12, 30, 11, 34, 59), 'result': '0.06698004484459952', 'result_long': None, 'result_double': None}] Qualite : 0.06698004484459952 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29799682 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29799682_30-12-2025_11_35_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29799682 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_P29799682_30-12-2025_11_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799733, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29799734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799735, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799742, 'pht': 3726}}" where mtr_portfolio_id = 29799682 and dashboard_run_id = 2819539 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`=29799682 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18836334, 0.06698004484459952, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29799682_30-12-2025_11_35_00.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29799731, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29799732, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29799733, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29799734, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29799735, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29799736, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29799737, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29799738, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29799739, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29799740, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29799741, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29799742, '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 = 29800360 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': 4287740, 'mtr_portfolio_id': 29800360, 'created_at': datetime.datetime(2025, 12, 30, 11, 46, 59), 'result': '0.09044129800279434', 'result_long': None, 'result_double': None}] Qualite : 0.09044129800279434 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29800360 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29800360_30-12-2025_11_47_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29800360 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_P29800360_30-12-2025_11_47_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29800377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800378, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800386, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800388, 'pht': 3726}}" where mtr_portfolio_id = 29800360 and dashboard_run_id = 2819539 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`=29800360 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18836335, 0.09044129800279434, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29800360_30-12-2025_11_47_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29800377, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800378, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800379, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800380, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800381, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800382, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800383, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800384, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800385, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800386, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800387, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800388, '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 = 29800908 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': 4287857, 'mtr_portfolio_id': 29800908, 'created_at': datetime.datetime(2025, 12, 30, 12, 5, 30), 'result': '0.04178504958311081', 'result_long': None, 'result_double': None}] Qualite : 0.04178504958311081 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29800908 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29800908_30-12-2025_12_05_30.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29800908 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_P29800908_30-12-2025_12_05_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800916, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29800924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800925, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800927, 'pht': 3726}}" where mtr_portfolio_id = 29800908 and dashboard_run_id = 2819539 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`=29800908 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18836336, 0.04178504958311081, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29800908_30-12-2025_12_05_30.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29800915, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29800916, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29800917, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29800918, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29800919, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29800920, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29800922, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29800923, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29800924, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29800925, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29800926, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29800927, '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 = 29801565 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': 4287995, 'mtr_portfolio_id': 29801565, 'created_at': datetime.datetime(2025, 12, 30, 12, 16, 30), 'result': '0.061738346351304985', 'result_long': None, 'result_double': None}] Qualite : 0.061738346351304985 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29801565 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29801565_30-12-2025_12_16_31.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29801565 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_P29801565_30-12-2025_12_16_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29801569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29801570, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29801571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29801572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29801573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29801574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29801575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29801576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29801577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29801578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29801579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29801580, 'pht': 3726}}" where mtr_portfolio_id = 29801565 and dashboard_run_id = 2819539 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`=29801565 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18836337, 0.061738346351304985, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29801565_30-12-2025_12_16_31.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29801569, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29801570, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29801571, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29801572, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29801573, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29801574, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29801575, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29801576, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29801577, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29801578, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29801579, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29801580, '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 = 29802386 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': 4288100, 'mtr_portfolio_id': 29802386, 'created_at': datetime.datetime(2025, 12, 30, 12, 32, 58), 'result': '0.10020094194934427', 'result_long': None, 'result_double': None}] Qualite : 0.10020094194934427 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29802386 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29802386_30-12-2025_12_32_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29802386 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_P29802386_30-12-2025_12_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29802393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29802394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29802395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29802396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29802397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29802398, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29802399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29802400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29802401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29802402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29802403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29802404, 'pht': 3726}}" where mtr_portfolio_id = 29802386 and dashboard_run_id = 2819539 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`=29802386 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18836338, 0.10020094194934427, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29802386_30-12-2025_12_32_58.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29802393, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29802394, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29802395, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29802396, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29802397, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29802398, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29802399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29802400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29802401, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29802402, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29802403, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29802404, '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 = 29803120 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': 4288207, 'mtr_portfolio_id': 29803120, 'created_at': datetime.datetime(2025, 12, 30, 12, 46, 57), 'result': '0.06914954905671847', 'result_long': None, 'result_double': None}] Qualite : 0.06914954905671847 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29803120 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29803120_30-12-2025_12_46_58.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29803120 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_P29803120_30-12-2025_12_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803161, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803163, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803172, 'pht': 3726}}" where mtr_portfolio_id = 29803120 and dashboard_run_id = 2819539 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`=29803120 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18836339, 0.06914954905671847, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29803120_30-12-2025_12_46_58.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803161, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803162, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803163, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803164, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803165, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803166, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803167, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803168, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803169, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803170, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803171, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803172, '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 = 29803763 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': 4288276, 'mtr_portfolio_id': 29803763, 'created_at': datetime.datetime(2025, 12, 30, 13, 7), 'result': '0.060443862108655634', 'result_long': None, 'result_double': None}] Qualite : 0.060443862108655634 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29803763 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29803763_30-12-2025_13_07_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29803763 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_P29803763_30-12-2025_13_07_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803798, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803805, 'pht': 3726}}" where mtr_portfolio_id = 29803763 and dashboard_run_id = 2819539 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`=29803763 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18836340, 0.060443862108655634, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29803763_30-12-2025_13_07_01.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29803794, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29803795, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29803796, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29803797, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29803798, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29803799, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29803800, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29803801, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29803802, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29803803, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29803804, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29803805, '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 = 29804529 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': 4288429, 'mtr_portfolio_id': 29804529, 'created_at': datetime.datetime(2025, 12, 30, 13, 18, 59), 'result': '0.0690374605124261', 'result_long': None, 'result_double': None}] Qualite : 0.0690374605124261 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29804529 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29804529_30-12-2025_13_18_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29804529 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_P29804529_30-12-2025_13_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29804536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29804537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29804538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29804539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29804540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29804541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29804542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29804543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29804544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29804545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29804546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29804547, 'pht': 3726}}" where mtr_portfolio_id = 29804529 and dashboard_run_id = 2819539 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`=29804529 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18836341, 0.0690374605124261, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29804529_30-12-2025_13_18_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29804536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29804537, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29804538, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29804539, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29804540, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29804541, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29804542, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29804543, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29804544, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29804545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29804546, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29804547, '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 = 29804985 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': 4288482, 'mtr_portfolio_id': 29804985, 'created_at': datetime.datetime(2025, 12, 30, 13, 38, 59), 'result': '0.07868173997295111', 'result_long': None, 'result_double': None}] Qualite : 0.07868173997295111 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29804985 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29804985_30-12-2025_13_39_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29804985 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_P29804985_30-12-2025_13_39_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805012, 'pht': 3726}}" where mtr_portfolio_id = 29804985 and dashboard_run_id = 2819539 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`=29804985 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18836342, 0.07868173997295111, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29804985_30-12-2025_13_39_00.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805001, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805002, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805003, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805004, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805005, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805006, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805007, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805008, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805009, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805010, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805011, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805012, '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 = 29805655 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': 4288574, 'mtr_portfolio_id': 29805655, 'created_at': datetime.datetime(2025, 12, 30, 13, 46, 29), 'result': '0.07467653211303711', 'result_long': None, 'result_double': None}] Qualite : 0.07467653211303711 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29805655 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29805655_30-12-2025_13_46_29.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29805655 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_P29805655_30-12-2025_13_46_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805675, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805677, 'pht': 3726}}" where mtr_portfolio_id = 29805655 and dashboard_run_id = 2819539 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`=29805655 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18836343, 0.07467653211303711, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29805655_30-12-2025_13_46_29.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29805666, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29805667, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29805668, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29805669, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29805670, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29805671, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29805672, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29805673, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29805674, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29805675, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29805676, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29805677, '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 = 29806068 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': 4288620, 'mtr_portfolio_id': 29806068, 'created_at': datetime.datetime(2025, 12, 30, 14, 2, 58), 'result': '0.041353131115149946', 'result_long': None, 'result_double': None}] Qualite : 0.041353131115149946 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29806068 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29806068_30-12-2025_14_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29806068 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_P29806068_30-12-2025_14_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806102, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806106, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29806108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806112, 'pht': 3726}}" where mtr_portfolio_id = 29806068 and dashboard_run_id = 2819539 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`=29806068 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18836344, 0.041353131115149946, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29806068_30-12-2025_14_02_59.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806101, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806102, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806103, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806104, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806105, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806106, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806107, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29806108, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806109, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806110, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806111, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806112, '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 = 29806405 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': 4288693, 'mtr_portfolio_id': 29806405, 'created_at': datetime.datetime(2025, 12, 30, 14, 19, 1), 'result': '0.05856573578394818', 'result_long': None, 'result_double': None}] Qualite : 0.05856573578394818 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29806405 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29806405_30-12-2025_14_19_02.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29806405 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_P29806405_30-12-2025_14_19_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29806430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806441, 'pht': 3726}}" where mtr_portfolio_id = 29806405 and dashboard_run_id = 2819539 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`=29806405 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18836345, 0.05856573578394818, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29806405_30-12-2025_14_19_02.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29806430, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29806431, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29806432, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29806433, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29806434, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29806435, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29806436, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29806437, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29806438, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29806439, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29806440, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29806441, '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 = 29807136 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 = 29807136 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 = 29807136 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29807136 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 = 29807136 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 = 29807136 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29807136_30-12-2025_14_20_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29807136 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_P29807136_30-12-2025_14_20_57.pdf'}" where mtr_portfolio_id = 29807136 and dashboard_run_id = 2819539 SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29790877,29790983,29791397,29791790,29792732,29795877,29797237,29797610,29798325,29799025,29799682,29800360,29800908,29801565,29802386,29803120,29803763,29804529,29804985,29805655,29806068,29806405,29807136) result : ((1401601673,), (1401601679,), (1401601753,), (1401601754,), (1401601755,), (1401601757,), (1401601778,), (1401601779,), (1401601780,), (1401601800,), (1401601804,), (1401601808,), (1401601837,), (1401601841,), (1401601845,), (1401601830,), (1401601831,), (1401601834,), (1401601851,), (1401601852,), (1401601854,), (1401601858,), (1401601887,), (1401601888,), (1401601889,), (1401601912,), (1401601914,), (1401601916,), (1401601918,), (1401601944,), (1401601946,), (1401601948,), (1401601950,), (1401601952,), (1401601954,), (1401601962,), (1401601965,), (1401601968,), (1401601970,), (1401601998,), (1401602028,), (1401602058,), (1401602416,), (1401602449,), (1401602477,), (1401602480,), (1401602484,), (1401602485,), (1401602637,), (1401602638,), (1401602639,), (1401602642,), (1401602647,), (1401602650,), (1401602666,), (1401602668,), (1401602670,), (1401602692,), (1401602693,), (1401602694,), (1401602695,), (1401602719,), (1401602720,), (1401602722,), (1401602727,), (1401602731,), (1401602735,), (1401602746,), (1401602748,), (1401602753,), (1401602756,), (1401602760,), (1401602767,), (1401602773,), (1401602775,), (1401602777,), (1401602781,), (1401602785,), (1401602786,), (1401602789,), (1401602792,), (1401602796,), (1401602800,), (1401602803,), (1401602805,), (1401602808,), (1401602809,), (1401602811,), (1401602815,), (1401602874,), (1401602868,), (1401602870,), (1401602872,), (1401602896,), (1401602899,), (1401602901,), (1401602904,), (1401602908,), (1401602920,), (1401602921,), (1401602954,), (1401602957,), (1401602991,), (1401602992,), (1401602993,), (1401602996,), (1401602999,), (1401603009,), (1401603011,), (1401603015,), (1401603020,), (1401603025,), (1401603029,), (1401603032,), (1401603038,), (1401603040,), (1401603059,), (1401603060,), (1401603061,), (1401603082,), (1401603083,), (1401603084,), (1401603087,), (1401603102,), (1401603104,), (1401603108,), (1401603114,), (1401603155,), (1401603157,), (1401603158,), (1401603160,), (1401603162,), (1401603165,), (1401603176,), (1401603192,), (1401603194,), (1401603196,), (1401603199,), (1401603203,), (1401603216,), (1401603219,), (1401603222,), (1401603225,), (1401603230,), (1401603254,), (1401603258,), (1401603311,), (1401603312,), (1401603329,), (1401603331,), (1401603334,), (1401603246,), (1401603247,), (1401603248,), (1401603251,), (1401603267,), (1401603269,), (1401603272,), (1401603276,), (1401603280,), (1401603285,), (1401603299,), (1401603302,), (1401603307,), (1401603309,), (1401603322,), (1401603324,), (1401603327,), (1401603340,), (1401603390,), (1401603392,), (1401603432,), (1401603434,), (1401603435,), (1401603437,), (1401603455,), (1401603457,), (1401603460,), (1401603463,), (1401603485,), (1401603493,), (1401603499,), (1401603503,), (1401603508,), (1401603519,), (1401603522,), (1401603524,), (1401603547,), (1401603549,), (1401603553,), (1401603557,), (1401603560,), (1401603563,), (1401603568,), (1401603573,), (1401603575,), (1401603579,), (1401603581,), (1401603585,), (1401603587,), (1401603598,), (1401603600,), (1401603601,), (1401603643,), (1401603646,), (1401603650,), (1401603656,), (1401603660,), (1401603663,), (1401603671,), (1401603697,), (1401606743,), (1401606683,), (1401606740,), (1401606756,), (1401606758,), (1401606760,), (1401606761,), (1401606763,), (1401606777,), (1401606779,), (1401606782,), (1401606784,), (1401606786,), (1401606788,), (1401606796,), (1401606798,), (1401606801,), (1401606803,), (1401606805,), (1401606808,), (1401606812,), (1401606831,), (1401606834,), (1401606837,), (1401606882,), (1401610665,), (1401639240,), (1401639300,), (1401639683,), (1401639691,), (1401639693,), (1401639696,), (1401639717,), (1401639801,), (1401639803,), (1401639890,), (1401639925,), (1401645937,), (1401649754,), (1401649756,), (1401649759,), (1401649760,), (1401649765,), (1401649782,), (1401649804,), (1401649805,), (1401649830,), (1401649831,), (1401649868,), (1401649870,), (1401649871,), (1401649872,), (1401649874,), (1401649893,), (1401649895,), (1401649896,), (1401649947,), (1401649948,), (1401649949,), (1401649971,), (1401649973,), (1401649975,), (1401649979,), (1401649982,), (1401649985,), (1401649994,), (1401649997,), (1401650004,), (1401650006,), (1401650008,), (1401650011,), (1401650014,), (1401650017,), (1401650062,), (1401650064,), (1401650065,), (1401650066,), (1401650093,), (1401650094,), (1401650095,), (1401650097,), (1401650116,), (1401650118,), (1401650179,), (1401650181,), (1401650182,), (1401650184,), (1401650205,), (1401650206,), (1401650207,), (1401650208,), (1401650211,), (1401650254,), (1401650257,), (1401650258,), (1401650302,), (1401650522,), (1401650299,), (1401650300,), (1401650332,), (1401650335,), (1401650338,), (1401650342,), (1401650345,), (1401650347,), (1401650363,), (1401650365,), (1401650369,), (1401650372,), (1401650380,), (1401650384,), (1401650413,), (1401650417,), (1401650421,), (1401650425,), (1401650430,), (1401650434,), (1401650443,), (1401650445,), (1401650447,), (1401650449,), (1401650451,), (1401650453,), (1401650467,), (1401650469,), (1401650474,), (1401650481,), (1401650484,), (1401650487,), (1401650493,), (1401650494,), (1401650495,), (1401650498,), (1401650501,), (1401650504,), (1401650526,), (1401650527,), (1401650529,), (1401650536,), (1401650546,), (1401650563,), (1401650565,), (1401650567,), (1401650577,), (1401650584,), (1401650587,), (1401650624,), (1401650626,), (1401650628,), (1401650630,), (1401650632,), (1401650897,), (1401650927,), (1401650958,), (1401650997,), (1401651286,), (1401651309,), (1401651318,), (1401651616,), (1401651651,), (1401651688,), (1401651726,), (1401651768,), (1401652104,), (1401652151,), (1401652191,), (1401652228,), (1401652265,), (1401652305,), (1401652397,), (1401652433,), (1401652571,), (1401652578,), (1401652597,), (1401652601,), (1401653110,), (1401653595,), (1401653555,), (1401653731,), (1401653732,), (1401653754,), (1401653762,), (1401654123,), (1401654184,), (1401654246,), (1401654278,), (1401654311,), (1401654470,), (1401654473,), (1401654478,), (1401654480,), (1401654520,), (1401654523,), (1401654533,), (1401654806,), (1401654834,), (1401654836,), (1401655017,), (1401655020,), (1401655028,), (1401655061,), (1401655063,), (1401655066,), (1401655068,), (1401655071,), (1401655074,), (1401655100,), (1401655137,), (1401655173,), (1401655204,), (1401655241,), (1401655276,), (1401655440,), (1401655473,), (1401655505,), (1401655536,), (1401655548,), (1401655585,), (1401655688,), (1401655726,), (1401655747,), (1401655750,), (1401656085,), (1401656086,), (1401656106,), (1401656122,), (1401656131,), (1401656245,), (1401656248,), (1401656251,), (1401656254,), (1401656257,), (1401656497,), (1401656532,), (1401656568,), (1401656603,), (1401656955,), (1401656842,), (1401656877,), (1401656909,), (1401656925,), (1401657487,), (1401657549,), (1401657667,), (1401657713,), (1401657767,), (1401657841,), (1401658014,), (1401658018,), (1401658032,), (1401658067,), (1401658100,), (1401658138,), (1401658471,), (1401658474,), (1401658507,), (1401658524,), (1401658529,), (1401658532,), (1401658538,), (1401658539,), (1401658541,), (1401658543,), (1401658545,), (1401658546,), (1401658557,), (1401658559,), (1401658562,), (1401658572,), (1401658580,), (1401658591,), (1401658606,), (1401658616,), (1401658880,), (1401658914,), (1401658946,), (1401658989,), (1401659029,), (1401659382,), (1401659406,), (1401659597,), (1401659631,), (1401659672,), (1401659712,), (1401659716,), (1401659720,), (1401659850,), (1401659853,), (1401659857,), (1401659861,), (1401659864,), (1401659902,), (1401659904,), (1401659907,), (1401659909,), (1401659913,), (1401660087,), (1401660088,), (1401660089,), (1401660149,), (1401660151,), (1401660152,), (1401660189,), (1401660226,), (1401660257,), (1401660267,), (1401660283,), (1401660296,), (1401660309,), (1401660325,), (1401660353,), (1401660384,), (1401660387,), (1401660430,), (1401660423,), (1401660425,), (1401660426,), (1401660480,), (1401660482,), (1401660519,), (1401660643,), (1401660761,), (1401660861,), (1401661666,), (1401661697,), (1401661730,), (1401661762,), (1401661799,), (1401661985,), (1401662038,), (1401662134,), (1401662223,), (1401662315,), (1401662584,), (1401662599,), (1401662628,), (1401662632,), (1401662644,), (1401662655,), (1401662673,), (1401662696,), (1401662733,), (1401662771,), (1401662807,), (1401663076,), (1401663088,), (1401663096,), (1401663100,), (1401663105,), (1401663180,), (1401663213,), (1401663246,), (1401663279,), (1401663290,), (1401663292,), (1401663297,), (1401663299,), (1401663302,), (1401663305,), (1401663308,), (1401663312,), (1401663314,), (1401663317,), (1401663319,), (1401663324,), (1401663350,), (1401663352,), (1401663354,), (1401663358,), (1401663426,), (1401663431,), (1401663434,), (1401663438,), (1401663443,), (1401663447,), (1401663460,), (1401663463,), (1401663465,), (1401663468,), (1401663472,), (1401663499,), (1401663501,), (1401663504,), (1401663508,), (1401663531,), (1401663534,), (1401663537,), (1401663579,), (1401663591,), (1401663594,), (1401663597,), (1401663628,), (1401663610,), (1401663614,), (1401663647,), (1401663650,), (1401663653,), (1401663658,), (1401663663,), (1401663667,), (1401663686,), (1401663715,), (1401663749,), (1401663764,), (1401663777,), (1401663785,), (1401663809,), (1401663813,), (1401663815,), (1401663816,), (1401663819,), (1401663821,), (1401663831,), (1401663833,), (1401663838,), (1401663840,), (1401663842,), (1401663845,), (1401663855,), (1401663856,), (1401663859,), (1401663860,), (1401663863,), (1401663864,), (1401663865,), (1401663866,), (1401663869,), (1401663878,), (1401663882,), (1401663886,), (1401664027,), (1401664033,), (1401664040,), (1401664043,), (1401664096,), (1401664099,), (1401664102,), (1401664106,), (1401664109,), (1401664111,), (1401664123,), (1401664142,), (1401664144,), (1401664145,), (1401664146,), (1401664331,), (1401664362,), (1401664392,), (1401664424,), (1401664456,), (1401664522,), (1401664554,), (1401664556,), (1401664558,), (1401664560,), (1401664592,), (1401664594,), (1401664597,), (1401664600,), (1401664604,), (1401664606,), (1401664617,), (1401664620,), (1401664633,), (1401664678,), (1401664677,), (1401664710,), (1401664713,), (1401664716,), (1401664718,), (1401664737,), (1401664738,), (1401664857,), (1401664927,), (1401664930,), (1401664932,), (1401664935,), (1401664939,), (1401664966,), (1401664967,), (1401664968,), (1401665001,), (1401665089,), (1401665289,), (1401665293,), (1401665298,), (1401665534,), (1401665536,), (1401665538,), (1401665541,), (1401665544,), (1401665549,), (1401665557,), (1401665566,), (1401665568,), (1401665569,), (1401665570,), (1401665573,), (1401665575,), (1401665599,), (1401665600,), (1401665603,), (1401665606,), (1401665609,), (1401665632,), (1401665636,), (1401665640,), (1401665644,), (1401665647,), (1401665663,), (1401665665,), (1401665692,), (1401665695,), (1401665698,), (1401665752,), (1401665758,), (1401665764,), (1401665769,), (1401665777,), (1401665778,), (1401665780,), (1401665781,), (1401665782,), (1401665783,), (1401665807,), (1401665802,), (1401665804,), (1401665840,), (1401666405,), (1401666475,), (1401666541,), (1401667232,), (1401667263,), (1401667294,), (1401667470,), (1401667533,), (1401667601,), (1401668029,), (1401668076,), (1401668110,), (1401668707,), (1401668742,), (1401668841,), (1401670023,), (1401670105,), (1401670559,), (1401670560,), (1401670563,), (1401670621,), (1401670683,), (1401670685,), (1401670713,), (1401670808,), (1401670818,), (1401671089,), (1401671091,), (1401671093,), (1401671097,), (1401671124,), (1401671126,), (1401671128,), (1401671130,), (1401671160,), (1401671477,), (1401671440,), (1401671839,), (1401671894,), (1401672166,), (1401672226,), (1401672276,), (1401672309,), (1401672432,), (1401672438,), (1401672471,), (1401672710,), (1401672722,), (1401672739,), (1401672762,), (1401673017,), (1401673031,), (1401673033,), (1401673063,), (1401673065,), (1401673067,), (1401673119,), (1401673129,), (1401673152,), (1401673160,), (1401673165,), (1401673193,), (1401673196,), (1401673225,), (1401673227,), (1401673264,), (1401673267,), (1401673394,), (1401673408,), (1401673409,), (1401673412,), (1401673536,), (1401673537,), (1401673539,), (1401673543,), (1401673564,), (1401673567,), (1401673570,), (1401673694,), (1401673711,), (1401673721,), (1401673798,), (1401673786,), (1401673791,), (1401673842,), (1401673850,), (1401673852,), (1401673872,), (1401673922,), (1401673924,), (1401673926,), (1401673929,), (1401673932,), (1401673937,), (1401673962,), (1401673981,), (1401673993,), (1401674123,), (1401674131,), (1401674134,), (1401674138,), (1401674144,), (1401674146,), (1401674158,), (1401674159,), (1401674165,), (1401674167,), (1401674170,), (1401674171,), (1401674174,), (1401674176,), (1401674178,), (1401674179,), (1401674185,), (1401674188,), (1401674215,), (1401674217,), (1401674257,), (1401674293,), (1401674295,), (1401674296,), (1401674297,), (1401674349,), (1401674358,), (1401674362,), (1401674446,), (1401674479,), (1401674492,), (1401674494,), (1401674526,), (1401674530,), (1401674593,), (1401674594,), (1401674595,), (1401674598,), (1401674600,), (1401674603,), (1401674638,), (1401674640,), (1401674642,), (1401674644,), (1401674668,), (1401674669,), (1401674671,), (1401674673,), (1401674677,), (1401674707,), (1401674698,), (1401674701,), (1401674704,), (1401674736,), (1401674738,), (1401674740,), (1401674742,), (1401674841,), (1401674850,), (1401674852,), (1401674875,), (1401674878,), (1401674881,), (1401674886,), (1401674920,), (1401674922,), (1401674924,), (1401674926,), (1401674955,), (1401674957,), (1401674961,), (1401674966,), (1401674970,), (1401674979,), (1401674988,), (1401674990,), (1401674994,), (1401675002,), (1401675005,), (1401675009,), (1401675012,), (1401675014,), (1401675181,), (1401675185,), (1401675187,), (1401675190,), (1401675193,), (1401675197,), (1401675205,), (1401675207,), (1401675210,), (1401675213,), (1401675218,), (1401675222,), (1401675226,), (1401675242,), (1401675245,), (1401675248,), (1401675345,), (1401678620,), (1401678559,), (1401678592,), (1401678971,), (1401678975,), (1401678979,), (1401678982,), (1401678987,), (1401678991,), (1401679011,), (1401679013,), (1401679015,), (1401679017,), (1401679045,), (1401679048,), (1401679050,), (1401679053,), (1401679057,), (1401679076,), (1401679079,), (1401679080,), (1401679081,), (1401679084,), (1401679105,), (1401679108,), (1401679111,), (1401679114,), (1401679117,), (1401679136,), (1401679138,), (1401679140,), (1401679142,), (1401679145,), (1401679149,), (1401679179,), (1401679180,), (1401679181,), (1401679184,), (1401679221,), (1401679224,), (1401679226,), (1401679230,), (1401679233,), (1401679235,), (1401679257,), (1401679259,), (1401679272,), (1401679300,), (1401679305,), (1401679306,), (1401679309,), (1401679312,), (1401679316,), (1401679336,), (1401679338,), (1401679341,), (1401679344,), (1401679392,), (1401679375,), (1401679377,), (1401679379,), (1401679383,), (1401679388,), (1401679407,), (1401679409,), (1401679411,), (1401679415,), (1401679477,), (1401679480,), (1401679482,), (1401679485,), (1401679489,), (1401679511,), (1401679513,), (1401679514,), (1401679518,), (1401679523,), (1401679527,), (1401679572,), (1401679575,), (1401679578,), (1401679582,), (1401679613,), (1401679614,), (1401679615,), (1401679617,), (1401679621,), (1401679623,), (1401679940,), (1401679977,), (1401680009,), (1401680044,), (1401680077,), (1401680478,), (1401680513,), (1401680543,), (1401680578,), (1401680614,), (1401680649,), (1401680773,), (1401680806,), (1401680837,), (1401680850,), (1401680852,), (1401680861,), (1401680865,), (1401680868,), (1401680873,), (1401680955,), (1401680996,), (1401681037,), (1401681098,), (1401681161,), (1401681226,), (1401681645,), (1401681674,), (1401681707,), (1401681744,), (1401681872,), (1401681875,), (1401681878,), (1401681882,), (1401681886,), (1401681888,), (1401681904,), (1401681906,), (1401681908,), (1401681911,), (1401681935,), (1401681937,), (1401681939,), (1401681942,), (1401681945,), (1401682408,), (1401682369,), (1401682393,), (1401682464,), (1401682465,), (1401682466,), (1401682468,), (1401682473,), (1401682566,), (1401682589,), (1401682600,), (1401682603,), (1401682628,), (1401682629,), (1401682631,), (1401682632,), (1401682635,), (1401682639,), (1401682663,), (1401682672,), (1401682678,), (1401682681,), (1401682709,), (1401682723,), (1401682729,), (1401682744,), (1401682754,), (1401682770,), (1401682811,), (1401682812,), (1401682817,), (1401682846,), (1401682850,), (1401682883,), (1401682917,), (1401683183,), (1401683186,), (1401683189,), (1401683190,), (1401683193,), (1401683195,), (1401683335,), (1401683334,), (1401683445,), (1401683446,), (1401683448,), (1401683450,), (1401683658,), (1401683748,), (1401683812,), (1401683879,), (1401683922,), (1401683965,), (1401684115,), (1401684118,), (1401684119,), (1401684121,), (1401684123,), (1401684126,), (1401684175,), (1401684177,), (1401684179,), (1401684182,), (1401684185,), (1401684189,), (1401684205,), (1401684207,), (1401684211,), (1401684215,), (1401684219,), (1401684227,), (1401684236,), (1401684241,), (1401684243,), (1401684246,), (1401684249,), (1401684251,), (1401684253,), (1401684274,), (1401684276,), (1401684279,), (1401684281,), (1401684283,), (1401684286,), (1401684295,), (1401684308,), (1401684319,), (1401684325,), (1401684327,), (1401684355,), (1401684452,), (1401684510,), (1401684547,), (1401684551,), (1401684552,), (1401684554,), (1401684557,), (1401684559,), (1401684612,), (1401684617,), (1401684623,), (1401684659,), (1401684694,), (1401684695,), (1401684704,), (1401684707,), (1401685132,), (1401684883,), (1401684918,), (1401685020,), (1401685062,), (1401685097,), (1401685339,), (1401685341,), (1401685342,), (1401685343,), (1401686004,), (1401686020,), (1401686049,), (1401686071,), (1401686075,), (1401686090,), (1401686111,), (1401686113,), (1401686136,), (1401686143,), (1401686145,), (1401686341,), (1401686343,), (1401686345,), (1401686347,), (1401686632,), (1401686670,), (1401686711,), (1401686747,), (1401686786,), (1401687310,), (1401687349,), (1401687383,), (1401687417,), (1401687451,), (1401687463,), (1401687491,), (1401687527,), (1401687561,), (1401687923,), (1401687990,), (1401688073,), (1401688114,), (1401688153,), (1401688184,), (1401688382,), (1401688405,), (1401688414,), (1401688417,), (1401688453,), (1401688474,), (1401688499,), (1401688501,), (1401688503,), (1401688517,), (1401688529,), (1401688533,), (1401688553,), (1401688593,), (1401688602,), (1401688607,), (1401688714,), (1401688729,), (1401688733,), (1401688747,), (1401688750,), (1401688752,), (1401688782,), (1401688784,), (1401688786,), (1401688789,), (1401688792,), (1401688795,), (1401688849,), (1401688852,), (1401688856,), (1401688859,), (1401688862,), (1401688865,), (1401688942,), (1401688988,), (1401689020,), (1401689045,), (1401689055,), (1401689057,), (1401689067,), (1401689082,), (1401689097,), (1401689098,), (1401689101,), (1401689104,), (1401689334,), (1401689245,), (1401689277,), (1401689299,), (1401689302,), (1401689306,), (1401689399,), (1401689400,), (1401689401,), (1401689404,), (1401689541,), (1401689542,), (1401689545,), (1401689549,), (1401689553,), (1401689556,), (1401689577,), (1401689580,), (1401689583,), (1401689586,), (1401689589,), (1401689592,), (1401689620,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'30122025': {'nb_upload': 22, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29807136]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1401689620, 1401689592, 1401689589, 1401689586, 1401689583, 1401689580, 1401689577, 1401689556, 1401689553, 1401689549, 1401689545, 1401689542, 1401689541] map_info['map_portfolio_photo'] : {29807136: [1401689620, 1401689592, 1401689589, 1401689586, 1401689583, 1401689580, 1401689577, 1401689556, 1401689553, 1401689549, 1401689545, 1401689542, 1401689541, 1401689404, 1401689401, 1401689400, 1401689399, 1401689306, 1401689302, 1401689299, 1401689277, 1401689245]} final : True mtd_id 4302 list_pids : [1401689620, 1401689592, 1401689589, 1401689586, 1401689583, 1401689580, 1401689577, 1401689556, 1401689553, 1401689549, 1401689545, 1401689542, 1401689541] Looping around the photos to save general results len do output : 1 /29807136Didn'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, '4288763') ('4302', '29807136', '1401689620', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689592', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689589', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689586', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689583', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689580', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689577', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689556', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689553', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689549', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689545', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689542', None, None, None, None, None, '4288763') ('4302', None, None, None, None, None, None, None, '4288763') ('4302', '29807136', '1401689541', None, None, None, None, None, '4288763') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 14 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, '29807136', 'None', None, None, None, None, '4288763'), ('4302', '29807136', '1401689620', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689592', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689589', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689586', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689583', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689580', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689577', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689556', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689553', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689549', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689545', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689542', None, None, None, None, None, '4288763'), ('4302', '29807136', '1401689541', None, None, None, None, None, '4288763')] time used for this insertion : 0.019103527069091797 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.0217654705047607 time spend to save output : 0.019335031509399414 total time spend for step 5 : 2.04110050201416 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 (4288763) 2.17user 2.68system 0:06.46elapsed 75%CPU (0avgtext+0avgdata 166860maxresident)k 200inputs+8968outputs (4major+75944minor)pagefaults 0swaps