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.
This commit is contained in:
Joseph Doherty
2026-03-18 01:28:46 -04:00
parent c63fb1c4a6
commit 213ca2698a

View File

@@ -163,6 +163,8 @@ public class DeploymentManagerActor : ReceiveActor, IWithTimers
CreateInstanceActor(config.InstanceUniqueName, config.ConfigJson); CreateInstanceActor(config.InstanceUniqueName, config.ConfigJson);
} }
UpdateInstanceCounts();
// Schedule next batch if there are more, using Timers (IWithTimers) // Schedule next batch if there are more, using Timers (IWithTimers)
if (endIdx < state.Configs.Count) if (endIdx < state.Configs.Count)
{ {