Skip to content

add explicit pull for local serve #455

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 13 commits into from
Nov 20, 2018
Merged

add explicit pull for local serve #455

merged 13 commits into from
Nov 20, 2018

Conversation

ChoiByungWook
Copy link
Contributor

@ChoiByungWook ChoiByungWook commented Nov 2, 2018

Explicit pull for ECR image, as serve can potentially timeout due to ping.

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.

@codecov-io
Copy link

codecov-io commented Nov 2, 2018

Codecov Report

Merging #455 into master will decrease coverage by 0.03%.
The diff coverage is 83.33%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #455      +/-   ##
==========================================
- Coverage   94.16%   94.13%   -0.04%     
==========================================
  Files          59       59              
  Lines        4613     4621       +8     
==========================================
+ Hits         4344     4350       +6     
- Misses        269      271       +2
Impacted Files Coverage Δ
src/sagemaker/local/image.py 87.76% <83.33%> (-0.33%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update beece5a...a2226b9. Read the comment docs.


def _pull_image(image):
pull_image_command = ('docker pull %s' % image).strip()
print('docker command: {}'.format(pull_image_command))
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be done through the logger?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We set the log level to warning, so it ends up not showing up in jupyter :(.

logger.setLevel(logging.WARNING)

Copy link
Contributor

Choose a reason for hiding this comment

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

that's what log level are for. why force user to see this info-level message if they don't want to?

apacker pushed a commit to apacker/sagemaker-python-sdk that referenced this pull request Nov 15, 2018
jesterhazy
jesterhazy previously approved these changes Nov 19, 2018
@jesterhazy jesterhazy merged commit 53bf53a into aws:master Nov 20, 2018
@ChoiByungWook ChoiByungWook deleted the local_pull branch December 1, 2020 20:15
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.

4 participants