Some more improvements
This commit is contained in:
parent
9039e60a06
commit
70c08dee1d
3 changed files with 31 additions and 19 deletions
|
@ -42,17 +42,7 @@ function poller_run($argv, $argc) {
|
|||
|
||||
load_hooks();
|
||||
|
||||
// At first check the maximum load. We shouldn't continue with a high load
|
||||
if ($a->maxload_reached()) {
|
||||
logger('Pre check: maximum load reached, quitting.', LOGGER_DEBUG);
|
||||
return;
|
||||
}
|
||||
|
||||
// We now start the process. This is done after the load check since this could increase the load.
|
||||
$a->start_process();
|
||||
|
||||
$run_cron = (($argc <= 1) || ($argv[1] != "no_cron"));
|
||||
|
||||
Worker::processQueue($run_cron);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue