Changeset View
Changeset View
Standalone View
Standalone View
src/applications/fact/daemon/PhabricatorFactDaemon.php
Show All 9 Lines | while (!$this->shouldExit()) { | ||||
PhabricatorCaches::destroyRequestCache(); | PhabricatorCaches::destroyRequestCache(); | ||||
$iterators = $this->getAllApplicationIterators(); | $iterators = $this->getAllApplicationIterators(); | ||||
foreach ($iterators as $iterator_name => $iterator) { | foreach ($iterators as $iterator_name => $iterator) { | ||||
$this->processIteratorWithCursor($iterator_name, $iterator); | $this->processIteratorWithCursor($iterator_name, $iterator); | ||||
} | } | ||||
$this->log(pht('Zzz...')); | $this->log(pht('Zzz...')); | ||||
$this->sleep(60 * 5); | $this->sleep(15); | ||||
} | } | ||||
} | } | ||||
public static function getAllApplicationIterators() { | public static function getAllApplicationIterators() { | ||||
$apps = PhabricatorApplication::getAllInstalledApplications(); | $apps = PhabricatorApplication::getAllInstalledApplications(); | ||||
$iterators = array(); | $iterators = array(); | ||||
foreach ($apps as $app) { | foreach ($apps as $app) { | ||||
▲ Show 20 Lines • Show All 175 Lines • Show Last 20 Lines |