Implemented daemon side stats streaming. Fixed server task cancellation being too quick. Improved console streaming
This commit is contained in:
@@ -31,6 +31,8 @@ public class RestoreSubSystem : ServerSubSystem
|
||||
provisionSubSystem.CurrentContainerId = runtimeContainer.ID;
|
||||
Server.OverrideState(ServerState.Online);
|
||||
|
||||
// Update and attach console
|
||||
|
||||
var consoleSubSystem = Server.GetRequiredSubSystem<ConsoleSubSystem>();
|
||||
|
||||
var logStream = await DockerClient.Containers.GetContainerLogsAsync(runtimeContainerName, true, new ()
|
||||
@@ -53,6 +55,11 @@ public class RestoreSubSystem : ServerSubSystem
|
||||
|
||||
await consoleSubSystem.Attach(provisionSubSystem.CurrentContainerId);
|
||||
|
||||
// Attach stats
|
||||
var statsSubSystem = Server.GetRequiredSubSystem<StatsSubSystem>();
|
||||
await statsSubSystem.Attach(provisionSubSystem.CurrentContainerId);
|
||||
|
||||
// Done :>
|
||||
Logger.LogInformation("Restored runtime container successfully");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user