Skip to content
Snippets Groups Projects
Commit db55fa59 authored by Shinya Maeda's avatar Shinya Maeda
Browse files

Disallow updating job stauts if it's not running

parent 88b93f55
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment