워치독 사이드카 장애 복구 수정
This commit is contained in:
parent
190ae70d4d
commit
527027b93d
2 changed files with 66 additions and 2 deletions
|
|
@ -242,8 +242,17 @@ function Test-VoiceSidecarStack {
|
|||
"--tts-language", "KR",
|
||||
"--timeout-seconds", "5"
|
||||
)
|
||||
$output = @(& $Python @probeArgs 2>$null)
|
||||
$probeExit = $LASTEXITCODE
|
||||
# Windows PowerShell 5.1은 native stderr를 ErrorRecord로 승격한다. 스크립트
|
||||
# 전역의 Stop 정책을 그대로 두면 sidecar 장애를 복구 신호로 반환하기 전에
|
||||
# NativeCommandError로 종료하므로, 이 단일 probe 경계에서만 Continue로 낮춘다.
|
||||
$previousErrorActionPreference = $ErrorActionPreference
|
||||
try {
|
||||
$ErrorActionPreference = "Continue"
|
||||
$output = @(& $Python @probeArgs 2>$null)
|
||||
$probeExit = $LASTEXITCODE
|
||||
} finally {
|
||||
$ErrorActionPreference = $previousErrorActionPreference
|
||||
}
|
||||
return [pscustomobject]@{
|
||||
Name = "voice-sidecars"
|
||||
Ok = $probeExit -eq 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue