sidekiq-heartbeat_monitor 1.0.0.0 → 1.0.0.1

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
  SHA1:
3
- metadata.gz: 6a08a4ffbf513523621124605615a5a4ba96d93a
4
- data.tar.gz: c6cae1bb4cf1b39ba73f430225ef72a83f62ccc9
3
+ metadata.gz: 9fe057a92d945fc257bcf91b048cd33e41eb23d3
4
+ data.tar.gz: 04f7c8b1c5b16f6f232ed79571f4e2e77b9e7778
5
5
  SHA512:
6
- metadata.gz: 59567a1a5708c62811a3d7f55d81cba26aab7af8e3b35342ce7ea1834f3b59a2caf546afe7c984d44dba6e209018bbf737e8d4f6239b684be268bd4c44a65bc5
7
- data.tar.gz: b964767137636d41e651e8d76f8c948163c32da3222c3efc7c83bb056e05c1f56c8581c55ba354112a45ea46dd1faeb33f1e83e75877d4ffade3734e08fd5c8e
6
+ metadata.gz: 9b001398e4a5b6b8359c165cef198313a1849949edd5a0e776ea01dd7fc5482525b4f78bc566d9840626114c32d2cccdc06f13aaaf2a3f2da5d1cf42996b9240
7
+ data.tar.gz: 269c7480fbbebd870abdfff6d94c881b036f16823e09eb39c6eab54644073e4f2a9bc894c5a9e4ae7c28c844b3444060e0e0603721521a699c56961429b8afe5
@@ -1,5 +1,5 @@
1
1
  module Sidekiq
2
2
  module HeartbeatMonitor
3
- VERSION = '1.0.0.0'
3
+ VERSION = '1.0.0.1'
4
4
  end
5
5
  end
@@ -28,7 +28,9 @@ module Sidekiq
28
28
  # @param msg [String] Message to post
29
29
  # @param queue_name [String] Queue we're concerned with
30
30
  def send_server_alert(msg, queue_name)
31
- Sidekiq::HeartbeatMonitor::Config.send_slowed_down_alert(msg, queue_name)
31
+ queue = Sidekiq::Queue.all.find{ |q| q.name.to_s == queue_name.to_s }
32
+
33
+ Sidekiq::HeartbeatMonitor::Config.send_slowed_down_alert(msg, queue)
32
34
 
33
35
  true
34
36
  end
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.0.0
4
+ version: 1.0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jay El-Kaake
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-21 00:00:00.000000000 Z
11
+ date: 2019-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dont_repeat_for