mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
Remove unnecessary code, bump
This commit is contained in:
parent
345ba002bc
commit
77fc95a630
3 changed files with 6 additions and 6 deletions
|
@ -2,6 +2,11 @@
|
|||
|
||||
[Sidekiq Changes](https://github.com/mperham/sidekiq/blob/main/Changes.md) | [Sidekiq Pro Changes](https://github.com/mperham/sidekiq/blob/main/Pro-Changes.md) | [Sidekiq Enterprise Changes](https://github.com/mperham/sidekiq/blob/main/Ent-Changes.md)
|
||||
|
||||
6.5.4
|
||||
----------
|
||||
|
||||
- Fix further metrics dependency issues [#5457]
|
||||
|
||||
6.5.3
|
||||
----------
|
||||
|
||||
|
|
|
@ -182,13 +182,8 @@ module Sidekiq
|
|||
end
|
||||
|
||||
def process_count
|
||||
# The work buried within Sidekiq::ProcessSet#cleanup can be
|
||||
# expensive at scale. Cut it down by 90% with this counter.
|
||||
# NB: This method is only called by the scheduler thread so we
|
||||
# don't need to worry about the thread safety of +=.
|
||||
pcount = Sidekiq.redis { |conn| conn.scard("processes") }
|
||||
pcount = 1 if pcount == 0
|
||||
@count_calls += 1
|
||||
pcount
|
||||
end
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
module Sidekiq
|
||||
VERSION = "6.5.3"
|
||||
VERSION = "6.5.4"
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue