-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Description
Informations
- Qiskit version: 0.35.0
- Python version: 3.8
- Operating system: Ubuntu
What is the current behavior?
When attempting to monitor jobs that use the qiskit runtime the following error occurrs:
Job Status: job is queued
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
/tmp/ipykernel_9699/736061496.py in <module>
19 )
20
---> 21 job_monitor(reset_job)
~/.local/lib/python3.8/site-packages/qiskit/tools/monitor/job_monitor.py in job_monitor(job, interval, quiet, output, line_discipline)
87 _interval_set = True
88
---> 89 _text_checker(
90 job, interval, _interval_set, quiet=quiet, output=output, line_discipline=line_discipline
91 )
~/.local/lib/python3.8/site-packages/qiskit/tools/monitor/job_monitor.py in _text_checker(job, interval, _interval_set, quiet, output, line_discipline)
47
48 if status.name == "QUEUED":
---> 49 msg += " (%s)" % job.queue_position()
50 if job.queue_position() is None:
51 interval = 2
AttributeError: 'RuntimeJob' object has no attribute 'queue_position'
Steps to reproduce the problem
Submit a qiskit runtime job to a full queue, then monitor the job with job_monitor(job)
What is the expected behavior?
The job_monitor should not exit with an exception
Suggested solutions
Remove the assumption that the job object has a queue_position
method, as that is not part of the base class.
pranavm1502 and fvoichick
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working