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…
Reference in New Issue