You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 55cbcbb
Browse filesBrowse the repository at this point in the historyBrowse files
CI: prevent display container restart during mode switching
Temporarily disable NVDisplay.ContainerLocalSystem while changing driver
modes so queued recovery actions cannot restart it during the device cycle.
Handle in-flight starts, restore the original startup type in a finally
block, and report the requested driver mode by name.
if ($service.Status-eq"Stopped"-and$container_processes.Count-eq0) {
34
+
if ($Service.Status-eq"Stopped"-and$container_processes.Count-eq0) {
30
35
break
31
36
}
32
37
if ((Get-Date) -ge$deadline) {
33
38
$process_ids=$container_processes.Id-join", "
34
39
if (-not$process_ids) { $process_ids="none" }
35
-
Write-Error"Timed out after 60s waiting for the NVIDIA display container (service status: $($service.Status); remaining NVDisplay.Container PIDs: $process_ids)"
36
-
exit1
40
+
throw"Timed out after 60s waiting for the NVIDIA display container (service status: $($Service.Status); remaining NVDisplay.Container PIDs: $process_ids)"
37
41
}
38
42
Start-Sleep-Milliseconds 500
39
43
}
@@ -45,48 +49,56 @@ function Set-DriverMode {
45
49
# This assumes we have the prior knowledge on which GPU can use which mode.
0 commit comments