Laravel Queue Process Timeout Error Solved

By Hardik Savani November 5, 2023 Category : Laravel

Hello,

This article will provide some of the most important example laravel queue timeout issue. step by step explain laravel queue process timeout error. you can understand a concept of laravel queue timeout 0. I would like to show you laravel queue timeout config.

By default queue process timeout is 60 seconds. but if you need more then that or you want to set maximum then how you can do it?. When i was working on my local AI project and it was taking too long to process with queue then i found laravel queue work timeout error. so i google it and found the better solution to solve timeout issue.

Laravel provides --timeout option with queue work commands where you can set number seconds and it you set 0 then it will never expire. so, let's see the solution command:

Laravel Queue with 120 Seconds Timeout:

php artisan queue:work --timeout=120

Laravel Queue with Timeout Best Solution:

php artisan queue:work --timeout=0

You can use this command php artisan queue:listen --timeout=0 like this way as well.

I hope it can help you...

Tags :
Shares