mirror of
https://github.com/actions/runner.git
synced 2025-12-12 05:37:01 +00:00
Exit hosted runner cleanly during deprovisioning. (#3755)
This commit is contained in:
@@ -304,6 +304,11 @@ namespace GitHub.Runner.Listener
|
||||
_accessTokenRevoked = true;
|
||||
throw;
|
||||
}
|
||||
catch (HostedRunnerDeprovisionedException)
|
||||
{
|
||||
Trace.Info("Hosted runner has been deprovisioned.");
|
||||
throw;
|
||||
}
|
||||
catch (AccessDeniedException e) when (e.ErrorCode == 1)
|
||||
{
|
||||
throw;
|
||||
|
||||
Reference in New Issue
Block a user