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:
Matt Phillips 2018-02-15 10:01:16 -05:00
parent 6e7007a4dc
commit f00a359cdf

View file

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