function
ValidateTaskFailure
Validate persisted failure and retry metadata.
Arguments
| Argument | Type | Description |
|---|---|---|
failure | TaskFailure | The stable code, bounded UTF-8 message, and optional bounded retry delay. |
Returns
Nil when valid or a bounded, actionable contract error.
errorHow it works
Custom TaskStore implementations should call this at their direct public boundary and still enforce the corresponding database invariants atomically.
Full signature
func ValidateTaskFailure(failure TaskFailure) errorRelated types
TaskFailureOne lease-fenced attempt failure and optional retry delay.