type
TaskContext
Request-scoped view of one leased durable-task attempt.
Properties
| Property | Type | Description |
|---|---|---|
Context | context.Context | Carries the attempt timeout, lease loss, and shutdown cancellation. |
ID | string | The durable task identity. |
Attempt | int | The current one-based execution attempt. |
Local | *LocalAPI | The same access, validation, hook, and transaction entry point used by HTTP and application code. |
How it works
Tasks do not receive a privileged content path.
Full signature
type TaskContext struct {
Context context.Context
ID string
Attempt int
Local *LocalAPI
// contains filtered or unexported fields
}