]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Feature] Add pending training keys and fix neural network training issues
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 19 Jan 2026 18:08:58 +0000 (18:08 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 19 Jan 2026 18:08:58 +0000 (18:08 +0000)
commit843411c1932baf186bf0e57cbfcef1a0a3072c15
tree4aada1bf36b867c98e837237d8a8c023be9b5d3a
parentef9318d9cf92119427678b71e042cc061f11beaa
[Feature] Add pending training keys and fix neural network training issues

- Add pending_train_key() for version-independent training vector storage
- Fix variable shadowing bug where ann_trained callback was overwritten
- Add concurrent training prevention via learning_spawned check
- Replace assert with proper error handling for msgpack parsing
- Clean up pending keys after successful training
- Update controller endpoint to use pending keys for manual training
- Fix ev_base:sleep() to register with session events properly
- Update classifier_test.lua to support llm_embeddings classifier testing

Co-Authored-By: Claude <noreply@anthropic.com>
lualib/plugins/neural.lua
lualib/rspamadm/classifier_test.lua
rules/controller/neural.lua
src/lua/lua_util.c
src/plugins/lua/neural.lua