From 213ca2698a11ebf263af3fb6b1c0a4bf73daeb94 Mon Sep 17 00:00:00 2001 From: Joseph Doherty Date: Wed, 18 Mar 2026 01:28:46 -0400 Subject: [PATCH] fix: update instance counts after startup batch creation completes UpdateInstanceCounts() was only called before Instance Actors were created (in HandleStartupConfigsLoaded), showing 0 enabled on the health dashboard. Now also called after each batch in HandleStartNextBatch to reflect actual running actor count. --- src/ScadaLink.SiteRuntime/Actors/DeploymentManagerActor.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ScadaLink.SiteRuntime/Actors/DeploymentManagerActor.cs b/src/ScadaLink.SiteRuntime/Actors/DeploymentManagerActor.cs index ebda674..ede0e4c 100644 --- a/src/ScadaLink.SiteRuntime/Actors/DeploymentManagerActor.cs +++ b/src/ScadaLink.SiteRuntime/Actors/DeploymentManagerActor.cs @@ -163,6 +163,8 @@ public class DeploymentManagerActor : ReceiveActor, IWithTimers CreateInstanceActor(config.InstanceUniqueName, config.ConfigJson); } + UpdateInstanceCounts(); + // Schedule next batch if there are more, using Timers (IWithTimers) if (endIdx < state.Configs.Count) {