mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Tasks can be in queued state instead of running. Fixes #28511
This commit is contained in:
parent
63bd3e52b3
commit
804a0a6537
1 changed files with 1 additions and 1 deletions
|
@ -788,7 +788,7 @@ def _wait_for_ip(vm_ref, max_wait):
|
|||
def _wait_for_task(task, vm_name, task_type, sleep_seconds=1, log_level='debug'):
|
||||
time_counter = 0
|
||||
starttime = time.time()
|
||||
while task.info.state == 'running':
|
||||
while task.info.state == 'running' or task.info.state == 'queued':
|
||||
if time_counter % sleep_seconds == 0:
|
||||
message = "[ {0} ] Waiting for {1} task to finish [{2} s]".format(vm_name, task_type, time_counter)
|
||||
if log_level == 'info':
|
||||
|
|
Loading…
Add table
Reference in a new issue