From e8133bd8c81b77bfee9c3b3678802a9167c83c07 Mon Sep 17 00:00:00 2001 From: Naiyuan Tian <110135109+nytian@users.noreply.github.com> Date: Tue, 26 Nov 2024 16:18:05 -0800 Subject: [PATCH] Update DurableTaskScaleMonitor.cs (#2976) --- .../Listener/DurableTaskScaleMonitor.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 +}