@@ -17,12 +17,10 @@ class AgentRunner |
||
17 | 17 |
@scheduler = Rufus::Scheduler.new(frequency: ENV['SCHEDULER_FREQUENCY'].presence || 0.3) |
18 | 18 |
|
19 | 19 |
@scheduler.every 5 do |
20 |
- p :every |
|
21 | 20 |
restart_dead_workers if @running |
22 | 21 |
end |
23 | 22 |
|
24 | 23 |
@scheduler.every 60 do |
25 |
- p :every |
|
26 | 24 |
run_workers if @running |
27 | 25 |
end |
28 | 26 |
|
@@ -121,4 +119,4 @@ end |
||
121 | 119 |
require 'agents/twitter_stream_agent' |
122 | 120 |
require 'agents/jabber_agent' |
123 | 121 |
require 'huginn_scheduler' |
124 |
-require 'delayed_job_worker' |
|
122 |
+require 'delayed_job_worker' |