Answer the question
In order to leave comments, you need to log in
Laravel queue timeout problem, how to fix?
There is a job class, it has
public $timeout = 172800;
have supervisor config
artisan queue:work database --queue=blah --tries=1
Runs, starts running, then timeout error
Illuminate\Queue\MaxAttemptsExceededException: App\Jobs\Blah has been attempted too many times or run too long. The job may have previously timed out. in /var/www/html/api/vendor/laravel/framework/src/Illuminate/Queue/Worker.php:401
...
public function handle()
{
ini_set('max_execution_time', 172800);
}
...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question