function
TaskRetries
Persist retry count, delay, maximum delay, and backoff policy.
Arguments
| Argument | Type | Description |
|---|---|---|
maxAttempts | int | The maxAttempts value. |
delay | time.Duration | The delay value. |
maxDelay | time.Duration | The maxDelay value. |
backoff | TaskBackoff | The backoff value. |
Returns
The declared result.
TaskOptionHow it works
Persisted policy prevents deployments from silently changing already-admitted work.
Full signature
func TaskRetries(
maxAttempts int,
delay,
maxDelay time.Duration,
backoff TaskBackoff,
) TaskOptionRelated types
TaskBackoffFixed, linear, or exponential durable retry schedule.
TaskOptionOne typed task policy option.