Add a worker for backfilling labels on manifests that have already been backfilled
This commit is contained in:
parent
01ee1e693c
commit
aeceea0f97
5 changed files with 148 additions and 2 deletions
|
@ -2,6 +2,8 @@ import logging
|
|||
import logging.config
|
||||
import time
|
||||
|
||||
import time
|
||||
|
||||
from peewee import JOIN, fn, IntegrityError
|
||||
|
||||
from app import app
|
||||
|
@ -88,11 +90,11 @@ class ManifestBackfillWorker(Worker):
|
|||
return iterator
|
||||
|
||||
def _backfill_manifests(self):
|
||||
""" Performs garbage collection on repositories. """
|
||||
with UseThenDisconnect(app.config):
|
||||
iterator = self._candidates_to_backfill()
|
||||
if iterator is None:
|
||||
logger.debug('Found no additional images to scan')
|
||||
logger.debug('Found no additional manifest to backfill')
|
||||
time.sleep(10000)
|
||||
return None
|
||||
|
||||
for candidate, abt, _ in iterator:
|
||||
|
|
Reference in a new issue