function

ValidateTaskAdmission

Validate a complete durable task before admission.

Arguments

ArgumentTypeDescription
taskTaskThe record whose slug, queue, payload, policy, references, and timestamps must be bounded.

Returns

Nil when valid or a bounded, actionable contract error.

error

How it works

Custom TaskStore implementations should call this at their direct public boundary and still enforce the corresponding database invariants atomically.

Full signature

Related types

  • Task

    Adapter-neutral durable task data.