Commit 5687c8af authored by Sean McGivern's avatar Sean McGivern

Don't clean Sidekiq processes when fetching metrics

The Sidekiq process metrics API endpoint uses the default argument for
`clean_plz` to `Sidekiq::ProcessSet`, which is `true`. We don't actually
need to clean the processes here because it's a read-only API endpoint,
and Sidekiq does this automatically in the regular processes.
parent 5b91cf71
......@@ -17,7 +17,7 @@ module API
end
def process_metrics
Sidekiq::ProcessSet.new.map do |process|
Sidekiq::ProcessSet.new(false).map do |process|
{
hostname: process['hostname'],
pid: process['pid'],
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment