Improve identity for scheduler

This commit is contained in:
Sam 2014-08-19 20:56:46 +10:00
parent 6d9a88c33b
commit b160882ef2
1 changed files with 1 additions and 1 deletions

View File

@ -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