Class: Karafka::Web::Ui::Controllers::JobsController
- Inherits:
-
BaseController
- Object
- BaseController
- Karafka::Web::Ui::Controllers::JobsController
- Defined in:
- lib/karafka/web/ui/controllers/jobs_controller.rb
Overview
Active jobs (work) reporting controller
Direct Known Subclasses
Constant Summary
Constants inherited from BaseController
Instance Attribute Summary
Attributes inherited from BaseController
Instance Method Summary collapse
-
#pending ⇒ Object
Lists pending jobs.
-
#running ⇒ Object
Lists running jobs.
Methods inherited from BaseController
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
#pending ⇒ Object
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 |
#running ⇒ Object
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 |