mirror of
https://github.com/friendica/friendica
synced 2025-04-19 09:10:12 +00:00
Rewrite Process Model/Core
This commit is contained in:
parent
fe545cef74
commit
cdb61be06f
6 changed files with 82 additions and 60 deletions
|
@ -22,6 +22,7 @@
|
|||
namespace Friendica\Module;
|
||||
|
||||
use Friendica\BaseModule;
|
||||
use Friendica\Core\Process;
|
||||
use Friendica\Core\System;
|
||||
use Friendica\Core\Worker as WorkerCore;
|
||||
use Friendica\Database\DBA;
|
||||
|
@ -57,7 +58,7 @@ class Worker extends BaseModule
|
|||
return;
|
||||
}
|
||||
|
||||
WorkerCore::startProcess();
|
||||
DI::process()->start();
|
||||
|
||||
DI::logger()->notice('Front end worker started.', ['pid' => getmypid()]);
|
||||
|
||||
|
@ -79,7 +80,7 @@ class Worker extends BaseModule
|
|||
|
||||
WorkerCore::unclaimProcess();
|
||||
|
||||
WorkerCore::endProcess();
|
||||
DI::process()->end();
|
||||
|
||||
System::httpExit(200, 'Frontend worker stopped.');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue