add new setting 'random_reauth_delay' which delays the re-auth attempts of a minion by random seconds to receive a changed master-key.

This commit is contained in:
Volker Schwicking 2013-07-08 16:58:29 +02:00
parent 8fbbede033
commit 9c82c0e401
2 changed files with 1 additions and 2 deletions

View File

@ -106,7 +106,6 @@
# 0 and the defined value.
#random_reauth_delay: 60
# The loop_interval sets how long in seconds the minion will wait between
# evaluating the scheduler and running cleanup tasks. This defaults to a
# sane 60 seconds, but if the minion scheduler needs to be evaluated more

View File

@ -529,7 +529,7 @@ class Minion(object):
# random seconds if set in config with random_reauth_delay
if 'random_reauth_delay' in self.opts:
reauth_delay = randint(0, int(self.opts['random_reauth_delay']) )
log.debug("Wait {0} seconds to re-authenticate".format(reauth_delay))
log.debug("Waiting {0} seconds to re-authenticate".format(reauth_delay))
time.sleep(reauth_delay)
self.authenticate()