Skip to content

Commit

Permalink
Compute Client: fix Job.get (#11874)
Browse files Browse the repository at this point in the history
GitOrigin-RevId: 30ce9a4d9dc6b6d96c08e75dfa9ebc103f034188
  • Loading branch information
tkrause authored and Descartes Labs Build committed May 17, 2023
1 parent ff21e99 commit e709e1f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions descarteslabs/core/compute/compute.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def get(cls, id) -> "Job":
"""
client = ComputeClient.get_default_client()
response = client.session.get(f"/jobs/{id}")
return cls(response.json(), saved=True)
return cls(**response.json(), saved=True)

@classmethod
def list(
Expand Down Expand Up @@ -169,8 +169,6 @@ def list(

params["status"] = status

print("params", params)

paginator = client.iter_pages("/jobs", params=params)

for data in paginator:
Expand Down

0 comments on commit e709e1f

Please sign in to comment.