public function shouldReloadDaemons()
This method is used to indicate to the overseer that daemons should reload.
bool | True if the daemons should reload, otherwise false. |
public function shouldWakePool($pool)Inherited
Should a hibernating daemon pool be awoken immediately?
PhutilDaemonPool | $pool |
bool | True to awaken the pool immediately. |
public static function getAllModules()Inherited
wild |
protected function shouldThrottle($name, $duration)Inherited
Throttle checks from executing too often.
If you throttle a check like this, it will only execute once every 2.5 seconds:
if ($this->shouldThrottle('some.check', 2.5)) { return; }
string | $name | Throttle key. |
float | $duration | Duration in seconds. |
bool | True to throttle the check. |
private function loadConfigVersion()
Calculate a version number for the current Phabricator configuration.
The version number has no real meaning and does not provide any real indication of whether a configuration entry has been changed. The config version is intended to be a rough indicator that "something has changed", which indicates to the overseer that the daemons should be reloaded.
int |
private function updateConfigVersion()
Check and update the configuration version.
bool | True if the daemons should restart, otherwise false. |