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

feat: support enhanced retry settings #35

Merged
merged 4 commits into from Jun 24, 2021
Merged

Conversation

stephenplusplus
Copy link
Contributor

@stephenplusplus stephenplusplus commented Jun 23, 2021

RE: googleapis/nodejs-common#674

This adds 3 additional configuration settings:

  • maxRetryDelay, default: 64
  • retryDelayMultiplier, default: 2
  • totalTimeout, default: 600

cc @shaffeeullah

@shaffeeullah
Copy link

This looks great!! Thanks, @stephenplusplus !!!

@stephenplusplus stephenplusplus merged commit 0184676 into master Jun 24, 2021
@stephenplusplus stephenplusplus deleted the spp--retry-options branch June 24, 2021 20:38
@stephenplusplus
Copy link
Contributor Author

Woo, thanks! I have merged and released under 4.2.0.

@shaffeeullah
Copy link

@stephenplusplus I am unable to access these new fields after upgrading to 4.2.0. Does https://github.com/stephenplusplus/retry-request/blob/master/index.d.ts need to be updated? It does not contain the new parameters. Can you please regenerate it?

@stephenplusplus
Copy link
Contributor Author

Fixed in 4.2.1. Good catch!

@shaffeeullah
Copy link

Thanks @stephenplusplus !!

gcf-merge-on-green bot pushed a commit that referenced this pull request Apr 11, 2022
🤖 I have created a release *beep* *boop*
---


## [4.2.0](v4.1.0...v4.2.0) (2022-04-06)


### Features

* support enhanced retry settings ([#35](#35)) ([0184676](0184676))


### Bug Fixes

* add new retry options to types ([#36](#36)) ([3f10798](3f10798))
* correctly calculate retry attempt ([#33](#33)) ([4c852e2](4c852e2))
* use extend instead of object.assign ([#37](#37)) ([8c8dcdd](8c8dcdd))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
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.

None yet

2 participants