Skip to content

Commit a8c4ea2

Browse files
committed
fix(python-client): improve get_job_status for running jobs
1 parent 20e8be1 commit a8c4ea2

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

python-client/wmill/wmill/client.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,7 @@ def get_job_status(self, job_id: str) -> JobStatus:
257257
assert job_type, f"{job} is not a valid job"
258258
if job_type.lower() == "completedjob":
259259
return "COMPLETED"
260-
additional_properties = job.get("additional_properties", {})
261-
if "running" not in additional_properties:
262-
raise Exception(f"{job_id} is not running")
263-
if additional_properties.get("running"):
260+
if job.get("running"):
264261
return "RUNNING"
265262
return "WAITING"
266263

0 commit comments

Comments
 (0)