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 {