type
TaskContext
type TaskContext struct {
Context context.Context
ID string
Attempt int
Local *LocalAPI
actor *store.Document
}Request-scoped view of one leased durable-task attempt.
Contextcontext.Context- Carries the attempt timeout, lease loss, and shutdown cancellation.
IDstring- The durable task identity.
Attemptint- The current one-based execution attempt.
Local*LocalAPI- The same access, validation, hook, and transaction entry point used by HTTP and application code.
Tasks do not receive a privileged content path.