Skip to content

Commit

Permalink
dedicated is not part of the BackendStatus schema and would have neve…
Browse files Browse the repository at this point in the history
…r worked (#417)

Fixes build failures due to "qiskit_ibm_runtime.exceptions.IBMBackendApiProtocolError: "Unexpected return value received from the server when getting backend status: __init__() got an unexpected keyword argument 'dedicated'""
  • Loading branch information
rathishcholarajan committed Jul 13, 2022
1 parent 4969a5d commit 67176ad
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
4 changes: 0 additions & 4 deletions qiskit_ibm_runtime/api/rest/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,10 +105,6 @@ def status(self) -> Dict[str, Any]:
else:
ret["pending_jobs"] = 0

# Not part of the schema.
if "busy" in response:
ret["dedicated"] = response["busy"]

return ret

def job_limit(self) -> Dict[str, Any]:
Expand Down
3 changes: 0 additions & 3 deletions qiskit_ibm_runtime/api/rest/cloud_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,4 @@ def status(self) -> Dict[str, Any]:
ret["pending_jobs"] = max(response["length_queue"], 0)
else:
ret["pending_jobs"] = 0
# Not part of the schema.
if "busy" in response:
ret["dedicated"] = response["busy"]
return ret

0 comments on commit 67176ad

Please sign in to comment.