generalbots/src/basic
Rodrigo Rodriguez (Pragmatismo) 25d6d2fd57
All checks were successful
BotServer CI/CD / build (push) Successful in 3m32s
fix: eliminate LLM keyword deadlock with isolated worker thread
The previous fix used Handle::current().block_on() which deadlocks when
the Rhai engine runs on a Tokio worker thread — it blocks the very
thread the async task needs to make progress.

New approach: spawn a dedicated background thread with its own
single-threaded Tokio runtime, communicate via mpsc channel with a
45s timeout. This completely isolates the LLM runtime from the
caller's runtime, eliminating any possibility of thread starvation
or nested-runtime deadlock.

Also remove unused 'trace' import from llm/mod.rs.

Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
2026-04-13 23:20:10 -03:00
..
compiler feat: add ADD_SWITCHER keyword with underscore preprocessing 2026-04-13 15:47:21 -03:00
keywords fix: eliminate LLM keyword deadlock with isolated worker thread 2026-04-13 23:20:10 -03:00
mod.rs feat: add [BASIC_EXEC] traces for start, tool, scheduler, webhook execution 2026-04-13 18:16:01 -03:00
mod.rs.backup fix: Correct parameter names in tool .bas files to match database schema 2026-02-18 17:51:47 +00:00
tests.rs Refactor: Split large files into modular subdirectories 2026-02-12 21:09:30 +00:00