1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
This commit is contained in:
Mike Perham 2012-12-19 09:38:47 -08:00
parent 4895687bc5
commit 67699419c2

View file

@ -43,8 +43,8 @@ module Sidekiq
worker.perform(*cloned(msg['args']))
end
end
rescue Exception => ex
handle_exception(ex, msg || { :message => msgstr })
rescue Exception => ex
handle_exception(ex, msg || { :message => msgstr })
raise
end
end
@ -72,11 +72,9 @@ module Sidekiq
end
end
dying = false
begin
yield
rescue Exception
dying = true
redis do |conn|
conn.multi do
conn.incrby("stat:failed", 1)