-
Notifications
You must be signed in to change notification settings - Fork 54
Support client retries #227
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
anyone wants to look at this ? |
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.
lgtm - minor nits.
@moritzraho is there a missing commit with the recent changes? |
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.
LGTM. Thanks for the added tests 🎉
Yeah haha 😅 |
thanks for the review @rabbah |
It looks like there were some changes on how travis reports build statuses: travis-ci/travis-ci#10204.
|
We can't change things through the GitHub UI, but can configure via .asf.yaml. I believe it is already set correctly (https://github.com/apache/openwhisk-client-js/blob/master/.asf.yaml#L30-L38). |
Maybe it's an issue in travis, anyone has access to verify ? |
I noticed in travis.yml we are requesting a node10 environment, which is long out of support. I'm trying to drop that in #228 and see if that helps. |
Travis is triggering now, but there's a failure. Wild guessing, I would speculate that the PR added some additional dependencies and we failed the size check.
|
@dgrove-oss is travis triggered manually ? |
Do we have an idea of when this would be released? @rabbah @dgrove-oss @selfxp |
I'm not on the PMC, @tysonnorris will help release this tomorrow morning |
This PR adds support for retries in the client using the async-retry package. Like now, the default is no retries.
Retries are performed on http errors and all 4xx and 5xx error codes. This can be re-discussed, e.g. retries on 4xx might not be wanted.
Default values might be set differently too: https://github.com/apache/openwhisk-client-js/pull/227/files#diff-ca407d959d33ce92a7f7efee354a5ea5e6e61fcd797d32c04205e429a074ed54R160
This has been tested via unit tests and manually.
Api doc and README have been updated too.