From 2fe575820fb95cdbf503bf2741e3fcbe899f5f5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20LEUILLIOT?= Date: Fri, 5 Mar 2021 19:26:20 +0100 Subject: [PATCH] fix(jobs): increase retry delay to be greater than timeout > The --timeout value should always be at least several seconds shorter than your retry_after configuration value. This will ensure that a worker processing a given job is always killed before the job is retried. If your --timeout option is longer than your retry_after configuration value, your jobs may be processed twice. https://laravel.com/docs/6.x/queues#job-expirations-and-timeouts --- config/queue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/queue.php b/config/queue.php index 928648d..6007b86 100644 --- a/config/queue.php +++ b/config/queue.php @@ -62,7 +62,7 @@ 'driver' => 'redis', 'connection' => 'default', 'queue' => env('REDIS_QUEUE', 'default'), - 'retry_after' => 90, + 'retry_after' => 960, // 16 minutes (must be greater than timeout) 'block_for' => null, ],