Fix a bug where a worker never receives another file after it reports a deadlock error.

This commit is contained in:
Luke Melia 2010-06-08 01:13:23 -04:00 committed by Lee Bankewitz and Luke Melia
parent dbfd9275c1
commit e5633f42ac
1 changed files with 1 additions and 0 deletions

View File

@ -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"