A GPU task manager for Windows, Linux, and WSL: per-process VRAM, GPU activity, and LLM model/KV-cache insights (Windows AMD and NVIDIA).
Python
Ignore queued row highlights during shutdown
Scott Hanselman03a0dd8c6458
diff --git a/src/gputaskman/app.py b/src/gputaskman/app.pyindex 83054c1..0fb567f 100644--- a/src/gputaskman/app.py+++ b/src/gputaskman/app.py@@ -759,7 +759,7 @@ class GpuTaskManager(App):# ------------------------------------------------------------------ events/actionsdef on_data_table_row_highlighted(self, event: DataTable.RowHighlighted) -> None:- if event.row_key is not None and event.row_key.value is not None:+ if self.is_running and event.row_key is not None and event.row_key.value is not None:self.selected_key = str(event.row_key.value)self.render_inspector()diff --git a/tests/test_recovery.py b/tests/test_recovery.pyindex 5c0ba11..738923c 100644--- a/tests/test_recovery.py+++ b/tests/test_recovery.py@@ -485,6 +485,12 @@ class CollectorResourceTests(TestCase):class RecoveryUiTests(IsolatedAsyncioTestCase):+ def test_queued_row_highlight_is_ignored_after_shutdown(self):+ app = GpuTaskManager()+ event = SimpleNamespace(row_key=SimpleNamespace(value="10"))+ app.on_data_table_row_highlighted(event)+ self.assertIsNone(app.selected_key)+async def test_histories_and_row_ownership_stay_in_stable_slots_across_recovery(self):first, second = adapter(1), adapter(2, 0x1002, 2)topology = [first, second]