Support the ongoing development of Laravel.io →
Queues
Last updated 3 months ago.
0

About your first question

I'm not sure actually, I suppose the job will fail and it will be retried after the retry_after timeout

About your second question

Laravel Horizon provides a way to gracefully terminate the worker processes

See https://laravel.com/docs/6.x/horizon

php artisan horizon:terminate will wait until your current jobs are processed and wont pick new ones after they are processed.

What you can probably with horizon is to minimize the retry_after configuration for a specific queue only, so if jobs fails in this queue it will be available as soon as possible for other workers.

Probably, I can't imagine the whole picture though, but I hope that helps a little

Last updated 2 years ago.
0

Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2022 Laravel.io - All rights reserved.