mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-24 06:20:56 +01:00
Fix a minor issue in Nuance which could cause the trigger daemon to poll too often
Summary: Ref T10537. Currently, when you have at least two cursors, the daemon can poll too frequently when processing the last source because it never hits the end-of-list condition. Test Plan: - Ran `bin/phd debug trigger`. - Observed huge volumes of output before change as triggers fired as fast as possible. - Observed reasonable poll frequency after change. Reviewers: chad Reviewed By: chad Maniphest Tasks: T10537 Differential Revision: https://secure.phabricator.com/D15464
This commit is contained in:
parent
5df5f33909
commit
de23ba0002
1 changed files with 1 additions and 1 deletions
|
@ -411,7 +411,7 @@ final class PhabricatorTriggerDaemon
|
|||
}
|
||||
|
||||
// If we haven't loaded sources yet, load them first.
|
||||
if (!$this->nuanceSources) {
|
||||
if (!$this->nuanceSources && !$this->nuanceCursors) {
|
||||
$this->anyNuanceData = false;
|
||||
|
||||
$sources = id(new NuanceSourceQuery())
|
||||
|
|
Loading…
Reference in a new issue