*/
public static function execute()
{
- $gservers = DBA::select("SELECT `url`, `created`, `last_failure`, `last_contact` FROM `gserver` ORDER BY rand()");
+ $gservers = DBA::p("SELECT `url`, `created`, `last_failure`, `last_contact` FROM `gserver` ORDER BY rand()");
if (!DBA::isResult($gservers)) {
return;
}
}
Logger::info('Update server status', ['server' => $gserver['url']]);
- Worker::add(PRIORITY_LOW, 'DiscoverPoCo', 'server', $gserver['url']);
+ Worker::add(PRIORITY_LOW, 'CheckServer', $gserver['url']);
if (++$updated > 250) {
return;