mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-11 03:38:38 +00:00
fix GLOBAL_LOGGING_WORKER
This commit is contained in:
parent
d3ca8cbafa
commit
d254f508f4
1 changed files with 7 additions and 0 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue