From b3ddf0b3c13b001912c8b151c8be5a490741ae14 Mon Sep 17 00:00:00 2001 From: bashcoder Date: Mon, 9 Jun 2025 13:33:56 -0500 Subject: [PATCH] Quiet task only runs on :solid_queue_role Instead of running the quiet task on all roles, limit it only to the :solid_queue_role (:db by default) --- lib/capistrano/tasks/solid_queue.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/capistrano/tasks/solid_queue.rake b/lib/capistrano/tasks/solid_queue.rake index 13062c0..fecec24 100644 --- a/lib/capistrano/tasks/solid_queue.rake +++ b/lib/capistrano/tasks/solid_queue.rake @@ -60,7 +60,7 @@ namespace :solid_queue do # rubocop:disable Metrics desc "Quiet solid_queue (start graceful termination)" task :quiet do - on roles(:app) do + on roles(fetch(:solid_queue_role)) do plugin.execute_systemd("kill", "-s", "SIGTERM", fetch(:solid_queue_service_unit_name), raise_on_non_zero_exit: false) end end