Skip to content

Commit

Permalink
fix: increase save_task timeout from 5 to 30s
Browse files Browse the repository at this point in the history
  • Loading branch information
jarvis8x7b committed Oct 26, 2024
1 parent aa25e04 commit 5dc8171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commons/orm.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ async def save_task(
"""
try:
feedback_request_model: Feedback_Request_Model | None = None
async with transaction() as tx:
async with prisma.tx(timeout=timedelta(seconds=30)) as tx:
logger.trace("Starting transaction for saving task.")

feedback_request_model = await tx.feedback_request_model.create(
Expand Down

0 comments on commit 5dc8171

Please sign in to comment.