BrokerServer should not retry on 401.

This commit is contained in:
Tingluo Huang
2026-05-21 22:37:25 -04:00
parent 3ff2186ec0
commit fd13d1f1d6

View File

@@ -108,7 +108,7 @@ namespace GitHub.Runner.Common
public bool ShouldRetryException(Exception ex)
{
if (ex is AccessDeniedException || ex is RunnerNotFoundException || ex is HostedRunnerDeprovisionedException)
if (ex is AccessDeniedException || ex is VssUnauthorizedException || ex is RunnerNotFoundException || ex is HostedRunnerDeprovisionedException)
{
return false;
}