-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
releasenotes/notes/sessions-accepting-jobs-d77e3bba150a20f5.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
upgrade: | ||
- | | ||
:meth:`qiskit_ibm_runtime.Session.close` has been updated to mark a ``Session`` as no longer | ||
accepting new jobs. The session won't accept more jobs but it will continue to run any | ||
queued jobs until they are done or the max time expires. This will also happen | ||
automatically when the session context manager is exited. When a session that is not accepting | ||
jobs has run out of jobs to run, it's immediately closed, freeing up the backend to run more jobs rather | ||
than wait for the interactive timeout. | ||
The old close method behaviour has been moved to a new method, | ||
:meth:`qiskit_ibm_runtime.Session.cancel`, where all jobs within a session are | ||
cancelled and terminated. | ||