Class: Barbeque::JobExecutionsController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Barbeque::JobExecutionsController
- Defined in:
- app/controllers/barbeque/job_executions_controller.rb
Instance Method Summary collapse
Instance Method Details
#retry ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'app/controllers/barbeque/job_executions_controller.rb', line 8 def retry @job_execution = Barbeque::JobExecution.find(params[:job_execution_id]) raise ActionController::BadRequest unless @job_execution.retryable? result = Barbeque::MessageRetryingService.new(message_id: @job_execution.).run @job_execution.retried! redirect_to @job_execution, notice: "Succeed to retry (message_id=#{result.})" end |
#show ⇒ Object
2 3 4 5 6 |
# File 'app/controllers/barbeque/job_executions_controller.rb', line 2 def show @job_execution = Barbeque::JobExecution.find(params[:id]) @log = @job_execution.execution_log @job_retries = @job_execution.job_retries.order(id: :desc) end |