build queue rate limiting: address PR comments
This commit is contained in:
parent
eb69abff8b
commit
c41de8ded6
4 changed files with 12 additions and 7 deletions
|
@ -107,7 +107,7 @@ def build_trigger_webhook(trigger_uuid, **kwargs):
|
|||
try:
|
||||
start_build(repo, prepared, pull_robot_name=pull_robot_name)
|
||||
except MaximumBuildsQueuedException:
|
||||
abort(429)
|
||||
abort(429, message='Maximum queued build rate exceeded.')
|
||||
|
||||
return make_response('Okay')
|
||||
|
||||
|
|
Reference in a new issue