Class: Kuroko2::ExecutionsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Kuroko2::ExecutionsController
- Defined in:
- app/controllers/kuroko2/executions_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#destroy ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'app/controllers/kuroko2/executions_controller.rb', line 9 def destroy if @execution.try(:pid) hostname = Kuroko2::Worker.executing(@execution.id).try(:hostname) Kuroko2::ProcessSignal.create!(pid: @execution.pid, hostname: hostname) if hostname end redirect_to job_definition_job_instance_path(job_definition_id: execution_params[:job_definition_id], id: execution_params[:job_instance_id]) end |