type

TaskResult

type TaskResult[Output any] struct { ID string Slug string Queue string State store.TaskState Attempts int MaxAttempts int LastErrorCode string LastError string CreatedAt time.Time UpdatedAt time.Time CompletedAt *time.Time Output Output HasOutput bool }

Typed local status view for one durable task.

Source core/task.go:236

IDstring
The durable task identity.
Slugstring
The registered task definition slug.
Queuestring
The selected worker queue.
Statestore.TaskState
The current durable lifecycle state.
Attemptsint
The number of attempts already started.
MaxAttemptsint
The maximum number of attempts captured at admission.
LastErrorCodestring
The stable last failure category.
LastErrorstring
The bounded last handler failure message. Handlers must not return secrets in errors.
CreatedAttime.Time
When the task was admitted.
UpdatedAttime.Time
When the durable record last changed.
CompletedAt*time.Time
When the task reached a terminal state.
OutputOutput
Strictly decoded typed output after success.
HasOutputbool
Distinguishes valid zero/null output from a task that has not succeeded.