generalbots/src/analytics
Rodrigo Rodriguez (Pragmatismo) 61642343a8
Some checks are pending
BotServer CI/CD / build (push) Waiting to run
fix: replace all block_in_place with std:🧵:spawn to fix nested runtime panic
Root cause: block_in_place + new_current_thread().block_on() panics when
called from within tokio runtime (including spawn_blocking). Tokio doesn't
allow nested block_on() calls.

Fix: Replace ALL block_in_place patterns with std:🧵:spawn + mpsc channel.
This creates a completely separate OS thread with its own runtime, avoiding
any nesting issues. Works from any context: async, spawn_blocking, or sync.

Files: 14 files across secrets, utils, state, calendar, analytics, email,
and all keyword handlers (universal_messaging, search, book, create_draft,
create_site, hearing/syntax, use_tool, find, admin_email, goals)
2026-04-03 12:54:36 -03:00
..
analytics.md Fix tenant-org-bot relationship and CRM lead form 2026-03-12 18:19:18 -03:00
goals.rs fix: replace all block_in_place with std:🧵:spawn to fix nested runtime panic 2026-04-03 12:54:36 -03:00
goals_ui.rs Fix LXD container install: PATH, socket proxy, DNS 2026-03-16 21:24:04 -03:00
insights.rs Refactor: Split large files into modular subdirectories 2026-02-12 21:09:30 +00:00
mod.rs Fix: add missing async_trait on AuthenticatedUser extractor, type annotation on analytics router, import ObservabilityManager 2026-03-16 21:54:29 -03:00