-
Notifications
You must be signed in to change notification settings - Fork 143
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
Add retry
for pulling images in the podman
plugin
#2439
Conversation
1a3f4be
to
ca57aac
Compare
971ca1e
to
8acd645
Compare
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.
Thanks for implementing this. Looks nice! Added just a few naming suggestions.
retry
for pulling images in the podman
plugin
Please, update also the commit message according to recommendations. Thanks. |
3707a13
to
0b2688b
Compare
Adjusted commit message to align with recommendations. |
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.
Thanks for addressing all comments!
In case of failure to fetch podman images due to temporary network issues, retry function tries to overcome this by waiting a few seconds and trying again. Not limited to podman only, can be used anywhere.
0b2688b
to
6eba4f5
Compare
Not really sure about the type annotations in
pull_image
method inGuestContainer
class.I had to skip mypy hook to be able to commit, because I was getting this error:
error: Argument 3 to "Command" has incompatible type "Optional[str]"; expected "Union[str, Path]" [arg-type]
but all I did was move the code out of
start
method without modifying it.Fixes #2385
Pull Request Checklist