Skip to content

Job

A unit of background work.

Instantiated fresh per attempt via Container::make() — the same fresh-per-call autowiring actions/views already get — so constructor-injected services autowire normally and only the job’s own arguments need to travel through the queue as JobPayload::$params.

interface Job

Implemented byRetryableJob
SourceJob.php
MethodDescription
handle(): voidPerforms the job’s work.

abstract public function handle(): void

Performs the job’s work.

Called once per attempt on a freshly built instance. Throwing signals failure: JobExecutor retries the job up to queue.retry.max_attempts and then records it with the configured FailedJobStoreInterface. Returning normally marks the attempt successful.