Skip to content

Commit

Permalink
api: queue_positon to 0 if job is started
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Spooren <mail@aparcar.org>
  • Loading branch information
aparcar committed Aug 13, 2021
1 parent 61f5b84 commit f74890e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asu/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def return_job(job):
status = 202
response = {
"status": job.get_status(),
"queue_position": job.get_position() or -1,
"queue_position": job.get_position() or 0,
}

elif job.is_finished:
Expand Down

0 comments on commit f74890e

Please sign in to comment.