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:
Silas Sewell 2015-11-18 17:42:59 -05:00
parent 9c8e1eb506
commit 1162814734
2 changed files with 6 additions and 1 deletions

View file

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