From f458d8289fae981f91fa0997cdce5ca700fcfb9a Mon Sep 17 00:00:00 2001 From: Trang Date: Sun, 26 Jun 2022 19:35:23 +0200 Subject: [PATCH] Increase Queue maxworkers to 2 When we start running a worker, it actually takes one or two seconds for the worker to effectively start. Because of this, when we try to run the next worker, the previous worker is still working and we cannot run the new one. To prevent this, we need to allow an additional worker to run, just to transition between the old and new worker. --- config/app_queue.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/app_queue.php b/config/app_queue.php index 4e76e21db4..6c49a5f1b8 100644 --- a/config/app_queue.php +++ b/config/app_queue.php @@ -23,7 +23,7 @@ 'multiserver' => false, // set this to a limit that can work with your memory limits and alike, 0 => no limit - 'maxworkers' => 1, + 'maxworkers' => 2, // instruct a Workerprocess quit when there are no more tasks for it to execute (true = exit, false = keep running) 'exitwhennothingtodo' => false,