diff --git a/src/WebJobs.Extensions.DurableTask/Listener/DurableTaskScaleMonitor.cs b/src/WebJobs.Extensions.DurableTask/Listener/DurableTaskScaleMonitor.cs index 66ff4f582..1c9d63212 100644 --- a/src/WebJobs.Extensions.DurableTask/Listener/DurableTaskScaleMonitor.cs +++ b/src/WebJobs.Extensions.DurableTask/Listener/DurableTaskScaleMonitor.cs @@ -38,6 +38,7 @@ public DurableTaskScaleMonitor( this.durableTaskMetricsProvider = durableTaskMetricsProvider; string id = $"DurableTaskTrigger-{this.hubName}".ToLower(); + // Scalers in Durable Functions are shared for all functions in the same task hub. // So instead of using a function ID, we use the task hub name as the basis for the descriptor ID. this.scaleMonitorDescriptor = new ScaleMonitorDescriptor(id: id, functionId: id); @@ -147,4 +148,4 @@ private ScaleStatus GetScaleStatusCore(int workerCount, DurableTaskTriggerMetric return scaleStatus; } } -} \ No newline at end of file +}