rails-autoscale-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: 6bc9dfced27f624031460c209644ab7ffe8c45a92c600c7f13bee3539747905b
4
- data.tar.gz: 65ad440095c9faad55dd30771599edb24bced5e31d5b4dfd62ba7128830d1984
3
+ metadata.gz: 79939236af24b5c04fb9f222bcb1a5f3efe0ad5832f1fd0ded93d663db5dd564
4
+ data.tar.gz: beebbab82136f26e239e911f7d2e95856ab9e90782abc0d81cf49434c0b710bb
5
5
  SHA512:
6
- metadata.gz: 28c65a27173f0ec4c1a27bea832926a60d32e3799af7dc8d880501e120c52192b2cb6d500550927afa9709751c5e740419c576e3e236dfcf32fd9f90aa410fca
7
- data.tar.gz: 3cfdb1e692c4f8c2693b0ff404531d27e34d14e8dce38f81ae149acf145e6da109a701945f58fc896a01f6fa94db20c16e873c54fdf29f29f504a956d9c670bf
6
+ metadata.gz: e51305f4016696483362aaee86d019bb9dc7d3f148cc4e522b7601edda38f2c74a41f9213455ac1b6c16a0bfa2880df6ecd0774ba62fa03fc2d27d4c92f4c3f8
7
+ data.tar.gz: 20943ae878cecd01c0a1e5d5edd9807a48cdb857fa1c902cdc65417700f819bde9e9d3fcbfaf37c6cbd6d2483c9f0596d5704ce8a75c2c55b761716ec92f7407
@@ -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: rails-autoscale-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: rails-autoscale-core
@@ -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