Skip to content

Commit 371eb37

Browse files
authored
Update timeout (#476)
1 parent 653761d commit 371eb37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/kernelbot/api/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -569,7 +569,7 @@ async def run_submission_async(
569569
try:
570570
await asyncio.wait_for(
571571
asyncio.to_thread(enforce_submission_precheck, req.code, req.file_name),
572-
timeout=5.0,
572+
timeout=20.0,
573573
)
574574
except asyncio.TimeoutError as e:
575575
raise HTTPException(status_code=504, detail="KernelGuard pre-check timed out") from e

0 commit comments

Comments
 (0)