lib/mutx/API/execution.rb in mutx-0.1.17 vs lib/mutx/API/execution.rb in mutx-0.1.18
- old
+ new
@@ -105,13 +105,13 @@
task = Mutx::Tasks::Task.get(result.task_id)
# if is the owner
if result.process_running? or !result.finished? or !result.stopped?
begin
if result.pid
- Mutx::Support::Processes.kill_p(result.pid)
killed = true
- Mutx::Support::Log.debug "Execution (id=#{result.id}) killed"
+ Mutx::Support::Processes.kill_p(result.pid)
+ Mutx::Support::Log.debug "Execution (id=#{result.id}) killed: #{killed}"
end
rescue => e
Mutx::Support::Log.error "#{e}#{e.backtrace}"
end
@@ -135,12 +135,9 @@
message = "Could not stop execution. Process killing: #{killed}. Files cleanned: #{cleanned}"
end
end
- # else
- # {"message" => "You are not the owner of this execution"}
- # end
{"message" => message}
end
end
end
\ No newline at end of file