Identify the underlying job parameter conversion failure

This commit is contained in:
Artyom
2026-11-06 10:18:04 +03:00
parent 5f6169c06c
commit 1212c562d2
@@ -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)