summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2019-05-20 15:03:35 +0000
committerNick Thomas <nick@gitlab.com>2019-05-20 15:03:35 +0000
commit47f5d0cfcfcd5dbbc94ff674d682908c475eca08 (patch)
tree0cbce8dda9e38e89632f7d59a0b774873ec8bae5 /lib
parent7115bd811f4bc87c0706fc2b876729878ad8fc5b (diff)
parent7017889d0b92dd8bd215770a9d4f823b5dc1f2eb (diff)
downloadgitlab-ce-47f5d0cfcfcd5dbbc94ff674d682908c475eca08.tar.gz
Merge branch 'ci_age_based_runner_priority' into 'master'
Added filtering jobs by age to jobs/request API endpoint See merge request gitlab-org/gitlab-ce!28034
Diffstat (limited to 'lib')
-rw-r--r--lib/api/runner.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/api/runner.rb b/lib/api/runner.rb
index ea36c24eca2..fdf4904e9f5 100644
--- a/lib/api/runner.rb
+++ b/lib/api/runner.rb
@@ -98,6 +98,7 @@ module API
optional :certificate, type: String, desc: %q(Session's certificate)
optional :authorization, type: String, desc: %q(Session's authorization)
end
+ optional :job_age, type: Integer, desc: %q(Job should be older than passed age in seconds to be ran on runner)
end
post '/request' do
authenticate_runner!