Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14016150
D15750.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
948 B
Referenced Files
None
Subscribers
None
D15750.diff
View Options
diff --git a/src/infrastructure/daemon/workers/PhabricatorTriggerDaemon.php b/src/infrastructure/daemon/workers/PhabricatorTriggerDaemon.php
--- a/src/infrastructure/daemon/workers/PhabricatorTriggerDaemon.php
+++ b/src/infrastructure/daemon/workers/PhabricatorTriggerDaemon.php
@@ -261,7 +261,7 @@
* Get the number of seconds to sleep for before starting the next scheduling
* phase.
*
- * If no events are scheduled soon, we'll sleep for 60 seconds. Otherwise,
+ * If no events are scheduled soon, we'll sleep briefly. Otherwise,
* we'll sleep until the next scheduled event.
*
* @return int Number of seconds to sleep for.
@@ -272,6 +272,7 @@
$next_triggers = id(new PhabricatorWorkerTriggerQuery())
->setViewer($this->getViewer())
->setOrder(PhabricatorWorkerTriggerQuery::ORDER_EXECUTION)
+ ->withNextEventBetween(0, null)
->setLimit(1)
->needEvents(true)
->execute();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 5, 6:01 AM (2 w, 8 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6733941
Default Alt Text
D15750.diff (948 B)
Attached To
Mode
D15750: make Trigger Daemon sleep correctly when one-time triggers exist
Attached
Detach File
Event Timeline
Log In to Comment