]> git.mxchange.org Git - friendica.git/commitdiff
Added config value
authorMichael Vogel <icarus@dabo.de>
Sun, 11 Aug 2019 21:07:06 +0000 (23:07 +0200)
committerMichael Vogel <icarus@dabo.de>
Sun, 11 Aug 2019 21:07:06 +0000 (23:07 +0200)
src/Core/Worker.php
static/defaults.config.php

index 808be79a49ac58c42d8d45799a60c03de867d57e..ffca31ddfd9c03035ece782b2e7ba976ddee656f 100644 (file)
@@ -1234,7 +1234,8 @@ class Worker
                $id = $queue['id'];
                $priority = $queue['priority'];
 
-               $max_level = 15;
+               $max_level = Config::get('system', 'worker_defer_limit');
+
                $new_retrial = self::getNextRetrial($queue, $max_level);
 
                if ($new_retrial > $max_level) {
index b4471af25caf81b1bf437dbf31637bafd83f1fe8..dcda564c2a14d1a33f1a7f1489905e5f4c96641b 100644 (file)
@@ -427,6 +427,10 @@ return [
                // Setting 0 would allow maximum worker queues at all times, which is not recommended.
                'worker_load_exponent' => 3,
 
+               // worker_defer_limit (Integer)
+               // Per default the systems tries delivering for 15 times before dropping it.
+               'worker_defer_limit' => 15,
+
                // xrd_timeout (Integer)
                // Timeout in seconds for fetching the XRD links.
                'xrd_timeout' => 20,