type
TaskResult
type TaskResult[Output any] = core.TaskResult[Output]Typed task status, attempts, failure, timestamps, and optional output.
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.