type
TaskHandler
A compiled typed durable task function.
Properties
| Property | 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] = core.TaskHandler[Input, Output]