diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-02-25 13:29:01 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-02-25 13:29:01 +0000 |
commit | 9305084973d7e7fa1ca33cade45ee6f9732055b7 (patch) | |
tree | dc735d221e5e5039a415db73c753ed7de755acc7 /src/plugins/lua/neural.lua | |
parent | 58ed3fae4fe7c3c972e801698a0e8f1c615213ce (diff) | |
download | rspamd-9305084973d7e7fa1ca33cade45ee6f9732055b7.tar.gz rspamd-9305084973d7e7fa1ca33cade45ee6f9732055b7.zip |
[Minor] Allow to set process title for lua processes
Diffstat (limited to 'src/plugins/lua/neural.lua')
-rw-r--r-- | src/plugins/lua/neural.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/lua/neural.lua b/src/plugins/lua/neural.lua index da569e698..cd870534f 100644 --- a/src/plugins/lua/neural.lua +++ b/src/plugins/lua/neural.lua @@ -103,7 +103,7 @@ end local redis_lua_script_can_store_train_vec = [[ local prefix = KEYS[1] local locked = redis.call('HGET', prefix, 'lock') - if locked then return {tostring(-1),'locked by another process: ' .. locked} end + if locked then return {tostring(-1),'locked by another process till: ' .. locked} end local nspam = 0 local nham = 0 local lim = tonumber(KEYS[3]) @@ -726,6 +726,7 @@ local function spawn_train(worker, ev_base, rule, set, ann_key, ham_vec, spam_ve worker:spawn_process{ func = train, on_complete = ann_trained, + proctitle = string.format("ANN train for %s/%s", rule.prefix, set.name), } end -- Spawn learn and register lock extension |