Merge pull request #2204 from jzelinskie/429builds
add rate limiting to build queues
This commit is contained in:
commit
00eafff747
7 changed files with 78 additions and 9 deletions
|
@ -400,3 +400,9 @@ class DefaultConfig(object):
|
|||
|
||||
# Location of the static marketing site.
|
||||
STATIC_SITE_BUCKET = None
|
||||
|
||||
# Count and duration used to produce a rate of builds allowed to be queued per repository before
|
||||
# rejecting requests. Values less than zero disable rate limiting.
|
||||
# Example: 10 builds per minute is accomplished by setting ITEMS = 10, SECS = 60
|
||||
MAX_BUILD_QUEUE_RATE_ITEMS = -1
|
||||
MAX_BUILD_QUEUE_RATE_SECS = -1
|
||||
|
|
Reference in a new issue