Method: TasksController#kill_container

Defined in:
app/controllers/tasks_controller.rb

#kill_containerObject



46
47
48
49
50
51
52
# File 'app/controllers/tasks_controller.rb', line 46

def kill_container
  KillTaskContainer.new(task: @task).perform

  head :ok
rescue KillTaskContainer::TaskNotRunningError => e
  render json: { message: e.message }, status: :bad_request
end