added new mysql deadlock message

This commit is contained in:
Nick Gauthier 2010-06-07 12:36:40 -04:00
parent ae2895b6fc
commit 6fbc582fe5
1 changed files with 2 additions and 1 deletions

View File

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