Class: GroundControl::Api::RetriesController

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

Instance Method Summary collapse

Instance Method Details

#createObject



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