Skip to content

Commit

Permalink
Ignore trap_exit if no reason, fixes sidekiq#2057
Browse files Browse the repository at this point in the history
  • Loading branch information
mperham committed Dec 10, 2014
1 parent 3c8b1d7 commit 8edaaee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/sidekiq/launcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ def initialize(options)
end

def actor_died(actor, reason)
return if @done
# https://github.com/mperham/sidekiq/issues/2057#issuecomment-66485477
return if @done || !reason

Sidekiq.logger.warn("Sidekiq died due to the following error, cannot recover, process exiting")
handle_exception(reason)
exit(1)
Expand Down

0 comments on commit 8edaaee

Please sign in to comment.