Skip to content

Commit

Permalink
fix: set rich panel to transient (#214)
Browse files Browse the repository at this point in the history
* fix: set rich panel to transient

* unit tests
  • Loading branch information
benieric authored Oct 1, 2024
1 parent 0dd72ae commit e2f2bec
Show file tree
Hide file tree
Showing 3 changed files with 132 additions and 45 deletions.
117 changes: 78 additions & 39 deletions src/sagemaker_core/main/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,8 @@ def wait_for_status(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -1271,7 +1272,8 @@ def wait_for_status(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -2687,7 +2689,8 @@ def wait(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -3169,7 +3172,8 @@ def wait(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -3543,7 +3547,8 @@ def wait_for_status(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -4536,7 +4541,8 @@ def wait(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -6594,7 +6600,8 @@ def wait_for_status(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -7577,7 +7584,8 @@ def wait(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -8048,7 +8056,8 @@ def wait_for_status(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -9564,7 +9573,8 @@ def wait_for_status(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -10432,7 +10442,8 @@ def wait_for_status(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -10927,7 +10938,8 @@ def wait_for_status(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -11316,7 +11328,8 @@ def wait_for_status(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -11891,7 +11904,8 @@ def wait_for_status(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -12392,7 +12406,8 @@ def wait(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -12964,7 +12979,8 @@ def wait_for_status(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -13570,7 +13586,8 @@ def wait_for_status(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -13987,7 +14004,8 @@ def wait_for_status(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -14622,7 +14640,8 @@ def wait_for_status(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -15029,7 +15048,8 @@ def wait(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -15595,7 +15615,8 @@ def wait(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -16343,7 +16364,8 @@ def wait_for_status(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -17601,7 +17623,8 @@ def wait_for_status(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -18009,7 +18032,8 @@ def wait(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -18966,7 +18990,8 @@ def wait_for_status(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -19433,7 +19458,8 @@ def wait_for_status(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -20822,7 +20848,8 @@ def wait_for_status(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -21391,7 +21418,8 @@ def wait_for_status(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -22264,7 +22292,8 @@ def wait(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -22735,7 +22764,8 @@ def wait_for_status(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -23133,7 +23163,8 @@ def wait_for_status(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -24154,7 +24185,8 @@ def wait(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -24593,7 +24625,8 @@ def wait_for_status(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -25238,7 +25271,8 @@ def wait_for_status(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -26542,7 +26576,8 @@ def wait(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -27012,7 +27047,8 @@ def wait(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -27839,7 +27875,8 @@ def wait_for_status(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -28500,7 +28537,8 @@ def wait_for_status(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down Expand Up @@ -28985,7 +29023,8 @@ def wait_for_status(
Group(progress, status),
title="Wait Log Panel",
border_style=Style(color=Color.BLUE.value),
)
),
transient=True,
):
while True:
self.refresh()
Expand Down
Loading

0 comments on commit e2f2bec

Please sign in to comment.