From e5633f42ac671b17c01ab3dd36e25c3cc02c06a3 Mon Sep 17 00:00:00 2001 From: Luke Melia Date: Tue, 8 Jun 2010 01:13:23 -0400 Subject: [PATCH] Fix a bug where a worker never receives another file after it reports a deadlock error. --- lib/hydra/master.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/hydra/master.rb b/lib/hydra/master.rb index d7bcf45..e1858de 100644 --- a/lib/hydra/master.rb +++ b/lib/hydra/master.rb @@ -114,6 +114,7 @@ module Hydra #:nodoc: message.output =~ /Mysql::Error: Deadlock found/ trace "Deadlock detected running [#{message.file}]. Will retry at the end" @files.push(message.file) + send_file(worker) else @incomplete_files.delete_at(@incomplete_files.index(message.file)) trace "#{@incomplete_files.size} Files Remaining"