Disallow updating job stauts if it's not running
This commit is contained in:
parent
88b93f55a1
commit
db55fa5942
1 changed files with 1 additions and 0 deletions
|
@ -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]
|
||||
|
||||
|
|
Loading…
Reference in a new issue