mirror of
https://github.com/discourse/discourse.git
synced 2025-03-03 23:08:39 +08:00
Improve identity for scheduler
This commit is contained in:
parent
6d9a88c33b
commit
b160882ef2
@ -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…
x
Reference in New Issue
Block a user