Class: GroundControl::Inertia::RetriesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/ground_control/inertia/retries_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



6
7
8
9
10
11
# File 'app/controllers/ground_control/inertia/retries_controller.rb', line 6

def create
  job = ActiveJob.jobs.failed.find_by_id(params[:job_id])
  job.retry

  redirect_to ground_control_inertia.jobs_path(status: :failed), notice: "Retried job #{job.job_id}"
end