function

ValidateTaskAdmission

func ValidateTaskAdmission(task Task) error

Validate a complete durable task before admission.

Source store/task_validation.go:30

@param task
The record whose slug, queue, payload, policy, references, and timestamps must be bounded.
@returns
Nil when valid or a bounded, actionable contract error.

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

Related types

  • Task

    Adapter-neutral durable task data.