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

This needs to be process-global

This commit is contained in:
Mike Perham 2019-04-26 12:36:33 -07:00
parent 72ae52db83
commit b76dfb9e05

View file

@ -44,11 +44,11 @@ module Sidekiq
end
def process_nonce
@process_nonce ||= SecureRandom.hex(6)
@@process_nonce ||= SecureRandom.hex(6)
end
def identity
@identity ||= "#{hostname}:#{::Process.pid}:#{process_nonce}"
@@identity ||= "#{hostname}:#{::Process.pid}:#{process_nonce}"
end
def fire_event(event, options = {})