return;
}
- if (App::maxload_reached()) {
+ if ($a->maxload_reached()) {
return;
}
// The processlist only shows entries of the current user
if ($max != 0) {
$r = q("SHOW PROCESSLIST");
- if (!$r)
+ if (!dbm::is_result($r))
return false;
$used = count($r);
function poller_run_cron() {
logger('Add cron entries', LOGGER_DEBUG);
+ // Check for spooled items
+ proc_run(PRIORITY_HIGH, "include/spool_post.php");
+
// Run the cron job that calls all other jobs
proc_run(PRIORITY_MEDIUM, "include/cron.php");