Increase limit in securitynotificationworker

With https://github.com/coreos/clair/pull/278 and https://github.com/coreos/clair/pull/279, performance of this API call has increased. It has been observed that querying 100 or 1000 layers page doesn't noticeably change the execution time. Therefore, doing significantly less calls will reduce the overall processing time for each notification.
This commit is contained in:
Quentin Machu 2016-12-04 13:39:34 +01:00 committed by GitHub
parent a911fba650
commit b990a27d50

View file

@ -14,7 +14,7 @@ logger = logging.getLogger(__name__)
_READING_SECONDS = 120 # 2 minutes _READING_SECONDS = 120 # 2 minutes
_PROCESSING_SECONDS = 60 * 60 # 1 hour _PROCESSING_SECONDS = 60 * 60 # 1 hour
_LAYER_LIMIT = 100 # The number of layers to request on each page. _LAYER_LIMIT = 1000 # The number of layers to request on each page.
class SecurityNotificationWorker(QueueWorker): class SecurityNotificationWorker(QueueWorker):