Skip to content

Commit

Permalink
add separate QUEUED and RUNNING states to task status (qiskit-communi…
Browse files Browse the repository at this point in the history
  • Loading branch information
robotAstray committed Jun 14, 2023
1 parent e9f8f71 commit 57f4743
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qiskit_braket_provider/providers/braket_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,10 @@ def status(self):
status = JobStatus.CANCELLED
elif all(state == "COMPLETED" for state in braket_tasks_states):
status = JobStatus.DONE
else:
elif all(state == "RUNNING" for state in braket_tasks_states):
status = JobStatus.RUNNING
else:
status = JobStatus.QUEUED

return status

Expand Down

0 comments on commit 57f4743

Please sign in to comment.