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.
Synopsis
Section titled “Synopsis”interface Job
| Implemented by | RetryableJob |
| Source | Job.php |
Methods
Section titled “Methods”| Method | Description |
|---|---|
handle(): void | Performs the job’s work. |
handle()
Section titled “handle()”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.