1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Fix a few more Exception leaks

This commit is contained in:
Mike Perham 2012-08-29 20:20:20 -07:00
parent 4883097866
commit 1d3401afd6
3 changed files with 5 additions and 5 deletions

View file

@ -10,7 +10,7 @@ module Sidekiq
logger.info { "start" }
yield
logger.info { "done: #{elapsed(start)} sec" }
rescue
rescue Exception
logger.info { "fail: #{elapsed(start)} sec" }
raise
end

View file

@ -40,8 +40,8 @@ module Sidekiq
def call(worker, msg, queue)
yield
rescue => e
raise unless msg['retry']
rescue Exception => e
raise e unless msg['retry']
msg['queue'] = queue
msg['error_message'] = e.message
@ -72,7 +72,7 @@ module Sidekiq
# Goodbye dear message, you (re)tried your best I'm sure.
logger.debug { "Dropping message after hitting the retry maximum: #{msg}" }
end
raise
raise e
end
end

View file

@ -22,7 +22,7 @@ module Sidekiq
def watchdog(last_words)
yield
rescue => ex
rescue Exception => ex
handle_exception(ex, { :context => last_words })
end