Commit db55fa59 authored by Shinya Maeda's avatar Shinya Maeda

Disallow updating job stauts if it's not running

parent 88b93f55
......@@ -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]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment