Skip to content

Commit

Permalink
fix(webservices): If the job isn't on the server it's DELETED not FIN…
Browse files Browse the repository at this point in the history
…ISHED
  • Loading branch information
zjp committed Jan 22, 2025
1 parent 33360fc commit 95973f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bundles/webservices/src/cxservices_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def monitor(self, poll_freq_override: Optional[int] = None) -> None:
)
reason = json.loads(e.body)["description"]
if reason.startswith("No such job"):
self.state = TaskState.FINISHED
self.state = TaskState.DELETED
return
raise JobMonitorError(str(e))
self.state = status
Expand Down

0 comments on commit 95973f5

Please sign in to comment.