primus.cli.shared.async_cleanup module
Narrow asynchronous cleanup helpers for CLI process shutdown.
- async primus.cli.shared.async_cleanup.drain_litellm_service_logging_tasks(*, timeout_seconds: float = 2.0) → int
Finish LiteLLM’s detached success hooks before closing a CLI event loop.
Only the named LiteLLM service-logging hook is handled here. Application tasks retain their normal lifecycle and cancellation semantics.