diff --git a/src/applications/repository/daemon/commitdiscovery/base/PhabricatorRepositoryCommitDiscoveryDaemon.php b/src/applications/repository/daemon/commitdiscovery/base/PhabricatorRepositoryCommitDiscoveryDaemon.php index 68f00cbdd5..490094392e 100644 --- a/src/applications/repository/daemon/commitdiscovery/base/PhabricatorRepositoryCommitDiscoveryDaemon.php +++ b/src/applications/repository/daemon/commitdiscovery/base/PhabricatorRepositoryCommitDiscoveryDaemon.php @@ -29,15 +29,10 @@ abstract class PhabricatorRepositoryCommitDiscoveryDaemon final public function run() { $this->repository = $this->loadRepository(); - $sleep = 15; + $sleep = $this->repository->getDetail('pull-frequency'); while (true) { - $found = $this->discoverCommits(); - if ($found) { - $sleep = 15; - } else { - $sleep = min($sleep + 15, 60 * 15); - } - $this->sleep($sleep); + $this->discoverCommits(); + $this->sleep(max(2, $sleep)); } }