mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-30 02:37:58 +08:00
Merge branch 'master' of github.com:hyperflex-cloud/hyperflex
This commit is contained in:
commit
ce5ae936ac
@ -44,6 +44,7 @@ class WorkerStartCallback
|
||||
// Only running in one worker.
|
||||
$this->logger->debug("Worker $lockedWorkerId got the lock.");
|
||||
// @TODO Do something that you want only one worker do.
|
||||
sleep(1);
|
||||
$lock->unlock();
|
||||
$atomic->wakeup($server->setting['worker_num'] - 1);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user