mirror of
https://github.com/quay/quay.git
synced 2026-01-26 06:21:37 +03:00
secscan: continue iterating after failure (PROJQUAY-2563) (#892)
If Clair returns an error the current behaviour is to error out, thus not indexing any subsequent manifests. This change allows the worker to continue indexing subsequent manifests after one failure. Signed-off-by: crozzy <joseph.crosland@gmail.com>
This commit is contained in:
@@ -289,10 +289,10 @@ class V4SecurityScanner(SecurityScannerInterface):
|
||||
except InvalidContentSent as ex:
|
||||
mark_manifest_unsupported(manifest)
|
||||
logger.exception("Failed to perform indexing, invalid content sent")
|
||||
return None
|
||||
continue
|
||||
except APIRequestFailure as ex:
|
||||
logger.exception("Failed to perform indexing, security scanner API error")
|
||||
return None
|
||||
continue
|
||||
|
||||
with db_transaction():
|
||||
ManifestSecurityStatus.delete().where(
|
||||
|
||||
Reference in New Issue
Block a user