From 69daaa61ba1d1a6502835e9b1356b14c1fdc1cf5 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 13 Sep 2015 08:08:13 +0200 Subject: [PATCH] With the new queue we don't need "delivery_batch_count" anymore --- include/notifier.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/notifier.php b/include/notifier.php index 593933b326..d4d254f1c9 100644 --- a/include/notifier.php +++ b/include/notifier.php @@ -638,7 +638,7 @@ function notifier_run(&$argv, &$argc){ // This controls the number of deliveries to execute with each separate delivery process. // By default we'll perform one delivery per process. Assuming a hostile shared hosting - // provider, this provides the greatest chance of deliveries if processes start getting + // provider, this provides the greatest chance of deliveries if processes start getting // killed. We can also space them out with the delivery_interval to also help avoid them // getting whacked. @@ -646,8 +646,10 @@ function notifier_run(&$argv, &$argc){ // together into a single process. This will reduce the overall number of processes // spawned for each delivery, but they will run longer. + // When using the workerqueue, we don't need this functionality. + $deliveries_per_process = intval(get_config('system','delivery_batch_count')); - if($deliveries_per_process <= 0) + if (($deliveries_per_process <= 0) OR get_config("system", "worker")) $deliveries_per_process = 1; $this_batch = array(); -- 2.39.5