Skip to content

Commit c9a60fe

Browse files
authored
Merge pull request #132 from quadsproject/development
fix: clear previous tracking CLI elements.
2 parents 012a978 + 7ce46f8 commit c9a60fe

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/quads_client/commands/track.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ def _get_pending_moves(self, api, cloud=None, hostname=None):
114114

115115
def _wait_for_active_all(self, api, console, cloud, pending):
116116
try:
117-
with Live(self._build_pending_table(pending), console=console, refresh_per_second=0.2) as live:
117+
with Live(
118+
self._build_pending_table(pending), console=console, refresh_per_second=0.2, transient=True
119+
) as live:
118120
while True:
119121
time.sleep(10)
120122
active = api.get_all_move_status(cloud=cloud)
@@ -130,7 +132,9 @@ def _wait_for_active_all(self, api, console, cloud, pending):
130132

131133
def _wait_for_active_single(self, api, console, hostname, pending):
132134
try:
133-
with Live(self._build_pending_table(pending), console=console, refresh_per_second=0.2) as live:
135+
with Live(
136+
self._build_pending_table(pending), console=console, refresh_per_second=0.2, transient=True
137+
) as live:
134138
while True:
135139
time.sleep(10)
136140
data = api.get_move_status(hostname)

0 commit comments

Comments
 (0)