Class: MissionControl::Jobs::BulkRetriesController

Inherits:
ApplicationController show all
Includes:
FailedJobsBulkOperations
Defined in:
app/controllers/mission_control/jobs/bulk_retries_controller.rb

Constant Summary

Constants included from FailedJobsBulkOperations

FailedJobsBulkOperations::MAX_NUMBER_OF_JOBS_FOR_BULK_OPERATIONS

Instance Method Summary collapse

Instance Method Details

#createObject



4
5
6
7
8
9
# File 'app/controllers/mission_control/jobs/bulk_retries_controller.rb', line 4

def create
  jobs_to_retry_count = bulk_limited_filtered_failed_jobs.count
  bulk_limited_filtered_failed_jobs.retry_all

  redirect_to application_jobs_url(@application, :failed), notice: "Retried #{jobs_to_retry_count} jobs"
end