fix GLOBAL_LOGGING_WORKER

This commit is contained in:
Ishaan Jaff 2025-08-22 18:10:48 -07:00
parent d3ca8cbafa
commit d254f508f4

View file

@ -51,6 +51,13 @@ def setup_and_teardown():
litellm.in_memory_llm_clients_cache.flush_cache()
# empty the global logging worker queue
import asyncio
from litellm.litellm_core_utils.logging_worker import GLOBAL_LOGGING_WORKER
if GLOBAL_LOGGING_WORKER._queue is not None:
GLOBAL_LOGGING_WORKER._queue = asyncio.Queue()
import asyncio
loop = asyncio.get_event_loop_policy().new_event_loop()