securityworker: mark children we can't analyze
This allows us to differentiate between images that are queued and those we can't analyze in constant time.
This commit is contained in:
parent
9c8e1eb506
commit
1162814734
2 changed files with 6 additions and 1 deletions
|
@ -492,7 +492,6 @@ def get_secscan_candidates(engine_version, batch_size):
|
|||
.switch(Image)
|
||||
.join(ImageStorage)
|
||||
.where(Image.security_indexed_engine < engine_version,
|
||||
Parent.security_indexed == True,
|
||||
Parent.security_indexed_engine >= engine_version,
|
||||
ImageStorage.uploading == False)
|
||||
.limit(batch_size*10))
|
||||
|
|
Reference in a new issue