1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-08 05:41:01 +01:00
phorge-phorge/src/applications/repository/daemon
epriestley 7dd55a728f Make repository daemons periodically check for out-of-sync repositories
Summary:
See PHI1015. If you add new repository nodes to a cluster, we may not actually sync some repositories for up to 6 hours (if they've had no commits for 30 days).

Add an explicit check for out-of-sync repositories to trigger background sync.

Test Plan:
  - Ran `bin/phd debug pullocal`.
  - Fiddled with the `repository_workingcopy` version table to put the local node in and out of sync with the cluster.
  - Saw appropriate responses in the daemon (sync; wait if the last sync trigger was too recent).

Reviewers: amckinley

Reviewed By: amckinley

Differential Revision: https://secure.phabricator.com/D20078
2019-01-31 22:12:39 -08:00
..
PhabricatorGitGraphStream.php Handle tag tags properly in discovery 2016-06-20 11:10:02 -07:00
PhabricatorMercurialGraphStream.php Fix spelling 2017-10-09 10:48:04 -07:00
PhabricatorRepositoryGraphStream.php Move Git discovery into DiscoveryEngine 2014-01-17 11:48:53 -08:00
PhabricatorRepositoryPullLocalDaemon.php Make repository daemons periodically check for out-of-sync repositories 2019-01-31 22:12:39 -08:00
PhabricatorRepositoryPullLocalDaemonModule.php Allow the PullLocal daemon to hibernate, and wake it when repositories need an update 2017-03-23 10:52:28 -07:00