rsched 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +6 -0
- data/lib/rsched/command/rsched.rb +3 -1
- data/lib/rsched/engine.rb +2 -2
- data/lib/rsched/version.rb +1 -1
- metadata +4 -4
data/ChangeLog
CHANGED
@@ -1,15 +1,17 @@
|
|
1
1
|
require 'optparse'
|
2
2
|
require 'rsched/engine'
|
3
|
+
require 'rsched/version'
|
3
4
|
|
4
5
|
op = OptionParser.new
|
5
6
|
|
6
7
|
op.banner += " [-- <ARGV-for-exec-or-run>]"
|
8
|
+
op.version = RSched::VERSION
|
7
9
|
|
8
10
|
confout = nil
|
9
11
|
schedule = []
|
10
12
|
|
11
13
|
defaults = {
|
12
|
-
:timeout =>
|
14
|
+
:timeout => 300,
|
13
15
|
:resume => 3600,
|
14
16
|
:delete => 2592000,
|
15
17
|
:delay => 0,
|
data/lib/rsched/engine.rb
CHANGED
@@ -180,7 +180,7 @@ class Engine
|
|
180
180
|
end
|
181
181
|
|
182
182
|
def cleanup_old_entries(ident)
|
183
|
-
@lock.delete_before(ident, Time.now.to_i-@delete)
|
183
|
+
@lock.delete_before(ident, Time.now.to_i-@delete-@delay)
|
184
184
|
end
|
185
185
|
|
186
186
|
class TimerThread
|
@@ -247,7 +247,7 @@ class Engine
|
|
247
247
|
def try_extend(now, token)
|
248
248
|
if now > @extend_time
|
249
249
|
puts "extending token=#{token.inspect}"
|
250
|
-
@lock.extend_timeout(token
|
250
|
+
@lock.extend_timeout(token)
|
251
251
|
@extend_time = now + @extend_timeout
|
252
252
|
end
|
253
253
|
end
|
data/lib/rsched/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rsched
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 3
|
10
|
+
version: 0.3.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sadayuki Furuhashi
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-07-
|
18
|
+
date: 2011-07-26 00:00:00 +09:00
|
19
19
|
default_executable: rsched
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|