1
0
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:
Joseph Crosland
2021-09-17 13:29:07 -07:00
committed by GitHub
parent 0f7fdb7e84
commit 694fa2acaf

View File

@@ -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(