dyoder-hive 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/hive/scheduler.rb +5 -1
- metadata +1 -1
data/lib/hive/scheduler.rb
CHANGED
@@ -29,7 +29,11 @@ module Hive
|
|
29
29
|
if self.respond_to?( method )
|
30
30
|
Thread.new do
|
31
31
|
logger.info "Running task #{method} ..."
|
32
|
-
|
32
|
+
begin
|
33
|
+
self.send( method )
|
34
|
+
rescue Exception => e
|
35
|
+
logger.error e
|
36
|
+
end
|
33
37
|
logger.info "Task #{method} complete."
|
34
38
|
end
|
35
39
|
else
|