type
TaskHandler
Compiled typed durable-task handler.
Arguments
| Argument | Type | Description |
|---|---|---|
context | TaskContext | The leased attempt, cancellation context, identity, and LocalAPI. |
input | Input | Strictly decoded task input for this definition. |
Returns
Typed output, or a retryable/terminal error.
(Output, error)How it works
Handlers must honor cancellation and make external side effects idempotent because a process crash or lease expiry can cause another attempt.
Full signature
type TaskHandler[Input, Output any] func(
TaskContext,
Input,
) (Output, error)Related types
TaskContextRequest-scoped view of one leased durable-task attempt.