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
fix: make logging more informative during training #310
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -646,12 +646,12 @@ def _block_until_complete(self): | |
) | ||
) | ||
log_wait = min(log_wait * multiplier, max_wait) | ||
previous_time = current_time | ||
previous_time = current_time | ||
time.sleep(wait) | ||
|
||
self._raise_failure() | ||
|
||
_LOGGER.log_action_completed_against_resource("", "run", self) | ||
_LOGGER.log_action_completed_against_resource("run", "completed", self) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From the docstring of
I can't tell if these args are correct or not. What does There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The noun-action combo is for nouns in the following:
Sometimes these nouns are separate from the resource they act on. Like data/dataset and model/endpoint. Happy to improve the wording in the comment. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Okay I see! I was having trouble parsing the sentence. I get it now. Perhaps could be changed to: The examples would actually be the most helpful. |
||
|
||
if self._gca_resource.model_to_upload and not self.has_failed: | ||
_LOGGER.info( | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM