type
TaskFailure
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
}One lease-fenced attempt failure and optional retry delay.
IDstring- The ID value.
LeaseTokenstring- The LeaseToken value.
Codestring- The Code value.
Messagestring- 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.
Nil RetryAfter is terminal; non-nil returns the task to the queue using the store clock.