]> git.ipfire.org Git - thirdparty/rspamd.git/commit
[Fix] Prevent concurrent neural network training races
authorVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 19 Jan 2026 18:41:02 +0000 (18:41 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Mon, 19 Jan 2026 18:41:02 +0000 (18:41 +0000)
commitda97667eb0588ba194264f3ad8865443f99cb16e
treeb3897647a8551ea9745771d6d126b09aaf9740a2
parent843411c1932baf186bf0e57cbfcef1a0a3072c15
[Fix] Prevent concurrent neural network training races

- Add learning_spawned check at start of do_train_ann to prevent
  concurrent async Redis operations
- Move learning_spawned flag to start of spawn_train for earlier
  lock acquisition
- Remove redundant flag assignments later in the training flow
lualib/plugins/neural.lua
src/plugins/lua/neural.lua