Skip to content

Add timestamp to secondary status for traning job logs #427

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

Merged
merged 2 commits into from
Oct 12, 2018

Conversation

icywang86rui
Copy link
Contributor

@icywang86rui icywang86rui commented Oct 12, 2018

*Issue #, if available

Description of changes:

After this change the output of training job looks like this:

INFO:sagemaker:Creating training-job with name: sagemaker-mxnet-2018-10-11-22-39-27-822
2018-10-11 22:39:29 Starting - Starting the training job...
2018-10-11 22:39:29 Starting - Launching requested ML instances......
2018-10-11 22:40:30 Starting - Preparing the instances for training......
2018-10-11 22:41:53 Downloading - Downloading input data..

Merge Checklist

Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.

  • I have read the CONTRIBUTING doc
  • I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • I have updated the changelog with a description of my changes (if appropriate)
  • I have updated any necessary documentation (if appropriate)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@icywang86rui icywang86rui requested a review from laurenyu October 12, 2018 17:46
laurenyu
laurenyu previously approved these changes Oct 12, 2018
status_strs.append('{} {} - {}'.format(time_str, transition['Status'], message))

return '\n'.join(status_strs)
transitions_to_print = current_transitions[-1:] if len(current_transitions) == prev_transitions_num else \
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you replace this \ ?

it probably makes sense to split this and add a comment on what the intended state on each branch is? its not very obvious.
https://github.com/google/styleguide/blob/gh-pages/pyguide.md#32-line-length

@icywang86rui icywang86rui merged commit eea56fc into aws:master Oct 12, 2018
pdasamzn pushed a commit to pdasamzn/sagemaker-python-sdk that referenced this pull request Nov 1, 2018
* Add timestamp to secondary status for training job output

* Modify changelog
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.

3 participants