Fix agent count

This commit is contained in:
2025-09-28 23:34:56 +07:00
parent 57b3603302
commit 014a3ed7e5
5 changed files with 6 additions and 13 deletions

View File

@@ -92,7 +92,7 @@ public class AgentGrain : Grain, IAgentGrain
await ServiceScopeHelpers.WithScopedService<IGrainFactory>(_scopeFactory, async grainFactory =>
{
var platformGrain = grainFactory.GetGrain<IPlatformSummaryGrain>("platform-summary");
await platformGrain.IncrementAgentCountAsync();
await platformGrain.RefreshAgentCountAsync();
_logger.LogDebug("Notified platform summary about new agent activation for user {UserId}", userId);
});
}