From fda18a18573507e613ff4ff919af15de5a51eedb Mon Sep 17 00:00:00 2001 From: HolgerHatGarKeineNode Date: Mon, 24 Nov 2025 00:44:53 +0100 Subject: [PATCH] =?UTF-8?q?=E2=8F=B1=EF=B8=8F=20Update=20queue=20and=20Hor?= =?UTF-8?q?izon=20configurations=20to=20use=202-minute=20intervals?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Adjusted `retry_after` in `queue.php` to `60 * 2`. - Updated various time-based settings in `horizon.php` (e.g., `waits`, `trim`, `timeout`) to use 2-minute intervals for consistency. --- config/horizon.php | 10 +++++----- config/queue.php | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config/horizon.php b/config/horizon.php index 1153f9d..e58cf7c 100644 --- a/config/horizon.php +++ b/config/horizon.php @@ -97,7 +97,7 @@ return [ */ 'waits' => [ - 'redis:default' => 60, + 'redis:default' => 60 * 2, // 2 minutes ], /* @@ -112,9 +112,9 @@ return [ */ 'trim' => [ - 'recent' => 60, - 'pending' => 60, - 'completed' => 60, + 'recent' => 60 * 2, // 2 minutes + 'pending' => 60 * 2, // 2 minutes + 'completed' => 60 * 2, // 2 minutes 'recent_failed' => 10080, 'failed' => 10080, 'monitored' => 10080, @@ -207,7 +207,7 @@ return [ 'maxJobs' => 0, 'memory' => 128, 'tries' => 1, - 'timeout' => 60, + 'timeout' => 60 * 2, // 2 minutes 'nice' => 0, ], ], diff --git a/config/queue.php b/config/queue.php index 116bd8d..41613f6 100644 --- a/config/queue.php +++ b/config/queue.php @@ -67,7 +67,7 @@ return [ 'driver' => 'redis', 'connection' => env('REDIS_QUEUE_CONNECTION', 'default'), 'queue' => env('REDIS_QUEUE', 'default'), - 'retry_after' => (int) env('REDIS_QUEUE_RETRY_AFTER', 90), + 'retry_after' => (int) env('REDIS_QUEUE_RETRY_AFTER', 60 * 2), 'block_for' => null, 'after_commit' => false, ],