PR#2168: turn off checking external repos by default

Merges #2168
https://pagure.io/koji/pull-request/2168

Fixes: #2159
https://pagure.io/koji/issue/2159
kojira external repo timestamp check can break
This commit is contained in:
Tomas Kopecek 2020-04-21 14:48:39 +02:00
commit d919ce1769
3 changed files with 14 additions and 1 deletions

View file

@ -85,6 +85,12 @@ especially in relation to throttling in creating ``newRepo`` tasks.
How many repos are being removed from disk in one iteration. This
generally doesn't need to be changed.
``check_external_repos = false``
If True, monitor external repos and trigger the appropriate Koji repo
regenerations when they change.
Note that you need to have your database set to use UTC, as otherwise
you can end with weird behaviour. For details see
https://pagure.io/koji/issue/2159
Garbage Collector
-----------------

View file

@ -1030,7 +1030,7 @@ def get_options():
'deleted_repo_lifetime': 7 * 24 * 3600,
# XXX should really be called expired_repo_lifetime
'dist_repo_lifetime': 7 * 24 * 3600,
'check_external_repos': True,
'check_external_repos': False,
'recent_tasks_lifetime': 600,
'sleeptime': 15,
'cert': None,

View file

@ -51,3 +51,10 @@ logfile=/var/log/kojira.log
; ignored repositories according to glob. Multiple masks separated by space.
; ignore_tags =
; Monitor external repos and trigger the appropriate Koji repo regenerations
; when they change. Note that you need to have your database set to use UTC,
; as otherwise you can end with weird behaviour. For details see
; https://pagure.io/koji/issue/2159
; check_external_repos = false