Class: MissionControl::Jobs::JobsController

Inherits:
ApplicationController show all
Includes:
JobFilters, JobScoped
Defined in:
app/controllers/mission_control/jobs/jobs_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



6
7
8
9
10
11
12
# File 'app/controllers/mission_control/jobs/jobs_controller.rb', line 6

def index
  @job_class_names = jobs_with_status.job_class_names
  @queue_names = ActiveJob.queues.map(&:name)

  @jobs_page = MissionControl::Jobs::Page.new(filtered_jobs_with_status, page: params[:page].to_i)
  @jobs_count = @jobs_page.total_count
end

#showObject



14
15
# File 'app/controllers/mission_control/jobs/jobs_controller.rb', line 14

def show
end