X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=bin%2Fworker.php;h=52400a045a4e4b9d57051edbed9c6289ece7e412;hb=686bf6b32f32852a24286f053feb1c293361e3b6;hp=833e5b00207ef06b84026611f8ce602dfba0de9c;hpb=cc5e5be931bc21e44d0cb26778e8cc15be924e41;p=friendica.git diff --git a/bin/worker.php b/bin/worker.php index 833e5b0020..52400a045a 100755 --- a/bin/worker.php +++ b/bin/worker.php @@ -28,6 +28,7 @@ if (php_sapi_name() !== 'cli') { use Dice\Dice; use Friendica\App; +use Friendica\App\Mode; use Friendica\Core\Update; use Friendica\Core\Worker; use Friendica\DI; @@ -58,6 +59,8 @@ $dice = $dice->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();