1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Fix memory leak, bump version

This commit is contained in:
Mike Perham 2016-05-04 14:43:15 -05:00
parent 57d82ed1a6
commit a2bdb875fe
4 changed files with 8 additions and 1 deletions

View file

@ -3,6 +3,8 @@
4.1.2 4.1.2
----------- -----------
- **IMPORTANT** Fix memory leak with worker data in Redis.
- Freeze all string literals with Ruby 2.3. [#2741]
- Client middleware can now stop bulk job push. [#2887] - Client middleware can now stop bulk job push. [#2887]
4.1.1 4.1.1

View file

@ -89,6 +89,7 @@ module Sidekiq
Processor::WORKER_STATE.each_pair do |tid, hash| Processor::WORKER_STATE.each_pair do |tid, hash|
conn.hset(workers_key, tid, Sidekiq.dump_json(hash)) conn.hset(workers_key, tid, Sidekiq.dump_json(hash))
end end
conn.expire(workers_key, 60)
end end
end end
fails = procd = 0 fails = procd = 0

View file

@ -1,4 +1,4 @@
# frozen_string_literal: true # frozen_string_literal: true
module Sidekiq module Sidekiq
VERSION = "4.1.1" VERSION = "4.1.2"
end end

View file

@ -56,6 +56,10 @@ class TestLauncher < Sidekiq::Test
@launcher.heartbeat('identity', heartbeat_data, Sidekiq.dump_json(heartbeat_data)) @launcher.heartbeat('identity', heartbeat_data, Sidekiq.dump_json(heartbeat_data))
end end
#after do
#puts system('redis-cli -n 15 keys "*" | while read LINE ; do TTL=`redis-cli -n 15 ttl "$LINE"`; if [ "$TTL" -eq -1 ]; then echo "$LINE"; fi; done;')
#end
it 'indicates stopping status in proctitle' do it 'indicates stopping status in proctitle' do
assert_equal "sidekiq #{Sidekiq::VERSION} myapp [1 of 3 busy] stopping", $0 assert_equal "sidekiq #{Sidekiq::VERSION} myapp [1 of 3 busy] stopping", $0
end end