Skip to content

Commit

Permalink
Update DurableTaskScaleMonitor.cs (#2976)
Browse files Browse the repository at this point in the history
  • Loading branch information
nytian authored Nov 27, 2024
1 parent 860216c commit e8133bd
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -147,4 +148,4 @@ private ScaleStatus GetScaleStatusCore(int workerCount, DurableTaskTriggerMetric
return scaleStatus;
}
}
}
}

0 comments on commit e8133bd

Please sign in to comment.