Skip to content

Retry when docker push fails#662

Merged
simon-mo merged 3 commits intoucbrise:developfrom
withsmilo:retry_when_pushing_docker
Mar 30, 2019
Merged

Retry when docker push fails#662
simon-mo merged 3 commits intoucbrise:developfrom
withsmilo:retry_when_pushing_docker

Conversation

@withsmilo
Copy link
Collaborator

@withsmilo withsmilo self-assigned this Mar 28, 2019
@simon-mo
Copy link
Contributor

This looks great. We have several cases of sleep and retry in clipper_admin, do you want to refactor them as well in this PR?

@withsmilo
Copy link
Collaborator Author

@simon-mo
Yep, I will try to refactor these codes.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1857/
Test PASSed.

raise e

# Wait for maximum 5 min.
@retry(RequestException, tries=300, delay=1, backoff=1, logger=self.logger)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@simon-mo
Is this value suitable?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes. 5min is reasonable. We might want to increase the interval later if it prints too much intonations to the console. However, current interval looks good enough.

@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1859/
Test PASSed.

@withsmilo withsmilo requested a review from simon-mo March 28, 2019 20:40
@AmplabJenkins
Copy link

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Clipper-PRB/1864/
Test PASSed.

@simon-mo simon-mo merged commit 64fac82 into ucbrise:develop Mar 30, 2019
@withsmilo withsmilo mentioned this pull request Mar 31, 2019
@withsmilo withsmilo deleted the retry_when_pushing_docker branch March 31, 2019 14:55
rkooo567 pushed a commit to rkooo567/clipper that referenced this pull request Apr 27, 2019
* Retry when docker push fails

* I imported a Retry decorator from https://www.saltycrane.com/blog/2009/11/trying-out-retry-decorator-python.

* Apply new Retry decorator to start_clipper()
rkooo567 pushed a commit to rkooo567/clipper that referenced this pull request Apr 28, 2019
* Retry when docker push fails

* I imported a Retry decorator from https://www.saltycrane.com/blog/2009/11/trying-out-retry-decorator-python.

* Apply new Retry decorator to start_clipper()
rkooo567 pushed a commit to rkooo567/clipper that referenced this pull request Apr 28, 2019
* Retry when docker push fails

* I imported a Retry decorator from https://www.saltycrane.com/blog/2009/11/trying-out-retry-decorator-python.

* Apply new Retry decorator to start_clipper()
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