mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
join() parallel process instead of a recursive sleep
its not clear to me why the recursive calls were chosen originally. this should address https://github.com/saltstack/salt/issues/43668
This commit is contained in:
parent
6e7007a4dc
commit
f00a359cdf
1 changed files with 1 additions and 2 deletions
|
@ -2183,8 +2183,7 @@ class State(object):
|
|||
continue
|
||||
if run_dict[tag].get('proc'):
|
||||
# Run in parallel, first wait for a touch and then recheck
|
||||
time.sleep(0.01)
|
||||
return self.check_requisite(low, running, chunks, pre)
|
||||
run_dict[tag].get('proc').join()
|
||||
if r_state == 'onfail':
|
||||
if run_dict[tag]['result'] is True:
|
||||
fun_stats.add('onfail') # At least one state is OK
|
||||
|
|
Loading…
Add table
Reference in a new issue