Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add better support for transfer jobs #136

Merged
merged 9 commits into from
Nov 25, 2024
Merged
Show file tree
Hide file tree
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
13 changes: 13 additions & 0 deletions firecrest/FirecrestException.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,3 +112,16 @@ def __str__(self):
f"is exhausted. Update `polling_sleep_times` of the client "
f"to increase the number of polling attempts."
)


class TransferJobFailedException(Exception):
"""Exception raised when the polling iterator is exhausted"""

def __init__(self, transfer_job_info):
self._transfer_job_info = transfer_job_info

def __str__(self):
return (
f"Transfer job failed. Check the log files for more "
f"information: {self._transfer_job_info['transferJob']}"
)
Loading
Loading