diff options
author | Anton Aksola <anton.aksola@nebula.fi> | 2014-03-13 17:38:49 +0200 |
---|---|---|
committer | Anton Aksola <anton.aksola@nebula.fi> | 2014-03-13 17:38:49 +0200 |
commit | c045382479da3ec369e54bab678056cad804a343 (patch) | |
tree | 5b2f4a4a0a92e32d81d858a9e320b9a033a583fc /lib/oxidized/nodes.rb | |
parent | 07b534e541a69f2e90f8924e1dbe3303cdd7d2f2 (diff) |
modified worker to work on a node only once per interval
Diffstat (limited to 'lib/oxidized/nodes.rb')
-rw-r--r-- | lib/oxidized/nodes.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/oxidized/nodes.rb b/lib/oxidized/nodes.rb index 0d9fb47..eab2b1d 100644 --- a/lib/oxidized/nodes.rb +++ b/lib/oxidized/nodes.rb @@ -52,6 +52,8 @@ module Oxidized n.user = opt['user'] n.msg = opt['msg'] n.from = opt['from'] + # set last job to nil so that the node is picked for immediate update + n.last = nil put n end end |