Disallow updating job stauts if it's not running

This commit is contained in:
Shinya Maeda 2018-05-27 21:09:58 +09:00
parent 88b93f55a1
commit db55fa5942

View file

@ -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]