This commit is contained in:
as2252258@163.com
2021-02-27 03:13:32 +08:00
parent 8a77a80f8a
commit a4ce8fd698
+1 -1
View File
@@ -66,12 +66,12 @@ class OnWorkerStart extends Callback
go(function () use ($server, $workerId) {
try {
$sigkill = Coroutine::waitSignal(SIGKILL | SIGUSR1);
var_dump($sigkill);
if ($sigkill !== false) {
while (Snowflake::app()->isRun()) {
Coroutine::sleep(1);
}
}
Snowflake::app()->stateInit();
$server->stop($server->worker_id, true);
} catch (\Throwable $exception) {
$this->addError($exception);