Merge pull request #3229 from quay/backfill-config-flag
Add configuration flag to control whether we backfill manifests
This commit is contained in:
commit
c67da0c814
1 changed files with 7 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
import logging
|
||||
import logging.config
|
||||
import time
|
||||
|
||||
from peewee import JOIN, fn, IntegrityError
|
||||
|
||||
|
@ -197,5 +198,11 @@ def backfill_manifest(tag_manifest):
|
|||
|
||||
if __name__ == "__main__":
|
||||
logging.config.fileConfig(logfile_path(debug=False), disable_existing_loggers=False)
|
||||
|
||||
if not app.config.get('BACKFILL_TAG_MANIFESTS', False):
|
||||
logger.debug('Manifest backfill disabled; skipping')
|
||||
while True:
|
||||
time.sleep(100000)
|
||||
|
||||
worker = ManifestBackfillWorker()
|
||||
worker.start()
|
||||
|
|
Reference in a new issue