mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
use asyncio lock for updating PrismaClient txs
This commit is contained in:
parent
19f35ada82
commit
96812a7da0
2 changed files with 32 additions and 23 deletions
|
@ -1121,6 +1121,7 @@ class PrismaClient:
|
|||
self.iam_token_db_auth: Optional[bool] = str_to_bool(
|
||||
os.getenv("IAM_TOKEN_DB_AUTH")
|
||||
)
|
||||
self.in_memory_transaction_lock = asyncio.Lock()
|
||||
verbose_proxy_logger.debug("Creating Prisma Client..")
|
||||
try:
|
||||
from prisma import Prisma # type: ignore
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue