Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Dismissed status (#65)
Browse files Browse the repository at this point in the history
* add dismissed status

* cleanup
  • Loading branch information
malmans2 authored Aug 29, 2024
1 parent 806bfa9 commit ca975c8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cads_api_client/processing.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,8 @@ def wait_on_result(self, retry_options: dict[str, Any] = {}) -> None:
sleep *= 1.5
if sleep > self.sleep_max:
sleep = self.sleep_max
elif status == "dismissed":
raise ProcessingFailedError(f"API state {status!r}")
else:
raise ProcessingFailedError(f"Unknown API state {status!r}")
self.debug(f"result not ready, waiting for {sleep} seconds")
Expand Down

0 comments on commit ca975c8

Please sign in to comment.