public function shouldReloadDaemons()
public function shouldReloadDaemons()
This method is used to indicate to the overseer that daemons should reload.
Return
| bool | True if the daemons should reload, otherwise false. |
public function shouldWakePool($pool)
public function shouldWakePool($pool)
Should a hibernating daemon pool be awoken immediately?
Parameters
| PhutilDaemonPool | $pool |
Return
| bool | True to awaken the pool immediately. |
public static function getAllModules()
public static function getAllModules()
Return
| wild |
protected function shouldThrottle($name, $duration)
protected function shouldThrottle($name, $duration)
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;
}Parameters
| string | $name | Throttle key. |
| float | $duration | Duration in seconds. |
Return
| bool | True to throttle the check. |