Refactor Process for new paradigm

This commit is contained in:
Philipp
2021-10-24 20:43:59 +02:00
parent 0e2e488521
commit 38f70cc55a
14 changed files with 456 additions and 491 deletions

View File

@@ -196,7 +196,7 @@ while (true) {
$do_cron = true;
}
if ($do_cron || (!DI::process()->isMaxLoadReached() && Worker::entriesExists() && Worker::isReady())) {
if ($do_cron || (!DI::system()->isMaxLoadReached() && Worker::entriesExists() && Worker::isReady())) {
Worker::spawnWorker($do_cron);
} else {
Logger::info('Cool down for 5 seconds', ['pid' => $pid]);