function

TaskRetries

Persist retry count, delay, maximum delay, and backoff policy.

Arguments

ArgumentTypeDescription
maxAttemptsintThe maxAttempts value.
delaytime.DurationThe delay value.
maxDelaytime.DurationThe maxDelay value.
backoffTaskBackoffThe backoff value.

Returns

The declared result.

TaskOption

How it works

Persisted policy prevents deployments from silently changing already-admitted work.

Full signature

func TaskRetries( maxAttempts int, delay, maxDelay time.Duration, backoff TaskBackoff, ) TaskOption

Source ridu.go:269

Related types