Open
Description
Is your feature request related to a problem? Please describe.
I set the ActivityOptions including a non-nil RetryOptions configuration at the beginning of my workflow, these ActivityOptions are used by all activities in my workflow by default. I would like to override the RetryPolicy to nil for just one activity in that workflow without overriding the other ActivityOptions configurations.
Proposed Solution
If the existing WithRetryPolicy() function syntaxes were changed to accept a pointer receiver RetryPolicy as a parameter, than that function could be called with a nil parameter value to solve the above problem.
Current syntax:
func WithRetryPolicy(ctx Context, retryPolicy RetryPolicy) Context {
return internal.WithRetryPolicy(ctx, retryPolicy)
}
Suggested syntax:
func WithRetryPolicy(ctx Context, retryPolicy *RetryPolicy) Context {
return internal.WithRetryPolicy(ctx, retryPolicy)
}
Metadata
Metadata
Assignees
Labels
No labels