Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explicit taskHub parameter for stored procedures #167

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
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
Loading