Skip to content

Remove Unncessary Double connection string resolve #3447

Open
nytian wants to merge 5 commits into
devfrom
nytian/functions-scale-resolve-settings
Open

Remove Unncessary Double connection string resolve #3447
nytian wants to merge 5 commits into
devfrom
nytian/functions-scale-resolve-settings

Conversation

@nytian
Copy link
Copy Markdown
Collaborator

@nytian nytian commented May 21, 2026

The connection name from the Scale Controller's TriggerMetadata was being resolved twice: once in DurableTaskTriggersScaleProvider via INameResolver, and again in each scalability provider factory via IConfiguration / environment variables.

This PR removes DurableTaskMetadata.ResolveAppSettingOptions and its caller in DurableTaskTriggersScaleProvider as it's just a wrapper over the same IConfiguration already injected into the factory.

Copilot AI review requested due to automatic review settings May 21, 2026 17:24
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to eliminate redundant connection-name resolution in the Functions scale extension path by removing the extra app-setting resolution step performed on SyncTriggers metadata, relying instead on the existing IConfiguration-based resolution in the scalability provider factories.

Changes:

  • Removed the DurableTaskMetadata.ResolveAppSettingOptions(...) helper and its invocation from DurableTaskTriggersScaleProvider.
  • Left connection name extraction to TriggerMetadataExtensions.ResolveConnectionName(...) and factory-side configuration/environment resolution.
  • Updated the FunctionsScale .csproj to set a non-empty VersionSuffix value.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/Microsoft.Azure.WebJobs.Extensions.DurableTask.FunctionsScale/Microsoft.Azure.WebJobs.Extensions.DurableTask.FunctionsScale.csproj Changes package versioning via VersionSuffix.
src/Microsoft.Azure.WebJobs.Extensions.DurableTask.FunctionsScale/DurableTaskTriggersScaleProvider.cs Removes the metadata app-setting resolution call in the SyncTriggers path.
src/Microsoft.Azure.WebJobs.Extensions.DurableTask.FunctionsScale/DurableTaskMetadata.cs Deletes the ResolveAppSettingOptions API previously used to resolve storage provider settings.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

<MinorVersion>0</MinorVersion>
<PatchVersion>0</PatchVersion>
<VersionSuffix></VersionSuffix>
<VersionSuffix>test1</VersionSuffix>
Copilot AI review requested due to automatic review settings May 21, 2026 18:28
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Comment on lines 46 to 50
/// <summary>
/// Gets or sets the storage provider configuration dictionary, typically containing connection and provider-specific options.
/// </summary>
[JsonPropertyName("storageProvider")]
public IDictionary<string, object>? StorageProvider { get; set; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants