mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
Improve identity for scheduler
This commit is contained in:
parent
6d9a88c33b
commit
b160882ef2
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,7 @@ module Scheduler
|
|||
end
|
||||
|
||||
def identity_key
|
||||
@identity_key ||= "_scheduler_#{`hostname`}:#{Process.pid}:#{self.class.seq}"
|
||||
@identity_key ||= "_scheduler_#{`hostname`}:#{Process.pid}:#{self.class.seq}:#{SecureRandom.hex}"
|
||||
end
|
||||
|
||||
def self.lock_key
|
||||
|
|
Loading…
Reference in a new issue