From 9ef4e663cc1ef026e3ef80746ef744a08e881561 Mon Sep 17 00:00:00 2001 From: Dmitriy Alekseev <1865999+dragoangel@users.noreply.github.com> Date: Tue, 4 Mar 2025 20:26:56 +0100 Subject: [PATCH] [Fix] Expire neural ham and spam sets so they not hangup in redis indefinitely --- lualib/redis_scripts/neural_save_unlock.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lualib/redis_scripts/neural_save_unlock.lua b/lualib/redis_scripts/neural_save_unlock.lua index 5af1ddcde0..bb5f69531b 100644 --- a/lualib/redis_scripts/neural_save_unlock.lua +++ b/lualib/redis_scripts/neural_save_unlock.lua @@ -17,8 +17,10 @@ redis.call('DEL', KEYS[1] .. '_ham_set') redis.call('HDEL', KEYS[1], 'lock') redis.call('HDEL', KEYS[7], 'lock') redis.call('EXPIRE', KEYS[1], tonumber(KEYS[5])) +redis.call('EXPIRE', KEYS[1] .. '_spam_set', tonumber(KEYS[5])) +redis.call('EXPIRE', KEYS[1] .. '_ham_set', tonumber(KEYS[5])) redis.call('HSET', KEYS[1], 'roc_thresholds', KEYS[8]) if KEYS[9] then redis.call('HSET', KEYS[1], 'pca', KEYS[9]) end -return 1 \ No newline at end of file +return 1 -- 2.47.3