forked from mtusi2026/mtusi2026lab6
Forward the lab 5 foundation while preserving lab 6 telemetry
Source: immutable lab5 snapshot f88e9ba43cdfd7eb6a5a7ae5feb4247b4e820071; forward the allowed diff from 64d5c67. Carry SQLAlchemy, Alembic, reliability fixes, versioned jobs, infrastructure and student tests without changing protected coursework files. Validation: make check, validate, lint; 515 student tests passed with one Linux-only skip; public smoke with telemetry enabled and repeat migration passed. Stop the owned stack and retain volumes. Preserve the existing OTel work in progress; grade implementation remains a separate phase.
This commit is contained in:
@@ -40,7 +40,12 @@ async def handle_job(
|
||||
outcome = (await bus.execute(ProcessJob(job))).value
|
||||
except Exception as error:
|
||||
observed(job, "error", started, observer, logger)
|
||||
logger.warning("job.requeued", job_id=str(job.id), error=type(error).__name__)
|
||||
logger.warning(
|
||||
"job.requeued",
|
||||
job_id=str(job.id),
|
||||
error=type(error).__name__,
|
||||
error_code=getattr(getattr(error, "orig", error), "sqlstate", None),
|
||||
)
|
||||
await asyncio.sleep(REQUEUE_DELAY_SECONDS)
|
||||
await message.nack(requeue=True)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user