function

ValidateTaskFailure

func ValidateTaskFailure(failure TaskFailure) error

Validate persisted failure and retry metadata.

Source store/task_validation.go:158

@param failure
The stable code, bounded UTF-8 message, and optional bounded retry delay.
@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

  • TaskFailure

    One lease-fenced attempt failure and optional retry delay.