mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
cleanup
This commit is contained in:
parent
4895687bc5
commit
67699419c2
1 changed files with 2 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue