Class: Karafka::Web::Ui::Controllers::JobsController

Inherits:
BaseController show all
Defined in:
lib/karafka/web/ui/controllers/jobs_controller.rb

Overview

Active jobs (work) reporting controller

Direct Known Subclasses

Pro::Ui::Controllers::JobsController

Constant Summary

Constants inherited from BaseController

BaseController::Models

Instance Attribute Summary

Attributes inherited from BaseController

#params, #session

Instance Method Summary collapse

Methods inherited from BaseController

#cache, #initialize

Methods included from Requests::Hookable

included, #run_after_hooks, #run_before_hooks

Constructor Details

This class inherits a constructor from Karafka::Web::Ui::Controllers::BaseController

Instance Method Details

#pendingObject

Lists pending jobs



25
26
27
28
29
# File 'lib/karafka/web/ui/controllers/jobs_controller.rb', line 25

def pending
  paginate_jobs(build_jobs(:pending))

  render
end

#runningObject

Lists running jobs



18
19
20
21
22
# File 'lib/karafka/web/ui/controllers/jobs_controller.rb', line 18

def running
  paginate_jobs(build_jobs(:running))

  render
end