Sha256: d62d53c1b4bda0a0d1bdb80e9a1079928c8a6e4abb724b8dca88b0eb7584cf36

Contents?: true

Size: 520 Bytes

Versions: 8

Compression:

Stored size: 520 Bytes

Contents

# frozen_string_literal: true
module GoodJob
  class CronEntriesController < GoodJob::ApplicationController
    def index
      @cron_entries = CronEntry.all
    end

    def show
      @cron_entry = CronEntry.find(params[:id])
      @jobs_filter = JobsFilter.new(params, @cron_entry.jobs)
    end

    def enqueue
      @cron_entry = CronEntry.find(params[:id])
      @cron_entry.enqueue(Time.current)
      redirect_back(fallback_location: cron_entries_path, notice: "Cron entry has been enqueued.")
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
good_job-2.14.1 engine/app/controllers/good_job/cron_entries_controller.rb
good_job-2.14.0 engine/app/controllers/good_job/cron_entries_controller.rb
good_job-2.13.2 engine/app/controllers/good_job/cron_entries_controller.rb
good_job-2.13.1 engine/app/controllers/good_job/cron_entries_controller.rb
good_job-2.13.0 engine/app/controllers/good_job/cron_entries_controller.rb
good_job-2.12.2 engine/app/controllers/good_job/cron_entries_controller.rb
good_job-2.12.1 engine/app/controllers/good_job/cron_entries_controller.rb
good_job-2.12.0 engine/app/controllers/good_job/cron_entries_controller.rb