function
TaskRetries
Configure total attempts and deterministic retry delay.
Arguments
| Argument | Type | Description |
|---|---|---|
maxAttempts | int | Total attempts including the first. |
delay | time.Duration | Base retry delay. |
maxDelay | time.Duration | Cap for linear or exponential growth. |
backoff | TaskBackoff | Fixed, linear, or exponential schedule. |
Returns
An immutable task policy option.
TaskOptionFull signature
func TaskRetries(
maxAttempts int,
delay,
maxDelay time.Duration,
backoff TaskBackoff,
) TaskOptionRelated types
TaskBackoffDeterministic durable-task retry schedule.
TaskOptionOpaque policy applied by NewTask.