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:
parent
72ae52db83
commit
b76dfb9e05
1 changed files with 2 additions and 2 deletions
|
@ -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 = {})
|
||||
|
|
Loading…
Add table
Reference in a new issue