Read the number of unscanned clair images from the block allocator
This commit is contained in:
parent
0214b1ba9f
commit
b03e03c389
5 changed files with 61 additions and 15 deletions
|
@ -24,7 +24,8 @@ def remove_stale_manifests():
|
|||
max_manifest_id = TagManifest.select(fn.Max(TagManifest.id)).scalar()
|
||||
problematic = 0
|
||||
checked = 0
|
||||
for found, _ in yield_random_entries(batch_query, TagManifest.id, BATCH_SIZE, max_manifest_id):
|
||||
manifest_gen = yield_random_entries(batch_query, TagManifest.id, BATCH_SIZE, max_manifest_id)
|
||||
for found, _, _ in manifest_gen:
|
||||
checked += 1
|
||||
parsed = SignedManifest(found.json_data, validate=False)
|
||||
logger.debug('Auditing manifest with id: %s for %s/%s', found.digest, parsed.namespace,
|
||||
|
|
Reference in a new issue