mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-23 08:24:15 +00:00
GLOBAL_LOGGING_WORKER.flush() calls queue.join() which blocks until all items are task_done(). In CI with pytest-asyncio, each test gets a fresh event loop so the worker reinitializes its queue - items from a previous test never get task_done(), causing an infinite hang. Fix: wrap flush() with asyncio.wait_for(..., timeout=10.0).