Merge branch 'master' of github.com:hyperflex-cloud/hyperflex

This commit is contained in:
李铭昕 2018-12-27 16:51:26 +08:00
commit ce5ae936ac

View File

@ -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 {