lib/sidekiq/web/application.rb in sidekiq-7.0.2 vs lib/sidekiq/web/application.rb in sidekiq-7.0.3
- old
+ new
@@ -80,14 +80,17 @@
erb(:busy)
end
post "/busy" do
if params["identity"]
- p = Sidekiq::Process.new("identity" => params["identity"])
- p.quiet! if params["quiet"]
- p.stop! if params["stop"]
+ pro = Sidekiq::ProcessSet[params["identity"]]
+
+ pro.quiet! if params["quiet"]
+ pro.stop! if params["stop"]
else
processes.each do |pro|
+ next if pro.embedded?
+
pro.quiet! if params["quiet"]
pro.stop! if params["stop"]
end
end