]> git.mxchange.org Git - friendica.git/blobdiff - bin/worker.php
Some more debug output
[friendica.git] / bin / worker.php
index 833e5b00207ef06b84026611f8ce602dfba0de9c..52400a045a4e4b9d57051edbed9c6289ece7e412 100755 (executable)
@@ -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();