From b990a27d504f1a4adaf93c7c311f547e156dc985 Mon Sep 17 00:00:00 2001 From: Quentin Machu Date: Sun, 4 Dec 2016 13:39:34 +0100 Subject: [PATCH] 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. --- workers/security_notification_worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workers/security_notification_worker.py b/workers/security_notification_worker.py index 5e904a39a..a33bc9762 100644 --- a/workers/security_notification_worker.py +++ b/workers/security_notification_worker.py @@ -14,7 +14,7 @@ logger = logging.getLogger(__name__) _READING_SECONDS = 120 # 2 minutes _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):