mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Improve identity for scheduler
This commit is contained in:
parent
6d9a88c33b
commit
b160882ef2
@ -256,7 +256,7 @@ module Scheduler
|
|||||||
end
|
end
|
||||||
|
|
||||||
def identity_key
|
def identity_key
|
||||||
@identity_key ||= "_scheduler_#{`hostname`}:#{Process.pid}:#{self.class.seq}"
|
@identity_key ||= "_scheduler_#{`hostname`}:#{Process.pid}:#{self.class.seq}:#{SecureRandom.hex}"
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.lock_key
|
def self.lock_key
|
||||||
|
Loading…
Reference in New Issue
Block a user