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:
parent
a911fba650
commit
b990a27d50
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||
|
|
Reference in a new issue