function
ValidateTaskClaim
Validate one worker lease request.
Arguments
| Argument | Type | Description |
|---|---|---|
request | TaskClaim | The batch bound, lease duration, queue filters, and slug filters. |
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 ValidateTaskClaim(request TaskClaim) errorRelated types
TaskClaimA bounded SKIP LOCKED claim filter and lease.