Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15397542
D21389.id50906.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
932 B
Referenced Files
None
Subscribers
None
D21389.id50906.diff
View Options
diff --git a/src/applications/fact/daemon/PhabricatorFactDaemon.php b/src/applications/fact/daemon/PhabricatorFactDaemon.php
--- a/src/applications/fact/daemon/PhabricatorFactDaemon.php
+++ b/src/applications/fact/daemon/PhabricatorFactDaemon.php
@@ -6,7 +6,7 @@
protected function run() {
$this->setEngines(PhabricatorFactEngine::loadAllEngines());
- while (!$this->shouldExit()) {
+ do {
PhabricatorCaches::destroyRequestCache();
$iterators = $this->getAllApplicationIterators();
@@ -14,9 +14,14 @@
$this->processIteratorWithCursor($iterator_name, $iterator);
}
- $this->log(pht('Zzz...'));
- $this->sleep(15);
- }
+ $sleep_duration = 60;
+
+ if ($this->shouldHibernate($sleep_duration)) {
+ break;
+ }
+
+ $this->sleep($sleep_duration);
+ } while (!$this->shouldExit());
}
public static function getAllApplicationIterators() {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 17, 8:57 PM (4 d, 22 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7332915
Default Alt Text
D21389.id50906.diff (932 B)
Attached To
Mode
D21389: Allow the Fact daemon to hibernate
Attached
Detach File
Event Timeline
Log In to Comment