mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-18 13:14:52 +08:00
fix WorkerStop read global config bug
This commit is contained in:
parent
18ae960f86
commit
2478ffe331
@ -23,7 +23,7 @@ class OnWorkerStop implements SwooleEvent
|
||||
{
|
||||
WorkerContainer::getInstance()->flush();
|
||||
|
||||
if ($worker_id == (ZMConfig::get('worker_cache')['worker'] ?? 0)) {
|
||||
if ($worker_id == (ZMConfig::get('global.worker_cache.worker') ?? 0)) {
|
||||
LightCache::savePersistence();
|
||||
}
|
||||
Console::verbose(($server->taskworker ? 'Task' : '') . "Worker #{$worker_id} 已停止 (Worker 状态码: " . $server->getWorkerStatus($worker_id) . ')');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user