This commit is contained in:
2021-03-04 10:36:08 +08:00
parent 6e30221cc1
commit 70a40db763
2 changed files with 2 additions and 3 deletions
+2
View File
@@ -36,6 +36,8 @@ class OnWorkerStart extends Callback
putenv('worker=' . $worker_id);
putenv('state=start');
annotation()->read(APP_PATH . 'app', 'App');
if ($worker_id >= $server->setting['worker_num']) {
$this->onTask($server, $worker_id);
} else {
-3
View File
@@ -108,9 +108,6 @@ class Application extends BaseApplication
public function start(Input $argv): void
{
try {
$annotation = $this->getAttributes();
$annotation->read(APP_PATH . 'app', 'App');
fire(Event::SERVER_BEFORE_START);
$this->set('input', $argv);