billing 0.0.7g → 0.0.7i

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: e2a69d9b21174fe0d34ed5bdaae913df54521747
4
- data.tar.gz: 52b8398ee8034dcb43ccc03f425b41e4dcdf15cb
3
+ metadata.gz: d0947871a8781aa70a9ab5fb3e8f920572f804c0
4
+ data.tar.gz: 2834ca5fba520f2aa7de92f0bf1475ce0dcc0bb0
5
5
  SHA512:
6
- metadata.gz: 10f949e395a7261b22b946be0b29971c137bd61358db71fca0d333b3c88108fc3bc947e3b0961a1fea1e4e32dd527c30b61b12912351e1b18885518b1cf42e42
7
- data.tar.gz: 77ddefc14f7c01c0df5f017112ada6a2f5584443183640a9d30cdbcfb8b0001edc420c6604b973f39d1a7150baaa2826a85619a8bc704f4f883bfecd1733fb02
6
+ metadata.gz: 3dab27eda9362c02de2c7b510dc7d3a3f52e2bd5834d438f951ca29c721c44b7ba8f474798d1ca030b0821284e07bfccd999c781895eae95df4152d86f45aaea
7
+ data.tar.gz: 1ee6a7e48da1e9d50abf84cecf95c95f7036a14adc072ceb2e5e9a14581e669305070323434f0fc8dc6701405cc9b08cb2258127f0b8e61253fb08e931ecfbec
@@ -27,6 +27,10 @@ module Resque
27
27
  return false if Resque.redis.get(key).to_i > now
28
28
  return true if Resque.redis.getset(key, timeout).to_i <= now
29
29
  return false
30
+ rescue ActiveRecord::RecordNotFound #redis_key exception
31
+ p "Not found!!!"
32
+ sleep 1
33
+ reenqueue(*args) #will stop if new redis_key exception
30
34
  end
31
35
 
32
36
  def unlock_queue(*args)
@@ -1,3 +1,3 @@
1
1
  module Billing
2
- VERSION = "0.0.7g"
2
+ VERSION = "0.0.7i"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: billing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7g
4
+ version: 0.0.7i
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Vangelov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-24 00:00:00.000000000 Z
11
+ date: 2016-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails