Class: GroundControl::Api::RetriesController
- Inherits:
-
ApplicationController
- Object
- ActionController::API
- ApplicationController
- GroundControl::Api::RetriesController
- Defined in:
- app/controllers/ground_control/api/retries_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
6 7 8 9 10 11 |
# File 'app/controllers/ground_control/api/retries_controller.rb', line 6 def create job = ActiveJob.jobs.failed.find_by_id(params[:job_id]) job.retry render json: { message: "Retried job #{job.job_id}" } end |