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 : 405734 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 (4196202) updating current state to 1 UPDATE MTRPhoto.mtr_datou_current SET state=1, hostname='marlene' WHERE id in (4196202) SELECT count(*) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29256636 AND hide_status = 0 list_input_json: [] Current got : datou_id : 4302, datou_cur_ids : ['4196202'] with mtr_portfolio_ids : ['29256636'] and first list_photo_ids : [] new path : /proc/405734/ Name: python3 Umask: 0002 State: R (running) Tgid: 405734 Ngid: 0 Pid: 405734 PPid: 405733 TracerPid: 0 Uid: 1006 1006 1006 1006 Gid: 1009 1009 1009 1009 FDSize: 64 Groups: 27 1009 1026 NStgid: 405734 NSpid: 405734 NSpgid: 404661 NSsid: 404661 VmPeak: 1113364 kB VmSize: 1113364 kB VmLck: 0 kB VmPin: 0 kB VmHWM: 105528 kB VmRSS: 105528 kB RssAnon: 66288 kB RssFile: 39240 kB RssShmem: 0 kB VmData: 872092 kB VmStk: 132 kB VmExe: 2644 kB VmLib: 130476 kB VmPTE: 616 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: 53 nonvoluntary_ctxt_switches: 95 {'Name': 'python3', 'Umask': '0002', 'State': 'R (running)', 'Tgid': '405734', 'Ngid': '0', 'Pid': '405734', 'PPid': '405733', 'TracerPid': '0', 'Uid': '1006,1006,1006,1006', 'Gid': '1009,1009,1009,1009', 'FDSize': '64', 'Groups': '27 1009 1026', 'NStgid': '405734', 'NSpid': '405734', 'NSpgid': '404661', 'NSsid': '404661', 'VmPeak': '1113364 kB', 'VmSize': '1113364 kB', 'VmLck': '0 kB', 'VmPin': '0 kB', 'VmHWM': '105528 kB', 'VmRSS': '105528 kB', 'RssAnon': '66288 kB', 'RssFile': '39240 kB', 'RssShmem': '0 kB', 'VmData': '872092 kB', 'VmStk': '132 kB', 'VmExe': '2644 kB', 'VmLib': '130476 kB', 'VmPTE': '616 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': '53', 'nonvoluntary_ctxt_switches': '95'} ('datou_batch_current', '405734', '1113364', '0', '1113364', '872092', '105528', b'', 'marlene', '4196202') 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 (29256636) 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 (4196202 ) ) 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 (29256636) AND hide_status = 0 ORDER by mtr_photo_id desc LIMIT 0, 200 list_result: [{'photo_id': 1398444123, 'portfolio_id': 29256636}, {'photo_id': 1398444118, 'portfolio_id': 29256636}, {'photo_id': 1398444114, 'portfolio_id': 29256636}, {'photo_id': 1398444113, 'portfolio_id': 29256636}, {'photo_id': 1398444112, 'portfolio_id': 29256636}, {'photo_id': 1398444104, 'portfolio_id': 29256636}, {'photo_id': 1398444103, 'portfolio_id': 29256636}, {'photo_id': 1398444101, 'portfolio_id': 29256636}, {'photo_id': 1398444099, 'portfolio_id': 29256636}, {'photo_id': 1398444098, 'portfolio_id': 29256636}, {'photo_id': 1398444097, 'portfolio_id': 29256636}, {'photo_id': 1398444087, 'portfolio_id': 29256636}, {'photo_id': 1398444085, 'portfolio_id': 29256636}, {'photo_id': 1398444077, 'portfolio_id': 29256636}, {'photo_id': 1398444072, 'portfolio_id': 29256636}, {'photo_id': 1398444065, 'portfolio_id': 29256636}, {'photo_id': 1398444064, 'portfolio_id': 29256636}, {'photo_id': 1398444047, 'portfolio_id': 29256636}, {'photo_id': 1398444046, 'portfolio_id': 29256636}, {'photo_id': 1398444045, 'portfolio_id': 29256636}, {'photo_id': 1398444044, 'portfolio_id': 29256636}, {'photo_id': 1398444036, 'portfolio_id': 29256636}, {'photo_id': 1398444034, 'portfolio_id': 29256636}, {'photo_id': 1398444033, 'portfolio_id': 29256636}, {'photo_id': 1398444032, 'portfolio_id': 29256636}, {'photo_id': 1398444031, 'portfolio_id': 29256636}, {'photo_id': 1398444004, 'portfolio_id': 29256636}, {'photo_id': 1398444003, 'portfolio_id': 29256636}, {'photo_id': 1398444002, 'portfolio_id': 29256636}, {'photo_id': 1398444001, 'portfolio_id': 29256636}, {'photo_id': 1398443991, 'portfolio_id': 29256636}, {'photo_id': 1398443989, 'portfolio_id': 29256636}, {'photo_id': 1398443988, 'portfolio_id': 29256636}, {'photo_id': 1398443987, 'portfolio_id': 29256636}, {'photo_id': 1398443986, 'portfolio_id': 29256636}, {'photo_id': 1398443978, 'portfolio_id': 29256636}, {'photo_id': 1398443977, 'portfolio_id': 29256636}, {'photo_id': 1398443976, 'portfolio_id': 29256636}, {'photo_id': 1398443975, 'portfolio_id': 29256636}, {'photo_id': 1398443974, 'portfolio_id': 29256636}, {'photo_id': 1398443964, 'portfolio_id': 29256636}, {'photo_id': 1398443963, 'portfolio_id': 29256636}, {'photo_id': 1398443952, 'portfolio_id': 29256636}] map_portfolio_id_photo_id: {29256636: [1398444123, 1398444118, 1398444114, 1398444113, 1398444112, 1398444104, 1398444103, 1398444101, 1398444099, 1398444098, 1398444097, 1398444087, 1398444085, 1398444077, 1398444072, 1398444065, 1398444064, 1398444047, 1398444046, 1398444045, 1398444044, 1398444036, 1398444034, 1398444033, 1398444032, 1398444031, 1398444004, 1398444003, 1398444002, 1398444001, 1398443991, 1398443989, 1398443988, 1398443987, 1398443986, 1398443978, 1398443977, 1398443976, 1398443975, 1398443974, 1398443964, 1398443963, 1398443952]} ##### 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.018327951431274414 #### fin chargement data Blocking on flush ? No conitnuing About to test input to load Calling datou_exec Inside datou_exec : verbose : True number of steps : 5 step1:ventilate_hashtags_in_portfolio Mon Dec 8 05:54:57 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29256636) 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 : 29256636 get user id for portfolio 29256636 get sub ptf for main ptf 29256636, type 3726 and hashtags ['papier', 'cartonnette', 'kraft', 'plastique', 'mal_croppe', 'Carton_gris', 'autre_refus', 'Teint_Dans_La_Masse', 'metal', 'flou', 'Carton_brun', 'environnement'] 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`=29256636 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','kraft','plastique','mal_croppe','Carton_gris','autre_refus','Teint_Dans_La_Masse','metal','flou','Carton_brun','environnement')) 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`=29256636 AND mptpi.`type`=3726 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','kraft','plastique','mal_croppe','Carton_gris','autre_refus','Teint_Dans_La_Masse','metal','flou','Carton_brun','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 29256636, 'sub_port_id': 29256641, 'hashtag': 'metal', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905081, 'last_updated_at': datetime.datetime(2025, 12, 8, 5, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 5, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 5, 46, 59)}, 'Teint_Dans_La_Masse': {'main_port_id': 29256636, 'sub_port_id': 29256642, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905082, 'last_updated_at': datetime.datetime(2025, 12, 8, 5, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 5, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 5, 46, 59)}, 'Carton_gris': {'main_port_id': 29256636, 'sub_port_id': 29256643, 'hashtag': 'Carton_gris', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905083, 'last_updated_at': datetime.datetime(2025, 12, 8, 5, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 5, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 5, 46, 59)}, 'plastique': {'main_port_id': 29256636, 'sub_port_id': 29256644, 'hashtag': 'plastique', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905084, 'last_updated_at': datetime.datetime(2025, 12, 8, 5, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 5, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 5, 46, 59)}, 'kraft': {'main_port_id': 29256636, 'sub_port_id': 29256645, 'hashtag': 'kraft', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905085, 'last_updated_at': datetime.datetime(2025, 12, 8, 5, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 5, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 5, 46, 59)}, 'flou': {'main_port_id': 29256636, 'sub_port_id': 29256646, 'hashtag': 'flou', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905086, 'last_updated_at': datetime.datetime(2025, 12, 8, 5, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 5, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 5, 46, 59)}, 'autre_refus': {'main_port_id': 29256636, 'sub_port_id': 29256647, 'hashtag': 'autre_refus', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905087, 'last_updated_at': datetime.datetime(2025, 12, 8, 5, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 5, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 5, 46, 59)}, 'environnement': {'main_port_id': 29256636, 'sub_port_id': 29256648, 'hashtag': 'environnement', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905088, 'last_updated_at': datetime.datetime(2025, 12, 8, 5, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 5, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 5, 46, 59)}, 'papier': {'main_port_id': 29256636, 'sub_port_id': 29256649, 'hashtag': 'papier', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905089, 'last_updated_at': datetime.datetime(2025, 12, 8, 5, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 5, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 5, 46, 59)}, 'Carton_brun': {'main_port_id': 29256636, 'sub_port_id': 29256650, 'hashtag': 'Carton_brun', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905090, 'last_updated_at': datetime.datetime(2025, 12, 8, 5, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 5, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 5, 46, 59)}, 'cartonnette': {'main_port_id': 29256636, 'sub_port_id': 29256651, 'hashtag': 'cartonnette', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905091, 'last_updated_at': datetime.datetime(2025, 12, 8, 5, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 5, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 5, 46, 59)}, 'mal_croppe': {'main_port_id': 29256636, 'sub_port_id': 29256652, 'hashtag': 'mal_croppe', 'pht': 3726, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905092, 'last_updated_at': datetime.datetime(2025, 12, 8, 5, 52, 58), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 5, 52, 58), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 5, 46, 59)}} insert ignore into MTRUser.mtr_portfolio_photos (mtr_portfolio_id, mtr_photo_id, mtr_user_id,created_at) SELECT 29256641 , 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=29256636 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 (29256641) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29256636) result : ((1398443952,), (1398443963,), (1398443964,), (1398443974,), (1398443975,), (1398443976,), (1398443977,), (1398443978,), (1398443986,), (1398443987,), (1398443988,), (1398443989,), (1398443991,), (1398444001,), (1398444002,), (1398444003,), (1398444004,), (1398444031,), (1398444032,), (1398444033,), (1398444034,), (1398444036,), (1398444044,), (1398444045,), (1398444046,), (1398444047,), (1398444064,), (1398444065,), (1398444072,), (1398444077,), (1398444085,), (1398444087,), (1398444097,), (1398444098,), (1398444099,), (1398444101,), (1398444103,), (1398444104,), (1398444112,), (1398444113,), (1398444114,), (1398444118,), (1398444123,)) 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 29256642 , 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=29256636 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 (29256642) result : ((1398443999,), (1398444094,), (1398444115,), (1398444116,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29256636) result : ((1398443952,), (1398443963,), (1398443964,), (1398443974,), (1398443975,), (1398443976,), (1398443977,), (1398443978,), (1398443986,), (1398443987,), (1398443988,), (1398443989,), (1398443991,), (1398444001,), (1398444002,), (1398444003,), (1398444004,), (1398444031,), (1398444032,), (1398444033,), (1398444034,), (1398444036,), (1398444044,), (1398444045,), (1398444046,), (1398444047,), (1398444064,), (1398444065,), (1398444072,), (1398444077,), (1398444085,), (1398444087,), (1398444097,), (1398444098,), (1398444099,), (1398444101,), (1398444103,), (1398444104,), (1398444112,), (1398444113,), (1398444114,), (1398444118,), (1398444123,)) 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 29256643 , 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=29256636 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 (29256643) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29256636) result : ((1398443952,), (1398443963,), (1398443964,), (1398443974,), (1398443975,), (1398443976,), (1398443977,), (1398443978,), (1398443986,), (1398443987,), (1398443988,), (1398443989,), (1398443991,), (1398444001,), (1398444002,), (1398444003,), (1398444004,), (1398444031,), (1398444032,), (1398444033,), (1398444034,), (1398444036,), (1398444044,), (1398444045,), (1398444046,), (1398444047,), (1398444064,), (1398444065,), (1398444072,), (1398444077,), (1398444085,), (1398444087,), (1398444097,), (1398444098,), (1398444099,), (1398444101,), (1398444103,), (1398444104,), (1398444112,), (1398444113,), (1398444114,), (1398444118,), (1398444123,)) 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 29256644 , 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=29256636 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 (29256644) result : ((1398444000,), (1398444096,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29256636) result : ((1398443952,), (1398443963,), (1398443964,), (1398443974,), (1398443975,), (1398443976,), (1398443977,), (1398443978,), (1398443986,), (1398443987,), (1398443988,), (1398443989,), (1398443991,), (1398444001,), (1398444002,), (1398444003,), (1398444004,), (1398444031,), (1398444032,), (1398444033,), (1398444034,), (1398444036,), (1398444044,), (1398444045,), (1398444046,), (1398444047,), (1398444064,), (1398444065,), (1398444072,), (1398444077,), (1398444085,), (1398444087,), (1398444097,), (1398444098,), (1398444099,), (1398444101,), (1398444103,), (1398444104,), (1398444112,), (1398444113,), (1398444114,), (1398444118,), (1398444123,)) 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 29256645 , 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=29256636 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 (29256645) result : ((1398444122,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29256636) result : ((1398443952,), (1398443963,), (1398443964,), (1398443974,), (1398443975,), (1398443976,), (1398443977,), (1398443978,), (1398443986,), (1398443987,), (1398443988,), (1398443989,), (1398443991,), (1398444001,), (1398444002,), (1398444003,), (1398444004,), (1398444031,), (1398444032,), (1398444033,), (1398444034,), (1398444036,), (1398444044,), (1398444045,), (1398444046,), (1398444047,), (1398444064,), (1398444065,), (1398444072,), (1398444077,), (1398444085,), (1398444087,), (1398444097,), (1398444098,), (1398444099,), (1398444101,), (1398444103,), (1398444104,), (1398444112,), (1398444113,), (1398444114,), (1398444118,), (1398444123,)) 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 29256646 , 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=29256636 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 (29256646) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29256636) result : ((1398443952,), (1398443963,), (1398443964,), (1398443974,), (1398443975,), (1398443976,), (1398443977,), (1398443978,), (1398443986,), (1398443987,), (1398443988,), (1398443989,), (1398443991,), (1398444001,), (1398444002,), (1398444003,), (1398444004,), (1398444031,), (1398444032,), (1398444033,), (1398444034,), (1398444036,), (1398444044,), (1398444045,), (1398444046,), (1398444047,), (1398444064,), (1398444065,), (1398444072,), (1398444077,), (1398444085,), (1398444087,), (1398444097,), (1398444098,), (1398444099,), (1398444101,), (1398444103,), (1398444104,), (1398444112,), (1398444113,), (1398444114,), (1398444118,), (1398444123,)) 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 29256647 , 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=29256636 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 (29256647) result : ((1398444095,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29256636) result : ((1398443952,), (1398443963,), (1398443964,), (1398443974,), (1398443975,), (1398443976,), (1398443977,), (1398443978,), (1398443986,), (1398443987,), (1398443988,), (1398443989,), (1398443991,), (1398444001,), (1398444002,), (1398444003,), (1398444004,), (1398444031,), (1398444032,), (1398444033,), (1398444034,), (1398444036,), (1398444044,), (1398444045,), (1398444046,), (1398444047,), (1398444064,), (1398444065,), (1398444072,), (1398444077,), (1398444085,), (1398444087,), (1398444097,), (1398444098,), (1398444099,), (1398444101,), (1398444103,), (1398444104,), (1398444112,), (1398444113,), (1398444114,), (1398444118,), (1398444123,)) 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 29256648 , 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=29256636 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 (29256648) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29256636) result : ((1398443952,), (1398443963,), (1398443964,), (1398443974,), (1398443975,), (1398443976,), (1398443977,), (1398443978,), (1398443986,), (1398443987,), (1398443988,), (1398443989,), (1398443991,), (1398444001,), (1398444002,), (1398444003,), (1398444004,), (1398444031,), (1398444032,), (1398444033,), (1398444034,), (1398444036,), (1398444044,), (1398444045,), (1398444046,), (1398444047,), (1398444064,), (1398444065,), (1398444072,), (1398444077,), (1398444085,), (1398444087,), (1398444097,), (1398444098,), (1398444099,), (1398444101,), (1398444103,), (1398444104,), (1398444112,), (1398444113,), (1398444114,), (1398444118,), (1398444123,)) 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 29256649 , 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=29256636 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 (29256649) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29256636) result : ((1398443952,), (1398443963,), (1398443964,), (1398443974,), (1398443975,), (1398443976,), (1398443977,), (1398443978,), (1398443986,), (1398443987,), (1398443988,), (1398443989,), (1398443991,), (1398444001,), (1398444002,), (1398444003,), (1398444004,), (1398444031,), (1398444032,), (1398444033,), (1398444034,), (1398444036,), (1398444044,), (1398444045,), (1398444046,), (1398444047,), (1398444064,), (1398444065,), (1398444072,), (1398444077,), (1398444085,), (1398444087,), (1398444097,), (1398444098,), (1398444099,), (1398444101,), (1398444103,), (1398444104,), (1398444112,), (1398444113,), (1398444114,), (1398444118,), (1398444123,)) 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 29256650 , 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=29256636 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 (29256650) result : ((1398444121,),) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29256636) result : ((1398443952,), (1398443963,), (1398443964,), (1398443974,), (1398443975,), (1398443976,), (1398443977,), (1398443978,), (1398443986,), (1398443987,), (1398443988,), (1398443989,), (1398443991,), (1398444001,), (1398444002,), (1398444003,), (1398444004,), (1398444031,), (1398444032,), (1398444033,), (1398444034,), (1398444036,), (1398444044,), (1398444045,), (1398444046,), (1398444047,), (1398444064,), (1398444065,), (1398444072,), (1398444077,), (1398444085,), (1398444087,), (1398444097,), (1398444098,), (1398444099,), (1398444101,), (1398444103,), (1398444104,), (1398444112,), (1398444113,), (1398444114,), (1398444118,), (1398444123,)) 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 29256651 , 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=29256636 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 (29256651) result : ((1398444117,), (1398444119,), (1398444120,)) SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29256636) result : ((1398443952,), (1398443963,), (1398443964,), (1398443974,), (1398443975,), (1398443976,), (1398443977,), (1398443978,), (1398443986,), (1398443987,), (1398443988,), (1398443989,), (1398443991,), (1398444001,), (1398444002,), (1398444003,), (1398444004,), (1398444031,), (1398444032,), (1398444033,), (1398444034,), (1398444036,), (1398444044,), (1398444045,), (1398444046,), (1398444047,), (1398444064,), (1398444065,), (1398444072,), (1398444077,), (1398444085,), (1398444087,), (1398444097,), (1398444098,), (1398444099,), (1398444101,), (1398444103,), (1398444104,), (1398444112,), (1398444113,), (1398444114,), (1398444118,), (1398444123,)) 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 29256652 , 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=29256636 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 (29256652) result : () SELECT mtr_photo_id FROM MTRUser.mtr_portfolio_photos WHERE mtr_portfolio_id IN (29256636) result : ((1398443952,), (1398443963,), (1398443964,), (1398443974,), (1398443975,), (1398443976,), (1398443977,), (1398443978,), (1398443986,), (1398443987,), (1398443988,), (1398443989,), (1398443991,), (1398444001,), (1398444002,), (1398444003,), (1398444004,), (1398444031,), (1398444032,), (1398444033,), (1398444034,), (1398444036,), (1398444044,), (1398444045,), (1398444046,), (1398444047,), (1398444064,), (1398444065,), (1398444072,), (1398444077,), (1398444085,), (1398444087,), (1398444097,), (1398444098,), (1398444099,), (1398444101,), (1398444103,), (1398444104,), (1398444112,), (1398444113,), (1398444114,), (1398444118,), (1398444123,)) 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`=29256636 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','kraft','plastique','mal_croppe','Carton_gris','autre_refus','Teint_Dans_La_Masse','metal','flou','Carton_brun','environnement')) 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`=29256636 AND mptpi.`type`=4417 AND mptpi.`hashtag_id` in (select hashtag_id FROM MTRBack.hashtags where hashtag in ('papier','cartonnette','kraft','plastique','mal_croppe','Carton_gris','autre_refus','Teint_Dans_La_Masse','metal','flou','Carton_brun','environnement')) AND mptpi.`min_score`=0.5 To do returned map {'metal': {'main_port_id': 29256636, 'sub_port_id': 29256653, 'hashtag': 'metal', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905093, 'last_updated_at': datetime.datetime(2025, 12, 8, 5, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 5, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 5, 47, 1)}, 'Teint_Dans_La_Masse': {'main_port_id': 29256636, 'sub_port_id': 29256654, 'hashtag': 'Teint_Dans_La_Masse', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905094, 'last_updated_at': datetime.datetime(2025, 12, 8, 5, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 5, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 5, 47, 1)}, 'Carton_gris': {'main_port_id': 29256636, 'sub_port_id': 29256655, 'hashtag': 'Carton_gris', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905095, 'last_updated_at': datetime.datetime(2025, 12, 8, 5, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 5, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 5, 47, 1)}, 'plastique': {'main_port_id': 29256636, 'sub_port_id': 29256656, 'hashtag': 'plastique', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905096, 'last_updated_at': datetime.datetime(2025, 12, 8, 5, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 5, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 5, 47, 1)}, 'kraft': {'main_port_id': 29256636, 'sub_port_id': 29256657, 'hashtag': 'kraft', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905097, 'last_updated_at': datetime.datetime(2025, 12, 8, 5, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 5, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 5, 47, 1)}, 'flou': {'main_port_id': 29256636, 'sub_port_id': 29256658, 'hashtag': 'flou', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905098, 'last_updated_at': datetime.datetime(2025, 12, 8, 5, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 5, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 5, 47, 1)}, 'autre_refus': {'main_port_id': 29256636, 'sub_port_id': 29256659, 'hashtag': 'autre_refus', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905099, 'last_updated_at': datetime.datetime(2025, 12, 8, 5, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 5, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 5, 47, 1)}, 'environnement': {'main_port_id': 29256636, 'sub_port_id': 29256660, 'hashtag': 'environnement', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905100, 'last_updated_at': datetime.datetime(2025, 12, 8, 5, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 5, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 5, 47, 1)}, 'papier': {'main_port_id': 29256636, 'sub_port_id': 29256661, 'hashtag': 'papier', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905101, 'last_updated_at': datetime.datetime(2025, 12, 8, 5, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 5, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 5, 47, 1)}, 'Carton_brun': {'main_port_id': 29256636, 'sub_port_id': 29256662, 'hashtag': 'Carton_brun', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905102, 'last_updated_at': datetime.datetime(2025, 12, 8, 5, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 5, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 5, 47, 1)}, 'cartonnette': {'main_port_id': 29256636, 'sub_port_id': 29256663, 'hashtag': 'cartonnette', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905103, 'last_updated_at': datetime.datetime(2025, 12, 8, 5, 47, 1), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 5, 47, 1), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 5, 47, 1)}, 'mal_croppe': {'main_port_id': 29256636, 'sub_port_id': 29256664, 'hashtag': 'mal_croppe', 'pht': 4417, 'min_score': 0.5, 'mtr_user_id': 979, 'id': 19905104, 'last_updated_at': datetime.datetime(2025, 12, 8, 5, 52, 59), 'last_updated_at_desc': datetime.datetime(2025, 12, 8, 5, 52, 59), 'last_updated_at_asc': datetime.datetime(2025, 12, 8, 5, 47, 1)}} insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29256653,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29256641 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29256654,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29256642 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29256655,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29256643 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29256656,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29256644 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29256657,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29256645 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29256658,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29256646 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29256659,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29256647 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29256660,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29256648 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29256661,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29256649 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29256662,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29256650 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29256663,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29256651 insert ignore into MTRUser.mtr_portfolio_photos(mtr_portfolio_id,mtr_photo_id,mtr_user_id) select 29256664,mtr_photo_id,mtr_user_id from MTRUser.mtr_portfolio_photos where mtr_portfolio_id = 29256652 lien utilise dans velours : https://marlene.fotonower.com/velours/29256653,29256654,29256655,29256656,29256657,29256658,29256659,29256660,29256661,29256662,29256663,29256664?tags=metal,Teint_Dans_La_Masse,Carton_gris,plastique,kraft,flou,autre_refus,environnement,papier,Carton_brun,cartonnette,mal_croppe After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29256636]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : ventilate_hashtags_in_portfolio we use saveGeneral [1398444123, 1398444118, 1398444114, 1398444113, 1398444112, 1398444104, 1398444103, 1398444101, 1398444099, 1398444098, 1398444097, 1398444087, 1398444085, 1398444077, 1398444072, 1398444065, 1398444064] map_info['map_portfolio_photo'] : {29256636: [1398444123, 1398444118, 1398444114, 1398444113, 1398444112, 1398444104, 1398444103, 1398444101, 1398444099, 1398444098, 1398444097, 1398444087, 1398444085, 1398444077, 1398444072, 1398444065, 1398444064, 1398444047, 1398444046, 1398444045, 1398444044, 1398444036, 1398444034, 1398444033, 1398444032, 1398444031, 1398444004, 1398444003, 1398444002, 1398444001, 1398443991, 1398443989, 1398443988, 1398443987, 1398443986, 1398443978, 1398443977, 1398443976, 1398443975, 1398443974, 1398443964, 1398443963, 1398443952]} final : False mtd_id 4302 list_pids : [1398444123, 1398444118, 1398444114, 1398444113, 1398444112, 1398444104, 1398444103, 1398444101, 1398444099, 1398444098, 1398444097, 1398444087, 1398444085, 1398444077, 1398444072, 1398444065, 1398444064] Looping around the photos to save general results len do output : 1 /29256636. 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, '4196202') ('4302', '29256636', '1398444123', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444118', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444114', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444113', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444112', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444104', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444103', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444101', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444099', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444098', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444097', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444087', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444085', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444077', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444072', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444065', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444064', None, None, None, None, None, '4196202') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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, '29256636', "{'metal': 29256641, 'Teint_Dans_La_Masse': 29256642, 'Carton_gris': 29256643, 'plastique': 29256644, 'kraft': 29256645, 'flou': 29256646, 'autre_refus': 29256647, 'environnement': 29256648, 'papier': 29256649, 'Carton_brun': 29256650, 'cartonnette': 29256651, 'mal_croppe': 29256652}", None, None, None, None, '4196202'), ('4302', '29256636', '1398444123', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444118', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444114', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444113', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444112', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444104', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444103', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444101', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444099', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444098', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444097', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444087', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444085', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444077', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444072', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444065', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444064', None, None, None, None, None, '4196202')] time used for this insertion : 0.015718460083007812 save_final save missing photos in datou_result : time spend for datou_step_exec : 1.8212757110595703 time spend to save output : 0.01607036590576172 total time spend for step 1 : 1.837346076965332 step2:final Mon Dec 8 05:54:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! We should have FATAL ERROR but same_nb_input_output==True : this should be an optionnal input ! VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :0, first value : [] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29256636) 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 29256636 : SELECT photo_id, hashtag_id, ratio from MTRPhoto.photo_carac_ratio where hashtag_type = 3726 and photo_id in (1398443964,1398443963,1398443952,1398443978,1398443977,1398443976,1398443975,1398443974,1398443991,1398443989,1398443988,1398443987,1398443986,1398444004,1398444003,1398444002,1398444001,1398444036,1398444034,1398444033,1398444032,1398444031,1398444047,1398444046,1398444045,1398444044,1398444123,1398444087,1398444085,1398444118,1398444077,1398444114,1398444072,1398444113,1398444065,1398444112,1398444104,1398444064,1398444103,1398444101,1398444099,1398444098,1398444097); 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([29256636]) Inside saveOutput : final : False verbose : True original output for save of step final : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ('0.04411969422590764',), 1398444097: ('0.04411969422590764',), 1398444087: ('0.04411969422590764',), 1398444085: ('0.04411969422590764',), 1398444077: ('0.04411969422590764',), 1398444072: ('0.04411969422590764',), 1398444065: ('0.04411969422590764',), 1398444064: ('0.04411969422590764',)} new output for save of step final : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ('0.04411969422590764',), 1398444097: ('0.04411969422590764',), 1398444087: ('0.04411969422590764',), 1398444085: ('0.04411969422590764',), 1398444077: ('0.04411969422590764',), 1398444072: ('0.04411969422590764',), 1398444065: ('0.04411969422590764',), 1398444064: ('0.04411969422590764',)} [1398444123, 1398444118, 1398444114, 1398444113, 1398444112, 1398444104, 1398444103, 1398444101, 1398444099, 1398444098, 1398444097, 1398444087, 1398444085, 1398444077, 1398444072, 1398444065, 1398444064] map_info['map_portfolio_photo'] : {29256636: [1398444123, 1398444118, 1398444114, 1398444113, 1398444112, 1398444104, 1398444103, 1398444101, 1398444099, 1398444098, 1398444097, 1398444087, 1398444085, 1398444077, 1398444072, 1398444065, 1398444064, 1398444047, 1398444046, 1398444045, 1398444044, 1398444036, 1398444034, 1398444033, 1398444032, 1398444031, 1398444004, 1398444003, 1398444002, 1398444001, 1398443991, 1398443989, 1398443988, 1398443987, 1398443986, 1398443978, 1398443977, 1398443976, 1398443975, 1398443974, 1398443964, 1398443963, 1398443952]} final : False mtd_id 4302 list_pids : [1398444123, 1398444118, 1398444114, 1398444113, 1398444112, 1398444104, 1398444103, 1398444101, 1398444099, 1398444098, 1398444097, 1398444087, 1398444085, 1398444077, 1398444072, 1398444065, 1398444064] Looping around the photos to save general results len do output : 17 /1398444123.Didn't retrieve data . /1398444118.Didn't retrieve data . /1398444114.Didn't retrieve data . /1398444113.Didn't retrieve data . /1398444112.Didn't retrieve data . /1398444104.Didn't retrieve data . /1398444103.Didn't retrieve data . /1398444101.Didn't retrieve data . /1398444099.Didn't retrieve data . /1398444098.Didn't retrieve data . /1398444097.Didn't retrieve data . /1398444087.Didn't retrieve data . /1398444085.Didn't retrieve data . /1398444077.Didn't retrieve data . /1398444072.Didn't retrieve data . /1398444065.Didn't retrieve data . /1398444064.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, '4196202') ('4302', '29256636', '1398444123', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444118', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444114', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444113', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444112', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444104', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444103', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444101', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444099', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444098', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444097', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444087', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444085', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444077', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444072', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444065', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444064', None, None, None, None, None, '4196202') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 51 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', '29256636', '1398444123', '0.04411969422590764', None, None, None, None, '4196202'), ('4302', '29256636', '1398444118', '0.04411969422590764', None, None, None, None, '4196202'), ('4302', '29256636', '1398444114', '0.04411969422590764', None, None, None, None, '4196202'), ('4302', '29256636', '1398444113', '0.04411969422590764', None, None, None, None, '4196202'), ('4302', '29256636', '1398444112', '0.04411969422590764', None, None, None, None, '4196202'), ('4302', '29256636', '1398444104', '0.04411969422590764', None, None, None, None, '4196202'), ('4302', '29256636', '1398444103', '0.04411969422590764', None, None, None, None, '4196202'), ('4302', '29256636', '1398444101', '0.04411969422590764', None, None, None, None, '4196202'), ('4302', '29256636', '1398444099', '0.04411969422590764', None, None, None, None, '4196202'), ('4302', '29256636', '1398444098', '0.04411969422590764', None, None, None, None, '4196202'), ('4302', '29256636', '1398444097', '0.04411969422590764', None, None, None, None, '4196202'), ('4302', '29256636', '1398444087', '0.04411969422590764', None, None, None, None, '4196202'), ('4302', '29256636', '1398444085', '0.04411969422590764', None, None, None, None, '4196202'), ('4302', '29256636', '1398444077', '0.04411969422590764', None, None, None, None, '4196202'), ('4302', '29256636', '1398444072', '0.04411969422590764', None, None, None, None, '4196202'), ('4302', '29256636', '1398444065', '0.04411969422590764', None, None, None, None, '4196202'), ('4302', '29256636', '1398444064', '0.04411969422590764', None, None, None, None, '4196202')] time used for this insertion : 0.017566442489624023 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.07697844505310059 time spend to save output : 0.018335342407226562 total time spend for step 2 : 0.09531378746032715 step3:velours_tree Mon Dec 8 05:54:59 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : {29256636: [{'metal': 29256641, 'Teint_Dans_La_Masse': 29256642, 'Carton_gris': 29256643, 'plastique': 29256644, 'kraft': 29256645, 'flou': 29256646, 'autre_refus': 29256647, 'environnement': 29256648, 'papier': 29256649, 'Carton_brun': 29256650, 'cartonnette': 29256651, 'mal_croppe': 29256652}]} input_args_next_step : {29256636: ()} output_args : {29256636: [{'metal': 29256641, 'Teint_Dans_La_Masse': 29256642, 'Carton_gris': 29256643, 'plastique': 29256644, 'kraft': 29256645, 'flou': 29256646, 'autre_refus': 29256647, 'environnement': 29256648, 'papier': 29256649, 'Carton_brun': 29256650, 'cartonnette': 29256651, 'mal_croppe': 29256652}]} args : 29256636 depend.output_id : 0 VR 22-3-18 : For now we do not clean correctly the datou structure input_args_next_step, len :1, first value : ({'metal': 29256641, 'Teint_Dans_La_Masse': 29256642, 'Carton_gris': 29256643, 'plastique': 29256644, 'kraft': 29256645, 'flou': 29256646, 'autre_refus': 29256647, 'environnement': 29256648, 'papier': 29256649, 'Carton_brun': 29256650, 'cartonnette': 29256651, 'mal_croppe': 29256652},) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29256636) 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([29256636]) 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.24041295051574707 time spend to save output : 3.790855407714844e-05 total time spend for step 3 : 0.24045085906982422 step4:send_mail_cod Mon Dec 8 05:55:00 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 : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ('0.04411969422590764',), 1398444097: ('0.04411969422590764',), 1398444087: ('0.04411969422590764',), 1398444085: ('0.04411969422590764',), 1398444077: ('0.04411969422590764',), 1398444072: ('0.04411969422590764',), 1398444065: ('0.04411969422590764',), 1398444064: ('0.04411969422590764',)} input_args_next_step : {1398444123: ()} output_args : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ('0.04411969422590764',), 1398444097: ('0.04411969422590764',), 1398444087: ('0.04411969422590764',), 1398444085: ('0.04411969422590764',), 1398444077: ('0.04411969422590764',), 1398444072: ('0.04411969422590764',), 1398444065: ('0.04411969422590764',), 1398444064: ('0.04411969422590764',)} args : 1398444123 depend.output_id : 0 input_args_next_step : {1398444123: ('0.04411969422590764',), 1398444118: ()} output_args : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ('0.04411969422590764',), 1398444097: ('0.04411969422590764',), 1398444087: ('0.04411969422590764',), 1398444085: ('0.04411969422590764',), 1398444077: ('0.04411969422590764',), 1398444072: ('0.04411969422590764',), 1398444065: ('0.04411969422590764',), 1398444064: ('0.04411969422590764',)} args : 1398444118 depend.output_id : 0 input_args_next_step : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ()} output_args : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ('0.04411969422590764',), 1398444097: ('0.04411969422590764',), 1398444087: ('0.04411969422590764',), 1398444085: ('0.04411969422590764',), 1398444077: ('0.04411969422590764',), 1398444072: ('0.04411969422590764',), 1398444065: ('0.04411969422590764',), 1398444064: ('0.04411969422590764',)} args : 1398444114 depend.output_id : 0 input_args_next_step : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ()} output_args : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ('0.04411969422590764',), 1398444097: ('0.04411969422590764',), 1398444087: ('0.04411969422590764',), 1398444085: ('0.04411969422590764',), 1398444077: ('0.04411969422590764',), 1398444072: ('0.04411969422590764',), 1398444065: ('0.04411969422590764',), 1398444064: ('0.04411969422590764',)} args : 1398444113 depend.output_id : 0 input_args_next_step : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ()} output_args : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ('0.04411969422590764',), 1398444097: ('0.04411969422590764',), 1398444087: ('0.04411969422590764',), 1398444085: ('0.04411969422590764',), 1398444077: ('0.04411969422590764',), 1398444072: ('0.04411969422590764',), 1398444065: ('0.04411969422590764',), 1398444064: ('0.04411969422590764',)} args : 1398444112 depend.output_id : 0 input_args_next_step : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ()} output_args : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ('0.04411969422590764',), 1398444097: ('0.04411969422590764',), 1398444087: ('0.04411969422590764',), 1398444085: ('0.04411969422590764',), 1398444077: ('0.04411969422590764',), 1398444072: ('0.04411969422590764',), 1398444065: ('0.04411969422590764',), 1398444064: ('0.04411969422590764',)} args : 1398444104 depend.output_id : 0 input_args_next_step : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ()} output_args : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ('0.04411969422590764',), 1398444097: ('0.04411969422590764',), 1398444087: ('0.04411969422590764',), 1398444085: ('0.04411969422590764',), 1398444077: ('0.04411969422590764',), 1398444072: ('0.04411969422590764',), 1398444065: ('0.04411969422590764',), 1398444064: ('0.04411969422590764',)} args : 1398444103 depend.output_id : 0 input_args_next_step : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ()} output_args : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ('0.04411969422590764',), 1398444097: ('0.04411969422590764',), 1398444087: ('0.04411969422590764',), 1398444085: ('0.04411969422590764',), 1398444077: ('0.04411969422590764',), 1398444072: ('0.04411969422590764',), 1398444065: ('0.04411969422590764',), 1398444064: ('0.04411969422590764',)} args : 1398444101 depend.output_id : 0 input_args_next_step : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ()} output_args : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ('0.04411969422590764',), 1398444097: ('0.04411969422590764',), 1398444087: ('0.04411969422590764',), 1398444085: ('0.04411969422590764',), 1398444077: ('0.04411969422590764',), 1398444072: ('0.04411969422590764',), 1398444065: ('0.04411969422590764',), 1398444064: ('0.04411969422590764',)} args : 1398444099 depend.output_id : 0 input_args_next_step : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ()} output_args : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ('0.04411969422590764',), 1398444097: ('0.04411969422590764',), 1398444087: ('0.04411969422590764',), 1398444085: ('0.04411969422590764',), 1398444077: ('0.04411969422590764',), 1398444072: ('0.04411969422590764',), 1398444065: ('0.04411969422590764',), 1398444064: ('0.04411969422590764',)} args : 1398444098 depend.output_id : 0 input_args_next_step : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ('0.04411969422590764',), 1398444097: ()} output_args : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ('0.04411969422590764',), 1398444097: ('0.04411969422590764',), 1398444087: ('0.04411969422590764',), 1398444085: ('0.04411969422590764',), 1398444077: ('0.04411969422590764',), 1398444072: ('0.04411969422590764',), 1398444065: ('0.04411969422590764',), 1398444064: ('0.04411969422590764',)} args : 1398444097 depend.output_id : 0 input_args_next_step : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ('0.04411969422590764',), 1398444097: ('0.04411969422590764',), 1398444087: ()} output_args : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ('0.04411969422590764',), 1398444097: ('0.04411969422590764',), 1398444087: ('0.04411969422590764',), 1398444085: ('0.04411969422590764',), 1398444077: ('0.04411969422590764',), 1398444072: ('0.04411969422590764',), 1398444065: ('0.04411969422590764',), 1398444064: ('0.04411969422590764',)} args : 1398444087 depend.output_id : 0 input_args_next_step : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ('0.04411969422590764',), 1398444097: ('0.04411969422590764',), 1398444087: ('0.04411969422590764',), 1398444085: ()} output_args : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ('0.04411969422590764',), 1398444097: ('0.04411969422590764',), 1398444087: ('0.04411969422590764',), 1398444085: ('0.04411969422590764',), 1398444077: ('0.04411969422590764',), 1398444072: ('0.04411969422590764',), 1398444065: ('0.04411969422590764',), 1398444064: ('0.04411969422590764',)} args : 1398444085 depend.output_id : 0 input_args_next_step : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ('0.04411969422590764',), 1398444097: ('0.04411969422590764',), 1398444087: ('0.04411969422590764',), 1398444085: ('0.04411969422590764',), 1398444077: ()} output_args : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ('0.04411969422590764',), 1398444097: ('0.04411969422590764',), 1398444087: ('0.04411969422590764',), 1398444085: ('0.04411969422590764',), 1398444077: ('0.04411969422590764',), 1398444072: ('0.04411969422590764',), 1398444065: ('0.04411969422590764',), 1398444064: ('0.04411969422590764',)} args : 1398444077 depend.output_id : 0 input_args_next_step : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ('0.04411969422590764',), 1398444097: ('0.04411969422590764',), 1398444087: ('0.04411969422590764',), 1398444085: ('0.04411969422590764',), 1398444077: ('0.04411969422590764',), 1398444072: ()} output_args : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ('0.04411969422590764',), 1398444097: ('0.04411969422590764',), 1398444087: ('0.04411969422590764',), 1398444085: ('0.04411969422590764',), 1398444077: ('0.04411969422590764',), 1398444072: ('0.04411969422590764',), 1398444065: ('0.04411969422590764',), 1398444064: ('0.04411969422590764',)} args : 1398444072 depend.output_id : 0 input_args_next_step : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ('0.04411969422590764',), 1398444097: ('0.04411969422590764',), 1398444087: ('0.04411969422590764',), 1398444085: ('0.04411969422590764',), 1398444077: ('0.04411969422590764',), 1398444072: ('0.04411969422590764',), 1398444065: ()} output_args : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ('0.04411969422590764',), 1398444097: ('0.04411969422590764',), 1398444087: ('0.04411969422590764',), 1398444085: ('0.04411969422590764',), 1398444077: ('0.04411969422590764',), 1398444072: ('0.04411969422590764',), 1398444065: ('0.04411969422590764',), 1398444064: ('0.04411969422590764',)} args : 1398444065 depend.output_id : 0 input_args_next_step : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ('0.04411969422590764',), 1398444097: ('0.04411969422590764',), 1398444087: ('0.04411969422590764',), 1398444085: ('0.04411969422590764',), 1398444077: ('0.04411969422590764',), 1398444072: ('0.04411969422590764',), 1398444065: ('0.04411969422590764',), 1398444064: ()} output_args : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ('0.04411969422590764',), 1398444097: ('0.04411969422590764',), 1398444087: ('0.04411969422590764',), 1398444085: ('0.04411969422590764',), 1398444077: ('0.04411969422590764',), 1398444072: ('0.04411969422590764',), 1398444065: ('0.04411969422590764',), 1398444064: ('0.04411969422590764',)} args : 1398444064 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 : {29256636: [{'metal': 29256641, 'Teint_Dans_La_Masse': 29256642, 'Carton_gris': 29256643, 'plastique': 29256644, 'kraft': 29256645, 'flou': 29256646, 'autre_refus': 29256647, 'environnement': 29256648, 'papier': 29256649, 'Carton_brun': 29256650, 'cartonnette': 29256651, 'mal_croppe': 29256652}]} input_args_next_step : {1398444123: ('0.04411969422590764',), 1398444118: ('0.04411969422590764',), 1398444114: ('0.04411969422590764',), 1398444113: ('0.04411969422590764',), 1398444112: ('0.04411969422590764',), 1398444104: ('0.04411969422590764',), 1398444103: ('0.04411969422590764',), 1398444101: ('0.04411969422590764',), 1398444099: ('0.04411969422590764',), 1398444098: ('0.04411969422590764',), 1398444097: ('0.04411969422590764',), 1398444087: ('0.04411969422590764',), 1398444085: ('0.04411969422590764',), 1398444077: ('0.04411969422590764',), 1398444072: ('0.04411969422590764',), 1398444065: ('0.04411969422590764',), 1398444064: ('0.04411969422590764',), 29256636: ()} output_args : {29256636: [{'metal': 29256641, 'Teint_Dans_La_Masse': 29256642, 'Carton_gris': 29256643, 'plastique': 29256644, 'kraft': 29256645, 'flou': 29256646, 'autre_refus': 29256647, 'environnement': 29256648, 'papier': 29256649, 'Carton_brun': 29256650, 'cartonnette': 29256651, 'mal_croppe': 29256652}]} args : 29256636 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 :18, first value : ('0.04411969422590764',) After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29256636) 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 (1398444123,1398444118,1398444114,1398444113,1398444112,1398444104,1398444103,1398444101,1398444099,1398444098,1398444097,1398444087,1398444085,1398444077,1398444072,1398444065,1398444064) Found this number of photos: 17 ##### Call download_photos : nb_thread : 5 begin to download photo : 1398444064 begin to download photo : 1398444085 begin to download photo : 1398444099 begin to download photo : 1398444112 begin to download photo : 1398444123 download finish for photo 1398444099 begin to download photo : 1398444101 download finish for photo 1398444085 begin to download photo : 1398444087 download finish for photo 1398444123 download finish for photo 1398444112 begin to download photo : 1398444113 download finish for photo 1398444064 begin to download photo : 1398444065 download finish for photo 1398444101 begin to download photo : 1398444103 download finish for photo 1398444087 begin to download photo : 1398444097 download finish for photo 1398444113 begin to download photo : 1398444114 download finish for photo 1398444065 begin to download photo : 1398444072 download finish for photo 1398444103 begin to download photo : 1398444104 download finish for photo 1398444097 begin to download photo : 1398444098 download finish for photo 1398444072 begin to download photo : 1398444077 download finish for photo 1398444114 begin to download photo : 1398444118 download finish for photo 1398444104 download finish for photo 1398444098 download finish for photo 1398444077 download finish for photo 1398444118 we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB ##### After download_photos imagette292566411765169700/ length of list_filenames : 17 ; length of list_pids : 17 ; length of list_args : 17 results_Auto_P29256636_08-12-2025_05_55_00.pdf 29256641 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=29256641 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292566411765169700 29256644 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=29256644 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398444000: '1765169307_2133634_1398443952_def050489a12cba37155392de36d5a9a_rle_crop_4062984358_0.png', 1398444096: '1765169548_2140578_1398444002_1d4903ba01ca87f7b24d727c1c3daf49_rle_crop_4062985269_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/9ef1ac04cd9f5685284958061dc01a7c_44263290.png change filename to text .imagette292566441765169700/ imagette292566441765169700/1765169307_2133634_1398443952_def050489a12cba37155392de36d5a9a_rle_crop_4062984358_0.png.png imagette292566441765169700/1765169548_2140578_1398444002_1d4903ba01ca87f7b24d727c1c3daf49_rle_crop_4062985269_0.png.png wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/1b61dbc790edd9d148154adca77a875c_24155206.png imagette292566441765169700 29256645 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=29256645 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398444122: '1765169606_2141781_1398443977_04383adcf9fd7d710dbc2bb40d8932f0_rle_crop_4062985651_0.png'} change filename to text .imagette292566451765169700/ imagette292566451765169700/1765169606_2141781_1398443977_04383adcf9fd7d710dbc2bb40d8932f0_rle_crop_4062985651_0.png.png imagette292566461765169700/ wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/6c0f51d8700e296b2f344711c47dc8e5_78033989.png imagette292566451765169700 29256646 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=29256646 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292566461765169700 29256647 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=29256647 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398444095: '1765169548_2140578_1398444002_1d4903ba01ca87f7b24d727c1c3daf49_rle_crop_4062985267_0.png'} change filename to text .imagette292566471765169700/ imagette292566471765169700/1765169548_2140578_1398444002_1d4903ba01ca87f7b24d727c1c3daf49_rle_crop_4062985267_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/adee2970325314ccf0937a848dbcfb02_14623496.png imagette292566471765169700 29256651 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=29256651 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398444117: '1765169606_2141781_1398443977_04383adcf9fd7d710dbc2bb40d8932f0_rle_crop_4062985647_0.png', 1398444119: '1765169606_2141781_1398443974_4f0f3913ad60fd5e825b08a9e14859b2_rle_crop_4062985684_0.png', 1398444120: '1765169606_2141781_1398443974_4f0f3913ad60fd5e825b08a9e14859b2_rle_crop_4062985685_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/de7ffa7d0399f0898a7919d0224c18a8_78731329.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/a55bd62d5d68312da8e5efe43c3a0085_93130576.png change filename to text .imagette292566511765169701/ imagette292566511765169701/1765169606_2141781_1398443974_4f0f3913ad60fd5e825b08a9e14859b2_rle_crop_4062985684_0.png.png imagette292566511765169701/1765169606_2141781_1398443977_04383adcf9fd7d710dbc2bb40d8932f0_rle_crop_4062985647_0.png.png imagette292566511765169701/1765169606_2141781_1398443974_4f0f3913ad60fd5e825b08a9e14859b2_rle_crop_4062985685_0.png.png imagette292566521765169701/ wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/4e9b46e6530e93b962798a34fee3a05e_2605018.png imagette292566511765169701 29256652 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=29256652 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292566521765169701 29256642 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=29256642 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398443999: '1765169307_2133634_1398443952_def050489a12cba37155392de36d5a9a_rle_crop_4062984362_0.png', 1398444094: '1765169548_2140578_1398444003_340eee740f92c676784b3323c0f0b99e_rle_crop_4062985255_0.png', 1398444115: '1765169606_2141781_1398443976_6da3fb90fbc3da61991a8ac94435ddd7_rle_crop_4062985666_0.png', 1398444116: '1765169606_2141781_1398443974_4f0f3913ad60fd5e825b08a9e14859b2_rle_crop_4062985689_0.png'} change filename to text .wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/13327713a94b8058fe647ab47a8a0d50_6645337.png change filename to text .wget -O 2.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/2cb9e87f4cf4402deab95a20d139a0aa_11474932.png change filename to text .wget -O 3.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/acf0b2e6c065897f0e94914198954698_29750365.png change filename to text .imagette292566421765169701/ imagette292566421765169701/1765169606_2141781_1398443974_4f0f3913ad60fd5e825b08a9e14859b2_rle_crop_4062985689_0.png.png imagette292566421765169701/1765169307_2133634_1398443952_def050489a12cba37155392de36d5a9a_rle_crop_4062984362_0.png.png imagette292566421765169701/1765169606_2141781_1398443976_6da3fb90fbc3da61991a8ac94435ddd7_rle_crop_4062985666_0.png.png imagette292566421765169701/1765169548_2140578_1398444003_340eee740f92c676784b3323c0f0b99e_rle_crop_4062985255_0.png.png imagette292566431765169701/ wget -O 4.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/b3772745c21f12f7de8dfec7f87158fc_59239280.png imagette292566421765169701 29256643 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=29256643 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {} imagette292566431765169701 29256650 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=29256650 AND mpp.hide_status=0 ORDER BY mpp.order LIMIT 0, 20 map_photo_id_text : {1398444121: '1765169606_2141781_1398443977_04383adcf9fd7d710dbc2bb40d8932f0_rle_crop_4062985649_0.png'} change filename to text .imagette292566501765169701/ imagette292566501765169701/1765169606_2141781_1398443977_04383adcf9fd7d710dbc2bb40d8932f0_rle_crop_4062985649_0.png.png wget -O 1.png http://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/39d20c74e239c3a9ea82f94614996b13_28992916.png imagette292566501765169701 SELECT h.hashtag,pcr.value FROM MTRUser.portfolio_carac_ratio pcr, MTRBack.hashtags h where pcr.portfolio_id=29256636 and hashtag_type = 3726 and pcr.hashtag_id = h.hashtag_id; velour_link : https://marlene.fotonower.com/velours/29256653,29256654,29256655,29256656,29256657,29256658,29256659,29256660,29256661,29256662,29256663,29256664?tags=metal,Teint_Dans_La_Masse,Carton_gris,plastique,kraft,flou,autre_refus,environnement,papier,Carton_brun,cartonnette,mal_croppe your option no_mail is active, we will not send the real mail to your client args[1398444123] : ('0.04411969422590764',) no score found for photo 1398444123 We are sending mail with results at report@fotonower.com args[1398444118] : ('0.04411969422590764',) no score found for photo 1398444118 We are sending mail with results at report@fotonower.com args[1398444114] : ('0.04411969422590764',) no score found for photo 1398444114 We are sending mail with results at report@fotonower.com args[1398444113] : ('0.04411969422590764',) no score found for photo 1398444113 We are sending mail with results at report@fotonower.com args[1398444112] : ('0.04411969422590764',) no score found for photo 1398444112 We are sending mail with results at report@fotonower.com args[1398444104] : ('0.04411969422590764',) no score found for photo 1398444104 We are sending mail with results at report@fotonower.com args[1398444103] : ('0.04411969422590764',) no score found for photo 1398444103 We are sending mail with results at report@fotonower.com args[1398444101] : ('0.04411969422590764',) no score found for photo 1398444101 We are sending mail with results at report@fotonower.com args[1398444099] : ('0.04411969422590764',) no score found for photo 1398444099 We are sending mail with results at report@fotonower.com args[1398444098] : ('0.04411969422590764',) no score found for photo 1398444098 We are sending mail with results at report@fotonower.com args[1398444097] : ('0.04411969422590764',) no score found for photo 1398444097 We are sending mail with results at report@fotonower.com args[1398444087] : ('0.04411969422590764',) no score found for photo 1398444087 We are sending mail with results at report@fotonower.com args[1398444085] : ('0.04411969422590764',) no score found for photo 1398444085 We are sending mail with results at report@fotonower.com args[1398444077] : ('0.04411969422590764',) no score found for photo 1398444077 We are sending mail with results at report@fotonower.com args[1398444072] : ('0.04411969422590764',) no score found for photo 1398444072 We are sending mail with results at report@fotonower.com args[1398444065] : ('0.04411969422590764',) no score found for photo 1398444065 We are sending mail with results at report@fotonower.com args[1398444064] : ('0.04411969422590764',) no score found for photo 1398444064 We are sending mail with results at report@fotonower.com refus_total : 0.04411969422590764 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=29256636 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_P29256636_08-12-2025_05_55_00.pdf results_Auto_P29256636_08-12-2025_05_55_00.pdf uploaded to url https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256636_08-12-2025_05_55_00.pdf start insert file to database insert into MTRUser.mtr_files (mtd_id,mtr_portfolio_id,text,url,format,tags,file_size,value) values ('4302','29256636','results_Auto_P29256636_08-12-2025_05_55_00.pdf','https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256636_08-12-2025_05_55_00.pdf','pdf','','0.17','0.04411969422590764') After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29256636]) Inside saveOutput : final : False verbose : True saveOutput not yet implemented for datou_step.type : send_mail_cod we use saveGeneral [1398444123, 1398444118, 1398444114, 1398444113, 1398444112, 1398444104, 1398444103, 1398444101, 1398444099, 1398444098, 1398444097, 1398444087, 1398444085, 1398444077, 1398444072, 1398444065, 1398444064] map_info['map_portfolio_photo'] : {29256636: [1398444123, 1398444118, 1398444114, 1398444113, 1398444112, 1398444104, 1398444103, 1398444101, 1398444099, 1398444098, 1398444097, 1398444087, 1398444085, 1398444077, 1398444072, 1398444065, 1398444064, 1398444047, 1398444046, 1398444045, 1398444044, 1398444036, 1398444034, 1398444033, 1398444032, 1398444031, 1398444004, 1398444003, 1398444002, 1398444001, 1398443991, 1398443989, 1398443988, 1398443987, 1398443986, 1398443978, 1398443977, 1398443976, 1398443975, 1398443974, 1398443964, 1398443963, 1398443952]} final : False mtd_id 4302 list_pids : [1398444123, 1398444118, 1398444114, 1398444113, 1398444112, 1398444104, 1398444103, 1398444101, 1398444099, 1398444098, 1398444097, 1398444087, 1398444085, 1398444077, 1398444072, 1398444065, 1398444064] 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, '4196202') ('4302', '29256636', '1398444123', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444118', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444114', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444113', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444112', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444104', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444103', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444101', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444099', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444098', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444097', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444087', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444085', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444077', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444072', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444065', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444064', None, None, None, None, None, '4196202') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 17 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', '29256636', '1398444123', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444118', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444114', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444113', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444112', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444104', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444103', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444101', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444099', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444098', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444097', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444087', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444085', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444077', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444072', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444065', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444064', None, None, None, None, None, '4196202')] time used for this insertion : 0.015788793563842773 save_final save missing photos in datou_result : time spend for datou_step_exec : 2.8291988372802734 time spend to save output : 0.01608109474182129 total time spend for step 4 : 2.8452799320220947 step5:split_time_score Mon Dec 8 05:55:02 2025 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec Currently we do not manage missing dependencies information, that could maybe be correctly interpreted with default behavior Some of the step done at execution of the step could be done before when the tree of execution is build and the dependencies of different step analysed complete output_args for input 0 : ['29256636'] 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 : [('29256636',)] After prepare type args : select max(UNIX_TIMESTAMP(created_at)) from MTRUser.mtr_portfolio_photos where mtr_portfolio_id in (29256636) Here we display some param of map_info ! map_filenames : {} map_photo_id_path_extension : {1398444123: {'path': 'temp/1765169700_405734_1398444123_bfaf0e5364f47725759970985e326a39.jpg', 'extension': 'jpg'}, 1398444099: {'path': 'temp/1765169700_405734_1398444099_b30d4a6195f0b437e1862ed306b021cf.jpg', 'extension': 'jpg'}, 1398444101: {'path': 'temp/1765169700_405734_1398444101_8d9b3a5cab454a9229643da9dba2bdc3.jpg', 'extension': 'jpg'}, 1398444103: {'path': 'temp/1765169700_405734_1398444103_fa3e9bd3239599c4e3b94159e11cda34.jpg', 'extension': 'jpg'}, 1398444104: {'path': 'temp/1765169700_405734_1398444104_114dd2370f7b20e84951b2e7fb5c0d63.jpg', 'extension': 'jpg'}, 1398444085: {'path': 'temp/1765169700_405734_1398444085_a136c7db4459261a16bbcaa8ea0ee866.jpg', 'extension': 'jpg'}, 1398444087: {'path': 'temp/1765169700_405734_1398444087_89dc7a8fdc75025bafb4f48c4dc97e4f.jpg', 'extension': 'jpg'}, 1398444097: {'path': 'temp/1765169700_405734_1398444097_61fe0d2a414d0e98edc7c4d91415b7b2.jpg', 'extension': 'jpg'}, 1398444098: {'path': 'temp/1765169700_405734_1398444098_5a58aebb818eaed1dae3df432365f0fe.jpg', 'extension': 'jpg'}, 1398444064: {'path': 'temp/1765169700_405734_1398444064_72cf0f47b09842ce17aa911698a165c1.jpg', 'extension': 'jpg'}, 1398444065: {'path': 'temp/1765169700_405734_1398444065_3c254437e195556cfedba4a99d58719c.jpg', 'extension': 'jpg'}, 1398444072: {'path': 'temp/1765169700_405734_1398444072_b5d7655867ae414a6b381fdaef69bf82.jpg', 'extension': 'jpg'}, 1398444077: {'path': 'temp/1765169700_405734_1398444077_ff7da31723773472cd085c8c52011621.jpg', 'extension': 'jpg'}, 1398444112: {'path': 'temp/1765169700_405734_1398444112_aa480f970f8c7d37789d50cd1ad1e250.jpg', 'extension': 'jpg'}, 1398444113: {'path': 'temp/1765169700_405734_1398444113_c5453abe9d04d354e47abc0a16c33d8f.jpg', 'extension': 'jpg'}, 1398444114: {'path': 'temp/1765169700_405734_1398444114_5eb520a8ef4c7d3e661e567aea977ee4.jpg', 'extension': 'jpg'}, 1398444118: {'path': 'temp/1765169700_405734_1398444118_5d8b4e6836128fb35240057b64205e2e.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 = 29256636; (('arc_en_ciel_jrm_live',),) 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 = 29256636 group by h (('05', 43),) 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=29256636 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 (29256636) 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 (29256636) AND cps.thcl in (758) order by cps.score desc LIMIT 0, 100000 ERROR counted https://github.com/fotonower/Velours/issues/663#issuecomment-421136223 {} 08122025 29256636 Nombre de photos uploadées : 43 / 23040 (0%) 08122025 29256636 Nombre de photos taguées (types de déchets): 0 / 43 (0%) 08122025 29256636 Nombre de photos taguées (volume) : 0 / 43 (0%) [{'photo_id': 1398443964, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/f36514388f43531f42681724daf525b0.jpg', 'username': None, 'uploaded_at': 1765169168, 'text': 'image_08122025_05_45_04_10154.jpg'}, {'photo_id': 1398443963, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/75cb130f45f7e31a5aa0bc1e644e5df7.jpg', 'username': None, 'uploaded_at': 1765169168, 'text': 'image_08122025_05_45_34_10135.jpg'}, {'photo_id': 1398443952, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/def050489a12cba37155392de36d5a9a.jpg', 'username': None, 'uploaded_at': 1765169168, 'text': 'image_08122025_05_45_44_9122.jpg'}, {'photo_id': 1398443978, 'url': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/2025/12/8/eee0fc442bb70d6d849f66f7273b5c75.jpg', 'username': None, 'uploaded_at': 1765169227, 'text': 'image_08122025_05_45_54_10137.jpg'}] 0 [] elapsed_time : load_data_split_time_score 1.9073486328125e-06 elapsed_time : order_list_meta_photo_and_scores 5.245208740234375e-06 ??????????????????????????????????????????? elapsed_time : fill_and_build_computed_from_old_data 0.0018520355224609375 INSERT INTO `MTRPhoto`.`dashboard_entry_day` (`dashboard_place_id`, `mtr_portfolio_id`, `date`) VALUES ( 218, 29256636, '2025-12-08' ) ON DUPLICATE KEY UPDATE updated_at=NOW(); Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_run_ids` (`dashboard_entry_day`, `mtr_user_id`, `misc_info`) VALUES (2707749,979,"{}"); Catched exception ! Connect or reconnect ! elapsed_time : insert_dashboard_record_day_entry 0.2427961826324463 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= 2707749 AND ded.last_run_id=dri.id AND dri.dashboard_entry_day=ded.id AND dri.id=dr.dashboard_run_id [{'dashboat_entry_day': 2707749, 'dashboard_run_id': 2714756, 'mtr_portfolio_id': 29255719, 'dashboard_result_id': 18155510, '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_P29255719_08-12-2025_05_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29255721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29255722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29255723, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29255724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29255725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29255726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29255727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29255728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29255729, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29255730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29255731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29255732, 'pht': 3726}}"}, {'dashboat_entry_day': 2707749, 'dashboard_run_id': 2714756, 'mtr_portfolio_id': 29256022, 'dashboard_result_id': 18155511, '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_P29256022_08-12-2025_05_33_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256029, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256038, 'pht': 3726}}"}, {'dashboat_entry_day': 2707749, 'dashboard_run_id': 2714756, 'mtr_portfolio_id': 29256393, 'dashboard_result_id': 18155512, '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_P29256393_08-12-2025_05_47_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256410, 'pht': 3726}}"}, {'dashboat_entry_day': 2707749, 'dashboard_run_id': 2714756, 'mtr_portfolio_id': 29256636, 'dashboard_result_id': 18155513, '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_P29256636_08-12-2025_05_52_59.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29256641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256642, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256643, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256644, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256652, '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 = 29255719 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': 4196026, 'mtr_portfolio_id': 29255719, 'created_at': datetime.datetime(2025, 12, 8, 5, 18, 57), 'result': '0.05990018281379398', 'result_long': None, 'result_double': None}] Qualite : 0.05990018281379398 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29255719 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29255719_08-12-2025_05_18_57.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29255719 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_P29255719_08-12-2025_05_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29255721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29255722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29255723, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29255724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29255725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29255726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29255727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29255728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29255729, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29255730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29255731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29255732, 'pht': 3726}}" where mtr_portfolio_id = 29255719 and dashboard_run_id = 2714756 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`=29255719 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18155510, 0.05990018281379398, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29255719_08-12-2025_05_18_57.pdf', 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29255721, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29255722, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29255723, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29255724, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29255725, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29255726, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29255727, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29255728, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29255729, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29255730, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29255731, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29255732, '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 = 29256022 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': 4196067, 'mtr_portfolio_id': 29256022, 'created_at': datetime.datetime(2025, 12, 8, 5, 33, 28), 'result': '0.04719160142858799', 'result_long': None, 'result_double': None}] Qualite : 0.04719160142858799 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29256022 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256022_08-12-2025_05_33_28.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29256022 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_P29256022_08-12-2025_05_33_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256029, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256038, 'pht': 3726}}" where mtr_portfolio_id = 29256022 and dashboard_run_id = 2714756 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`=29256022 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18155511, 0.04719160142858799, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256022_08-12-2025_05_33_28.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256027, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256028, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256029, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256030, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256031, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256032, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256033, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256034, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256035, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256036, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256037, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256038, '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 = 29256393 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': 4196120, 'mtr_portfolio_id': 29256393, 'created_at': datetime.datetime(2025, 12, 8, 5, 47, 32), 'result': '0.0539279006370315', 'result_long': None, 'result_double': None}] Qualite : 0.0539279006370315 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29256393 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256393_08-12-2025_05_47_33.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29256393 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_P29256393_08-12-2025_05_47_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256410, 'pht': 3726}}" where mtr_portfolio_id = 29256393 and dashboard_run_id = 2714756 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`=29256393 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18155512, 0.0539279006370315, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256393_08-12-2025_05_47_33.pdf', 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256398, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256399, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256400, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256401, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256402, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256403, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256404, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256405, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256406, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256407, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256408, 'pht': 3726}, 'metal': {'hashtag': 'metal', 'sub_port_id': 29256410, '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 = 29256636 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': 4196202, 'mtr_portfolio_id': 29256636, 'created_at': datetime.datetime(2025, 12, 8, 5, 54, 59), 'result': '0.04411969422590764', 'result_long': None, 'result_double': None}] Qualite : 0.04411969422590764 select url from MTRUser.mtr_files where mtd_id = 4302 and mtr_portfolio_id = 29256636 order by file_id desc limit 1 find url: https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256636_08-12-2025_05_55_00.pdf select completion_json, dashboard_run_id from MTRPhoto.dashboard_results where mtr_portfolio_id = 29256636 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_P29256636_08-12-2025_05_55_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29256641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256642, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256643, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256644, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256652, 'pht': 3726}}" where mtr_portfolio_id = 29256636 and dashboard_run_id = 2714756 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`=29256636 AND mptpi.`type`=3726 To do INSERT IGNORE INTO MTRPhoto.dashboard_results (id, qualite, completion_json) VALUES (18155513, 0.04411969422590764, "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P29256636_08-12-2025_05_55_00.pdf', 'metal': {'hashtag': 'metal', 'sub_port_id': 29256641, 'pht': 3726}, 'Teint_Dans_La_Masse': {'hashtag': 'Teint_Dans_La_Masse', 'sub_port_id': 29256642, 'pht': 3726}, 'Carton_gris': {'hashtag': 'Carton_gris', 'sub_port_id': 29256643, 'pht': 3726}, 'plastique': {'hashtag': 'plastique', 'sub_port_id': 29256644, 'pht': 3726}, 'kraft': {'hashtag': 'kraft', 'sub_port_id': 29256645, 'pht': 3726}, 'flou': {'hashtag': 'flou', 'sub_port_id': 29256646, 'pht': 3726}, 'autre_refus': {'hashtag': 'autre_refus', 'sub_port_id': 29256647, 'pht': 3726}, 'environnement': {'hashtag': 'environnement', 'sub_port_id': 29256648, 'pht': 3726}, 'papier': {'hashtag': 'papier', 'sub_port_id': 29256649, 'pht': 3726}, 'Carton_brun': {'hashtag': 'Carton_brun', 'sub_port_id': 29256650, 'pht': 3726}, 'cartonnette': {'hashtag': 'cartonnette', 'sub_port_id': 29256651, 'pht': 3726}, 'mal_croppe': {'hashtag': 'mal_croppe', 'sub_port_id': 29256652, '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 (29255719,29256022,29256393,29256636) result : ((1398441020,), (1398441905,), (1398442335,), (1398442480,), (1398442481,), (1398442482,), (1398442483,), (1398442492,), (1398442493,), (1398442499,), (1398442500,), (1398442501,), (1398442502,), (1398442510,), (1398442511,), (1398442512,), (1398442521,), (1398442523,), (1398442525,), (1398442533,), (1398442534,), (1398442749,), (1398442781,), (1398442812,), (1398442849,), (1398442884,), (1398442916,), (1398443037,), (1398443072,), (1398443109,), (1398443110,), (1398443136,), (1398443241,), (1398443242,), (1398443243,), (1398443244,), (1398443246,), (1398443270,), (1398443267,), (1398443268,), (1398443269,), (1398443291,), (1398443292,), (1398443293,), (1398443294,), (1398443303,), (1398443304,), (1398443305,), (1398443322,), (1398443323,), (1398443324,), (1398443344,), (1398443346,), (1398443347,), (1398443354,), (1398443355,), (1398443356,), (1398443357,), (1398443359,), (1398443393,), (1398443399,), (1398443400,), (1398443401,), (1398443403,), (1398443420,), (1398443423,), (1398443425,), (1398443427,), (1398443429,), (1398443431,), (1398443435,), (1398443436,), (1398443437,), (1398443438,), (1398443439,), (1398443440,), (1398443442,), (1398443444,), (1398443446,), (1398443450,), (1398443451,), (1398443452,), (1398443453,), (1398443455,), (1398443456,), (1398443495,), (1398443498,), (1398443501,), (1398443512,), (1398443515,), (1398443526,), (1398443529,), (1398443532,), (1398443534,), (1398443540,), (1398443542,), (1398443544,), (1398443547,), (1398443554,), (1398443555,), (1398443556,), (1398443557,), (1398443558,), (1398443560,), (1398443580,), (1398443585,), (1398443591,), (1398443592,), (1398443595,), (1398443626,), (1398443623,), (1398443624,), (1398443625,), (1398443634,), (1398443635,), (1398443636,), (1398443637,), (1398443639,), (1398443641,), (1398443649,), (1398443650,), (1398443651,), (1398443653,), (1398443655,), (1398443657,), (1398443672,), (1398443673,), (1398443674,), (1398443675,), (1398443676,), (1398443678,), (1398443679,), (1398443681,), (1398443683,), (1398443685,), (1398443688,), (1398443690,), (1398443695,), (1398443696,), (1398443697,), (1398443721,), (1398443740,), (1398443744,), (1398443745,), (1398443746,), (1398443767,), (1398443768,), (1398443769,), (1398443770,), (1398443772,), (1398443782,), (1398443783,), (1398443784,), (1398443785,), (1398443793,), (1398443795,), (1398443798,), (1398443801,), (1398443804,), (1398443807,), (1398443829,), (1398443830,), (1398443831,), (1398443832,), (1398443833,), (1398443835,), (1398443837,), (1398443839,), (1398443850,), (1398443851,), (1398443852,), (1398443853,), (1398443864,), (1398443865,), (1398443866,), (1398443867,), (1398443869,), (1398443870,), (1398443879,), (1398443880,), (1398443881,), (1398443883,), (1398443885,), (1398443887,), (1398443892,), (1398443893,), (1398443894,), (1398443895,), (1398443896,), (1398443921,), (1398443922,), (1398443924,), (1398443926,), (1398443928,), (1398443934,), (1398443935,), (1398443937,), (1398443938,), (1398443940,), (1398443943,), (1398443965,), (1398443952,), (1398443963,), (1398443964,), (1398443974,), (1398443975,), (1398443976,), (1398443977,), (1398443978,), (1398443986,), (1398443987,), (1398443988,), (1398443989,), (1398443991,), (1398444001,), (1398444002,), (1398444003,), (1398444004,), (1398444031,), (1398444032,), (1398444033,), (1398444034,), (1398444036,), (1398444044,), (1398444045,), (1398444046,), (1398444047,), (1398444064,), (1398444065,), (1398444072,), (1398444077,), (1398444085,), (1398444087,), (1398444097,), (1398444098,), (1398444099,), (1398444101,), (1398444103,), (1398444104,), (1398444112,), (1398444113,), (1398444114,), (1398444118,), (1398444123,)) NUMBER BATCH : 0 # DISPLAY ALL COLLECTED DATA : {'08122025': {'nb_upload': 43, 'nb_taggue_class': 0, 'nb_taggue_densite': 0}} After datou_step_exec type output : map_portfolio_photo : len 1 keys : dict_keys([29256636]) Inside saveOutput : final : True verbose : True saveOutput not yet implemented for datou_step.type : split_time_score we use saveGeneral [1398444123, 1398444118, 1398444114, 1398444113, 1398444112, 1398444104, 1398444103, 1398444101, 1398444099, 1398444098, 1398444097, 1398444087, 1398444085, 1398444077, 1398444072, 1398444065, 1398444064] map_info['map_portfolio_photo'] : {29256636: [1398444123, 1398444118, 1398444114, 1398444113, 1398444112, 1398444104, 1398444103, 1398444101, 1398444099, 1398444098, 1398444097, 1398444087, 1398444085, 1398444077, 1398444072, 1398444065, 1398444064, 1398444047, 1398444046, 1398444045, 1398444044, 1398444036, 1398444034, 1398444033, 1398444032, 1398444031, 1398444004, 1398444003, 1398444002, 1398444001, 1398443991, 1398443989, 1398443988, 1398443987, 1398443986, 1398443978, 1398443977, 1398443976, 1398443975, 1398443974, 1398443964, 1398443963, 1398443952]} final : True mtd_id 4302 list_pids : [1398444123, 1398444118, 1398444114, 1398444113, 1398444112, 1398444104, 1398444103, 1398444101, 1398444099, 1398444098, 1398444097, 1398444087, 1398444085, 1398444077, 1398444072, 1398444065, 1398444064] Looping around the photos to save general results len do output : 1 /29256636Didn'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, '4196202') ('4302', '29256636', '1398444123', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444118', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444114', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444113', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444112', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444104', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444103', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444101', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444099', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444098', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444097', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444087', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444085', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444077', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444072', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444065', None, None, None, None, None, '4196202') ('4302', None, None, None, None, None, None, None, '4196202') ('4302', '29256636', '1398444064', None, None, None, None, None, '4196202') begin to insert list_values into mtr_datou_result : length of list_values in save_final : 18 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, '29256636', 'None', None, None, None, None, '4196202'), ('4302', '29256636', '1398444123', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444118', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444114', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444113', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444112', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444104', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444103', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444101', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444099', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444098', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444097', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444087', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444085', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444077', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444072', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444065', None, None, None, None, None, '4196202'), ('4302', '29256636', '1398444064', None, None, None, None, None, '4196202')] time used for this insertion : 0.015844106674194336 save_final save missing photos in datou_result : time spend for datou_step_exec : 0.7648513317108154 time spend to save output : 0.016099929809570312 total time spend for step 5 : 0.7809512615203857 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 (4196202) 2.28user 2.43system 0:08.11elapsed 58%CPU (0avgtext+0avgdata 173252maxresident)k 328inputs+10624outputs (5major+71938minor)pagefaults 0swaps