From 740440cbb7c75f26a58b045d458b0539f9d1a8d8 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Tue, 12 Nov 2019 17:57:22 -0600 Subject: [PATCH] set default 'tries' to 1 trying a Job more than 1 time can have unintended side effects, and for the less experienced developer, defaulting to 3 tries could cause problems. my opinion would be that we default to 1 try, and allow the developer who understands the considerations for running a Job multiple times to increase this if they like. --- config/horizon.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/horizon.php b/config/horizon.php index c63a9a3f..b9803a88 100644 --- a/config/horizon.php +++ b/config/horizon.php @@ -146,7 +146,7 @@ 'queue' => ['default'], 'balance' => 'simple', 'processes' => 10, - 'tries' => 3, + 'tries' => 1, ], ], @@ -156,7 +156,7 @@ 'queue' => ['default'], 'balance' => 'simple', 'processes' => 3, - 'tries' => 3, + 'tries' => 1, ], ], ],