Exit hosted runner cleanly during deprovisioning. (#3755)

This commit is contained in:
Tingluo Huang
2025-03-18 10:33:40 -04:00
committed by GitHub
parent 6b08f23b6c
commit a0ba8fd399
7 changed files with 41 additions and 1 deletions

View File

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