Class: Jobs::RetriesController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/panoptic/jobs/retries_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



5
6
7
8
9
10
# File 'app/controllers/panoptic/jobs/retries_controller.rb', line 5

def create
  @job = SolidQueue::Job.find(params[:job_id])

  @job.retry
  redirect_to jobs_path, notice: "Successfully retried Job ##{@job.id}"
end