mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-12-02 03:37:44 +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.
|
// Only running in one worker.
|
||||||
$this->logger->debug("Worker $lockedWorkerId got the lock.");
|
$this->logger->debug("Worker $lockedWorkerId got the lock.");
|
||||||
// @TODO Do something that you want only one worker do.
|
// @TODO Do something that you want only one worker do.
|
||||||
|
sleep(1);
|
||||||
$lock->unlock();
|
$lock->unlock();
|
||||||
$atomic->wakeup($server->setting['worker_num'] - 1);
|
$atomic->wakeup($server->setting['worker_num'] - 1);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user