type
TaskFailure
One lease-fenced attempt failure and optional retry delay.
Properties
| Property | Type | Description |
|---|---|---|
ID | string | The ID value. |
LeaseToken | string | The LeaseToken value. |
Code | string | The Code value. |
Message | string | The Message value. |
RetryAfter | *time.Duration | RetryAfter is relative to the store's authoritative clock. Nil makes the failure terminal; a non-nil duration returns the task to the queue. |
How it works
Nil RetryAfter is terminal; non-nil returns the task to the queue using the store clock.
Full signature
type TaskFailure struct {
ID string
LeaseToken string
Code string
Message string
// RetryAfter is relative to the store's authoritative clock. Nil makes the
// failure terminal; a non-nil duration returns the task to the queue.
RetryAfter *time.Duration
}