Class: GroundControl::Inertia::RetriesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- GroundControl::Inertia::RetriesController
- Defined in:
- app/controllers/ground_control/inertia/retries_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
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 |