X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Fworker.php;h=46638a9ef3ad3b3a3bbe30d40ab9221e0a51c982;hb=8357a70c4bc7a104373be2ddde6e8d918ea5721b;hp=1b70a2095544a2d26b15160b230ddb9f733c4f21;hpb=01640a7045e146759bc936dd499ac27738b78940;p=friendica.git diff --git a/bin/worker.php b/bin/worker.php index 1b70a20955..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()); @@ -76,4 +84,4 @@ Worker::processQueue($run_cron); Worker::unclaimProcess(); -Worker::endProcess(); +DI::process()->end();