Category: Laravel

The retryAfter() method and the retryAfter property of queued jobs, mailers, notifications, and listeners has been renamed to backoff.

You should also know that you can now pass an array to the backoff property to instruct the worker to implement an exponential backoff: Or return an array from the backoff() method: Using an exponential backoff here, we instructed the worker to delay retrying the job 30 seconds after the first failure, then 60 seconds for each failure after that.

In Laravel 8, you can instruct workers to exit after processing a certain number of jobs or after running for a specific number of seconds: You can now add a --name option to the queue:work command: This feature was mainly added to allow people to customize how the worker picks which queue to process jobs from at runtime: Laravel's job batching allows you to dispatch a number of jobs to be processed in parallel by your workers. You can perform an action after all jobs in the batch are processed or if any of the batch jobs fail: You can find more information on Job Batching in the official documentation. You can now dispatch a chain of jobs using the Bus facade: You can also add a catch() callback that'll be invoked if any of the jobs in the chain fails: Two new configuration options were added to Horizon; balanceMaxShift and balanceCooldown.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners