Skip to content

Commit 0d34125

Browse files
authored
Try another fix to windows workers not restarting (#39)
For some reason, we seem to keep on getting Windows machines picking up jobs before they restart; let's see if increasing the restart delay works.
1 parent 54b5123 commit 0d34125

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

windows-kvm/buildkite-worker/setup_scripts/0-02-install-buildkite-agent.ps1

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ iex ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercon
1616
& nssm set buildkite-agent AppStderr "C:\buildkite-agent\buildkite-agent.log"
1717
& nssm set buildkite-agent ObjectName "$env:UserDomain\$env:UserName" "$env:windows_password"
1818
& nssm set buildkite-agent AppExit "Default" "Exit"
19+
& nssm set buildkite-agent AppRestartDelay "10000"
1920

2021
# Customize buildkite config
2122
$bk_config="C:\buildkite-agent\buildkite-agent.cfg"

0 commit comments

Comments
 (0)