type
Task
type Task struct {
ID string
Slug string
Queue string
ConcurrencyKey string
Input json.RawMessage
Output json.RawMessage
State TaskState
RunAt time.Time
Attempts int
MaxAttempts int
RetryDelay time.Duration
MaxRetryDelay time.Duration
Backoff TaskBackoff
Timeout time.Duration
Retention time.Duration
LeaseToken string
LeaseExpiresAt *time.Time
Target *DocumentReference
RequestedBy *DocumentReference
LastErrorCode string
LastError string
CreatedAt time.Time
UpdatedAt time.Time
CompletedAt *time.Time
RetainUntil *time.Time
}Adapter-neutral durable task data.
IDstring- The ID value.
Slugstring- The Slug value.
Queuestring- The Queue value.
ConcurrencyKeystring- The ConcurrencyKey value.
Inputjson.RawMessage- The Input value.
Outputjson.RawMessage- The Output value.
StateTaskState- The State value.
RunAttime.Time- The RunAt value.
Attemptsint- The Attempts value.
MaxAttemptsint- The MaxAttempts value.
RetryDelaytime.Duration- The RetryDelay value.
MaxRetryDelaytime.Duration- The MaxRetryDelay value.
BackoffTaskBackoff- The Backoff value.
Timeouttime.Duration- The Timeout value.
Retentiontime.Duration- The Retention value.
LeaseTokenstring- The LeaseToken value.
LeaseExpiresAt*time.Time- The LeaseExpiresAt value.
Target*DocumentReference- The Target value.
RequestedBy*DocumentReference- The RequestedBy value.
LastErrorCodestring- The LastErrorCode value.
LastErrorstring- The LastError value.
CreatedAttime.Time- The CreatedAt value.
UpdatedAttime.Time- The UpdatedAt value.
CompletedAt*time.Time- The CompletedAt value.
RetainUntil*time.Time- The RetainUntil value.
Input/output are data only. Executable typed handlers are compiled into the application and selected from the validated registry by Slug.