mirror of
https://github.com/actions/runner.git
synced 2025-12-13 19:03:44 +00:00
Handle ForceTokenRefresh message (#3133)
* Handle ForceTokenRefresh message * move to constants * format
This commit is contained in:
@@ -596,6 +596,10 @@ namespace GitHub.Runner.Listener
|
||||
Trace.Info($"Service requests the hosted runner to shutdown. Reason: '{HostedRunnerShutdownMessage.Reason}'.");
|
||||
return Constants.Runner.ReturnCode.Success;
|
||||
}
|
||||
else if (string.Equals(message.MessageType, TaskAgentMessageTypes.ForceTokenRefresh))
|
||||
{
|
||||
await _listener.RefreshListenerTokenAsync(messageQueueLoopTokenSource.Token);
|
||||
}
|
||||
else
|
||||
{
|
||||
Trace.Error($"Received message {message.MessageId} with unsupported message type {message.MessageType}.");
|
||||
|
||||
Reference in New Issue
Block a user