judoscale-sidekiq 1.5.3 → 1.5.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a2b8da4e7a430e8b1e83245cb14bb6d061325a02fb27d67967edfc9d7b6c032
4
- data.tar.gz: d6beede53e905f447d658105e172d5d084418449b6260be627f9da9284d85466
3
+ metadata.gz: 307a41772529de96d39706e06383c9fe3123152e840a5fa8c75e5961fd0e29f6
4
+ data.tar.gz: 799673099506b479c7344b16d7269c64307013dd59f55172fec66a92011bab4f
5
5
  SHA512:
6
- metadata.gz: 3d747d038e93a4d0b16d6290f7196bfeac4b1a75402157e2c1030b062e661a245fb17a2ccabebf1a38257f3b348f3e78274bfd5922366439593118c29ef424bb
7
- data.tar.gz: f42b01ef1bb5f5b43b6beda6b20b9b10c6d8ff9aa5bdffedf6b72ed67e37a19b072b08bf4aa33d7de41da26dcb49317bb6776b623caeb33fbbd659a02d668808
6
+ metadata.gz: f1c5656641bb3ec4cdbdf940adf612010eee5e89132f5c099348a6deb14be38797b7b277450fe0483c1e92fb88bfb9329ec955768032e31c94b063ed9d3b7ae3
7
+ data.tar.gz: cdcfc938f02450103b0ad9cbb924651d0024ba1fe706c625958e3775ab54ca9fe61a15c7e6f76f38f48ec75bf5036c6174a217cd11194e9f27b659346505503d
@@ -21,7 +21,9 @@ module Judoscale
21
21
  if track_busy_jobs?
22
22
  busy_counts = Hash.new { |h, k| h[k] = 0 }
23
23
  ::Sidekiq::Workers.new.each do |pid, tid, work|
24
- payload = work["payload"]
24
+ # Sidekiq 7.2 added a new Sidekiq::Work type; hash access is deprecated
25
+ payload = work.payload if work.respond_to?(:payload)
26
+ payload ||= work["payload"]
25
27
  # payload is unparsed in Sidekiq 7
26
28
  payload = JSON.parse(payload) if payload.is_a?(String)
27
29
  busy_counts[payload["queue"]] += 1
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Judoscale
4
4
  module Sidekiq
5
- VERSION = "1.5.3"
5
+ VERSION = "1.5.4"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: judoscale-sidekiq
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.3
4
+ version: 1.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam McCrea
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-01-25 00:00:00.000000000 Z
13
+ date: 2024-02-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: judoscale-ruby
@@ -18,14 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - '='
20
20
  - !ruby/object:Gem::Version
21
- version: 1.5.3
21
+ version: 1.5.4
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - '='
27
27
  - !ruby/object:Gem::Version
28
- version: 1.5.3
28
+ version: 1.5.4
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: sidekiq
31
31
  requirement: !ruby/object:Gem::Requirement