Skip to content

Commit 198db6e

Browse files
committed
Respect grace period on windows
1 parent 5b02d95 commit 198db6e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packer/windows/conf/buildkite-agent/scripts/terminate-instance.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@ if ($lastexitcode -eq 0) {
2222
aws autoscaling set-instance-health `
2323
--instance-id "$InstanceId" `
2424
--region "$Region" `
25-
--health-status Unhealthy `
26-
--no-should-respect-grace-period
25+
--health-status Unhealthy
2726
} else {
2827
Write-Output "terminate-instance: restarting agent..."
2928
nssm start buildkite-agent

0 commit comments

Comments
 (0)