mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #29642 from cachedout/issue_29199
Correctly restart deamonized minions on failure
This commit is contained in:
commit
7c38dec0ad
1 changed files with 5 additions and 1 deletions
|
@ -94,7 +94,11 @@ def minion_process(queue):
|
|||
random_delay = randint(1, delay)
|
||||
log.info('Sleeping random_reauth_delay of {0} seconds'.format(random_delay))
|
||||
# preform delay after minion resources have been cleaned
|
||||
queue.put(random_delay)
|
||||
if minion.options.daemon:
|
||||
time.sleep(random_delay)
|
||||
salt_minion()
|
||||
else:
|
||||
queue.put(random_delay)
|
||||
else:
|
||||
queue.put(0)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue