diff --git a/lib/sidekiq/manager.rb b/lib/sidekiq/manager.rb index 9c6d64c7..e434a126 100644 --- a/lib/sidekiq/manager.rb +++ b/lib/sidekiq/manager.rb @@ -45,7 +45,7 @@ module Sidekiq redis.with_connection do |conn| conn.smembers('workers').each do |name| - conn.srem('workers', name) if name =~ /:#{Process.pid}:/ + conn.srem('workers', name) if name =~ /:#{Process.pid}-/ end end end