diff --git a/src/WebJobs.Extensions.DurableTask/Listener/DurableTaskTargetScaler.cs b/src/WebJobs.Extensions.DurableTask/Listener/DurableTaskTargetScaler.cs index 0639ff156..786b5fd08 100644 --- a/src/WebJobs.Extensions.DurableTask/Listener/DurableTaskTargetScaler.cs +++ b/src/WebJobs.Extensions.DurableTask/Listener/DurableTaskTargetScaler.cs @@ -71,6 +71,7 @@ public async Task GetScaleResultAsync(TargetScalerContext co { scaleControllerLog = "Tried to request a negative worker count." + scaleControllerLog; this.logger.LogError(scaleControllerLog); + // Throw exception so ScaleController can handle the error. throw new Exception(scaleControllerLog); }