Skip to content

Commit

Permalink
Update job status deprecation msg (#2036)
Browse files Browse the repository at this point in the history
* Update job status deprecation msg

* Update qiskit_ibm_runtime/runtime_job.py

Co-authored-by: Ian Hincks <[email protected]>

---------

Co-authored-by: Ian Hincks <[email protected]>
  • Loading branch information
kt474 and ihincks authored Nov 11, 2024
1 parent ba8853b commit 44473cf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qiskit_ibm_runtime/runtime_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,9 @@ def status(self) -> JobStatus:
(
"In a future release of qiskit-ibm-runtime no sooner than 3 months "
"after the release date of 0.30.0, RuntimeJob.status() will be returned as a string "
"instead of an instance of `JobStatus`."
"instead of an instance of `JobStatus`. "
"To prepare for this change, you can use the idiom "
"`status.name if isinstance(status, JobStatus) else status`."
),
DeprecationWarning,
stacklevel=2,
Expand Down

0 comments on commit 44473cf

Please sign in to comment.