Class: Barbeque::JobRetriesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/barbeque/job_retries_controller.rb

Instance Method Summary collapse

Instance Method Details

#showObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
# File 'app/controllers/barbeque/job_retries_controller.rb', line 2

def show
  @job_retry = Barbeque::JobRetry.find(params[:id])
  @job_execution = @job_retry.job_execution
  # Return 404 when job_definition or app is deleted
  @job_definition = Barbeque::JobDefinition.find(@job_execution.job_definition_id)
  @app = Barbeque::App.find(@job_definition.app_id)

  if params[:job_execution_message_id] != @job_execution.message_id
    redirect_to([@job_execution, @job_retry])
  end

  @execution_log = @job_execution.execution_log
  @retry_log = @job_retry.execution_log
end