Wrap any job dispatcher with dispatch-time unique job suppression.
When a job has no unique declaration, dispatch passes through unchanged.
When it does, the wrapper validates the payload, resolves the unique key,
acquires the matching lease, and calls the underlying dispatcher only when
the lease is acquired. Successful dispatches intentionally keep the lease
until its TTL expires; failed dispatches release it so callers can retry.
Wrap any job dispatcher with dispatch-time unique job suppression.
When a job has no
uniquedeclaration, dispatch passes through unchanged. When it does, the wrapper validates the payload, resolves the unique key, acquires the matching lease, and calls the underlying dispatcher only when the lease is acquired. Successful dispatches intentionally keep the lease until its TTL expires; failed dispatches release it so callers can retry.