summaryrefslogtreecommitdiff
path: root/lib/api/runner.rb
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-03-29 10:54:06 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2018-03-29 10:54:06 +0000
commit8b37ce6f7f6d29604c42c65f3986d60dce0abd6c (patch)
tree1bb0959f49edd0980a2336923c6c5399122bf99a /lib/api/runner.rb
parentb2ccfc084d790d012f43b8f5ffeaaee4c913a08c (diff)
parent6ecde0076afa83e30608ea9caba924bbab66a123 (diff)
downloadgitlab-ce-8b37ce6f7f6d29604c42c65f3986d60dce0abd6c.tar.gz
Merge branch 'add-per-runner-job-timeout' into 'master'
Add per runner job timeout Closes #43426 See merge request gitlab-org/gitlab-ce!17221
Diffstat (limited to 'lib/api/runner.rb')
-rw-r--r--lib/api/runner.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/api/runner.rb b/lib/api/runner.rb
index 8da97a97754..57c0a729535 100644
--- a/lib/api/runner.rb
+++ b/lib/api/runner.rb
@@ -14,9 +14,10 @@ module API
optional :locked, type: Boolean, desc: 'Should Runner be locked for current project'
optional :run_untagged, type: Boolean, desc: 'Should Runner handle untagged jobs'
optional :tag_list, type: Array[String], desc: %q(List of Runner's tags)
+ optional :maximum_timeout, type: Integer, desc: 'Maximum timeout set when this Runner will handle the job'
end
post '/' do
- attributes = attributes_for_keys([:description, :locked, :run_untagged, :tag_list])
+ attributes = attributes_for_keys([:description, :locked, :run_untagged, :tag_list, :maximum_timeout])
.merge(get_runner_details_from_request)
runner =