File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change 16
16
from concurrent import futures
17
17
import logging
18
18
import time
19
+ import warnings
19
20
20
21
from qiskit .providers .backend import Backend
21
22
from qiskit .providers .jobstatus import JobStatus , JOB_FINAL_STATES
34
35
)
35
36
from .utils .result_decoder import ResultDecoder
36
37
from .utils .queueinfo import QueueInfo
37
- from .utils .deprecation import deprecate_function
38
+ from .utils .deprecation import deprecate_function , issue_deprecation_msg
38
39
from .api .clients import RuntimeClient
39
40
from .api .exceptions import RequestsApiError
40
41
from .api .client_parameters import ClientParameters
@@ -190,6 +191,15 @@ def status(self) -> JobStatus:
190
191
Returns:
191
192
Status of this job.
192
193
"""
194
+ warnings .warn (
195
+ (
196
+ "In a future release of qiskit-ibm-runtime no sooner than 3 months "
197
+ "after the release date of 0.30.0, RuntimeJob.status() will be returned as a string "
198
+ "instead of an instance of `JobStatus`."
199
+ ),
200
+ DeprecationWarning ,
201
+ stacklevel = 2 ,
202
+ )
193
203
self ._set_status_and_error_message ()
194
204
return self ._status
195
205
Original file line number Diff line number Diff line change
1
+ In a future release, ``RuntimeJob.status() `` will be returned as a string instead of
2
+ an instance of ``JobStatus ``.
You can’t perform that action at this time.
0 commit comments