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 +4 -4
- data/app/jobs/billing/issue_fiscal_doc.rb +4 -0
- data/lib/billing/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0947871a8781aa70a9ab5fb3e8f920572f804c0
|
4
|
+
data.tar.gz: 2834ca5fba520f2aa7de92f0bf1475ce0dcc0bb0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
data/lib/billing/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|