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

Dismissed status #65

Merged
merged 2 commits into from
Aug 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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