Skip to content
This repository was archived by the owner on Mar 7, 2026. It is now read-only.

Commit e90e7e9

Browse files
committed
fix: only log if it got a job
1 parent 44ccad1 commit e90e7e9

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

api/backend/database/queries/job/job_queries.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ async def get_queued_job():
4444
)
4545
result = await session.execute(stmt)
4646
job = result.scalars().first()
47-
LOG.info(f"Got queued job: {job}")
47+
48+
if job:
49+
LOG.info(f"Got queued job: {job}")
50+
4851
return job
4952

5053

0 commit comments

Comments
 (0)