Changeset View
Changeset View
Standalone View
Standalone View
src/applications/fact/daemon/PhabricatorFactDaemon.php
| <?php | <?php | ||||
| final class PhabricatorFactDaemon extends PhabricatorDaemon { | final class PhabricatorFactDaemon extends PhabricatorDaemon { | ||||
| private $engines; | private $engines; | ||||
| const RAW_FACT_BUFFER_LIMIT = 128; | const RAW_FACT_BUFFER_LIMIT = 128; | ||||
| protected function run() { | protected function run() { | ||||
| $this->setEngines(PhabricatorFactEngine::loadAllEngines()); | $this->setEngines(PhabricatorFactEngine::loadAllEngines()); | ||||
| while (!$this->shouldExit()) { | while (!$this->shouldExit()) { | ||||
| 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->processAggregates(); | $this->processAggregates(); | ||||
| $this->log(pht('Zzz...')); | $this->log(pht('Zzz...')); | ||||
| $this->sleep(60 * 5); | $this->sleep(60 * 5); | ||||
| ▲ Show 20 Lines • Show All 186 Lines • Show Last 20 Lines | |||||