This commit is contained in:
as2252258@163.com
2021-04-07 02:38:29 +08:00
parent 7672f9c9b2
commit 074d6a05cb
3 changed files with 13 additions and 18 deletions
+4
View File
@@ -39,6 +39,10 @@ class OnWorkerStart extends Callback
name($server->worker_pid, $worker_id >= $server->setting['worker_num'] ? 'task' : 'worker');
/** @var ServerInotify $inotify */
$inotify = Snowflake::app()->get(ServerInotify::class);
$inotify->getLoader($worker_id);
if ($worker_id >= $server->setting['worker_num']) {
$this->onTask($server, $worker_id);
} else {