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

Fixed ActivityOptions.RetryPolicy documentation #253

Merged
merged 6 commits into from
Oct 29, 2020

Conversation

mfateev
Copy link
Member

@mfateev mfateev commented Sep 22, 2020

Reflect that Temporal provides a default retry policy for activities.

// See more details about RetryPolicy on the doc for RetryPolicy.
// Optional: default is a server side provided retry policy. The default server side policy
// (which can be overridden by the dynamic config) is InitialInterval of 1 second, BackoffCoefficient of 2.0
// and MaximumInterval of 100 times InitialInterval. To disable retries set MaximumAttempts to 1.
Copy link
Contributor

@flossypurse flossypurse Sep 23, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider:

// RetryPolicy specifies how to retry an Activity if an error occurs.
// More details are available at docs.temporal.io.
// RetryPolicy is optional. If one is not specified a default RetryPolicy is provided by the server.
// The default RetryPolicy provided by the server specifies:
// - InitialInterval of 1 second
// - BackoffCoefficient of 2.0
// - MaximumInterval of 100 x InitialInterval
// - MaximumAttempts of 0
// To disable retries set MaximumAttempts to 1.
// The default RetryPolicy provided by the server can be overridden by the dynamic config.

@alexshtin alexshtin changed the title Fixed ActivityOptions.RetryPolicy documentation. Fixed ActivityOptions.RetryPolicy documentation Sep 25, 2020
@mfateev mfateev merged commit 8a9f358 into temporalio:master Oct 29, 2020
muralisrini pushed a commit to muralisrini/sdk-go that referenced this pull request Feb 4, 2024
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.

3 participants