mirror of
https://github.com/actions/runner.git
synced 2025-12-13 19:03:44 +00:00
Exit hosted runner cleanly during deprovisioning. (#3755)
This commit is contained in:
@@ -697,6 +697,10 @@ namespace GitHub.Runner.Listener
|
||||
{
|
||||
Trace.Info("Runner OAuth token has been revoked. Shutting down.");
|
||||
}
|
||||
catch (HostedRunnerDeprovisionedException)
|
||||
{
|
||||
Trace.Info("Hosted runner has been deprovisioned. Shutting down.");
|
||||
}
|
||||
|
||||
return Constants.Runner.ReturnCode.Success;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user