Class: RoundhouseUi::WorkersController
Overview
The running Sidekiq process fleet, straight from Sidekiq::ProcessSet.
"Quiet" stops a process from pulling new work; "Stop" begins shutdown.
Constant Summary
ApplicationController::AUDIT_VERBS
Instance Method Summary
collapse
#redirect_to
Instance Method Details
#index ⇒ Object
7
8
9
10
|
# File 'app/controllers/roundhouse_ui/workers_controller.rb', line 7
def index
@processes = Sidekiq::ProcessSet.new.to_a
@fetch_active = RoundhouseUi::Pause.fetch_installed?
end
|
#quiet ⇒ Object
12
13
14
15
|
# File 'app/controllers/roundhouse_ui/workers_controller.rb', line 12
def quiet
find_process(params[:identity])&.quiet!
redirect_to workers_path, notice: "Sent quiet to #{params[:identity]}."
end
|
#stop ⇒ Object
17
18
19
20
|
# File 'app/controllers/roundhouse_ui/workers_controller.rb', line 17
def stop
find_process(params[:identity])&.stop!
redirect_to workers_path, notice: "Sent stop to #{params[:identity]}."
end
|