mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 08:58:59 +00:00
Add sleep to make sure the event jids don't collide
This commit is contained in:
parent
6c91249e65
commit
d2d45a6430
@ -41,6 +41,7 @@ class SaltEvent(object):
|
||||
self.__prep_stack()
|
||||
|
||||
def __prep_stack(self):
|
||||
time.sleep(0.01) # Make sure the event jids don't collide
|
||||
self.yid = salt.utils.gen_jid()
|
||||
name = 'event' + self.yid
|
||||
cachedir = self.opts.get('cachedir', os.path.join(syspaths.CACHE_DIR, self.node))
|
||||
|
Loading…
Reference in New Issue
Block a user