mirror of
https://github.com/actions/runner.git
synced 2025-12-14 04:53:34 +00:00
reenable session migration
This commit is contained in:
@@ -102,13 +102,13 @@ namespace GitHub.Runner.Listener
|
|||||||
taskAgentSession,
|
taskAgentSession,
|
||||||
token);
|
token);
|
||||||
|
|
||||||
// if (_session.SessionMigrationURI != null)
|
if (_session.BrokerMigrationMessage != null)
|
||||||
// {
|
{
|
||||||
// Trace.Info($"Runner session is in migration mode: Creating Broker session with SessionMigrationURI: {0}", _session.SessionMigrationURI);
|
Trace.Info($"Runner session is in migration mode: Creating Broker session with BrokerBaseUrl: {0}", _session.BrokerMigrationMessage.BrokerBaseUrl);
|
||||||
// var brokerServer = HostContext.GetService<IBrokerServer>();
|
var brokerServer = HostContext.GetService<IBrokerServer>();
|
||||||
// await brokerServer.ConnectAsync(_session.SessionMigrationURI, _creds);
|
await brokerServer.ConnectAsync(_session.BrokerMigrationMessage.BrokerBaseUrl, _creds);
|
||||||
// _session = await brokerServer.CreateSessionAsync(token, taskAgentSession);
|
_session = await brokerServer.CreateSessionAsync(token, taskAgentSession);
|
||||||
// }
|
}
|
||||||
|
|
||||||
Trace.Info($"Session created.");
|
Trace.Info($"Session created.");
|
||||||
if (encounteringError)
|
if (encounteringError)
|
||||||
|
|||||||
Reference in New Issue
Block a user