Лабораторная 5 - Костылев - БПИ2303 - На 5 #67

Closed
akostylev2303 wants to merge 51 commits from akostylev2303/mtusi2026lab5:solution/bpi2303-kostylev into main
Showing only changes of commit 1212c562d2 - Show all commits
@@ -39,6 +39,9 @@ async def handle_job(
job_id=str(job.id),
error=type(error).__name__,
error_code=getattr(getattr(error, "orig", error), "sqlstate", None),
reason=type(
getattr(getattr(getattr(error, "orig", None), "__cause__", None), "__cause__", None)
).__name__,
)
await asyncio.sleep(REQUEUE_DELAY_SECONDS)
await message.nack(requeue=True)