zhong 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/zhong/job.rb +2 -1
- data/lib/zhong/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb9ab1ce96b39e521d36cf4affe642be937a30b3
|
4
|
+
data.tar.gz: a517d0f704b84c88293cb944c7baa7d4061e3e50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 928f9c6ffe3189ad8ca6a4a6dd81516835f975bac08017232d3fe8af175be48db0682c945683f1151b5925f1e78e102ef9525ea22fa36be371c3f635a3847a60
|
7
|
+
data.tar.gz: 440927716a0dafdd0793e07532d59c466d14d3997dd90a3eb7e83e7d3fbeb4cb5a249cf8a571922c831572d2c7462523fe44f27217b14a8c7b695d7b086c2bed
|
data/CHANGELOG.md
CHANGED
data/lib/zhong/job.rb
CHANGED
@@ -23,6 +23,7 @@ module Zhong
|
|
23
23
|
@long_running_timeout = config[:long_running_timeout]
|
24
24
|
@running = false
|
25
25
|
@first_run = true
|
26
|
+
@last_ran = nil
|
26
27
|
@id = Digest::SHA256.hexdigest(@name)
|
27
28
|
end
|
28
29
|
|
@@ -183,7 +184,7 @@ module Zhong
|
|
183
184
|
end
|
184
185
|
|
185
186
|
def redis_lock
|
186
|
-
@lock ||= Suo::Client::Redis.new(lock_key, client:
|
187
|
+
@lock ||= Suo::Client::Redis.new(lock_key, client: redis, stale_lock_expiration: @long_running_timeout)
|
187
188
|
end
|
188
189
|
end
|
189
190
|
end
|
data/lib/zhong/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zhong
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Elser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: suo
|
@@ -276,7 +276,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
276
276
|
version: '0'
|
277
277
|
requirements: []
|
278
278
|
rubyforge_project:
|
279
|
-
rubygems_version: 2.5.
|
279
|
+
rubygems_version: 2.5.2
|
280
280
|
signing_key:
|
281
281
|
specification_version: 4
|
282
282
|
summary: Reliable, distributed cron.
|