sidekiq 5.2.0 → 5.2.1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of sidekiq might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d22391d1c7f5f4a237554a77f1648b42849a472
4
- data.tar.gz: 4d1c7e75fec7f25a571868172aade268ab95a0b3
3
+ metadata.gz: 2b5307056552014ab284241c16aa83a8d334d31b
4
+ data.tar.gz: acc9588810366d8c6dbb03d3c5cbe140a169f501
5
5
  SHA512:
6
- metadata.gz: e70c87a39e46a8250ffde65b66f550e1849df7353940ed916765eb843a99c01fece8ce720d7eb08aa9ec5d8084363413e433628d852f42116670be423daaa138
7
- data.tar.gz: bee6d32074c1a94dd5d22d87567a1499a1a655c371b011b2ea0c8bac3943eff3f6b3c82b91507bceb92b4e4e3265a9ef05560eabd95649361e60124b693fcdfa
6
+ metadata.gz: 8b051912f610e763585e847a991cee6e684d4b27111f91cfe395a1e02539424e931f5ba16141e30a06c3dcf9de3c54db578be47a9fcd629222b81d8295f7c12a
7
+ data.tar.gz: 836cc95385406201ad9e26363698d838381ef993e75034bfc030c4ef0d2821c80e3a4612c5a7ec8bfca1d7acdadd02bcf29f5b979d56ece6752686f6293216ef
data/Changes.md CHANGED
@@ -2,7 +2,12 @@
2
2
 
3
3
  [Sidekiq Changes](https://github.com/mperham/sidekiq/blob/master/Changes.md) | [Sidekiq Pro Changes](https://github.com/mperham/sidekiq/blob/master/Pro-Changes.md) | [Sidekiq Enterprise Changes](https://github.com/mperham/sidekiq/blob/master/Ent-Changes.md)
4
4
 
5
- HEAD
5
+ 5.2.1
6
+ -----------
7
+
8
+ - Fix concurrent modification error during heartbeat [#3921]
9
+
10
+ 5.2.0
6
11
  -----------
7
12
 
8
13
  - **Decrease default concurrency from 25 to 10** [#3892]
@@ -12,7 +12,7 @@ module Sidekiq
12
12
  include Util
13
13
 
14
14
  attr_accessor :manager, :poller, :fetcher
15
-
15
+
16
16
  STATS_TTL = 5*365*24*60*60
17
17
 
18
18
  def initialize(options)
@@ -76,6 +76,7 @@ module Sidekiq
76
76
  begin
77
77
  fails = Processor::FAILURE.reset
78
78
  procd = Processor::PROCESSED.reset
79
+ curstate = Processor::WORKER_STATE.dup
79
80
 
80
81
  workers_key = "#{key}:workers"
81
82
  nowdate = Time.now.utc.strftime("%Y-%m-%d")
@@ -84,13 +85,13 @@ module Sidekiq
84
85
  conn.incrby("stat:processed", procd)
85
86
  conn.incrby("stat:processed:#{nowdate}", procd)
86
87
  conn.expire("stat:processed:#{nowdate}", STATS_TTL)
87
-
88
+
88
89
  conn.incrby("stat:failed", fails)
89
90
  conn.incrby("stat:failed:#{nowdate}", fails)
90
91
  conn.expire("stat:failed:#{nowdate}", STATS_TTL)
91
-
92
+
92
93
  conn.del(workers_key)
93
- Processor::WORKER_STATE.each_pair do |tid, hash|
94
+ curstate.each_pair do |tid, hash|
94
95
  conn.hset(workers_key, tid, Sidekiq.dump_json(hash))
95
96
  end
96
97
  conn.expire(workers_key, 60)
@@ -102,7 +103,7 @@ module Sidekiq
102
103
  conn.multi do
103
104
  conn.sadd('processes', key)
104
105
  conn.exists(key)
105
- conn.hmset(key, 'info', to_json, 'busy', Processor::WORKER_STATE.size, 'beat', Time.now.to_f, 'quiet', @done)
106
+ conn.hmset(key, 'info', to_json, 'busy', curstate.size, 'beat', Time.now.to_f, 'quiet', @done)
106
107
  conn.expire(key, 60)
107
108
  conn.rpop("#{key}-signals")
108
109
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Sidekiq
3
- VERSION = "5.2.0"
3
+ VERSION = "5.2.1"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.0
4
+ version: 5.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Perham
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-09 00:00:00.000000000 Z
11
+ date: 2018-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis