Hi,
I want to externalize the activity retry options, how can this be done. I want to override this to a much smaller values for the purpose of tests. There are multiple activities and retry options for all will be different.
How can I do this?
Hi,
I want to externalize the activity retry options, how can this be done. I want to override this to a much smaller values for the purpose of tests. There are multiple activities and retry options for all will be different.
How can I do this?
The best way to do this is, if your workflow needs to support different retry policies for different runs, the workflow input should accept options for customizing the retry policy. Unsure if this is a simple boolean or more specific options, up to you.
Alternatively, if you’re just trying to see what would happen in your workflow on activity failure, you can make fake/mock activities when testing that throw non-retryable exceptions that will disregard retry policy.
Thanks for the reply.
I was able to override the retry policy in test by setting much smaller values on WorkflowOptions.RetryPolicy.