Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions qiskit_ibm_runtime/api/clients/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,6 @@ def job_logs(self, job_id: str) -> str:
"""
return self._api.program_job(job_id).logs()

def logout(self) -> None:
"""Clear authorization cache."""
self._api.logout()

# IBM Cloud only functions

def list_backends(self) -> List[str]:
Expand Down
6 changes: 0 additions & 6 deletions qiskit_ibm_runtime/api/rest/runtime.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class Runtime(RestAdapterBase):
URL_MAP = {
"programs": "/programs",
"jobs": "/jobs",
"logout": "/logout",
"backends": "/devices",
}

Expand Down Expand Up @@ -193,11 +192,6 @@ def jobs_get(
payload["provider"] = f"{hub}/{group}/{project}"
return self.session.get(url, params=payload).json()

def logout(self) -> None:
"""Clear authorization cache."""
url = self.get_url("logout")
self.session.post(url)

# IBM Cloud only functions

def backend(self, backend_name: str) -> CloudBackend:
Expand Down
14 changes: 0 additions & 14 deletions qiskit_ibm_runtime/ibm_runtime_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -1252,20 +1252,6 @@ def _decode_job(self, raw_data: Dict) -> RuntimeJob:
creation_date=raw_data.get("created", None),
)

def logout(self) -> None:
"""Clears authorization cache on the server.

For better performance, the runtime server caches each user's
authorization information. This method is used to force the server
to clear its cache.

Note:
Invoke this method ONLY when your access level to the runtime
service has changed - for example, the first time your account is
given the authority to upload a program.
"""
self._api_client.logout()

def least_busy(
self,
min_num_qubits: Optional[int] = None,
Expand Down
11 changes: 0 additions & 11 deletions test/test_integration_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,17 +217,6 @@ def test_wait_for_final_state(self, service):
job.wait_for_final_state()
self.assertEqual(JobStatus.DONE, job.status())

@run_cloud_legacy_real
def test_logout(self, service):
"""Test logout."""
if service.auth == "cloud":
# TODO - re-enable when fixed
self.skipTest("Logout does not work for cloud")
service.logout()
# Make sure we can still do things.
self._upload_program(service)
_ = self._run_program(service)

@run_cloud_legacy_real
def test_job_creation_date(self, service):
"""Test job creation date."""
Expand Down