From 6a1c3b13253b7ef6933910015c18985103399a5d Mon Sep 17 00:00:00 2001 From: Nick Gauthier Date: Tue, 16 Feb 2010 16:37:29 -0500 Subject: [PATCH] pull files off the front of the list --- lib/hydra/master.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/hydra/master.rb b/lib/hydra/master.rb index 1a03cbb..732d9eb 100644 --- a/lib/hydra/master.rb +++ b/lib/hydra/master.rb @@ -48,7 +48,7 @@ module Hydra #:nodoc: # Send a file down to a worker. def send_file(worker) - f = @files.pop + f = @files.shift trace "Sending #{f.inspect}" worker[:io].write(RunFile.new(:file => f)) if f end