summaryrefslogtreecommitdiff
path: root/lib/oxidized/worker.rb
diff options
context:
space:
mode:
authorytti <saku@ytti.fi>2017-02-11 04:43:49 +0400
committerGitHub <noreply@github.com>2017-02-11 04:43:49 +0400
commit6f67c1a9f8288b8a090f4834caba4b7f181ddf18 (patch)
treeab4825f4bc6a79a48bedd7fe92fc36eeafb513f2 /lib/oxidized/worker.rb
parente6e72296d7e22eaa6fe20fd0b2007d3b58a078a2 (diff)
parent64fc260a4da53af34f1f8288d4ec68c6583907ee (diff)
Merge pull request #715 from Netflix-Skunkworks/only-next-with-new-thread
Next with new thread functionality (v2)
Diffstat (limited to 'lib/oxidized/worker.rb')
-rw-r--r--lib/oxidized/worker.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/oxidized/worker.rb b/lib/oxidized/worker.rb
index 1952d01..80d65cb 100644
--- a/lib/oxidized/worker.rb
+++ b/lib/oxidized/worker.rb
@@ -3,8 +3,9 @@ module Oxidized
require 'oxidized/jobs'
class Worker
def initialize nodes
- @nodes = nodes
- @jobs = Jobs.new(Oxidized.config.threads, Oxidized.config.interval, @nodes)
+ @nodes = nodes
+ @jobs = Jobs.new(Oxidized.config.threads, Oxidized.config.interval, @nodes)
+ @nodes.jobs = @jobs
Thread.abort_on_exception = true
end