sidekiq-heartbeat_monitor 1.0.3.1 → 1.0.3.2

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
- SHA1:
3
- metadata.gz: 94ac413bdcca367c06df67dbb4b8ed922814031b
4
- data.tar.gz: 317491055dd7b4caaaeeb03485af086ea9999b42
2
+ SHA256:
3
+ metadata.gz: 950196b2ee9086c4602b7f096e4232ce711c4c6497e3c03c32e826b1e45a3ff0
4
+ data.tar.gz: 87a287d6d732765595cc8d7bee466938c3ad0f781d2446c757d909f06c01147e
5
5
  SHA512:
6
- metadata.gz: 38887358fc7d9489421273c1fa9c66996d5127bf9c40dae0216f9b380b9e72903db1b98529970454bae2137c0a5009e492660da9282058a84349e8d03760c721
7
- data.tar.gz: 5c4cab171ad4c1425e100afbecda3f3169ea4db109eb0b318ab0f1469df8205a614ab9337c15f80c80377f5dbad021331555a486293faa1d9bca68a434d0aba4
6
+ metadata.gz: 20f6ca5e135ec7217e54739f75c6409bb01711158a2afda20c2cf428aae1842057c8741d273ef186fc96bd1a720edbcd27ec9eb7e796dd878439d256e380918f
7
+ data.tar.gz: 104b87bce693e0908e2c4caf9285eadd6bc8e2600b220559465010df1b7db1f8d06960db3b3643b159f95b34da0a2f4766a06174b966f9cd3b4ca9339c24bc1d
data/README.md CHANGED
@@ -81,5 +81,10 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/jayelk
81
81
  This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to
82
82
  adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
83
83
 
84
+ ### Supported versions
85
+ Battle-tested @ [Fera.ai](https://www.fera.ai) with:
86
+ * Ruby 2.4 - 2.6.7 (but up to 3.0 should be fine)
87
+ * Sidekiq 3-5
88
+
84
89
  ### License
85
90
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -27,7 +27,7 @@ module Sidekiq
27
27
  return @global_config if queue.blank?
28
28
 
29
29
  queue_name = queue.is_a?(String) || queue.is_a?(Symbol) ? queue.to_s : queue.name.to_s
30
- @queue_config[queue_name] || @global_config
30
+ @queue_config.to_h[queue_name] || @global_config
31
31
  end
32
32
 
33
33
  def self.send_test!(queue_name = nil)
@@ -13,6 +13,8 @@ module Sidekiq
13
13
  Sidekiq.redis do |redis|
14
14
  Sidekiq::Queue.all.each do |q|
15
15
  queue_config = Sidekiq::HeartbeatMonitor.config(q)
16
+ next if queue_config.nil?
17
+
16
18
  check_queue_size!(q, queue_config)
17
19
 
18
20
  key = "Sidekiq:HeartbeatMonitor:Worker-#{q.name}.enqueued_at"
@@ -1,5 +1,5 @@
1
1
  module Sidekiq
2
2
  module HeartbeatMonitor
3
- VERSION = '1.0.3.1'
3
+ VERSION = '1.0.3.2'
4
4
  end
5
5
  end
@@ -1,9 +1,9 @@
1
1
  module Sidekiq
2
2
  module HeartbeatMonitor
3
3
  class Worker
4
-
5
4
  include Sidekiq::Worker
6
5
  include Sidekiq::HeartbeatMonitor::Util
6
+
7
7
  sidekiq_options retry: 0
8
8
 
9
9
  ##
@@ -13,6 +13,7 @@ module Sidekiq
13
13
  Sidekiq.redis do |redis|
14
14
  q = Sidekiq::Queue.all.find{ |q| q.name.to_s == queue_name.to_s }
15
15
  queue_config = Sidekiq::HeartbeatMonitor.config(q)
16
+ return if queue_config.nil?
16
17
 
17
18
  key = "Sidekiq:HeartbeatMonitor:Worker-#{queue_name}.enqueued_at"
18
19
  enqueued_at = redis.get(key).to_i
@@ -37,7 +37,7 @@ Gem::Specification.new do |spec|
37
37
 
38
38
  spec.add_development_dependency "bundler"
39
39
  spec.add_development_dependency "temping", "~> 3.3"
40
- spec.add_development_dependency "rake", "~> 10"
40
+ spec.add_development_dependency "rake", ">= 12.3.3"
41
41
  spec.add_development_dependency "rspec", '~> 3.4'
42
42
  spec.add_development_dependency "sqlite3", '~> 1.3'
43
43
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-heartbeat_monitor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3.1
4
+ version: 1.0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jay El-Kaake
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-06 00:00:00.000000000 Z
11
+ date: 2021-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq
@@ -126,16 +126,16 @@ dependencies:
126
126
  name: rake
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - "~>"
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
- version: '10'
131
+ version: 12.3.3
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - "~>"
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
- version: '10'
138
+ version: 12.3.3
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: rspec
141
141
  requirement: !ruby/object:Gem::Requirement
@@ -195,7 +195,7 @@ homepage: https://www.github.com/jayelkaake/sidekiq-heartbeat_monitor
195
195
  licenses:
196
196
  - MIT
197
197
  metadata: {}
198
- post_install_message:
198
+ post_install_message:
199
199
  rdoc_options: []
200
200
  require_paths:
201
201
  - lib
@@ -210,9 +210,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
210
  - !ruby/object:Gem::Version
211
211
  version: '0'
212
212
  requirements: []
213
- rubyforge_project:
214
- rubygems_version: 2.6.10
215
- signing_key:
213
+ rubygems_version: 3.0.9
214
+ signing_key:
216
215
  specification_version: 4
217
216
  summary: Makes it easy to monitor your sidekiq queues, especially with Slack.
218
217
  test_files: []