trait InteractsWithUniqueJobs (View source)

Methods

void
addUniqueJobInformationToContext(mixed $job)

Store unique job information in the context in case we can't resolve the job on the queue side.

void
removeUniqueJobInformationFromContext(mixed $job)

Remove the unique job information from the context.

string|null
getUniqueJobCacheStore(mixed $job)

Determine the cache store used by the unique job to acquire locks.

Details

void addUniqueJobInformationToContext(mixed $job)

Store unique job information in the context in case we can't resolve the job on the queue side.

Parameters

mixed $job

Return Value

void

void removeUniqueJobInformationFromContext(mixed $job)

Remove the unique job information from the context.

Parameters

mixed $job

Return Value

void

protected string|null getUniqueJobCacheStore(mixed $job)

Determine the cache store used by the unique job to acquire locks.

Parameters

mixed $job

Return Value

string|null

Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.