ЛР 5 — БПИ2303 — Костылев — на 5 #163

Closed
akostylev2303 wants to merge 53 commits from akostylev2303/lab5 AGit into master
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)