polish #4991
This commit is contained in:
parent
582b57a3a6
commit
a3b4fafdbb
|
@ -22,8 +22,7 @@ require "sidekiq/middleware/current_attributes"
|
|||
Sidekiq::CurrentAttributes.persist(Myapp::Current) # Your AS:CurrentAttributes singleton
|
||||
```
|
||||
- Retry Redis operation if we get an `UNBLOCKED` Redis error. [#4985]
|
||||
- **BREAKING CHANGE** Run existing signal-handling code, if there is any, before running sidekiq's
|
||||
signal-handling code. [#4991]
|
||||
- Run existing signal traps, if any, before running Sidekiq's trap. [#4991]
|
||||
|
||||
6.2.2
|
||||
---------
|
||||
|
|
|
@ -50,8 +50,9 @@ module Sidekiq
|
|||
if old_handler.respond_to?(:call)
|
||||
begin
|
||||
old_handler.call
|
||||
rescue Exception
|
||||
puts $!.inspect
|
||||
rescue Exception => exc
|
||||
# signal handlers can't use Logger so puts only
|
||||
puts ["Error in #{sig} handler", exc].inspect
|
||||
end
|
||||
end
|
||||
self_write.puts(sig)
|
||||
|
|
Loading…
Reference in New Issue