This commit is contained in:
2021-07-20 16:12:20 +08:00
parent 67060012cc
commit 2d2be272ff
+3
View File
@@ -30,6 +30,9 @@ class ServerWorker extends \Server\Abstracts\Server
$annotation = Snowflake::app()->getAnnotation();
$annotation->read(APP_PATH);
$loader = Snowflake::app()->getRouter();
$loader->_loader();
$this->runEvent(Constant::WORKER_START, null, [$server, $workerId]);
if ($workerId >= $server->setting['worker_num'] + 1) {
$annotation->runtime(CONTROLLER_PATH);