This commit is contained in:
2021-03-02 18:51:45 +08:00
parent 9d1df92ad0
commit bd2f7b72a0
5 changed files with 10 additions and 5 deletions
+1
View File
@@ -38,6 +38,7 @@ class OnWorkerStart extends Callback
public function onHandler(Server $server, int $worker_id): void
{
putenv('worker=' . $worker_id);
putenv('state=start');
if ($worker_id >= $server->setting['worker_num']) {
$this->onTask($server, $worker_id);