Skip to content

Override maxAttempts at operation level #3843

Answered by RanVaknin
DeepaAh asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @DeepaAh,

The JS SDK does not let you supply an operation level configuration. Only client level. The right way to do it would be to initialize a client with your desired maxAttempts and call your operation from there. And then use a different client for the default maxAttempts.

I'm not sure about all the other SDKs, but the GO SDK lets you do that by supplying a callback function as an argument on the operation function call, where you can provide your own custom Retryer implementation. That behavior is not supported in the JS SDK.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by RanVaknin
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants