type

TaskResult

Typed task status, attempts, failure, timestamps, and optional output.

Properties

PropertyTypeDescription
IDstringThe durable task identity.
SlugstringThe registered task definition slug.
QueuestringThe selected worker queue.
Statestore.TaskStateThe current durable lifecycle state.
AttemptsintThe number of attempts already started.
MaxAttemptsintThe maximum number of attempts captured at admission.
LastErrorCodestringThe stable last failure category.
LastErrorstringThe bounded last handler failure message. Handlers must not return secrets in errors.
CreatedAttime.TimeWhen the task was admitted.
UpdatedAttime.TimeWhen the durable record last changed.
CompletedAt*time.TimeWhen the task reached a terminal state.
OutputOutputStrictly decoded typed output after success.
HasOutputboolDistinguishes valid zero/null output from a task that has not succeeded.

Full signature