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, ],