function

ValidateTaskFailure

Validate persisted failure and retry metadata.

Arguments

ArgumentTypeDescription
failureTaskFailureThe stable code, bounded UTF-8 message, and optional bounded retry delay.

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

  • TaskFailure

    One lease-fenced attempt failure and optional retry delay.