Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Reinstate control over the git polling interval #1030

Merged
merged 1 commit into from
Apr 3, 2018

Conversation

squaremo
Copy link
Member

The flag --git-poll-interval used to control how often the daemon'
sync loop would run a sync, which involved fetching any new commits,
then applying the config (whether there were new commits or not) to
the cluster.

When git.Repo gained its own independent existence, the flag was left
where it was, in the sync loop. That meant it controlled the syncs,
but no longer the git polling, which was hard-wired.

This commit makes it affect the git polling interval again,
directly. The sync interval gets its own flag, with the same default
value.

Resolves #1029.

The flag --git-poll-interval used to control how often the daemon'
sync loop would run a sync, which involved fetching any new commits,
then applying the config (whether there were new commits or not) to
the cluster.

When git.Repo gained its own independent existence, the flag was left
where it was, in the sync loop. That meant it controlled the syncs,
but no longer the git polling, which was hard-wired.

This commit makes it affect the git polling interval again,
directly. The sync interval gets its own flag, with the same default
value.
@squaremo squaremo requested review from bboreham and samb1729 March 28, 2018 17:32
@squaremo squaremo merged commit 65b276f into master Apr 3, 2018
@squaremo squaremo deleted the issue/1029-reinstate-git-poll-interval branch April 3, 2018 10:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants