Sha256: eac9578c85b3098cf94f71a759b0eed2b29bf5190c9c2750e57a3abb1982c566

Contents?: true

Size: 399 Bytes

Versions: 12

Compression:

Stored size: 399 Bytes

Contents

class MissionControl::Jobs::BulkRetriesController < MissionControl::Jobs::ApplicationController
  include MissionControl::Jobs::FailedJobsBulkOperations

  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
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
mission_control-jobs-0.6.0 app/controllers/mission_control/jobs/bulk_retries_controller.rb
mission_control-jobs-0.5.0 app/controllers/mission_control/jobs/bulk_retries_controller.rb
mission_control-jobs-0.4.0 app/controllers/mission_control/jobs/bulk_retries_controller.rb
mission_control-jobs-0.3.3 app/controllers/mission_control/jobs/bulk_retries_controller.rb
mission_control-jobs-0.3.2 app/controllers/mission_control/jobs/bulk_retries_controller.rb
mission_control-jobs-0.3.1 app/controllers/mission_control/jobs/bulk_retries_controller.rb
mission_control-jobs-0.3.0 app/controllers/mission_control/jobs/bulk_retries_controller.rb
mission_control-jobs-0.2.2 app/controllers/mission_control/jobs/bulk_retries_controller.rb
mission_control-jobs-0.2.1 app/controllers/mission_control/jobs/bulk_retries_controller.rb
mission_control-jobs-0.2.0 app/controllers/mission_control/jobs/bulk_retries_controller.rb
mission_control-jobs-0.1.1 app/controllers/mission_control/jobs/bulk_retries_controller.rb
mission_control-jobs-0.1.0 app/controllers/mission_control/jobs/bulk_retries_controller.rb