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 : 2205007 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 (4199408) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4199408) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29271024 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4199408'] with mtr_portfolio_ids : ['29271024'] and first list_photo_ids : [] new path : /proc/2205007/ Name: python3 Umask: 0002 State: R (running) Tgid: 2205007 Ngid: 0 Pid: 2205007 PPid: 2205006 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 2205007 NSpid: 2205007 NSpgid: 2202656 NSsid: 2202656 VmPeak: 1113500 kB VmSize: 1113500 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 103988 kB VmRSS: 103988 kB RssAnon: 66308 kB RssFile: 37680 kB RssShmem: 0 kB VmData: 872228 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 596 kB VmSwap: 0 kB HugetlbPages: 0 kB CoreDumping: 0 THP_enabled: 1 Threads: 1 SigQ: 0/63019 SigPnd: 0000000000000000 ShdPnd: 0000000000000000 SigBlk: 0000000000000000 SigIgn: 0000000001001000 SigCgt: 0000000180000002 CapInh: 0000000000000000 CapPrm: 0000000000000000 CapEff: 0000000000000000 CapBnd: 000001ffffffffff CapAmb: 0000000000000000 NoNewPrivs: 0 Seccomp: 0 Seccomp_filters: 0 Speculation_Store_Bypass: thread vulnerable SpeculationIndirectBranch: conditional enabled Cpus_allowed: ffffffff,ffffffff,ffffffff,ffffffff Cpus_allowed_list: 0-127 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001 Mems_allowed_list: 0 voluntary_ctxt_switches: 44 nonvoluntary_ctxt_switches: 90 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '2205007', 'Ngid': '0', 'Pid': '2205007', 'PPid': '2205006', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '2205007', 'NSpid': '2205007', 'NSpgid': '2202656', 'NSsid': '2202656', 'VmPeak': '1113500 kB', 'VmSize': '1113500 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '103988 kB', 'VmRSS': '103988 kB', 'RssAnon': '66308 kB', 'RssFile': '37680 kB', 'RssShmem': '0 kB', 'VmData': '872228 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '596 kB', 'VmSwap': '0 kB', 'HugetlbPages': '0 kB', 'CoreDumping': '0', 'THP_enabled': '1', 'Threads': '1', 'SigQ': '0/63019', 'SigPnd': '0000000000000000', 'ShdPnd': '0000000000000000', 'SigBlk': '0000000000000000', 'SigIgn': '0000000001001000', 'SigCgt': '0000000180000002', 'CapInh': '0000000000000000', 'CapPrm': '0000000000000000', 'CapEff': '0000000000000000', 'CapBnd': '000001ffffffffff', 'CapAmb': '0000000000000000', 'NoNewPrivs': '0', 'Seccomp': '0', 'Seccomp_filters': '0', 'Speculation_Store_Bypass': 'thread vulnerable', 'SpeculationIndirectBranch': 'conditional enabled', 'Cpus_allowed': 'ffffffff,ffffffff,ffffffff,ffffffff', 'Cpus_allowed_list': '0-127', 'Mems_allowed': '00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001', 'Mems_allowed_list': '0', 'voluntary_ctxt_switches': '44', 'nonvoluntary_ctxt_switches': '90'} ('datou_batch_current', '2205007', '1113500', '0', '1113500', '872228', '103988', b'', 'marlene', '4199408') 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 (29271024) 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 (4199408 ) ) 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 (29271024) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1398513119, 'portfolio_id': 29271024}, {'photo_id': 1398513117, 'portfolio_id': 29271024}, {'photo_id': 1398513113, 'portfolio_id': 29271024}, {'photo_id': 1398513107, 'portfolio_id': 29271024}, {'photo_id': 1398513105, 'portfolio_id': 29271024}, {'photo_id': 1398513074, 'portfolio_id': 29271024}, {'photo_id': 1398513072, 'portfolio_id': 29271024}, {'photo_id': 1398513070, 'portfolio_id': 29271024}, {'photo_id': 1398513068, 'portfolio_id': 29271024}, {'photo_id': 1398513066, 'portfolio_id': 29271024}, {'photo_id': 1398513055, 'portfolio_id': 29271024}, {'photo_id': 1398513051, 'portfolio_id': 29271024}, {'photo_id': 1398513045, 'portfolio_id': 29271024}, {'photo_id': 1398513040, 'portfolio_id': 29271024}, {'photo_id': 1398513004, 'portfolio_id': 29271024}, {'photo_id': 1398513002, 'portfolio_id': 29271024}, {'photo_id': 1398513001, 'portfolio_id': 29271024}, {'photo_id': 1398512999, 'portfolio_id': 29271024}, {'photo_id': 1398512997, 'portfolio_id': 29271024}, {'photo_id': 1398512995, 'portfolio_id': 29271024}, {'photo_id': 1398512971, 'portfolio_id': 29271024}, {'photo_id': 1398512970, 'portfolio_id': 29271024}, {'photo_id': 1398512966, 'portfolio_id': 29271024}, {'photo_id': 1398512965, 'portfolio_id': 29271024}, {'photo_id': 1398512962, 'portfolio_id': 29271024}, {'photo_id': 1398512961, 'portfolio_id': 29271024}] map_portfolio_id_photo_id: {29271024: [1398513119, 1398513117, 1398513113, 1398513107, 1398513105, 1398513074, 1398513072, 1398513070, 1398513068, 1398513066, 1398513055, 1398513051, 1398513045, 1398513040, 1398513004, 1398513002, 1398513001, 1398512999, 1398512997, 1398512995, 1398512971, 1398512970, 1398512966, 1398512965, 1398512962, 1398512961]} ##### 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.06464481353759766 #### 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 9 16:36:58 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29271024) 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 : 29271024 get user id for portfolio 29271024 get sub ptf for main ptf 29271024, type 3726 and hashtags ['autre_refus', 'kraft', 'environnement', 'metal', 'cartonnette', 'plastique', 'mal_croppe', 'Carton_gris', 'Carton_brun', 'flou', 'Teint_Dans_La_Masse', 'papier'] 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`=29271024 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','kraft','environnement','metal','cartonnette','plastique','mal_croppe','Carton_gris','Carton_brun','flou','Teint_Dans_La_Masse','papier')) 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`=29271024 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','kraft','environnement','metal','cartonnette','plastique','mal_croppe','Carton_gris','Carton_brun','flou','Teint_Dans_La_Masse','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 29271024, 'sub_port_id': 29271056, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19916866, 'last_updated_at': datetime.datetime(2025, 12, 9, 16, 35, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 9, 16, 35, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 9, 16, 33, 30)}, 'papier': {'main_port_id': 29271024, 'sub_port_id': 29271057, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19916867, 'last_updated_at': datetime.datetime(2025, 12, 9, 16, 35, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 9, 16, 35, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 9, 16, 33, 30)}, 'cartonnette': {'main_port_id': 29271024, 'sub_port_id': 29271058, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19916868, 'last_updated_at': datetime.datetime(2025, 12, 9, 16, 35, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 9, 16, 35, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 9, 16, 33, 30)}, 'metal': {'main_port_id': 29271024, 'sub_port_id': 29271059, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19916869, 'last_updated_at': datetime.datetime(2025, 12, 9, 16, 35, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 9, 16, 35, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 9, 16, 33, 30)}, 'Carton_gris': {'main_port_id': 29271024, 'sub_port_id': 29271060, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19916870, 'last_updated_at': datetime.datetime(2025, 12, 9, 16, 35, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 9, 16, 35, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 9, 16, 33, 30)}, 'mal_croppe': {'main_port_id': 29271024, 'sub_port_id': 29271061, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19916871, 'last_updated_at': datetime.datetime(2025, 12, 9, 16, 35, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 9, 16, 35, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 9, 16, 33, 30)}, 'flou': {'main_port_id': 29271024, 'sub_port_id': 29271062, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19916872, 'last_updated_at': datetime.datetime(2025, 12, 9, 16, 35, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 9, 16, 35, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 9, 16, 33, 30)}, 'plastique': {'main_port_id': 29271024, 'sub_port_id': 29271063, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19916873, 'last_updated_at': datetime.datetime(2025, 12, 9, 16, 35, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 9, 16, 35, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 9, 16, 33, 30)}, 'autre_refus': {'main_port_id': 29271024, 'sub_port_id': 29271064, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19916874, 'last_updated_at': datetime.datetime(2025, 12, 9, 16, 35, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 9, 16, 35, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 9, 16, 33, 30)}, 'environnement': {'main_port_id': 29271024, 'sub_port_id': 29271065, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19916875, 'last_updated_at': datetime.datetime(2025, 12, 9, 16, 35, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 9, 16, 35, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 9, 16, 33, 30)}, 'Carton_brun': {'main_port_id': 29271024, 'sub_port_id': 29271066, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19916876, 'last_updated_at': datetime.datetime(2025, 12, 9, 16, 35, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 9, 16, 35, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 9, 16, 33, 30)}, 'kraft': {'main_port_id': 29271024, 'sub_port_id': 29271067, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19916877, 'last_updated_at': datetime.datetime(2025, 12, 9, 16, 35, 3), 'last_updated_at_desc': datetime.datetime(2025, 12, 9, 16, 35, 3), 'last_updated_at_asc': datetime.datetime(2025, 12, 9, 16, 33, 30)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29271056 , 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=29271024 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 (29271056) result : ((1398513109,), (1398513110,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29271024) result : ((1398512961,), (1398512962,), (1398512965,), (1398512966,), (1398512970,), (1398512971,), (1398512995,), (1398512997,), (1398512999,), (1398513001,), (1398513002,), (1398513004,), (1398513040,), (1398513045,), (1398513051,), (1398513055,), (1398513066,), (1398513068,), (1398513070,), (1398513072,), (1398513074,), (1398513105,), (1398513107,), (1398513113,), (1398513117,), (1398513119,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29271057 , 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=29271024 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 (29271057) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29271024) result : ((1398512961,), (1398512962,), (1398512965,), (1398512966,), (1398512970,), (1398512971,), (1398512995,), (1398512997,), (1398512999,), (1398513001,), (1398513002,), (1398513004,), (1398513040,), (1398513045,), (1398513051,), (1398513055,), (1398513066,), (1398513068,), (1398513070,), (1398513072,), (1398513074,), (1398513105,), (1398513107,), (1398513113,), (1398513117,), (1398513119,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29271058 , 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=29271024 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 (29271058) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29271024) result : ((1398512961,), (1398512962,), (1398512965,), (1398512966,), (1398512970,), (1398512971,), (1398512995,), (1398512997,), (1398512999,), (1398513001,), (1398513002,), (1398513004,), (1398513040,), (1398513045,), (1398513051,), (1398513055,), (1398513066,), (1398513068,), (1398513070,), (1398513072,), (1398513074,), (1398513105,), (1398513107,), (1398513113,), (1398513117,), (1398513119,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29271059 , 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=29271024 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 (29271059) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29271024) result : ((1398512961,), (1398512962,), (1398512965,), (1398512966,), (1398512970,), (1398512971,), (1398512995,), (1398512997,), (1398512999,), (1398513001,), (1398513002,), (1398513004,), (1398513040,), (1398513045,), (1398513051,), (1398513055,), (1398513066,), (1398513068,), (1398513070,), (1398513072,), (1398513074,), (1398513105,), (1398513107,), (1398513113,), (1398513117,), (1398513119,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29271060 , 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=29271024 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 (29271060) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29271024) result : ((1398512961,), (1398512962,), (1398512965,), (1398512966,), (1398512970,), (1398512971,), (1398512995,), (1398512997,), (1398512999,), (1398513001,), (1398513002,), (1398513004,), (1398513040,), (1398513045,), (1398513051,), (1398513055,), (1398513066,), (1398513068,), (1398513070,), (1398513072,), (1398513074,), (1398513105,), (1398513107,), (1398513113,), (1398513117,), (1398513119,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29271061 , 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=29271024 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 (29271061) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29271024) result : ((1398512961,), (1398512962,), (1398512965,), (1398512966,), (1398512970,), (1398512971,), (1398512995,), (1398512997,), (1398512999,), (1398513001,), (1398513002,), (1398513004,), (1398513040,), (1398513045,), (1398513051,), (1398513055,), (1398513066,), (1398513068,), (1398513070,), (1398513072,), (1398513074,), (1398513105,), (1398513107,), (1398513113,), (1398513117,), (1398513119,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29271062 , 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=29271024 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 (29271062) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29271024) result : ((1398512961,), (1398512962,), (1398512965,), (1398512966,), (1398512970,), (1398512971,), (1398512995,), (1398512997,), (1398512999,), (1398513001,), (1398513002,), (1398513004,), (1398513040,), (1398513045,), (1398513051,), (1398513055,), (1398513066,), (1398513068,), (1398513070,), (1398513072,), (1398513074,), (1398513105,), (1398513107,), (1398513113,), (1398513117,), (1398513119,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29271063 , 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=29271024 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 (29271063) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29271024) result : ((1398512961,), (1398512962,), (1398512965,), (1398512966,), (1398512970,), (1398512971,), (1398512995,), (1398512997,), (1398512999,), (1398513001,), (1398513002,), (1398513004,), (1398513040,), (1398513045,), (1398513051,), (1398513055,), (1398513066,), (1398513068,), (1398513070,), (1398513072,), (1398513074,), (1398513105,), (1398513107,), (1398513113,), (1398513117,), (1398513119,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29271064 , 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=29271024 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 (29271064) result : ((1398513111,), (1398513112,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29271024) result : ((1398512961,), (1398512962,), (1398512965,), (1398512966,), (1398512970,), (1398512971,), (1398512995,), (1398512997,), (1398512999,), (1398513001,), (1398513002,), (1398513004,), (1398513040,), (1398513045,), (1398513051,), (1398513055,), (1398513066,), (1398513068,), (1398513070,), (1398513072,), (1398513074,), (1398513105,), (1398513107,), (1398513113,), (1398513117,), (1398513119,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29271065 , 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=29271024 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 (29271065) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29271024) result : ((1398512961,), (1398512962,), (1398512965,), (1398512966,), (1398512970,), (1398512971,), (1398512995,), (1398512997,), (1398512999,), (1398513001,), (1398513002,), (1398513004,), (1398513040,), (1398513045,), (1398513051,), (1398513055,), (1398513066,), (1398513068,), (1398513070,), (1398513072,), (1398513074,), (1398513105,), (1398513107,), (1398513113,), (1398513117,), (1398513119,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29271066 , 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=29271024 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 (29271066) result : ((1398513114,), (1398513115,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29271024) result : ((1398512961,), (1398512962,), (1398512965,), (1398512966,), (1398512970,), (1398512971,), (1398512995,), (1398512997,), (1398512999,), (1398513001,), (1398513002,), (1398513004,), (1398513040,), (1398513045,), (1398513051,), (1398513055,), (1398513066,), (1398513068,), (1398513070,), (1398513072,), (1398513074,), (1398513105,), (1398513107,), (1398513113,), (1398513117,), (1398513119,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29271067 , 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=29271024 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 (29271067) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29271024) result : ((1398512961,), (1398512962,), (1398512965,), (1398512966,), (1398512970,), (1398512971,), (1398512995,), (1398512997,), (1398512999,), (1398513001,), (1398513002,), (1398513004,), (1398513040,), (1398513045,), (1398513051,), (1398513055,), (1398513066,), (1398513068,), (1398513070,), (1398513072,), (1398513074,), (1398513105,), (1398513107,), (1398513113,), (1398513117,), (1398513119,)) select distinct(cspi.sub_photo_id) from MTRPhoto.crop_hashtag_ids chi, MTRPhoto.crop_sub_photo_ids cspi where chi.type=3726 and chi.photo_id in () and cspi.crop_hashtag_id = chi.id; Catched exception ! Connect or reconnect ! (1064, "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ')\n and cspi.crop_hashtag_id = chi.id' at line 3") To do ! Use context local managing function ! SELECT mptpi.id, mptpi.mtr_portfolio_id_1, mptpi.mtr_portfolio_id_2, mptpi.type, mptpi.hashtag_id, mptpi.min_score, mptpi.mtr_user_id, mptpi.created_at, mptpi.updated_at, mptpi.last_updated_at_desc, mptpi.last_updated_at_asc, h.hashtag FROM MTRPhoto.mtr_port_to_port_ids mptpi, MTRBack.hashtags h WHERE h.hashtag_id=mptpi.hashtag_id AND mptpi.`mtr_portfolio_id_1`=29271024 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','kraft','environnement','metal','cartonnette','plastique','mal_croppe','Carton_gris','Carton_brun','flou','Teint_Dans_La_Masse','papier')) 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`=29271024 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('autre_refus','kraft','environnement','metal','cartonnette','plastique','mal_croppe','Carton_gris','Carton_brun','flou','Teint_Dans_La_Masse','papier')) AND mptpi.`min_score`=0.5 To do returned map {'Teint_Dans_La_Masse': {'main_port_id': 29271024, 'sub_port_id': 29271068, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19916878, 'last_updated_at': datetime.datetime(2025, 12, 9, 16, 33, 39), 'last_updated_at_desc': datetime.datetime(2025, 12, 9, 16, 33, 39), 'last_updated_at_asc': datetime.datetime(2025, 12, 9, 16, 33, 39)}, 'papier': {'main_port_id': 29271024, 'sub_port_id': 29271069, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19916879, 'last_updated_at': datetime.datetime(2025, 12, 9, 16, 33, 39), 'last_updated_at_desc': datetime.datetime(2025, 12, 9, 16, 33, 39), 'last_updated_at_asc': datetime.datetime(2025, 12, 9, 16, 33, 39)}, 'cartonnette': {'main_port_id': 29271024, 'sub_port_id': 29271070, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19916880, 'last_updated_at': datetime.datetime(2025, 12, 9, 16, 33, 39), 'last_updated_at_desc': datetime.datetime(2025, 12, 9, 16, 33, 39), 'last_updated_at_asc': datetime.datetime(2025, 12, 9, 16, 33, 39)}, 'metal': {'main_port_id': 29271024, 'sub_port_id': 29271071, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19916881, 'last_updated_at': datetime.datetime(2025, 12, 9, 16, 33, 39), 'last_updated_at_desc': datetime.datetime(2025, 12, 9, 16, 33, 39), 'last_updated_at_asc': datetime.datetime(2025, 12, 9, 16, 33, 39)}, 'Carton_gris': {'main_port_id': 29271024, 'sub_port_id': 29271072, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19916882, 'last_updated_at': datetime.datetime(2025, 12, 9, 16, 33, 39), 'last_updated_at_desc': datetime.datetime(2025, 12, 9, 16, 33, 39), 'last_updated_at_asc': datetime.datetime(2025, 12, 9, 16, 33, 39)}, 'mal_croppe': {'main_port_id': 29271024, 'sub_port_id': 29271073, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19916883, 'last_updated_at': datetime.datetime(2025, 12, 9, 16, 33, 39), 'last_updated_at_desc': datetime.datetime(2025, 12, 9, 16, 33, 39), 'last_updated_at_asc': datetime.datetime(2025, 12, 9, 16, 33, 39)}, 'flou': {'main_port_id': 29271024, 'sub_port_id': 29271074, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19916884, 'last_updated_at': datetime.datetime(2025, 12, 9, 16, 33, 39), 'last_updated_at_desc': datetime.datetime(2025, 12, 9, 16, 33, 39), 'last_updated_at_asc': datetime.datetime(2025, 12, 9, 16, 33, 39)}, 'plastique': {'main_port_id': 29271024, 'sub_port_id': 29271075, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19916885, 'last_updated_at': datetime.datetime(2025, 12, 9, 16, 33, 39), 'last_updated_at_desc': datetime.datetime(2025, 12, 9, 16, 33, 39), 'last_updated_at_asc': datetime.datetime(2025, 12, 9, 16, 33, 39)}, 'autre_refus': {'main_port_id': 29271024, 'sub_port_id': 29271076, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19916886, 'last_updated_at': datetime.datetime(2025, 12, 9, 16, 33, 39), 'last_updated_at_desc': datetime.datetime(2025, 12, 9, 16, 33, 39), 'last_updated_at_asc': datetime.datetime(2025, 12, 9, 16, 33, 39)}, 'environnement': {'main_port_id': 29271024, 'sub_port_id': 29271077, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19916887, 'last_updated_at': datetime.datetime(2025, 12, 9, 16, 33, 39), 'last_updated_at_desc': datetime.datetime(2025, 12, 9, 16, 33, 39), 'last_updated_at_asc': datetime.datetime(2025, 12, 9, 16, 33, 39)}, 'Carton_brun': {'main_port_id': 29271024, 'sub_port_id': 29271078, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19916888, 'last_updated_at': datetime.datetime(2025, 12, 9, 16, 33, 39), 'last_updated_at_desc': datetime.datetime(2025, 12, 9, 16, 33, 39), 'last_updated_at_asc': datetime.datetime(2025, 12, 9, 16, 33, 39)}, 'kraft': {'main_port_id': 29271024, 'sub_port_id': 29271079, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19916889, 'last_updated_at': datetime.datetime(2025, 12, 9, 16, 35, 4), 'last_updated_at_desc': datetime.datetime(2025, 12, 9, 16, 35, 4), 'last_updated_at_asc': datetime.datetime(2025, 12, 9, 16, 33, 39)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29271068,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29271056 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29271069,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29271057 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29271070,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29271058 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29271071,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29271059 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29271072,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29271060 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29271073,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29271061 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29271074,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29271062 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29271075,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29271063 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29271076,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29271064 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29271077,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29271065 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29271078,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29271066 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29271079,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29271067 lien utilise dans velours : https://marlene.fotonower.com/velours/29271068,29271069,29271070,29271071,29271072,29271073,29271074,29271075,29271076,29271077,29271078,29271079?tags=Teint_Dans_La_Masse,papier,cartonnette,metal,Carton_gris,mal_croppe,flou,plastique,autre_refus,environnement,Carton_brun,kraft After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29271024]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1398513119, 1398513117, 1398513113, 1398513107, 1398513105, 1398513074, 1398513072, 1398513070, 1398513068, 1398513066] map_info['map_portfolio_photo'] : {29271024: [1398513119, 1398513117, 1398513113, 1398513107, 1398513105, 1398513074, 1398513072, 1398513070, 1398513068, 1398513066, 1398513055, 1398513051, 1398513045, 1398513040, 1398513004, 1398513002, 1398513001, 1398512999, 1398512997, 1398512995, 1398512971, 1398512970, 1398512966, 1398512965, 1398512962, 1398512961]} final : False mtd_id 4302 list_pids : [1398513119, 1398513117, 1398513113, 1398513107, 1398513105, 1398513074, 1398513072, 1398513070, 1398513068, 1398513066] Looping around the photos to save general results len do output : 1 /29271024. 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, '4199408') ('4302', '29271024', '1398513119', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513117', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513113', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513107', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513105', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513074', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513072', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513070', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513068', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513066', None, None, None, None, None, '4199408') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29271024', "{'Teint_Dans_La_Masse': 29271056, 'papier': 29271057, 'cartonnette': 29271058, 'metal': 29271059, 'Carton_gris': 29271060, 'mal_croppe': 29271061, 'flou': 29271062, 'plastique': 29271063, 'autre_refus': 29271064, 'environnement': 29271065, 'Carton_brun': 29271066, 'kraft': 29271067}", None, None, None, None, '4199408'), ('4302', '29271024', '1398513119', None, None, None, None, None, '4199408'), ('4302', '29271024', '1398513117', None, None, None, None, None, '4199408'), ('4302', '29271024', '1398513113', None, None, None, None, None, '4199408'), ('4302', '29271024', '1398513107', None, None, None, None, None, '4199408'), ('4302', '29271024', '1398513105', None, None, None, None, None, '4199408'), ('4302', '29271024', '1398513074', None, None, None, None, None, '4199408'), ('4302', '29271024', '1398513072', None, None, None, None, None, '4199408'), ('4302', '29271024', '1398513070', None, None, None, None, None, '4199408'), ('4302', '29271024', '1398513068', None, None, None, None, None, '4199408'), ('4302', '29271024', '1398513066', None, None, None, None, None, '4199408')] time used for this insertion : 0.045316457748413086 save_final save missing photos in datou_result : time spend for datou_step_exec : 4.794219493865967 time spend to save output : 0.045624494552612305 total time spend for step 1 : 4.839843988418579 step2:final Tue Dec 9 16:37:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed 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 (29271024) 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 29271024 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1398512970,1398512971,1398512965,1398512966,1398512962,1398512961,1398513004,1398513002,1398513001,1398512999,1398512997,1398512995,1398513055,1398513051,1398513045,1398513040,1398513074,1398513072,1398513070,1398513068,1398513066,1398513119,1398513117,1398513113,1398513107,1398513105); insert ignore into MTRUser.portfolio_carac_ratio (portfolio_id, hashtag_type, hashtag_id, value) values (%s,%s,%s,%s) on DUPLICATE KEY UPDATE value=VALUES(value) After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29271024]) Inside saveOutput : final : False verbose : True original output for save of step final : {1398513119: ('0.020911226166822474',), 1398513117: ('0.020911226166822474',), 1398513113: ('0.020911226166822474',), 1398513107: ('0.020911226166822474',), 1398513105: ('0.020911226166822474',), 1398513074: ('0.020911226166822474',), 1398513072: ('0.020911226166822474',), 1398513070: ('0.020911226166822474',), 1398513068: ('0.020911226166822474',), 1398513066: ('0.020911226166822474',)} new output for save of step final : {1398513119: ('0.020911226166822474',), 1398513117: ('0.020911226166822474',), 1398513113: ('0.020911226166822474',), 1398513107: ('0.020911226166822474',), 1398513105: ('0.020911226166822474',), 1398513074: ('0.020911226166822474',), 1398513072: ('0.020911226166822474',), 1398513070: ('0.020911226166822474',), 1398513068: ('0.020911226166822474',), 1398513066: ('0.020911226166822474',)} [1398513119, 1398513117, 1398513113, 1398513107, 1398513105, 1398513074, 1398513072, 1398513070, 1398513068, 1398513066] map_info['map_portfolio_photo'] : {29271024: [1398513119, 1398513117, 1398513113, 1398513107, 1398513105, 1398513074, 1398513072, 1398513070, 1398513068, 1398513066, 1398513055, 1398513051, 1398513045, 1398513040, 1398513004, 1398513002, 1398513001, 1398512999, 1398512997, 1398512995, 1398512971, 1398512970, 1398512966, 1398512965, 1398512962, 1398512961]} final : False mtd_id 4302 list_pids : [1398513119, 1398513117, 1398513113, 1398513107, 1398513105, 1398513074, 1398513072, 1398513070, 1398513068, 1398513066] Looping around the photos to save general results len do output : 10 /1398513119.Didn't retrieve data . /1398513117.Didn't retrieve data . /1398513113.Didn't retrieve data . /1398513107.Didn't retrieve data . /1398513105.Didn't retrieve data . /1398513074.Didn't retrieve data . /1398513072.Didn't retrieve data . /1398513070.Didn't retrieve data . /1398513068.Didn't retrieve data . /1398513066.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, '4199408') ('4302', '29271024', '1398513119', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513117', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513113', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513107', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513105', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513074', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513072', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513070', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513068', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513066', None, None, None, None, None, '4199408') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 30 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29271024', '1398513119', '0.020911226166822474', None, None, None, None, '4199408'), ('4302', '29271024', '1398513117', '0.020911226166822474', None, None, None, None, '4199408'), ('4302', '29271024', '1398513113', '0.020911226166822474', None, None, None, None, '4199408'), ('4302', '29271024', '1398513107', '0.020911226166822474', None, None, None, None, '4199408'), ('4302', '29271024', '1398513105', '0.020911226166822474', None, None, None, None, '4199408'), ('4302', '29271024', '1398513074', '0.020911226166822474', None, None, None, None, '4199408'), ('4302', '29271024', '1398513072', '0.020911226166822474', None, None, None, None, '4199408'), ('4302', '29271024', '1398513070', '0.020911226166822474', None, None, None, None, '4199408'), ('4302', '29271024', '1398513068', '0.020911226166822474', None, None, None, None, '4199408'), ('4302', '29271024', '1398513066', '0.020911226166822474', None, None, None, None, '4199408')] time used for this insertion : 0.043622493743896484 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.280245304107666 time spend to save output : 0.044182538986206055 total time spend for step 2 : 0.32442784309387207 step3:velours_tree Tue Dec 9 16:37:03 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 : {29271024: [{'Teint_Dans_La_Masse': 29271056, 'papier': 29271057, 'cartonnette': 29271058, 'metal': 29271059, 'Carton_gris': 29271060, 'mal_croppe': 29271061, 'flou': 29271062, 'plastique': 29271063, 'autre_refus': 29271064, 'environnement': 29271065, 'Carton_brun': 29271066, 'kraft': 29271067}]} input_args_next_step : {29271024: ()} output_args : {29271024: [{'Teint_Dans_La_Masse': 29271056, 'papier': 29271057, 'cartonnette': 29271058, 'metal': 29271059, 'Carton_gris': 29271060, 'mal_croppe': 29271061, 'flou': 29271062, 'plastique': 29271063, 'autre_refus': 29271064, 'environnement': 29271065, 'Carton_brun': 29271066, 'kraft': 29271067}]} args : 29271024 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'Teint_Dans_La_Masse': 29271056, 'papier': 29271057, 'cartonnette': 29271058, 'metal': 29271059, 'Carton_gris': 29271060, 'mal_croppe': 29271061, 'flou': 29271062, 'plastique': 29271063, 'autre_refus': 29271064, 'environnement': 29271065, 'Carton_brun': 29271066, 'kraft': 29271067},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29271024) 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([29271024]) 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.2664673328399658 time spend to save output : 5.269050598144531e-05 total time spend for step 3 : 0.26652002334594727 step4:send_mail_cod Tue Dec 9 16:37:03 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 : {1398513119: ('0.020911226166822474',), 1398513117: ('0.020911226166822474',), 1398513113: ('0.020911226166822474',), 1398513107: ('0.020911226166822474',), 1398513105: ('0.020911226166822474',), 1398513074: ('0.020911226166822474',), 1398513072: ('0.020911226166822474',), 1398513070: ('0.020911226166822474',), 1398513068: ('0.020911226166822474',), 1398513066: ('0.020911226166822474',)} input_args_next_step : {1398513119: ()} output_args : {1398513119: ('0.020911226166822474',), 1398513117: ('0.020911226166822474',), 1398513113: ('0.020911226166822474',), 1398513107: ('0.020911226166822474',), 1398513105: ('0.020911226166822474',), 1398513074: ('0.020911226166822474',), 1398513072: ('0.020911226166822474',), 1398513070: ('0.020911226166822474',), 1398513068: ('0.020911226166822474',), 1398513066: ('0.020911226166822474',)} args : 1398513119 depend.output_id : 0 input_args_next_step : {1398513119: ('0.020911226166822474',), 1398513117: ()} output_args : {1398513119: ('0.020911226166822474',), 1398513117: ('0.020911226166822474',), 1398513113: ('0.020911226166822474',), 1398513107: ('0.020911226166822474',), 1398513105: ('0.020911226166822474',), 1398513074: ('0.020911226166822474',), 1398513072: ('0.020911226166822474',), 1398513070: ('0.020911226166822474',), 1398513068: ('0.020911226166822474',), 1398513066: ('0.020911226166822474',)} args : 1398513117 depend.output_id : 0 input_args_next_step : {1398513119: ('0.020911226166822474',), 1398513117: ('0.020911226166822474',), 1398513113: ()} output_args : {1398513119: ('0.020911226166822474',), 1398513117: ('0.020911226166822474',), 1398513113: ('0.020911226166822474',), 1398513107: ('0.020911226166822474',), 1398513105: ('0.020911226166822474',), 1398513074: ('0.020911226166822474',), 1398513072: ('0.020911226166822474',), 1398513070: ('0.020911226166822474',), 1398513068: ('0.020911226166822474',), 1398513066: ('0.020911226166822474',)} args : 1398513113 depend.output_id : 0 input_args_next_step : {1398513119: ('0.020911226166822474',), 1398513117: ('0.020911226166822474',), 1398513113: ('0.020911226166822474',), 1398513107: ()} output_args : {1398513119: ('0.020911226166822474',), 1398513117: ('0.020911226166822474',), 1398513113: ('0.020911226166822474',), 1398513107: ('0.020911226166822474',), 1398513105: ('0.020911226166822474',), 1398513074: ('0.020911226166822474',), 1398513072: ('0.020911226166822474',), 1398513070: ('0.020911226166822474',), 1398513068: ('0.020911226166822474',), 1398513066: ('0.020911226166822474',)} args : 1398513107 depend.output_id : 0 input_args_next_step : {1398513119: ('0.020911226166822474',), 1398513117: ('0.020911226166822474',), 1398513113: ('0.020911226166822474',), 1398513107: ('0.020911226166822474',), 1398513105: ()} output_args : {1398513119: ('0.020911226166822474',), 1398513117: ('0.020911226166822474',), 1398513113: ('0.020911226166822474',), 1398513107: ('0.020911226166822474',), 1398513105: ('0.020911226166822474',), 1398513074: ('0.020911226166822474',), 1398513072: ('0.020911226166822474',), 1398513070: ('0.020911226166822474',), 1398513068: ('0.020911226166822474',), 1398513066: ('0.020911226166822474',)} args : 1398513105 depend.output_id : 0 input_args_next_step : {1398513119: ('0.020911226166822474',), 1398513117: ('0.020911226166822474',), 1398513113: ('0.020911226166822474',), 1398513107: ('0.020911226166822474',), 1398513105: ('0.020911226166822474',), 1398513074: ()} output_args : {1398513119: ('0.020911226166822474',), 1398513117: ('0.020911226166822474',), 1398513113: ('0.020911226166822474',), 1398513107: ('0.020911226166822474',), 1398513105: ('0.020911226166822474',), 1398513074: ('0.020911226166822474',), 1398513072: ('0.020911226166822474',), 1398513070: ('0.020911226166822474',), 1398513068: ('0.020911226166822474',), 1398513066: ('0.020911226166822474',)} args : 1398513074 depend.output_id : 0 input_args_next_step : {1398513119: ('0.020911226166822474',), 1398513117: ('0.020911226166822474',), 1398513113: ('0.020911226166822474',), 1398513107: ('0.020911226166822474',), 1398513105: ('0.020911226166822474',), 1398513074: ('0.020911226166822474',), 1398513072: ()} output_args : {1398513119: ('0.020911226166822474',), 1398513117: ('0.020911226166822474',), 1398513113: ('0.020911226166822474',), 1398513107: ('0.020911226166822474',), 1398513105: ('0.020911226166822474',), 1398513074: ('0.020911226166822474',), 1398513072: ('0.020911226166822474',), 1398513070: ('0.020911226166822474',), 1398513068: ('0.020911226166822474',), 1398513066: ('0.020911226166822474',)} args : 1398513072 depend.output_id : 0 input_args_next_step : {1398513119: ('0.020911226166822474',), 1398513117: ('0.020911226166822474',), 1398513113: ('0.020911226166822474',), 1398513107: ('0.020911226166822474',), 1398513105: ('0.020911226166822474',), 1398513074: ('0.020911226166822474',), 1398513072: ('0.020911226166822474',), 1398513070: ()} output_args : {1398513119: ('0.020911226166822474',), 1398513117: ('0.020911226166822474',), 1398513113: ('0.020911226166822474',), 1398513107: ('0.020911226166822474',), 1398513105: ('0.020911226166822474',), 1398513074: ('0.020911226166822474',), 1398513072: ('0.020911226166822474',), 1398513070: ('0.020911226166822474',), 1398513068: ('0.020911226166822474',), 1398513066: ('0.020911226166822474',)} args : 1398513070 depend.output_id : 0 input_args_next_step : {1398513119: ('0.020911226166822474',), 1398513117: ('0.020911226166822474',), 1398513113: ('0.020911226166822474',), 1398513107: ('0.020911226166822474',), 1398513105: ('0.020911226166822474',), 1398513074: ('0.020911226166822474',), 1398513072: ('0.020911226166822474',), 1398513070: ('0.020911226166822474',), 1398513068: ()} output_args : {1398513119: ('0.020911226166822474',), 1398513117: ('0.020911226166822474',), 1398513113: ('0.020911226166822474',), 1398513107: ('0.020911226166822474',), 1398513105: ('0.020911226166822474',), 1398513074: ('0.020911226166822474',), 1398513072: ('0.020911226166822474',), 1398513070: ('0.020911226166822474',), 1398513068: ('0.020911226166822474',), 1398513066: ('0.020911226166822474',)} args : 1398513068 depend.output_id : 0 input_args_next_step : {1398513119: ('0.020911226166822474',), 1398513117: ('0.020911226166822474',), 1398513113: ('0.020911226166822474',), 1398513107: ('0.020911226166822474',), 1398513105: ('0.020911226166822474',), 1398513074: ('0.020911226166822474',), 1398513072: ('0.020911226166822474',), 1398513070: ('0.020911226166822474',), 1398513068: ('0.020911226166822474',), 1398513066: ()} output_args : {1398513119: ('0.020911226166822474',), 1398513117: ('0.020911226166822474',), 1398513113: ('0.020911226166822474',), 1398513107: ('0.020911226166822474',), 1398513105: ('0.020911226166822474',), 1398513074: ('0.020911226166822474',), 1398513072: ('0.020911226166822474',), 1398513070: ('0.020911226166822474',), 1398513068: ('0.020911226166822474',), 1398513066: ('0.020911226166822474',)} args : 1398513066 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 : {29271024: [{'Teint_Dans_La_Masse': 29271056, 'papier': 29271057, 'cartonnette': 29271058, 'metal': 29271059, 'Carton_gris': 29271060, 'mal_croppe': 29271061, 'flou': 29271062, 'plastique': 29271063, 'autre_refus': 29271064, 'environnement': 29271065, 'Carton_brun': 29271066, 'kraft': 29271067}]} input_args_next_step : {1398513119: ('0.020911226166822474',), 1398513117: ('0.020911226166822474',), 1398513113: ('0.020911226166822474',), 1398513107: ('0.020911226166822474',), 1398513105: ('0.020911226166822474',), 1398513074: ('0.020911226166822474',), 1398513072: ('0.020911226166822474',), 1398513070: ('0.020911226166822474',), 1398513068: ('0.020911226166822474',), 1398513066: ('0.020911226166822474',), 29271024: ()} output_args : {29271024: [{'Teint_Dans_La_Masse': 29271056, 'papier': 29271057, 'cartonnette': 29271058, 'metal': 29271059, 'Carton_gris': 29271060, 'mal_croppe': 29271061, 'flou': 29271062, 'plastique': 29271063, 'autre_refus': 29271064, 'environnement': 29271065, 'Carton_brun': 29271066, 'kraft': 29271067}]} args : 29271024 depend.output_id : 0 We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :11, first value : ('0.020911226166822474',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29271024) 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 (1398513119,1398513117,1398513113,1398513107,1398513105,1398513074,1398513072,1398513070,1398513068,1398513066) Found this number of photos: 10 ##### Call download_photos : nb_thread : 5 begin to download photo : 1398513066 begin to download photo : 1398513072 begin to download photo : 1398513107 begin to download photo : 1398513119 download finish for photo 1398513066 begin to download photo : 1398513068 download finish for photo 1398513119 download finish for photo 1398513072 begin to download photo : 1398513074 download finish for photo 1398513107 begin to download photo : 1398513113 download finish for photo 1398513068 begin to download photo : 1398513070 download finish for photo 1398513074 begin to download photo : 1398513105 download finish for photo 1398513113 begin to download photo : 1398513117 download finish for photo 1398513105 download finish for photo 1398513070 download finish for photo 1398513117 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette292710581765294624/ imagette292710591765294624/ imagette292710611765294624/ imagette292710621765294624/ imagette292710631765294624/ length of list_filenames : 10 ; length of list_pids : 10 ; length of list_args : 10 results_Auto_P29271024_09-12-2025_16_37_04.pdf 29271058 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=29271058 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292710581765294624 29271059 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=29271059 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292710591765294624 29271061 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=29271061 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292710611765294624 29271062 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=29271062 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292710621765294624 29271063 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=29271063 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292710631765294624 29271064 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=29271064 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398513111: '1765294506_3731168_1398512962_1b88f86ecf0a44b9e9042096d78cf79a_rle_crop_4063471985_0.png', 1398513112: '1765294506_3731168_1398512961_d162321cbecb498567749ff56f29057a_rle_crop_4063471999_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/9/c8fc4e2f06ffbc37cc3b62f00bbfb7d9_94174151.png change filename to text .imagette292710641765294624/ imagette292710641765294624/1765294506_3731168_1398512961_d162321cbecb498567749ff56f29057a_rle_crop_4063471999_0.png.png imagette292710641765294624/1765294506_3731168_1398512962_1b88f86ecf0a44b9e9042096d78cf79a_rle_crop_4063471985_0.png.png imagette292710671765294624/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/9/c8fc4e2f06ffbc37cc3b62f00bbfb7d9_27227053.png imagette292710641765294624 29271067 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=29271067 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292710671765294624 29271056 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=29271056 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398513109: '1765294506_3731168_1398512966_280cf5e24346b5860b2e669d223a910a_rle_crop_4063471859_0.png', 1398513110: '1765294506_3731168_1398512965_65a8df92c97454df336c64b1268dc3cb_rle_crop_4063471871_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/9/f91a2e6fab987443e4eeba8303a7f290_83275361.png change filename to text .imagette292710561765294624/ imagette292710561765294624/1765294506_3731168_1398512965_65a8df92c97454df336c64b1268dc3cb_rle_crop_4063471871_0.png.png imagette292710561765294624/1765294506_3731168_1398512966_280cf5e24346b5860b2e669d223a910a_rle_crop_4063471859_0.png.png imagette292710601765294624/ wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/9/f91a2e6fab987443e4eeba8303a7f290_19672602.png imagette292710561765294624 29271060 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=29271060 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292710601765294624 29271066 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=29271066 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398513114: '1765294506_3731168_1398512962_1b88f86ecf0a44b9e9042096d78cf79a_rle_crop_4063471989_0.png', 1398513115: '1765294506_3731168_1398512961_d162321cbecb498567749ff56f29057a_rle_crop_4063472003_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/9/59092ee2e20a1ce81684cec184f8da60_29619656.png change filename to text .imagette292710661765294624/ imagette292710661765294624/1765294506_3731168_1398512962_1b88f86ecf0a44b9e9042096d78cf79a_rle_crop_4063471989_0.png.png imagette292710661765294624/1765294506_3731168_1398512961_d162321cbecb498567749ff56f29057a_rle_crop_4063472003_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/9/59092ee2e20a1ce81684cec184f8da60_43249895.png imagette292710661765294624 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29271024 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29271068,29271069,29271070,29271071,29271072,29271073,29271074,29271075,29271076,29271077,29271078,29271079?tags=Teint_Dans_La_Masse,papier,cartonnette,metal,Carton_gris,mal_croppe,flou,plastique,autre_refus,environnement,Carton_brun,kraft your option no_mail is active, we will not send the real mail to your client args[1398513119] : ('0.020911226166822474',) no score found for photo 1398513119 We are sending mail with results at report@fotonower.com args[1398513117] : ('0.020911226166822474',) no score found for photo 1398513117 We are sending mail with results at report@fotonower.com args[1398513113] : ('0.020911226166822474',) no score found for photo 1398513113 We are sending mail with results at report@fotonower.com args[1398513107] : ('0.020911226166822474',) no score found for photo 1398513107 We are sending mail with results at report@fotonower.com args[1398513105] : ('0.020911226166822474',) no score found for photo 1398513105 We are sending mail with results at report@fotonower.com args[1398513074] : ('0.020911226166822474',) no score found for photo 1398513074 We are sending mail with results at report@fotonower.com args[1398513072] : ('0.020911226166822474',) no score found for photo 1398513072 We are sending mail with results at report@fotonower.com args[1398513070] : ('0.020911226166822474',) no score found for photo 1398513070 We are sending mail with results at report@fotonower.com args[1398513068] : ('0.020911226166822474',) no score found for photo 1398513068 We are sending mail with results at report@fotonower.com args[1398513066] : ('0.020911226166822474',) no score found for photo 1398513066 We are sending mail with results at report@fotonower.com refus_total : 0.020911226166822474 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=29271024 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_P29271024_09-12-2025_16_37_04.pdf results_Auto_P29271024_09-12-2025_16_37_04.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29271024_09-12-2025_16_37_04.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','29271024','results_Auto_P29271024_09-12-2025_16_37_04.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29271024_09-12-2025_16_37_04.pdf','pdf','','0.11','0.020911226166822474') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29271024]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1398513119, 1398513117, 1398513113, 1398513107, 1398513105, 1398513074, 1398513072, 1398513070, 1398513068, 1398513066] map_info['map_portfolio_photo'] : {29271024: [1398513119, 1398513117, 1398513113, 1398513107, 1398513105, 1398513074, 1398513072, 1398513070, 1398513068, 1398513066, 1398513055, 1398513051, 1398513045, 1398513040, 1398513004, 1398513002, 1398513001, 1398512999, 1398512997, 1398512995, 1398512971, 1398512970, 1398512966, 1398512965, 1398512962, 1398512961]} final : False mtd_id 4302 list_pids : [1398513119, 1398513117, 1398513113, 1398513107, 1398513105, 1398513074, 1398513072, 1398513070, 1398513068, 1398513066] 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, '4199408') ('4302', '29271024', '1398513119', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513117', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513113', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513107', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513105', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513074', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513072', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513070', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513068', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513066', None, None, None, None, None, '4199408') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 10 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', '29271024', '1398513119', None, None, None, None, None, '4199408'), ('4302', '29271024', '1398513117', None, None, None, None, None, '4199408'), ('4302', '29271024', '1398513113', None, None, None, None, None, '4199408'), ('4302', '29271024', '1398513107', None, None, None, None, None, '4199408'), ('4302', '29271024', '1398513105', None, None, None, None, None, '4199408'), ('4302', '29271024', '1398513074', None, None, None, None, None, '4199408'), ('4302', '29271024', '1398513072', None, None, None, None, None, '4199408'), ('4302', '29271024', '1398513070', None, None, None, None, None, '4199408'), ('4302', '29271024', '1398513068', None, None, None, None, None, '4199408'), ('4302', '29271024', '1398513066', None, None, None, None, None, '4199408')] time used for this insertion : 0.031549930572509766 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.654503583908081 time spend to save output : 0.03176450729370117 total time spend for step 4 : 2.6862680912017822 step5:split_time_score Tue Dec 9 16:37:06 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['29271024'] 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 : [('29271024',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29271024) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1398513119: {'path': 'temp/1765294623_2205007_1398513119_de19b0f7751a92a9a514c6dcec91b194.jpg', 'extension': 'jpg'}, 1398513072: {'path': 'temp/1765294623_2205007_1398513072_9770f25c5c69bb64d812c0995b572cd9.jpg', 'extension': 'jpg'}, 1398513074: {'path': 'temp/1765294623_2205007_1398513074_a8e81cda80adfa22b285ec7aa3e3672e.jpg', 'extension': 'jpg'}, 1398513105: {'path': 'temp/1765294623_2205007_1398513105_0da4f026daad915ae3dd0f7e8e134026.jpg', 'extension': 'jpg'}, 1398513066: {'path': 'temp/1765294623_2205007_1398513066_14eb3bf62f623ef3019738d358e3cbd8.jpg', 'extension': 'jpg'}, 1398513068: {'path': 'temp/1765294623_2205007_1398513068_394dd42702f8e664ff61264aa18f092e.jpg', 'extension': 'jpg'}, 1398513070: {'path': 'temp/1765294623_2205007_1398513070_229497202b1de6be517b09dcce900294.jpg', 'extension': 'jpg'}, 1398513107: {'path': 'temp/1765294623_2205007_1398513107_68394933d27695ab0cd4b66a1a8c40d9.jpg', 'extension': 'jpg'}, 1398513113: {'path': 'temp/1765294623_2205007_1398513113_81b56c68c4540ce7bc87886fe1e9aca9.jpg', 'extension': 'jpg'}, 1398513117: {'path': 'temp/1765294623_2205007_1398513117_bb4303b1fdb5dddea6778ef208fe8441.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 = 29271024; (('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 = 29271024 group by h (('16', 26),) 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=29271024 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 (29271024) 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 (29271024) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 09122025 29271024 Nombre de photos uploadées : 26 / 23040 (0%) 09122025 29271024 Nombre de photos taguées (types de déchets): 0 / 26 (0%) 09122025 29271024 Nombre de photos taguées (volume) : 0 / 26 (0%) [{'photo_id': 1398512970, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/9/b2766eafdb3e624dc5cab33cc08dc72e.jpg', 'username': None, 'uploaded_at': 1765294293, 'text': 'image_09122025_16_30_24_010137m0.jpg 1e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1398512971, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/9/4245e77b2a76ce8f2bde53ecff8a099a.jpg', 'username': None, 'uploaded_at': 1765294293, 'text': 'image_09122025_16_30_24_010137m0.jpg 2e-05 for time 1, id_amount 2 this amount prod time diff : 1e-05'}, {'photo_id': 1398512965, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/9/65a8df92c97454df336c64b1268dc3cb.jpg', 'username': None, 'uploaded_at': 1765294293, 'text': 'image_09122025_16_30_34_010167m0.jpg 3.0000000000000004e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}, {'photo_id': 1398512966, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/9/280cf5e24346b5860b2e669d223a910a.jpg', 'username': None, 'uploaded_at': 1765294293, 'text': 'image_09122025_16_30_34_010167m0.jpg 4e-05 for time 1, id_amount 3 this amount prod time diff : 1e-05'}] 0 [] elapsed_time : load_data_split_time_score 1.430511474609375e-06 elapsed_time : order_list_meta_photo_and_scores 4.76837158203125e-06 ?????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0011622905731201172 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 10, 29271024, '2025-12-09' ) 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-09' ; INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2709875,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.48299455642700195 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= 2709875 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2709875, 'dashboard_run_id': 2717442, 'mtr_portfolio_id': 29267748, 'dashboard_result_id': 18170755, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 2709875, 'dashboard_run_id': 2717442, 'mtr_portfolio_id': 29267751, 'dashboard_result_id': 18170756, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 2709875, 'dashboard_run_id': 2717442, 'mtr_portfolio_id': 29267753, 'dashboard_result_id': 18170757, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 2709875, 'dashboard_run_id': 2717442, 'mtr_portfolio_id': 29267754, 'dashboard_result_id': 18170758, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 2709875, 'dashboard_run_id': 2717442, 'mtr_portfolio_id': 29267755, 'dashboard_result_id': 18170759, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 2709875, 'dashboard_run_id': 2717442, 'mtr_portfolio_id': 29267756, 'dashboard_result_id': 18170760, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 2709875, 'dashboard_run_id': 2717442, 'mtr_portfolio_id': 29267757, 'dashboard_result_id': 18170761, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 2709875, 'dashboard_run_id': 2717442, 'mtr_portfolio_id': 29267758, 'dashboard_result_id': 18170762, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 2709875, 'dashboard_run_id': 2717442, 'mtr_portfolio_id': 29267759, 'dashboard_result_id': 18170763, 'hashtag': '_______JRM', 'completion_json': "{'max_time_prod_two_photos': 0}"}, {'dashboat_entry_day': 2709875, 'dashboard_run_id': 2717442, 'mtr_portfolio_id': 29266334, 'dashboard_result_id': 18170764, '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_P29266334_09-12-2025_14_01_02.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29266389, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29266390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29266391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29266392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29266393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29266394, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29266395, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29266396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29266397, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29266398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29266399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29266400, 'pht': 3726}}"}, {'dashboat_entry_day': 2709875, 'dashboard_run_id': 2717442, 'mtr_portfolio_id': 29266335, 'dashboard_result_id': 18170765, '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_P29266335_09-12-2025_14_00_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29266363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29266364, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29266365, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29266366, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29266367, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29266368, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29266369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29266370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29266371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29266372, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29266373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29266374, 'pht': 3726}}"}, {'dashboat_entry_day': 2709875, 'dashboard_run_id': 2717442, 'mtr_portfolio_id': 29266336, 'dashboard_result_id': 18170766, '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_P29266336_09-12-2025_14_00_04.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29266337, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29266338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29266339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29266340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29266341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29266342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29266343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29266344, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29266345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29266346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29266347, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29266348, 'pht': 3726}}"}, {'dashboat_entry_day': 2709875, 'dashboard_run_id': 2717442, 'mtr_portfolio_id': 29267192, 'dashboard_result_id': 18170767, '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_P29267192_09-12-2025_15_01_01.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29267224, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29267225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29267226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29267227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29267228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29267229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29267230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29267231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29267232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29267233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29267234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29267235, 'pht': 3726}}"}, {'dashboat_entry_day': 2709875, 'dashboard_run_id': 2717442, 'mtr_portfolio_id': 29269542, 'dashboard_result_id': 18170768, '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_P29269542_09-12-2025_16_03_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29269545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29269546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29269547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29269548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29269549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29269550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29269551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29269552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29269553, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29269554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29269555, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29269556, 'pht': 3726}}"}, {'dashboat_entry_day': 2709875, 'dashboard_run_id': 2717442, 'mtr_portfolio_id': 29269897, 'dashboard_result_id': 18170769, '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_P29269897_09-12-2025_16_19_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29269904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29269905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29269906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29269907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29269908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29269909, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29269910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29269911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29269912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29269913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29269914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29269915, 'pht': 3726}}"}, {'dashboat_entry_day': 2709875, 'dashboard_run_id': 2717442, 'mtr_portfolio_id': 29270467, 'dashboard_result_id': 18170770, '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_P29270467_09-12-2025_16_33_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29270528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29270529, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29270530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29270531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29270532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29270533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29270534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29270535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29270536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29270537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29270538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29270539, 'pht': 3726}}"}, {'dashboat_entry_day': 2709875, 'dashboard_run_id': 2717442, 'mtr_portfolio_id': 29271024, 'dashboard_result_id': 18170771, '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_P29271024_09-12-2025_16_35_05.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29271056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29271057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29271058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29271059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29271060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29271061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29271062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29271063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29271064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29271065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29271066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29271067, 'pht': 3726}}"}] SELECT mtd_id, mtr_current_id, mtr_portfolio_id, created_at, result, result_long, result_double FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29267748 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 = 29267748 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 = 29267748 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29267748 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 = 29267748 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 = 29267748 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29267748_09-12-2025_15_09_36.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29267748 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_P29267748_09-12-2025_15_09_36.pdf'}" where mtr_portfolio_id = 29267748 and dashboard_run_id = 2717442 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 = 29267751 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 = 29267751 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 = 29267751 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29267751 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 = 29267751 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 = 29267751 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29267751_09-12-2025_15_08_38.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29267751 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_P29267751_09-12-2025_15_08_38.pdf'}" where mtr_portfolio_id = 29267751 and dashboard_run_id = 2717442 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 = 29267753 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 = 29267753 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 = 29267753 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29267753 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 = 29267753 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 = 29267753 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29267753_09-12-2025_15_08_07.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29267753 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_P29267753_09-12-2025_15_08_07.pdf'}" where mtr_portfolio_id = 29267753 and dashboard_run_id = 2717442 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 = 29267754 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 = 29267754 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 = 29267754 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29267754 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 = 29267754 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 = 29267754 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29267754_09-12-2025_15_06_37.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29267754 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_P29267754_09-12-2025_15_06_37.pdf'}" where mtr_portfolio_id = 29267754 and dashboard_run_id = 2717442 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 = 29267755 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 = 29267755 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 = 29267755 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29267755 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 = 29267755 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 = 29267755 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29267755_09-12-2025_15_06_23.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29267755 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_P29267755_09-12-2025_15_06_23.pdf'}" where mtr_portfolio_id = 29267755 and dashboard_run_id = 2717442 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 = 29267756 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 = 29267756 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 = 29267756 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29267756 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 = 29267756 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 = 29267756 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29267756_09-12-2025_15_06_09.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29267756 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_P29267756_09-12-2025_15_06_09.pdf'}" where mtr_portfolio_id = 29267756 and dashboard_run_id = 2717442 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 = 29267757 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 = 29267757 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 = 29267757 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29267757 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 = 29267757 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 = 29267757 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29267757_09-12-2025_15_05_39.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29267757 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_P29267757_09-12-2025_15_05_39.pdf'}" where mtr_portfolio_id = 29267757 and dashboard_run_id = 2717442 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 = 29267758 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 = 29267758 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 = 29267758 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29267758 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 = 29267758 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 = 29267758 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29267758_09-12-2025_15_04_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29267758 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_P29267758_09-12-2025_15_04_34.pdf'}" where mtr_portfolio_id = 29267758 and dashboard_run_id = 2717442 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 = 29267759 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 = 29267759 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 = 29267759 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29267759 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 = 29267759 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 = 29267759 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29267759_09-12-2025_15_04_08.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29267759 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_P29267759_09-12-2025_15_04_08.pdf'}" where mtr_portfolio_id = 29267759 and dashboard_run_id = 2717442 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 = 29266334 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 = 29266334 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 = 29266334 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29266334 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 = 29266334 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 = 29266334 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29266334_09-12-2025_15_02_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29266334 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_P29266334_09-12-2025_15_02_33.pdf', 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29266389, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29266390, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29266391, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29266392, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29266393, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29266394, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29266395, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29266396, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29266397, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29266398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29266399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29266400, 'pht': 3726}}" where mtr_portfolio_id = 29266334 and dashboard_run_id = 2717442 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 = 29266335 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 = 29266335 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 = 29266335 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29266335 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 = 29266335 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 = 29266335 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29266335_09-12-2025_14_00_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29266335 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_P29266335_09-12-2025_14_00_33.pdf', 'papier': {'hashtag': 'papier', 'sub_port_id': 29266363, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29266364, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29266365, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29266366, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29266367, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29266368, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29266369, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29266370, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29266371, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29266372, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29266373, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29266374, 'pht': 3726}}" where mtr_portfolio_id = 29266335 and dashboard_run_id = 2717442 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 = 29266336 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 = 29266336 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 = 29266336 and created_at >= ( SELECT min(created_at) FROM MTRPhoto.mtr_datou_result WHERE mtr_portfolio_id = 29266336 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 = 29266336 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 = 29266336 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29266336_09-12-2025_15_02_34.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29266336 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_P29266336_09-12-2025_15_02_34.pdf', 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29266337, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29266338, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29266339, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29266340, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29266341, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29266342, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29266343, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29266344, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29266345, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29266346, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29266347, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29266348, 'pht': 3726}}" where mtr_portfolio_id = 29266336 and dashboard_run_id = 2717442 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 = 29267192 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': 4198993, 'mtr_portfolio_id': 29267192, 'created_at': datetime.datetime(2025, 12, 9, 15, 2, 59), 'result': '0.055123495118521916', 'result_long': None, 'result_double': None}] Qualite : 0.055123495118521916 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29267192 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29267192_09-12-2025_15_02_59.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29267192 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_P29267192_09-12-2025_15_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29267224, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29267225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29267226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29267227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29267228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29267229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29267230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29267231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29267232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29267233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29267234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29267235, 'pht': 3726}}" where mtr_portfolio_id = 29267192 and dashboard_run_id = 2717442 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`=29267192 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18170767, 0.055123495118521916, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29267192_09-12-2025_15_02_59.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29267224, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29267225, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29267226, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29267227, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29267228, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29267229, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29267230, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29267231, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29267232, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29267233, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29267234, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29267235, '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 = 29269542 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': 4199222, 'mtr_portfolio_id': 29269542, 'created_at': datetime.datetime(2025, 12, 9, 16, 3, 2), 'result': '0.061443197515436254', 'result_long': None, 'result_double': None}] Qualite : 0.061443197515436254 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29269542 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29269542_09-12-2025_16_03_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29269542 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_P29269542_09-12-2025_16_03_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29269545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29269546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29269547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29269548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29269549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29269550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29269551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29269552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29269553, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29269554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29269555, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29269556, 'pht': 3726}}" where mtr_portfolio_id = 29269542 and dashboard_run_id = 2717444 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`=29269542 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18170768, 0.061443197515436254, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29269542_09-12-2025_16_03_03.pdf', 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29269545, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29269546, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29269547, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29269548, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29269549, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29269550, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29269551, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29269552, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29269553, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29269554, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29269555, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29269556, '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 = 29269897 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': 4199288, 'mtr_portfolio_id': 29269897, 'created_at': datetime.datetime(2025, 12, 9, 16, 19, 1), 'result': '0.05629057871474523', 'result_long': None, 'result_double': None}] Qualite : 0.05629057871474523 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29269897 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29269897_09-12-2025_16_19_01.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29269897 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_P29269897_09-12-2025_16_19_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29269904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29269905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29269906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29269907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29269908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29269909, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29269910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29269911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29269912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29269913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29269914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29269915, 'pht': 3726}}" where mtr_portfolio_id = 29269897 and dashboard_run_id = 2717444 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`=29269897 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18170769, 0.05629057871474523, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29269897_09-12-2025_16_19_01.pdf', 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29269904, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29269905, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29269906, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29269907, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29269908, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29269909, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29269910, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29269911, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29269912, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29269913, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29269914, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29269915, '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 = 29270467 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': 4199344, 'mtr_portfolio_id': 29270467, 'created_at': datetime.datetime(2025, 12, 9, 16, 33, 2), 'result': '0.04375678261221711', 'result_long': None, 'result_double': None}] Qualite : 0.04375678261221711 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29270467 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29270467_09-12-2025_16_33_03.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29270467 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_P29270467_09-12-2025_16_33_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29270528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29270529, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29270530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29270531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29270532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29270533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29270534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29270535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29270536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29270537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29270538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29270539, 'pht': 3726}}" where mtr_portfolio_id = 29270467 and dashboard_run_id = 2717444 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`=29270467 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18170770, 0.04375678261221711, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29270467_09-12-2025_16_33_03.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29270528, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29270529, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29270530, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29270531, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29270532, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29270533, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29270534, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29270535, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29270536, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29270537, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29270538, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29270539, '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 = 29271024 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': 4199408, 'mtr_portfolio_id': 29271024, 'created_at': datetime.datetime(2025, 12, 9, 16, 37, 3), 'result': '0.020911226166822474', 'result_long': None, 'result_double': None}] Qualite : 0.020911226166822474 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29271024 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29271024_09-12-2025_16_37_04.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29271024 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_P29271024_09-12-2025_16_37_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29271056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29271057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29271058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29271059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29271060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29271061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29271062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29271063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29271064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29271065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29271066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29271067, 'pht': 3726}}" where mtr_portfolio_id = 29271024 and dashboard_run_id = 2717444 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`=29271024 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18170771, 0.020911226166822474, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29271024_09-12-2025_16_37_04.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29271056, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29271057, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29271058, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29271059, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29271060, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29271061, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29271062, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29271063, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29271064, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29271065, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29271066, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29271067, 'pht': 3726}}") ON DUPLICATE KEY UPDATE qualite=VALUES(qualite), completion_json=VALUES(completion_json) ret update_qualite_results : None SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29267748,29267751,29267753,29267754,29267755,29267756,29267757,29267758,29267759,29266334,29266335,29266336,29267192,29269542,29269897,29270467,29271024) result : ((1398478389,), (1398478392,), (1398478395,), (1398478404,), (1398478406,), (1398478408,), (1398478411,), (1398478413,), (1398478415,), (1398478421,), (1398478422,), (1398478425,), (1398478426,), (1398478429,), (1398478430,), (1398478433,), (1398478434,), (1398478438,), (1398478439,), (1398478442,), (1398478443,), (1398478457,), (1398478492,), (1398478526,), (1398478560,), (1398478593,), (1398478627,), (1398478793,), (1398478869,), (1398478936,), (1398478975,), (1398479014,), (1398479050,), (1398479333,), (1398479338,), (1398479344,), (1398479350,), (1398479353,), (1398479358,), (1398479362,), (1398479364,), (1398479366,), (1398479368,), (1398479370,), (1398479374,), (1398479382,), (1398479384,), (1398479387,), (1398479389,), (1398479391,), (1398479393,), (1398479400,), (1398479403,), (1398479405,), (1398479408,), (1398479411,), (1398479414,), (1398479421,), (1398479422,), (1398479424,), (1398479426,), (1398479430,), (1398479434,), (1398479442,), (1398479445,), (1398479448,), (1398479450,), (1398479452,), (1398479454,), (1398478115,), (1398478116,), (1398478118,), (1398478120,), (1398478126,), (1398478128,), (1398478132,), (1398478137,), (1398478142,), (1398478146,), (1398478154,), (1398478156,), (1398478158,), (1398478161,), (1398478164,), (1398478166,), (1398478174,), (1398478177,), (1398478181,), (1398478185,), (1398478190,), (1398478194,), (1398478201,), (1398478203,), (1398478205,), (1398478208,), (1398478212,), (1398478216,), (1398478222,), (1398478225,), (1398478227,), (1398478229,), (1398478231,), (1398478234,), (1398478247,), (1398478250,), (1398478254,), (1398478257,), (1398478261,), (1398478264,), (1398478268,), (1398478271,), (1398478274,), (1398478277,), (1398478280,), (1398478284,), (1398478294,), (1398478298,), (1398478301,), (1398478303,), (1398478308,), (1398478311,), (1398478320,), (1398478323,), (1398478327,), (1398478332,), (1398478335,), (1398478338,), (1398478344,), (1398478346,), (1398478349,), (1398478352,), (1398478355,), (1398478358,), (1398478367,), (1398478370,), (1398478372,), (1398478373,), (1398478375,), (1398478377,), (1398478381,), (1398478383,), (1398478386,), (1398477880,), (1398477881,), (1398477883,), (1398477892,), (1398477895,), (1398477899,), (1398477903,), (1398477905,), (1398477906,), (1398477907,), (1398477909,), (1398477911,), (1398477915,), (1398477919,), (1398477922,), (1398477934,), (1398477936,), (1398477938,), (1398477939,), (1398477940,), (1398477943,), (1398477954,), (1398477957,), (1398477959,), (1398477962,), (1398477965,), (1398477968,), (1398477985,), (1398477987,), (1398477991,), (1398477994,), (1398477998,), (1398478002,), (1398478010,), (1398478012,), (1398478014,), (1398478016,), (1398478019,), (1398478022,), (1398478042,), (1398478044,), (1398478046,), (1398478048,), (1398478051,), (1398478053,), (1398478063,), (1398478067,), (1398478070,), (1398478073,), (1398478077,), (1398478079,), (1398478087,), (1398478089,), (1398478092,), (1398478095,), (1398478097,), (1398478101,), (1398478109,), (1398478111,), (1398480933,), (1398491628,), (1398491666,), (1398492370,), (1398492402,), (1398492436,), (1398492548,), (1398492777,), (1398492778,), (1398492782,), (1398492786,), (1398492790,), (1398492835,), (1398492838,), (1398492841,), (1398492861,), (1398492862,), (1398492866,), (1398493100,), (1398493206,), (1398493314,), (1398493409,), (1398493473,), (1398493477,), (1398493555,), (1398493564,), (1398493590,), (1398494074,), (1398494075,), (1398494110,), (1398494115,), (1398494156,), (1398494157,), (1398494188,), (1398494189,), (1398494241,), (1398494270,), (1398494297,), (1398494315,), (1398494318,), (1398494509,), (1398494565,), (1398494624,), (1398494759,), (1398494761,), (1398494764,), (1398494767,), (1398494770,), (1398495332,), (1398495418,), (1398495454,), (1398495483,), (1398496799,), (1398494378,), (1398494380,), (1398494381,), (1398494383,), (1398494386,), (1398494675,), (1398494688,), (1398494693,), (1398494774,), (1398495513,), (1398495598,), (1398495867,), (1398495948,), (1398496030,), (1398496080,), (1398496138,), (1398496199,), (1398496871,), (1398497043,), (1398497065,), (1398497093,), (1398497395,), (1398497451,), (1398497687,), (1398497732,), (1398497778,), (1398497835,), (1398497908,), (1398497961,), (1398498085,), (1398498090,), (1398498149,), (1398498150,), (1398498180,), (1398498182,), (1398498441,), (1398498469,), (1398498591,), (1398498624,), (1398498653,), (1398498663,), (1398498680,), (1398498699,), (1398498808,), (1398498827,), (1398498832,), (1398498840,), (1398498842,), (1398498867,), (1398498893,), (1398498919,), (1398498945,), (1398499177,), (1398499810,), (1398500190,), (1398500334,), (1398500486,), (1398500582,), (1398500641,), (1398500688,), (1398501004,), (1398501049,), (1398501231,), (1398501248,), (1398501258,), (1398501263,), (1398501264,), (1398501270,), (1398501280,), (1398501287,), (1398492879,), (1398492882,), (1398492885,), (1398492888,), (1398492891,), (1398492894,), (1398493613,), (1398493618,), (1398493621,), (1398493766,), (1398493801,), (1398493839,), (1398493875,), (1398493912,), (1398493950,), (1398494192,), (1398494193,), (1398494196,), (1398494197,), (1398494339,), (1398494376,), (1398487618,), (1398487771,), (1398487905,), (1398488061,), (1398488374,), (1398488465,), (1398488568,), (1398488731,), (1398488858,), (1398488995,), (1398489461,), (1398489543,), (1398489612,), (1398489708,), (1398489793,), (1398489854,), (1398490018,), (1398490101,), (1398490172,), (1398490257,), (1398490351,), (1398490431,), (1398490745,), (1398490823,), (1398490882,), (1398490900,), (1398490926,), (1398491021,), (1398491057,), (1398491090,), (1398491123,), (1398491182,), (1398491253,), (1398491374,), (1398491383,), (1398491417,), (1398491471,), (1398491494,), (1398491497,), (1398491611,), (1398491616,), (1398491618,), (1398491620,), (1398491622,), (1398491624,), (1398491771,), (1398491880,), (1398492000,), (1398492133,), (1398492580,), (1398492607,), (1398492688,), (1398492724,), (1398492726,), (1398492752,), (1398492766,), (1398492772,), (1398492794,), (1398492798,), (1398492800,), (1398492803,), (1398492806,), (1398492809,), (1398492813,), (1398492844,), (1398492845,), (1398492850,), (1398492871,), (1398492873,), (1398492875,), (1398483611,), (1398483721,), (1398484213,), (1398484326,), (1398484391,), (1398484427,), (1398484472,), (1398484542,), (1398484924,), (1398485056,), (1398485166,), (1398485247,), (1398485324,), (1398485385,), (1398485779,), (1398485903,), (1398486077,), (1398486136,), (1398486170,), (1398486184,), (1398486262,), (1398486299,), (1398486336,), (1398486374,), (1398486410,), (1398486437,), (1398486569,), (1398486619,), (1398486660,), (1398486716,), (1398486787,), (1398486848,), (1398486975,), (1398487044,), (1398487098,), (1398487140,), (1398487197,), (1398487259,), (1398487432,), (1398487440,), (1398487442,), (1398487444,), (1398487447,), (1398487450,), (1398487461,), (1398487484,), (1398481083,), (1398481086,), (1398481091,), (1398481102,), (1398481106,), (1398481110,), (1398481113,), (1398481115,), (1398481118,), (1398481132,), (1398481137,), (1398481142,), (1398481145,), (1398481148,), (1398481152,), (1398481157,), (1398481159,), (1398481161,), (1398481164,), (1398481167,), (1398481170,), (1398481179,), (1398481182,), (1398481183,), (1398481186,), (1398481189,), (1398481191,), (1398481197,), (1398481199,), (1398481202,), (1398481205,), (1398481208,), (1398481211,), (1398481214,), (1398481216,), (1398481219,), (1398481222,), (1398481226,), (1398481236,), (1398481249,), (1398481251,), (1398481277,), (1398481280,), (1398481284,), (1398481285,), (1398481294,), (1398481298,), (1398481301,), (1398481304,), (1398481307,), (1398481310,), (1398481323,), (1398481357,), (1398481393,), (1398481429,), (1398481471,), (1398481537,), (1398481782,), (1398481783,), (1398481855,), (1398481856,), (1398481930,), (1398481936,), (1398482010,), (1398482024,), (1398482083,), (1398482110,), (1398482239,), (1398482283,), (1398482826,), (1398482891,), (1398483022,), (1398483120,), (1398483264,), (1398483317,), (1398483432,), (1398483466,), (1398483501,), (1398483533,), (1398480841,), (1398480843,), (1398480853,), (1398480856,), (1398480858,), (1398480862,), (1398480866,), (1398480868,), (1398480875,), (1398480877,), (1398480881,), (1398480885,), (1398480889,), (1398480893,), (1398480897,), (1398480899,), (1398480902,), (1398480905,), (1398480908,), (1398480911,), (1398480934,), (1398480935,), (1398480938,), (1398480941,), (1398480951,), (1398480955,), (1398480957,), (1398480959,), (1398480960,), (1398480961,), (1398480968,), (1398480971,), (1398480974,), (1398480977,), (1398480978,), (1398480980,), (1398480990,), (1398480993,), (1398480996,), (1398480999,), (1398481002,), (1398481003,), (1398481007,), (1398481008,), (1398481012,), (1398481016,), (1398481021,), (1398481026,), (1398481032,), (1398481035,), (1398481038,), (1398481040,), (1398481042,), (1398481045,), (1398481054,), (1398481059,), (1398481062,), (1398481065,), (1398481067,), (1398481070,), (1398481079,), (1398481081,), (1398479970,), (1398479985,), (1398479990,), (1398479999,), (1398480013,), (1398480015,), (1398480020,), (1398480024,), (1398480027,), (1398480031,), (1398480035,), (1398480039,), (1398480045,), (1398480046,), (1398480049,), (1398480052,), (1398480055,), (1398480057,), (1398480065,), (1398480066,), (1398480068,), (1398480069,), (1398480072,), (1398480073,), (1398480078,), (1398480079,), (1398480084,), (1398480085,), (1398480089,), (1398480090,), (1398480099,), (1398480101,), (1398480105,), (1398480126,), (1398480163,), (1398480203,), (1398480327,), (1398480365,), (1398480398,), (1398480434,), (1398480470,), (1398480505,), (1398480556,), (1398480557,), (1398480581,), (1398480617,), (1398480642,), (1398480646,), (1398480693,), (1398480718,), (1398480720,), (1398480721,), (1398480724,), (1398480727,), (1398480741,), (1398480744,), (1398480746,), (1398480750,), (1398480754,), (1398480758,), (1398480765,), (1398480766,), (1398480768,), (1398480770,), (1398480774,), (1398480777,), (1398480789,), (1398480791,), (1398480793,), (1398480795,), (1398480799,), (1398480803,), (1398480813,), (1398480817,), (1398480819,), (1398480821,), (1398480822,), (1398480825,), (1398480831,), (1398480834,), (1398480836,), (1398480839,), (1398479697,), (1398479700,), (1398479703,), (1398479712,), (1398479714,), (1398479716,), (1398479719,), (1398479721,), (1398479723,), (1398479731,), (1398479733,), (1398479737,), (1398479741,), (1398479743,), (1398479746,), (1398479753,), (1398479756,), (1398479761,), (1398479765,), (1398479769,), (1398479772,), (1398479780,), (1398479783,), (1398479785,), (1398479788,), (1398479792,), (1398479794,), (1398479805,), (1398479806,), (1398479811,), (1398479813,), (1398479816,), (1398479818,), (1398479822,), (1398479823,), (1398479829,), (1398479830,), (1398479833,), (1398479834,), (1398479841,), (1398479843,), (1398479845,), (1398479847,), (1398479850,), (1398479852,), (1398479862,), (1398479865,), (1398479867,), (1398479869,), (1398479873,), (1398479876,), (1398479883,), (1398479886,), (1398479887,), (1398479889,), (1398479891,), (1398479895,), (1398479905,), (1398479908,), (1398479911,), (1398479913,), (1398479914,), (1398479915,), (1398479923,), (1398479924,), (1398479928,), (1398479929,), (1398479933,), (1398479934,), (1398479936,), (1398479938,), (1398479941,), (1398479942,), (1398479944,), (1398479945,), (1398479949,), (1398479951,), (1398479953,), (1398479956,), (1398479959,), (1398479961,), (1398479459,), (1398479462,), (1398479466,), (1398479470,), (1398479474,), (1398479477,), (1398479481,), (1398479483,), (1398479486,), (1398479490,), (1398479497,), (1398479502,), (1398479537,), (1398479541,), (1398479545,), (1398479549,), (1398479553,), (1398479557,), (1398479567,), (1398479571,), (1398479576,), (1398479579,), (1398479583,), (1398479587,), (1398479591,), (1398479594,), (1398479598,), (1398479601,), (1398479605,), (1398479609,), (1398479613,), (1398479615,), (1398479618,), (1398479621,), (1398479624,), (1398479627,), (1398479631,), (1398479633,), (1398479638,), (1398479641,), (1398479645,), (1398479649,), (1398479654,), (1398479655,), (1398479656,), (1398479659,), (1398479662,), (1398479665,), (1398479676,), (1398479678,), (1398479680,), (1398479681,), (1398479683,), (1398479685,), (1398479688,), (1398479691,), (1398479694,), (1398505333,), (1398505340,), (1398505380,), (1398505383,), (1398505448,), (1398505471,), (1398505509,), (1398505512,), (1398505613,), (1398505654,), (1398505657,), (1398505659,), (1398505670,), (1398505673,), (1398505676,), (1398505724,), (1398505728,), (1398505730,), (1398505732,), (1398505741,), (1398505744,), (1398505747,), (1398505750,), (1398505753,), (1398505756,), (1398505796,), (1398505829,), (1398505903,), (1398506258,), (1398506314,), (1398506365,), (1398506420,), (1398506467,), (1398506725,), (1398506628,), (1398506657,), (1398506685,), (1398507122,), (1398507124,), (1398507152,), (1398508073,), (1398508100,), (1398508298,), (1398508325,), (1398508353,), (1398508719,), (1398508722,), (1398508729,), (1398508734,), (1398508739,), (1398508742,), (1398508824,), (1398508825,), (1398508852,), (1398508855,), (1398508880,), (1398508883,), (1398508907,), (1398508910,), (1398508938,), (1398508946,), (1398509083,), (1398509118,), (1398509185,), (1398509242,), (1398509295,), (1398510072,), (1398510111,), (1398510139,), (1398510164,), (1398510219,), (1398510283,), (1398510594,), (1398510677,), (1398510747,), (1398510794,), (1398511309,), (1398511313,), (1398511320,), (1398511327,), (1398511330,), (1398511402,), (1398511457,), (1398511512,), (1398511561,), (1398511614,), (1398512077,), (1398512082,), (1398512088,), (1398512094,), (1398512217,), (1398512220,), (1398512223,), (1398512246,), (1398512274,), (1398512351,), (1398512354,), (1398512358,), (1398512419,), (1398512411,), (1398512413,), (1398512416,), (1398512429,), (1398512431,), (1398512433,), (1398512435,), (1398512482,), (1398512484,), (1398512487,), (1398512490,), (1398512501,), (1398512503,), (1398512505,), (1398512553,), (1398512564,), (1398512594,), (1398512595,), (1398512641,), (1398512642,), (1398512645,), (1398512646,), (1398512670,), (1398512673,), (1398512676,), (1398512679,), (1398512723,), (1398512724,), (1398512726,), (1398512727,), (1398512729,), (1398512730,), (1398512735,), (1398512736,), (1398512738,), (1398512739,), (1398512750,), (1398512753,), (1398512756,), (1398512801,), (1398512803,), (1398512820,), (1398512823,), (1398512827,), (1398512830,), (1398512837,), (1398512848,), (1398512873,), (1398512876,), (1398512889,), (1398512892,), (1398512895,), (1398512898,), (1398512901,), (1398512913,), (1398512915,), (1398512918,), (1398512920,), (1398512922,), (1398512923,), (1398512975,), (1398512976,), (1398512961,), (1398512962,), (1398512965,), (1398512966,), (1398512970,), (1398512971,), (1398512995,), (1398512997,), (1398512999,), (1398513001,), (1398513002,), (1398513004,), (1398513040,), (1398513045,), (1398513051,), (1398513055,), (1398513066,), (1398513068,), (1398513070,), (1398513072,), (1398513074,), (1398513105,), (1398513107,), (1398513113,), (1398513117,), (1398513119,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'09122025': {'nb_upload': 26, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29271024]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1398513119, 1398513117, 1398513113, 1398513107, 1398513105, 1398513074, 1398513072, 1398513070, 1398513068, 1398513066] map_info['map_portfolio_photo'] : {29271024: [1398513119, 1398513117, 1398513113, 1398513107, 1398513105, 1398513074, 1398513072, 1398513070, 1398513068, 1398513066, 1398513055, 1398513051, 1398513045, 1398513040, 1398513004, 1398513002, 1398513001, 1398512999, 1398512997, 1398512995, 1398512971, 1398512970, 1398512966, 1398512965, 1398512962, 1398512961]} final : True mtd_id 4302 list_pids : [1398513119, 1398513117, 1398513113, 1398513107, 1398513105, 1398513074, 1398513072, 1398513070, 1398513068, 1398513066] Looping around the photos to save general results len do output : 1 /29271024Didn'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, '4199408') ('4302', '29271024', '1398513119', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513117', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513113', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513107', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513105', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513074', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513072', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513070', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513068', None, None, None, None, None, '4199408') ('4302', None, None, None, None, None, None, None, '4199408') ('4302', '29271024', '1398513066', None, None, None, None, None, '4199408') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 11 insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_values : [('4302', None, '29271024', 'None', None, None, None, None, '4199408'), ('4302', '29271024', '1398513119', None, None, None, None, None, '4199408'), ('4302', '29271024', '1398513117', None, None, None, None, None, '4199408'), ('4302', '29271024', '1398513113', None, None, None, None, None, '4199408'), ('4302', '29271024', '1398513107', None, None, None, None, None, '4199408'), ('4302', '29271024', '1398513105', None, None, None, None, None, '4199408'), ('4302', '29271024', '1398513074', None, None, None, None, None, '4199408'), ('4302', '29271024', '1398513072', None, None, None, None, None, '4199408'), ('4302', '29271024', '1398513070', None, None, None, None, None, '4199408'), ('4302', '29271024', '1398513068', None, None, None, None, None, '4199408'), ('4302', '29271024', '1398513066', None, None, None, None, None, '4199408')] time used for this insertion : 0.035745859146118164 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.8924753665924072 time spend to save output : 0.03600502014160156 total time spend for step 5 : 2.928480386734009 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 (4199408) 2.11user 2.31system 0:13.66elapsed 32%CPU (0avgtext+0avgdata 165732maxresident)k 24inputs+7856outputs (1major+67428minor)pagefaults 0swaps