Fixed count, added to-do

This commit is contained in:
Michael Vogel 2019-08-28 06:44:37 +02:00
parent 9b7432781b
commit cf170c9c02
2 changed files with 2 additions and 1 deletions

View File

@ -671,7 +671,7 @@ class Worker
$waiting_processes = 0;
// Now adding all processes with workerqueue entries
$stamp = (float)microtime(true);
$jobs = DBA::p("SELECT COUNT(*) AS `entries`, `priority` FROM `workerqueue` WHERE NOT `done` AND `next_try` < ? GROUP BY `priority`", DateTimeFormat::utcNow());
$jobs = DBA::p("SELECT COUNT(*) AS `entries`, `priority` FROM `workerqueue` WHERE NOT `done` GROUP BY `priority`");
self::$db_duration += (microtime(true) - $stamp);
self::$db_duration_stat += (microtime(true) - $stamp);
while ($entry = DBA::fetch($jobs)) {

View File

@ -1592,6 +1592,7 @@ class Contact extends BaseObject
return true;
}
/// @todo Add tests for Diaspora endpoints as well
return false;
}