Skip to content

Commit

Permalink
restore fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akihikokuroda committed Nov 23, 2023
1 parent ebf6867 commit f189b7f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions gateway/api/jobhandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ def throttle_job(job):
queued_job = Job.objects.filter(
status=Job.QUEUED, author__exact=job.author
).order_by("created")[:1]
if queued_job.count() == 0:
return None
return queued_job[0]


Expand Down

0 comments on commit f189b7f

Please sign in to comment.