type

TaskFailure

One lease-fenced attempt failure and optional retry delay.

Properties

PropertyTypeDescription
IDstringThe ID value.
LeaseTokenstringThe LeaseToken value.
CodestringThe Code value.
MessagestringThe Message value.
RetryAfter*time.DurationRetryAfter 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 }

Source store/store.go:899