Fix a bug where a worker never receives another file after it reports a deadlock error.
This commit is contained in:
parent
dbfd9275c1
commit
e5633f42ac
|
@ -114,6 +114,7 @@ module Hydra #:nodoc:
|
||||||
message.output =~ /Mysql::Error: Deadlock found/
|
message.output =~ /Mysql::Error: Deadlock found/
|
||||||
trace "Deadlock detected running [#{message.file}]. Will retry at the end"
|
trace "Deadlock detected running [#{message.file}]. Will retry at the end"
|
||||||
@files.push(message.file)
|
@files.push(message.file)
|
||||||
|
send_file(worker)
|
||||||
else
|
else
|
||||||
@incomplete_files.delete_at(@incomplete_files.index(message.file))
|
@incomplete_files.delete_at(@incomplete_files.index(message.file))
|
||||||
trace "#{@incomplete_files.size} Files Remaining"
|
trace "#{@incomplete_files.size} Files Remaining"
|
||||||
|
|
Loading…
Reference in New Issue