Skip to content

Conversation

@epwalsh
Copy link
Member

@epwalsh epwalsh commented Sep 9, 2022

Followup to allenai/beaker-py#152

@epwalsh epwalsh requested a review from dirkgr September 9, 2022 16:58
steps: Dict[str, StepInfo] = {}
steps_info_bytes = b"".join(
list(self.beaker.dataset.stream_file(dataset, Constants.RUN_DATA_FNAME, quiet=True))
steps_info_bytes = self.beaker.dataset.get_file(
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

get_file() is a little more robust than stream_file() because it will treat ChecksumFailed as a recoverable error and retry the whole download. That's not possible with stream_file().

@epwalsh epwalsh merged commit 230d78e into main Sep 9, 2022
@epwalsh epwalsh deleted the robustness branch September 9, 2022 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants