Skip to content

Commit

Permalink
Revert "Don't block for the first job in a session (#1170)" (#1267)
Browse files Browse the repository at this point in the history
* Revert "Don't block for the first job in a session (#1170)"

This reverts commit f2e24e4.

* keep test
  • Loading branch information
kt474 committed Dec 7, 2023
1 parent f36b2a9 commit 0f9cc6f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
6 changes: 1 addition & 5 deletions qiskit_ibm_runtime/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
from .runtime_job import RuntimeJob
from .utils.result_decoder import ResultDecoder
from .ibm_backend import IBMBackend
from .exceptions import RuntimeJobTimeoutError
from .utils.default_session import set_cm_session
from .utils.deprecation import deprecate_arguments

Expand Down Expand Up @@ -181,10 +180,7 @@ def run(
self._setup_lock.release()

if self._backend is None:
try:
self._backend = job.backend(0).name
except RuntimeJobTimeoutError:
self._backend = None
self._backend = job.backend().name

return job

Expand Down
8 changes: 0 additions & 8 deletions releasenotes/notes/backend-blocking-job-70ebcf44855cbdfd.yaml

This file was deleted.

0 comments on commit 0f9cc6f

Please sign in to comment.