fairway 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -42,6 +42,12 @@ module Fairway
42
42
 
43
43
  ::Sidekiq.logger.debug "#{self.class.name}#retrieve_work"
44
44
 
45
+ if ::Sidekiq.redis{ |conn| conn.ping } != "PONG"
46
+ # Couldn't properly connect to main sidekiq redis.
47
+ # Don't process any additional jobs until resolved.
48
+ return nil
49
+ end
50
+
45
51
  fetch_order.each do |fetch|
46
52
  work = fetch.retrieve_work(blocking: false)
47
53
 
@@ -1,3 +1,3 @@
1
1
  module Fairway
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fairway
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-14 00:00:00.000000000 Z
12
+ date: 2013-10-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport