Merge pull request #256 from dshulyak/fix_sleep
Sleep only in case if some tasks are not finished
This commit is contained in:
commit
2528c1bb2a
@ -64,7 +64,7 @@ def wait_report(uid, timeout, interval=3):
|
|||||||
length = len(stringified_summary)
|
length = len(stringified_summary)
|
||||||
click.echo(stringified_summary, nl=False)
|
click.echo(stringified_summary, nl=False)
|
||||||
sys.stdout.flush()
|
sys.stdout.flush()
|
||||||
if summary[states.PENDING.name] + summary[states.INPROGRESS.name] == 0:
|
if summary[states.PENDING.name] + summary[states.INPROGRESS.name] != 0:
|
||||||
time.sleep(interval)
|
time.sleep(interval)
|
||||||
except errors.SolarError as err:
|
except errors.SolarError as err:
|
||||||
click.echo('')
|
click.echo('')
|
||||||
|
Loading…
Reference in New Issue
Block a user