Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class SqlDurabilityOptions
public string ConnectionStringName { get; set; } = "SQLDB_Connection";

[JsonProperty("taskHubName")]
public string TaskHubName { get; set; } = "default";
public string TaskHubName { get; set; } = SqlOrchestrationServiceSettings.DefaultTaskHubName;

[JsonProperty("taskEventLockTimeout")]
public TimeSpan TaskEventLockTimeout { get; set; } = TimeSpan.FromMinutes(2);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class SqlScaleMonitor : IScaleMonitor<SqlScaleMetric>
public SqlScaleMonitor(SqlOrchestrationService service, string taskHubName)
{
this.service = service ?? throw new ArgumentNullException(nameof(service));
this.Descriptor = new ScaleMonitorDescriptor($"DurableTask-SqlServer:{taskHubName ?? "default"}");
this.Descriptor = new ScaleMonitorDescriptor($"DurableTask-SqlServer:{taskHubName ?? SqlOrchestrationServiceSettings.DefaultTaskHubName}");
}

/// <inheritdoc />
Expand Down
3 changes: 3 additions & 0 deletions src/DurableTask.SqlServer/Scripts/drop-schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
-- Licensed under the MIT License.

-- Functions
DROP FUNCTION IF EXISTS __SchemaNamePlaceholder__._CurrentTaskHub
DROP FUNCTION IF EXISTS __SchemaNamePlaceholder__.CurrentTaskHub
DROP FUNCTION IF EXISTS __SchemaNamePlaceholder__._GetScaleMetric
DROP FUNCTION IF EXISTS __SchemaNamePlaceholder__.GetScaleMetric
DROP FUNCTION IF EXISTS __SchemaNamePlaceholder__._GetScaleRecommendation
DROP FUNCTION IF EXISTS __SchemaNamePlaceholder__.GetScaleRecommendation

-- Views
Expand Down
Loading