Fix to OStatus delivery to be not so blocking to other tasks

This commit is contained in:
Michael 2018-05-17 22:17:03 +00:00
parent ac67f3c154
commit 5a1e1c1ec9
5 changed files with 52 additions and 39 deletions

View file

@ -34,7 +34,7 @@ class Queue
logger('filling queue jobs - start');
// Handling the pubsubhubbub requests
Worker::add(['priority' => PRIORITY_HIGH, 'dont_fork' => true], 'PubSubPublish');
Worker::add(['priority' => PRIORITY_LOW, 'dont_fork' => true], 'PubSubPublish');
$r = dba::inArray(dba::p("SELECT `id` FROM `queue` WHERE `next` < UTC_TIMESTAMP() ORDER BY `batch`, `cid`"));