X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Fworker.php;h=46638a9ef3ad3b3a3bbe30d40ab9221e0a51c982;hb=a19a7dc2a0c0a22fd306e162383ef7117c1baca2;hp=833e5b00207ef06b84026611f8ce602dfba0de9c;hpb=06632536f3a93dbe33cdc2aa67d9daad191ac696;p=friendica.git diff --git a/bin/worker.php b/bin/worker.php index 833e5b0020..46638a9ef3 100755 --- a/bin/worker.php +++ b/bin/worker.php @@ -1,7 +1,7 @@ #!/usr/bin/env php addRule(LoggerInterface::class,['constructParams' => ['worker']]) DI::init($dice); $a = DI::app(); +DI::mode()->setExecutor(Mode::WORKER); + // Check the database structure and possibly fixes it Update::check($a->getBasePath(), true, DI::mode()); @@ -81,4 +84,4 @@ Worker::processQueue($run_cron); Worker::unclaimProcess(); -Worker::endProcess(); +DI::process()->end();