mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #28547 from nmadhok/2015.8-task-error
[Backport] [2015.8] Tasks can be in queued state instead of running
This commit is contained in:
commit
cfc3146b2d
1 changed files with 1 additions and 1 deletions
|
@ -804,7 +804,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