diff options
author | Dmitry Chepurovskiy <dm3ch@dm3ch.net> | 2019-05-20 15:03:34 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-05-20 15:03:34 +0000 |
commit | 7017889d0b92dd8bd215770a9d4f823b5dc1f2eb (patch) | |
tree | 0cbce8dda9e38e89632f7d59a0b774873ec8bae5 /lib/api/runner.rb | |
parent | 7115bd811f4bc87c0706fc2b876729878ad8fc5b (diff) | |
download | gitlab-ce-7017889d0b92dd8bd215770a9d4f823b5dc1f2eb.tar.gz |
Added filtering jobs by age to jobs/request API endpoint
Diffstat (limited to 'lib/api/runner.rb')
-rw-r--r-- | lib/api/runner.rb | 1 |
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! |