class CallQueuedHandler (View source)
protected Dispatcher | $dispatcher | The bus dispatcher implementation. | |
protected Container | $container | The container instance. |
void | __construct(Dispatcher $dispatcher, Container $container) Create a new handler instance. | |
void | call(Job $job, array $data) Handle the queued job. | |
mixed | dispatchThroughMiddleware(Job $job, mixed $command) Dispatch the given job / command through its specified middleware. | |
mixed | resolveHandler(Job $job, mixed $command) Resolve the handler for the given command. | |
mixed | setJobInstanceIfNecessary(Job $job, mixed $instance) Set the job instance of the given class if necessary. | |
void | ensureNextJobInChainIsDispatched(mixed $command) Ensure the next job in the chain is dispatched if applicable. | |
void | ensureSuccessfulBatchJobIsRecorded(mixed $command) Ensure the batch is notified of the successful job completion. | |
void | ensureUniqueJobLockIsReleased(mixed $command) Ensure the lock for a unique job is released. | |
void | handleModelNotFound(Job $job, Throwable $e) Handle a model not found exception. | |
void | failed(array $data, Throwable|null $e, string $uuid) Call the failed method on the job instance. | |
void | ensureFailedBatchJobIsRecorded(string $uuid, mixed $command, Throwable $e) Ensure the batch is notified of the failed job. | |
void | ensureChainCatchCallbacksAreInvoked(string $uuid, mixed $command, Throwable $e) Ensure the chained job catch callbacks are invoked. |
Create a new handler instance.
Handle the queued job.
Dispatch the given job / command through its specified middleware.
Resolve the handler for the given command.
Set the job instance of the given class if necessary.
Ensure the next job in the chain is dispatched if applicable.
Ensure the batch is notified of the successful job completion.
Ensure the lock for a unique job is released.
Call the failed method on the job instance.
The exception that caused the failure will be passed.
Ensure the batch is notified of the failed job.
Ensure the chained job catch callbacks are invoked.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/8.x/Illuminate/Queue/CallQueuedHandler.html