securityscanner: add a min image id option
This will enable us to force some instances of the securityworker to scan only new images.
This commit is contained in:
parent
aa2f88d321
commit
4ed0cdda14
4 changed files with 12 additions and 6 deletions
|
@ -42,7 +42,7 @@ class SecurityWorker(Worker):
|
|||
|
||||
def _index_images(self):
|
||||
def batch_query():
|
||||
return get_images_eligible_for_scan(self._target_version)
|
||||
return get_images_eligible_for_scan(self._target_version, app.config.get('SECURITY_SCANNER_INDEXING_MIN_ID', None))
|
||||
|
||||
# Get the ID of the last image we can analyze. Will be None if there are no images in the
|
||||
# database.
|
||||
|
|
Reference in a new issue