judoscale-sidekiq 1.5.3 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile-sidekiq-5 +0 -1
- data/Gemfile-sidekiq-6 +8 -0
- data/lib/judoscale/sidekiq/metrics_collector.rb +3 -1
- data/lib/judoscale/sidekiq/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51170392a136429bb263dc8d764f11be441dc3d2e0b0cd887e9939c3a6dfe66e
|
4
|
+
data.tar.gz: fe52ecd6fd450628e670519a812855a2b149276cc8f7d5e0a0f44c09485dd6e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ffb97f0cf3330e9efa9f235e7b22d265b5a788b29f3c0407603f8473e896a22a01670816e4ad2706b7a8e60dbd65403203a06b19dbabfb7782efd1fcd8b9e9f
|
7
|
+
data.tar.gz: cf8b5fec365f2d392691dda9b00bba3d33546aa62b2b98f11f777cc1bc1fd2fb6dc483eae6caa47dc8ac909ec62ea816a6de29e884ee3088f2e231d281f14e3b
|
data/Gemfile-sidekiq-5
CHANGED
data/Gemfile-sidekiq-6
ADDED
@@ -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
|
-
|
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
|
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.
|
4
|
+
version: 1.6.0
|
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-
|
13
|
+
date: 2024-04-26 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.
|
21
|
+
version: 1.6.0
|
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.
|
28
|
+
version: 1.6.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: sidekiq
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -49,6 +49,7 @@ extra_rdoc_files: []
|
|
49
49
|
files:
|
50
50
|
- Gemfile
|
51
51
|
- Gemfile-sidekiq-5
|
52
|
+
- Gemfile-sidekiq-6
|
52
53
|
- Rakefile
|
53
54
|
- judoscale-sidekiq.gemspec
|
54
55
|
- lib/judoscale-sidekiq.rb
|