-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
src/sagemaker/local/image.py
Outdated
|
||
def _pull_image(image): | ||
pull_image_command = ('docker pull %s' % image).strip() | ||
print('docker command: {}'.format(pull_image_command)) |
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.
Shouldn't this be done through the logger?
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.
We set the log level to warning, so it ends up not showing up in jupyter :(.
logger.setLevel(logging.WARNING) |
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.
that's what log level are for. why force user to see this info-level message if they don't want to?
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.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.