Skip to content
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 retries for 502 #803

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

fedordikarev
Copy link

Fix: #750

  • Retry only 5xx errors (502 for now) as dont need to retry bad login/passwords
  • Sleep 10s before attempts. It could be configurable, but shouldn't bit less than 10s.
  • Delay could be with exponential backoff, or just simple approach with no more than 3 attempts and constant 10s delay, IMO, should be enough for docker login

Signed-off-by: Fedor Dikarev <fedor.dikarev@gmail.com>
Signed-off-by: Fedor Dikarev <fedor.dikarev@gmail.com>
Signed-off-by: Fedor Dikarev <fedor.dikarev@gmail.com>
action.yml Outdated Show resolved Hide resolved
Signed-off-by: Fedor Dikarev <fedor.dikarev@gmail.com>
@fedordikarev
Copy link
Author

hi @crazy-max !

what do you think about these changes?

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.

Add retry
2 participants