Class: Karafka::Web::Pro::Ui::Controllers::Consumers::JobsController
- Inherits:
-
ConsumersController
- Object
- Ui::Controllers::BaseController
- BaseController
- BaseController
- ConsumersController
- Karafka::Web::Pro::Ui::Controllers::Consumers::JobsController
- Defined in:
- lib/karafka/web/pro/ui/controllers/consumers/jobs_controller.rb
Overview
Note:
There is a separate jobs controller for jobs overview, this one is per consumer specific.
Displays details about given consumer jobs
Constant Summary
Constants inherited from Ui::Controllers::BaseController
Ui::Controllers::BaseController::Models
Instance Attribute Summary
Attributes inherited from Ui::Controllers::BaseController
Instance Method Summary collapse
-
#pending(process_id) ⇒ Object
Shows all pending jobs of a consumer.
-
#running(process_id) ⇒ Object
Shows all running jobs of a consumer.
Methods inherited from ConsumersController
#details, #index, #performance, #subscriptions
Methods inherited from Ui::Controllers::BaseController
Methods included from Ui::Controllers::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(process_id) ⇒ Object
Shows all pending jobs of a consumer
42 43 44 45 46 47 48 49 50 |
# File 'lib/karafka/web/pro/ui/controllers/consumers/jobs_controller.rb', line 42 def pending(process_id) details(process_id) @pending_jobs = @process.jobs.pending refine(@pending_jobs) render end |
#running(process_id) ⇒ Object
Shows all running jobs of a consumer
30 31 32 33 34 35 36 37 38 |
# File 'lib/karafka/web/pro/ui/controllers/consumers/jobs_controller.rb', line 30 def running(process_id) details(process_id) @running_jobs = @process.jobs.running refine(@running_jobs) render end |