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 +5 -5
- data/README.md +5 -0
- data/lib/sidekiq/heartbeat_monitor.rb +1 -1
- data/lib/sidekiq/heartbeat_monitor/scheduler.rb +2 -0
- data/lib/sidekiq/heartbeat_monitor/version.rb +1 -1
- data/lib/sidekiq/heartbeat_monitor/worker.rb +2 -1
- data/sidekiq-heartbeat_monitor.gemspec +1 -1
- metadata +10 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 950196b2ee9086c4602b7f096e4232ce711c4c6497e3c03c32e826b1e45a3ff0
|
4
|
+
data.tar.gz: 87a287d6d732765595cc8d7bee466938c3ad0f781d2446c757d909f06c01147e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,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", "
|
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.
|
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:
|
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:
|
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:
|
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
|
-
|
214
|
-
|
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: []
|