diff options
author | Shinya Maeda <shinya@gitlab.com> | 2018-05-27 15:09:58 +0300 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2018-05-28 08:17:38 +0300 |
commit | db55fa594274c95ffade4089aad3d463f918d4c3 (patch) | |
tree | d5ebec33940ca3a8bac5cbef421a87617a714c05 /lib/api/runner.rb | |
parent | 88b93f55a13f51776991d0437d8a63e18e777419 (diff) |
Disallow updating job stauts if it's not running
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 a7f1cb1131f..59898cd2477 100644 --- a/lib/api/runner.rb +++ b/lib/api/runner.rb @@ -123,6 +123,7 @@ module API end put '/:id' do job = authenticate_job! + forbidden!('Job is not running') unless job.running? job.trace.set(params[:trace]) if params[:trace] |