Handle runner not found (#3536)

This commit is contained in:
eric sciple
2024-11-04 20:11:58 -06:00
committed by GitHub
parent 3d34a3c6d6
commit 2c03d74f11
7 changed files with 50 additions and 2 deletions

View File

@@ -308,6 +308,10 @@ namespace GitHub.Runner.Listener
{
throw;
}
catch (RunnerNotFoundException)
{
throw;
}
catch (Exception ex)
{
Trace.Error("Catch exception during get next message.");
@@ -457,6 +461,7 @@ namespace GitHub.Runner.Listener
ex is TaskAgentPoolNotFoundException ||
ex is TaskAgentSessionExpiredException ||
ex is AccessDeniedException ||
ex is RunnerNotFoundException ||
ex is VssUnauthorizedException)
{
Trace.Info($"Non-retriable exception: {ex.Message}");