Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Fix job status incorrectly shown as RUNNING #663

Merged
merged 3 commits into from
May 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ The format is based on [Keep a Changelog].
> - **Security**: in case of vulnerabilities.


## [UNRELEASED]

### Fixed

- Fixed an issue where job status was incorrectly shown as `RUNNING` when it
should be `QUEUED`. (\#662)

## [0.7.0] - 2020-04-29

### Added
Expand Down Expand Up @@ -407,6 +414,7 @@ The format is based on [Keep a Changelog].
- Support for non-qobj format has been removed. (\#26, \#28)


[UNRELEASED]: https://github.com/Qiskit/qiskit-ibmq-provider/compare/0.7.0...HEAD
[0.7.0]: https://github.com/Qiskit/qiskit-ibmq-provider/compare/0.6.1...HEAD
[0.6.1]: https://github.com/Qiskit/qiskit-ibmq-provider/compare/0.6.0...0.6.1
[0.6.0]: https://github.com/Qiskit/qiskit-ibmq-provider/compare/0.5.0...0.6.0
Expand Down
2 changes: 1 addition & 1 deletion qiskit/providers/ibmq/job/ibmqjob.py
Original file line number Diff line number Diff line change
Expand Up @@ -996,7 +996,7 @@ def _get_status_position(
"""
queue_info = None
status = api_status_to_job_status(api_status)
if api_status is ApiJobStatus.RUNNING.value and api_info_queue:
if api_status == ApiJobStatus.RUNNING.value and api_info_queue:
queue_info = QueueInfo(job_id=self.job_id(), **api_info_queue)
if queue_info._status == ApiJobStatus.PENDING_IN_QUEUE.value:
status = JobStatus.QUEUED
Expand Down