diff --git a/lib/hydra/master.rb b/lib/hydra/master.rb index 2dc9190..d7bcf45 100644 --- a/lib/hydra/master.rb +++ b/lib/hydra/master.rb @@ -110,7 +110,8 @@ module Hydra #:nodoc: def process_results(worker, message) if message.output =~ /ActiveRecord::StatementInvalid(.*)[Dd]eadlock/ or message.output =~ /PGError: ERROR(.*)[Dd]eadlock/ or - message.output =~ /Mysql::Error: SAVEPOINT(.*)does not exist: ROLLBACK/ + message.output =~ /Mysql::Error: SAVEPOINT(.*)does not exist: ROLLBACK/ or + message.output =~ /Mysql::Error: Deadlock found/ trace "Deadlock detected running [#{message.file}]. Will retry at the end" @files.push(message.file) else