Skip to content

Commit

Permalink
Add activated_at field to session.details() (#1266)
Browse files Browse the repository at this point in the history
* add activated_at to session.details()

* add reno
  • Loading branch information
kt474 committed Dec 7, 2023
1 parent f2e24e4 commit f36b2a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions qiskit_ibm_runtime/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ def details(self) -> Optional[Dict[str, Any]]:
last_job_completed: Timestamp of when the last job in the session completed.
started_at: Timestamp of when the session was started.
closed_at: Timestamp of when the session was closed.
activated_at: Timestamp of when the session state was changed to active.
"""
if self._session_id:
response = self._service._api_client.session_details(self._session_id)
Expand All @@ -269,6 +270,7 @@ def details(self) -> Optional[Dict[str, Any]]:
"last_job_completed": response.get("last_job_completed"),
"started_at": response.get("started_at"),
"closed_at": response.get("closed_at"),
"activated_at": response.get("activated_at"),
}
return None

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
features:
- |
:meth:`~qiskit_ibm_runtime.Session.details` has a new field, `activated_at`, which
is the timestamp of when the session was changed to active.

0 comments on commit f36b2a9

Please sign in to comment.