fix: only log if it got a job

This commit is contained in:
Jayden Pyles
2025-10-12 11:55:20 -05:00
parent 44ccad1935
commit e90e7e9564

View File

@@ -44,7 +44,10 @@ async def get_queued_job():
)
result = await session.execute(stmt)
job = result.scalars().first()
LOG.info(f"Got queued job: {job}")
if job:
LOG.info(f"Got queued job: {job}")
return job