crono 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/crono/job.rb +2 -2
- data/lib/crono/version.rb +1 -1
- data/web/views/job.haml +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f624d8d424073a916f3bcbb1752df13cc841fb8
|
4
|
+
data.tar.gz: 4607535d5e87606d07d5db75abb7d45bfe421737
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73b0768b6797bda070bb4784ccab42f9c7474dcdeabf20eab45e99df7a25f553f4d5166f7ffb8d2d379af214cc93eed36de34baa8f2332b7f36d6012c756fd77
|
7
|
+
data.tar.gz: 58a5ccefcd546ff9b445ab521bc1f76a2db4af87d71788880f5dbeebaea15a41fb8349fb6634b4a92cc7bd5efd931643dab4f659556e636b088fe105ad026d86
|
data/Gemfile.lock
CHANGED
data/lib/crono/job.rb
CHANGED
@@ -9,13 +9,13 @@ module Crono
|
|
9
9
|
attr_accessor :performer, :period, :job_args, :last_performed_at, :job_options,
|
10
10
|
:next_performed_at, :job_log, :job_logger, :healthy, :execution_interval
|
11
11
|
|
12
|
-
def initialize(performer, period, job_args, job_options =
|
12
|
+
def initialize(performer, period, job_args, job_options = nil)
|
13
13
|
self.execution_interval = 0.minutes
|
14
14
|
self.performer, self.period = performer, period
|
15
15
|
self.job_args = JSON.generate(job_args)
|
16
16
|
self.job_log = StringIO.new
|
17
17
|
self.job_logger = Logger.new(job_log)
|
18
|
-
self.job_options = job_options
|
18
|
+
self.job_options = job_options || {}
|
19
19
|
self.next_performed_at = period.next
|
20
20
|
@semaphore = Mutex.new
|
21
21
|
end
|
data/lib/crono/version.rb
CHANGED
data/web/views/job.haml
CHANGED