diff --git a/src/infrastructure/daemon/workers/PhabricatorTriggerDaemon.php b/src/infrastructure/daemon/workers/PhabricatorTriggerDaemon.php index cec2fbf80e..02ac55a160 100644 --- a/src/infrastructure/daemon/workers/PhabricatorTriggerDaemon.php +++ b/src/infrastructure/daemon/workers/PhabricatorTriggerDaemon.php @@ -108,6 +108,11 @@ final class PhabricatorTriggerDaemon $sleep_duration = $this->runNuanceImportCursors($sleep_duration); $sleep_duration = $this->runGarbageCollection($sleep_duration); $sleep_duration = $this->runCalendarNotifier($sleep_duration); + + if ($this->shouldHibernate($sleep_duration)) { + break; + } + $this->sleep($sleep_duration); } while (!$this->shouldExit()); }