From 0f88427dd58776706525dc8075664eaac0e6393e Mon Sep 17 00:00:00 2001 From: philipp lang Date: Mon, 7 Aug 2023 19:53:48 +0200 Subject: [PATCH] Add config for horizon workers --- config/horizon.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/config/horizon.php b/config/horizon.php index 08e46057..f8bc28f6 100644 --- a/config/horizon.php +++ b/config/horizon.php @@ -176,14 +176,14 @@ return [ 'connection' => 'redis', 'queue' => ['default'], 'balance' => 'simple', - 'processes' => 10, + 'processes' => env('WORKERS', 10), 'tries' => 1, ], 'supervisor-long-running' => [ 'connection' => 'redis', 'queue' => ['long'], 'balance' => 'simple', - 'processes' => 10, + 'processes' => env('WORKERS', 10), 'tries' => 1, 'timeout' => 43200, // 12 hours ], @@ -201,14 +201,14 @@ return [ 'connection' => 'redis', 'queue' => ['default'], 'balance' => 'simple', - 'processes' => 10, + 'processes' => env('WORKERS', 10), 'tries' => 1, ], 'supervisor-long-running' => [ 'connection' => 'redis', 'queue' => ['long'], 'balance' => 'simple', - 'processes' => 10, + 'processes' => env('WORKERS', 10), 'tries' => 1, 'timeout' => 43200, // 12 hours ],