summaryrefslogtreecommitdiff
path: root/lib/api
diff options
context:
space:
mode:
authorDmitry Chepurovskiy <dm3ch@dm3ch.net>2019-05-20 15:03:34 +0000
committerNick Thomas <nick@gitlab.com>2019-05-20 15:03:34 +0000
commit7017889d0b92dd8bd215770a9d4f823b5dc1f2eb (patch)
tree0cbce8dda9e38e89632f7d59a0b774873ec8bae5 /lib/api
parent7115bd811f4bc87c0706fc2b876729878ad8fc5b (diff)
downloadgitlab-ce-7017889d0b92dd8bd215770a9d4f823b5dc1f2eb.tar.gz
Added filtering jobs by age to jobs/request API endpoint
Diffstat (limited to 'lib/api')
-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!