From 355e7aea27f35436ae952017562182a2d703c7a7 Mon Sep 17 00:00:00 2001 From: Memex Date: Wed, 14 Jun 2023 09:19:45 +0100 Subject: [PATCH] add separate QUEUED and RUNNING states to task status (#46) --- qiskit_braket_provider/providers/braket_job.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qiskit_braket_provider/providers/braket_job.py b/qiskit_braket_provider/providers/braket_job.py index 63a96f12..0d43a8df 100644 --- a/qiskit_braket_provider/providers/braket_job.py +++ b/qiskit_braket_provider/providers/braket_job.py @@ -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