-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Event Hubs] Allow users to configure retry options in send requests #2997
[Event Hubs] Allow users to configure retry options in send requests #2997
Conversation
…ure-sdk-for-js into update_sendRetry
@@ -581,8 +585,11 @@ export class EventHubSender extends LinkEntity { | |||
operation: sendEventPromise, | |||
connectionId: this._context.connectionId, | |||
operationType: RetryOperationType.sendMessage, | |||
times: Constants.defaultRetryAttempts, | |||
delayInSeconds: Constants.defaultDelayBetweenOperationRetriesInSeconds + jitterInSeconds | |||
times: options && options.retryAttempts ? options.retryAttempts : Constants.defaultRetryAttempts, |
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.
options && options.retryAttempts
is "falsy", if the provided value was 0.
Use the user provided value only if it is greater than 0.
Check with @bterlson if we want retryAttempts
as exposed to the user to mean the total number of attempts or the number of attempts after the first failure
Allow users to configure retry options in send requests as described in #2661 (comment) for send operations on
EventHubClient
.